@wppconnect/wa-proto 2.3000.1046385649 → 2.3000.1046390580
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/WAProto.proto +3 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +66 -0
- package/package.json +1 -1
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.1046390580
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -1190,6 +1190,7 @@ message ClientPairingProps {
|
|
|
1190
1190
|
optional bool isSyncdSnapshotRecoveryEnabled = 3;
|
|
1191
1191
|
optional bool isHsThumbnailSyncEnabled = 4;
|
|
1192
1192
|
optional bytes subscriptionSyncPayload = 5;
|
|
1193
|
+
optional bool isBotJidDbMigrated = 6;
|
|
1193
1194
|
}
|
|
1194
1195
|
|
|
1195
1196
|
message ClientPayload {
|
|
@@ -2072,6 +2073,7 @@ message DeviceCapabilities {
|
|
|
2072
2073
|
optional ContactRefresh contactRefresh = 9;
|
|
2073
2074
|
message AiFbidMigration {
|
|
2074
2075
|
optional uint64 chatDbMigrationTimestamp = 1;
|
|
2076
|
+
optional uint32 supportVersion = 2;
|
|
2075
2077
|
}
|
|
2076
2078
|
|
|
2077
2079
|
message AiThread {
|
package/dist/index.d.ts
CHANGED
|
@@ -16480,6 +16480,9 @@ export namespace waproto {
|
|
|
16480
16480
|
/** ClientPairingProps subscriptionSyncPayload. */
|
|
16481
16481
|
subscriptionSyncPayload?: (Uint8Array|null);
|
|
16482
16482
|
|
|
16483
|
+
/** ClientPairingProps isBotJidDbMigrated. */
|
|
16484
|
+
isBotJidDbMigrated?: (boolean|null);
|
|
16485
|
+
|
|
16483
16486
|
/**
|
|
16484
16487
|
* Creates a new ClientPairingProps instance using the specified properties.
|
|
16485
16488
|
* @param [properties] Properties to set
|
|
@@ -16579,6 +16582,9 @@ export namespace waproto {
|
|
|
16579
16582
|
/** ClientPairingProps subscriptionSyncPayload */
|
|
16580
16583
|
subscriptionSyncPayload?: (Uint8Array|null);
|
|
16581
16584
|
|
|
16585
|
+
/** ClientPairingProps isBotJidDbMigrated */
|
|
16586
|
+
isBotJidDbMigrated?: (boolean|null);
|
|
16587
|
+
|
|
16582
16588
|
/** Unknown fields preserved while decoding when enabled */
|
|
16583
16589
|
$unknowns?: Uint8Array[];
|
|
16584
16590
|
}
|
|
@@ -27694,6 +27700,9 @@ export namespace waproto {
|
|
|
27694
27700
|
/** AiFbidMigration chatDbMigrationTimestamp. */
|
|
27695
27701
|
chatDbMigrationTimestamp?: (number|Long|null);
|
|
27696
27702
|
|
|
27703
|
+
/** AiFbidMigration supportVersion. */
|
|
27704
|
+
supportVersion?: (number|null);
|
|
27705
|
+
|
|
27697
27706
|
/**
|
|
27698
27707
|
* Creates a new AiFbidMigration instance using the specified properties.
|
|
27699
27708
|
* @param [properties] Properties to set
|
|
@@ -27781,6 +27790,9 @@ export namespace waproto {
|
|
|
27781
27790
|
/** AiFbidMigration chatDbMigrationTimestamp */
|
|
27782
27791
|
chatDbMigrationTimestamp?: (number|Long|null);
|
|
27783
27792
|
|
|
27793
|
+
/** AiFbidMigration supportVersion */
|
|
27794
|
+
supportVersion?: (number|null);
|
|
27795
|
+
|
|
27784
27796
|
/** Unknown fields preserved while decoding when enabled */
|
|
27785
27797
|
$unknowns?: Uint8Array[];
|
|
27786
27798
|
}
|
package/dist/index.js
CHANGED
|
@@ -46330,6 +46330,7 @@ $root.waproto = (function() {
|
|
|
46330
46330
|
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
|
46331
46331
|
* @property {boolean|null} [isHsThumbnailSyncEnabled] ClientPairingProps isHsThumbnailSyncEnabled
|
|
46332
46332
|
* @property {Uint8Array|null} [subscriptionSyncPayload] ClientPairingProps subscriptionSyncPayload
|
|
46333
|
+
* @property {boolean|null} [isBotJidDbMigrated] ClientPairingProps isBotJidDbMigrated
|
|
46333
46334
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
46334
46335
|
*/
|
|
46335
46336
|
|
|
@@ -46401,6 +46402,14 @@ $root.waproto = (function() {
|
|
|
46401
46402
|
*/
|
|
46402
46403
|
ClientPairingProps.prototype.subscriptionSyncPayload = null;
|
|
46403
46404
|
|
|
46405
|
+
/**
|
|
46406
|
+
* ClientPairingProps isBotJidDbMigrated.
|
|
46407
|
+
* @member {boolean|null|undefined} isBotJidDbMigrated
|
|
46408
|
+
* @memberof waproto.ClientPairingProps
|
|
46409
|
+
* @instance
|
|
46410
|
+
*/
|
|
46411
|
+
ClientPairingProps.prototype.isBotJidDbMigrated = null;
|
|
46412
|
+
|
|
46404
46413
|
// OneOf field names bound to virtual getters and setters
|
|
46405
46414
|
var $oneOfFields;
|
|
46406
46415
|
|
|
@@ -46434,6 +46443,12 @@ $root.waproto = (function() {
|
|
|
46434
46443
|
set: $util.oneOfSetter($oneOfFields)
|
|
46435
46444
|
});
|
|
46436
46445
|
|
|
46446
|
+
// Virtual OneOf for proto3 optional field
|
|
46447
|
+
$Object.defineProperty(ClientPairingProps.prototype, "_isBotJidDbMigrated", {
|
|
46448
|
+
get: $util.oneOfGetter($oneOfFields = ["isBotJidDbMigrated"]),
|
|
46449
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
46450
|
+
});
|
|
46451
|
+
|
|
46437
46452
|
/**
|
|
46438
46453
|
* Creates a new ClientPairingProps instance using the specified properties.
|
|
46439
46454
|
* @function create
|
|
@@ -46476,6 +46491,8 @@ $root.waproto = (function() {
|
|
|
46476
46491
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHsThumbnailSyncEnabled);
|
|
46477
46492
|
if (message.subscriptionSyncPayload != null && $Object.hasOwnProperty.call(message, "subscriptionSyncPayload"))
|
|
46478
46493
|
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.subscriptionSyncPayload);
|
|
46494
|
+
if (message.isBotJidDbMigrated != null && $Object.hasOwnProperty.call(message, "isBotJidDbMigrated"))
|
|
46495
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isBotJidDbMigrated);
|
|
46479
46496
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
46480
46497
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
46481
46498
|
writer.raw(message.$unknowns[i]);
|
|
@@ -46568,6 +46585,13 @@ $root.waproto = (function() {
|
|
|
46568
46585
|
message._subscriptionSyncPayload = "subscriptionSyncPayload";
|
|
46569
46586
|
continue;
|
|
46570
46587
|
}
|
|
46588
|
+
case 6: {
|
|
46589
|
+
if (wireType !== 0)
|
|
46590
|
+
break;
|
|
46591
|
+
message.isBotJidDbMigrated = reader.bool();
|
|
46592
|
+
message._isBotJidDbMigrated = "isBotJidDbMigrated";
|
|
46593
|
+
continue;
|
|
46594
|
+
}
|
|
46571
46595
|
}
|
|
46572
46596
|
reader.skipType(wireType, _depth, tag);
|
|
46573
46597
|
if (!reader.discardUnknown) {
|
|
@@ -46642,6 +46666,11 @@ $root.waproto = (function() {
|
|
|
46642
46666
|
if (!(message.subscriptionSyncPayload && typeof message.subscriptionSyncPayload.length === "number" || $util.isString(message.subscriptionSyncPayload)))
|
|
46643
46667
|
return "subscriptionSyncPayload: buffer expected";
|
|
46644
46668
|
}
|
|
46669
|
+
if (message.isBotJidDbMigrated != null && $Object.hasOwnProperty.call(message, "isBotJidDbMigrated")) {
|
|
46670
|
+
properties._isBotJidDbMigrated = 1;
|
|
46671
|
+
if (typeof message.isBotJidDbMigrated !== "boolean")
|
|
46672
|
+
return "isBotJidDbMigrated: boolean expected";
|
|
46673
|
+
}
|
|
46645
46674
|
return null;
|
|
46646
46675
|
};
|
|
46647
46676
|
|
|
@@ -46676,6 +46705,8 @@ $root.waproto = (function() {
|
|
|
46676
46705
|
$util.base64.decode(object.subscriptionSyncPayload, message.subscriptionSyncPayload = $util.newBuffer($util.base64.length(object.subscriptionSyncPayload)), 0);
|
|
46677
46706
|
else if (object.subscriptionSyncPayload.length >= 0)
|
|
46678
46707
|
message.subscriptionSyncPayload = object.subscriptionSyncPayload;
|
|
46708
|
+
if (object.isBotJidDbMigrated != null)
|
|
46709
|
+
message.isBotJidDbMigrated = $Boolean(object.isBotJidDbMigrated);
|
|
46679
46710
|
return message;
|
|
46680
46711
|
};
|
|
46681
46712
|
|
|
@@ -46706,6 +46737,8 @@ $root.waproto = (function() {
|
|
|
46706
46737
|
object.isHsThumbnailSyncEnabled = message.isHsThumbnailSyncEnabled;
|
|
46707
46738
|
if (message.subscriptionSyncPayload != null && $Object.hasOwnProperty.call(message, "subscriptionSyncPayload"))
|
|
46708
46739
|
object.subscriptionSyncPayload = options.bytes === $String ? $util.base64.encode(message.subscriptionSyncPayload, 0, message.subscriptionSyncPayload.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.subscriptionSyncPayload) : message.subscriptionSyncPayload;
|
|
46740
|
+
if (message.isBotJidDbMigrated != null && $Object.hasOwnProperty.call(message, "isBotJidDbMigrated"))
|
|
46741
|
+
object.isBotJidDbMigrated = message.isBotJidDbMigrated;
|
|
46709
46742
|
return object;
|
|
46710
46743
|
};
|
|
46711
46744
|
|
|
@@ -81088,6 +81121,7 @@ $root.waproto = (function() {
|
|
|
81088
81121
|
* Properties of an AiFbidMigration.
|
|
81089
81122
|
* @typedef {Object} waproto.DeviceCapabilities.AiFbidMigration.$Properties
|
|
81090
81123
|
* @property {number|Long|null} [chatDbMigrationTimestamp] AiFbidMigration chatDbMigrationTimestamp
|
|
81124
|
+
* @property {number|null} [supportVersion] AiFbidMigration supportVersion
|
|
81091
81125
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
81092
81126
|
*/
|
|
81093
81127
|
|
|
@@ -81127,6 +81161,14 @@ $root.waproto = (function() {
|
|
|
81127
81161
|
*/
|
|
81128
81162
|
AiFbidMigration.prototype.chatDbMigrationTimestamp = null;
|
|
81129
81163
|
|
|
81164
|
+
/**
|
|
81165
|
+
* AiFbidMigration supportVersion.
|
|
81166
|
+
* @member {number|null|undefined} supportVersion
|
|
81167
|
+
* @memberof waproto.DeviceCapabilities.AiFbidMigration
|
|
81168
|
+
* @instance
|
|
81169
|
+
*/
|
|
81170
|
+
AiFbidMigration.prototype.supportVersion = null;
|
|
81171
|
+
|
|
81130
81172
|
// OneOf field names bound to virtual getters and setters
|
|
81131
81173
|
var $oneOfFields;
|
|
81132
81174
|
|
|
@@ -81136,6 +81178,12 @@ $root.waproto = (function() {
|
|
|
81136
81178
|
set: $util.oneOfSetter($oneOfFields)
|
|
81137
81179
|
});
|
|
81138
81180
|
|
|
81181
|
+
// Virtual OneOf for proto3 optional field
|
|
81182
|
+
$Object.defineProperty(AiFbidMigration.prototype, "_supportVersion", {
|
|
81183
|
+
get: $util.oneOfGetter($oneOfFields = ["supportVersion"]),
|
|
81184
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81185
|
+
});
|
|
81186
|
+
|
|
81139
81187
|
/**
|
|
81140
81188
|
* Creates a new AiFbidMigration instance using the specified properties.
|
|
81141
81189
|
* @function create
|
|
@@ -81170,6 +81218,8 @@ $root.waproto = (function() {
|
|
|
81170
81218
|
throw $Error("max depth exceeded");
|
|
81171
81219
|
if (message.chatDbMigrationTimestamp != null && $Object.hasOwnProperty.call(message, "chatDbMigrationTimestamp"))
|
|
81172
81220
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.chatDbMigrationTimestamp);
|
|
81221
|
+
if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion"))
|
|
81222
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.supportVersion);
|
|
81173
81223
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
81174
81224
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
81175
81225
|
writer.raw(message.$unknowns[i]);
|
|
@@ -81234,6 +81284,13 @@ $root.waproto = (function() {
|
|
|
81234
81284
|
message._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
|
|
81235
81285
|
continue;
|
|
81236
81286
|
}
|
|
81287
|
+
case 2: {
|
|
81288
|
+
if (wireType !== 0)
|
|
81289
|
+
break;
|
|
81290
|
+
message.supportVersion = reader.uint32();
|
|
81291
|
+
message._supportVersion = "supportVersion";
|
|
81292
|
+
continue;
|
|
81293
|
+
}
|
|
81237
81294
|
}
|
|
81238
81295
|
reader.skipType(wireType, _depth, tag);
|
|
81239
81296
|
if (!reader.discardUnknown) {
|
|
@@ -81288,6 +81345,11 @@ $root.waproto = (function() {
|
|
|
81288
81345
|
if (!$util.isInteger(message.chatDbMigrationTimestamp) && !(message.chatDbMigrationTimestamp && $util.isInteger(message.chatDbMigrationTimestamp.low) && $util.isInteger(message.chatDbMigrationTimestamp.high)))
|
|
81289
81346
|
return "chatDbMigrationTimestamp: integer|Long expected";
|
|
81290
81347
|
}
|
|
81348
|
+
if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion")) {
|
|
81349
|
+
properties._supportVersion = 1;
|
|
81350
|
+
if (!$util.isInteger(message.supportVersion))
|
|
81351
|
+
return "supportVersion: integer expected";
|
|
81352
|
+
}
|
|
81291
81353
|
return null;
|
|
81292
81354
|
};
|
|
81293
81355
|
|
|
@@ -81318,6 +81380,8 @@ $root.waproto = (function() {
|
|
|
81318
81380
|
message.chatDbMigrationTimestamp = object.chatDbMigrationTimestamp;
|
|
81319
81381
|
else if (typeof object.chatDbMigrationTimestamp === "object")
|
|
81320
81382
|
message.chatDbMigrationTimestamp = new $util.LongBits(object.chatDbMigrationTimestamp.low >>> 0, object.chatDbMigrationTimestamp.high >>> 0).toNumber(true);
|
|
81383
|
+
if (object.supportVersion != null)
|
|
81384
|
+
message.supportVersion = object.supportVersion >>> 0;
|
|
81321
81385
|
return message;
|
|
81322
81386
|
};
|
|
81323
81387
|
|
|
@@ -81345,6 +81409,8 @@ $root.waproto = (function() {
|
|
|
81345
81409
|
object.chatDbMigrationTimestamp = options.longs === $String ? $String(message.chatDbMigrationTimestamp) : message.chatDbMigrationTimestamp;
|
|
81346
81410
|
else
|
|
81347
81411
|
object.chatDbMigrationTimestamp = options.longs === $String ? $util.Long.prototype.toString.call(message.chatDbMigrationTimestamp) : options.longs === $Number ? new $util.LongBits(message.chatDbMigrationTimestamp.low >>> 0, message.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : message.chatDbMigrationTimestamp;
|
|
81412
|
+
if (message.supportVersion != null && $Object.hasOwnProperty.call(message, "supportVersion"))
|
|
81413
|
+
object.supportVersion = message.supportVersion;
|
|
81348
81414
|
return object;
|
|
81349
81415
|
};
|
|
81350
81416
|
|