@wppconnect/wa-proto 2.3000.1047775310 → 2.3000.1047806989
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 +4 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +57 -0
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1047806989
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -492,6 +492,7 @@ message BotCapabilityMetadata {
|
|
|
492
492
|
AI_RICH_RESPONSE_REMINDERS_ENABLED = 69;
|
|
493
493
|
AI_STOP_GENERATION_ENABLED = 70;
|
|
494
494
|
AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED = 71;
|
|
495
|
+
HATCH_NOTIFICATION_METADATA_EVENT_ENABLED = 72;
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
|
|
@@ -1237,6 +1238,7 @@ message ClientPayload {
|
|
|
1237
1238
|
optional int32 processingQueueSize = 46;
|
|
1238
1239
|
repeated string pairedPeripherals = 47;
|
|
1239
1240
|
optional bytes testIsolationId = 48;
|
|
1241
|
+
optional int64 messageSts = 49;
|
|
1240
1242
|
enum AccountType {
|
|
1241
1243
|
DEFAULT = 0;
|
|
1242
1244
|
GUEST = 1;
|
|
@@ -6743,6 +6745,7 @@ message WebMessageInfo {
|
|
|
6743
6745
|
IDENTITY_TRUST_REVOKED = 228;
|
|
6744
6746
|
CTWA_CONSUMER_DISCLOSURE = 230;
|
|
6745
6747
|
CHANGE_ACP2_SETTING = 240;
|
|
6748
|
+
BIZ_CALLBACK_DISABLED = 244;
|
|
6746
6749
|
BIZ_CALLBACK_ENABLED = 247;
|
|
6747
6750
|
EPHEMERAL_CHANGED_FOR_COEX = 248;
|
|
6748
6751
|
UGC_BOT_PROFILE_UPDATED = 249;
|
package/dist/index.d.ts
CHANGED
|
@@ -7287,7 +7287,10 @@ export namespace waproto {
|
|
|
7287
7287
|
AI_STOP_GENERATION_ENABLED = 70,
|
|
7288
7288
|
|
|
7289
7289
|
/** AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED value */
|
|
7290
|
-
AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED = 71
|
|
7290
|
+
AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED = 71,
|
|
7291
|
+
|
|
7292
|
+
/** HATCH_NOTIFICATION_METADATA_EVENT_ENABLED value */
|
|
7293
|
+
HATCH_NOTIFICATION_METADATA_EVENT_ENABLED = 72
|
|
7291
7294
|
}
|
|
7292
7295
|
}
|
|
7293
7296
|
|
|
@@ -17197,6 +17200,9 @@ export namespace waproto {
|
|
|
17197
17200
|
/** ClientPayload testIsolationId. */
|
|
17198
17201
|
testIsolationId?: (Uint8Array|null);
|
|
17199
17202
|
|
|
17203
|
+
/** ClientPayload messageSts. */
|
|
17204
|
+
messageSts?: (number|Long|null);
|
|
17205
|
+
|
|
17200
17206
|
/**
|
|
17201
17207
|
* Creates a new ClientPayload instance using the specified properties.
|
|
17202
17208
|
* @param [properties] Properties to set
|
|
@@ -17389,6 +17395,9 @@ export namespace waproto {
|
|
|
17389
17395
|
/** ClientPayload testIsolationId */
|
|
17390
17396
|
testIsolationId?: (Uint8Array|null);
|
|
17391
17397
|
|
|
17398
|
+
/** ClientPayload messageSts */
|
|
17399
|
+
messageSts?: (number|Long|null);
|
|
17400
|
+
|
|
17392
17401
|
/** Unknown fields preserved while decoding when enabled */
|
|
17393
17402
|
$unknowns?: Uint8Array[];
|
|
17394
17403
|
}
|
|
@@ -92097,6 +92106,9 @@ export namespace waproto {
|
|
|
92097
92106
|
/** CHANGE_ACP2_SETTING value */
|
|
92098
92107
|
CHANGE_ACP2_SETTING = 240,
|
|
92099
92108
|
|
|
92109
|
+
/** BIZ_CALLBACK_DISABLED value */
|
|
92110
|
+
BIZ_CALLBACK_DISABLED = 244,
|
|
92111
|
+
|
|
92100
92112
|
/** BIZ_CALLBACK_ENABLED value */
|
|
92101
92113
|
BIZ_CALLBACK_ENABLED = 247,
|
|
92102
92114
|
|
package/dist/index.js
CHANGED
|
@@ -19849,6 +19849,10 @@ $root.waproto = (function() {
|
|
|
19849
19849
|
case 71:
|
|
19850
19850
|
message.capabilities[message.capabilities.length] = 71;
|
|
19851
19851
|
break;
|
|
19852
|
+
case "HATCH_NOTIFICATION_METADATA_EVENT_ENABLED":
|
|
19853
|
+
case 72:
|
|
19854
|
+
message.capabilities[message.capabilities.length] = 72;
|
|
19855
|
+
break;
|
|
19852
19856
|
default:
|
|
19853
19857
|
if (typeof object.capabilities[i] === "number" && (object.capabilities[i] | 0) === object.capabilities[i])
|
|
19854
19858
|
message.capabilities[message.capabilities.length] = object.capabilities[i];
|
|
@@ -19985,6 +19989,7 @@ $root.waproto = (function() {
|
|
|
19985
19989
|
* @property {number} AI_RICH_RESPONSE_REMINDERS_ENABLED=69 AI_RICH_RESPONSE_REMINDERS_ENABLED value
|
|
19986
19990
|
* @property {number} AI_STOP_GENERATION_ENABLED=70 AI_STOP_GENERATION_ENABLED value
|
|
19987
19991
|
* @property {number} AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED=71 AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED value
|
|
19992
|
+
* @property {number} HATCH_NOTIFICATION_METADATA_EVENT_ENABLED=72 HATCH_NOTIFICATION_METADATA_EVENT_ENABLED value
|
|
19988
19993
|
*/
|
|
19989
19994
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
19990
19995
|
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
@@ -20060,6 +20065,7 @@ $root.waproto = (function() {
|
|
|
20060
20065
|
values[valuesById[69] = "AI_RICH_RESPONSE_REMINDERS_ENABLED"] = 69;
|
|
20061
20066
|
values[valuesById[70] = "AI_STOP_GENERATION_ENABLED"] = 70;
|
|
20062
20067
|
values[valuesById[71] = "AI_RICH_RESPONSE_3P_LINKING_CARD_ENABLED"] = 71;
|
|
20068
|
+
values[valuesById[72] = "HATCH_NOTIFICATION_METADATA_EVENT_ENABLED"] = 72;
|
|
20063
20069
|
return values;
|
|
20064
20070
|
})();
|
|
20065
20071
|
|
|
@@ -48158,6 +48164,7 @@ $root.waproto = (function() {
|
|
|
48158
48164
|
* @property {number|null} [processingQueueSize] ClientPayload processingQueueSize
|
|
48159
48165
|
* @property {Array.<string>|null} [pairedPeripherals] ClientPayload pairedPeripherals
|
|
48160
48166
|
* @property {Uint8Array|null} [testIsolationId] ClientPayload testIsolationId
|
|
48167
|
+
* @property {number|Long|null} [messageSts] ClientPayload messageSts
|
|
48161
48168
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
48162
48169
|
*/
|
|
48163
48170
|
|
|
@@ -48479,6 +48486,14 @@ $root.waproto = (function() {
|
|
|
48479
48486
|
*/
|
|
48480
48487
|
ClientPayload.prototype.testIsolationId = null;
|
|
48481
48488
|
|
|
48489
|
+
/**
|
|
48490
|
+
* ClientPayload messageSts.
|
|
48491
|
+
* @member {number|Long|null|undefined} messageSts
|
|
48492
|
+
* @memberof waproto.ClientPayload
|
|
48493
|
+
* @instance
|
|
48494
|
+
*/
|
|
48495
|
+
ClientPayload.prototype.messageSts = null;
|
|
48496
|
+
|
|
48482
48497
|
// OneOf field names bound to virtual getters and setters
|
|
48483
48498
|
var $oneOfFields;
|
|
48484
48499
|
|
|
@@ -48686,6 +48701,12 @@ $root.waproto = (function() {
|
|
|
48686
48701
|
set: $util.oneOfSetter($oneOfFields)
|
|
48687
48702
|
});
|
|
48688
48703
|
|
|
48704
|
+
// Virtual OneOf for proto3 optional field
|
|
48705
|
+
$Object.defineProperty(ClientPayload.prototype, "_messageSts", {
|
|
48706
|
+
get: $util.oneOfGetter($oneOfFields = ["messageSts"]),
|
|
48707
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
48708
|
+
});
|
|
48709
|
+
|
|
48689
48710
|
/**
|
|
48690
48711
|
* Creates a new ClientPayload instance using the specified properties.
|
|
48691
48712
|
* @function create
|
|
@@ -48791,6 +48812,8 @@ $root.waproto = (function() {
|
|
|
48791
48812
|
writer.uint32(/* id 47, wireType 2 =*/378).string(message.pairedPeripherals[i]);
|
|
48792
48813
|
if (message.testIsolationId != null && $Object.hasOwnProperty.call(message, "testIsolationId"))
|
|
48793
48814
|
writer.uint32(/* id 48, wireType 2 =*/386).bytes(message.testIsolationId);
|
|
48815
|
+
if (message.messageSts != null && $Object.hasOwnProperty.call(message, "messageSts"))
|
|
48816
|
+
writer.uint32(/* id 49, wireType 0 =*/392).int64(message.messageSts);
|
|
48794
48817
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
48795
48818
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
48796
48819
|
writer.raw(message.$unknowns[i]);
|
|
@@ -49108,6 +49131,13 @@ $root.waproto = (function() {
|
|
|
49108
49131
|
message._testIsolationId = "testIsolationId";
|
|
49109
49132
|
continue;
|
|
49110
49133
|
}
|
|
49134
|
+
case 49: {
|
|
49135
|
+
if (wireType !== 0)
|
|
49136
|
+
break;
|
|
49137
|
+
message.messageSts = reader.int64();
|
|
49138
|
+
message._messageSts = "messageSts";
|
|
49139
|
+
continue;
|
|
49140
|
+
}
|
|
49111
49141
|
}
|
|
49112
49142
|
reader.skipType(wireType, _depth, tag);
|
|
49113
49143
|
if (!reader.discardUnknown) {
|
|
@@ -49356,6 +49386,11 @@ $root.waproto = (function() {
|
|
|
49356
49386
|
if (!(message.testIsolationId && typeof message.testIsolationId.length === "number" || $util.isString(message.testIsolationId)))
|
|
49357
49387
|
return "testIsolationId: buffer expected";
|
|
49358
49388
|
}
|
|
49389
|
+
if (message.messageSts != null && $Object.hasOwnProperty.call(message, "messageSts")) {
|
|
49390
|
+
properties._messageSts = 1;
|
|
49391
|
+
if (!$util.isInteger(message.messageSts) && !(message.messageSts && $util.isInteger(message.messageSts.low) && $util.isInteger(message.messageSts.high)))
|
|
49392
|
+
return "messageSts: integer|Long expected";
|
|
49393
|
+
}
|
|
49359
49394
|
return null;
|
|
49360
49395
|
};
|
|
49361
49396
|
|
|
@@ -49657,6 +49692,15 @@ $root.waproto = (function() {
|
|
|
49657
49692
|
$util.base64.decode(object.testIsolationId, message.testIsolationId = $util.newBuffer($util.base64.length(object.testIsolationId)), 0);
|
|
49658
49693
|
else if (object.testIsolationId.length >= 0)
|
|
49659
49694
|
message.testIsolationId = object.testIsolationId;
|
|
49695
|
+
if (object.messageSts != null)
|
|
49696
|
+
if ($util.Long)
|
|
49697
|
+
message.messageSts = $util.Long.fromValue(object.messageSts, false);
|
|
49698
|
+
else if (typeof object.messageSts === "string")
|
|
49699
|
+
message.messageSts = $parseInt(object.messageSts, 10);
|
|
49700
|
+
else if (typeof object.messageSts === "number")
|
|
49701
|
+
message.messageSts = object.messageSts;
|
|
49702
|
+
else if (typeof object.messageSts === "object")
|
|
49703
|
+
message.messageSts = new $util.LongBits(object.messageSts.low >>> 0, object.messageSts.high >>> 0).toNumber();
|
|
49660
49704
|
return message;
|
|
49661
49705
|
};
|
|
49662
49706
|
|
|
@@ -49769,6 +49813,13 @@ $root.waproto = (function() {
|
|
|
49769
49813
|
}
|
|
49770
49814
|
if (message.testIsolationId != null && $Object.hasOwnProperty.call(message, "testIsolationId"))
|
|
49771
49815
|
object.testIsolationId = options.bytes === $String ? $util.base64.encode(message.testIsolationId, 0, message.testIsolationId.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.testIsolationId) : message.testIsolationId;
|
|
49816
|
+
if (message.messageSts != null && $Object.hasOwnProperty.call(message, "messageSts"))
|
|
49817
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
49818
|
+
object.messageSts = typeof message.messageSts === "number" ? $BigInt(message.messageSts) : $util.Long.fromBits(message.messageSts.low >>> 0, message.messageSts.high >>> 0, false).toBigInt();
|
|
49819
|
+
else if (typeof message.messageSts === "number")
|
|
49820
|
+
object.messageSts = options.longs === $String ? $String(message.messageSts) : message.messageSts;
|
|
49821
|
+
else
|
|
49822
|
+
object.messageSts = options.longs === $String ? $util.Long.prototype.toString.call(message.messageSts) : options.longs === $Number ? new $util.LongBits(message.messageSts.low >>> 0, message.messageSts.high >>> 0).toNumber() : message.messageSts;
|
|
49772
49823
|
return object;
|
|
49773
49824
|
};
|
|
49774
49825
|
|
|
@@ -272734,6 +272785,10 @@ $root.waproto = (function() {
|
|
|
272734
272785
|
case 240:
|
|
272735
272786
|
message.messageStubType = 240;
|
|
272736
272787
|
break;
|
|
272788
|
+
case "BIZ_CALLBACK_DISABLED":
|
|
272789
|
+
case 244:
|
|
272790
|
+
message.messageStubType = 244;
|
|
272791
|
+
break;
|
|
272737
272792
|
case "BIZ_CALLBACK_ENABLED":
|
|
272738
272793
|
case 247:
|
|
272739
272794
|
message.messageStubType = 247;
|
|
@@ -273614,6 +273669,7 @@ $root.waproto = (function() {
|
|
|
273614
273669
|
* @property {number} IDENTITY_TRUST_REVOKED=228 IDENTITY_TRUST_REVOKED value
|
|
273615
273670
|
* @property {number} CTWA_CONSUMER_DISCLOSURE=230 CTWA_CONSUMER_DISCLOSURE value
|
|
273616
273671
|
* @property {number} CHANGE_ACP2_SETTING=240 CHANGE_ACP2_SETTING value
|
|
273672
|
+
* @property {number} BIZ_CALLBACK_DISABLED=244 BIZ_CALLBACK_DISABLED value
|
|
273617
273673
|
* @property {number} BIZ_CALLBACK_ENABLED=247 BIZ_CALLBACK_ENABLED value
|
|
273618
273674
|
* @property {number} EPHEMERAL_CHANGED_FOR_COEX=248 EPHEMERAL_CHANGED_FOR_COEX value
|
|
273619
273675
|
* @property {number} UGC_BOT_PROFILE_UPDATED=249 UGC_BOT_PROFILE_UPDATED value
|
|
@@ -273855,6 +273911,7 @@ $root.waproto = (function() {
|
|
|
273855
273911
|
values[valuesById[228] = "IDENTITY_TRUST_REVOKED"] = 228;
|
|
273856
273912
|
values[valuesById[230] = "CTWA_CONSUMER_DISCLOSURE"] = 230;
|
|
273857
273913
|
values[valuesById[240] = "CHANGE_ACP2_SETTING"] = 240;
|
|
273914
|
+
values[valuesById[244] = "BIZ_CALLBACK_DISABLED"] = 244;
|
|
273858
273915
|
values[valuesById[247] = "BIZ_CALLBACK_ENABLED"] = 247;
|
|
273859
273916
|
values[valuesById[248] = "EPHEMERAL_CHANGED_FOR_COEX"] = 248;
|
|
273860
273917
|
values[valuesById[249] = "UGC_BOT_PROFILE_UPDATED"] = 249;
|