@wppconnect/wa-proto 2.3000.1024570263 → 2.3000.1024744989
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 +18 -1
- package/dist/index.d.ts +61 -2
- package/dist/index.js +536 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 2.3000.1024744989 (2025-07-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [2.3000.1024617758](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024570263...v2.3000.1024617758) (2025-07-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
## [2.3000.1024570263](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024551647...v2.3000.1024570263) (2025-07-09)
|
|
2
10
|
|
|
3
11
|
|
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.1024744989
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -1342,6 +1342,7 @@ message DeviceProps {
|
|
|
1342
1342
|
optional bool supportFbidBotChatHistory = 12;
|
|
1343
1343
|
optional bool supportAddOnHistorySyncMigration = 13;
|
|
1344
1344
|
optional bool supportMessageAssociation = 14;
|
|
1345
|
+
optional bool supportGroupHistory = 15;
|
|
1345
1346
|
}
|
|
1346
1347
|
|
|
1347
1348
|
enum PlatformType {
|
|
@@ -1868,6 +1869,7 @@ message Message {
|
|
|
1868
1869
|
optional fixed32 backgroundArgb = 20;
|
|
1869
1870
|
optional bool viewOnce = 21;
|
|
1870
1871
|
optional string accessibilityLabel = 22;
|
|
1872
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 23;
|
|
1871
1873
|
}
|
|
1872
1874
|
|
|
1873
1875
|
message BCallMessage {
|
|
@@ -2099,6 +2101,7 @@ message Message {
|
|
|
2099
2101
|
optional uint32 thumbnailWidth = 19;
|
|
2100
2102
|
optional string caption = 20;
|
|
2101
2103
|
optional string accessibilityLabel = 21;
|
|
2104
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 22;
|
|
2102
2105
|
}
|
|
2103
2106
|
|
|
2104
2107
|
message EncCommentMessage {
|
|
@@ -2174,6 +2177,7 @@ message Message {
|
|
|
2174
2177
|
optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
|
|
2175
2178
|
optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
|
|
2176
2179
|
repeated Message.VideoEndCard endCardTiles = 36;
|
|
2180
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 37;
|
|
2177
2181
|
enum FontType {
|
|
2178
2182
|
SYSTEM = 0;
|
|
2179
2183
|
SYSTEM_TEXT = 1;
|
|
@@ -2339,6 +2343,7 @@ message Message {
|
|
|
2339
2343
|
repeated InteractiveAnnotation annotations = 30;
|
|
2340
2344
|
optional ImageSourceType imageSourceType = 31;
|
|
2341
2345
|
optional string accessibilityLabel = 32;
|
|
2346
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 33;
|
|
2342
2347
|
enum ImageSourceType {
|
|
2343
2348
|
USER_IMAGE = 0;
|
|
2344
2349
|
AI_GENERATED = 1;
|
|
@@ -2582,8 +2587,16 @@ message Message {
|
|
|
2582
2587
|
optional int64 mediaKeyTimestamp = 5;
|
|
2583
2588
|
optional uint32 thumbnailHeight = 6;
|
|
2584
2589
|
optional uint32 thumbnailWidth = 7;
|
|
2590
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 8;
|
|
2585
2591
|
}
|
|
2586
2592
|
|
|
2593
|
+
enum MediaKeyDomain {
|
|
2594
|
+
UNSET = 0;
|
|
2595
|
+
E2EE_CHAT = 1;
|
|
2596
|
+
STATUS = 2;
|
|
2597
|
+
CAPI = 3;
|
|
2598
|
+
BOT = 4;
|
|
2599
|
+
}
|
|
2587
2600
|
message MessageHistoryBundle {
|
|
2588
2601
|
optional string mimetype = 1;
|
|
2589
2602
|
optional bytes fileSha256 = 2;
|
|
@@ -3057,6 +3070,7 @@ message Message {
|
|
|
3057
3070
|
UNKNOWN = 0;
|
|
3058
3071
|
STATUS_ADD_YOURS = 1;
|
|
3059
3072
|
STATUS_RESHARE = 2;
|
|
3073
|
+
STATUS_QUESTION_ANSWER_RESHARE = 3;
|
|
3060
3074
|
}
|
|
3061
3075
|
}
|
|
3062
3076
|
|
|
@@ -3086,6 +3100,7 @@ message Message {
|
|
|
3086
3100
|
optional bool isAiSticker = 20;
|
|
3087
3101
|
optional bool isLottie = 21;
|
|
3088
3102
|
optional string accessibilityLabel = 22;
|
|
3103
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 23;
|
|
3089
3104
|
}
|
|
3090
3105
|
|
|
3091
3106
|
message StickerPackMessage {
|
|
@@ -3222,6 +3237,7 @@ message Message {
|
|
|
3222
3237
|
optional uint64 motionPhotoPresentationOffsetMs = 29;
|
|
3223
3238
|
optional string metadataUrl = 30;
|
|
3224
3239
|
optional VideoSourceType videoSourceType = 31;
|
|
3240
|
+
optional Message.MediaKeyDomain mediaKeyDomain = 32;
|
|
3225
3241
|
enum Attribution {
|
|
3226
3242
|
NONE = 0;
|
|
3227
3243
|
GIPHY = 1;
|
|
@@ -3832,6 +3848,7 @@ message StatusAttribution {
|
|
|
3832
3848
|
SPOTIFY = 4;
|
|
3833
3849
|
YOUTUBE = 5;
|
|
3834
3850
|
PINTEREST = 6;
|
|
3851
|
+
THREADS = 7;
|
|
3835
3852
|
}
|
|
3836
3853
|
}
|
|
3837
3854
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13957,6 +13957,9 @@ export namespace waproto {
|
|
|
13957
13957
|
|
|
13958
13958
|
/** HistorySyncConfig supportMessageAssociation */
|
|
13959
13959
|
supportMessageAssociation?: (boolean|null);
|
|
13960
|
+
|
|
13961
|
+
/** HistorySyncConfig supportGroupHistory */
|
|
13962
|
+
supportGroupHistory?: (boolean|null);
|
|
13960
13963
|
}
|
|
13961
13964
|
|
|
13962
13965
|
/** Represents a HistorySyncConfig. */
|
|
@@ -14010,6 +14013,9 @@ export namespace waproto {
|
|
|
14010
14013
|
/** HistorySyncConfig supportMessageAssociation. */
|
|
14011
14014
|
public supportMessageAssociation?: (boolean|null);
|
|
14012
14015
|
|
|
14016
|
+
/** HistorySyncConfig supportGroupHistory. */
|
|
14017
|
+
public supportGroupHistory?: (boolean|null);
|
|
14018
|
+
|
|
14013
14019
|
/**
|
|
14014
14020
|
* Creates a new HistorySyncConfig instance using the specified properties.
|
|
14015
14021
|
* @param [properties] Properties to set
|
|
@@ -20329,6 +20335,9 @@ export namespace waproto {
|
|
|
20329
20335
|
|
|
20330
20336
|
/** AudioMessage accessibilityLabel */
|
|
20331
20337
|
accessibilityLabel?: (string|null);
|
|
20338
|
+
|
|
20339
|
+
/** AudioMessage mediaKeyDomain */
|
|
20340
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
20332
20341
|
}
|
|
20333
20342
|
|
|
20334
20343
|
/** Represents an AudioMessage. */
|
|
@@ -20388,6 +20397,9 @@ export namespace waproto {
|
|
|
20388
20397
|
/** AudioMessage accessibilityLabel. */
|
|
20389
20398
|
public accessibilityLabel?: (string|null);
|
|
20390
20399
|
|
|
20400
|
+
/** AudioMessage mediaKeyDomain. */
|
|
20401
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
20402
|
+
|
|
20391
20403
|
/**
|
|
20392
20404
|
* Creates a new AudioMessage instance using the specified properties.
|
|
20393
20405
|
* @param [properties] Properties to set
|
|
@@ -22795,6 +22807,9 @@ export namespace waproto {
|
|
|
22795
22807
|
|
|
22796
22808
|
/** DocumentMessage accessibilityLabel */
|
|
22797
22809
|
accessibilityLabel?: (string|null);
|
|
22810
|
+
|
|
22811
|
+
/** DocumentMessage mediaKeyDomain */
|
|
22812
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
22798
22813
|
}
|
|
22799
22814
|
|
|
22800
22815
|
/** Represents a DocumentMessage. */
|
|
@@ -22869,6 +22884,9 @@ export namespace waproto {
|
|
|
22869
22884
|
/** DocumentMessage accessibilityLabel. */
|
|
22870
22885
|
public accessibilityLabel?: (string|null);
|
|
22871
22886
|
|
|
22887
|
+
/** DocumentMessage mediaKeyDomain. */
|
|
22888
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
22889
|
+
|
|
22872
22890
|
/**
|
|
22873
22891
|
* Creates a new DocumentMessage instance using the specified properties.
|
|
22874
22892
|
* @param [properties] Properties to set
|
|
@@ -23634,6 +23652,9 @@ export namespace waproto {
|
|
|
23634
23652
|
|
|
23635
23653
|
/** ExtendedTextMessage endCardTiles */
|
|
23636
23654
|
endCardTiles?: (waproto.Message.IVideoEndCard[]|null);
|
|
23655
|
+
|
|
23656
|
+
/** ExtendedTextMessage mediaKeyDomain */
|
|
23657
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
23637
23658
|
}
|
|
23638
23659
|
|
|
23639
23660
|
/** Represents an ExtendedTextMessage. */
|
|
@@ -23732,6 +23753,9 @@ export namespace waproto {
|
|
|
23732
23753
|
/** ExtendedTextMessage endCardTiles. */
|
|
23733
23754
|
public endCardTiles: waproto.Message.IVideoEndCard[];
|
|
23734
23755
|
|
|
23756
|
+
/** ExtendedTextMessage mediaKeyDomain. */
|
|
23757
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
23758
|
+
|
|
23735
23759
|
/**
|
|
23736
23760
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
23737
23761
|
* @param [properties] Properties to set
|
|
@@ -25189,6 +25213,9 @@ export namespace waproto {
|
|
|
25189
25213
|
|
|
25190
25214
|
/** ImageMessage accessibilityLabel */
|
|
25191
25215
|
accessibilityLabel?: (string|null);
|
|
25216
|
+
|
|
25217
|
+
/** ImageMessage mediaKeyDomain */
|
|
25218
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
25192
25219
|
}
|
|
25193
25220
|
|
|
25194
25221
|
/** Represents an ImageMessage. */
|
|
@@ -25287,6 +25314,9 @@ export namespace waproto {
|
|
|
25287
25314
|
/** ImageMessage accessibilityLabel. */
|
|
25288
25315
|
public accessibilityLabel?: (string|null);
|
|
25289
25316
|
|
|
25317
|
+
/** ImageMessage mediaKeyDomain. */
|
|
25318
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
25319
|
+
|
|
25290
25320
|
/**
|
|
25291
25321
|
* Creates a new ImageMessage instance using the specified properties.
|
|
25292
25322
|
* @param [properties] Properties to set
|
|
@@ -28589,6 +28619,9 @@ export namespace waproto {
|
|
|
28589
28619
|
|
|
28590
28620
|
/** MMSThumbnailMetadata thumbnailWidth */
|
|
28591
28621
|
thumbnailWidth?: (number|null);
|
|
28622
|
+
|
|
28623
|
+
/** MMSThumbnailMetadata mediaKeyDomain */
|
|
28624
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
28592
28625
|
}
|
|
28593
28626
|
|
|
28594
28627
|
/** Represents a MMSThumbnailMetadata. */
|
|
@@ -28621,6 +28654,9 @@ export namespace waproto {
|
|
|
28621
28654
|
/** MMSThumbnailMetadata thumbnailWidth. */
|
|
28622
28655
|
public thumbnailWidth?: (number|null);
|
|
28623
28656
|
|
|
28657
|
+
/** MMSThumbnailMetadata mediaKeyDomain. */
|
|
28658
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
28659
|
+
|
|
28624
28660
|
/**
|
|
28625
28661
|
* Creates a new MMSThumbnailMetadata instance using the specified properties.
|
|
28626
28662
|
* @param [properties] Properties to set
|
|
@@ -28699,6 +28735,15 @@ export namespace waproto {
|
|
|
28699
28735
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
28700
28736
|
}
|
|
28701
28737
|
|
|
28738
|
+
/** MediaKeyDomain enum. */
|
|
28739
|
+
enum MediaKeyDomain {
|
|
28740
|
+
UNSET = 0,
|
|
28741
|
+
E2EE_CHAT = 1,
|
|
28742
|
+
STATUS = 2,
|
|
28743
|
+
CAPI = 3,
|
|
28744
|
+
BOT = 4
|
|
28745
|
+
}
|
|
28746
|
+
|
|
28702
28747
|
/** Properties of a MessageHistoryBundle. */
|
|
28703
28748
|
interface IMessageHistoryBundle {
|
|
28704
28749
|
|
|
@@ -35050,7 +35095,8 @@ export namespace waproto {
|
|
|
35050
35095
|
enum StatusNotificationType {
|
|
35051
35096
|
UNKNOWN = 0,
|
|
35052
35097
|
STATUS_ADD_YOURS = 1,
|
|
35053
|
-
STATUS_RESHARE = 2
|
|
35098
|
+
STATUS_RESHARE = 2,
|
|
35099
|
+
STATUS_QUESTION_ANSWER_RESHARE = 3
|
|
35054
35100
|
}
|
|
35055
35101
|
}
|
|
35056
35102
|
|
|
@@ -35219,6 +35265,9 @@ export namespace waproto {
|
|
|
35219
35265
|
|
|
35220
35266
|
/** StickerMessage accessibilityLabel */
|
|
35221
35267
|
accessibilityLabel?: (string|null);
|
|
35268
|
+
|
|
35269
|
+
/** StickerMessage mediaKeyDomain */
|
|
35270
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
35222
35271
|
}
|
|
35223
35272
|
|
|
35224
35273
|
/** Represents a StickerMessage. */
|
|
@@ -35290,6 +35339,9 @@ export namespace waproto {
|
|
|
35290
35339
|
/** StickerMessage accessibilityLabel. */
|
|
35291
35340
|
public accessibilityLabel?: (string|null);
|
|
35292
35341
|
|
|
35342
|
+
/** StickerMessage mediaKeyDomain. */
|
|
35343
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
35344
|
+
|
|
35293
35345
|
/**
|
|
35294
35346
|
* Creates a new StickerMessage instance using the specified properties.
|
|
35295
35347
|
* @param [properties] Properties to set
|
|
@@ -36691,6 +36743,9 @@ export namespace waproto {
|
|
|
36691
36743
|
|
|
36692
36744
|
/** VideoMessage videoSourceType */
|
|
36693
36745
|
videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
|
|
36746
|
+
|
|
36747
|
+
/** VideoMessage mediaKeyDomain */
|
|
36748
|
+
mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
36694
36749
|
}
|
|
36695
36750
|
|
|
36696
36751
|
/** Represents a VideoMessage. */
|
|
@@ -36792,6 +36847,9 @@ export namespace waproto {
|
|
|
36792
36847
|
/** VideoMessage videoSourceType. */
|
|
36793
36848
|
public videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
|
|
36794
36849
|
|
|
36850
|
+
/** VideoMessage mediaKeyDomain. */
|
|
36851
|
+
public mediaKeyDomain?: (waproto.Message.MediaKeyDomain|null);
|
|
36852
|
+
|
|
36795
36853
|
/**
|
|
36796
36854
|
* Creates a new VideoMessage instance using the specified properties.
|
|
36797
36855
|
* @param [properties] Properties to set
|
|
@@ -44359,7 +44417,8 @@ export namespace waproto {
|
|
|
44359
44417
|
MESSENGER = 3,
|
|
44360
44418
|
SPOTIFY = 4,
|
|
44361
44419
|
YOUTUBE = 5,
|
|
44362
|
-
PINTEREST = 6
|
|
44420
|
+
PINTEREST = 6,
|
|
44421
|
+
THREADS = 7
|
|
44363
44422
|
}
|
|
44364
44423
|
}
|
|
44365
44424
|
|
package/dist/index.js
CHANGED
|
@@ -43625,6 +43625,7 @@ $root.waproto = (function() {
|
|
|
43625
43625
|
* @property {boolean|null} [supportFbidBotChatHistory] HistorySyncConfig supportFbidBotChatHistory
|
|
43626
43626
|
* @property {boolean|null} [supportAddOnHistorySyncMigration] HistorySyncConfig supportAddOnHistorySyncMigration
|
|
43627
43627
|
* @property {boolean|null} [supportMessageAssociation] HistorySyncConfig supportMessageAssociation
|
|
43628
|
+
* @property {boolean|null} [supportGroupHistory] HistorySyncConfig supportGroupHistory
|
|
43628
43629
|
*/
|
|
43629
43630
|
|
|
43630
43631
|
/**
|
|
@@ -43754,6 +43755,14 @@ $root.waproto = (function() {
|
|
|
43754
43755
|
*/
|
|
43755
43756
|
HistorySyncConfig.prototype.supportMessageAssociation = null;
|
|
43756
43757
|
|
|
43758
|
+
/**
|
|
43759
|
+
* HistorySyncConfig supportGroupHistory.
|
|
43760
|
+
* @member {boolean|null|undefined} supportGroupHistory
|
|
43761
|
+
* @memberof waproto.DeviceProps.HistorySyncConfig
|
|
43762
|
+
* @instance
|
|
43763
|
+
*/
|
|
43764
|
+
HistorySyncConfig.prototype.supportGroupHistory = null;
|
|
43765
|
+
|
|
43757
43766
|
// OneOf field names bound to virtual getters and setters
|
|
43758
43767
|
var $oneOfFields;
|
|
43759
43768
|
|
|
@@ -43841,6 +43850,12 @@ $root.waproto = (function() {
|
|
|
43841
43850
|
set: $util.oneOfSetter($oneOfFields)
|
|
43842
43851
|
});
|
|
43843
43852
|
|
|
43853
|
+
// Virtual OneOf for proto3 optional field
|
|
43854
|
+
Object.defineProperty(HistorySyncConfig.prototype, "_supportGroupHistory", {
|
|
43855
|
+
get: $util.oneOfGetter($oneOfFields = ["supportGroupHistory"]),
|
|
43856
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43857
|
+
});
|
|
43858
|
+
|
|
43844
43859
|
/**
|
|
43845
43860
|
* Creates a new HistorySyncConfig instance using the specified properties.
|
|
43846
43861
|
* @function create
|
|
@@ -43893,6 +43908,8 @@ $root.waproto = (function() {
|
|
|
43893
43908
|
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.supportAddOnHistorySyncMigration);
|
|
43894
43909
|
if (message.supportMessageAssociation != null && Object.hasOwnProperty.call(message, "supportMessageAssociation"))
|
|
43895
43910
|
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.supportMessageAssociation);
|
|
43911
|
+
if (message.supportGroupHistory != null && Object.hasOwnProperty.call(message, "supportGroupHistory"))
|
|
43912
|
+
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.supportGroupHistory);
|
|
43896
43913
|
return writer;
|
|
43897
43914
|
};
|
|
43898
43915
|
|
|
@@ -43983,6 +44000,10 @@ $root.waproto = (function() {
|
|
|
43983
44000
|
message.supportMessageAssociation = reader.bool();
|
|
43984
44001
|
break;
|
|
43985
44002
|
}
|
|
44003
|
+
case 15: {
|
|
44004
|
+
message.supportGroupHistory = reader.bool();
|
|
44005
|
+
break;
|
|
44006
|
+
}
|
|
43986
44007
|
default:
|
|
43987
44008
|
reader.skipType(tag & 7);
|
|
43988
44009
|
break;
|
|
@@ -44089,6 +44110,11 @@ $root.waproto = (function() {
|
|
|
44089
44110
|
if (typeof message.supportMessageAssociation !== "boolean")
|
|
44090
44111
|
return "supportMessageAssociation: boolean expected";
|
|
44091
44112
|
}
|
|
44113
|
+
if (message.supportGroupHistory != null && message.hasOwnProperty("supportGroupHistory")) {
|
|
44114
|
+
properties._supportGroupHistory = 1;
|
|
44115
|
+
if (typeof message.supportGroupHistory !== "boolean")
|
|
44116
|
+
return "supportGroupHistory: boolean expected";
|
|
44117
|
+
}
|
|
44092
44118
|
return null;
|
|
44093
44119
|
};
|
|
44094
44120
|
|
|
@@ -44132,6 +44158,8 @@ $root.waproto = (function() {
|
|
|
44132
44158
|
message.supportAddOnHistorySyncMigration = Boolean(object.supportAddOnHistorySyncMigration);
|
|
44133
44159
|
if (object.supportMessageAssociation != null)
|
|
44134
44160
|
message.supportMessageAssociation = Boolean(object.supportMessageAssociation);
|
|
44161
|
+
if (object.supportGroupHistory != null)
|
|
44162
|
+
message.supportGroupHistory = Boolean(object.supportGroupHistory);
|
|
44135
44163
|
return message;
|
|
44136
44164
|
};
|
|
44137
44165
|
|
|
@@ -44218,6 +44246,11 @@ $root.waproto = (function() {
|
|
|
44218
44246
|
if (options.oneofs)
|
|
44219
44247
|
object._supportMessageAssociation = "supportMessageAssociation";
|
|
44220
44248
|
}
|
|
44249
|
+
if (message.supportGroupHistory != null && message.hasOwnProperty("supportGroupHistory")) {
|
|
44250
|
+
object.supportGroupHistory = message.supportGroupHistory;
|
|
44251
|
+
if (options.oneofs)
|
|
44252
|
+
object._supportGroupHistory = "supportGroupHistory";
|
|
44253
|
+
}
|
|
44221
44254
|
return object;
|
|
44222
44255
|
};
|
|
44223
44256
|
|
|
@@ -63648,6 +63681,7 @@ $root.waproto = (function() {
|
|
|
63648
63681
|
* @property {number|null} [backgroundArgb] AudioMessage backgroundArgb
|
|
63649
63682
|
* @property {boolean|null} [viewOnce] AudioMessage viewOnce
|
|
63650
63683
|
* @property {string|null} [accessibilityLabel] AudioMessage accessibilityLabel
|
|
63684
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] AudioMessage mediaKeyDomain
|
|
63651
63685
|
*/
|
|
63652
63686
|
|
|
63653
63687
|
/**
|
|
@@ -63793,6 +63827,14 @@ $root.waproto = (function() {
|
|
|
63793
63827
|
*/
|
|
63794
63828
|
AudioMessage.prototype.accessibilityLabel = null;
|
|
63795
63829
|
|
|
63830
|
+
/**
|
|
63831
|
+
* AudioMessage mediaKeyDomain.
|
|
63832
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
63833
|
+
* @memberof waproto.Message.AudioMessage
|
|
63834
|
+
* @instance
|
|
63835
|
+
*/
|
|
63836
|
+
AudioMessage.prototype.mediaKeyDomain = null;
|
|
63837
|
+
|
|
63796
63838
|
// OneOf field names bound to virtual getters and setters
|
|
63797
63839
|
var $oneOfFields;
|
|
63798
63840
|
|
|
@@ -63892,6 +63934,12 @@ $root.waproto = (function() {
|
|
|
63892
63934
|
set: $util.oneOfSetter($oneOfFields)
|
|
63893
63935
|
});
|
|
63894
63936
|
|
|
63937
|
+
// Virtual OneOf for proto3 optional field
|
|
63938
|
+
Object.defineProperty(AudioMessage.prototype, "_mediaKeyDomain", {
|
|
63939
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
63940
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
63941
|
+
});
|
|
63942
|
+
|
|
63895
63943
|
/**
|
|
63896
63944
|
* Creates a new AudioMessage instance using the specified properties.
|
|
63897
63945
|
* @function create
|
|
@@ -63948,6 +63996,8 @@ $root.waproto = (function() {
|
|
|
63948
63996
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.viewOnce);
|
|
63949
63997
|
if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
63950
63998
|
writer.uint32(/* id 22, wireType 2 =*/178).string(message.accessibilityLabel);
|
|
63999
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
64000
|
+
writer.uint32(/* id 23, wireType 0 =*/184).int32(message.mediaKeyDomain);
|
|
63951
64001
|
return writer;
|
|
63952
64002
|
};
|
|
63953
64003
|
|
|
@@ -64046,6 +64096,10 @@ $root.waproto = (function() {
|
|
|
64046
64096
|
message.accessibilityLabel = reader.string();
|
|
64047
64097
|
break;
|
|
64048
64098
|
}
|
|
64099
|
+
case 23: {
|
|
64100
|
+
message.mediaKeyDomain = reader.int32();
|
|
64101
|
+
break;
|
|
64102
|
+
}
|
|
64049
64103
|
default:
|
|
64050
64104
|
reader.skipType(tag & 7);
|
|
64051
64105
|
break;
|
|
@@ -64165,6 +64219,19 @@ $root.waproto = (function() {
|
|
|
64165
64219
|
if (!$util.isString(message.accessibilityLabel))
|
|
64166
64220
|
return "accessibilityLabel: string expected";
|
|
64167
64221
|
}
|
|
64222
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
64223
|
+
properties._mediaKeyDomain = 1;
|
|
64224
|
+
switch (message.mediaKeyDomain) {
|
|
64225
|
+
default:
|
|
64226
|
+
return "mediaKeyDomain: enum value expected";
|
|
64227
|
+
case 0:
|
|
64228
|
+
case 1:
|
|
64229
|
+
case 2:
|
|
64230
|
+
case 3:
|
|
64231
|
+
case 4:
|
|
64232
|
+
break;
|
|
64233
|
+
}
|
|
64234
|
+
}
|
|
64168
64235
|
return null;
|
|
64169
64236
|
};
|
|
64170
64237
|
|
|
@@ -64244,6 +64311,34 @@ $root.waproto = (function() {
|
|
|
64244
64311
|
message.viewOnce = Boolean(object.viewOnce);
|
|
64245
64312
|
if (object.accessibilityLabel != null)
|
|
64246
64313
|
message.accessibilityLabel = String(object.accessibilityLabel);
|
|
64314
|
+
switch (object.mediaKeyDomain) {
|
|
64315
|
+
default:
|
|
64316
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
64317
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
64318
|
+
break;
|
|
64319
|
+
}
|
|
64320
|
+
break;
|
|
64321
|
+
case "UNSET":
|
|
64322
|
+
case 0:
|
|
64323
|
+
message.mediaKeyDomain = 0;
|
|
64324
|
+
break;
|
|
64325
|
+
case "E2EE_CHAT":
|
|
64326
|
+
case 1:
|
|
64327
|
+
message.mediaKeyDomain = 1;
|
|
64328
|
+
break;
|
|
64329
|
+
case "STATUS":
|
|
64330
|
+
case 2:
|
|
64331
|
+
message.mediaKeyDomain = 2;
|
|
64332
|
+
break;
|
|
64333
|
+
case "CAPI":
|
|
64334
|
+
case 3:
|
|
64335
|
+
message.mediaKeyDomain = 3;
|
|
64336
|
+
break;
|
|
64337
|
+
case "BOT":
|
|
64338
|
+
case 4:
|
|
64339
|
+
message.mediaKeyDomain = 4;
|
|
64340
|
+
break;
|
|
64341
|
+
}
|
|
64247
64342
|
return message;
|
|
64248
64343
|
};
|
|
64249
64344
|
|
|
@@ -64346,6 +64441,11 @@ $root.waproto = (function() {
|
|
|
64346
64441
|
if (options.oneofs)
|
|
64347
64442
|
object._accessibilityLabel = "accessibilityLabel";
|
|
64348
64443
|
}
|
|
64444
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
64445
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
64446
|
+
if (options.oneofs)
|
|
64447
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
64448
|
+
}
|
|
64349
64449
|
return object;
|
|
64350
64450
|
};
|
|
64351
64451
|
|
|
@@ -70898,6 +70998,7 @@ $root.waproto = (function() {
|
|
|
70898
70998
|
* @property {number|null} [thumbnailWidth] DocumentMessage thumbnailWidth
|
|
70899
70999
|
* @property {string|null} [caption] DocumentMessage caption
|
|
70900
71000
|
* @property {string|null} [accessibilityLabel] DocumentMessage accessibilityLabel
|
|
71001
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] DocumentMessage mediaKeyDomain
|
|
70901
71002
|
*/
|
|
70902
71003
|
|
|
70903
71004
|
/**
|
|
@@ -71083,6 +71184,14 @@ $root.waproto = (function() {
|
|
|
71083
71184
|
*/
|
|
71084
71185
|
DocumentMessage.prototype.accessibilityLabel = null;
|
|
71085
71186
|
|
|
71187
|
+
/**
|
|
71188
|
+
* DocumentMessage mediaKeyDomain.
|
|
71189
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
71190
|
+
* @memberof waproto.Message.DocumentMessage
|
|
71191
|
+
* @instance
|
|
71192
|
+
*/
|
|
71193
|
+
DocumentMessage.prototype.mediaKeyDomain = null;
|
|
71194
|
+
|
|
71086
71195
|
// OneOf field names bound to virtual getters and setters
|
|
71087
71196
|
var $oneOfFields;
|
|
71088
71197
|
|
|
@@ -71212,6 +71321,12 @@ $root.waproto = (function() {
|
|
|
71212
71321
|
set: $util.oneOfSetter($oneOfFields)
|
|
71213
71322
|
});
|
|
71214
71323
|
|
|
71324
|
+
// Virtual OneOf for proto3 optional field
|
|
71325
|
+
Object.defineProperty(DocumentMessage.prototype, "_mediaKeyDomain", {
|
|
71326
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
71327
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
71328
|
+
});
|
|
71329
|
+
|
|
71215
71330
|
/**
|
|
71216
71331
|
* Creates a new DocumentMessage instance using the specified properties.
|
|
71217
71332
|
* @function create
|
|
@@ -71278,6 +71393,8 @@ $root.waproto = (function() {
|
|
|
71278
71393
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.caption);
|
|
71279
71394
|
if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
71280
71395
|
writer.uint32(/* id 21, wireType 2 =*/170).string(message.accessibilityLabel);
|
|
71396
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
71397
|
+
writer.uint32(/* id 22, wireType 0 =*/176).int32(message.mediaKeyDomain);
|
|
71281
71398
|
return writer;
|
|
71282
71399
|
};
|
|
71283
71400
|
|
|
@@ -71396,6 +71513,10 @@ $root.waproto = (function() {
|
|
|
71396
71513
|
message.accessibilityLabel = reader.string();
|
|
71397
71514
|
break;
|
|
71398
71515
|
}
|
|
71516
|
+
case 22: {
|
|
71517
|
+
message.mediaKeyDomain = reader.int32();
|
|
71518
|
+
break;
|
|
71519
|
+
}
|
|
71399
71520
|
default:
|
|
71400
71521
|
reader.skipType(tag & 7);
|
|
71401
71522
|
break;
|
|
@@ -71540,6 +71661,19 @@ $root.waproto = (function() {
|
|
|
71540
71661
|
if (!$util.isString(message.accessibilityLabel))
|
|
71541
71662
|
return "accessibilityLabel: string expected";
|
|
71542
71663
|
}
|
|
71664
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
71665
|
+
properties._mediaKeyDomain = 1;
|
|
71666
|
+
switch (message.mediaKeyDomain) {
|
|
71667
|
+
default:
|
|
71668
|
+
return "mediaKeyDomain: enum value expected";
|
|
71669
|
+
case 0:
|
|
71670
|
+
case 1:
|
|
71671
|
+
case 2:
|
|
71672
|
+
case 3:
|
|
71673
|
+
case 4:
|
|
71674
|
+
break;
|
|
71675
|
+
}
|
|
71676
|
+
}
|
|
71543
71677
|
return null;
|
|
71544
71678
|
};
|
|
71545
71679
|
|
|
@@ -71632,6 +71766,34 @@ $root.waproto = (function() {
|
|
|
71632
71766
|
message.caption = String(object.caption);
|
|
71633
71767
|
if (object.accessibilityLabel != null)
|
|
71634
71768
|
message.accessibilityLabel = String(object.accessibilityLabel);
|
|
71769
|
+
switch (object.mediaKeyDomain) {
|
|
71770
|
+
default:
|
|
71771
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
71772
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
71773
|
+
break;
|
|
71774
|
+
}
|
|
71775
|
+
break;
|
|
71776
|
+
case "UNSET":
|
|
71777
|
+
case 0:
|
|
71778
|
+
message.mediaKeyDomain = 0;
|
|
71779
|
+
break;
|
|
71780
|
+
case "E2EE_CHAT":
|
|
71781
|
+
case 1:
|
|
71782
|
+
message.mediaKeyDomain = 1;
|
|
71783
|
+
break;
|
|
71784
|
+
case "STATUS":
|
|
71785
|
+
case 2:
|
|
71786
|
+
message.mediaKeyDomain = 2;
|
|
71787
|
+
break;
|
|
71788
|
+
case "CAPI":
|
|
71789
|
+
case 3:
|
|
71790
|
+
message.mediaKeyDomain = 3;
|
|
71791
|
+
break;
|
|
71792
|
+
case "BOT":
|
|
71793
|
+
case 4:
|
|
71794
|
+
message.mediaKeyDomain = 4;
|
|
71795
|
+
break;
|
|
71796
|
+
}
|
|
71635
71797
|
return message;
|
|
71636
71798
|
};
|
|
71637
71799
|
|
|
@@ -71759,6 +71921,11 @@ $root.waproto = (function() {
|
|
|
71759
71921
|
if (options.oneofs)
|
|
71760
71922
|
object._accessibilityLabel = "accessibilityLabel";
|
|
71761
71923
|
}
|
|
71924
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
71925
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
71926
|
+
if (options.oneofs)
|
|
71927
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
71928
|
+
}
|
|
71762
71929
|
return object;
|
|
71763
71930
|
};
|
|
71764
71931
|
|
|
@@ -73592,6 +73759,7 @@ $root.waproto = (function() {
|
|
|
73592
73759
|
* @property {waproto.Message.ILinkPreviewMetadata|null} [linkPreviewMetadata] ExtendedTextMessage linkPreviewMetadata
|
|
73593
73760
|
* @property {waproto.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] ExtendedTextMessage paymentLinkMetadata
|
|
73594
73761
|
* @property {Array.<waproto.Message.IVideoEndCard>|null} [endCardTiles] ExtendedTextMessage endCardTiles
|
|
73762
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] ExtendedTextMessage mediaKeyDomain
|
|
73595
73763
|
*/
|
|
73596
73764
|
|
|
73597
73765
|
/**
|
|
@@ -73842,6 +74010,14 @@ $root.waproto = (function() {
|
|
|
73842
74010
|
*/
|
|
73843
74011
|
ExtendedTextMessage.prototype.endCardTiles = $util.emptyArray;
|
|
73844
74012
|
|
|
74013
|
+
/**
|
|
74014
|
+
* ExtendedTextMessage mediaKeyDomain.
|
|
74015
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
74016
|
+
* @memberof waproto.Message.ExtendedTextMessage
|
|
74017
|
+
* @instance
|
|
74018
|
+
*/
|
|
74019
|
+
ExtendedTextMessage.prototype.mediaKeyDomain = null;
|
|
74020
|
+
|
|
73845
74021
|
// OneOf field names bound to virtual getters and setters
|
|
73846
74022
|
var $oneOfFields;
|
|
73847
74023
|
|
|
@@ -74013,6 +74189,12 @@ $root.waproto = (function() {
|
|
|
74013
74189
|
set: $util.oneOfSetter($oneOfFields)
|
|
74014
74190
|
});
|
|
74015
74191
|
|
|
74192
|
+
// Virtual OneOf for proto3 optional field
|
|
74193
|
+
Object.defineProperty(ExtendedTextMessage.prototype, "_mediaKeyDomain", {
|
|
74194
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
74195
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
74196
|
+
});
|
|
74197
|
+
|
|
74016
74198
|
/**
|
|
74017
74199
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
74018
74200
|
* @function create
|
|
@@ -74096,6 +74278,8 @@ $root.waproto = (function() {
|
|
|
74096
74278
|
if (message.endCardTiles != null && message.endCardTiles.length)
|
|
74097
74279
|
for (var i = 0; i < message.endCardTiles.length; ++i)
|
|
74098
74280
|
$root.waproto.Message.VideoEndCard.encode(message.endCardTiles[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
|
|
74281
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
74282
|
+
writer.uint32(/* id 37, wireType 0 =*/296).int32(message.mediaKeyDomain);
|
|
74099
74283
|
return writer;
|
|
74100
74284
|
};
|
|
74101
74285
|
|
|
@@ -74248,6 +74432,10 @@ $root.waproto = (function() {
|
|
|
74248
74432
|
message.endCardTiles.push($root.waproto.Message.VideoEndCard.decode(reader, reader.uint32()));
|
|
74249
74433
|
break;
|
|
74250
74434
|
}
|
|
74435
|
+
case 37: {
|
|
74436
|
+
message.mediaKeyDomain = reader.int32();
|
|
74437
|
+
break;
|
|
74438
|
+
}
|
|
74251
74439
|
default:
|
|
74252
74440
|
reader.skipType(tag & 7);
|
|
74253
74441
|
break;
|
|
@@ -74479,6 +74667,19 @@ $root.waproto = (function() {
|
|
|
74479
74667
|
return "endCardTiles." + error;
|
|
74480
74668
|
}
|
|
74481
74669
|
}
|
|
74670
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
74671
|
+
properties._mediaKeyDomain = 1;
|
|
74672
|
+
switch (message.mediaKeyDomain) {
|
|
74673
|
+
default:
|
|
74674
|
+
return "mediaKeyDomain: enum value expected";
|
|
74675
|
+
case 0:
|
|
74676
|
+
case 1:
|
|
74677
|
+
case 2:
|
|
74678
|
+
case 3:
|
|
74679
|
+
case 4:
|
|
74680
|
+
break;
|
|
74681
|
+
}
|
|
74682
|
+
}
|
|
74482
74683
|
return null;
|
|
74483
74684
|
};
|
|
74484
74685
|
|
|
@@ -74706,6 +74907,34 @@ $root.waproto = (function() {
|
|
|
74706
74907
|
message.endCardTiles[i] = $root.waproto.Message.VideoEndCard.fromObject(object.endCardTiles[i]);
|
|
74707
74908
|
}
|
|
74708
74909
|
}
|
|
74910
|
+
switch (object.mediaKeyDomain) {
|
|
74911
|
+
default:
|
|
74912
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
74913
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
74914
|
+
break;
|
|
74915
|
+
}
|
|
74916
|
+
break;
|
|
74917
|
+
case "UNSET":
|
|
74918
|
+
case 0:
|
|
74919
|
+
message.mediaKeyDomain = 0;
|
|
74920
|
+
break;
|
|
74921
|
+
case "E2EE_CHAT":
|
|
74922
|
+
case 1:
|
|
74923
|
+
message.mediaKeyDomain = 1;
|
|
74924
|
+
break;
|
|
74925
|
+
case "STATUS":
|
|
74926
|
+
case 2:
|
|
74927
|
+
message.mediaKeyDomain = 2;
|
|
74928
|
+
break;
|
|
74929
|
+
case "CAPI":
|
|
74930
|
+
case 3:
|
|
74931
|
+
message.mediaKeyDomain = 3;
|
|
74932
|
+
break;
|
|
74933
|
+
case "BOT":
|
|
74934
|
+
case 4:
|
|
74935
|
+
message.mediaKeyDomain = 4;
|
|
74936
|
+
break;
|
|
74937
|
+
}
|
|
74709
74938
|
return message;
|
|
74710
74939
|
};
|
|
74711
74940
|
|
|
@@ -74872,6 +75101,11 @@ $root.waproto = (function() {
|
|
|
74872
75101
|
for (var j = 0; j < message.endCardTiles.length; ++j)
|
|
74873
75102
|
object.endCardTiles[j] = $root.waproto.Message.VideoEndCard.toObject(message.endCardTiles[j], options);
|
|
74874
75103
|
}
|
|
75104
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
75105
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
75106
|
+
if (options.oneofs)
|
|
75107
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
75108
|
+
}
|
|
74875
75109
|
return object;
|
|
74876
75110
|
};
|
|
74877
75111
|
|
|
@@ -78762,6 +78996,7 @@ $root.waproto = (function() {
|
|
|
78762
78996
|
* @property {Array.<waproto.IInteractiveAnnotation>|null} [annotations] ImageMessage annotations
|
|
78763
78997
|
* @property {waproto.Message.ImageMessage.ImageSourceType|null} [imageSourceType] ImageMessage imageSourceType
|
|
78764
78998
|
* @property {string|null} [accessibilityLabel] ImageMessage accessibilityLabel
|
|
78999
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] ImageMessage mediaKeyDomain
|
|
78765
79000
|
*/
|
|
78766
79001
|
|
|
78767
79002
|
/**
|
|
@@ -79014,6 +79249,14 @@ $root.waproto = (function() {
|
|
|
79014
79249
|
*/
|
|
79015
79250
|
ImageMessage.prototype.accessibilityLabel = null;
|
|
79016
79251
|
|
|
79252
|
+
/**
|
|
79253
|
+
* ImageMessage mediaKeyDomain.
|
|
79254
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
79255
|
+
* @memberof waproto.Message.ImageMessage
|
|
79256
|
+
* @instance
|
|
79257
|
+
*/
|
|
79258
|
+
ImageMessage.prototype.mediaKeyDomain = null;
|
|
79259
|
+
|
|
79017
79260
|
// OneOf field names bound to virtual getters and setters
|
|
79018
79261
|
var $oneOfFields;
|
|
79019
79262
|
|
|
@@ -79173,6 +79416,12 @@ $root.waproto = (function() {
|
|
|
79173
79416
|
set: $util.oneOfSetter($oneOfFields)
|
|
79174
79417
|
});
|
|
79175
79418
|
|
|
79419
|
+
// Virtual OneOf for proto3 optional field
|
|
79420
|
+
Object.defineProperty(ImageMessage.prototype, "_mediaKeyDomain", {
|
|
79421
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
79422
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79423
|
+
});
|
|
79424
|
+
|
|
79176
79425
|
/**
|
|
79177
79426
|
* Creates a new ImageMessage instance using the specified properties.
|
|
79178
79427
|
* @function create
|
|
@@ -79261,6 +79510,8 @@ $root.waproto = (function() {
|
|
|
79261
79510
|
writer.uint32(/* id 31, wireType 0 =*/248).int32(message.imageSourceType);
|
|
79262
79511
|
if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
79263
79512
|
writer.uint32(/* id 32, wireType 2 =*/258).string(message.accessibilityLabel);
|
|
79513
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
79514
|
+
writer.uint32(/* id 33, wireType 0 =*/264).int32(message.mediaKeyDomain);
|
|
79264
79515
|
return writer;
|
|
79265
79516
|
};
|
|
79266
79517
|
|
|
@@ -79422,6 +79673,10 @@ $root.waproto = (function() {
|
|
|
79422
79673
|
message.accessibilityLabel = reader.string();
|
|
79423
79674
|
break;
|
|
79424
79675
|
}
|
|
79676
|
+
case 33: {
|
|
79677
|
+
message.mediaKeyDomain = reader.int32();
|
|
79678
|
+
break;
|
|
79679
|
+
}
|
|
79425
79680
|
default:
|
|
79426
79681
|
reader.skipType(tag & 7);
|
|
79427
79682
|
break;
|
|
@@ -79623,6 +79878,19 @@ $root.waproto = (function() {
|
|
|
79623
79878
|
if (!$util.isString(message.accessibilityLabel))
|
|
79624
79879
|
return "accessibilityLabel: string expected";
|
|
79625
79880
|
}
|
|
79881
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
79882
|
+
properties._mediaKeyDomain = 1;
|
|
79883
|
+
switch (message.mediaKeyDomain) {
|
|
79884
|
+
default:
|
|
79885
|
+
return "mediaKeyDomain: enum value expected";
|
|
79886
|
+
case 0:
|
|
79887
|
+
case 1:
|
|
79888
|
+
case 2:
|
|
79889
|
+
case 3:
|
|
79890
|
+
case 4:
|
|
79891
|
+
break;
|
|
79892
|
+
}
|
|
79893
|
+
}
|
|
79626
79894
|
return null;
|
|
79627
79895
|
};
|
|
79628
79896
|
|
|
@@ -79786,6 +80054,34 @@ $root.waproto = (function() {
|
|
|
79786
80054
|
}
|
|
79787
80055
|
if (object.accessibilityLabel != null)
|
|
79788
80056
|
message.accessibilityLabel = String(object.accessibilityLabel);
|
|
80057
|
+
switch (object.mediaKeyDomain) {
|
|
80058
|
+
default:
|
|
80059
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
80060
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
80061
|
+
break;
|
|
80062
|
+
}
|
|
80063
|
+
break;
|
|
80064
|
+
case "UNSET":
|
|
80065
|
+
case 0:
|
|
80066
|
+
message.mediaKeyDomain = 0;
|
|
80067
|
+
break;
|
|
80068
|
+
case "E2EE_CHAT":
|
|
80069
|
+
case 1:
|
|
80070
|
+
message.mediaKeyDomain = 1;
|
|
80071
|
+
break;
|
|
80072
|
+
case "STATUS":
|
|
80073
|
+
case 2:
|
|
80074
|
+
message.mediaKeyDomain = 2;
|
|
80075
|
+
break;
|
|
80076
|
+
case "CAPI":
|
|
80077
|
+
case 3:
|
|
80078
|
+
message.mediaKeyDomain = 3;
|
|
80079
|
+
break;
|
|
80080
|
+
case "BOT":
|
|
80081
|
+
case 4:
|
|
80082
|
+
message.mediaKeyDomain = 4;
|
|
80083
|
+
break;
|
|
80084
|
+
}
|
|
79789
80085
|
return message;
|
|
79790
80086
|
};
|
|
79791
80087
|
|
|
@@ -79958,6 +80254,11 @@ $root.waproto = (function() {
|
|
|
79958
80254
|
if (options.oneofs)
|
|
79959
80255
|
object._accessibilityLabel = "accessibilityLabel";
|
|
79960
80256
|
}
|
|
80257
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
80258
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
80259
|
+
if (options.oneofs)
|
|
80260
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
80261
|
+
}
|
|
79961
80262
|
return object;
|
|
79962
80263
|
};
|
|
79963
80264
|
|
|
@@ -89101,6 +89402,7 @@ $root.waproto = (function() {
|
|
|
89101
89402
|
* @property {number|Long|null} [mediaKeyTimestamp] MMSThumbnailMetadata mediaKeyTimestamp
|
|
89102
89403
|
* @property {number|null} [thumbnailHeight] MMSThumbnailMetadata thumbnailHeight
|
|
89103
89404
|
* @property {number|null} [thumbnailWidth] MMSThumbnailMetadata thumbnailWidth
|
|
89405
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] MMSThumbnailMetadata mediaKeyDomain
|
|
89104
89406
|
*/
|
|
89105
89407
|
|
|
89106
89408
|
/**
|
|
@@ -89174,6 +89476,14 @@ $root.waproto = (function() {
|
|
|
89174
89476
|
*/
|
|
89175
89477
|
MMSThumbnailMetadata.prototype.thumbnailWidth = null;
|
|
89176
89478
|
|
|
89479
|
+
/**
|
|
89480
|
+
* MMSThumbnailMetadata mediaKeyDomain.
|
|
89481
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
89482
|
+
* @memberof waproto.Message.MMSThumbnailMetadata
|
|
89483
|
+
* @instance
|
|
89484
|
+
*/
|
|
89485
|
+
MMSThumbnailMetadata.prototype.mediaKeyDomain = null;
|
|
89486
|
+
|
|
89177
89487
|
// OneOf field names bound to virtual getters and setters
|
|
89178
89488
|
var $oneOfFields;
|
|
89179
89489
|
|
|
@@ -89219,6 +89529,12 @@ $root.waproto = (function() {
|
|
|
89219
89529
|
set: $util.oneOfSetter($oneOfFields)
|
|
89220
89530
|
});
|
|
89221
89531
|
|
|
89532
|
+
// Virtual OneOf for proto3 optional field
|
|
89533
|
+
Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKeyDomain", {
|
|
89534
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
89535
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
89536
|
+
});
|
|
89537
|
+
|
|
89222
89538
|
/**
|
|
89223
89539
|
* Creates a new MMSThumbnailMetadata instance using the specified properties.
|
|
89224
89540
|
* @function create
|
|
@@ -89257,6 +89573,8 @@ $root.waproto = (function() {
|
|
|
89257
89573
|
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.thumbnailHeight);
|
|
89258
89574
|
if (message.thumbnailWidth != null && Object.hasOwnProperty.call(message, "thumbnailWidth"))
|
|
89259
89575
|
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.thumbnailWidth);
|
|
89576
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
89577
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.mediaKeyDomain);
|
|
89260
89578
|
return writer;
|
|
89261
89579
|
};
|
|
89262
89580
|
|
|
@@ -89319,6 +89637,10 @@ $root.waproto = (function() {
|
|
|
89319
89637
|
message.thumbnailWidth = reader.uint32();
|
|
89320
89638
|
break;
|
|
89321
89639
|
}
|
|
89640
|
+
case 8: {
|
|
89641
|
+
message.mediaKeyDomain = reader.int32();
|
|
89642
|
+
break;
|
|
89643
|
+
}
|
|
89322
89644
|
default:
|
|
89323
89645
|
reader.skipType(tag & 7);
|
|
89324
89646
|
break;
|
|
@@ -89390,6 +89712,19 @@ $root.waproto = (function() {
|
|
|
89390
89712
|
if (!$util.isInteger(message.thumbnailWidth))
|
|
89391
89713
|
return "thumbnailWidth: integer expected";
|
|
89392
89714
|
}
|
|
89715
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
89716
|
+
properties._mediaKeyDomain = 1;
|
|
89717
|
+
switch (message.mediaKeyDomain) {
|
|
89718
|
+
default:
|
|
89719
|
+
return "mediaKeyDomain: enum value expected";
|
|
89720
|
+
case 0:
|
|
89721
|
+
case 1:
|
|
89722
|
+
case 2:
|
|
89723
|
+
case 3:
|
|
89724
|
+
case 4:
|
|
89725
|
+
break;
|
|
89726
|
+
}
|
|
89727
|
+
}
|
|
89393
89728
|
return null;
|
|
89394
89729
|
};
|
|
89395
89730
|
|
|
@@ -89435,6 +89770,34 @@ $root.waproto = (function() {
|
|
|
89435
89770
|
message.thumbnailHeight = object.thumbnailHeight >>> 0;
|
|
89436
89771
|
if (object.thumbnailWidth != null)
|
|
89437
89772
|
message.thumbnailWidth = object.thumbnailWidth >>> 0;
|
|
89773
|
+
switch (object.mediaKeyDomain) {
|
|
89774
|
+
default:
|
|
89775
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
89776
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
89777
|
+
break;
|
|
89778
|
+
}
|
|
89779
|
+
break;
|
|
89780
|
+
case "UNSET":
|
|
89781
|
+
case 0:
|
|
89782
|
+
message.mediaKeyDomain = 0;
|
|
89783
|
+
break;
|
|
89784
|
+
case "E2EE_CHAT":
|
|
89785
|
+
case 1:
|
|
89786
|
+
message.mediaKeyDomain = 1;
|
|
89787
|
+
break;
|
|
89788
|
+
case "STATUS":
|
|
89789
|
+
case 2:
|
|
89790
|
+
message.mediaKeyDomain = 2;
|
|
89791
|
+
break;
|
|
89792
|
+
case "CAPI":
|
|
89793
|
+
case 3:
|
|
89794
|
+
message.mediaKeyDomain = 3;
|
|
89795
|
+
break;
|
|
89796
|
+
case "BOT":
|
|
89797
|
+
case 4:
|
|
89798
|
+
message.mediaKeyDomain = 4;
|
|
89799
|
+
break;
|
|
89800
|
+
}
|
|
89438
89801
|
return message;
|
|
89439
89802
|
};
|
|
89440
89803
|
|
|
@@ -89489,6 +89852,11 @@ $root.waproto = (function() {
|
|
|
89489
89852
|
if (options.oneofs)
|
|
89490
89853
|
object._thumbnailWidth = "thumbnailWidth";
|
|
89491
89854
|
}
|
|
89855
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
89856
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
89857
|
+
if (options.oneofs)
|
|
89858
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
89859
|
+
}
|
|
89492
89860
|
return object;
|
|
89493
89861
|
};
|
|
89494
89862
|
|
|
@@ -89521,6 +89889,26 @@ $root.waproto = (function() {
|
|
|
89521
89889
|
return MMSThumbnailMetadata;
|
|
89522
89890
|
})();
|
|
89523
89891
|
|
|
89892
|
+
/**
|
|
89893
|
+
* MediaKeyDomain enum.
|
|
89894
|
+
* @name waproto.Message.MediaKeyDomain
|
|
89895
|
+
* @enum {number}
|
|
89896
|
+
* @property {number} UNSET=0 UNSET value
|
|
89897
|
+
* @property {number} E2EE_CHAT=1 E2EE_CHAT value
|
|
89898
|
+
* @property {number} STATUS=2 STATUS value
|
|
89899
|
+
* @property {number} CAPI=3 CAPI value
|
|
89900
|
+
* @property {number} BOT=4 BOT value
|
|
89901
|
+
*/
|
|
89902
|
+
Message.MediaKeyDomain = (function() {
|
|
89903
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
89904
|
+
values[valuesById[0] = "UNSET"] = 0;
|
|
89905
|
+
values[valuesById[1] = "E2EE_CHAT"] = 1;
|
|
89906
|
+
values[valuesById[2] = "STATUS"] = 2;
|
|
89907
|
+
values[valuesById[3] = "CAPI"] = 3;
|
|
89908
|
+
values[valuesById[4] = "BOT"] = 4;
|
|
89909
|
+
return values;
|
|
89910
|
+
})();
|
|
89911
|
+
|
|
89524
89912
|
Message.MessageHistoryBundle = (function() {
|
|
89525
89913
|
|
|
89526
89914
|
/**
|
|
@@ -107786,6 +108174,7 @@ $root.waproto = (function() {
|
|
|
107786
108174
|
case 0:
|
|
107787
108175
|
case 1:
|
|
107788
108176
|
case 2:
|
|
108177
|
+
case 3:
|
|
107789
108178
|
break;
|
|
107790
108179
|
}
|
|
107791
108180
|
}
|
|
@@ -107833,6 +108222,10 @@ $root.waproto = (function() {
|
|
|
107833
108222
|
case 2:
|
|
107834
108223
|
message.type = 2;
|
|
107835
108224
|
break;
|
|
108225
|
+
case "STATUS_QUESTION_ANSWER_RESHARE":
|
|
108226
|
+
case 3:
|
|
108227
|
+
message.type = 3;
|
|
108228
|
+
break;
|
|
107836
108229
|
}
|
|
107837
108230
|
return message;
|
|
107838
108231
|
};
|
|
@@ -107901,12 +108294,14 @@ $root.waproto = (function() {
|
|
|
107901
108294
|
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
107902
108295
|
* @property {number} STATUS_ADD_YOURS=1 STATUS_ADD_YOURS value
|
|
107903
108296
|
* @property {number} STATUS_RESHARE=2 STATUS_RESHARE value
|
|
108297
|
+
* @property {number} STATUS_QUESTION_ANSWER_RESHARE=3 STATUS_QUESTION_ANSWER_RESHARE value
|
|
107904
108298
|
*/
|
|
107905
108299
|
StatusNotificationMessage.StatusNotificationType = (function() {
|
|
107906
108300
|
var valuesById = {}, values = Object.create(valuesById);
|
|
107907
108301
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
107908
108302
|
values[valuesById[1] = "STATUS_ADD_YOURS"] = 1;
|
|
107909
108303
|
values[valuesById[2] = "STATUS_RESHARE"] = 2;
|
|
108304
|
+
values[valuesById[3] = "STATUS_QUESTION_ANSWER_RESHARE"] = 3;
|
|
107910
108305
|
return values;
|
|
107911
108306
|
})();
|
|
107912
108307
|
|
|
@@ -108194,6 +108589,7 @@ $root.waproto = (function() {
|
|
|
108194
108589
|
* @property {boolean|null} [isAiSticker] StickerMessage isAiSticker
|
|
108195
108590
|
* @property {boolean|null} [isLottie] StickerMessage isLottie
|
|
108196
108591
|
* @property {string|null} [accessibilityLabel] StickerMessage accessibilityLabel
|
|
108592
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] StickerMessage mediaKeyDomain
|
|
108197
108593
|
*/
|
|
108198
108594
|
|
|
108199
108595
|
/**
|
|
@@ -108371,6 +108767,14 @@ $root.waproto = (function() {
|
|
|
108371
108767
|
*/
|
|
108372
108768
|
StickerMessage.prototype.accessibilityLabel = null;
|
|
108373
108769
|
|
|
108770
|
+
/**
|
|
108771
|
+
* StickerMessage mediaKeyDomain.
|
|
108772
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
108773
|
+
* @memberof waproto.Message.StickerMessage
|
|
108774
|
+
* @instance
|
|
108775
|
+
*/
|
|
108776
|
+
StickerMessage.prototype.mediaKeyDomain = null;
|
|
108777
|
+
|
|
108374
108778
|
// OneOf field names bound to virtual getters and setters
|
|
108375
108779
|
var $oneOfFields;
|
|
108376
108780
|
|
|
@@ -108494,6 +108898,12 @@ $root.waproto = (function() {
|
|
|
108494
108898
|
set: $util.oneOfSetter($oneOfFields)
|
|
108495
108899
|
});
|
|
108496
108900
|
|
|
108901
|
+
// Virtual OneOf for proto3 optional field
|
|
108902
|
+
Object.defineProperty(StickerMessage.prototype, "_mediaKeyDomain", {
|
|
108903
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
108904
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
108905
|
+
});
|
|
108906
|
+
|
|
108497
108907
|
/**
|
|
108498
108908
|
* Creates a new StickerMessage instance using the specified properties.
|
|
108499
108909
|
* @function create
|
|
@@ -108558,6 +108968,8 @@ $root.waproto = (function() {
|
|
|
108558
108968
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isLottie);
|
|
108559
108969
|
if (message.accessibilityLabel != null && Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
108560
108970
|
writer.uint32(/* id 22, wireType 2 =*/178).string(message.accessibilityLabel);
|
|
108971
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
108972
|
+
writer.uint32(/* id 23, wireType 0 =*/184).int32(message.mediaKeyDomain);
|
|
108561
108973
|
return writer;
|
|
108562
108974
|
};
|
|
108563
108975
|
|
|
@@ -108672,6 +109084,10 @@ $root.waproto = (function() {
|
|
|
108672
109084
|
message.accessibilityLabel = reader.string();
|
|
108673
109085
|
break;
|
|
108674
109086
|
}
|
|
109087
|
+
case 23: {
|
|
109088
|
+
message.mediaKeyDomain = reader.int32();
|
|
109089
|
+
break;
|
|
109090
|
+
}
|
|
108675
109091
|
default:
|
|
108676
109092
|
reader.skipType(tag & 7);
|
|
108677
109093
|
break;
|
|
@@ -108811,6 +109227,19 @@ $root.waproto = (function() {
|
|
|
108811
109227
|
if (!$util.isString(message.accessibilityLabel))
|
|
108812
109228
|
return "accessibilityLabel: string expected";
|
|
108813
109229
|
}
|
|
109230
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
109231
|
+
properties._mediaKeyDomain = 1;
|
|
109232
|
+
switch (message.mediaKeyDomain) {
|
|
109233
|
+
default:
|
|
109234
|
+
return "mediaKeyDomain: enum value expected";
|
|
109235
|
+
case 0:
|
|
109236
|
+
case 1:
|
|
109237
|
+
case 2:
|
|
109238
|
+
case 3:
|
|
109239
|
+
case 4:
|
|
109240
|
+
break;
|
|
109241
|
+
}
|
|
109242
|
+
}
|
|
108814
109243
|
return null;
|
|
108815
109244
|
};
|
|
108816
109245
|
|
|
@@ -108905,6 +109334,34 @@ $root.waproto = (function() {
|
|
|
108905
109334
|
message.isLottie = Boolean(object.isLottie);
|
|
108906
109335
|
if (object.accessibilityLabel != null)
|
|
108907
109336
|
message.accessibilityLabel = String(object.accessibilityLabel);
|
|
109337
|
+
switch (object.mediaKeyDomain) {
|
|
109338
|
+
default:
|
|
109339
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
109340
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
109341
|
+
break;
|
|
109342
|
+
}
|
|
109343
|
+
break;
|
|
109344
|
+
case "UNSET":
|
|
109345
|
+
case 0:
|
|
109346
|
+
message.mediaKeyDomain = 0;
|
|
109347
|
+
break;
|
|
109348
|
+
case "E2EE_CHAT":
|
|
109349
|
+
case 1:
|
|
109350
|
+
message.mediaKeyDomain = 1;
|
|
109351
|
+
break;
|
|
109352
|
+
case "STATUS":
|
|
109353
|
+
case 2:
|
|
109354
|
+
message.mediaKeyDomain = 2;
|
|
109355
|
+
break;
|
|
109356
|
+
case "CAPI":
|
|
109357
|
+
case 3:
|
|
109358
|
+
message.mediaKeyDomain = 3;
|
|
109359
|
+
break;
|
|
109360
|
+
case "BOT":
|
|
109361
|
+
case 4:
|
|
109362
|
+
message.mediaKeyDomain = 4;
|
|
109363
|
+
break;
|
|
109364
|
+
}
|
|
108908
109365
|
return message;
|
|
108909
109366
|
};
|
|
108910
109367
|
|
|
@@ -109030,6 +109487,11 @@ $root.waproto = (function() {
|
|
|
109030
109487
|
if (options.oneofs)
|
|
109031
109488
|
object._accessibilityLabel = "accessibilityLabel";
|
|
109032
109489
|
}
|
|
109490
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
109491
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
109492
|
+
if (options.oneofs)
|
|
109493
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
109494
|
+
}
|
|
109033
109495
|
return object;
|
|
109034
109496
|
};
|
|
109035
109497
|
|
|
@@ -113076,6 +113538,7 @@ $root.waproto = (function() {
|
|
|
113076
113538
|
* @property {number|Long|null} [motionPhotoPresentationOffsetMs] VideoMessage motionPhotoPresentationOffsetMs
|
|
113077
113539
|
* @property {string|null} [metadataUrl] VideoMessage metadataUrl
|
|
113078
113540
|
* @property {waproto.Message.VideoMessage.VideoSourceType|null} [videoSourceType] VideoMessage videoSourceType
|
|
113541
|
+
* @property {waproto.Message.MediaKeyDomain|null} [mediaKeyDomain] VideoMessage mediaKeyDomain
|
|
113079
113542
|
*/
|
|
113080
113543
|
|
|
113081
113544
|
/**
|
|
@@ -113336,6 +113799,14 @@ $root.waproto = (function() {
|
|
|
113336
113799
|
*/
|
|
113337
113800
|
VideoMessage.prototype.videoSourceType = null;
|
|
113338
113801
|
|
|
113802
|
+
/**
|
|
113803
|
+
* VideoMessage mediaKeyDomain.
|
|
113804
|
+
* @member {waproto.Message.MediaKeyDomain|null|undefined} mediaKeyDomain
|
|
113805
|
+
* @memberof waproto.Message.VideoMessage
|
|
113806
|
+
* @instance
|
|
113807
|
+
*/
|
|
113808
|
+
VideoMessage.prototype.mediaKeyDomain = null;
|
|
113809
|
+
|
|
113339
113810
|
// OneOf field names bound to virtual getters and setters
|
|
113340
113811
|
var $oneOfFields;
|
|
113341
113812
|
|
|
@@ -113501,6 +113972,12 @@ $root.waproto = (function() {
|
|
|
113501
113972
|
set: $util.oneOfSetter($oneOfFields)
|
|
113502
113973
|
});
|
|
113503
113974
|
|
|
113975
|
+
// Virtual OneOf for proto3 optional field
|
|
113976
|
+
Object.defineProperty(VideoMessage.prototype, "_mediaKeyDomain", {
|
|
113977
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaKeyDomain"]),
|
|
113978
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
113979
|
+
});
|
|
113980
|
+
|
|
113504
113981
|
/**
|
|
113505
113982
|
* Creates a new VideoMessage instance using the specified properties.
|
|
113506
113983
|
* @function create
|
|
@@ -113588,6 +114065,8 @@ $root.waproto = (function() {
|
|
|
113588
114065
|
writer.uint32(/* id 30, wireType 2 =*/242).string(message.metadataUrl);
|
|
113589
114066
|
if (message.videoSourceType != null && Object.hasOwnProperty.call(message, "videoSourceType"))
|
|
113590
114067
|
writer.uint32(/* id 31, wireType 0 =*/248).int32(message.videoSourceType);
|
|
114068
|
+
if (message.mediaKeyDomain != null && Object.hasOwnProperty.call(message, "mediaKeyDomain"))
|
|
114069
|
+
writer.uint32(/* id 32, wireType 0 =*/256).int32(message.mediaKeyDomain);
|
|
113591
114070
|
return writer;
|
|
113592
114071
|
};
|
|
113593
114072
|
|
|
@@ -113748,6 +114227,10 @@ $root.waproto = (function() {
|
|
|
113748
114227
|
message.videoSourceType = reader.int32();
|
|
113749
114228
|
break;
|
|
113750
114229
|
}
|
|
114230
|
+
case 32: {
|
|
114231
|
+
message.mediaKeyDomain = reader.int32();
|
|
114232
|
+
break;
|
|
114233
|
+
}
|
|
113751
114234
|
default:
|
|
113752
114235
|
reader.skipType(tag & 7);
|
|
113753
114236
|
break;
|
|
@@ -113960,6 +114443,19 @@ $root.waproto = (function() {
|
|
|
113960
114443
|
break;
|
|
113961
114444
|
}
|
|
113962
114445
|
}
|
|
114446
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
114447
|
+
properties._mediaKeyDomain = 1;
|
|
114448
|
+
switch (message.mediaKeyDomain) {
|
|
114449
|
+
default:
|
|
114450
|
+
return "mediaKeyDomain: enum value expected";
|
|
114451
|
+
case 0:
|
|
114452
|
+
case 1:
|
|
114453
|
+
case 2:
|
|
114454
|
+
case 3:
|
|
114455
|
+
case 4:
|
|
114456
|
+
break;
|
|
114457
|
+
}
|
|
114458
|
+
}
|
|
113963
114459
|
return null;
|
|
113964
114460
|
};
|
|
113965
114461
|
|
|
@@ -114136,6 +114632,34 @@ $root.waproto = (function() {
|
|
|
114136
114632
|
message.videoSourceType = 1;
|
|
114137
114633
|
break;
|
|
114138
114634
|
}
|
|
114635
|
+
switch (object.mediaKeyDomain) {
|
|
114636
|
+
default:
|
|
114637
|
+
if (typeof object.mediaKeyDomain === "number") {
|
|
114638
|
+
message.mediaKeyDomain = object.mediaKeyDomain;
|
|
114639
|
+
break;
|
|
114640
|
+
}
|
|
114641
|
+
break;
|
|
114642
|
+
case "UNSET":
|
|
114643
|
+
case 0:
|
|
114644
|
+
message.mediaKeyDomain = 0;
|
|
114645
|
+
break;
|
|
114646
|
+
case "E2EE_CHAT":
|
|
114647
|
+
case 1:
|
|
114648
|
+
message.mediaKeyDomain = 1;
|
|
114649
|
+
break;
|
|
114650
|
+
case "STATUS":
|
|
114651
|
+
case 2:
|
|
114652
|
+
message.mediaKeyDomain = 2;
|
|
114653
|
+
break;
|
|
114654
|
+
case "CAPI":
|
|
114655
|
+
case 3:
|
|
114656
|
+
message.mediaKeyDomain = 3;
|
|
114657
|
+
break;
|
|
114658
|
+
case "BOT":
|
|
114659
|
+
case 4:
|
|
114660
|
+
message.mediaKeyDomain = 4;
|
|
114661
|
+
break;
|
|
114662
|
+
}
|
|
114139
114663
|
return message;
|
|
114140
114664
|
};
|
|
114141
114665
|
|
|
@@ -114316,6 +114840,11 @@ $root.waproto = (function() {
|
|
|
114316
114840
|
if (options.oneofs)
|
|
114317
114841
|
object._videoSourceType = "videoSourceType";
|
|
114318
114842
|
}
|
|
114843
|
+
if (message.mediaKeyDomain != null && message.hasOwnProperty("mediaKeyDomain")) {
|
|
114844
|
+
object.mediaKeyDomain = options.enums === String ? $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] === undefined ? message.mediaKeyDomain : $root.waproto.Message.MediaKeyDomain[message.mediaKeyDomain] : message.mediaKeyDomain;
|
|
114845
|
+
if (options.oneofs)
|
|
114846
|
+
object._mediaKeyDomain = "mediaKeyDomain";
|
|
114847
|
+
}
|
|
114319
114848
|
return object;
|
|
114320
114849
|
};
|
|
114321
114850
|
|
|
@@ -136644,6 +137173,7 @@ $root.waproto = (function() {
|
|
|
136644
137173
|
case 4:
|
|
136645
137174
|
case 5:
|
|
136646
137175
|
case 6:
|
|
137176
|
+
case 7:
|
|
136647
137177
|
break;
|
|
136648
137178
|
}
|
|
136649
137179
|
}
|
|
@@ -136709,6 +137239,10 @@ $root.waproto = (function() {
|
|
|
136709
137239
|
case 6:
|
|
136710
137240
|
message.source = 6;
|
|
136711
137241
|
break;
|
|
137242
|
+
case "THREADS":
|
|
137243
|
+
case 7:
|
|
137244
|
+
message.source = 7;
|
|
137245
|
+
break;
|
|
136712
137246
|
}
|
|
136713
137247
|
if (object.duration != null)
|
|
136714
137248
|
message.duration = object.duration | 0;
|
|
@@ -136790,6 +137324,7 @@ $root.waproto = (function() {
|
|
|
136790
137324
|
* @property {number} SPOTIFY=4 SPOTIFY value
|
|
136791
137325
|
* @property {number} YOUTUBE=5 YOUTUBE value
|
|
136792
137326
|
* @property {number} PINTEREST=6 PINTEREST value
|
|
137327
|
+
* @property {number} THREADS=7 THREADS value
|
|
136793
137328
|
*/
|
|
136794
137329
|
ExternalShare.Source = (function() {
|
|
136795
137330
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -136800,6 +137335,7 @@ $root.waproto = (function() {
|
|
|
136800
137335
|
values[valuesById[4] = "SPOTIFY"] = 4;
|
|
136801
137336
|
values[valuesById[5] = "YOUTUBE"] = 5;
|
|
136802
137337
|
values[valuesById[6] = "PINTEREST"] = 6;
|
|
137338
|
+
values[valuesById[7] = "THREADS"] = 7;
|
|
136803
137339
|
return values;
|
|
136804
137340
|
})();
|
|
136805
137341
|
|