@wppconnect/wa-proto 2.3000.1054721061 → 2.3000.1054777660
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 +18 -1
- package/dist/index.d.ts +171 -4
- package/dist/index.js +479 -4
- 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.1054777660
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -542,6 +542,7 @@ message BotCapabilityMetadata {
|
|
|
542
542
|
AI_RICH_RESPONSE_READ_ALOUD_ENABLED = 87;
|
|
543
543
|
AI_RICH_RESPONSE_ITEM_LISTS_ENABLED = 88;
|
|
544
544
|
RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH = 89;
|
|
545
|
+
AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED = 90;
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
548
|
|
|
@@ -1265,6 +1266,7 @@ message ClientPairingProps {
|
|
|
1265
1266
|
optional bool isBotJidDbMigrated = 6;
|
|
1266
1267
|
optional bytes companionAddPeerPayload = 7;
|
|
1267
1268
|
optional bool isCompanionRegistrationFgsEnabled = 8;
|
|
1269
|
+
optional bool isCompanionPairingProgressUiEnabled = 10;
|
|
1268
1270
|
}
|
|
1269
1271
|
|
|
1270
1272
|
message ClientPayload {
|
|
@@ -2800,6 +2802,7 @@ message InteractiveAnnotation {
|
|
|
2800
2802
|
ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;
|
|
2801
2803
|
bool embeddedAction = 6;
|
|
2802
2804
|
TapLinkAction tapAction = 7;
|
|
2805
|
+
StatusPixKey pixKey = 9;
|
|
2803
2806
|
}
|
|
2804
2807
|
enum StatusLinkType {
|
|
2805
2808
|
RASTERIZED_LINK_PREVIEW = 1;
|
|
@@ -6166,6 +6169,20 @@ message StatusPSA {
|
|
|
6166
6169
|
optional uint64 campaignExpirationTimestamp = 45;
|
|
6167
6170
|
}
|
|
6168
6171
|
|
|
6172
|
+
message StatusPixKey {
|
|
6173
|
+
optional string key = 1;
|
|
6174
|
+
optional KeyType keyType = 2;
|
|
6175
|
+
optional string displayName = 3;
|
|
6176
|
+
enum KeyType {
|
|
6177
|
+
UNKNOWN = 0;
|
|
6178
|
+
CPF = 1;
|
|
6179
|
+
CNPJ = 2;
|
|
6180
|
+
PHONE = 3;
|
|
6181
|
+
EMAIL = 4;
|
|
6182
|
+
EVP = 5;
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
6185
|
+
|
|
6169
6186
|
message StickerMetadata {
|
|
6170
6187
|
optional string url = 1;
|
|
6171
6188
|
optional bytes fileSha256 = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -7792,7 +7792,10 @@ export namespace waproto {
|
|
|
7792
7792
|
AI_RICH_RESPONSE_ITEM_LISTS_ENABLED = 88,
|
|
7793
7793
|
|
|
7794
7794
|
/** RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH value */
|
|
7795
|
-
RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH = 89
|
|
7795
|
+
RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH = 89,
|
|
7796
|
+
|
|
7797
|
+
/** AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED value */
|
|
7798
|
+
AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED = 90
|
|
7796
7799
|
}
|
|
7797
7800
|
}
|
|
7798
7801
|
|
|
@@ -17738,6 +17741,9 @@ export namespace waproto {
|
|
|
17738
17741
|
/** ClientPairingProps isCompanionRegistrationFgsEnabled. */
|
|
17739
17742
|
isCompanionRegistrationFgsEnabled?: (boolean|null);
|
|
17740
17743
|
|
|
17744
|
+
/** ClientPairingProps isCompanionPairingProgressUiEnabled. */
|
|
17745
|
+
isCompanionPairingProgressUiEnabled?: (boolean|null);
|
|
17746
|
+
|
|
17741
17747
|
/**
|
|
17742
17748
|
* Creates a new ClientPairingProps instance using the specified properties.
|
|
17743
17749
|
* @param [properties] Properties to set
|
|
@@ -17846,6 +17852,9 @@ export namespace waproto {
|
|
|
17846
17852
|
/** ClientPairingProps isCompanionRegistrationFgsEnabled */
|
|
17847
17853
|
isCompanionRegistrationFgsEnabled?: (boolean|null);
|
|
17848
17854
|
|
|
17855
|
+
/** ClientPairingProps isCompanionPairingProgressUiEnabled */
|
|
17856
|
+
isCompanionPairingProgressUiEnabled?: (boolean|null);
|
|
17857
|
+
|
|
17849
17858
|
/** Unknown fields preserved while decoding when enabled */
|
|
17850
17859
|
$unknowns?: Uint8Array[];
|
|
17851
17860
|
}
|
|
@@ -38300,8 +38309,11 @@ export namespace waproto {
|
|
|
38300
38309
|
/** InteractiveAnnotation tapAction. */
|
|
38301
38310
|
tapAction?: (waproto.TapLinkAction.$Properties|null);
|
|
38302
38311
|
|
|
38312
|
+
/** InteractiveAnnotation pixKey. */
|
|
38313
|
+
pixKey?: (waproto.StatusPixKey.$Properties|null);
|
|
38314
|
+
|
|
38303
38315
|
/** InteractiveAnnotation action. */
|
|
38304
|
-
action?: ("location"|"newsletter"|"embeddedAction"|"tapAction");
|
|
38316
|
+
action?: ("location"|"newsletter"|"embeddedAction"|"tapAction"|"pixKey");
|
|
38305
38317
|
|
|
38306
38318
|
/**
|
|
38307
38319
|
* Creates a new InteractiveAnnotation instance using the specified properties.
|
|
@@ -38411,8 +38423,11 @@ export namespace waproto {
|
|
|
38411
38423
|
/** InteractiveAnnotation tapAction */
|
|
38412
38424
|
tapAction?: (waproto.TapLinkAction.$Properties|null);
|
|
38413
38425
|
|
|
38426
|
+
/** InteractiveAnnotation pixKey */
|
|
38427
|
+
pixKey?: (waproto.StatusPixKey.$Properties|null);
|
|
38428
|
+
|
|
38414
38429
|
/** InteractiveAnnotation action */
|
|
38415
|
-
action?: ("location"|"newsletter"|"embeddedAction"|"tapAction");
|
|
38430
|
+
action?: ("location"|"newsletter"|"embeddedAction"|"tapAction"|"pixKey");
|
|
38416
38431
|
|
|
38417
38432
|
/** Unknown fields preserved while decoding when enabled */
|
|
38418
38433
|
$unknowns?: Uint8Array[];
|
|
@@ -38428,9 +38443,10 @@ export namespace waproto {
|
|
|
38428
38443
|
newsletter?: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape|null;
|
|
38429
38444
|
embeddedAction?: boolean|null;
|
|
38430
38445
|
tapAction?: waproto.TapLinkAction.$Shape|null;
|
|
38446
|
+
pixKey?: waproto.StatusPixKey.$Shape|null;
|
|
38431
38447
|
$unknowns?: Uint8Array[];
|
|
38432
38448
|
} & (
|
|
38433
|
-
({ action?: undefined; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null }|{ action?: "location"; location: waproto.Location.$Shape; newsletter?: null; embeddedAction?: null; tapAction?: null }|{ action?: "newsletter"; location?: null; newsletter: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape; embeddedAction?: null; tapAction?: null }|{ action?: "embeddedAction"; location?: null; newsletter?: null; embeddedAction: boolean; tapAction?: null }|{ action?: "tapAction"; location?: null; newsletter?: null; embeddedAction?: null; tapAction: waproto.TapLinkAction.$Shape })
|
|
38449
|
+
({ action?: undefined; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "location"; location: waproto.Location.$Shape; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "newsletter"; location?: null; newsletter: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "embeddedAction"; location?: null; newsletter?: null; embeddedAction: boolean; tapAction?: null; pixKey?: null }|{ action?: "tapAction"; location?: null; newsletter?: null; embeddedAction?: null; tapAction: waproto.TapLinkAction.$Shape; pixKey?: null }|{ action?: "pixKey"; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey: waproto.StatusPixKey.$Shape })
|
|
38434
38450
|
);
|
|
38435
38451
|
|
|
38436
38452
|
/** StatusLinkType enum. */
|
|
@@ -86234,6 +86250,157 @@ export namespace waproto {
|
|
|
86234
86250
|
type $Shape = waproto.StatusPSA.$Properties;
|
|
86235
86251
|
}
|
|
86236
86252
|
|
|
86253
|
+
/**
|
|
86254
|
+
* Properties of a StatusPixKey.
|
|
86255
|
+
* @deprecated Use waproto.StatusPixKey.$Properties instead.
|
|
86256
|
+
*/
|
|
86257
|
+
interface IStatusPixKey extends waproto.StatusPixKey.$Properties {
|
|
86258
|
+
}
|
|
86259
|
+
|
|
86260
|
+
/** Represents a StatusPixKey. */
|
|
86261
|
+
class StatusPixKey {
|
|
86262
|
+
|
|
86263
|
+
/**
|
|
86264
|
+
* Constructs a new StatusPixKey.
|
|
86265
|
+
* @param [properties] Properties to set
|
|
86266
|
+
*/
|
|
86267
|
+
constructor(properties?: waproto.StatusPixKey.$Properties);
|
|
86268
|
+
|
|
86269
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
86270
|
+
$unknowns?: Uint8Array[];
|
|
86271
|
+
|
|
86272
|
+
/** StatusPixKey key. */
|
|
86273
|
+
key?: (string|null);
|
|
86274
|
+
|
|
86275
|
+
/** StatusPixKey keyType. */
|
|
86276
|
+
keyType?: (waproto.StatusPixKey.KeyType|null);
|
|
86277
|
+
|
|
86278
|
+
/** StatusPixKey displayName. */
|
|
86279
|
+
displayName?: (string|null);
|
|
86280
|
+
|
|
86281
|
+
/**
|
|
86282
|
+
* Creates a new StatusPixKey instance using the specified properties.
|
|
86283
|
+
* @param [properties] Properties to set
|
|
86284
|
+
* @returns StatusPixKey instance
|
|
86285
|
+
*/
|
|
86286
|
+
static create(properties: waproto.StatusPixKey.$Shape): waproto.StatusPixKey & waproto.StatusPixKey.$Shape;
|
|
86287
|
+
static create(properties?: waproto.StatusPixKey.$Properties): waproto.StatusPixKey;
|
|
86288
|
+
|
|
86289
|
+
/**
|
|
86290
|
+
* Encodes the specified StatusPixKey message. Does not implicitly {@link waproto.StatusPixKey.verify|verify} messages.
|
|
86291
|
+
* @param message StatusPixKey message or plain object to encode
|
|
86292
|
+
* @param [writer] Writer to encode to
|
|
86293
|
+
* @returns Writer
|
|
86294
|
+
*/
|
|
86295
|
+
static encode(message: waproto.StatusPixKey.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
86296
|
+
|
|
86297
|
+
/**
|
|
86298
|
+
* Encodes the specified StatusPixKey message, length delimited. Does not implicitly {@link waproto.StatusPixKey.verify|verify} messages.
|
|
86299
|
+
* @param message StatusPixKey message or plain object to encode
|
|
86300
|
+
* @param [writer] Writer to encode to
|
|
86301
|
+
* @returns Writer
|
|
86302
|
+
*/
|
|
86303
|
+
static encodeDelimited(message: waproto.StatusPixKey.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
86304
|
+
|
|
86305
|
+
/**
|
|
86306
|
+
* Decodes a StatusPixKey message from the specified reader or buffer.
|
|
86307
|
+
* @param reader Reader or buffer to decode from
|
|
86308
|
+
* @param [length] Message length if known beforehand
|
|
86309
|
+
* @returns {waproto.StatusPixKey & waproto.StatusPixKey.$Shape} StatusPixKey
|
|
86310
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86311
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86312
|
+
*/
|
|
86313
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.StatusPixKey & waproto.StatusPixKey.$Shape;
|
|
86314
|
+
|
|
86315
|
+
/**
|
|
86316
|
+
* Decodes a StatusPixKey message from the specified reader or buffer, length delimited.
|
|
86317
|
+
* @param reader Reader or buffer to decode from
|
|
86318
|
+
* @returns {waproto.StatusPixKey & waproto.StatusPixKey.$Shape} StatusPixKey
|
|
86319
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86320
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86321
|
+
*/
|
|
86322
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.StatusPixKey & waproto.StatusPixKey.$Shape;
|
|
86323
|
+
|
|
86324
|
+
/**
|
|
86325
|
+
* Verifies a StatusPixKey message.
|
|
86326
|
+
* @param message Plain object to verify
|
|
86327
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
86328
|
+
*/
|
|
86329
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
86330
|
+
|
|
86331
|
+
/**
|
|
86332
|
+
* Creates a StatusPixKey message from a plain object. Also converts values to their respective internal types.
|
|
86333
|
+
* @param object Plain object
|
|
86334
|
+
* @returns StatusPixKey
|
|
86335
|
+
*/
|
|
86336
|
+
static fromObject(object: { [k: string]: any }): waproto.StatusPixKey;
|
|
86337
|
+
|
|
86338
|
+
/**
|
|
86339
|
+
* Creates a plain object from a StatusPixKey message. Also converts values to other types if specified.
|
|
86340
|
+
* @param message StatusPixKey
|
|
86341
|
+
* @param [options] Conversion options
|
|
86342
|
+
* @returns Plain object
|
|
86343
|
+
*/
|
|
86344
|
+
static toObject(message: waproto.StatusPixKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
86345
|
+
|
|
86346
|
+
/**
|
|
86347
|
+
* Converts this StatusPixKey to JSON.
|
|
86348
|
+
* @returns JSON object
|
|
86349
|
+
*/
|
|
86350
|
+
toJSON(): { [k: string]: any };
|
|
86351
|
+
|
|
86352
|
+
/**
|
|
86353
|
+
* Gets the type url for StatusPixKey
|
|
86354
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
86355
|
+
* @returns The type url
|
|
86356
|
+
*/
|
|
86357
|
+
static getTypeUrl(prefix?: string): string;
|
|
86358
|
+
}
|
|
86359
|
+
|
|
86360
|
+
namespace StatusPixKey {
|
|
86361
|
+
|
|
86362
|
+
/** Properties of a StatusPixKey. */
|
|
86363
|
+
interface $Properties {
|
|
86364
|
+
|
|
86365
|
+
/** StatusPixKey key */
|
|
86366
|
+
key?: (string|null);
|
|
86367
|
+
|
|
86368
|
+
/** StatusPixKey keyType */
|
|
86369
|
+
keyType?: (waproto.StatusPixKey.KeyType|null);
|
|
86370
|
+
|
|
86371
|
+
/** StatusPixKey displayName */
|
|
86372
|
+
displayName?: (string|null);
|
|
86373
|
+
|
|
86374
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
86375
|
+
$unknowns?: Uint8Array[];
|
|
86376
|
+
}
|
|
86377
|
+
|
|
86378
|
+
/** Shape of a StatusPixKey. */
|
|
86379
|
+
type $Shape = waproto.StatusPixKey.$Properties;
|
|
86380
|
+
|
|
86381
|
+
/** KeyType enum. */
|
|
86382
|
+
enum KeyType {
|
|
86383
|
+
|
|
86384
|
+
/** UNKNOWN value */
|
|
86385
|
+
UNKNOWN = 0,
|
|
86386
|
+
|
|
86387
|
+
/** CPF value */
|
|
86388
|
+
CPF = 1,
|
|
86389
|
+
|
|
86390
|
+
/** CNPJ value */
|
|
86391
|
+
CNPJ = 2,
|
|
86392
|
+
|
|
86393
|
+
/** PHONE value */
|
|
86394
|
+
PHONE = 3,
|
|
86395
|
+
|
|
86396
|
+
/** EMAIL value */
|
|
86397
|
+
EMAIL = 4,
|
|
86398
|
+
|
|
86399
|
+
/** EVP value */
|
|
86400
|
+
EVP = 5
|
|
86401
|
+
}
|
|
86402
|
+
}
|
|
86403
|
+
|
|
86237
86404
|
/**
|
|
86238
86405
|
* Properties of a StickerMetadata.
|
|
86239
86406
|
* @deprecated Use waproto.StickerMetadata.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -21290,6 +21290,10 @@ $root.waproto = (function() {
|
|
|
21290
21290
|
case 89:
|
|
21291
21291
|
message.capabilities[message.capabilities.length] = 89;
|
|
21292
21292
|
break;
|
|
21293
|
+
case "AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED":
|
|
21294
|
+
case 90:
|
|
21295
|
+
message.capabilities[message.capabilities.length] = 90;
|
|
21296
|
+
break;
|
|
21293
21297
|
default:
|
|
21294
21298
|
if (typeof object.capabilities[i] === "number" && (object.capabilities[i] | 0) === object.capabilities[i])
|
|
21295
21299
|
message.capabilities[message.capabilities.length] = object.capabilities[i];
|
|
@@ -21444,6 +21448,7 @@ $root.waproto = (function() {
|
|
|
21444
21448
|
* @property {number} AI_RICH_RESPONSE_READ_ALOUD_ENABLED=87 AI_RICH_RESPONSE_READ_ALOUD_ENABLED value
|
|
21445
21449
|
* @property {number} AI_RICH_RESPONSE_ITEM_LISTS_ENABLED=88 AI_RICH_RESPONSE_ITEM_LISTS_ENABLED value
|
|
21446
21450
|
* @property {number} RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH=89 RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH value
|
|
21451
|
+
* @property {number} AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED=90 AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED value
|
|
21447
21452
|
*/
|
|
21448
21453
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
21449
21454
|
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
@@ -21537,6 +21542,7 @@ $root.waproto = (function() {
|
|
|
21537
21542
|
values[valuesById[87] = "AI_RICH_RESPONSE_READ_ALOUD_ENABLED"] = 87;
|
|
21538
21543
|
values[valuesById[88] = "AI_RICH_RESPONSE_ITEM_LISTS_ENABLED"] = 88;
|
|
21539
21544
|
values[valuesById[89] = "RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH"] = 89;
|
|
21545
|
+
values[valuesById[90] = "AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED"] = 90;
|
|
21540
21546
|
return values;
|
|
21541
21547
|
})();
|
|
21542
21548
|
|
|
@@ -49900,6 +49906,7 @@ $root.waproto = (function() {
|
|
|
49900
49906
|
* @property {boolean|null} [isBotJidDbMigrated] ClientPairingProps isBotJidDbMigrated
|
|
49901
49907
|
* @property {Uint8Array|null} [companionAddPeerPayload] ClientPairingProps companionAddPeerPayload
|
|
49902
49908
|
* @property {boolean|null} [isCompanionRegistrationFgsEnabled] ClientPairingProps isCompanionRegistrationFgsEnabled
|
|
49909
|
+
* @property {boolean|null} [isCompanionPairingProgressUiEnabled] ClientPairingProps isCompanionPairingProgressUiEnabled
|
|
49903
49910
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
49904
49911
|
*/
|
|
49905
49912
|
|
|
@@ -49995,6 +50002,14 @@ $root.waproto = (function() {
|
|
|
49995
50002
|
*/
|
|
49996
50003
|
ClientPairingProps.prototype.isCompanionRegistrationFgsEnabled = null;
|
|
49997
50004
|
|
|
50005
|
+
/**
|
|
50006
|
+
* ClientPairingProps isCompanionPairingProgressUiEnabled.
|
|
50007
|
+
* @member {boolean|null|undefined} isCompanionPairingProgressUiEnabled
|
|
50008
|
+
* @memberof waproto.ClientPairingProps
|
|
50009
|
+
* @instance
|
|
50010
|
+
*/
|
|
50011
|
+
ClientPairingProps.prototype.isCompanionPairingProgressUiEnabled = null;
|
|
50012
|
+
|
|
49998
50013
|
// OneOf field names bound to virtual getters and setters
|
|
49999
50014
|
var $oneOfFields;
|
|
50000
50015
|
|
|
@@ -50046,6 +50061,12 @@ $root.waproto = (function() {
|
|
|
50046
50061
|
set: $util.oneOfSetter($oneOfFields)
|
|
50047
50062
|
});
|
|
50048
50063
|
|
|
50064
|
+
// Virtual OneOf for proto3 optional field
|
|
50065
|
+
$Object.defineProperty(ClientPairingProps.prototype, "_isCompanionPairingProgressUiEnabled", {
|
|
50066
|
+
get: $util.oneOfGetter($oneOfFields = ["isCompanionPairingProgressUiEnabled"]),
|
|
50067
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
50068
|
+
});
|
|
50069
|
+
|
|
50049
50070
|
/**
|
|
50050
50071
|
* Creates a new ClientPairingProps instance using the specified properties.
|
|
50051
50072
|
* @function create
|
|
@@ -50094,6 +50115,8 @@ $root.waproto = (function() {
|
|
|
50094
50115
|
writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.companionAddPeerPayload);
|
|
50095
50116
|
if (message.isCompanionRegistrationFgsEnabled != null && $Object.hasOwnProperty.call(message, "isCompanionRegistrationFgsEnabled"))
|
|
50096
50117
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isCompanionRegistrationFgsEnabled);
|
|
50118
|
+
if (message.isCompanionPairingProgressUiEnabled != null && $Object.hasOwnProperty.call(message, "isCompanionPairingProgressUiEnabled"))
|
|
50119
|
+
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isCompanionPairingProgressUiEnabled);
|
|
50097
50120
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
50098
50121
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
50099
50122
|
writer.raw(message.$unknowns[i]);
|
|
@@ -50207,6 +50230,13 @@ $root.waproto = (function() {
|
|
|
50207
50230
|
message._isCompanionRegistrationFgsEnabled = "isCompanionRegistrationFgsEnabled";
|
|
50208
50231
|
continue;
|
|
50209
50232
|
}
|
|
50233
|
+
case 10: {
|
|
50234
|
+
if (wireType !== 0)
|
|
50235
|
+
break;
|
|
50236
|
+
message.isCompanionPairingProgressUiEnabled = reader.bool();
|
|
50237
|
+
message._isCompanionPairingProgressUiEnabled = "isCompanionPairingProgressUiEnabled";
|
|
50238
|
+
continue;
|
|
50239
|
+
}
|
|
50210
50240
|
}
|
|
50211
50241
|
reader.skipType(wireType, _depth, tag);
|
|
50212
50242
|
if (!reader.discardUnknown) {
|
|
@@ -50296,6 +50326,11 @@ $root.waproto = (function() {
|
|
|
50296
50326
|
if (typeof message.isCompanionRegistrationFgsEnabled !== "boolean")
|
|
50297
50327
|
return "isCompanionRegistrationFgsEnabled: boolean expected";
|
|
50298
50328
|
}
|
|
50329
|
+
if (message.isCompanionPairingProgressUiEnabled != null && $Object.hasOwnProperty.call(message, "isCompanionPairingProgressUiEnabled")) {
|
|
50330
|
+
properties._isCompanionPairingProgressUiEnabled = 1;
|
|
50331
|
+
if (typeof message.isCompanionPairingProgressUiEnabled !== "boolean")
|
|
50332
|
+
return "isCompanionPairingProgressUiEnabled: boolean expected";
|
|
50333
|
+
}
|
|
50299
50334
|
return null;
|
|
50300
50335
|
};
|
|
50301
50336
|
|
|
@@ -50339,6 +50374,8 @@ $root.waproto = (function() {
|
|
|
50339
50374
|
message.companionAddPeerPayload = object.companionAddPeerPayload;
|
|
50340
50375
|
if (object.isCompanionRegistrationFgsEnabled != null)
|
|
50341
50376
|
message.isCompanionRegistrationFgsEnabled = $Boolean(object.isCompanionRegistrationFgsEnabled);
|
|
50377
|
+
if (object.isCompanionPairingProgressUiEnabled != null)
|
|
50378
|
+
message.isCompanionPairingProgressUiEnabled = $Boolean(object.isCompanionPairingProgressUiEnabled);
|
|
50342
50379
|
return message;
|
|
50343
50380
|
};
|
|
50344
50381
|
|
|
@@ -50375,6 +50412,8 @@ $root.waproto = (function() {
|
|
|
50375
50412
|
object.companionAddPeerPayload = options.bytes === $String ? $util.base64.encode(message.companionAddPeerPayload, 0, message.companionAddPeerPayload.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.companionAddPeerPayload) : message.companionAddPeerPayload;
|
|
50376
50413
|
if (message.isCompanionRegistrationFgsEnabled != null && $Object.hasOwnProperty.call(message, "isCompanionRegistrationFgsEnabled"))
|
|
50377
50414
|
object.isCompanionRegistrationFgsEnabled = message.isCompanionRegistrationFgsEnabled;
|
|
50415
|
+
if (message.isCompanionPairingProgressUiEnabled != null && $Object.hasOwnProperty.call(message, "isCompanionPairingProgressUiEnabled"))
|
|
50416
|
+
object.isCompanionPairingProgressUiEnabled = message.isCompanionPairingProgressUiEnabled;
|
|
50378
50417
|
return object;
|
|
50379
50418
|
};
|
|
50380
50419
|
|
|
@@ -112063,7 +112102,8 @@ $root.waproto = (function() {
|
|
|
112063
112102
|
* @property {waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Properties|null} [newsletter] InteractiveAnnotation newsletter
|
|
112064
112103
|
* @property {boolean|null} [embeddedAction] InteractiveAnnotation embeddedAction
|
|
112065
112104
|
* @property {waproto.TapLinkAction.$Properties|null} [tapAction] InteractiveAnnotation tapAction
|
|
112066
|
-
* @property {
|
|
112105
|
+
* @property {waproto.StatusPixKey.$Properties|null} [pixKey] InteractiveAnnotation pixKey
|
|
112106
|
+
* @property {"location"|"newsletter"|"embeddedAction"|"tapAction"|"pixKey"} [action] InteractiveAnnotation action
|
|
112067
112107
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
112068
112108
|
*/
|
|
112069
112109
|
|
|
@@ -112086,9 +112126,10 @@ $root.waproto = (function() {
|
|
|
112086
112126
|
* newsletter?: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape|null;
|
|
112087
112127
|
* embeddedAction?: boolean|null;
|
|
112088
112128
|
* tapAction?: waproto.TapLinkAction.$Shape|null;
|
|
112129
|
+
* pixKey?: waproto.StatusPixKey.$Shape|null;
|
|
112089
112130
|
* $unknowns?: Array.<Uint8Array>;
|
|
112090
112131
|
* } & (
|
|
112091
|
-
* ({ action?: undefined; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null }|{ action?: "location"; location: waproto.Location.$Shape; newsletter?: null; embeddedAction?: null; tapAction?: null }|{ action?: "newsletter"; location?: null; newsletter: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape; embeddedAction?: null; tapAction?: null }|{ action?: "embeddedAction"; location?: null; newsletter?: null; embeddedAction: boolean; tapAction?: null }|{ action?: "tapAction"; location?: null; newsletter?: null; embeddedAction?: null; tapAction: waproto.TapLinkAction.$Shape })
|
|
112132
|
+
* ({ action?: undefined; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "location"; location: waproto.Location.$Shape; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "newsletter"; location?: null; newsletter: waproto.ContextInfo.ForwardedNewsletterMessageInfo.$Shape; embeddedAction?: null; tapAction?: null; pixKey?: null }|{ action?: "embeddedAction"; location?: null; newsletter?: null; embeddedAction: boolean; tapAction?: null; pixKey?: null }|{ action?: "tapAction"; location?: null; newsletter?: null; embeddedAction?: null; tapAction: waproto.TapLinkAction.$Shape; pixKey?: null }|{ action?: "pixKey"; location?: null; newsletter?: null; embeddedAction?: null; tapAction?: null; pixKey: waproto.StatusPixKey.$Shape })
|
|
112092
112133
|
* )} waproto.InteractiveAnnotation.$Shape
|
|
112093
112134
|
*/
|
|
112094
112135
|
|
|
@@ -112172,6 +112213,14 @@ $root.waproto = (function() {
|
|
|
112172
112213
|
*/
|
|
112173
112214
|
InteractiveAnnotation.prototype.tapAction = null;
|
|
112174
112215
|
|
|
112216
|
+
/**
|
|
112217
|
+
* InteractiveAnnotation pixKey.
|
|
112218
|
+
* @member {waproto.StatusPixKey.$Properties|null|undefined} pixKey
|
|
112219
|
+
* @memberof waproto.InteractiveAnnotation
|
|
112220
|
+
* @instance
|
|
112221
|
+
*/
|
|
112222
|
+
InteractiveAnnotation.prototype.pixKey = null;
|
|
112223
|
+
|
|
112175
112224
|
// OneOf field names bound to virtual getters and setters
|
|
112176
112225
|
var $oneOfFields;
|
|
112177
112226
|
|
|
@@ -112195,12 +112244,12 @@ $root.waproto = (function() {
|
|
|
112195
112244
|
|
|
112196
112245
|
/**
|
|
112197
112246
|
* InteractiveAnnotation action.
|
|
112198
|
-
* @member {"location"|"newsletter"|"embeddedAction"|"tapAction"|undefined} action
|
|
112247
|
+
* @member {"location"|"newsletter"|"embeddedAction"|"tapAction"|"pixKey"|undefined} action
|
|
112199
112248
|
* @memberof waproto.InteractiveAnnotation
|
|
112200
112249
|
* @instance
|
|
112201
112250
|
*/
|
|
112202
112251
|
$Object.defineProperty(InteractiveAnnotation.prototype, "action", {
|
|
112203
|
-
get: $util.oneOfGetter($oneOfFields = ["location", "newsletter", "embeddedAction", "tapAction"]),
|
|
112252
|
+
get: $util.oneOfGetter($oneOfFields = ["location", "newsletter", "embeddedAction", "tapAction", "pixKey"]),
|
|
112204
112253
|
set: $util.oneOfSetter($oneOfFields)
|
|
112205
112254
|
});
|
|
112206
112255
|
|
|
@@ -112253,6 +112302,8 @@ $root.waproto = (function() {
|
|
|
112253
112302
|
$root.waproto.TapLinkAction.encode(message.tapAction, writer.uint32(/* id 7, wireType 2 =*/58).fork(), _depth + 1).ldelim();
|
|
112254
112303
|
if (message.statusLinkType != null && $Object.hasOwnProperty.call(message, "statusLinkType"))
|
|
112255
112304
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.statusLinkType);
|
|
112305
|
+
if (message.pixKey != null && $Object.hasOwnProperty.call(message, "pixKey"))
|
|
112306
|
+
$root.waproto.StatusPixKey.encode(message.pixKey, writer.uint32(/* id 9, wireType 2 =*/74).fork(), _depth + 1).ldelim();
|
|
112256
112307
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
112257
112308
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
112258
112309
|
writer.raw(message.$unknowns[i]);
|
|
@@ -112367,6 +112418,13 @@ $root.waproto = (function() {
|
|
|
112367
112418
|
message.action = "tapAction";
|
|
112368
112419
|
continue;
|
|
112369
112420
|
}
|
|
112421
|
+
case 9: {
|
|
112422
|
+
if (wireType !== 2)
|
|
112423
|
+
break;
|
|
112424
|
+
message.pixKey = $root.waproto.StatusPixKey.decode(reader, reader.size(), $undefined, _depth + 1, message.pixKey);
|
|
112425
|
+
message.action = "pixKey";
|
|
112426
|
+
continue;
|
|
112427
|
+
}
|
|
112370
112428
|
}
|
|
112371
112429
|
reader.skipType(wireType, _depth, tag);
|
|
112372
112430
|
if (!reader.discardUnknown) {
|
|
@@ -112478,6 +112536,16 @@ $root.waproto = (function() {
|
|
|
112478
112536
|
return "tapAction." + error;
|
|
112479
112537
|
}
|
|
112480
112538
|
}
|
|
112539
|
+
if (message.pixKey != null && $Object.hasOwnProperty.call(message, "pixKey")) {
|
|
112540
|
+
if (properties.action === 1)
|
|
112541
|
+
return "action: multiple values";
|
|
112542
|
+
properties.action = 1;
|
|
112543
|
+
{
|
|
112544
|
+
var error = $root.waproto.StatusPixKey.verify(message.pixKey, _depth + 1);
|
|
112545
|
+
if (error)
|
|
112546
|
+
return "pixKey." + error;
|
|
112547
|
+
}
|
|
112548
|
+
}
|
|
112481
112549
|
return null;
|
|
112482
112550
|
};
|
|
112483
112551
|
|
|
@@ -112550,6 +112618,11 @@ $root.waproto = (function() {
|
|
|
112550
112618
|
throw $TypeError(".waproto.InteractiveAnnotation.tapAction: object expected");
|
|
112551
112619
|
message.tapAction = $root.waproto.TapLinkAction.fromObject(object.tapAction, _depth + 1);
|
|
112552
112620
|
}
|
|
112621
|
+
if (object.pixKey != null) {
|
|
112622
|
+
if (!$util.isObject(object.pixKey))
|
|
112623
|
+
throw $TypeError(".waproto.InteractiveAnnotation.pixKey: object expected");
|
|
112624
|
+
message.pixKey = $root.waproto.StatusPixKey.fromObject(object.pixKey, _depth + 1);
|
|
112625
|
+
}
|
|
112553
112626
|
return message;
|
|
112554
112627
|
};
|
|
112555
112628
|
|
|
@@ -112603,6 +112676,11 @@ $root.waproto = (function() {
|
|
|
112603
112676
|
}
|
|
112604
112677
|
if (message.statusLinkType != null && $Object.hasOwnProperty.call(message, "statusLinkType"))
|
|
112605
112678
|
object.statusLinkType = options.enums === $String ? $root.waproto.InteractiveAnnotation.StatusLinkType[message.statusLinkType] === $undefined ? message.statusLinkType : $root.waproto.InteractiveAnnotation.StatusLinkType[message.statusLinkType] : message.statusLinkType;
|
|
112679
|
+
if (message.pixKey != null && $Object.hasOwnProperty.call(message, "pixKey")) {
|
|
112680
|
+
object.pixKey = $root.waproto.StatusPixKey.toObject(message.pixKey, options, _depth + 1);
|
|
112681
|
+
if (options.oneofs)
|
|
112682
|
+
object.action = "pixKey";
|
|
112683
|
+
}
|
|
112606
112684
|
return object;
|
|
112607
112685
|
};
|
|
112608
112686
|
|
|
@@ -255674,6 +255752,403 @@ $root.waproto = (function() {
|
|
|
255674
255752
|
return StatusPSA;
|
|
255675
255753
|
})();
|
|
255676
255754
|
|
|
255755
|
+
waproto.StatusPixKey = (function() {
|
|
255756
|
+
|
|
255757
|
+
/**
|
|
255758
|
+
* Properties of a StatusPixKey.
|
|
255759
|
+
* @typedef {Object} waproto.StatusPixKey.$Properties
|
|
255760
|
+
* @property {string|null} [key] StatusPixKey key
|
|
255761
|
+
* @property {waproto.StatusPixKey.KeyType|null} [keyType] StatusPixKey keyType
|
|
255762
|
+
* @property {string|null} [displayName] StatusPixKey displayName
|
|
255763
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
255764
|
+
*/
|
|
255765
|
+
|
|
255766
|
+
/**
|
|
255767
|
+
* Properties of a StatusPixKey.
|
|
255768
|
+
* @memberof waproto
|
|
255769
|
+
* @interface IStatusPixKey
|
|
255770
|
+
* @augments waproto.StatusPixKey.$Properties
|
|
255771
|
+
* @deprecated Use waproto.StatusPixKey.$Properties instead.
|
|
255772
|
+
*/
|
|
255773
|
+
|
|
255774
|
+
/**
|
|
255775
|
+
* Shape of a StatusPixKey.
|
|
255776
|
+
* @typedef {waproto.StatusPixKey.$Properties} waproto.StatusPixKey.$Shape
|
|
255777
|
+
*/
|
|
255778
|
+
|
|
255779
|
+
/**
|
|
255780
|
+
* Constructs a new StatusPixKey.
|
|
255781
|
+
* @memberof waproto
|
|
255782
|
+
* @classdesc Represents a StatusPixKey.
|
|
255783
|
+
* @constructor
|
|
255784
|
+
* @param {waproto.StatusPixKey.$Properties=} [properties] Properties to set
|
|
255785
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
255786
|
+
*/
|
|
255787
|
+
var StatusPixKey = function (properties) {
|
|
255788
|
+
if (properties)
|
|
255789
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
255790
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
255791
|
+
this[keys[i]] = properties[keys[i]];
|
|
255792
|
+
};
|
|
255793
|
+
|
|
255794
|
+
/**
|
|
255795
|
+
* StatusPixKey key.
|
|
255796
|
+
* @member {string|null|undefined} key
|
|
255797
|
+
* @memberof waproto.StatusPixKey
|
|
255798
|
+
* @instance
|
|
255799
|
+
*/
|
|
255800
|
+
StatusPixKey.prototype.key = null;
|
|
255801
|
+
|
|
255802
|
+
/**
|
|
255803
|
+
* StatusPixKey keyType.
|
|
255804
|
+
* @member {waproto.StatusPixKey.KeyType|null|undefined} keyType
|
|
255805
|
+
* @memberof waproto.StatusPixKey
|
|
255806
|
+
* @instance
|
|
255807
|
+
*/
|
|
255808
|
+
StatusPixKey.prototype.keyType = null;
|
|
255809
|
+
|
|
255810
|
+
/**
|
|
255811
|
+
* StatusPixKey displayName.
|
|
255812
|
+
* @member {string|null|undefined} displayName
|
|
255813
|
+
* @memberof waproto.StatusPixKey
|
|
255814
|
+
* @instance
|
|
255815
|
+
*/
|
|
255816
|
+
StatusPixKey.prototype.displayName = null;
|
|
255817
|
+
|
|
255818
|
+
// OneOf field names bound to virtual getters and setters
|
|
255819
|
+
var $oneOfFields;
|
|
255820
|
+
|
|
255821
|
+
// Virtual OneOf for proto3 optional field
|
|
255822
|
+
$Object.defineProperty(StatusPixKey.prototype, "_key", {
|
|
255823
|
+
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
255824
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
255825
|
+
});
|
|
255826
|
+
|
|
255827
|
+
// Virtual OneOf for proto3 optional field
|
|
255828
|
+
$Object.defineProperty(StatusPixKey.prototype, "_keyType", {
|
|
255829
|
+
get: $util.oneOfGetter($oneOfFields = ["keyType"]),
|
|
255830
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
255831
|
+
});
|
|
255832
|
+
|
|
255833
|
+
// Virtual OneOf for proto3 optional field
|
|
255834
|
+
$Object.defineProperty(StatusPixKey.prototype, "_displayName", {
|
|
255835
|
+
get: $util.oneOfGetter($oneOfFields = ["displayName"]),
|
|
255836
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
255837
|
+
});
|
|
255838
|
+
|
|
255839
|
+
/**
|
|
255840
|
+
* Creates a new StatusPixKey instance using the specified properties.
|
|
255841
|
+
* @function create
|
|
255842
|
+
* @memberof waproto.StatusPixKey
|
|
255843
|
+
* @static
|
|
255844
|
+
* @param {waproto.StatusPixKey.$Properties=} [properties] Properties to set
|
|
255845
|
+
* @returns {waproto.StatusPixKey} StatusPixKey instance
|
|
255846
|
+
* @type {{
|
|
255847
|
+
* (properties: waproto.StatusPixKey.$Shape): waproto.StatusPixKey & waproto.StatusPixKey.$Shape;
|
|
255848
|
+
* (properties?: waproto.StatusPixKey.$Properties): waproto.StatusPixKey;
|
|
255849
|
+
* }}
|
|
255850
|
+
*/
|
|
255851
|
+
StatusPixKey.create = function(properties) {
|
|
255852
|
+
return new StatusPixKey(properties);
|
|
255853
|
+
};
|
|
255854
|
+
|
|
255855
|
+
/**
|
|
255856
|
+
* Encodes the specified StatusPixKey message. Does not implicitly {@link waproto.StatusPixKey.verify|verify} messages.
|
|
255857
|
+
* @function encode
|
|
255858
|
+
* @memberof waproto.StatusPixKey
|
|
255859
|
+
* @static
|
|
255860
|
+
* @param {waproto.StatusPixKey.$Properties} message StatusPixKey message or plain object to encode
|
|
255861
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
255862
|
+
* @returns {$protobuf.Writer} Writer
|
|
255863
|
+
*/
|
|
255864
|
+
StatusPixKey.encode = function (message, writer, _depth) {
|
|
255865
|
+
if (!writer)
|
|
255866
|
+
writer = $Writer.create();
|
|
255867
|
+
if (_depth === $undefined)
|
|
255868
|
+
_depth = 0;
|
|
255869
|
+
if (_depth > $util.recursionLimit)
|
|
255870
|
+
throw $Error("max depth exceeded");
|
|
255871
|
+
if (message.key != null && $Object.hasOwnProperty.call(message, "key"))
|
|
255872
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
255873
|
+
if (message.keyType != null && $Object.hasOwnProperty.call(message, "keyType"))
|
|
255874
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.keyType);
|
|
255875
|
+
if (message.displayName != null && $Object.hasOwnProperty.call(message, "displayName"))
|
|
255876
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
|
|
255877
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
255878
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
255879
|
+
writer.raw(message.$unknowns[i]);
|
|
255880
|
+
return writer;
|
|
255881
|
+
};
|
|
255882
|
+
|
|
255883
|
+
/**
|
|
255884
|
+
* Encodes the specified StatusPixKey message, length delimited. Does not implicitly {@link waproto.StatusPixKey.verify|verify} messages.
|
|
255885
|
+
* @function encodeDelimited
|
|
255886
|
+
* @memberof waproto.StatusPixKey
|
|
255887
|
+
* @static
|
|
255888
|
+
* @param {waproto.StatusPixKey.$Properties} message StatusPixKey message or plain object to encode
|
|
255889
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
255890
|
+
* @returns {$protobuf.Writer} Writer
|
|
255891
|
+
*/
|
|
255892
|
+
StatusPixKey.encodeDelimited = function(message, writer) {
|
|
255893
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
255894
|
+
};
|
|
255895
|
+
|
|
255896
|
+
/**
|
|
255897
|
+
* Decodes a StatusPixKey message from the specified reader or buffer.
|
|
255898
|
+
* @function decode
|
|
255899
|
+
* @memberof waproto.StatusPixKey
|
|
255900
|
+
* @static
|
|
255901
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
255902
|
+
* @param {number} [length] Message length if known beforehand
|
|
255903
|
+
* @returns {waproto.StatusPixKey & waproto.StatusPixKey.$Shape} StatusPixKey
|
|
255904
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
255905
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
255906
|
+
*/
|
|
255907
|
+
StatusPixKey.decode = function (reader, length, _end, _depth, _target) {
|
|
255908
|
+
if (!(reader instanceof $Reader))
|
|
255909
|
+
reader = $Reader.create(reader);
|
|
255910
|
+
if (_depth === $undefined)
|
|
255911
|
+
_depth = 0;
|
|
255912
|
+
if (_depth > $Reader.recursionLimit)
|
|
255913
|
+
throw $Error("max depth exceeded");
|
|
255914
|
+
var end, message, value;
|
|
255915
|
+
if (length === $undefined)
|
|
255916
|
+
end = reader.len;
|
|
255917
|
+
else {
|
|
255918
|
+
end = reader.pos + length;
|
|
255919
|
+
if (end > reader.len)
|
|
255920
|
+
throw $RangeError("index out of range");
|
|
255921
|
+
length = reader.len;
|
|
255922
|
+
reader.len = end;
|
|
255923
|
+
}
|
|
255924
|
+
message = _target || new $root.waproto.StatusPixKey();
|
|
255925
|
+
while (reader.pos < end) {
|
|
255926
|
+
var start = reader.pos;
|
|
255927
|
+
var tag = reader.tag();
|
|
255928
|
+
if (tag === _end) {
|
|
255929
|
+
_end = $undefined;
|
|
255930
|
+
break;
|
|
255931
|
+
}
|
|
255932
|
+
var wireType = tag & 7;
|
|
255933
|
+
switch (tag >>>= 3) {
|
|
255934
|
+
case 1: {
|
|
255935
|
+
if (wireType !== 2)
|
|
255936
|
+
break;
|
|
255937
|
+
message.key = reader.stringVerify();
|
|
255938
|
+
message._key = "key";
|
|
255939
|
+
continue;
|
|
255940
|
+
}
|
|
255941
|
+
case 2: {
|
|
255942
|
+
if (wireType !== 0)
|
|
255943
|
+
break;
|
|
255944
|
+
message.keyType = reader.int32();
|
|
255945
|
+
message._keyType = "keyType";
|
|
255946
|
+
continue;
|
|
255947
|
+
}
|
|
255948
|
+
case 3: {
|
|
255949
|
+
if (wireType !== 2)
|
|
255950
|
+
break;
|
|
255951
|
+
message.displayName = reader.stringVerify();
|
|
255952
|
+
message._displayName = "displayName";
|
|
255953
|
+
continue;
|
|
255954
|
+
}
|
|
255955
|
+
}
|
|
255956
|
+
reader.skipType(wireType, _depth, tag);
|
|
255957
|
+
if (!reader.discardUnknown) {
|
|
255958
|
+
$util.makeProp(message, "$unknowns", false);
|
|
255959
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
255960
|
+
}
|
|
255961
|
+
}
|
|
255962
|
+
if (length !== $undefined) {
|
|
255963
|
+
if (reader.pos !== end)
|
|
255964
|
+
throw $RangeError("index out of range");
|
|
255965
|
+
reader.len = length;
|
|
255966
|
+
}
|
|
255967
|
+
if (_end !== $undefined)
|
|
255968
|
+
throw $Error("missing end group");
|
|
255969
|
+
return message;
|
|
255970
|
+
};
|
|
255971
|
+
|
|
255972
|
+
/**
|
|
255973
|
+
* Decodes a StatusPixKey message from the specified reader or buffer, length delimited.
|
|
255974
|
+
* @function decodeDelimited
|
|
255975
|
+
* @memberof waproto.StatusPixKey
|
|
255976
|
+
* @static
|
|
255977
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
255978
|
+
* @returns {waproto.StatusPixKey & waproto.StatusPixKey.$Shape} StatusPixKey
|
|
255979
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
255980
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
255981
|
+
*/
|
|
255982
|
+
StatusPixKey.decodeDelimited = function(reader) {
|
|
255983
|
+
if (!(reader instanceof $Reader))
|
|
255984
|
+
reader = new $Reader(reader);
|
|
255985
|
+
return this.decode(reader, reader.size());
|
|
255986
|
+
};
|
|
255987
|
+
|
|
255988
|
+
/**
|
|
255989
|
+
* Verifies a StatusPixKey message.
|
|
255990
|
+
* @function verify
|
|
255991
|
+
* @memberof waproto.StatusPixKey
|
|
255992
|
+
* @static
|
|
255993
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
255994
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
255995
|
+
*/
|
|
255996
|
+
StatusPixKey.verify = function (message, _depth) {
|
|
255997
|
+
if (typeof message !== "object" || message === null)
|
|
255998
|
+
return "object expected";
|
|
255999
|
+
if (_depth === $undefined)
|
|
256000
|
+
_depth = 0;
|
|
256001
|
+
if (_depth > $util.recursionLimit)
|
|
256002
|
+
return "max depth exceeded";
|
|
256003
|
+
var properties = {};
|
|
256004
|
+
if (message.key != null && $Object.hasOwnProperty.call(message, "key")) {
|
|
256005
|
+
properties._key = 1;
|
|
256006
|
+
if (!$util.isString(message.key))
|
|
256007
|
+
return "key: string expected";
|
|
256008
|
+
}
|
|
256009
|
+
if (message.keyType != null && $Object.hasOwnProperty.call(message, "keyType")) {
|
|
256010
|
+
properties._keyType = 1;
|
|
256011
|
+
if (typeof message.keyType !== "number" || (message.keyType | 0) !== message.keyType)
|
|
256012
|
+
return "keyType: enum value expected";
|
|
256013
|
+
}
|
|
256014
|
+
if (message.displayName != null && $Object.hasOwnProperty.call(message, "displayName")) {
|
|
256015
|
+
properties._displayName = 1;
|
|
256016
|
+
if (!$util.isString(message.displayName))
|
|
256017
|
+
return "displayName: string expected";
|
|
256018
|
+
}
|
|
256019
|
+
return null;
|
|
256020
|
+
};
|
|
256021
|
+
|
|
256022
|
+
/**
|
|
256023
|
+
* Creates a StatusPixKey message from a plain object. Also converts values to their respective internal types.
|
|
256024
|
+
* @function fromObject
|
|
256025
|
+
* @memberof waproto.StatusPixKey
|
|
256026
|
+
* @static
|
|
256027
|
+
* @param {Object.<string,*>} object Plain object
|
|
256028
|
+
* @returns {waproto.StatusPixKey} StatusPixKey
|
|
256029
|
+
*/
|
|
256030
|
+
StatusPixKey.fromObject = function (object, _depth) {
|
|
256031
|
+
if (object instanceof $root.waproto.StatusPixKey)
|
|
256032
|
+
return object;
|
|
256033
|
+
if (!$util.isObject(object))
|
|
256034
|
+
throw $TypeError(".waproto.StatusPixKey: object expected");
|
|
256035
|
+
if (_depth === $undefined)
|
|
256036
|
+
_depth = 0;
|
|
256037
|
+
if (_depth > $util.recursionLimit)
|
|
256038
|
+
throw $Error("max depth exceeded");
|
|
256039
|
+
var message = new $root.waproto.StatusPixKey();
|
|
256040
|
+
if (object.key != null)
|
|
256041
|
+
message.key = $String(object.key);
|
|
256042
|
+
switch (object.keyType) {
|
|
256043
|
+
case "UNKNOWN":
|
|
256044
|
+
case 0:
|
|
256045
|
+
message.keyType = 0;
|
|
256046
|
+
break;
|
|
256047
|
+
case "CPF":
|
|
256048
|
+
case 1:
|
|
256049
|
+
message.keyType = 1;
|
|
256050
|
+
break;
|
|
256051
|
+
case "CNPJ":
|
|
256052
|
+
case 2:
|
|
256053
|
+
message.keyType = 2;
|
|
256054
|
+
break;
|
|
256055
|
+
case "PHONE":
|
|
256056
|
+
case 3:
|
|
256057
|
+
message.keyType = 3;
|
|
256058
|
+
break;
|
|
256059
|
+
case "EMAIL":
|
|
256060
|
+
case 4:
|
|
256061
|
+
message.keyType = 4;
|
|
256062
|
+
break;
|
|
256063
|
+
case "EVP":
|
|
256064
|
+
case 5:
|
|
256065
|
+
message.keyType = 5;
|
|
256066
|
+
break;
|
|
256067
|
+
default:
|
|
256068
|
+
if (typeof object.keyType === "number" && (object.keyType | 0) === object.keyType)
|
|
256069
|
+
message.keyType = object.keyType;
|
|
256070
|
+
}
|
|
256071
|
+
if (object.displayName != null)
|
|
256072
|
+
message.displayName = $String(object.displayName);
|
|
256073
|
+
return message;
|
|
256074
|
+
};
|
|
256075
|
+
|
|
256076
|
+
/**
|
|
256077
|
+
* Creates a plain object from a StatusPixKey message. Also converts values to other types if specified.
|
|
256078
|
+
* @function toObject
|
|
256079
|
+
* @memberof waproto.StatusPixKey
|
|
256080
|
+
* @static
|
|
256081
|
+
* @param {waproto.StatusPixKey} message StatusPixKey
|
|
256082
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
256083
|
+
* @returns {Object.<string,*>} Plain object
|
|
256084
|
+
*/
|
|
256085
|
+
StatusPixKey.toObject = function (message, options, _depth) {
|
|
256086
|
+
if (!options)
|
|
256087
|
+
options = {};
|
|
256088
|
+
if (_depth === $undefined)
|
|
256089
|
+
_depth = 0;
|
|
256090
|
+
if (_depth > $util.recursionLimit)
|
|
256091
|
+
throw $Error("max depth exceeded");
|
|
256092
|
+
var object = {};
|
|
256093
|
+
if (message.key != null && $Object.hasOwnProperty.call(message, "key"))
|
|
256094
|
+
object.key = message.key;
|
|
256095
|
+
if (message.keyType != null && $Object.hasOwnProperty.call(message, "keyType"))
|
|
256096
|
+
object.keyType = options.enums === $String ? $root.waproto.StatusPixKey.KeyType[message.keyType] === $undefined ? message.keyType : $root.waproto.StatusPixKey.KeyType[message.keyType] : message.keyType;
|
|
256097
|
+
if (message.displayName != null && $Object.hasOwnProperty.call(message, "displayName"))
|
|
256098
|
+
object.displayName = message.displayName;
|
|
256099
|
+
return object;
|
|
256100
|
+
};
|
|
256101
|
+
|
|
256102
|
+
/**
|
|
256103
|
+
* Converts this StatusPixKey to JSON.
|
|
256104
|
+
* @function toJSON
|
|
256105
|
+
* @memberof waproto.StatusPixKey
|
|
256106
|
+
* @instance
|
|
256107
|
+
* @returns {Object.<string,*>} JSON object
|
|
256108
|
+
*/
|
|
256109
|
+
StatusPixKey.prototype.toJSON = function() {
|
|
256110
|
+
return StatusPixKey.toObject(this, $protobuf.util.toJSONOptions);
|
|
256111
|
+
};
|
|
256112
|
+
|
|
256113
|
+
/**
|
|
256114
|
+
* Gets the type url for StatusPixKey
|
|
256115
|
+
* @function getTypeUrl
|
|
256116
|
+
* @memberof waproto.StatusPixKey
|
|
256117
|
+
* @static
|
|
256118
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
256119
|
+
* @returns {string} The type url
|
|
256120
|
+
*/
|
|
256121
|
+
StatusPixKey.getTypeUrl = function(prefix) {
|
|
256122
|
+
if (prefix === $undefined)
|
|
256123
|
+
prefix = "type.googleapis.com";
|
|
256124
|
+
return prefix + "/waproto.StatusPixKey";
|
|
256125
|
+
};
|
|
256126
|
+
|
|
256127
|
+
/**
|
|
256128
|
+
* KeyType enum.
|
|
256129
|
+
* @name waproto.StatusPixKey.KeyType
|
|
256130
|
+
* @enum {number}
|
|
256131
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
256132
|
+
* @property {number} CPF=1 CPF value
|
|
256133
|
+
* @property {number} CNPJ=2 CNPJ value
|
|
256134
|
+
* @property {number} PHONE=3 PHONE value
|
|
256135
|
+
* @property {number} EMAIL=4 EMAIL value
|
|
256136
|
+
* @property {number} EVP=5 EVP value
|
|
256137
|
+
*/
|
|
256138
|
+
StatusPixKey.KeyType = (function() {
|
|
256139
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
256140
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
256141
|
+
values[valuesById[1] = "CPF"] = 1;
|
|
256142
|
+
values[valuesById[2] = "CNPJ"] = 2;
|
|
256143
|
+
values[valuesById[3] = "PHONE"] = 3;
|
|
256144
|
+
values[valuesById[4] = "EMAIL"] = 4;
|
|
256145
|
+
values[valuesById[5] = "EVP"] = 5;
|
|
256146
|
+
return values;
|
|
256147
|
+
})();
|
|
256148
|
+
|
|
256149
|
+
return StatusPixKey;
|
|
256150
|
+
})();
|
|
256151
|
+
|
|
255677
256152
|
waproto.StickerMetadata = (function() {
|
|
255678
256153
|
|
|
255679
256154
|
/**
|