@wppconnect/wa-proto 1.1.0 → 1.1.1
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 +4 -0
- package/README.md +3 -2
- package/WAProto.proto +17 -1
- package/dist/index.d.ts +151 -2
- package/dist/index.js +539 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@wppconnect/wa-proto)
|
|
5
5
|
[](https://isitmaintained.com/project/wppconnect/wa-proto 'Average time to resolve an issue')
|
|
6
6
|
[](https://isitmaintained.com/project/wppconnect/wa-proto 'Percentage of issues still open')
|
|
7
|
-
[](https://github.com/wppconnect/wa-proto/actions)
|
|
7
|
+
[](https://github.com/wppconnect/wa-proto/actions)
|
|
9
8
|
[](https://github.com/release-it/release-it)
|
|
10
9
|
|
|
11
10
|
> WPPConnect/WA-Proto is a open source project with extracted protobuf files from WhatsApp WEB based on https://github.com/WhiskeySockets/Baileys/tree/master/WAProto
|
|
12
11
|
|
|
12
|
+
> This project works with Protobuf files for 2.3000.x versions of Whatsapp
|
|
13
|
+
|
|
13
14
|
## Our online channels
|
|
14
15
|
|
|
15
16
|
[](https://discord.gg/JU5JGGKGNG)
|
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1017440561
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -117,6 +117,9 @@ message BotCapabilityMetadata {
|
|
|
117
117
|
PROGRESS_INDICATOR = 1;
|
|
118
118
|
RICH_RESPONSE_HEADING = 2;
|
|
119
119
|
RICH_RESPONSE_NESTED_LIST = 3;
|
|
120
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
121
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
122
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
|
|
@@ -1254,6 +1257,7 @@ message Message {
|
|
|
1254
1257
|
optional PollResultSnapshotMessage pollResultSnapshotMessage = 88;
|
|
1255
1258
|
optional FutureProofMessage pollCreationMessageV4 = 89;
|
|
1256
1259
|
optional FutureProofMessage pollCreationOptionImageMessage = 90;
|
|
1260
|
+
optional FutureProofMessage associatedChildMessage = 91;
|
|
1257
1261
|
message AlbumMessage {
|
|
1258
1262
|
optional uint32 expectedImageCount = 2;
|
|
1259
1263
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -1599,6 +1603,7 @@ message Message {
|
|
|
1599
1603
|
optional bool viewOnce = 30;
|
|
1600
1604
|
optional uint32 videoHeight = 31;
|
|
1601
1605
|
optional uint32 videoWidth = 32;
|
|
1606
|
+
optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
|
|
1602
1607
|
enum FontType {
|
|
1603
1608
|
SYSTEM = 0;
|
|
1604
1609
|
SYSTEM_TEXT = 1;
|
|
@@ -1981,6 +1986,16 @@ message Message {
|
|
|
1981
1986
|
optional ContextInfo contextInfo = 17;
|
|
1982
1987
|
}
|
|
1983
1988
|
|
|
1989
|
+
message MMSThumbnailMetadata {
|
|
1990
|
+
optional string thumbnailDirectPath = 1;
|
|
1991
|
+
optional bytes thumbnailSha256 = 2;
|
|
1992
|
+
optional bytes thumbnailEncSha256 = 3;
|
|
1993
|
+
optional bytes mediaKey = 4;
|
|
1994
|
+
optional int64 mediaKeyTimestamp = 5;
|
|
1995
|
+
optional uint32 thumbnailHeight = 6;
|
|
1996
|
+
optional uint32 thumbnailWidth = 7;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1984
1999
|
message MessageHistoryBundle {
|
|
1985
2000
|
optional string mimetype = 2;
|
|
1986
2001
|
optional bytes fileSha256 = 3;
|
|
@@ -3917,6 +3932,7 @@ message WebMessageInfo {
|
|
|
3917
3932
|
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208;
|
|
3918
3933
|
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209;
|
|
3919
3934
|
STATUS_MENTION = 210;
|
|
3935
|
+
USER_CONTROLS_SYSTEM_MESSAGE = 211;
|
|
3920
3936
|
}
|
|
3921
3937
|
}
|
|
3922
3938
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1528,7 +1528,10 @@ export namespace waproto {
|
|
|
1528
1528
|
enum BotCapabilityType {
|
|
1529
1529
|
PROGRESS_INDICATOR = 1,
|
|
1530
1530
|
RICH_RESPONSE_HEADING = 2,
|
|
1531
|
-
RICH_RESPONSE_NESTED_LIST = 3
|
|
1531
|
+
RICH_RESPONSE_NESTED_LIST = 3,
|
|
1532
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10,
|
|
1533
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11,
|
|
1534
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12
|
|
1532
1535
|
}
|
|
1533
1536
|
}
|
|
1534
1537
|
|
|
@@ -13147,6 +13150,9 @@ export namespace waproto {
|
|
|
13147
13150
|
|
|
13148
13151
|
/** Message pollCreationOptionImageMessage */
|
|
13149
13152
|
pollCreationOptionImageMessage?: (waproto.Message.IFutureProofMessage|null);
|
|
13153
|
+
|
|
13154
|
+
/** Message associatedChildMessage */
|
|
13155
|
+
associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);
|
|
13150
13156
|
}
|
|
13151
13157
|
|
|
13152
13158
|
/** Represents a Message. */
|
|
@@ -13383,6 +13389,9 @@ export namespace waproto {
|
|
|
13383
13389
|
/** Message pollCreationOptionImageMessage. */
|
|
13384
13390
|
public pollCreationOptionImageMessage?: (waproto.Message.IFutureProofMessage|null);
|
|
13385
13391
|
|
|
13392
|
+
/** Message associatedChildMessage. */
|
|
13393
|
+
public associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);
|
|
13394
|
+
|
|
13386
13395
|
/**
|
|
13387
13396
|
* Creates a new Message instance using the specified properties.
|
|
13388
13397
|
* @param [properties] Properties to set
|
|
@@ -17500,6 +17509,9 @@ export namespace waproto {
|
|
|
17500
17509
|
|
|
17501
17510
|
/** ExtendedTextMessage videoWidth */
|
|
17502
17511
|
videoWidth?: (number|null);
|
|
17512
|
+
|
|
17513
|
+
/** ExtendedTextMessage faviconMMSMetadata */
|
|
17514
|
+
faviconMMSMetadata?: (waproto.Message.IMMSThumbnailMetadata|null);
|
|
17503
17515
|
}
|
|
17504
17516
|
|
|
17505
17517
|
/** Represents an ExtendedTextMessage. */
|
|
@@ -17589,6 +17601,9 @@ export namespace waproto {
|
|
|
17589
17601
|
/** ExtendedTextMessage videoWidth. */
|
|
17590
17602
|
public videoWidth?: (number|null);
|
|
17591
17603
|
|
|
17604
|
+
/** ExtendedTextMessage faviconMMSMetadata. */
|
|
17605
|
+
public faviconMMSMetadata?: (waproto.Message.IMMSThumbnailMetadata|null);
|
|
17606
|
+
|
|
17592
17607
|
/**
|
|
17593
17608
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
17594
17609
|
* @param [properties] Properties to set
|
|
@@ -22282,6 +22297,139 @@ export namespace waproto {
|
|
|
22282
22297
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22283
22298
|
}
|
|
22284
22299
|
|
|
22300
|
+
/** Properties of a MMSThumbnailMetadata. */
|
|
22301
|
+
interface IMMSThumbnailMetadata {
|
|
22302
|
+
|
|
22303
|
+
/** MMSThumbnailMetadata thumbnailDirectPath */
|
|
22304
|
+
thumbnailDirectPath?: (string|null);
|
|
22305
|
+
|
|
22306
|
+
/** MMSThumbnailMetadata thumbnailSha256 */
|
|
22307
|
+
thumbnailSha256?: (Uint8Array|null);
|
|
22308
|
+
|
|
22309
|
+
/** MMSThumbnailMetadata thumbnailEncSha256 */
|
|
22310
|
+
thumbnailEncSha256?: (Uint8Array|null);
|
|
22311
|
+
|
|
22312
|
+
/** MMSThumbnailMetadata mediaKey */
|
|
22313
|
+
mediaKey?: (Uint8Array|null);
|
|
22314
|
+
|
|
22315
|
+
/** MMSThumbnailMetadata mediaKeyTimestamp */
|
|
22316
|
+
mediaKeyTimestamp?: (number|Long|null);
|
|
22317
|
+
|
|
22318
|
+
/** MMSThumbnailMetadata thumbnailHeight */
|
|
22319
|
+
thumbnailHeight?: (number|null);
|
|
22320
|
+
|
|
22321
|
+
/** MMSThumbnailMetadata thumbnailWidth */
|
|
22322
|
+
thumbnailWidth?: (number|null);
|
|
22323
|
+
}
|
|
22324
|
+
|
|
22325
|
+
/** Represents a MMSThumbnailMetadata. */
|
|
22326
|
+
class MMSThumbnailMetadata implements IMMSThumbnailMetadata {
|
|
22327
|
+
|
|
22328
|
+
/**
|
|
22329
|
+
* Constructs a new MMSThumbnailMetadata.
|
|
22330
|
+
* @param [properties] Properties to set
|
|
22331
|
+
*/
|
|
22332
|
+
constructor(properties?: waproto.Message.IMMSThumbnailMetadata);
|
|
22333
|
+
|
|
22334
|
+
/** MMSThumbnailMetadata thumbnailDirectPath. */
|
|
22335
|
+
public thumbnailDirectPath?: (string|null);
|
|
22336
|
+
|
|
22337
|
+
/** MMSThumbnailMetadata thumbnailSha256. */
|
|
22338
|
+
public thumbnailSha256?: (Uint8Array|null);
|
|
22339
|
+
|
|
22340
|
+
/** MMSThumbnailMetadata thumbnailEncSha256. */
|
|
22341
|
+
public thumbnailEncSha256?: (Uint8Array|null);
|
|
22342
|
+
|
|
22343
|
+
/** MMSThumbnailMetadata mediaKey. */
|
|
22344
|
+
public mediaKey?: (Uint8Array|null);
|
|
22345
|
+
|
|
22346
|
+
/** MMSThumbnailMetadata mediaKeyTimestamp. */
|
|
22347
|
+
public mediaKeyTimestamp?: (number|Long|null);
|
|
22348
|
+
|
|
22349
|
+
/** MMSThumbnailMetadata thumbnailHeight. */
|
|
22350
|
+
public thumbnailHeight?: (number|null);
|
|
22351
|
+
|
|
22352
|
+
/** MMSThumbnailMetadata thumbnailWidth. */
|
|
22353
|
+
public thumbnailWidth?: (number|null);
|
|
22354
|
+
|
|
22355
|
+
/**
|
|
22356
|
+
* Creates a new MMSThumbnailMetadata instance using the specified properties.
|
|
22357
|
+
* @param [properties] Properties to set
|
|
22358
|
+
* @returns MMSThumbnailMetadata instance
|
|
22359
|
+
*/
|
|
22360
|
+
public static create(properties?: waproto.Message.IMMSThumbnailMetadata): waproto.Message.MMSThumbnailMetadata;
|
|
22361
|
+
|
|
22362
|
+
/**
|
|
22363
|
+
* Encodes the specified MMSThumbnailMetadata message. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
|
|
22364
|
+
* @param message MMSThumbnailMetadata message or plain object to encode
|
|
22365
|
+
* @param [writer] Writer to encode to
|
|
22366
|
+
* @returns Writer
|
|
22367
|
+
*/
|
|
22368
|
+
public static encode(message: waproto.Message.IMMSThumbnailMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22369
|
+
|
|
22370
|
+
/**
|
|
22371
|
+
* Encodes the specified MMSThumbnailMetadata message, length delimited. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
|
|
22372
|
+
* @param message MMSThumbnailMetadata message or plain object to encode
|
|
22373
|
+
* @param [writer] Writer to encode to
|
|
22374
|
+
* @returns Writer
|
|
22375
|
+
*/
|
|
22376
|
+
public static encodeDelimited(message: waproto.Message.IMMSThumbnailMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22377
|
+
|
|
22378
|
+
/**
|
|
22379
|
+
* Decodes a MMSThumbnailMetadata message from the specified reader or buffer.
|
|
22380
|
+
* @param reader Reader or buffer to decode from
|
|
22381
|
+
* @param [length] Message length if known beforehand
|
|
22382
|
+
* @returns MMSThumbnailMetadata
|
|
22383
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22384
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22385
|
+
*/
|
|
22386
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.MMSThumbnailMetadata;
|
|
22387
|
+
|
|
22388
|
+
/**
|
|
22389
|
+
* Decodes a MMSThumbnailMetadata message from the specified reader or buffer, length delimited.
|
|
22390
|
+
* @param reader Reader or buffer to decode from
|
|
22391
|
+
* @returns MMSThumbnailMetadata
|
|
22392
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22393
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22394
|
+
*/
|
|
22395
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.MMSThumbnailMetadata;
|
|
22396
|
+
|
|
22397
|
+
/**
|
|
22398
|
+
* Verifies a MMSThumbnailMetadata message.
|
|
22399
|
+
* @param message Plain object to verify
|
|
22400
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22401
|
+
*/
|
|
22402
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22403
|
+
|
|
22404
|
+
/**
|
|
22405
|
+
* Creates a MMSThumbnailMetadata message from a plain object. Also converts values to their respective internal types.
|
|
22406
|
+
* @param object Plain object
|
|
22407
|
+
* @returns MMSThumbnailMetadata
|
|
22408
|
+
*/
|
|
22409
|
+
public static fromObject(object: { [k: string]: any }): waproto.Message.MMSThumbnailMetadata;
|
|
22410
|
+
|
|
22411
|
+
/**
|
|
22412
|
+
* Creates a plain object from a MMSThumbnailMetadata message. Also converts values to other types if specified.
|
|
22413
|
+
* @param message MMSThumbnailMetadata
|
|
22414
|
+
* @param [options] Conversion options
|
|
22415
|
+
* @returns Plain object
|
|
22416
|
+
*/
|
|
22417
|
+
public static toObject(message: waproto.Message.MMSThumbnailMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22418
|
+
|
|
22419
|
+
/**
|
|
22420
|
+
* Converts this MMSThumbnailMetadata to JSON.
|
|
22421
|
+
* @returns JSON object
|
|
22422
|
+
*/
|
|
22423
|
+
public toJSON(): { [k: string]: any };
|
|
22424
|
+
|
|
22425
|
+
/**
|
|
22426
|
+
* Gets the default type url for MMSThumbnailMetadata
|
|
22427
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22428
|
+
* @returns The default type url
|
|
22429
|
+
*/
|
|
22430
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22431
|
+
}
|
|
22432
|
+
|
|
22285
22433
|
/** Properties of a MessageHistoryBundle. */
|
|
22286
22434
|
interface IMessageHistoryBundle {
|
|
22287
22435
|
|
|
@@ -45492,7 +45640,8 @@ export namespace waproto {
|
|
|
45492
45640
|
COMMUNITY_OWNER_UPDATED = 207,
|
|
45493
45641
|
COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN = 208,
|
|
45494
45642
|
CAPI_GROUP_NE2EE_SYSTEM_MESSAGE = 209,
|
|
45495
|
-
STATUS_MENTION = 210
|
|
45643
|
+
STATUS_MENTION = 210,
|
|
45644
|
+
USER_CONTROLS_SYSTEM_MESSAGE = 211
|
|
45496
45645
|
}
|
|
45497
45646
|
}
|
|
45498
45647
|
|
package/dist/index.js
CHANGED
|
@@ -4323,6 +4323,9 @@ $root.waproto = (function() {
|
|
|
4323
4323
|
case 1:
|
|
4324
4324
|
case 2:
|
|
4325
4325
|
case 3:
|
|
4326
|
+
case 10:
|
|
4327
|
+
case 11:
|
|
4328
|
+
case 12:
|
|
4326
4329
|
break;
|
|
4327
4330
|
}
|
|
4328
4331
|
}
|
|
@@ -4364,6 +4367,18 @@ $root.waproto = (function() {
|
|
|
4364
4367
|
case 3:
|
|
4365
4368
|
message.capabilities[i] = 3;
|
|
4366
4369
|
break;
|
|
4370
|
+
case "WA_IG_1P_PLUGIN_RANKING_CONTROL":
|
|
4371
|
+
case 10:
|
|
4372
|
+
message.capabilities[i] = 10;
|
|
4373
|
+
break;
|
|
4374
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_1":
|
|
4375
|
+
case 11:
|
|
4376
|
+
message.capabilities[i] = 11;
|
|
4377
|
+
break;
|
|
4378
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_2":
|
|
4379
|
+
case 12:
|
|
4380
|
+
message.capabilities[i] = 12;
|
|
4381
|
+
break;
|
|
4367
4382
|
}
|
|
4368
4383
|
}
|
|
4369
4384
|
return message;
|
|
@@ -4425,12 +4440,18 @@ $root.waproto = (function() {
|
|
|
4425
4440
|
* @property {number} PROGRESS_INDICATOR=1 PROGRESS_INDICATOR value
|
|
4426
4441
|
* @property {number} RICH_RESPONSE_HEADING=2 RICH_RESPONSE_HEADING value
|
|
4427
4442
|
* @property {number} RICH_RESPONSE_NESTED_LIST=3 RICH_RESPONSE_NESTED_LIST value
|
|
4443
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_CONTROL=10 WA_IG_1P_PLUGIN_RANKING_CONTROL value
|
|
4444
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11 WA_IG_1P_PLUGIN_RANKING_UPDATE_1 value
|
|
4445
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12 WA_IG_1P_PLUGIN_RANKING_UPDATE_2 value
|
|
4428
4446
|
*/
|
|
4429
4447
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
4430
4448
|
var valuesById = {}, values = Object.create(valuesById);
|
|
4431
4449
|
values[valuesById[1] = "PROGRESS_INDICATOR"] = 1;
|
|
4432
4450
|
values[valuesById[2] = "RICH_RESPONSE_HEADING"] = 2;
|
|
4433
4451
|
values[valuesById[3] = "RICH_RESPONSE_NESTED_LIST"] = 3;
|
|
4452
|
+
values[valuesById[10] = "WA_IG_1P_PLUGIN_RANKING_CONTROL"] = 10;
|
|
4453
|
+
values[valuesById[11] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_1"] = 11;
|
|
4454
|
+
values[valuesById[12] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_2"] = 12;
|
|
4434
4455
|
return values;
|
|
4435
4456
|
})();
|
|
4436
4457
|
|
|
@@ -40716,6 +40737,7 @@ $root.waproto = (function() {
|
|
|
40716
40737
|
* @property {waproto.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessage] Message pollResultSnapshotMessage
|
|
40717
40738
|
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
|
|
40718
40739
|
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationOptionImageMessage] Message pollCreationOptionImageMessage
|
|
40740
|
+
* @property {waproto.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
|
|
40719
40741
|
*/
|
|
40720
40742
|
|
|
40721
40743
|
/**
|
|
@@ -41333,6 +41355,14 @@ $root.waproto = (function() {
|
|
|
41333
41355
|
*/
|
|
41334
41356
|
Message.prototype.pollCreationOptionImageMessage = null;
|
|
41335
41357
|
|
|
41358
|
+
/**
|
|
41359
|
+
* Message associatedChildMessage.
|
|
41360
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} associatedChildMessage
|
|
41361
|
+
* @memberof waproto.Message
|
|
41362
|
+
* @instance
|
|
41363
|
+
*/
|
|
41364
|
+
Message.prototype.associatedChildMessage = null;
|
|
41365
|
+
|
|
41336
41366
|
// OneOf field names bound to virtual getters and setters
|
|
41337
41367
|
var $oneOfFields;
|
|
41338
41368
|
|
|
@@ -41786,6 +41816,12 @@ $root.waproto = (function() {
|
|
|
41786
41816
|
set: $util.oneOfSetter($oneOfFields)
|
|
41787
41817
|
});
|
|
41788
41818
|
|
|
41819
|
+
// Virtual OneOf for proto3 optional field
|
|
41820
|
+
Object.defineProperty(Message.prototype, "_associatedChildMessage", {
|
|
41821
|
+
get: $util.oneOfGetter($oneOfFields = ["associatedChildMessage"]),
|
|
41822
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41823
|
+
});
|
|
41824
|
+
|
|
41789
41825
|
/**
|
|
41790
41826
|
* Creates a new Message instance using the specified properties.
|
|
41791
41827
|
* @function create
|
|
@@ -41960,6 +41996,8 @@ $root.waproto = (function() {
|
|
|
41960
41996
|
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 89, wireType 2 =*/714).fork()).ldelim();
|
|
41961
41997
|
if (message.pollCreationOptionImageMessage != null && Object.hasOwnProperty.call(message, "pollCreationOptionImageMessage"))
|
|
41962
41998
|
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationOptionImageMessage, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
|
|
41999
|
+
if (message.associatedChildMessage != null && Object.hasOwnProperty.call(message, "associatedChildMessage"))
|
|
42000
|
+
$root.waproto.Message.FutureProofMessage.encode(message.associatedChildMessage, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
|
|
41963
42001
|
return writer;
|
|
41964
42002
|
};
|
|
41965
42003
|
|
|
@@ -42294,6 +42332,10 @@ $root.waproto = (function() {
|
|
|
42294
42332
|
message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42295
42333
|
break;
|
|
42296
42334
|
}
|
|
42335
|
+
case 91: {
|
|
42336
|
+
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42337
|
+
break;
|
|
42338
|
+
}
|
|
42297
42339
|
default:
|
|
42298
42340
|
reader.skipType(tag & 7);
|
|
42299
42341
|
break;
|
|
@@ -42927,6 +42969,14 @@ $root.waproto = (function() {
|
|
|
42927
42969
|
return "pollCreationOptionImageMessage." + error;
|
|
42928
42970
|
}
|
|
42929
42971
|
}
|
|
42972
|
+
if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
|
|
42973
|
+
properties._associatedChildMessage = 1;
|
|
42974
|
+
{
|
|
42975
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.associatedChildMessage);
|
|
42976
|
+
if (error)
|
|
42977
|
+
return "associatedChildMessage." + error;
|
|
42978
|
+
}
|
|
42979
|
+
}
|
|
42930
42980
|
return null;
|
|
42931
42981
|
};
|
|
42932
42982
|
|
|
@@ -43314,6 +43364,11 @@ $root.waproto = (function() {
|
|
|
43314
43364
|
throw TypeError(".waproto.Message.pollCreationOptionImageMessage: object expected");
|
|
43315
43365
|
message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationOptionImageMessage);
|
|
43316
43366
|
}
|
|
43367
|
+
if (object.associatedChildMessage != null) {
|
|
43368
|
+
if (typeof object.associatedChildMessage !== "object")
|
|
43369
|
+
throw TypeError(".waproto.Message.associatedChildMessage: object expected");
|
|
43370
|
+
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.associatedChildMessage);
|
|
43371
|
+
}
|
|
43317
43372
|
return message;
|
|
43318
43373
|
};
|
|
43319
43374
|
|
|
@@ -43705,6 +43760,11 @@ $root.waproto = (function() {
|
|
|
43705
43760
|
if (options.oneofs)
|
|
43706
43761
|
object._pollCreationOptionImageMessage = "pollCreationOptionImageMessage";
|
|
43707
43762
|
}
|
|
43763
|
+
if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
|
|
43764
|
+
object.associatedChildMessage = $root.waproto.Message.FutureProofMessage.toObject(message.associatedChildMessage, options);
|
|
43765
|
+
if (options.oneofs)
|
|
43766
|
+
object._associatedChildMessage = "associatedChildMessage";
|
|
43767
|
+
}
|
|
43708
43768
|
return object;
|
|
43709
43769
|
};
|
|
43710
43770
|
|
|
@@ -55342,6 +55402,7 @@ $root.waproto = (function() {
|
|
|
55342
55402
|
* @property {boolean|null} [viewOnce] ExtendedTextMessage viewOnce
|
|
55343
55403
|
* @property {number|null} [videoHeight] ExtendedTextMessage videoHeight
|
|
55344
55404
|
* @property {number|null} [videoWidth] ExtendedTextMessage videoWidth
|
|
55405
|
+
* @property {waproto.Message.IMMSThumbnailMetadata|null} [faviconMMSMetadata] ExtendedTextMessage faviconMMSMetadata
|
|
55345
55406
|
*/
|
|
55346
55407
|
|
|
55347
55408
|
/**
|
|
@@ -55567,6 +55628,14 @@ $root.waproto = (function() {
|
|
|
55567
55628
|
*/
|
|
55568
55629
|
ExtendedTextMessage.prototype.videoWidth = null;
|
|
55569
55630
|
|
|
55631
|
+
/**
|
|
55632
|
+
* ExtendedTextMessage faviconMMSMetadata.
|
|
55633
|
+
* @member {waproto.Message.IMMSThumbnailMetadata|null|undefined} faviconMMSMetadata
|
|
55634
|
+
* @memberof waproto.Message.ExtendedTextMessage
|
|
55635
|
+
* @instance
|
|
55636
|
+
*/
|
|
55637
|
+
ExtendedTextMessage.prototype.faviconMMSMetadata = null;
|
|
55638
|
+
|
|
55570
55639
|
// OneOf field names bound to virtual getters and setters
|
|
55571
55640
|
var $oneOfFields;
|
|
55572
55641
|
|
|
@@ -55726,6 +55795,12 @@ $root.waproto = (function() {
|
|
|
55726
55795
|
set: $util.oneOfSetter($oneOfFields)
|
|
55727
55796
|
});
|
|
55728
55797
|
|
|
55798
|
+
// Virtual OneOf for proto3 optional field
|
|
55799
|
+
Object.defineProperty(ExtendedTextMessage.prototype, "_faviconMMSMetadata", {
|
|
55800
|
+
get: $util.oneOfGetter($oneOfFields = ["faviconMMSMetadata"]),
|
|
55801
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55802
|
+
});
|
|
55803
|
+
|
|
55729
55804
|
/**
|
|
55730
55805
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
55731
55806
|
* @function create
|
|
@@ -55802,6 +55877,8 @@ $root.waproto = (function() {
|
|
|
55802
55877
|
writer.uint32(/* id 31, wireType 0 =*/248).uint32(message.videoHeight);
|
|
55803
55878
|
if (message.videoWidth != null && Object.hasOwnProperty.call(message, "videoWidth"))
|
|
55804
55879
|
writer.uint32(/* id 32, wireType 0 =*/256).uint32(message.videoWidth);
|
|
55880
|
+
if (message.faviconMMSMetadata != null && Object.hasOwnProperty.call(message, "faviconMMSMetadata"))
|
|
55881
|
+
$root.waproto.Message.MMSThumbnailMetadata.encode(message.faviconMMSMetadata, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
|
|
55805
55882
|
return writer;
|
|
55806
55883
|
};
|
|
55807
55884
|
|
|
@@ -55940,6 +56017,10 @@ $root.waproto = (function() {
|
|
|
55940
56017
|
message.videoWidth = reader.uint32();
|
|
55941
56018
|
break;
|
|
55942
56019
|
}
|
|
56020
|
+
case 33: {
|
|
56021
|
+
message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.decode(reader, reader.uint32());
|
|
56022
|
+
break;
|
|
56023
|
+
}
|
|
55943
56024
|
default:
|
|
55944
56025
|
reader.skipType(tag & 7);
|
|
55945
56026
|
break;
|
|
@@ -56143,6 +56224,14 @@ $root.waproto = (function() {
|
|
|
56143
56224
|
if (!$util.isInteger(message.videoWidth))
|
|
56144
56225
|
return "videoWidth: integer expected";
|
|
56145
56226
|
}
|
|
56227
|
+
if (message.faviconMMSMetadata != null && message.hasOwnProperty("faviconMMSMetadata")) {
|
|
56228
|
+
properties._faviconMMSMetadata = 1;
|
|
56229
|
+
{
|
|
56230
|
+
var error = $root.waproto.Message.MMSThumbnailMetadata.verify(message.faviconMMSMetadata);
|
|
56231
|
+
if (error)
|
|
56232
|
+
return "faviconMMSMetadata." + error;
|
|
56233
|
+
}
|
|
56234
|
+
}
|
|
56146
56235
|
return null;
|
|
56147
56236
|
};
|
|
56148
56237
|
|
|
@@ -56347,6 +56436,11 @@ $root.waproto = (function() {
|
|
|
56347
56436
|
message.videoHeight = object.videoHeight >>> 0;
|
|
56348
56437
|
if (object.videoWidth != null)
|
|
56349
56438
|
message.videoWidth = object.videoWidth >>> 0;
|
|
56439
|
+
if (object.faviconMMSMetadata != null) {
|
|
56440
|
+
if (typeof object.faviconMMSMetadata !== "object")
|
|
56441
|
+
throw TypeError(".waproto.Message.ExtendedTextMessage.faviconMMSMetadata: object expected");
|
|
56442
|
+
message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.fromObject(object.faviconMMSMetadata);
|
|
56443
|
+
}
|
|
56350
56444
|
return message;
|
|
56351
56445
|
};
|
|
56352
56446
|
|
|
@@ -56496,6 +56590,11 @@ $root.waproto = (function() {
|
|
|
56496
56590
|
if (options.oneofs)
|
|
56497
56591
|
object._videoWidth = "videoWidth";
|
|
56498
56592
|
}
|
|
56593
|
+
if (message.faviconMMSMetadata != null && message.hasOwnProperty("faviconMMSMetadata")) {
|
|
56594
|
+
object.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.toObject(message.faviconMMSMetadata, options);
|
|
56595
|
+
if (options.oneofs)
|
|
56596
|
+
object._faviconMMSMetadata = "faviconMMSMetadata";
|
|
56597
|
+
}
|
|
56499
56598
|
return object;
|
|
56500
56599
|
};
|
|
56501
56600
|
|
|
@@ -70245,6 +70344,439 @@ $root.waproto = (function() {
|
|
|
70245
70344
|
return LocationMessage;
|
|
70246
70345
|
})();
|
|
70247
70346
|
|
|
70347
|
+
Message.MMSThumbnailMetadata = (function() {
|
|
70348
|
+
|
|
70349
|
+
/**
|
|
70350
|
+
* Properties of a MMSThumbnailMetadata.
|
|
70351
|
+
* @memberof waproto.Message
|
|
70352
|
+
* @interface IMMSThumbnailMetadata
|
|
70353
|
+
* @property {string|null} [thumbnailDirectPath] MMSThumbnailMetadata thumbnailDirectPath
|
|
70354
|
+
* @property {Uint8Array|null} [thumbnailSha256] MMSThumbnailMetadata thumbnailSha256
|
|
70355
|
+
* @property {Uint8Array|null} [thumbnailEncSha256] MMSThumbnailMetadata thumbnailEncSha256
|
|
70356
|
+
* @property {Uint8Array|null} [mediaKey] MMSThumbnailMetadata mediaKey
|
|
70357
|
+
* @property {number|Long|null} [mediaKeyTimestamp] MMSThumbnailMetadata mediaKeyTimestamp
|
|
70358
|
+
* @property {number|null} [thumbnailHeight] MMSThumbnailMetadata thumbnailHeight
|
|
70359
|
+
* @property {number|null} [thumbnailWidth] MMSThumbnailMetadata thumbnailWidth
|
|
70360
|
+
*/
|
|
70361
|
+
|
|
70362
|
+
/**
|
|
70363
|
+
* Constructs a new MMSThumbnailMetadata.
|
|
70364
|
+
* @memberof waproto.Message
|
|
70365
|
+
* @classdesc Represents a MMSThumbnailMetadata.
|
|
70366
|
+
* @implements IMMSThumbnailMetadata
|
|
70367
|
+
* @constructor
|
|
70368
|
+
* @param {waproto.Message.IMMSThumbnailMetadata=} [properties] Properties to set
|
|
70369
|
+
*/
|
|
70370
|
+
function MMSThumbnailMetadata(properties) {
|
|
70371
|
+
if (properties)
|
|
70372
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70373
|
+
if (properties[keys[i]] != null)
|
|
70374
|
+
this[keys[i]] = properties[keys[i]];
|
|
70375
|
+
}
|
|
70376
|
+
|
|
70377
|
+
/**
|
|
70378
|
+
* MMSThumbnailMetadata thumbnailDirectPath.
|
|
70379
|
+
* @member {string|null|undefined} thumbnailDirectPath
|
|
70380
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70381
|
+
* @instance
|
|
70382
|
+
*/
|
|
70383
|
+
MMSThumbnailMetadata.prototype.thumbnailDirectPath = null;
|
|
70384
|
+
|
|
70385
|
+
/**
|
|
70386
|
+
* MMSThumbnailMetadata thumbnailSha256.
|
|
70387
|
+
* @member {Uint8Array|null|undefined} thumbnailSha256
|
|
70388
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70389
|
+
* @instance
|
|
70390
|
+
*/
|
|
70391
|
+
MMSThumbnailMetadata.prototype.thumbnailSha256 = null;
|
|
70392
|
+
|
|
70393
|
+
/**
|
|
70394
|
+
* MMSThumbnailMetadata thumbnailEncSha256.
|
|
70395
|
+
* @member {Uint8Array|null|undefined} thumbnailEncSha256
|
|
70396
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70397
|
+
* @instance
|
|
70398
|
+
*/
|
|
70399
|
+
MMSThumbnailMetadata.prototype.thumbnailEncSha256 = null;
|
|
70400
|
+
|
|
70401
|
+
/**
|
|
70402
|
+
* MMSThumbnailMetadata mediaKey.
|
|
70403
|
+
* @member {Uint8Array|null|undefined} mediaKey
|
|
70404
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70405
|
+
* @instance
|
|
70406
|
+
*/
|
|
70407
|
+
MMSThumbnailMetadata.prototype.mediaKey = null;
|
|
70408
|
+
|
|
70409
|
+
/**
|
|
70410
|
+
* MMSThumbnailMetadata mediaKeyTimestamp.
|
|
70411
|
+
* @member {number|Long|null|undefined} mediaKeyTimestamp
|
|
70412
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70413
|
+
* @instance
|
|
70414
|
+
*/
|
|
70415
|
+
MMSThumbnailMetadata.prototype.mediaKeyTimestamp = null;
|
|
70416
|
+
|
|
70417
|
+
/**
|
|
70418
|
+
* MMSThumbnailMetadata thumbnailHeight.
|
|
70419
|
+
* @member {number|null|undefined} thumbnailHeight
|
|
70420
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70421
|
+
* @instance
|
|
70422
|
+
*/
|
|
70423
|
+
MMSThumbnailMetadata.prototype.thumbnailHeight = null;
|
|
70424
|
+
|
|
70425
|
+
/**
|
|
70426
|
+
* MMSThumbnailMetadata thumbnailWidth.
|
|
70427
|
+
* @member {number|null|undefined} thumbnailWidth
|
|
70428
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70429
|
+
* @instance
|
|
70430
|
+
*/
|
|
70431
|
+
MMSThumbnailMetadata.prototype.thumbnailWidth = null;
|
|
70432
|
+
|
|
70433
|
+
// OneOf field names bound to virtual getters and setters
|
|
70434
|
+
var $oneOfFields;
|
|
70435
|
+
|
|
70436
|
+
// Virtual OneOf for proto3 optional field
|
|
70437
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailDirectPath", {
|
|
70438
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailDirectPath"]),
|
|
70439
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70440
|
+
});
|
|
70441
|
+
|
|
70442
|
+
// Virtual OneOf for proto3 optional field
|
|
70443
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailSha256", {
|
|
70444
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailSha256"]),
|
|
70445
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70446
|
+
});
|
|
70447
|
+
|
|
70448
|
+
// Virtual OneOf for proto3 optional field
|
|
70449
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailEncSha256", {
|
|
70450
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailEncSha256"]),
|
|
70451
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70452
|
+
});
|
|
70453
|
+
|
|
70454
|
+
// Virtual OneOf for proto3 optional field
|
|
70455
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKey", {
|
|
70456
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKey"]),
|
|
70457
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70458
|
+
});
|
|
70459
|
+
|
|
70460
|
+
// Virtual OneOf for proto3 optional field
|
|
70461
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKeyTimestamp", {
|
|
70462
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyTimestamp"]),
|
|
70463
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70464
|
+
});
|
|
70465
|
+
|
|
70466
|
+
// Virtual OneOf for proto3 optional field
|
|
70467
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailHeight", {
|
|
70468
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailHeight"]),
|
|
70469
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70470
|
+
});
|
|
70471
|
+
|
|
70472
|
+
// Virtual OneOf for proto3 optional field
|
|
70473
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailWidth", {
|
|
70474
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailWidth"]),
|
|
70475
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70476
|
+
});
|
|
70477
|
+
|
|
70478
|
+
/**
|
|
70479
|
+
* Creates a new MMSThumbnailMetadata instance using the specified properties.
|
|
70480
|
+
* @function create
|
|
70481
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70482
|
+
* @static
|
|
70483
|
+
* @param {waproto.Message.IMMSThumbnailMetadata=} [properties] Properties to set
|
|
70484
|
+
* @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata instance
|
|
70485
|
+
*/
|
|
70486
|
+
MMSThumbnailMetadata.create = function create(properties) {
|
|
70487
|
+
return new MMSThumbnailMetadata(properties);
|
|
70488
|
+
};
|
|
70489
|
+
|
|
70490
|
+
/**
|
|
70491
|
+
* Encodes the specified MMSThumbnailMetadata message. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
|
|
70492
|
+
* @function encode
|
|
70493
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70494
|
+
* @static
|
|
70495
|
+
* @param {waproto.Message.IMMSThumbnailMetadata} message MMSThumbnailMetadata message or plain object to encode
|
|
70496
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70497
|
+
* @returns {$protobuf.Writer} Writer
|
|
70498
|
+
*/
|
|
70499
|
+
MMSThumbnailMetadata.encode = function encode(message, writer) {
|
|
70500
|
+
if (!writer)
|
|
70501
|
+
writer = $Writer.create();
|
|
70502
|
+
if (message.thumbnailDirectPath != null && Object.hasOwnProperty.call(message, "thumbnailDirectPath"))
|
|
70503
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.thumbnailDirectPath);
|
|
70504
|
+
if (message.thumbnailSha256 != null && Object.hasOwnProperty.call(message, "thumbnailSha256"))
|
|
70505
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.thumbnailSha256);
|
|
70506
|
+
if (message.thumbnailEncSha256 != null && Object.hasOwnProperty.call(message, "thumbnailEncSha256"))
|
|
70507
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.thumbnailEncSha256);
|
|
70508
|
+
if (message.mediaKey != null && Object.hasOwnProperty.call(message, "mediaKey"))
|
|
70509
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.mediaKey);
|
|
70510
|
+
if (message.mediaKeyTimestamp != null && Object.hasOwnProperty.call(message, "mediaKeyTimestamp"))
|
|
70511
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.mediaKeyTimestamp);
|
|
70512
|
+
if (message.thumbnailHeight != null && Object.hasOwnProperty.call(message, "thumbnailHeight"))
|
|
70513
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.thumbnailHeight);
|
|
70514
|
+
if (message.thumbnailWidth != null && Object.hasOwnProperty.call(message, "thumbnailWidth"))
|
|
70515
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.thumbnailWidth);
|
|
70516
|
+
return writer;
|
|
70517
|
+
};
|
|
70518
|
+
|
|
70519
|
+
/**
|
|
70520
|
+
* Encodes the specified MMSThumbnailMetadata message, length delimited. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
|
|
70521
|
+
* @function encodeDelimited
|
|
70522
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70523
|
+
* @static
|
|
70524
|
+
* @param {waproto.Message.IMMSThumbnailMetadata} message MMSThumbnailMetadata message or plain object to encode
|
|
70525
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70526
|
+
* @returns {$protobuf.Writer} Writer
|
|
70527
|
+
*/
|
|
70528
|
+
MMSThumbnailMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
70529
|
+
return this.encode(message, writer).ldelim();
|
|
70530
|
+
};
|
|
70531
|
+
|
|
70532
|
+
/**
|
|
70533
|
+
* Decodes a MMSThumbnailMetadata message from the specified reader or buffer.
|
|
70534
|
+
* @function decode
|
|
70535
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70536
|
+
* @static
|
|
70537
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70538
|
+
* @param {number} [length] Message length if known beforehand
|
|
70539
|
+
* @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
|
|
70540
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70541
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70542
|
+
*/
|
|
70543
|
+
MMSThumbnailMetadata.decode = function decode(reader, length) {
|
|
70544
|
+
if (!(reader instanceof $Reader))
|
|
70545
|
+
reader = $Reader.create(reader);
|
|
70546
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.MMSThumbnailMetadata();
|
|
70547
|
+
while (reader.pos < end) {
|
|
70548
|
+
var tag = reader.uint32();
|
|
70549
|
+
switch (tag >>> 3) {
|
|
70550
|
+
case 1: {
|
|
70551
|
+
message.thumbnailDirectPath = reader.string();
|
|
70552
|
+
break;
|
|
70553
|
+
}
|
|
70554
|
+
case 2: {
|
|
70555
|
+
message.thumbnailSha256 = reader.bytes();
|
|
70556
|
+
break;
|
|
70557
|
+
}
|
|
70558
|
+
case 3: {
|
|
70559
|
+
message.thumbnailEncSha256 = reader.bytes();
|
|
70560
|
+
break;
|
|
70561
|
+
}
|
|
70562
|
+
case 4: {
|
|
70563
|
+
message.mediaKey = reader.bytes();
|
|
70564
|
+
break;
|
|
70565
|
+
}
|
|
70566
|
+
case 5: {
|
|
70567
|
+
message.mediaKeyTimestamp = reader.int64();
|
|
70568
|
+
break;
|
|
70569
|
+
}
|
|
70570
|
+
case 6: {
|
|
70571
|
+
message.thumbnailHeight = reader.uint32();
|
|
70572
|
+
break;
|
|
70573
|
+
}
|
|
70574
|
+
case 7: {
|
|
70575
|
+
message.thumbnailWidth = reader.uint32();
|
|
70576
|
+
break;
|
|
70577
|
+
}
|
|
70578
|
+
default:
|
|
70579
|
+
reader.skipType(tag & 7);
|
|
70580
|
+
break;
|
|
70581
|
+
}
|
|
70582
|
+
}
|
|
70583
|
+
return message;
|
|
70584
|
+
};
|
|
70585
|
+
|
|
70586
|
+
/**
|
|
70587
|
+
* Decodes a MMSThumbnailMetadata message from the specified reader or buffer, length delimited.
|
|
70588
|
+
* @function decodeDelimited
|
|
70589
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70590
|
+
* @static
|
|
70591
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70592
|
+
* @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
|
|
70593
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70594
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70595
|
+
*/
|
|
70596
|
+
MMSThumbnailMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
70597
|
+
if (!(reader instanceof $Reader))
|
|
70598
|
+
reader = new $Reader(reader);
|
|
70599
|
+
return this.decode(reader, reader.uint32());
|
|
70600
|
+
};
|
|
70601
|
+
|
|
70602
|
+
/**
|
|
70603
|
+
* Verifies a MMSThumbnailMetadata message.
|
|
70604
|
+
* @function verify
|
|
70605
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70606
|
+
* @static
|
|
70607
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
70608
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
70609
|
+
*/
|
|
70610
|
+
MMSThumbnailMetadata.verify = function verify(message) {
|
|
70611
|
+
if (typeof message !== "object" || message === null)
|
|
70612
|
+
return "object expected";
|
|
70613
|
+
var properties = {};
|
|
70614
|
+
if (message.thumbnailDirectPath != null && message.hasOwnProperty("thumbnailDirectPath")) {
|
|
70615
|
+
properties._thumbnailDirectPath = 1;
|
|
70616
|
+
if (!$util.isString(message.thumbnailDirectPath))
|
|
70617
|
+
return "thumbnailDirectPath: string expected";
|
|
70618
|
+
}
|
|
70619
|
+
if (message.thumbnailSha256 != null && message.hasOwnProperty("thumbnailSha256")) {
|
|
70620
|
+
properties._thumbnailSha256 = 1;
|
|
70621
|
+
if (!(message.thumbnailSha256 && typeof message.thumbnailSha256.length === "number" || $util.isString(message.thumbnailSha256)))
|
|
70622
|
+
return "thumbnailSha256: buffer expected";
|
|
70623
|
+
}
|
|
70624
|
+
if (message.thumbnailEncSha256 != null && message.hasOwnProperty("thumbnailEncSha256")) {
|
|
70625
|
+
properties._thumbnailEncSha256 = 1;
|
|
70626
|
+
if (!(message.thumbnailEncSha256 && typeof message.thumbnailEncSha256.length === "number" || $util.isString(message.thumbnailEncSha256)))
|
|
70627
|
+
return "thumbnailEncSha256: buffer expected";
|
|
70628
|
+
}
|
|
70629
|
+
if (message.mediaKey != null && message.hasOwnProperty("mediaKey")) {
|
|
70630
|
+
properties._mediaKey = 1;
|
|
70631
|
+
if (!(message.mediaKey && typeof message.mediaKey.length === "number" || $util.isString(message.mediaKey)))
|
|
70632
|
+
return "mediaKey: buffer expected";
|
|
70633
|
+
}
|
|
70634
|
+
if (message.mediaKeyTimestamp != null && message.hasOwnProperty("mediaKeyTimestamp")) {
|
|
70635
|
+
properties._mediaKeyTimestamp = 1;
|
|
70636
|
+
if (!$util.isInteger(message.mediaKeyTimestamp) && !(message.mediaKeyTimestamp && $util.isInteger(message.mediaKeyTimestamp.low) && $util.isInteger(message.mediaKeyTimestamp.high)))
|
|
70637
|
+
return "mediaKeyTimestamp: integer|Long expected";
|
|
70638
|
+
}
|
|
70639
|
+
if (message.thumbnailHeight != null && message.hasOwnProperty("thumbnailHeight")) {
|
|
70640
|
+
properties._thumbnailHeight = 1;
|
|
70641
|
+
if (!$util.isInteger(message.thumbnailHeight))
|
|
70642
|
+
return "thumbnailHeight: integer expected";
|
|
70643
|
+
}
|
|
70644
|
+
if (message.thumbnailWidth != null && message.hasOwnProperty("thumbnailWidth")) {
|
|
70645
|
+
properties._thumbnailWidth = 1;
|
|
70646
|
+
if (!$util.isInteger(message.thumbnailWidth))
|
|
70647
|
+
return "thumbnailWidth: integer expected";
|
|
70648
|
+
}
|
|
70649
|
+
return null;
|
|
70650
|
+
};
|
|
70651
|
+
|
|
70652
|
+
/**
|
|
70653
|
+
* Creates a MMSThumbnailMetadata message from a plain object. Also converts values to their respective internal types.
|
|
70654
|
+
* @function fromObject
|
|
70655
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70656
|
+
* @static
|
|
70657
|
+
* @param {Object.<string,*>} object Plain object
|
|
70658
|
+
* @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
|
|
70659
|
+
*/
|
|
70660
|
+
MMSThumbnailMetadata.fromObject = function fromObject(object) {
|
|
70661
|
+
if (object instanceof $root.waproto.Message.MMSThumbnailMetadata)
|
|
70662
|
+
return object;
|
|
70663
|
+
var message = new $root.waproto.Message.MMSThumbnailMetadata();
|
|
70664
|
+
if (object.thumbnailDirectPath != null)
|
|
70665
|
+
message.thumbnailDirectPath = String(object.thumbnailDirectPath);
|
|
70666
|
+
if (object.thumbnailSha256 != null)
|
|
70667
|
+
if (typeof object.thumbnailSha256 === "string")
|
|
70668
|
+
$util.base64.decode(object.thumbnailSha256, message.thumbnailSha256 = $util.newBuffer($util.base64.length(object.thumbnailSha256)), 0);
|
|
70669
|
+
else if (object.thumbnailSha256.length >= 0)
|
|
70670
|
+
message.thumbnailSha256 = object.thumbnailSha256;
|
|
70671
|
+
if (object.thumbnailEncSha256 != null)
|
|
70672
|
+
if (typeof object.thumbnailEncSha256 === "string")
|
|
70673
|
+
$util.base64.decode(object.thumbnailEncSha256, message.thumbnailEncSha256 = $util.newBuffer($util.base64.length(object.thumbnailEncSha256)), 0);
|
|
70674
|
+
else if (object.thumbnailEncSha256.length >= 0)
|
|
70675
|
+
message.thumbnailEncSha256 = object.thumbnailEncSha256;
|
|
70676
|
+
if (object.mediaKey != null)
|
|
70677
|
+
if (typeof object.mediaKey === "string")
|
|
70678
|
+
$util.base64.decode(object.mediaKey, message.mediaKey = $util.newBuffer($util.base64.length(object.mediaKey)), 0);
|
|
70679
|
+
else if (object.mediaKey.length >= 0)
|
|
70680
|
+
message.mediaKey = object.mediaKey;
|
|
70681
|
+
if (object.mediaKeyTimestamp != null)
|
|
70682
|
+
if ($util.Long)
|
|
70683
|
+
(message.mediaKeyTimestamp = $util.Long.fromValue(object.mediaKeyTimestamp)).unsigned = false;
|
|
70684
|
+
else if (typeof object.mediaKeyTimestamp === "string")
|
|
70685
|
+
message.mediaKeyTimestamp = parseInt(object.mediaKeyTimestamp, 10);
|
|
70686
|
+
else if (typeof object.mediaKeyTimestamp === "number")
|
|
70687
|
+
message.mediaKeyTimestamp = object.mediaKeyTimestamp;
|
|
70688
|
+
else if (typeof object.mediaKeyTimestamp === "object")
|
|
70689
|
+
message.mediaKeyTimestamp = new $util.LongBits(object.mediaKeyTimestamp.low >>> 0, object.mediaKeyTimestamp.high >>> 0).toNumber();
|
|
70690
|
+
if (object.thumbnailHeight != null)
|
|
70691
|
+
message.thumbnailHeight = object.thumbnailHeight >>> 0;
|
|
70692
|
+
if (object.thumbnailWidth != null)
|
|
70693
|
+
message.thumbnailWidth = object.thumbnailWidth >>> 0;
|
|
70694
|
+
return message;
|
|
70695
|
+
};
|
|
70696
|
+
|
|
70697
|
+
/**
|
|
70698
|
+
* Creates a plain object from a MMSThumbnailMetadata message. Also converts values to other types if specified.
|
|
70699
|
+
* @function toObject
|
|
70700
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70701
|
+
* @static
|
|
70702
|
+
* @param {waproto.Message.MMSThumbnailMetadata} message MMSThumbnailMetadata
|
|
70703
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
70704
|
+
* @returns {Object.<string,*>} Plain object
|
|
70705
|
+
*/
|
|
70706
|
+
MMSThumbnailMetadata.toObject = function toObject(message, options) {
|
|
70707
|
+
if (!options)
|
|
70708
|
+
options = {};
|
|
70709
|
+
var object = {};
|
|
70710
|
+
if (message.thumbnailDirectPath != null && message.hasOwnProperty("thumbnailDirectPath")) {
|
|
70711
|
+
object.thumbnailDirectPath = message.thumbnailDirectPath;
|
|
70712
|
+
if (options.oneofs)
|
|
70713
|
+
object._thumbnailDirectPath = "thumbnailDirectPath";
|
|
70714
|
+
}
|
|
70715
|
+
if (message.thumbnailSha256 != null && message.hasOwnProperty("thumbnailSha256")) {
|
|
70716
|
+
object.thumbnailSha256 = options.bytes === String ? $util.base64.encode(message.thumbnailSha256, 0, message.thumbnailSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.thumbnailSha256) : message.thumbnailSha256;
|
|
70717
|
+
if (options.oneofs)
|
|
70718
|
+
object._thumbnailSha256 = "thumbnailSha256";
|
|
70719
|
+
}
|
|
70720
|
+
if (message.thumbnailEncSha256 != null && message.hasOwnProperty("thumbnailEncSha256")) {
|
|
70721
|
+
object.thumbnailEncSha256 = options.bytes === String ? $util.base64.encode(message.thumbnailEncSha256, 0, message.thumbnailEncSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.thumbnailEncSha256) : message.thumbnailEncSha256;
|
|
70722
|
+
if (options.oneofs)
|
|
70723
|
+
object._thumbnailEncSha256 = "thumbnailEncSha256";
|
|
70724
|
+
}
|
|
70725
|
+
if (message.mediaKey != null && message.hasOwnProperty("mediaKey")) {
|
|
70726
|
+
object.mediaKey = options.bytes === String ? $util.base64.encode(message.mediaKey, 0, message.mediaKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.mediaKey) : message.mediaKey;
|
|
70727
|
+
if (options.oneofs)
|
|
70728
|
+
object._mediaKey = "mediaKey";
|
|
70729
|
+
}
|
|
70730
|
+
if (message.mediaKeyTimestamp != null && message.hasOwnProperty("mediaKeyTimestamp")) {
|
|
70731
|
+
if (typeof message.mediaKeyTimestamp === "number")
|
|
70732
|
+
object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
|
|
70733
|
+
else
|
|
70734
|
+
object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
|
|
70735
|
+
if (options.oneofs)
|
|
70736
|
+
object._mediaKeyTimestamp = "mediaKeyTimestamp";
|
|
70737
|
+
}
|
|
70738
|
+
if (message.thumbnailHeight != null && message.hasOwnProperty("thumbnailHeight")) {
|
|
70739
|
+
object.thumbnailHeight = message.thumbnailHeight;
|
|
70740
|
+
if (options.oneofs)
|
|
70741
|
+
object._thumbnailHeight = "thumbnailHeight";
|
|
70742
|
+
}
|
|
70743
|
+
if (message.thumbnailWidth != null && message.hasOwnProperty("thumbnailWidth")) {
|
|
70744
|
+
object.thumbnailWidth = message.thumbnailWidth;
|
|
70745
|
+
if (options.oneofs)
|
|
70746
|
+
object._thumbnailWidth = "thumbnailWidth";
|
|
70747
|
+
}
|
|
70748
|
+
return object;
|
|
70749
|
+
};
|
|
70750
|
+
|
|
70751
|
+
/**
|
|
70752
|
+
* Converts this MMSThumbnailMetadata to JSON.
|
|
70753
|
+
* @function toJSON
|
|
70754
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70755
|
+
* @instance
|
|
70756
|
+
* @returns {Object.<string,*>} JSON object
|
|
70757
|
+
*/
|
|
70758
|
+
MMSThumbnailMetadata.prototype.toJSON = function toJSON() {
|
|
70759
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
70760
|
+
};
|
|
70761
|
+
|
|
70762
|
+
/**
|
|
70763
|
+
* Gets the default type url for MMSThumbnailMetadata
|
|
70764
|
+
* @function getTypeUrl
|
|
70765
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
70766
|
+
* @static
|
|
70767
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
70768
|
+
* @returns {string} The default type url
|
|
70769
|
+
*/
|
|
70770
|
+
MMSThumbnailMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
70771
|
+
if (typeUrlPrefix === undefined) {
|
|
70772
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
70773
|
+
}
|
|
70774
|
+
return typeUrlPrefix + "/waproto.Message.MMSThumbnailMetadata";
|
|
70775
|
+
};
|
|
70776
|
+
|
|
70777
|
+
return MMSThumbnailMetadata;
|
|
70778
|
+
})();
|
|
70779
|
+
|
|
70248
70780
|
Message.MessageHistoryBundle = (function() {
|
|
70249
70781
|
|
|
70250
70782
|
/**
|
|
@@ -139210,6 +139742,7 @@ $root.waproto = (function() {
|
|
|
139210
139742
|
case 208:
|
|
139211
139743
|
case 209:
|
|
139212
139744
|
case 210:
|
|
139745
|
+
case 211:
|
|
139213
139746
|
break;
|
|
139214
139747
|
}
|
|
139215
139748
|
}
|
|
@@ -140461,6 +140994,10 @@ $root.waproto = (function() {
|
|
|
140461
140994
|
case 210:
|
|
140462
140995
|
message.messageStubType = 210;
|
|
140463
140996
|
break;
|
|
140997
|
+
case "USER_CONTROLS_SYSTEM_MESSAGE":
|
|
140998
|
+
case 211:
|
|
140999
|
+
message.messageStubType = 211;
|
|
141000
|
+
break;
|
|
140464
141001
|
}
|
|
140465
141002
|
if (object.clearMedia != null)
|
|
140466
141003
|
message.clearMedia = Boolean(object.clearMedia);
|
|
@@ -141321,6 +141858,7 @@ $root.waproto = (function() {
|
|
|
141321
141858
|
* @property {number} COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208 COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN value
|
|
141322
141859
|
* @property {number} CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209 CAPI_GROUP_NE2EE_SYSTEM_MESSAGE value
|
|
141323
141860
|
* @property {number} STATUS_MENTION=210 STATUS_MENTION value
|
|
141861
|
+
* @property {number} USER_CONTROLS_SYSTEM_MESSAGE=211 USER_CONTROLS_SYSTEM_MESSAGE value
|
|
141324
141862
|
*/
|
|
141325
141863
|
WebMessageInfo.StubType = (function() {
|
|
141326
141864
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -141535,6 +142073,7 @@ $root.waproto = (function() {
|
|
|
141535
142073
|
values[valuesById[208] = "COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN"] = 208;
|
|
141536
142074
|
values[valuesById[209] = "CAPI_GROUP_NE2EE_SYSTEM_MESSAGE"] = 209;
|
|
141537
142075
|
values[valuesById[210] = "STATUS_MENTION"] = 210;
|
|
142076
|
+
values[valuesById[211] = "USER_CONTROLS_SYSTEM_MESSAGE"] = 211;
|
|
141538
142077
|
return values;
|
|
141539
142078
|
})();
|
|
141540
142079
|
|