@wppconnect/wa-proto 2.3000.1056075170 → 2.3000.1056166380
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 +72 -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.1056166380
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -5813,6 +5813,8 @@ message PrepareAddPeerDeviceSuccess {
|
|
|
5813
5813
|
required uint64 serverDataId = 2;
|
|
5814
5814
|
required bytes companionDeviceBinding = 3;
|
|
5815
5815
|
optional uint64 historyStartTime = 4;
|
|
5816
|
+
optional bytes identityBindingBlob = 5;
|
|
5817
|
+
optional bytes bindingSigByLabyrinthDevice = 6;
|
|
5816
5818
|
}
|
|
5817
5819
|
|
|
5818
5820
|
message PrimaryEphemeralIdentity {
|
package/dist/index.d.ts
CHANGED
|
@@ -79943,6 +79943,12 @@ export namespace waproto {
|
|
|
79943
79943
|
/** PrepareAddPeerDeviceSuccess historyStartTime. */
|
|
79944
79944
|
historyStartTime?: (number|Long|null);
|
|
79945
79945
|
|
|
79946
|
+
/** PrepareAddPeerDeviceSuccess identityBindingBlob. */
|
|
79947
|
+
identityBindingBlob?: (Uint8Array|null);
|
|
79948
|
+
|
|
79949
|
+
/** PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice. */
|
|
79950
|
+
bindingSigByLabyrinthDevice?: (Uint8Array|null);
|
|
79951
|
+
|
|
79946
79952
|
/**
|
|
79947
79953
|
* Creates a new PrepareAddPeerDeviceSuccess instance using the specified properties.
|
|
79948
79954
|
* @param [properties] Properties to set
|
|
@@ -80039,6 +80045,12 @@ export namespace waproto {
|
|
|
80039
80045
|
/** PrepareAddPeerDeviceSuccess historyStartTime */
|
|
80040
80046
|
historyStartTime?: (number|Long|null);
|
|
80041
80047
|
|
|
80048
|
+
/** PrepareAddPeerDeviceSuccess identityBindingBlob */
|
|
80049
|
+
identityBindingBlob?: (Uint8Array|null);
|
|
80050
|
+
|
|
80051
|
+
/** PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice */
|
|
80052
|
+
bindingSigByLabyrinthDevice?: (Uint8Array|null);
|
|
80053
|
+
|
|
80042
80054
|
/** Unknown fields preserved while decoding when enabled */
|
|
80043
80055
|
$unknowns?: Uint8Array[];
|
|
80044
80056
|
}
|
package/dist/index.js
CHANGED
|
@@ -238159,6 +238159,8 @@ $root.waproto = (function() {
|
|
|
238159
238159
|
* @property {number|Long} serverDataId PrepareAddPeerDeviceSuccess serverDataId
|
|
238160
238160
|
* @property {Uint8Array} companionDeviceBinding PrepareAddPeerDeviceSuccess companionDeviceBinding
|
|
238161
238161
|
* @property {number|Long|null} [historyStartTime] PrepareAddPeerDeviceSuccess historyStartTime
|
|
238162
|
+
* @property {Uint8Array|null} [identityBindingBlob] PrepareAddPeerDeviceSuccess identityBindingBlob
|
|
238163
|
+
* @property {Uint8Array|null} [bindingSigByLabyrinthDevice] PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice
|
|
238162
238164
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
238163
238165
|
*/
|
|
238164
238166
|
|
|
@@ -238222,6 +238224,22 @@ $root.waproto = (function() {
|
|
|
238222
238224
|
*/
|
|
238223
238225
|
PrepareAddPeerDeviceSuccess.prototype.historyStartTime = null;
|
|
238224
238226
|
|
|
238227
|
+
/**
|
|
238228
|
+
* PrepareAddPeerDeviceSuccess identityBindingBlob.
|
|
238229
|
+
* @member {Uint8Array|null|undefined} identityBindingBlob
|
|
238230
|
+
* @memberof waproto.PrepareAddPeerDeviceSuccess
|
|
238231
|
+
* @instance
|
|
238232
|
+
*/
|
|
238233
|
+
PrepareAddPeerDeviceSuccess.prototype.identityBindingBlob = null;
|
|
238234
|
+
|
|
238235
|
+
/**
|
|
238236
|
+
* PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice.
|
|
238237
|
+
* @member {Uint8Array|null|undefined} bindingSigByLabyrinthDevice
|
|
238238
|
+
* @memberof waproto.PrepareAddPeerDeviceSuccess
|
|
238239
|
+
* @instance
|
|
238240
|
+
*/
|
|
238241
|
+
PrepareAddPeerDeviceSuccess.prototype.bindingSigByLabyrinthDevice = null;
|
|
238242
|
+
|
|
238225
238243
|
// OneOf field names bound to virtual getters and setters
|
|
238226
238244
|
var $oneOfFields;
|
|
238227
238245
|
|
|
@@ -238231,6 +238249,18 @@ $root.waproto = (function() {
|
|
|
238231
238249
|
set: $util.oneOfSetter($oneOfFields)
|
|
238232
238250
|
});
|
|
238233
238251
|
|
|
238252
|
+
// Virtual OneOf for proto3 optional field
|
|
238253
|
+
$Object.defineProperty(PrepareAddPeerDeviceSuccess.prototype, "_identityBindingBlob", {
|
|
238254
|
+
get: $util.oneOfGetter($oneOfFields = ["identityBindingBlob"]),
|
|
238255
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
238256
|
+
});
|
|
238257
|
+
|
|
238258
|
+
// Virtual OneOf for proto3 optional field
|
|
238259
|
+
$Object.defineProperty(PrepareAddPeerDeviceSuccess.prototype, "_bindingSigByLabyrinthDevice", {
|
|
238260
|
+
get: $util.oneOfGetter($oneOfFields = ["bindingSigByLabyrinthDevice"]),
|
|
238261
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
238262
|
+
});
|
|
238263
|
+
|
|
238234
238264
|
/**
|
|
238235
238265
|
* Creates a new PrepareAddPeerDeviceSuccess instance using the specified properties.
|
|
238236
238266
|
* @function create
|
|
@@ -238268,6 +238298,10 @@ $root.waproto = (function() {
|
|
|
238268
238298
|
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.companionDeviceBinding);
|
|
238269
238299
|
if (message.historyStartTime != null && $Object.hasOwnProperty.call(message, "historyStartTime"))
|
|
238270
238300
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.historyStartTime);
|
|
238301
|
+
if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob"))
|
|
238302
|
+
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.identityBindingBlob);
|
|
238303
|
+
if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice"))
|
|
238304
|
+
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.bindingSigByLabyrinthDevice);
|
|
238271
238305
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
238272
238306
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
238273
238307
|
writer.raw(message.$unknowns[i]);
|
|
@@ -238350,6 +238384,20 @@ $root.waproto = (function() {
|
|
|
238350
238384
|
message._historyStartTime = "historyStartTime";
|
|
238351
238385
|
continue;
|
|
238352
238386
|
}
|
|
238387
|
+
case 5: {
|
|
238388
|
+
if (wireType !== 2)
|
|
238389
|
+
break;
|
|
238390
|
+
message.identityBindingBlob = reader.bytes();
|
|
238391
|
+
message._identityBindingBlob = "identityBindingBlob";
|
|
238392
|
+
continue;
|
|
238393
|
+
}
|
|
238394
|
+
case 6: {
|
|
238395
|
+
if (wireType !== 2)
|
|
238396
|
+
break;
|
|
238397
|
+
message.bindingSigByLabyrinthDevice = reader.bytes();
|
|
238398
|
+
message._bindingSigByLabyrinthDevice = "bindingSigByLabyrinthDevice";
|
|
238399
|
+
continue;
|
|
238400
|
+
}
|
|
238353
238401
|
}
|
|
238354
238402
|
reader.skipType(wireType, _depth, tag);
|
|
238355
238403
|
if (!reader.discardUnknown) {
|
|
@@ -238419,6 +238467,16 @@ $root.waproto = (function() {
|
|
|
238419
238467
|
if (!$util.isInteger(message.historyStartTime) && !(message.historyStartTime && $util.isInteger(message.historyStartTime.low) && $util.isInteger(message.historyStartTime.high)))
|
|
238420
238468
|
return "historyStartTime: integer|Long expected";
|
|
238421
238469
|
}
|
|
238470
|
+
if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob")) {
|
|
238471
|
+
properties._identityBindingBlob = 1;
|
|
238472
|
+
if (!(message.identityBindingBlob && typeof message.identityBindingBlob.length === "number" || $util.isString(message.identityBindingBlob)))
|
|
238473
|
+
return "identityBindingBlob: buffer expected";
|
|
238474
|
+
}
|
|
238475
|
+
if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice")) {
|
|
238476
|
+
properties._bindingSigByLabyrinthDevice = 1;
|
|
238477
|
+
if (!(message.bindingSigByLabyrinthDevice && typeof message.bindingSigByLabyrinthDevice.length === "number" || $util.isString(message.bindingSigByLabyrinthDevice)))
|
|
238478
|
+
return "bindingSigByLabyrinthDevice: buffer expected";
|
|
238479
|
+
}
|
|
238422
238480
|
return null;
|
|
238423
238481
|
};
|
|
238424
238482
|
|
|
@@ -238468,6 +238526,16 @@ $root.waproto = (function() {
|
|
|
238468
238526
|
message.historyStartTime = object.historyStartTime;
|
|
238469
238527
|
else if (typeof object.historyStartTime === "object")
|
|
238470
238528
|
message.historyStartTime = new $util.LongBits(object.historyStartTime.low >>> 0, object.historyStartTime.high >>> 0).toNumber(true);
|
|
238529
|
+
if (object.identityBindingBlob != null)
|
|
238530
|
+
if (typeof object.identityBindingBlob === "string")
|
|
238531
|
+
$util.base64.decode(object.identityBindingBlob, message.identityBindingBlob = $util.newBuffer($util.base64.length(object.identityBindingBlob)), 0);
|
|
238532
|
+
else if (object.identityBindingBlob.length >= 0)
|
|
238533
|
+
message.identityBindingBlob = object.identityBindingBlob;
|
|
238534
|
+
if (object.bindingSigByLabyrinthDevice != null)
|
|
238535
|
+
if (typeof object.bindingSigByLabyrinthDevice === "string")
|
|
238536
|
+
$util.base64.decode(object.bindingSigByLabyrinthDevice, message.bindingSigByLabyrinthDevice = $util.newBuffer($util.base64.length(object.bindingSigByLabyrinthDevice)), 0);
|
|
238537
|
+
else if (object.bindingSigByLabyrinthDevice.length >= 0)
|
|
238538
|
+
message.bindingSigByLabyrinthDevice = object.bindingSigByLabyrinthDevice;
|
|
238471
238539
|
return message;
|
|
238472
238540
|
};
|
|
238473
238541
|
|
|
@@ -238521,6 +238589,10 @@ $root.waproto = (function() {
|
|
|
238521
238589
|
object.historyStartTime = options.longs === $String ? $String(message.historyStartTime) : message.historyStartTime;
|
|
238522
238590
|
else
|
|
238523
238591
|
object.historyStartTime = options.longs === $String ? $util.Long.prototype.toString.call(message.historyStartTime) : options.longs === $Number ? new $util.LongBits(message.historyStartTime.low >>> 0, message.historyStartTime.high >>> 0).toNumber(true) : message.historyStartTime;
|
|
238592
|
+
if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob"))
|
|
238593
|
+
object.identityBindingBlob = options.bytes === $String ? $util.base64.encode(message.identityBindingBlob, 0, message.identityBindingBlob.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.identityBindingBlob) : message.identityBindingBlob;
|
|
238594
|
+
if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice"))
|
|
238595
|
+
object.bindingSigByLabyrinthDevice = options.bytes === $String ? $util.base64.encode(message.bindingSigByLabyrinthDevice, 0, message.bindingSigByLabyrinthDevice.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.bindingSigByLabyrinthDevice) : message.bindingSigByLabyrinthDevice;
|
|
238524
238596
|
return object;
|
|
238525
238597
|
};
|
|
238526
238598
|
|