@wppconnect/wa-proto 2.3000.1053699790 → 2.3000.1053820627
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto.proto +3 -4
- package/dist/index.d.ts +7 -12
- package/dist/index.js +38 -79
- 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.1053820627
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -1607,6 +1607,7 @@ message ContextInfo {
|
|
|
1607
1607
|
optional string partnerDeepLinkToken = 83;
|
|
1608
1608
|
optional uint32 sourceExperienceId = 84;
|
|
1609
1609
|
repeated uint32 sourceExperienceIds = 85 [packed=true];
|
|
1610
|
+
optional bytes foaMutualsSignature = 86;
|
|
1610
1611
|
message AdReplyInfo {
|
|
1611
1612
|
optional string advertiserName = 1;
|
|
1612
1613
|
optional MediaType mediaType = 2;
|
|
@@ -4681,9 +4682,7 @@ message Message {
|
|
|
4681
4682
|
message VpcRequestMessage {
|
|
4682
4683
|
optional uint32 payloadSchemaVersion = 1;
|
|
4683
4684
|
optional string requestId = 2;
|
|
4684
|
-
optional
|
|
4685
|
-
optional int64 invitationExpiresAtMs = 4;
|
|
4686
|
-
optional ScopeHint scopeHint = 5;
|
|
4685
|
+
optional ScopeHint scopeHint = 3;
|
|
4687
4686
|
enum ScopeHint {
|
|
4688
4687
|
UNKNOWN = 0;
|
|
4689
4688
|
WA_ONLY = 1;
|
package/dist/index.d.ts
CHANGED
|
@@ -20574,6 +20574,9 @@ export namespace waproto {
|
|
|
20574
20574
|
/** ContextInfo sourceExperienceIds. */
|
|
20575
20575
|
sourceExperienceIds: number[];
|
|
20576
20576
|
|
|
20577
|
+
/** ContextInfo foaMutualsSignature. */
|
|
20578
|
+
foaMutualsSignature?: (Uint8Array|null);
|
|
20579
|
+
|
|
20577
20580
|
/**
|
|
20578
20581
|
* Creates a new ContextInfo instance using the specified properties.
|
|
20579
20582
|
* @param [properties] Properties to set
|
|
@@ -20862,6 +20865,9 @@ export namespace waproto {
|
|
|
20862
20865
|
/** ContextInfo sourceExperienceIds */
|
|
20863
20866
|
sourceExperienceIds?: (number[]|null);
|
|
20864
20867
|
|
|
20868
|
+
/** ContextInfo foaMutualsSignature */
|
|
20869
|
+
foaMutualsSignature?: (Uint8Array|null);
|
|
20870
|
+
|
|
20865
20871
|
/** Unknown fields preserved while decoding when enabled */
|
|
20866
20872
|
$unknowns?: Uint8Array[];
|
|
20867
20873
|
}
|
|
@@ -20936,6 +20942,7 @@ export namespace waproto {
|
|
|
20936
20942
|
partnerDeepLinkToken?: string|null;
|
|
20937
20943
|
sourceExperienceId?: number|null;
|
|
20938
20944
|
sourceExperienceIds?: number[]|null;
|
|
20945
|
+
foaMutualsSignature?: Uint8Array|null;
|
|
20939
20946
|
$unknowns?: Uint8Array[];
|
|
20940
20947
|
};
|
|
20941
20948
|
|
|
@@ -64343,12 +64350,6 @@ export namespace waproto {
|
|
|
64343
64350
|
/** VpcRequestMessage requestId. */
|
|
64344
64351
|
requestId?: (string|null);
|
|
64345
64352
|
|
|
64346
|
-
/** VpcRequestMessage launchRef. */
|
|
64347
|
-
launchRef?: (string|null);
|
|
64348
|
-
|
|
64349
|
-
/** VpcRequestMessage invitationExpiresAtMs. */
|
|
64350
|
-
invitationExpiresAtMs?: (number|Long|null);
|
|
64351
|
-
|
|
64352
64353
|
/** VpcRequestMessage scopeHint. */
|
|
64353
64354
|
scopeHint?: (waproto.Message.VpcRequestMessage.ScopeHint|null);
|
|
64354
64355
|
|
|
@@ -64442,12 +64443,6 @@ export namespace waproto {
|
|
|
64442
64443
|
/** VpcRequestMessage requestId */
|
|
64443
64444
|
requestId?: (string|null);
|
|
64444
64445
|
|
|
64445
|
-
/** VpcRequestMessage launchRef */
|
|
64446
|
-
launchRef?: (string|null);
|
|
64447
|
-
|
|
64448
|
-
/** VpcRequestMessage invitationExpiresAtMs */
|
|
64449
|
-
invitationExpiresAtMs?: (number|Long|null);
|
|
64450
|
-
|
|
64451
64446
|
/** VpcRequestMessage scopeHint */
|
|
64452
64447
|
scopeHint?: (waproto.Message.VpcRequestMessage.ScopeHint|null);
|
|
64453
64448
|
|
package/dist/index.js
CHANGED
|
@@ -58258,6 +58258,7 @@ $root.waproto = (function() {
|
|
|
58258
58258
|
* @property {string|null} [partnerDeepLinkToken] ContextInfo partnerDeepLinkToken
|
|
58259
58259
|
* @property {number|null} [sourceExperienceId] ContextInfo sourceExperienceId
|
|
58260
58260
|
* @property {Array.<number>|null} [sourceExperienceIds] ContextInfo sourceExperienceIds
|
|
58261
|
+
* @property {Uint8Array|null} [foaMutualsSignature] ContextInfo foaMutualsSignature
|
|
58261
58262
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
58262
58263
|
*/
|
|
58263
58264
|
|
|
@@ -58340,6 +58341,7 @@ $root.waproto = (function() {
|
|
|
58340
58341
|
* partnerDeepLinkToken?: string|null;
|
|
58341
58342
|
* sourceExperienceId?: number|null;
|
|
58342
58343
|
* sourceExperienceIds?: Array.<number>|null;
|
|
58344
|
+
* foaMutualsSignature?: Uint8Array|null;
|
|
58343
58345
|
* $unknowns?: Array.<Uint8Array>;
|
|
58344
58346
|
* }} waproto.ContextInfo.$Shape
|
|
58345
58347
|
*/
|
|
@@ -58908,6 +58910,14 @@ $root.waproto = (function() {
|
|
|
58908
58910
|
*/
|
|
58909
58911
|
ContextInfo.prototype.sourceExperienceIds = $util.emptyArray;
|
|
58910
58912
|
|
|
58913
|
+
/**
|
|
58914
|
+
* ContextInfo foaMutualsSignature.
|
|
58915
|
+
* @member {Uint8Array|null|undefined} foaMutualsSignature
|
|
58916
|
+
* @memberof waproto.ContextInfo
|
|
58917
|
+
* @instance
|
|
58918
|
+
*/
|
|
58919
|
+
ContextInfo.prototype.foaMutualsSignature = null;
|
|
58920
|
+
|
|
58911
58921
|
// OneOf field names bound to virtual getters and setters
|
|
58912
58922
|
var $oneOfFields;
|
|
58913
58923
|
|
|
@@ -59289,6 +59299,12 @@ $root.waproto = (function() {
|
|
|
59289
59299
|
set: $util.oneOfSetter($oneOfFields)
|
|
59290
59300
|
});
|
|
59291
59301
|
|
|
59302
|
+
// Virtual OneOf for proto3 optional field
|
|
59303
|
+
$Object.defineProperty(ContextInfo.prototype, "_foaMutualsSignature", {
|
|
59304
|
+
get: $util.oneOfGetter($oneOfFields = ["foaMutualsSignature"]),
|
|
59305
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59306
|
+
});
|
|
59307
|
+
|
|
59292
59308
|
/**
|
|
59293
59309
|
* Creates a new ContextInfo instance using the specified properties.
|
|
59294
59310
|
* @function create
|
|
@@ -59460,6 +59476,8 @@ $root.waproto = (function() {
|
|
|
59460
59476
|
writer.uint32(/* id 84, wireType 0 =*/672).uint32(message.sourceExperienceId);
|
|
59461
59477
|
if (message.sourceExperienceIds != null && message.sourceExperienceIds.length)
|
|
59462
59478
|
writer.uint32(/* id 85, wireType 2 =*/682).uint32s(message.sourceExperienceIds);
|
|
59479
|
+
if (message.foaMutualsSignature != null && $Object.hasOwnProperty.call(message, "foaMutualsSignature"))
|
|
59480
|
+
writer.uint32(/* id 86, wireType 2 =*/690).bytes(message.foaMutualsSignature);
|
|
59463
59481
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
59464
59482
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
59465
59483
|
writer.raw(message.$unknowns[i]);
|
|
@@ -60010,6 +60028,13 @@ $root.waproto = (function() {
|
|
|
60010
60028
|
message.sourceExperienceIds.push(reader.uint32());
|
|
60011
60029
|
continue;
|
|
60012
60030
|
}
|
|
60031
|
+
case 86: {
|
|
60032
|
+
if (wireType !== 2)
|
|
60033
|
+
break;
|
|
60034
|
+
message.foaMutualsSignature = reader.bytes();
|
|
60035
|
+
message._foaMutualsSignature = "foaMutualsSignature";
|
|
60036
|
+
continue;
|
|
60037
|
+
}
|
|
60013
60038
|
}
|
|
60014
60039
|
reader.skipType(wireType, _depth, tag);
|
|
60015
60040
|
if (!reader.discardUnknown) {
|
|
@@ -60479,6 +60504,11 @@ $root.waproto = (function() {
|
|
|
60479
60504
|
if (!$util.isInteger(message.sourceExperienceIds[i]))
|
|
60480
60505
|
return "sourceExperienceIds: integer[] expected";
|
|
60481
60506
|
}
|
|
60507
|
+
if (message.foaMutualsSignature != null && $Object.hasOwnProperty.call(message, "foaMutualsSignature")) {
|
|
60508
|
+
properties._foaMutualsSignature = 1;
|
|
60509
|
+
if (!(message.foaMutualsSignature && typeof message.foaMutualsSignature.length === "number" || $util.isString(message.foaMutualsSignature)))
|
|
60510
|
+
return "foaMutualsSignature: buffer expected";
|
|
60511
|
+
}
|
|
60482
60512
|
return null;
|
|
60483
60513
|
};
|
|
60484
60514
|
|
|
@@ -60915,6 +60945,11 @@ $root.waproto = (function() {
|
|
|
60915
60945
|
for (var i = 0; i < object.sourceExperienceIds.length; ++i)
|
|
60916
60946
|
message.sourceExperienceIds[i] = object.sourceExperienceIds[i] >>> 0;
|
|
60917
60947
|
}
|
|
60948
|
+
if (object.foaMutualsSignature != null)
|
|
60949
|
+
if (typeof object.foaMutualsSignature === "string")
|
|
60950
|
+
$util.base64.decode(object.foaMutualsSignature, message.foaMutualsSignature = $util.newBuffer($util.base64.length(object.foaMutualsSignature)), 0);
|
|
60951
|
+
else if (object.foaMutualsSignature.length >= 0)
|
|
60952
|
+
message.foaMutualsSignature = object.foaMutualsSignature;
|
|
60918
60953
|
return message;
|
|
60919
60954
|
};
|
|
60920
60955
|
|
|
@@ -61098,6 +61133,8 @@ $root.waproto = (function() {
|
|
|
61098
61133
|
for (var j = 0; j < message.sourceExperienceIds.length; ++j)
|
|
61099
61134
|
object.sourceExperienceIds[j] = message.sourceExperienceIds[j];
|
|
61100
61135
|
}
|
|
61136
|
+
if (message.foaMutualsSignature != null && $Object.hasOwnProperty.call(message, "foaMutualsSignature"))
|
|
61137
|
+
object.foaMutualsSignature = options.bytes === $String ? $util.base64.encode(message.foaMutualsSignature, 0, message.foaMutualsSignature.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.foaMutualsSignature) : message.foaMutualsSignature;
|
|
61101
61138
|
return object;
|
|
61102
61139
|
};
|
|
61103
61140
|
|
|
@@ -192927,8 +192964,6 @@ $root.waproto = (function() {
|
|
|
192927
192964
|
* @typedef {Object} waproto.Message.VpcRequestMessage.$Properties
|
|
192928
192965
|
* @property {number|null} [payloadSchemaVersion] VpcRequestMessage payloadSchemaVersion
|
|
192929
192966
|
* @property {string|null} [requestId] VpcRequestMessage requestId
|
|
192930
|
-
* @property {string|null} [launchRef] VpcRequestMessage launchRef
|
|
192931
|
-
* @property {number|Long|null} [invitationExpiresAtMs] VpcRequestMessage invitationExpiresAtMs
|
|
192932
192967
|
* @property {waproto.Message.VpcRequestMessage.ScopeHint|null} [scopeHint] VpcRequestMessage scopeHint
|
|
192933
192968
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
192934
192969
|
*/
|
|
@@ -192977,22 +193012,6 @@ $root.waproto = (function() {
|
|
|
192977
193012
|
*/
|
|
192978
193013
|
VpcRequestMessage.prototype.requestId = null;
|
|
192979
193014
|
|
|
192980
|
-
/**
|
|
192981
|
-
* VpcRequestMessage launchRef.
|
|
192982
|
-
* @member {string|null|undefined} launchRef
|
|
192983
|
-
* @memberof waproto.Message.VpcRequestMessage
|
|
192984
|
-
* @instance
|
|
192985
|
-
*/
|
|
192986
|
-
VpcRequestMessage.prototype.launchRef = null;
|
|
192987
|
-
|
|
192988
|
-
/**
|
|
192989
|
-
* VpcRequestMessage invitationExpiresAtMs.
|
|
192990
|
-
* @member {number|Long|null|undefined} invitationExpiresAtMs
|
|
192991
|
-
* @memberof waproto.Message.VpcRequestMessage
|
|
192992
|
-
* @instance
|
|
192993
|
-
*/
|
|
192994
|
-
VpcRequestMessage.prototype.invitationExpiresAtMs = null;
|
|
192995
|
-
|
|
192996
193015
|
/**
|
|
192997
193016
|
* VpcRequestMessage scopeHint.
|
|
192998
193017
|
* @member {waproto.Message.VpcRequestMessage.ScopeHint|null|undefined} scopeHint
|
|
@@ -193016,18 +193035,6 @@ $root.waproto = (function() {
|
|
|
193016
193035
|
set: $util.oneOfSetter($oneOfFields)
|
|
193017
193036
|
});
|
|
193018
193037
|
|
|
193019
|
-
// Virtual OneOf for proto3 optional field
|
|
193020
|
-
$Object.defineProperty(VpcRequestMessage.prototype, "_launchRef", {
|
|
193021
|
-
get: $util.oneOfGetter($oneOfFields = ["launchRef"]),
|
|
193022
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
193023
|
-
});
|
|
193024
|
-
|
|
193025
|
-
// Virtual OneOf for proto3 optional field
|
|
193026
|
-
$Object.defineProperty(VpcRequestMessage.prototype, "_invitationExpiresAtMs", {
|
|
193027
|
-
get: $util.oneOfGetter($oneOfFields = ["invitationExpiresAtMs"]),
|
|
193028
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
193029
|
-
});
|
|
193030
|
-
|
|
193031
193038
|
// Virtual OneOf for proto3 optional field
|
|
193032
193039
|
$Object.defineProperty(VpcRequestMessage.prototype, "_scopeHint", {
|
|
193033
193040
|
get: $util.oneOfGetter($oneOfFields = ["scopeHint"]),
|
|
@@ -193070,12 +193077,8 @@ $root.waproto = (function() {
|
|
|
193070
193077
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.payloadSchemaVersion);
|
|
193071
193078
|
if (message.requestId != null && $Object.hasOwnProperty.call(message, "requestId"))
|
|
193072
193079
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
|
|
193073
|
-
if (message.launchRef != null && $Object.hasOwnProperty.call(message, "launchRef"))
|
|
193074
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.launchRef);
|
|
193075
|
-
if (message.invitationExpiresAtMs != null && $Object.hasOwnProperty.call(message, "invitationExpiresAtMs"))
|
|
193076
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.invitationExpiresAtMs);
|
|
193077
193080
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint"))
|
|
193078
|
-
writer.uint32(/* id
|
|
193081
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scopeHint);
|
|
193079
193082
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
193080
193083
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
193081
193084
|
writer.raw(message.$unknowns[i]);
|
|
@@ -193148,20 +193151,6 @@ $root.waproto = (function() {
|
|
|
193148
193151
|
continue;
|
|
193149
193152
|
}
|
|
193150
193153
|
case 3: {
|
|
193151
|
-
if (wireType !== 2)
|
|
193152
|
-
break;
|
|
193153
|
-
message.launchRef = reader.stringVerify();
|
|
193154
|
-
message._launchRef = "launchRef";
|
|
193155
|
-
continue;
|
|
193156
|
-
}
|
|
193157
|
-
case 4: {
|
|
193158
|
-
if (wireType !== 0)
|
|
193159
|
-
break;
|
|
193160
|
-
message.invitationExpiresAtMs = reader.int64();
|
|
193161
|
-
message._invitationExpiresAtMs = "invitationExpiresAtMs";
|
|
193162
|
-
continue;
|
|
193163
|
-
}
|
|
193164
|
-
case 5: {
|
|
193165
193154
|
if (wireType !== 0)
|
|
193166
193155
|
break;
|
|
193167
193156
|
message.scopeHint = reader.int32();
|
|
@@ -193227,16 +193216,6 @@ $root.waproto = (function() {
|
|
|
193227
193216
|
if (!$util.isString(message.requestId))
|
|
193228
193217
|
return "requestId: string expected";
|
|
193229
193218
|
}
|
|
193230
|
-
if (message.launchRef != null && $Object.hasOwnProperty.call(message, "launchRef")) {
|
|
193231
|
-
properties._launchRef = 1;
|
|
193232
|
-
if (!$util.isString(message.launchRef))
|
|
193233
|
-
return "launchRef: string expected";
|
|
193234
|
-
}
|
|
193235
|
-
if (message.invitationExpiresAtMs != null && $Object.hasOwnProperty.call(message, "invitationExpiresAtMs")) {
|
|
193236
|
-
properties._invitationExpiresAtMs = 1;
|
|
193237
|
-
if (!$util.isInteger(message.invitationExpiresAtMs) && !(message.invitationExpiresAtMs && $util.isInteger(message.invitationExpiresAtMs.low) && $util.isInteger(message.invitationExpiresAtMs.high)))
|
|
193238
|
-
return "invitationExpiresAtMs: integer|Long expected";
|
|
193239
|
-
}
|
|
193240
193219
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint")) {
|
|
193241
193220
|
properties._scopeHint = 1;
|
|
193242
193221
|
if (typeof message.scopeHint !== "number" || (message.scopeHint | 0) !== message.scopeHint)
|
|
@@ -193267,17 +193246,6 @@ $root.waproto = (function() {
|
|
|
193267
193246
|
message.payloadSchemaVersion = object.payloadSchemaVersion >>> 0;
|
|
193268
193247
|
if (object.requestId != null)
|
|
193269
193248
|
message.requestId = $String(object.requestId);
|
|
193270
|
-
if (object.launchRef != null)
|
|
193271
|
-
message.launchRef = $String(object.launchRef);
|
|
193272
|
-
if (object.invitationExpiresAtMs != null)
|
|
193273
|
-
if ($util.Long)
|
|
193274
|
-
message.invitationExpiresAtMs = $util.Long.fromValue(object.invitationExpiresAtMs, false);
|
|
193275
|
-
else if (typeof object.invitationExpiresAtMs === "string")
|
|
193276
|
-
message.invitationExpiresAtMs = $parseInt(object.invitationExpiresAtMs, 10);
|
|
193277
|
-
else if (typeof object.invitationExpiresAtMs === "number")
|
|
193278
|
-
message.invitationExpiresAtMs = object.invitationExpiresAtMs;
|
|
193279
|
-
else if (typeof object.invitationExpiresAtMs === "object")
|
|
193280
|
-
message.invitationExpiresAtMs = new $util.LongBits(object.invitationExpiresAtMs.low >>> 0, object.invitationExpiresAtMs.high >>> 0).toNumber();
|
|
193281
193249
|
switch (object.scopeHint) {
|
|
193282
193250
|
case "UNKNOWN":
|
|
193283
193251
|
case 0:
|
|
@@ -193331,15 +193299,6 @@ $root.waproto = (function() {
|
|
|
193331
193299
|
object.payloadSchemaVersion = message.payloadSchemaVersion;
|
|
193332
193300
|
if (message.requestId != null && $Object.hasOwnProperty.call(message, "requestId"))
|
|
193333
193301
|
object.requestId = message.requestId;
|
|
193334
|
-
if (message.launchRef != null && $Object.hasOwnProperty.call(message, "launchRef"))
|
|
193335
|
-
object.launchRef = message.launchRef;
|
|
193336
|
-
if (message.invitationExpiresAtMs != null && $Object.hasOwnProperty.call(message, "invitationExpiresAtMs"))
|
|
193337
|
-
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
193338
|
-
object.invitationExpiresAtMs = typeof message.invitationExpiresAtMs === "number" ? $BigInt(message.invitationExpiresAtMs) : $util.Long.fromBits(message.invitationExpiresAtMs.low >>> 0, message.invitationExpiresAtMs.high >>> 0, false).toBigInt();
|
|
193339
|
-
else if (typeof message.invitationExpiresAtMs === "number")
|
|
193340
|
-
object.invitationExpiresAtMs = options.longs === $String ? $String(message.invitationExpiresAtMs) : message.invitationExpiresAtMs;
|
|
193341
|
-
else
|
|
193342
|
-
object.invitationExpiresAtMs = options.longs === $String ? $util.Long.prototype.toString.call(message.invitationExpiresAtMs) : options.longs === $Number ? new $util.LongBits(message.invitationExpiresAtMs.low >>> 0, message.invitationExpiresAtMs.high >>> 0).toNumber() : message.invitationExpiresAtMs;
|
|
193343
193302
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint"))
|
|
193344
193303
|
object.scopeHint = options.enums === $String ? $root.waproto.Message.VpcRequestMessage.ScopeHint[message.scopeHint] === $undefined ? message.scopeHint : $root.waproto.Message.VpcRequestMessage.ScopeHint[message.scopeHint] : message.scopeHint;
|
|
193345
193304
|
return object;
|