@wppconnect/wa-proto 2.3000.1053659828 → 2.3000.1053677024

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1053659828
4
+ /// WhatsApp Version: 2.3000.1053677024
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -1513,6 +1513,12 @@ enum CollectionName {
1513
1513
  CRITICAL_BLOCK = 4;
1514
1514
  CRITICAL_UNBLOCK_LOW = 5;
1515
1515
  }
1516
+ message CombinedFingerprint {
1517
+ optional uint32 version = 1;
1518
+ optional FingerprintData localFingerprint = 2;
1519
+ optional FingerprintData remoteFingerprint = 3;
1520
+ }
1521
+
1516
1522
  message CommentMetadata {
1517
1523
  optional MessageKey commentParentKey = 1;
1518
1524
  optional uint32 replyCount = 2;
@@ -2207,6 +2213,15 @@ message Field {
2207
2213
  map<uint32, Field> subfield = 5;
2208
2214
  }
2209
2215
 
2216
+ message FingerprintData {
2217
+ optional bytes publicKey = 1;
2218
+ optional bytes pnIdentifier = 2;
2219
+ optional bytes lidIdentifier = 3;
2220
+ optional bytes usernameIdentifier = 4;
2221
+ optional HostedState hostedState = 5;
2222
+ optional bytes hashedPublicKey = 6;
2223
+ }
2224
+
2210
2225
  message ForwardedAIBotMessageInfo {
2211
2226
  optional string botName = 1;
2212
2227
  optional string botJid = 2;
@@ -2406,6 +2421,10 @@ message HistorySyncMsg {
2406
2421
  optional uint64 msgOrderId = 2;
2407
2422
  }
2408
2423
 
2424
+ enum HostedState {
2425
+ E2EE = 0;
2426
+ HOSTED = 1;
2427
+ }
2409
2428
  message HydratedTemplateButton {
2410
2429
  optional uint32 index = 4;
2411
2430
  oneof hydratedButton {
package/dist/index.d.ts CHANGED
@@ -19736,6 +19736,135 @@ export namespace waproto {
19736
19736
  CRITICAL_UNBLOCK_LOW = 5
19737
19737
  }
19738
19738
 
19739
+ /**
19740
+ * Properties of a CombinedFingerprint.
19741
+ * @deprecated Use waproto.CombinedFingerprint.$Properties instead.
19742
+ */
19743
+ interface ICombinedFingerprint extends waproto.CombinedFingerprint.$Properties {
19744
+ }
19745
+
19746
+ /** Represents a CombinedFingerprint. */
19747
+ class CombinedFingerprint {
19748
+
19749
+ /**
19750
+ * Constructs a new CombinedFingerprint.
19751
+ * @param [properties] Properties to set
19752
+ */
19753
+ constructor(properties?: waproto.CombinedFingerprint.$Properties);
19754
+
19755
+ /** Unknown fields preserved while decoding when enabled */
19756
+ $unknowns?: Uint8Array[];
19757
+
19758
+ /** CombinedFingerprint version. */
19759
+ version?: (number|null);
19760
+
19761
+ /** CombinedFingerprint localFingerprint. */
19762
+ localFingerprint?: (waproto.FingerprintData.$Properties|null);
19763
+
19764
+ /** CombinedFingerprint remoteFingerprint. */
19765
+ remoteFingerprint?: (waproto.FingerprintData.$Properties|null);
19766
+
19767
+ /**
19768
+ * Creates a new CombinedFingerprint instance using the specified properties.
19769
+ * @param [properties] Properties to set
19770
+ * @returns CombinedFingerprint instance
19771
+ */
19772
+ static create(properties: waproto.CombinedFingerprint.$Shape): waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape;
19773
+ static create(properties?: waproto.CombinedFingerprint.$Properties): waproto.CombinedFingerprint;
19774
+
19775
+ /**
19776
+ * Encodes the specified CombinedFingerprint message. Does not implicitly {@link waproto.CombinedFingerprint.verify|verify} messages.
19777
+ * @param message CombinedFingerprint message or plain object to encode
19778
+ * @param [writer] Writer to encode to
19779
+ * @returns Writer
19780
+ */
19781
+ static encode(message: waproto.CombinedFingerprint.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
19782
+
19783
+ /**
19784
+ * Encodes the specified CombinedFingerprint message, length delimited. Does not implicitly {@link waproto.CombinedFingerprint.verify|verify} messages.
19785
+ * @param message CombinedFingerprint message or plain object to encode
19786
+ * @param [writer] Writer to encode to
19787
+ * @returns Writer
19788
+ */
19789
+ static encodeDelimited(message: waproto.CombinedFingerprint.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
19790
+
19791
+ /**
19792
+ * Decodes a CombinedFingerprint message from the specified reader or buffer.
19793
+ * @param reader Reader or buffer to decode from
19794
+ * @param [length] Message length if known beforehand
19795
+ * @returns {waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape} CombinedFingerprint
19796
+ * @throws {Error} If the payload is not a reader or valid buffer
19797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19798
+ */
19799
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape;
19800
+
19801
+ /**
19802
+ * Decodes a CombinedFingerprint message from the specified reader or buffer, length delimited.
19803
+ * @param reader Reader or buffer to decode from
19804
+ * @returns {waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape} CombinedFingerprint
19805
+ * @throws {Error} If the payload is not a reader or valid buffer
19806
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19807
+ */
19808
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape;
19809
+
19810
+ /**
19811
+ * Verifies a CombinedFingerprint message.
19812
+ * @param message Plain object to verify
19813
+ * @returns `null` if valid, otherwise the reason why it is not
19814
+ */
19815
+ static verify(message: { [k: string]: any }): (string|null);
19816
+
19817
+ /**
19818
+ * Creates a CombinedFingerprint message from a plain object. Also converts values to their respective internal types.
19819
+ * @param object Plain object
19820
+ * @returns CombinedFingerprint
19821
+ */
19822
+ static fromObject(object: { [k: string]: any }): waproto.CombinedFingerprint;
19823
+
19824
+ /**
19825
+ * Creates a plain object from a CombinedFingerprint message. Also converts values to other types if specified.
19826
+ * @param message CombinedFingerprint
19827
+ * @param [options] Conversion options
19828
+ * @returns Plain object
19829
+ */
19830
+ static toObject(message: waproto.CombinedFingerprint, options?: $protobuf.IConversionOptions): { [k: string]: any };
19831
+
19832
+ /**
19833
+ * Converts this CombinedFingerprint to JSON.
19834
+ * @returns JSON object
19835
+ */
19836
+ toJSON(): { [k: string]: any };
19837
+
19838
+ /**
19839
+ * Gets the type url for CombinedFingerprint
19840
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
19841
+ * @returns The type url
19842
+ */
19843
+ static getTypeUrl(prefix?: string): string;
19844
+ }
19845
+
19846
+ namespace CombinedFingerprint {
19847
+
19848
+ /** Properties of a CombinedFingerprint. */
19849
+ interface $Properties {
19850
+
19851
+ /** CombinedFingerprint version */
19852
+ version?: (number|null);
19853
+
19854
+ /** CombinedFingerprint localFingerprint */
19855
+ localFingerprint?: (waproto.FingerprintData.$Properties|null);
19856
+
19857
+ /** CombinedFingerprint remoteFingerprint */
19858
+ remoteFingerprint?: (waproto.FingerprintData.$Properties|null);
19859
+
19860
+ /** Unknown fields preserved while decoding when enabled */
19861
+ $unknowns?: Uint8Array[];
19862
+ }
19863
+
19864
+ /** Shape of a CombinedFingerprint. */
19865
+ type $Shape = waproto.CombinedFingerprint.$Properties;
19866
+ }
19867
+
19739
19868
  /**
19740
19869
  * Properties of a CommentMetadata.
19741
19870
  * @deprecated Use waproto.CommentMetadata.$Properties instead.
@@ -28300,6 +28429,153 @@ export namespace waproto {
28300
28429
  type $Shape = waproto.Field.$Properties;
28301
28430
  }
28302
28431
 
28432
+ /**
28433
+ * Properties of a FingerprintData.
28434
+ * @deprecated Use waproto.FingerprintData.$Properties instead.
28435
+ */
28436
+ interface IFingerprintData extends waproto.FingerprintData.$Properties {
28437
+ }
28438
+
28439
+ /** Represents a FingerprintData. */
28440
+ class FingerprintData {
28441
+
28442
+ /**
28443
+ * Constructs a new FingerprintData.
28444
+ * @param [properties] Properties to set
28445
+ */
28446
+ constructor(properties?: waproto.FingerprintData.$Properties);
28447
+
28448
+ /** Unknown fields preserved while decoding when enabled */
28449
+ $unknowns?: Uint8Array[];
28450
+
28451
+ /** FingerprintData publicKey. */
28452
+ publicKey?: (Uint8Array|null);
28453
+
28454
+ /** FingerprintData pnIdentifier. */
28455
+ pnIdentifier?: (Uint8Array|null);
28456
+
28457
+ /** FingerprintData lidIdentifier. */
28458
+ lidIdentifier?: (Uint8Array|null);
28459
+
28460
+ /** FingerprintData usernameIdentifier. */
28461
+ usernameIdentifier?: (Uint8Array|null);
28462
+
28463
+ /** FingerprintData hostedState. */
28464
+ hostedState?: (waproto.HostedState|null);
28465
+
28466
+ /** FingerprintData hashedPublicKey. */
28467
+ hashedPublicKey?: (Uint8Array|null);
28468
+
28469
+ /**
28470
+ * Creates a new FingerprintData instance using the specified properties.
28471
+ * @param [properties] Properties to set
28472
+ * @returns FingerprintData instance
28473
+ */
28474
+ static create(properties: waproto.FingerprintData.$Shape): waproto.FingerprintData & waproto.FingerprintData.$Shape;
28475
+ static create(properties?: waproto.FingerprintData.$Properties): waproto.FingerprintData;
28476
+
28477
+ /**
28478
+ * Encodes the specified FingerprintData message. Does not implicitly {@link waproto.FingerprintData.verify|verify} messages.
28479
+ * @param message FingerprintData message or plain object to encode
28480
+ * @param [writer] Writer to encode to
28481
+ * @returns Writer
28482
+ */
28483
+ static encode(message: waproto.FingerprintData.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28484
+
28485
+ /**
28486
+ * Encodes the specified FingerprintData message, length delimited. Does not implicitly {@link waproto.FingerprintData.verify|verify} messages.
28487
+ * @param message FingerprintData message or plain object to encode
28488
+ * @param [writer] Writer to encode to
28489
+ * @returns Writer
28490
+ */
28491
+ static encodeDelimited(message: waproto.FingerprintData.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
28492
+
28493
+ /**
28494
+ * Decodes a FingerprintData message from the specified reader or buffer.
28495
+ * @param reader Reader or buffer to decode from
28496
+ * @param [length] Message length if known beforehand
28497
+ * @returns {waproto.FingerprintData & waproto.FingerprintData.$Shape} FingerprintData
28498
+ * @throws {Error} If the payload is not a reader or valid buffer
28499
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28500
+ */
28501
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.FingerprintData & waproto.FingerprintData.$Shape;
28502
+
28503
+ /**
28504
+ * Decodes a FingerprintData message from the specified reader or buffer, length delimited.
28505
+ * @param reader Reader or buffer to decode from
28506
+ * @returns {waproto.FingerprintData & waproto.FingerprintData.$Shape} FingerprintData
28507
+ * @throws {Error} If the payload is not a reader or valid buffer
28508
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28509
+ */
28510
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.FingerprintData & waproto.FingerprintData.$Shape;
28511
+
28512
+ /**
28513
+ * Verifies a FingerprintData message.
28514
+ * @param message Plain object to verify
28515
+ * @returns `null` if valid, otherwise the reason why it is not
28516
+ */
28517
+ static verify(message: { [k: string]: any }): (string|null);
28518
+
28519
+ /**
28520
+ * Creates a FingerprintData message from a plain object. Also converts values to their respective internal types.
28521
+ * @param object Plain object
28522
+ * @returns FingerprintData
28523
+ */
28524
+ static fromObject(object: { [k: string]: any }): waproto.FingerprintData;
28525
+
28526
+ /**
28527
+ * Creates a plain object from a FingerprintData message. Also converts values to other types if specified.
28528
+ * @param message FingerprintData
28529
+ * @param [options] Conversion options
28530
+ * @returns Plain object
28531
+ */
28532
+ static toObject(message: waproto.FingerprintData, options?: $protobuf.IConversionOptions): { [k: string]: any };
28533
+
28534
+ /**
28535
+ * Converts this FingerprintData to JSON.
28536
+ * @returns JSON object
28537
+ */
28538
+ toJSON(): { [k: string]: any };
28539
+
28540
+ /**
28541
+ * Gets the type url for FingerprintData
28542
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
28543
+ * @returns The type url
28544
+ */
28545
+ static getTypeUrl(prefix?: string): string;
28546
+ }
28547
+
28548
+ namespace FingerprintData {
28549
+
28550
+ /** Properties of a FingerprintData. */
28551
+ interface $Properties {
28552
+
28553
+ /** FingerprintData publicKey */
28554
+ publicKey?: (Uint8Array|null);
28555
+
28556
+ /** FingerprintData pnIdentifier */
28557
+ pnIdentifier?: (Uint8Array|null);
28558
+
28559
+ /** FingerprintData lidIdentifier */
28560
+ lidIdentifier?: (Uint8Array|null);
28561
+
28562
+ /** FingerprintData usernameIdentifier */
28563
+ usernameIdentifier?: (Uint8Array|null);
28564
+
28565
+ /** FingerprintData hostedState */
28566
+ hostedState?: (waproto.HostedState|null);
28567
+
28568
+ /** FingerprintData hashedPublicKey */
28569
+ hashedPublicKey?: (Uint8Array|null);
28570
+
28571
+ /** Unknown fields preserved while decoding when enabled */
28572
+ $unknowns?: Uint8Array[];
28573
+ }
28574
+
28575
+ /** Shape of a FingerprintData. */
28576
+ type $Shape = waproto.FingerprintData.$Properties;
28577
+ }
28578
+
28303
28579
  /**
28304
28580
  * Properties of a ForwardedAIBotMessageInfo.
28305
28581
  * @deprecated Use waproto.ForwardedAIBotMessageInfo.$Properties instead.
@@ -31196,6 +31472,16 @@ export namespace waproto {
31196
31472
  };
31197
31473
  }
31198
31474
 
31475
+ /** HostedState enum. */
31476
+ enum HostedState {
31477
+
31478
+ /** E2EE value */
31479
+ E2EE = 0,
31480
+
31481
+ /** HOSTED value */
31482
+ HOSTED = 1
31483
+ }
31484
+
31199
31485
  /**
31200
31486
  * Properties of a HydratedTemplateButton.
31201
31487
  * @deprecated Use waproto.HydratedTemplateButton.$Properties instead.
package/dist/index.js CHANGED
@@ -56410,6 +56410,366 @@ $root.waproto = (function() {
56410
56410
  return values;
56411
56411
  })();
56412
56412
 
56413
+ waproto.CombinedFingerprint = (function() {
56414
+
56415
+ /**
56416
+ * Properties of a CombinedFingerprint.
56417
+ * @typedef {Object} waproto.CombinedFingerprint.$Properties
56418
+ * @property {number|null} [version] CombinedFingerprint version
56419
+ * @property {waproto.FingerprintData.$Properties|null} [localFingerprint] CombinedFingerprint localFingerprint
56420
+ * @property {waproto.FingerprintData.$Properties|null} [remoteFingerprint] CombinedFingerprint remoteFingerprint
56421
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
56422
+ */
56423
+
56424
+ /**
56425
+ * Properties of a CombinedFingerprint.
56426
+ * @memberof waproto
56427
+ * @interface ICombinedFingerprint
56428
+ * @augments waproto.CombinedFingerprint.$Properties
56429
+ * @deprecated Use waproto.CombinedFingerprint.$Properties instead.
56430
+ */
56431
+
56432
+ /**
56433
+ * Shape of a CombinedFingerprint.
56434
+ * @typedef {waproto.CombinedFingerprint.$Properties} waproto.CombinedFingerprint.$Shape
56435
+ */
56436
+
56437
+ /**
56438
+ * Constructs a new CombinedFingerprint.
56439
+ * @memberof waproto
56440
+ * @classdesc Represents a CombinedFingerprint.
56441
+ * @constructor
56442
+ * @param {waproto.CombinedFingerprint.$Properties=} [properties] Properties to set
56443
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
56444
+ */
56445
+ var CombinedFingerprint = function (properties) {
56446
+ if (properties)
56447
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
56448
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
56449
+ this[keys[i]] = properties[keys[i]];
56450
+ };
56451
+
56452
+ /**
56453
+ * CombinedFingerprint version.
56454
+ * @member {number|null|undefined} version
56455
+ * @memberof waproto.CombinedFingerprint
56456
+ * @instance
56457
+ */
56458
+ CombinedFingerprint.prototype.version = null;
56459
+
56460
+ /**
56461
+ * CombinedFingerprint localFingerprint.
56462
+ * @member {waproto.FingerprintData.$Properties|null|undefined} localFingerprint
56463
+ * @memberof waproto.CombinedFingerprint
56464
+ * @instance
56465
+ */
56466
+ CombinedFingerprint.prototype.localFingerprint = null;
56467
+
56468
+ /**
56469
+ * CombinedFingerprint remoteFingerprint.
56470
+ * @member {waproto.FingerprintData.$Properties|null|undefined} remoteFingerprint
56471
+ * @memberof waproto.CombinedFingerprint
56472
+ * @instance
56473
+ */
56474
+ CombinedFingerprint.prototype.remoteFingerprint = null;
56475
+
56476
+ // OneOf field names bound to virtual getters and setters
56477
+ var $oneOfFields;
56478
+
56479
+ // Virtual OneOf for proto3 optional field
56480
+ $Object.defineProperty(CombinedFingerprint.prototype, "_version", {
56481
+ get: $util.oneOfGetter($oneOfFields = ["version"]),
56482
+ set: $util.oneOfSetter($oneOfFields)
56483
+ });
56484
+
56485
+ // Virtual OneOf for proto3 optional field
56486
+ $Object.defineProperty(CombinedFingerprint.prototype, "_localFingerprint", {
56487
+ get: $util.oneOfGetter($oneOfFields = ["localFingerprint"]),
56488
+ set: $util.oneOfSetter($oneOfFields)
56489
+ });
56490
+
56491
+ // Virtual OneOf for proto3 optional field
56492
+ $Object.defineProperty(CombinedFingerprint.prototype, "_remoteFingerprint", {
56493
+ get: $util.oneOfGetter($oneOfFields = ["remoteFingerprint"]),
56494
+ set: $util.oneOfSetter($oneOfFields)
56495
+ });
56496
+
56497
+ /**
56498
+ * Creates a new CombinedFingerprint instance using the specified properties.
56499
+ * @function create
56500
+ * @memberof waproto.CombinedFingerprint
56501
+ * @static
56502
+ * @param {waproto.CombinedFingerprint.$Properties=} [properties] Properties to set
56503
+ * @returns {waproto.CombinedFingerprint} CombinedFingerprint instance
56504
+ * @type {{
56505
+ * (properties: waproto.CombinedFingerprint.$Shape): waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape;
56506
+ * (properties?: waproto.CombinedFingerprint.$Properties): waproto.CombinedFingerprint;
56507
+ * }}
56508
+ */
56509
+ CombinedFingerprint.create = function(properties) {
56510
+ return new CombinedFingerprint(properties);
56511
+ };
56512
+
56513
+ /**
56514
+ * Encodes the specified CombinedFingerprint message. Does not implicitly {@link waproto.CombinedFingerprint.verify|verify} messages.
56515
+ * @function encode
56516
+ * @memberof waproto.CombinedFingerprint
56517
+ * @static
56518
+ * @param {waproto.CombinedFingerprint.$Properties} message CombinedFingerprint message or plain object to encode
56519
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56520
+ * @returns {$protobuf.Writer} Writer
56521
+ */
56522
+ CombinedFingerprint.encode = function (message, writer, _depth) {
56523
+ if (!writer)
56524
+ writer = $Writer.create();
56525
+ if (_depth === $undefined)
56526
+ _depth = 0;
56527
+ if (_depth > $util.recursionLimit)
56528
+ throw $Error("max depth exceeded");
56529
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version"))
56530
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.version);
56531
+ if (message.localFingerprint != null && $Object.hasOwnProperty.call(message, "localFingerprint"))
56532
+ $root.waproto.FingerprintData.encode(message.localFingerprint, writer.uint32(/* id 2, wireType 2 =*/18).fork(), _depth + 1).ldelim();
56533
+ if (message.remoteFingerprint != null && $Object.hasOwnProperty.call(message, "remoteFingerprint"))
56534
+ $root.waproto.FingerprintData.encode(message.remoteFingerprint, writer.uint32(/* id 3, wireType 2 =*/26).fork(), _depth + 1).ldelim();
56535
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
56536
+ for (var i = 0; i < message.$unknowns.length; ++i)
56537
+ writer.raw(message.$unknowns[i]);
56538
+ return writer;
56539
+ };
56540
+
56541
+ /**
56542
+ * Encodes the specified CombinedFingerprint message, length delimited. Does not implicitly {@link waproto.CombinedFingerprint.verify|verify} messages.
56543
+ * @function encodeDelimited
56544
+ * @memberof waproto.CombinedFingerprint
56545
+ * @static
56546
+ * @param {waproto.CombinedFingerprint.$Properties} message CombinedFingerprint message or plain object to encode
56547
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56548
+ * @returns {$protobuf.Writer} Writer
56549
+ */
56550
+ CombinedFingerprint.encodeDelimited = function(message, writer) {
56551
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
56552
+ };
56553
+
56554
+ /**
56555
+ * Decodes a CombinedFingerprint message from the specified reader or buffer.
56556
+ * @function decode
56557
+ * @memberof waproto.CombinedFingerprint
56558
+ * @static
56559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56560
+ * @param {number} [length] Message length if known beforehand
56561
+ * @returns {waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape} CombinedFingerprint
56562
+ * @throws {Error} If the payload is not a reader or valid buffer
56563
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56564
+ */
56565
+ CombinedFingerprint.decode = function (reader, length, _end, _depth, _target) {
56566
+ if (!(reader instanceof $Reader))
56567
+ reader = $Reader.create(reader);
56568
+ if (_depth === $undefined)
56569
+ _depth = 0;
56570
+ if (_depth > $Reader.recursionLimit)
56571
+ throw $Error("max depth exceeded");
56572
+ var end, message;
56573
+ if (length === $undefined)
56574
+ end = reader.len;
56575
+ else {
56576
+ end = reader.pos + length;
56577
+ if (end > reader.len)
56578
+ throw $RangeError("index out of range");
56579
+ length = reader.len;
56580
+ reader.len = end;
56581
+ }
56582
+ message = _target || new $root.waproto.CombinedFingerprint();
56583
+ while (reader.pos < end) {
56584
+ var start = reader.pos;
56585
+ var tag = reader.tag();
56586
+ if (tag === _end) {
56587
+ _end = $undefined;
56588
+ break;
56589
+ }
56590
+ var wireType = tag & 7;
56591
+ switch (tag >>>= 3) {
56592
+ case 1: {
56593
+ if (wireType !== 0)
56594
+ break;
56595
+ message.version = reader.uint32();
56596
+ message._version = "version";
56597
+ continue;
56598
+ }
56599
+ case 2: {
56600
+ if (wireType !== 2)
56601
+ break;
56602
+ message.localFingerprint = $root.waproto.FingerprintData.decode(reader, reader.size(), $undefined, _depth + 1, message.localFingerprint);
56603
+ message._localFingerprint = "localFingerprint";
56604
+ continue;
56605
+ }
56606
+ case 3: {
56607
+ if (wireType !== 2)
56608
+ break;
56609
+ message.remoteFingerprint = $root.waproto.FingerprintData.decode(reader, reader.size(), $undefined, _depth + 1, message.remoteFingerprint);
56610
+ message._remoteFingerprint = "remoteFingerprint";
56611
+ continue;
56612
+ }
56613
+ }
56614
+ reader.skipType(wireType, _depth, tag);
56615
+ if (!reader.discardUnknown) {
56616
+ $util.makeProp(message, "$unknowns", false);
56617
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
56618
+ }
56619
+ }
56620
+ if (length !== $undefined) {
56621
+ if (reader.pos !== end)
56622
+ throw $RangeError("index out of range");
56623
+ reader.len = length;
56624
+ }
56625
+ if (_end !== $undefined)
56626
+ throw $Error("missing end group");
56627
+ return message;
56628
+ };
56629
+
56630
+ /**
56631
+ * Decodes a CombinedFingerprint message from the specified reader or buffer, length delimited.
56632
+ * @function decodeDelimited
56633
+ * @memberof waproto.CombinedFingerprint
56634
+ * @static
56635
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56636
+ * @returns {waproto.CombinedFingerprint & waproto.CombinedFingerprint.$Shape} CombinedFingerprint
56637
+ * @throws {Error} If the payload is not a reader or valid buffer
56638
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56639
+ */
56640
+ CombinedFingerprint.decodeDelimited = function(reader) {
56641
+ if (!(reader instanceof $Reader))
56642
+ reader = new $Reader(reader);
56643
+ return this.decode(reader, reader.size());
56644
+ };
56645
+
56646
+ /**
56647
+ * Verifies a CombinedFingerprint message.
56648
+ * @function verify
56649
+ * @memberof waproto.CombinedFingerprint
56650
+ * @static
56651
+ * @param {Object.<string,*>} message Plain object to verify
56652
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56653
+ */
56654
+ CombinedFingerprint.verify = function (message, _depth) {
56655
+ if (typeof message !== "object" || message === null)
56656
+ return "object expected";
56657
+ if (_depth === $undefined)
56658
+ _depth = 0;
56659
+ if (_depth > $util.recursionLimit)
56660
+ return "max depth exceeded";
56661
+ var properties = {};
56662
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version")) {
56663
+ properties._version = 1;
56664
+ if (!$util.isInteger(message.version))
56665
+ return "version: integer expected";
56666
+ }
56667
+ if (message.localFingerprint != null && $Object.hasOwnProperty.call(message, "localFingerprint")) {
56668
+ properties._localFingerprint = 1;
56669
+ {
56670
+ var error = $root.waproto.FingerprintData.verify(message.localFingerprint, _depth + 1);
56671
+ if (error)
56672
+ return "localFingerprint." + error;
56673
+ }
56674
+ }
56675
+ if (message.remoteFingerprint != null && $Object.hasOwnProperty.call(message, "remoteFingerprint")) {
56676
+ properties._remoteFingerprint = 1;
56677
+ {
56678
+ var error = $root.waproto.FingerprintData.verify(message.remoteFingerprint, _depth + 1);
56679
+ if (error)
56680
+ return "remoteFingerprint." + error;
56681
+ }
56682
+ }
56683
+ return null;
56684
+ };
56685
+
56686
+ /**
56687
+ * Creates a CombinedFingerprint message from a plain object. Also converts values to their respective internal types.
56688
+ * @function fromObject
56689
+ * @memberof waproto.CombinedFingerprint
56690
+ * @static
56691
+ * @param {Object.<string,*>} object Plain object
56692
+ * @returns {waproto.CombinedFingerprint} CombinedFingerprint
56693
+ */
56694
+ CombinedFingerprint.fromObject = function (object, _depth) {
56695
+ if (object instanceof $root.waproto.CombinedFingerprint)
56696
+ return object;
56697
+ if (!$util.isObject(object))
56698
+ throw $TypeError(".waproto.CombinedFingerprint: object expected");
56699
+ if (_depth === $undefined)
56700
+ _depth = 0;
56701
+ if (_depth > $util.recursionLimit)
56702
+ throw $Error("max depth exceeded");
56703
+ var message = new $root.waproto.CombinedFingerprint();
56704
+ if (object.version != null)
56705
+ message.version = object.version >>> 0;
56706
+ if (object.localFingerprint != null) {
56707
+ if (!$util.isObject(object.localFingerprint))
56708
+ throw $TypeError(".waproto.CombinedFingerprint.localFingerprint: object expected");
56709
+ message.localFingerprint = $root.waproto.FingerprintData.fromObject(object.localFingerprint, _depth + 1);
56710
+ }
56711
+ if (object.remoteFingerprint != null) {
56712
+ if (!$util.isObject(object.remoteFingerprint))
56713
+ throw $TypeError(".waproto.CombinedFingerprint.remoteFingerprint: object expected");
56714
+ message.remoteFingerprint = $root.waproto.FingerprintData.fromObject(object.remoteFingerprint, _depth + 1);
56715
+ }
56716
+ return message;
56717
+ };
56718
+
56719
+ /**
56720
+ * Creates a plain object from a CombinedFingerprint message. Also converts values to other types if specified.
56721
+ * @function toObject
56722
+ * @memberof waproto.CombinedFingerprint
56723
+ * @static
56724
+ * @param {waproto.CombinedFingerprint} message CombinedFingerprint
56725
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56726
+ * @returns {Object.<string,*>} Plain object
56727
+ */
56728
+ CombinedFingerprint.toObject = function (message, options, _depth) {
56729
+ if (!options)
56730
+ options = {};
56731
+ if (_depth === $undefined)
56732
+ _depth = 0;
56733
+ if (_depth > $util.recursionLimit)
56734
+ throw $Error("max depth exceeded");
56735
+ var object = {};
56736
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version"))
56737
+ object.version = message.version;
56738
+ if (message.localFingerprint != null && $Object.hasOwnProperty.call(message, "localFingerprint"))
56739
+ object.localFingerprint = $root.waproto.FingerprintData.toObject(message.localFingerprint, options, _depth + 1);
56740
+ if (message.remoteFingerprint != null && $Object.hasOwnProperty.call(message, "remoteFingerprint"))
56741
+ object.remoteFingerprint = $root.waproto.FingerprintData.toObject(message.remoteFingerprint, options, _depth + 1);
56742
+ return object;
56743
+ };
56744
+
56745
+ /**
56746
+ * Converts this CombinedFingerprint to JSON.
56747
+ * @function toJSON
56748
+ * @memberof waproto.CombinedFingerprint
56749
+ * @instance
56750
+ * @returns {Object.<string,*>} JSON object
56751
+ */
56752
+ CombinedFingerprint.prototype.toJSON = function() {
56753
+ return CombinedFingerprint.toObject(this, $protobuf.util.toJSONOptions);
56754
+ };
56755
+
56756
+ /**
56757
+ * Gets the type url for CombinedFingerprint
56758
+ * @function getTypeUrl
56759
+ * @memberof waproto.CombinedFingerprint
56760
+ * @static
56761
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
56762
+ * @returns {string} The type url
56763
+ */
56764
+ CombinedFingerprint.getTypeUrl = function(prefix) {
56765
+ if (prefix === $undefined)
56766
+ prefix = "type.googleapis.com";
56767
+ return prefix + "/waproto.CombinedFingerprint";
56768
+ };
56769
+
56770
+ return CombinedFingerprint;
56771
+ })();
56772
+
56413
56773
  waproto.CommentMetadata = (function() {
56414
56774
 
56415
56775
  /**
@@ -83557,6 +83917,479 @@ $root.waproto = (function() {
83557
83917
  return Field;
83558
83918
  })();
83559
83919
 
83920
+ waproto.FingerprintData = (function() {
83921
+
83922
+ /**
83923
+ * Properties of a FingerprintData.
83924
+ * @typedef {Object} waproto.FingerprintData.$Properties
83925
+ * @property {Uint8Array|null} [publicKey] FingerprintData publicKey
83926
+ * @property {Uint8Array|null} [pnIdentifier] FingerprintData pnIdentifier
83927
+ * @property {Uint8Array|null} [lidIdentifier] FingerprintData lidIdentifier
83928
+ * @property {Uint8Array|null} [usernameIdentifier] FingerprintData usernameIdentifier
83929
+ * @property {waproto.HostedState|null} [hostedState] FingerprintData hostedState
83930
+ * @property {Uint8Array|null} [hashedPublicKey] FingerprintData hashedPublicKey
83931
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
83932
+ */
83933
+
83934
+ /**
83935
+ * Properties of a FingerprintData.
83936
+ * @memberof waproto
83937
+ * @interface IFingerprintData
83938
+ * @augments waproto.FingerprintData.$Properties
83939
+ * @deprecated Use waproto.FingerprintData.$Properties instead.
83940
+ */
83941
+
83942
+ /**
83943
+ * Shape of a FingerprintData.
83944
+ * @typedef {waproto.FingerprintData.$Properties} waproto.FingerprintData.$Shape
83945
+ */
83946
+
83947
+ /**
83948
+ * Constructs a new FingerprintData.
83949
+ * @memberof waproto
83950
+ * @classdesc Represents a FingerprintData.
83951
+ * @constructor
83952
+ * @param {waproto.FingerprintData.$Properties=} [properties] Properties to set
83953
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
83954
+ */
83955
+ var FingerprintData = function (properties) {
83956
+ if (properties)
83957
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
83958
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
83959
+ this[keys[i]] = properties[keys[i]];
83960
+ };
83961
+
83962
+ /**
83963
+ * FingerprintData publicKey.
83964
+ * @member {Uint8Array|null|undefined} publicKey
83965
+ * @memberof waproto.FingerprintData
83966
+ * @instance
83967
+ */
83968
+ FingerprintData.prototype.publicKey = null;
83969
+
83970
+ /**
83971
+ * FingerprintData pnIdentifier.
83972
+ * @member {Uint8Array|null|undefined} pnIdentifier
83973
+ * @memberof waproto.FingerprintData
83974
+ * @instance
83975
+ */
83976
+ FingerprintData.prototype.pnIdentifier = null;
83977
+
83978
+ /**
83979
+ * FingerprintData lidIdentifier.
83980
+ * @member {Uint8Array|null|undefined} lidIdentifier
83981
+ * @memberof waproto.FingerprintData
83982
+ * @instance
83983
+ */
83984
+ FingerprintData.prototype.lidIdentifier = null;
83985
+
83986
+ /**
83987
+ * FingerprintData usernameIdentifier.
83988
+ * @member {Uint8Array|null|undefined} usernameIdentifier
83989
+ * @memberof waproto.FingerprintData
83990
+ * @instance
83991
+ */
83992
+ FingerprintData.prototype.usernameIdentifier = null;
83993
+
83994
+ /**
83995
+ * FingerprintData hostedState.
83996
+ * @member {waproto.HostedState|null|undefined} hostedState
83997
+ * @memberof waproto.FingerprintData
83998
+ * @instance
83999
+ */
84000
+ FingerprintData.prototype.hostedState = null;
84001
+
84002
+ /**
84003
+ * FingerprintData hashedPublicKey.
84004
+ * @member {Uint8Array|null|undefined} hashedPublicKey
84005
+ * @memberof waproto.FingerprintData
84006
+ * @instance
84007
+ */
84008
+ FingerprintData.prototype.hashedPublicKey = null;
84009
+
84010
+ // OneOf field names bound to virtual getters and setters
84011
+ var $oneOfFields;
84012
+
84013
+ // Virtual OneOf for proto3 optional field
84014
+ $Object.defineProperty(FingerprintData.prototype, "_publicKey", {
84015
+ get: $util.oneOfGetter($oneOfFields = ["publicKey"]),
84016
+ set: $util.oneOfSetter($oneOfFields)
84017
+ });
84018
+
84019
+ // Virtual OneOf for proto3 optional field
84020
+ $Object.defineProperty(FingerprintData.prototype, "_pnIdentifier", {
84021
+ get: $util.oneOfGetter($oneOfFields = ["pnIdentifier"]),
84022
+ set: $util.oneOfSetter($oneOfFields)
84023
+ });
84024
+
84025
+ // Virtual OneOf for proto3 optional field
84026
+ $Object.defineProperty(FingerprintData.prototype, "_lidIdentifier", {
84027
+ get: $util.oneOfGetter($oneOfFields = ["lidIdentifier"]),
84028
+ set: $util.oneOfSetter($oneOfFields)
84029
+ });
84030
+
84031
+ // Virtual OneOf for proto3 optional field
84032
+ $Object.defineProperty(FingerprintData.prototype, "_usernameIdentifier", {
84033
+ get: $util.oneOfGetter($oneOfFields = ["usernameIdentifier"]),
84034
+ set: $util.oneOfSetter($oneOfFields)
84035
+ });
84036
+
84037
+ // Virtual OneOf for proto3 optional field
84038
+ $Object.defineProperty(FingerprintData.prototype, "_hostedState", {
84039
+ get: $util.oneOfGetter($oneOfFields = ["hostedState"]),
84040
+ set: $util.oneOfSetter($oneOfFields)
84041
+ });
84042
+
84043
+ // Virtual OneOf for proto3 optional field
84044
+ $Object.defineProperty(FingerprintData.prototype, "_hashedPublicKey", {
84045
+ get: $util.oneOfGetter($oneOfFields = ["hashedPublicKey"]),
84046
+ set: $util.oneOfSetter($oneOfFields)
84047
+ });
84048
+
84049
+ /**
84050
+ * Creates a new FingerprintData instance using the specified properties.
84051
+ * @function create
84052
+ * @memberof waproto.FingerprintData
84053
+ * @static
84054
+ * @param {waproto.FingerprintData.$Properties=} [properties] Properties to set
84055
+ * @returns {waproto.FingerprintData} FingerprintData instance
84056
+ * @type {{
84057
+ * (properties: waproto.FingerprintData.$Shape): waproto.FingerprintData & waproto.FingerprintData.$Shape;
84058
+ * (properties?: waproto.FingerprintData.$Properties): waproto.FingerprintData;
84059
+ * }}
84060
+ */
84061
+ FingerprintData.create = function(properties) {
84062
+ return new FingerprintData(properties);
84063
+ };
84064
+
84065
+ /**
84066
+ * Encodes the specified FingerprintData message. Does not implicitly {@link waproto.FingerprintData.verify|verify} messages.
84067
+ * @function encode
84068
+ * @memberof waproto.FingerprintData
84069
+ * @static
84070
+ * @param {waproto.FingerprintData.$Properties} message FingerprintData message or plain object to encode
84071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
84072
+ * @returns {$protobuf.Writer} Writer
84073
+ */
84074
+ FingerprintData.encode = function (message, writer, _depth) {
84075
+ if (!writer)
84076
+ writer = $Writer.create();
84077
+ if (_depth === $undefined)
84078
+ _depth = 0;
84079
+ if (_depth > $util.recursionLimit)
84080
+ throw $Error("max depth exceeded");
84081
+ if (message.publicKey != null && $Object.hasOwnProperty.call(message, "publicKey"))
84082
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.publicKey);
84083
+ if (message.pnIdentifier != null && $Object.hasOwnProperty.call(message, "pnIdentifier"))
84084
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.pnIdentifier);
84085
+ if (message.lidIdentifier != null && $Object.hasOwnProperty.call(message, "lidIdentifier"))
84086
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.lidIdentifier);
84087
+ if (message.usernameIdentifier != null && $Object.hasOwnProperty.call(message, "usernameIdentifier"))
84088
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.usernameIdentifier);
84089
+ if (message.hostedState != null && $Object.hasOwnProperty.call(message, "hostedState"))
84090
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.hostedState);
84091
+ if (message.hashedPublicKey != null && $Object.hasOwnProperty.call(message, "hashedPublicKey"))
84092
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.hashedPublicKey);
84093
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
84094
+ for (var i = 0; i < message.$unknowns.length; ++i)
84095
+ writer.raw(message.$unknowns[i]);
84096
+ return writer;
84097
+ };
84098
+
84099
+ /**
84100
+ * Encodes the specified FingerprintData message, length delimited. Does not implicitly {@link waproto.FingerprintData.verify|verify} messages.
84101
+ * @function encodeDelimited
84102
+ * @memberof waproto.FingerprintData
84103
+ * @static
84104
+ * @param {waproto.FingerprintData.$Properties} message FingerprintData message or plain object to encode
84105
+ * @param {$protobuf.Writer} [writer] Writer to encode to
84106
+ * @returns {$protobuf.Writer} Writer
84107
+ */
84108
+ FingerprintData.encodeDelimited = function(message, writer) {
84109
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
84110
+ };
84111
+
84112
+ /**
84113
+ * Decodes a FingerprintData message from the specified reader or buffer.
84114
+ * @function decode
84115
+ * @memberof waproto.FingerprintData
84116
+ * @static
84117
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
84118
+ * @param {number} [length] Message length if known beforehand
84119
+ * @returns {waproto.FingerprintData & waproto.FingerprintData.$Shape} FingerprintData
84120
+ * @throws {Error} If the payload is not a reader or valid buffer
84121
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
84122
+ */
84123
+ FingerprintData.decode = function (reader, length, _end, _depth, _target) {
84124
+ if (!(reader instanceof $Reader))
84125
+ reader = $Reader.create(reader);
84126
+ if (_depth === $undefined)
84127
+ _depth = 0;
84128
+ if (_depth > $Reader.recursionLimit)
84129
+ throw $Error("max depth exceeded");
84130
+ var end, message, value;
84131
+ if (length === $undefined)
84132
+ end = reader.len;
84133
+ else {
84134
+ end = reader.pos + length;
84135
+ if (end > reader.len)
84136
+ throw $RangeError("index out of range");
84137
+ length = reader.len;
84138
+ reader.len = end;
84139
+ }
84140
+ message = _target || new $root.waproto.FingerprintData();
84141
+ while (reader.pos < end) {
84142
+ var start = reader.pos;
84143
+ var tag = reader.tag();
84144
+ if (tag === _end) {
84145
+ _end = $undefined;
84146
+ break;
84147
+ }
84148
+ var wireType = tag & 7;
84149
+ switch (tag >>>= 3) {
84150
+ case 1: {
84151
+ if (wireType !== 2)
84152
+ break;
84153
+ message.publicKey = reader.bytes();
84154
+ message._publicKey = "publicKey";
84155
+ continue;
84156
+ }
84157
+ case 2: {
84158
+ if (wireType !== 2)
84159
+ break;
84160
+ message.pnIdentifier = reader.bytes();
84161
+ message._pnIdentifier = "pnIdentifier";
84162
+ continue;
84163
+ }
84164
+ case 3: {
84165
+ if (wireType !== 2)
84166
+ break;
84167
+ message.lidIdentifier = reader.bytes();
84168
+ message._lidIdentifier = "lidIdentifier";
84169
+ continue;
84170
+ }
84171
+ case 4: {
84172
+ if (wireType !== 2)
84173
+ break;
84174
+ message.usernameIdentifier = reader.bytes();
84175
+ message._usernameIdentifier = "usernameIdentifier";
84176
+ continue;
84177
+ }
84178
+ case 5: {
84179
+ if (wireType !== 0)
84180
+ break;
84181
+ message.hostedState = reader.int32();
84182
+ message._hostedState = "hostedState";
84183
+ continue;
84184
+ }
84185
+ case 6: {
84186
+ if (wireType !== 2)
84187
+ break;
84188
+ message.hashedPublicKey = reader.bytes();
84189
+ message._hashedPublicKey = "hashedPublicKey";
84190
+ continue;
84191
+ }
84192
+ }
84193
+ reader.skipType(wireType, _depth, tag);
84194
+ if (!reader.discardUnknown) {
84195
+ $util.makeProp(message, "$unknowns", false);
84196
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
84197
+ }
84198
+ }
84199
+ if (length !== $undefined) {
84200
+ if (reader.pos !== end)
84201
+ throw $RangeError("index out of range");
84202
+ reader.len = length;
84203
+ }
84204
+ if (_end !== $undefined)
84205
+ throw $Error("missing end group");
84206
+ return message;
84207
+ };
84208
+
84209
+ /**
84210
+ * Decodes a FingerprintData message from the specified reader or buffer, length delimited.
84211
+ * @function decodeDelimited
84212
+ * @memberof waproto.FingerprintData
84213
+ * @static
84214
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
84215
+ * @returns {waproto.FingerprintData & waproto.FingerprintData.$Shape} FingerprintData
84216
+ * @throws {Error} If the payload is not a reader or valid buffer
84217
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
84218
+ */
84219
+ FingerprintData.decodeDelimited = function(reader) {
84220
+ if (!(reader instanceof $Reader))
84221
+ reader = new $Reader(reader);
84222
+ return this.decode(reader, reader.size());
84223
+ };
84224
+
84225
+ /**
84226
+ * Verifies a FingerprintData message.
84227
+ * @function verify
84228
+ * @memberof waproto.FingerprintData
84229
+ * @static
84230
+ * @param {Object.<string,*>} message Plain object to verify
84231
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
84232
+ */
84233
+ FingerprintData.verify = function (message, _depth) {
84234
+ if (typeof message !== "object" || message === null)
84235
+ return "object expected";
84236
+ if (_depth === $undefined)
84237
+ _depth = 0;
84238
+ if (_depth > $util.recursionLimit)
84239
+ return "max depth exceeded";
84240
+ var properties = {};
84241
+ if (message.publicKey != null && $Object.hasOwnProperty.call(message, "publicKey")) {
84242
+ properties._publicKey = 1;
84243
+ if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
84244
+ return "publicKey: buffer expected";
84245
+ }
84246
+ if (message.pnIdentifier != null && $Object.hasOwnProperty.call(message, "pnIdentifier")) {
84247
+ properties._pnIdentifier = 1;
84248
+ if (!(message.pnIdentifier && typeof message.pnIdentifier.length === "number" || $util.isString(message.pnIdentifier)))
84249
+ return "pnIdentifier: buffer expected";
84250
+ }
84251
+ if (message.lidIdentifier != null && $Object.hasOwnProperty.call(message, "lidIdentifier")) {
84252
+ properties._lidIdentifier = 1;
84253
+ if (!(message.lidIdentifier && typeof message.lidIdentifier.length === "number" || $util.isString(message.lidIdentifier)))
84254
+ return "lidIdentifier: buffer expected";
84255
+ }
84256
+ if (message.usernameIdentifier != null && $Object.hasOwnProperty.call(message, "usernameIdentifier")) {
84257
+ properties._usernameIdentifier = 1;
84258
+ if (!(message.usernameIdentifier && typeof message.usernameIdentifier.length === "number" || $util.isString(message.usernameIdentifier)))
84259
+ return "usernameIdentifier: buffer expected";
84260
+ }
84261
+ if (message.hostedState != null && $Object.hasOwnProperty.call(message, "hostedState")) {
84262
+ properties._hostedState = 1;
84263
+ if (typeof message.hostedState !== "number" || (message.hostedState | 0) !== message.hostedState)
84264
+ return "hostedState: enum value expected";
84265
+ }
84266
+ if (message.hashedPublicKey != null && $Object.hasOwnProperty.call(message, "hashedPublicKey")) {
84267
+ properties._hashedPublicKey = 1;
84268
+ if (!(message.hashedPublicKey && typeof message.hashedPublicKey.length === "number" || $util.isString(message.hashedPublicKey)))
84269
+ return "hashedPublicKey: buffer expected";
84270
+ }
84271
+ return null;
84272
+ };
84273
+
84274
+ /**
84275
+ * Creates a FingerprintData message from a plain object. Also converts values to their respective internal types.
84276
+ * @function fromObject
84277
+ * @memberof waproto.FingerprintData
84278
+ * @static
84279
+ * @param {Object.<string,*>} object Plain object
84280
+ * @returns {waproto.FingerprintData} FingerprintData
84281
+ */
84282
+ FingerprintData.fromObject = function (object, _depth) {
84283
+ if (object instanceof $root.waproto.FingerprintData)
84284
+ return object;
84285
+ if (!$util.isObject(object))
84286
+ throw $TypeError(".waproto.FingerprintData: object expected");
84287
+ if (_depth === $undefined)
84288
+ _depth = 0;
84289
+ if (_depth > $util.recursionLimit)
84290
+ throw $Error("max depth exceeded");
84291
+ var message = new $root.waproto.FingerprintData();
84292
+ if (object.publicKey != null)
84293
+ if (typeof object.publicKey === "string")
84294
+ $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
84295
+ else if (object.publicKey.length >= 0)
84296
+ message.publicKey = object.publicKey;
84297
+ if (object.pnIdentifier != null)
84298
+ if (typeof object.pnIdentifier === "string")
84299
+ $util.base64.decode(object.pnIdentifier, message.pnIdentifier = $util.newBuffer($util.base64.length(object.pnIdentifier)), 0);
84300
+ else if (object.pnIdentifier.length >= 0)
84301
+ message.pnIdentifier = object.pnIdentifier;
84302
+ if (object.lidIdentifier != null)
84303
+ if (typeof object.lidIdentifier === "string")
84304
+ $util.base64.decode(object.lidIdentifier, message.lidIdentifier = $util.newBuffer($util.base64.length(object.lidIdentifier)), 0);
84305
+ else if (object.lidIdentifier.length >= 0)
84306
+ message.lidIdentifier = object.lidIdentifier;
84307
+ if (object.usernameIdentifier != null)
84308
+ if (typeof object.usernameIdentifier === "string")
84309
+ $util.base64.decode(object.usernameIdentifier, message.usernameIdentifier = $util.newBuffer($util.base64.length(object.usernameIdentifier)), 0);
84310
+ else if (object.usernameIdentifier.length >= 0)
84311
+ message.usernameIdentifier = object.usernameIdentifier;
84312
+ switch (object.hostedState) {
84313
+ case "E2EE":
84314
+ case 0:
84315
+ message.hostedState = 0;
84316
+ break;
84317
+ case "HOSTED":
84318
+ case 1:
84319
+ message.hostedState = 1;
84320
+ break;
84321
+ default:
84322
+ if (typeof object.hostedState === "number" && (object.hostedState | 0) === object.hostedState)
84323
+ message.hostedState = object.hostedState;
84324
+ }
84325
+ if (object.hashedPublicKey != null)
84326
+ if (typeof object.hashedPublicKey === "string")
84327
+ $util.base64.decode(object.hashedPublicKey, message.hashedPublicKey = $util.newBuffer($util.base64.length(object.hashedPublicKey)), 0);
84328
+ else if (object.hashedPublicKey.length >= 0)
84329
+ message.hashedPublicKey = object.hashedPublicKey;
84330
+ return message;
84331
+ };
84332
+
84333
+ /**
84334
+ * Creates a plain object from a FingerprintData message. Also converts values to other types if specified.
84335
+ * @function toObject
84336
+ * @memberof waproto.FingerprintData
84337
+ * @static
84338
+ * @param {waproto.FingerprintData} message FingerprintData
84339
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
84340
+ * @returns {Object.<string,*>} Plain object
84341
+ */
84342
+ FingerprintData.toObject = function (message, options, _depth) {
84343
+ if (!options)
84344
+ options = {};
84345
+ if (_depth === $undefined)
84346
+ _depth = 0;
84347
+ if (_depth > $util.recursionLimit)
84348
+ throw $Error("max depth exceeded");
84349
+ var object = {};
84350
+ if (message.publicKey != null && $Object.hasOwnProperty.call(message, "publicKey"))
84351
+ object.publicKey = options.bytes === $String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.publicKey) : message.publicKey;
84352
+ if (message.pnIdentifier != null && $Object.hasOwnProperty.call(message, "pnIdentifier"))
84353
+ object.pnIdentifier = options.bytes === $String ? $util.base64.encode(message.pnIdentifier, 0, message.pnIdentifier.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.pnIdentifier) : message.pnIdentifier;
84354
+ if (message.lidIdentifier != null && $Object.hasOwnProperty.call(message, "lidIdentifier"))
84355
+ object.lidIdentifier = options.bytes === $String ? $util.base64.encode(message.lidIdentifier, 0, message.lidIdentifier.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.lidIdentifier) : message.lidIdentifier;
84356
+ if (message.usernameIdentifier != null && $Object.hasOwnProperty.call(message, "usernameIdentifier"))
84357
+ object.usernameIdentifier = options.bytes === $String ? $util.base64.encode(message.usernameIdentifier, 0, message.usernameIdentifier.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.usernameIdentifier) : message.usernameIdentifier;
84358
+ if (message.hostedState != null && $Object.hasOwnProperty.call(message, "hostedState"))
84359
+ object.hostedState = options.enums === $String ? $root.waproto.HostedState[message.hostedState] === $undefined ? message.hostedState : $root.waproto.HostedState[message.hostedState] : message.hostedState;
84360
+ if (message.hashedPublicKey != null && $Object.hasOwnProperty.call(message, "hashedPublicKey"))
84361
+ object.hashedPublicKey = options.bytes === $String ? $util.base64.encode(message.hashedPublicKey, 0, message.hashedPublicKey.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.hashedPublicKey) : message.hashedPublicKey;
84362
+ return object;
84363
+ };
84364
+
84365
+ /**
84366
+ * Converts this FingerprintData to JSON.
84367
+ * @function toJSON
84368
+ * @memberof waproto.FingerprintData
84369
+ * @instance
84370
+ * @returns {Object.<string,*>} JSON object
84371
+ */
84372
+ FingerprintData.prototype.toJSON = function() {
84373
+ return FingerprintData.toObject(this, $protobuf.util.toJSONOptions);
84374
+ };
84375
+
84376
+ /**
84377
+ * Gets the type url for FingerprintData
84378
+ * @function getTypeUrl
84379
+ * @memberof waproto.FingerprintData
84380
+ * @static
84381
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
84382
+ * @returns {string} The type url
84383
+ */
84384
+ FingerprintData.getTypeUrl = function(prefix) {
84385
+ if (prefix === $undefined)
84386
+ prefix = "type.googleapis.com";
84387
+ return prefix + "/waproto.FingerprintData";
84388
+ };
84389
+
84390
+ return FingerprintData;
84391
+ })();
84392
+
83560
84393
  waproto.ForwardedAIBotMessageInfo = (function() {
83561
84394
 
83562
84395
  /**
@@ -92497,6 +93330,20 @@ $root.waproto = (function() {
92497
93330
  return HistorySyncMsg;
92498
93331
  })();
92499
93332
 
93333
+ /**
93334
+ * HostedState enum.
93335
+ * @name waproto.HostedState
93336
+ * @enum {number}
93337
+ * @property {number} E2EE=0 E2EE value
93338
+ * @property {number} HOSTED=1 HOSTED value
93339
+ */
93340
+ waproto.HostedState = (function() {
93341
+ var valuesById = $Object.create(null), values = $Object.create(valuesById);
93342
+ values[valuesById[0] = "E2EE"] = 0;
93343
+ values[valuesById[1] = "HOSTED"] = 1;
93344
+ return values;
93345
+ })();
93346
+
92500
93347
  waproto.HydratedTemplateButton = (function() {
92501
93348
 
92502
93349
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1053659828",
3
+ "version": "2.3000.1053677024",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {