@wppconnect/wa-proto 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/WAProto.proto +10 -1
- package/dist/index.d.ts +23 -4
- package/dist/index.js +115 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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.1019640807
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -83,6 +83,7 @@ message AIRichResponseMessage {
|
|
|
83
83
|
message AIRichResponseImageURL {
|
|
84
84
|
optional string imagePreviewUrl = 1;
|
|
85
85
|
optional string imageHighResUrl = 2;
|
|
86
|
+
optional string sourceUrl = 3;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
message AIRichResponseInlineImageMetadata {
|
|
@@ -224,6 +225,8 @@ message BotCapabilityMetadata {
|
|
|
224
225
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
|
225
226
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
|
226
227
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
|
228
|
+
RICH_RESPONSE_SUB_HEADING = 21;
|
|
229
|
+
RICH_RESPONSE_GRID_IMAGE = 22;
|
|
227
230
|
}
|
|
228
231
|
}
|
|
229
232
|
|
|
@@ -718,6 +721,7 @@ message ClientPayload {
|
|
|
718
721
|
WIN_STORE = 2;
|
|
719
722
|
DARWIN = 3;
|
|
720
723
|
WIN32 = 4;
|
|
724
|
+
WIN_HYBRID = 5;
|
|
721
725
|
}
|
|
722
726
|
message WebdPayload {
|
|
723
727
|
optional bool usesParticipantInKey = 1;
|
|
@@ -864,6 +868,7 @@ message ContextInfo {
|
|
|
864
868
|
optional bool cannotBeReactedTo = 1;
|
|
865
869
|
optional bool cannotBeRanked = 2;
|
|
866
870
|
optional bool canRequestFeedback = 3;
|
|
871
|
+
optional bool canBeReshared = 4;
|
|
867
872
|
}
|
|
868
873
|
|
|
869
874
|
message ForwardedAIBotMessageInfo {
|
|
@@ -888,6 +893,7 @@ message ContextInfo {
|
|
|
888
893
|
enum StatusAttributionType {
|
|
889
894
|
NONE = 0;
|
|
890
895
|
RESHARED_FROM_MENTION = 1;
|
|
896
|
+
RESHARED_FROM_POST = 2;
|
|
891
897
|
}
|
|
892
898
|
message UTMInfo {
|
|
893
899
|
optional string utmSource = 1;
|
|
@@ -1529,6 +1535,9 @@ message Message {
|
|
|
1529
1535
|
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
|
1530
1536
|
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
|
1531
1537
|
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
|
1538
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
|
1539
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
|
1540
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
|
1532
1541
|
}
|
|
1533
1542
|
enum BotFeedbackKindMultipleNegative {
|
|
1534
1543
|
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
package/dist/index.d.ts
CHANGED
|
@@ -1144,6 +1144,9 @@ export namespace waproto {
|
|
|
1144
1144
|
|
|
1145
1145
|
/** AIRichResponseImageURL imageHighResUrl */
|
|
1146
1146
|
imageHighResUrl?: (string|null);
|
|
1147
|
+
|
|
1148
|
+
/** AIRichResponseImageURL sourceUrl */
|
|
1149
|
+
sourceUrl?: (string|null);
|
|
1147
1150
|
}
|
|
1148
1151
|
|
|
1149
1152
|
/** Represents a AIRichResponseImageURL. */
|
|
@@ -1161,6 +1164,9 @@ export namespace waproto {
|
|
|
1161
1164
|
/** AIRichResponseImageURL imageHighResUrl. */
|
|
1162
1165
|
public imageHighResUrl?: (string|null);
|
|
1163
1166
|
|
|
1167
|
+
/** AIRichResponseImageURL sourceUrl. */
|
|
1168
|
+
public sourceUrl?: (string|null);
|
|
1169
|
+
|
|
1164
1170
|
/**
|
|
1165
1171
|
* Creates a new AIRichResponseImageURL instance using the specified properties.
|
|
1166
1172
|
* @param [properties] Properties to set
|
|
@@ -2680,7 +2686,9 @@ export namespace waproto {
|
|
|
2680
2686
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17,
|
|
2681
2687
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18,
|
|
2682
2688
|
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19,
|
|
2683
|
-
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20
|
|
2689
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20,
|
|
2690
|
+
RICH_RESPONSE_SUB_HEADING = 21,
|
|
2691
|
+
RICH_RESPONSE_GRID_IMAGE = 22
|
|
2684
2692
|
}
|
|
2685
2693
|
}
|
|
2686
2694
|
|
|
@@ -7266,7 +7274,8 @@ export namespace waproto {
|
|
|
7266
7274
|
APP_STORE = 1,
|
|
7267
7275
|
WIN_STORE = 2,
|
|
7268
7276
|
DARWIN = 3,
|
|
7269
|
-
WIN32 = 4
|
|
7277
|
+
WIN32 = 4,
|
|
7278
|
+
WIN_HYBRID = 5
|
|
7270
7279
|
}
|
|
7271
7280
|
|
|
7272
7281
|
/** Properties of a WebdPayload. */
|
|
@@ -8884,6 +8893,9 @@ export namespace waproto {
|
|
|
8884
8893
|
|
|
8885
8894
|
/** FeatureEligibilities canRequestFeedback */
|
|
8886
8895
|
canRequestFeedback?: (boolean|null);
|
|
8896
|
+
|
|
8897
|
+
/** FeatureEligibilities canBeReshared */
|
|
8898
|
+
canBeReshared?: (boolean|null);
|
|
8887
8899
|
}
|
|
8888
8900
|
|
|
8889
8901
|
/** Represents a FeatureEligibilities. */
|
|
@@ -8904,6 +8916,9 @@ export namespace waproto {
|
|
|
8904
8916
|
/** FeatureEligibilities canRequestFeedback. */
|
|
8905
8917
|
public canRequestFeedback?: (boolean|null);
|
|
8906
8918
|
|
|
8919
|
+
/** FeatureEligibilities canBeReshared. */
|
|
8920
|
+
public canBeReshared?: (boolean|null);
|
|
8921
|
+
|
|
8907
8922
|
/**
|
|
8908
8923
|
* Creates a new FeatureEligibilities instance using the specified properties.
|
|
8909
8924
|
* @param [properties] Properties to set
|
|
@@ -9225,7 +9240,8 @@ export namespace waproto {
|
|
|
9225
9240
|
/** StatusAttributionType enum. */
|
|
9226
9241
|
enum StatusAttributionType {
|
|
9227
9242
|
NONE = 0,
|
|
9228
|
-
RESHARED_FROM_MENTION = 1
|
|
9243
|
+
RESHARED_FROM_MENTION = 1,
|
|
9244
|
+
RESHARED_FROM_POST = 2
|
|
9229
9245
|
}
|
|
9230
9246
|
|
|
9231
9247
|
/** Properties of a UTMInfo. */
|
|
@@ -16821,7 +16837,10 @@ export namespace waproto {
|
|
|
16821
16837
|
BOT_FEEDBACK_NEGATIVE_OTHER = 6,
|
|
16822
16838
|
BOT_FEEDBACK_NEGATIVE_REFUSED = 7,
|
|
16823
16839
|
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8,
|
|
16824
|
-
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9
|
|
16840
|
+
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9,
|
|
16841
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10,
|
|
16842
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11,
|
|
16843
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12
|
|
16825
16844
|
}
|
|
16826
16845
|
|
|
16827
16846
|
/** BotFeedbackKindMultipleNegative enum. */
|
package/dist/index.js
CHANGED
|
@@ -3238,6 +3238,7 @@ $root.waproto = (function() {
|
|
|
3238
3238
|
* @interface IAIRichResponseImageURL
|
|
3239
3239
|
* @property {string|null} [imagePreviewUrl] AIRichResponseImageURL imagePreviewUrl
|
|
3240
3240
|
* @property {string|null} [imageHighResUrl] AIRichResponseImageURL imageHighResUrl
|
|
3241
|
+
* @property {string|null} [sourceUrl] AIRichResponseImageURL sourceUrl
|
|
3241
3242
|
*/
|
|
3242
3243
|
|
|
3243
3244
|
/**
|
|
@@ -3271,6 +3272,14 @@ $root.waproto = (function() {
|
|
|
3271
3272
|
*/
|
|
3272
3273
|
AIRichResponseImageURL.prototype.imageHighResUrl = null;
|
|
3273
3274
|
|
|
3275
|
+
/**
|
|
3276
|
+
* AIRichResponseImageURL sourceUrl.
|
|
3277
|
+
* @member {string|null|undefined} sourceUrl
|
|
3278
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseImageURL
|
|
3279
|
+
* @instance
|
|
3280
|
+
*/
|
|
3281
|
+
AIRichResponseImageURL.prototype.sourceUrl = null;
|
|
3282
|
+
|
|
3274
3283
|
// OneOf field names bound to virtual getters and setters
|
|
3275
3284
|
var $oneOfFields;
|
|
3276
3285
|
|
|
@@ -3286,6 +3295,12 @@ $root.waproto = (function() {
|
|
|
3286
3295
|
set: $util.oneOfSetter($oneOfFields)
|
|
3287
3296
|
});
|
|
3288
3297
|
|
|
3298
|
+
// Virtual OneOf for proto3 optional field
|
|
3299
|
+
Object.defineProperty(AIRichResponseImageURL.prototype, "_sourceUrl", {
|
|
3300
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]),
|
|
3301
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3302
|
+
});
|
|
3303
|
+
|
|
3289
3304
|
/**
|
|
3290
3305
|
* Creates a new AIRichResponseImageURL instance using the specified properties.
|
|
3291
3306
|
* @function create
|
|
@@ -3314,6 +3329,8 @@ $root.waproto = (function() {
|
|
|
3314
3329
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.imagePreviewUrl);
|
|
3315
3330
|
if (message.imageHighResUrl != null && Object.hasOwnProperty.call(message, "imageHighResUrl"))
|
|
3316
3331
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.imageHighResUrl);
|
|
3332
|
+
if (message.sourceUrl != null && Object.hasOwnProperty.call(message, "sourceUrl"))
|
|
3333
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceUrl);
|
|
3317
3334
|
return writer;
|
|
3318
3335
|
};
|
|
3319
3336
|
|
|
@@ -3356,6 +3373,10 @@ $root.waproto = (function() {
|
|
|
3356
3373
|
message.imageHighResUrl = reader.string();
|
|
3357
3374
|
break;
|
|
3358
3375
|
}
|
|
3376
|
+
case 3: {
|
|
3377
|
+
message.sourceUrl = reader.string();
|
|
3378
|
+
break;
|
|
3379
|
+
}
|
|
3359
3380
|
default:
|
|
3360
3381
|
reader.skipType(tag & 7);
|
|
3361
3382
|
break;
|
|
@@ -3402,6 +3423,11 @@ $root.waproto = (function() {
|
|
|
3402
3423
|
if (!$util.isString(message.imageHighResUrl))
|
|
3403
3424
|
return "imageHighResUrl: string expected";
|
|
3404
3425
|
}
|
|
3426
|
+
if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
|
|
3427
|
+
properties._sourceUrl = 1;
|
|
3428
|
+
if (!$util.isString(message.sourceUrl))
|
|
3429
|
+
return "sourceUrl: string expected";
|
|
3430
|
+
}
|
|
3405
3431
|
return null;
|
|
3406
3432
|
};
|
|
3407
3433
|
|
|
@@ -3421,6 +3447,8 @@ $root.waproto = (function() {
|
|
|
3421
3447
|
message.imagePreviewUrl = String(object.imagePreviewUrl);
|
|
3422
3448
|
if (object.imageHighResUrl != null)
|
|
3423
3449
|
message.imageHighResUrl = String(object.imageHighResUrl);
|
|
3450
|
+
if (object.sourceUrl != null)
|
|
3451
|
+
message.sourceUrl = String(object.sourceUrl);
|
|
3424
3452
|
return message;
|
|
3425
3453
|
};
|
|
3426
3454
|
|
|
@@ -3447,6 +3475,11 @@ $root.waproto = (function() {
|
|
|
3447
3475
|
if (options.oneofs)
|
|
3448
3476
|
object._imageHighResUrl = "imageHighResUrl";
|
|
3449
3477
|
}
|
|
3478
|
+
if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
|
|
3479
|
+
object.sourceUrl = message.sourceUrl;
|
|
3480
|
+
if (options.oneofs)
|
|
3481
|
+
object._sourceUrl = "sourceUrl";
|
|
3482
|
+
}
|
|
3450
3483
|
return object;
|
|
3451
3484
|
};
|
|
3452
3485
|
|
|
@@ -7446,6 +7479,8 @@ $root.waproto = (function() {
|
|
|
7446
7479
|
case 18:
|
|
7447
7480
|
case 19:
|
|
7448
7481
|
case 20:
|
|
7482
|
+
case 21:
|
|
7483
|
+
case 22:
|
|
7449
7484
|
break;
|
|
7450
7485
|
}
|
|
7451
7486
|
}
|
|
@@ -7555,6 +7590,14 @@ $root.waproto = (function() {
|
|
|
7555
7590
|
case 20:
|
|
7556
7591
|
message.capabilities[i] = 20;
|
|
7557
7592
|
break;
|
|
7593
|
+
case "RICH_RESPONSE_SUB_HEADING":
|
|
7594
|
+
case 21:
|
|
7595
|
+
message.capabilities[i] = 21;
|
|
7596
|
+
break;
|
|
7597
|
+
case "RICH_RESPONSE_GRID_IMAGE":
|
|
7598
|
+
case 22:
|
|
7599
|
+
message.capabilities[i] = 22;
|
|
7600
|
+
break;
|
|
7558
7601
|
}
|
|
7559
7602
|
}
|
|
7560
7603
|
return message;
|
|
@@ -7633,6 +7676,8 @@ $root.waproto = (function() {
|
|
|
7633
7676
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18 WA_IG_1P_PLUGIN_RANKING_UPDATE_8 value
|
|
7634
7677
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19 WA_IG_1P_PLUGIN_RANKING_UPDATE_9 value
|
|
7635
7678
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20 WA_IG_1P_PLUGIN_RANKING_UPDATE_10 value
|
|
7679
|
+
* @property {number} RICH_RESPONSE_SUB_HEADING=21 RICH_RESPONSE_SUB_HEADING value
|
|
7680
|
+
* @property {number} RICH_RESPONSE_GRID_IMAGE=22 RICH_RESPONSE_GRID_IMAGE value
|
|
7636
7681
|
*/
|
|
7637
7682
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
7638
7683
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -7656,6 +7701,8 @@ $root.waproto = (function() {
|
|
|
7656
7701
|
values[valuesById[18] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_8"] = 18;
|
|
7657
7702
|
values[valuesById[19] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_9"] = 19;
|
|
7658
7703
|
values[valuesById[20] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_10"] = 20;
|
|
7704
|
+
values[valuesById[21] = "RICH_RESPONSE_SUB_HEADING"] = 21;
|
|
7705
|
+
values[valuesById[22] = "RICH_RESPONSE_GRID_IMAGE"] = 22;
|
|
7659
7706
|
return values;
|
|
7660
7707
|
})();
|
|
7661
7708
|
|
|
@@ -22062,6 +22109,7 @@ $root.waproto = (function() {
|
|
|
22062
22109
|
case 2:
|
|
22063
22110
|
case 3:
|
|
22064
22111
|
case 4:
|
|
22112
|
+
case 5:
|
|
22065
22113
|
break;
|
|
22066
22114
|
}
|
|
22067
22115
|
}
|
|
@@ -22116,6 +22164,10 @@ $root.waproto = (function() {
|
|
|
22116
22164
|
case 4:
|
|
22117
22165
|
message.webSubPlatform = 4;
|
|
22118
22166
|
break;
|
|
22167
|
+
case "WIN_HYBRID":
|
|
22168
|
+
case 5:
|
|
22169
|
+
message.webSubPlatform = 5;
|
|
22170
|
+
break;
|
|
22119
22171
|
}
|
|
22120
22172
|
return message;
|
|
22121
22173
|
};
|
|
@@ -22191,6 +22243,7 @@ $root.waproto = (function() {
|
|
|
22191
22243
|
* @property {number} WIN_STORE=2 WIN_STORE value
|
|
22192
22244
|
* @property {number} DARWIN=3 DARWIN value
|
|
22193
22245
|
* @property {number} WIN32=4 WIN32 value
|
|
22246
|
+
* @property {number} WIN_HYBRID=5 WIN_HYBRID value
|
|
22194
22247
|
*/
|
|
22195
22248
|
WebInfo.WebSubPlatform = (function() {
|
|
22196
22249
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -22199,6 +22252,7 @@ $root.waproto = (function() {
|
|
|
22199
22252
|
values[valuesById[2] = "WIN_STORE"] = 2;
|
|
22200
22253
|
values[valuesById[3] = "DARWIN"] = 3;
|
|
22201
22254
|
values[valuesById[4] = "WIN32"] = 4;
|
|
22255
|
+
values[valuesById[5] = "WIN_HYBRID"] = 5;
|
|
22202
22256
|
return values;
|
|
22203
22257
|
})();
|
|
22204
22258
|
|
|
@@ -25183,6 +25237,7 @@ $root.waproto = (function() {
|
|
|
25183
25237
|
return "statusAttributionType: enum value expected";
|
|
25184
25238
|
case 0:
|
|
25185
25239
|
case 1:
|
|
25240
|
+
case 2:
|
|
25186
25241
|
break;
|
|
25187
25242
|
}
|
|
25188
25243
|
}
|
|
@@ -25369,6 +25424,10 @@ $root.waproto = (function() {
|
|
|
25369
25424
|
case 1:
|
|
25370
25425
|
message.statusAttributionType = 1;
|
|
25371
25426
|
break;
|
|
25427
|
+
case "RESHARED_FROM_POST":
|
|
25428
|
+
case 2:
|
|
25429
|
+
message.statusAttributionType = 2;
|
|
25430
|
+
break;
|
|
25372
25431
|
}
|
|
25373
25432
|
if (object.urlTrackingMap != null) {
|
|
25374
25433
|
if (typeof object.urlTrackingMap !== "object")
|
|
@@ -27830,6 +27889,7 @@ $root.waproto = (function() {
|
|
|
27830
27889
|
* @property {boolean|null} [cannotBeReactedTo] FeatureEligibilities cannotBeReactedTo
|
|
27831
27890
|
* @property {boolean|null} [cannotBeRanked] FeatureEligibilities cannotBeRanked
|
|
27832
27891
|
* @property {boolean|null} [canRequestFeedback] FeatureEligibilities canRequestFeedback
|
|
27892
|
+
* @property {boolean|null} [canBeReshared] FeatureEligibilities canBeReshared
|
|
27833
27893
|
*/
|
|
27834
27894
|
|
|
27835
27895
|
/**
|
|
@@ -27871,6 +27931,14 @@ $root.waproto = (function() {
|
|
|
27871
27931
|
*/
|
|
27872
27932
|
FeatureEligibilities.prototype.canRequestFeedback = null;
|
|
27873
27933
|
|
|
27934
|
+
/**
|
|
27935
|
+
* FeatureEligibilities canBeReshared.
|
|
27936
|
+
* @member {boolean|null|undefined} canBeReshared
|
|
27937
|
+
* @memberof waproto.ContextInfo.FeatureEligibilities
|
|
27938
|
+
* @instance
|
|
27939
|
+
*/
|
|
27940
|
+
FeatureEligibilities.prototype.canBeReshared = null;
|
|
27941
|
+
|
|
27874
27942
|
// OneOf field names bound to virtual getters and setters
|
|
27875
27943
|
var $oneOfFields;
|
|
27876
27944
|
|
|
@@ -27892,6 +27960,12 @@ $root.waproto = (function() {
|
|
|
27892
27960
|
set: $util.oneOfSetter($oneOfFields)
|
|
27893
27961
|
});
|
|
27894
27962
|
|
|
27963
|
+
// Virtual OneOf for proto3 optional field
|
|
27964
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_canBeReshared", {
|
|
27965
|
+
get: $util.oneOfGetter($oneOfFields = ["canBeReshared"]),
|
|
27966
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27967
|
+
});
|
|
27968
|
+
|
|
27895
27969
|
/**
|
|
27896
27970
|
* Creates a new FeatureEligibilities instance using the specified properties.
|
|
27897
27971
|
* @function create
|
|
@@ -27922,6 +27996,8 @@ $root.waproto = (function() {
|
|
|
27922
27996
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.cannotBeRanked);
|
|
27923
27997
|
if (message.canRequestFeedback != null && Object.hasOwnProperty.call(message, "canRequestFeedback"))
|
|
27924
27998
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canRequestFeedback);
|
|
27999
|
+
if (message.canBeReshared != null && Object.hasOwnProperty.call(message, "canBeReshared"))
|
|
28000
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canBeReshared);
|
|
27925
28001
|
return writer;
|
|
27926
28002
|
};
|
|
27927
28003
|
|
|
@@ -27968,6 +28044,10 @@ $root.waproto = (function() {
|
|
|
27968
28044
|
message.canRequestFeedback = reader.bool();
|
|
27969
28045
|
break;
|
|
27970
28046
|
}
|
|
28047
|
+
case 4: {
|
|
28048
|
+
message.canBeReshared = reader.bool();
|
|
28049
|
+
break;
|
|
28050
|
+
}
|
|
27971
28051
|
default:
|
|
27972
28052
|
reader.skipType(tag & 7);
|
|
27973
28053
|
break;
|
|
@@ -28019,6 +28099,11 @@ $root.waproto = (function() {
|
|
|
28019
28099
|
if (typeof message.canRequestFeedback !== "boolean")
|
|
28020
28100
|
return "canRequestFeedback: boolean expected";
|
|
28021
28101
|
}
|
|
28102
|
+
if (message.canBeReshared != null && message.hasOwnProperty("canBeReshared")) {
|
|
28103
|
+
properties._canBeReshared = 1;
|
|
28104
|
+
if (typeof message.canBeReshared !== "boolean")
|
|
28105
|
+
return "canBeReshared: boolean expected";
|
|
28106
|
+
}
|
|
28022
28107
|
return null;
|
|
28023
28108
|
};
|
|
28024
28109
|
|
|
@@ -28040,6 +28125,8 @@ $root.waproto = (function() {
|
|
|
28040
28125
|
message.cannotBeRanked = Boolean(object.cannotBeRanked);
|
|
28041
28126
|
if (object.canRequestFeedback != null)
|
|
28042
28127
|
message.canRequestFeedback = Boolean(object.canRequestFeedback);
|
|
28128
|
+
if (object.canBeReshared != null)
|
|
28129
|
+
message.canBeReshared = Boolean(object.canBeReshared);
|
|
28043
28130
|
return message;
|
|
28044
28131
|
};
|
|
28045
28132
|
|
|
@@ -28071,6 +28158,11 @@ $root.waproto = (function() {
|
|
|
28071
28158
|
if (options.oneofs)
|
|
28072
28159
|
object._canRequestFeedback = "canRequestFeedback";
|
|
28073
28160
|
}
|
|
28161
|
+
if (message.canBeReshared != null && message.hasOwnProperty("canBeReshared")) {
|
|
28162
|
+
object.canBeReshared = message.canBeReshared;
|
|
28163
|
+
if (options.oneofs)
|
|
28164
|
+
object._canBeReshared = "canBeReshared";
|
|
28165
|
+
}
|
|
28074
28166
|
return object;
|
|
28075
28167
|
};
|
|
28076
28168
|
|
|
@@ -28779,11 +28871,13 @@ $root.waproto = (function() {
|
|
|
28779
28871
|
* @enum {number}
|
|
28780
28872
|
* @property {number} NONE=0 NONE value
|
|
28781
28873
|
* @property {number} RESHARED_FROM_MENTION=1 RESHARED_FROM_MENTION value
|
|
28874
|
+
* @property {number} RESHARED_FROM_POST=2 RESHARED_FROM_POST value
|
|
28782
28875
|
*/
|
|
28783
28876
|
ContextInfo.StatusAttributionType = (function() {
|
|
28784
28877
|
var valuesById = {}, values = Object.create(valuesById);
|
|
28785
28878
|
values[valuesById[0] = "NONE"] = 0;
|
|
28786
28879
|
values[valuesById[1] = "RESHARED_FROM_MENTION"] = 1;
|
|
28880
|
+
values[valuesById[2] = "RESHARED_FROM_POST"] = 2;
|
|
28787
28881
|
return values;
|
|
28788
28882
|
})();
|
|
28789
28883
|
|
|
@@ -53129,6 +53223,9 @@ $root.waproto = (function() {
|
|
|
53129
53223
|
case 7:
|
|
53130
53224
|
case 8:
|
|
53131
53225
|
case 9:
|
|
53226
|
+
case 10:
|
|
53227
|
+
case 11:
|
|
53228
|
+
case 12:
|
|
53132
53229
|
break;
|
|
53133
53230
|
}
|
|
53134
53231
|
}
|
|
@@ -53223,6 +53320,18 @@ $root.waproto = (function() {
|
|
|
53223
53320
|
case 9:
|
|
53224
53321
|
message.kind = 9;
|
|
53225
53322
|
break;
|
|
53323
|
+
case "BOT_FEEDBACK_NEGATIVE_PERSONALIZED":
|
|
53324
|
+
case 10:
|
|
53325
|
+
message.kind = 10;
|
|
53326
|
+
break;
|
|
53327
|
+
case "BOT_FEEDBACK_NEGATIVE_CLARITY":
|
|
53328
|
+
case 11:
|
|
53329
|
+
message.kind = 11;
|
|
53330
|
+
break;
|
|
53331
|
+
case "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON":
|
|
53332
|
+
case 12:
|
|
53333
|
+
message.kind = 12;
|
|
53334
|
+
break;
|
|
53226
53335
|
}
|
|
53227
53336
|
if (object.text != null)
|
|
53228
53337
|
message.text = String(object.text);
|
|
@@ -53351,6 +53460,9 @@ $root.waproto = (function() {
|
|
|
53351
53460
|
* @property {number} BOT_FEEDBACK_NEGATIVE_REFUSED=7 BOT_FEEDBACK_NEGATIVE_REFUSED value
|
|
53352
53461
|
* @property {number} BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8 BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING value
|
|
53353
53462
|
* @property {number} BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9 BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT value
|
|
53463
|
+
* @property {number} BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10 BOT_FEEDBACK_NEGATIVE_PERSONALIZED value
|
|
53464
|
+
* @property {number} BOT_FEEDBACK_NEGATIVE_CLARITY=11 BOT_FEEDBACK_NEGATIVE_CLARITY value
|
|
53465
|
+
* @property {number} BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12 BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON value
|
|
53354
53466
|
*/
|
|
53355
53467
|
BotFeedbackMessage.BotFeedbackKind = (function() {
|
|
53356
53468
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -53364,6 +53476,9 @@ $root.waproto = (function() {
|
|
|
53364
53476
|
values[valuesById[7] = "BOT_FEEDBACK_NEGATIVE_REFUSED"] = 7;
|
|
53365
53477
|
values[valuesById[8] = "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING"] = 8;
|
|
53366
53478
|
values[valuesById[9] = "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 9;
|
|
53479
|
+
values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10;
|
|
53480
|
+
values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11;
|
|
53481
|
+
values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12;
|
|
53367
53482
|
return values;
|
|
53368
53483
|
})();
|
|
53369
53484
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/wa-proto",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Protobuf files from WhatsApp WEB",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"acorn-walk": "^8.3.4",
|
|
30
30
|
"conventional-changelog-cli": "^4.1.0",
|
|
31
31
|
"protobufjs-cli": "^1.1.3",
|
|
32
|
-
"release-it": "^17.
|
|
32
|
+
"release-it": "^17.11.0",
|
|
33
33
|
"request": "^2.88.2",
|
|
34
34
|
"request-promise-core": "^1.1.4",
|
|
35
35
|
"request-promise-native": "^1.0.9"
|