@wppconnect/wa-proto 2.3000.1024617758 → 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 +4 -0
- package/WAProto.proto +3 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +40 -0
- package/package.json +1 -1
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.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 {
|
|
@@ -3069,6 +3070,7 @@ message Message {
|
|
|
3069
3070
|
UNKNOWN = 0;
|
|
3070
3071
|
STATUS_ADD_YOURS = 1;
|
|
3071
3072
|
STATUS_RESHARE = 2;
|
|
3073
|
+
STATUS_QUESTION_ANSWER_RESHARE = 3;
|
|
3072
3074
|
}
|
|
3073
3075
|
}
|
|
3074
3076
|
|
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
|
|
@@ -35089,7 +35095,8 @@ export namespace waproto {
|
|
|
35089
35095
|
enum StatusNotificationType {
|
|
35090
35096
|
UNKNOWN = 0,
|
|
35091
35097
|
STATUS_ADD_YOURS = 1,
|
|
35092
|
-
STATUS_RESHARE = 2
|
|
35098
|
+
STATUS_RESHARE = 2,
|
|
35099
|
+
STATUS_QUESTION_ANSWER_RESHARE = 3
|
|
35093
35100
|
}
|
|
35094
35101
|
}
|
|
35095
35102
|
|
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
|
|
|
@@ -108141,6 +108174,7 @@ $root.waproto = (function() {
|
|
|
108141
108174
|
case 0:
|
|
108142
108175
|
case 1:
|
|
108143
108176
|
case 2:
|
|
108177
|
+
case 3:
|
|
108144
108178
|
break;
|
|
108145
108179
|
}
|
|
108146
108180
|
}
|
|
@@ -108188,6 +108222,10 @@ $root.waproto = (function() {
|
|
|
108188
108222
|
case 2:
|
|
108189
108223
|
message.type = 2;
|
|
108190
108224
|
break;
|
|
108225
|
+
case "STATUS_QUESTION_ANSWER_RESHARE":
|
|
108226
|
+
case 3:
|
|
108227
|
+
message.type = 3;
|
|
108228
|
+
break;
|
|
108191
108229
|
}
|
|
108192
108230
|
return message;
|
|
108193
108231
|
};
|
|
@@ -108256,12 +108294,14 @@ $root.waproto = (function() {
|
|
|
108256
108294
|
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
108257
108295
|
* @property {number} STATUS_ADD_YOURS=1 STATUS_ADD_YOURS value
|
|
108258
108296
|
* @property {number} STATUS_RESHARE=2 STATUS_RESHARE value
|
|
108297
|
+
* @property {number} STATUS_QUESTION_ANSWER_RESHARE=3 STATUS_QUESTION_ANSWER_RESHARE value
|
|
108259
108298
|
*/
|
|
108260
108299
|
StatusNotificationMessage.StatusNotificationType = (function() {
|
|
108261
108300
|
var valuesById = {}, values = Object.create(valuesById);
|
|
108262
108301
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
108263
108302
|
values[valuesById[1] = "STATUS_ADD_YOURS"] = 1;
|
|
108264
108303
|
values[valuesById[2] = "STATUS_RESHARE"] = 2;
|
|
108304
|
+
values[valuesById[3] = "STATUS_QUESTION_ANSWER_RESHARE"] = 3;
|
|
108265
108305
|
return values;
|
|
108266
108306
|
})();
|
|
108267
108307
|
|