@wppconnect/wa-proto 2.3000.1046167339 → 2.3000.1046196466
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 +7 -1
- package/dist/index.d.ts +34 -2
- package/dist/index.js +156 -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.1046196466
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -218,6 +218,7 @@ message AIRichResponseMessage {
|
|
|
218
218
|
repeated AIRichResponseSubMessage submessages = 2;
|
|
219
219
|
optional AIRichResponseUnifiedResponse unifiedResponse = 3;
|
|
220
220
|
optional ContextInfo contextInfo = 4;
|
|
221
|
+
optional AIRichResponseUnifiedResponse originalRecipientMetadata = 5;
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
enum AIRichResponseMessageType {
|
|
@@ -466,6 +467,7 @@ message BotCapabilityMetadata {
|
|
|
466
467
|
AI_RICH_RESPONSE_ARTIFACTS_ENABLED = 67;
|
|
467
468
|
AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED = 68;
|
|
468
469
|
AI_RICH_RESPONSE_REMINDERS_ENABLED = 69;
|
|
470
|
+
AI_STOP_GENERATION_ENABLED = 70;
|
|
469
471
|
}
|
|
470
472
|
}
|
|
471
473
|
|
|
@@ -715,6 +717,7 @@ message BotMetadata {
|
|
|
715
717
|
optional AISubscriptionUpsellMetadata subscriptionUpsellMetadata = 41;
|
|
716
718
|
optional BotPttPromptMetadata pttPromptMetadata = 42;
|
|
717
719
|
optional BotHistoryShareMetadata botHistoryShareMetadata = 43;
|
|
720
|
+
optional bool responseStoppedByUser = 44;
|
|
718
721
|
optional bytes internalMetadata = 999;
|
|
719
722
|
}
|
|
720
723
|
|
|
@@ -768,6 +771,7 @@ enum BotMetricsEntryPoint {
|
|
|
768
771
|
CHATLIST_SEARCH = 55;
|
|
769
772
|
NEW_CHAT_LIST = 56;
|
|
770
773
|
CONTACTS_TAB = 57;
|
|
774
|
+
NEW_3P_AGENT_CREATION = 58;
|
|
771
775
|
}
|
|
772
776
|
message BotMetricsMetadata {
|
|
773
777
|
optional string destinationId = 1;
|
|
@@ -2132,6 +2136,7 @@ message DeviceCapabilities {
|
|
|
2132
2136
|
optional bool campaignSyncEnabled = 3;
|
|
2133
2137
|
optional bool insightsSyncEnabled = 4;
|
|
2134
2138
|
optional int32 recipientLimit = 5;
|
|
2139
|
+
optional bool proCompanionSupportEnabled = 6;
|
|
2135
2140
|
}
|
|
2136
2141
|
|
|
2137
2142
|
enum ChatLockSupportLevel {
|
|
@@ -4732,6 +4737,7 @@ message Message {
|
|
|
4732
4737
|
optional uint64 motionPhotoPresentationOffsetMs = 29;
|
|
4733
4738
|
optional string metadataUrl = 30;
|
|
4734
4739
|
optional VideoSourceType videoSourceType = 31;
|
|
4740
|
+
optional string dashManifestUrl = 33;
|
|
4735
4741
|
enum Attribution {
|
|
4736
4742
|
NONE = 0;
|
|
4737
4743
|
GIPHY = 1;
|
package/dist/index.d.ts
CHANGED
|
@@ -3697,6 +3697,9 @@ export namespace waproto {
|
|
|
3697
3697
|
/** AIRichResponseMessage contextInfo. */
|
|
3698
3698
|
contextInfo?: (waproto.ContextInfo.$Properties|null);
|
|
3699
3699
|
|
|
3700
|
+
/** AIRichResponseMessage originalRecipientMetadata. */
|
|
3701
|
+
originalRecipientMetadata?: (waproto.AIRichResponseUnifiedResponse.$Properties|null);
|
|
3702
|
+
|
|
3700
3703
|
/**
|
|
3701
3704
|
* Creates a new AIRichResponseMessage instance using the specified properties.
|
|
3702
3705
|
* @param [properties] Properties to set
|
|
@@ -3793,6 +3796,9 @@ export namespace waproto {
|
|
|
3793
3796
|
/** AIRichResponseMessage contextInfo */
|
|
3794
3797
|
contextInfo?: (waproto.ContextInfo.$Properties|null);
|
|
3795
3798
|
|
|
3799
|
+
/** AIRichResponseMessage originalRecipientMetadata */
|
|
3800
|
+
originalRecipientMetadata?: (waproto.AIRichResponseUnifiedResponse.$Properties|null);
|
|
3801
|
+
|
|
3796
3802
|
/** Unknown fields preserved while decoding when enabled */
|
|
3797
3803
|
$unknowns?: Uint8Array[];
|
|
3798
3804
|
}
|
|
@@ -3803,6 +3809,7 @@ export namespace waproto {
|
|
|
3803
3809
|
submessages?: waproto.AIRichResponseSubMessage.$Shape[]|null;
|
|
3804
3810
|
unifiedResponse?: waproto.AIRichResponseUnifiedResponse.$Shape|null;
|
|
3805
3811
|
contextInfo?: waproto.ContextInfo.$Shape|null;
|
|
3812
|
+
originalRecipientMetadata?: waproto.AIRichResponseUnifiedResponse.$Shape|null;
|
|
3806
3813
|
$unknowns?: Uint8Array[];
|
|
3807
3814
|
};
|
|
3808
3815
|
}
|
|
@@ -6868,7 +6875,10 @@ export namespace waproto {
|
|
|
6868
6875
|
AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED = 68,
|
|
6869
6876
|
|
|
6870
6877
|
/** AI_RICH_RESPONSE_REMINDERS_ENABLED value */
|
|
6871
|
-
AI_RICH_RESPONSE_REMINDERS_ENABLED = 69
|
|
6878
|
+
AI_RICH_RESPONSE_REMINDERS_ENABLED = 69,
|
|
6879
|
+
|
|
6880
|
+
/** AI_STOP_GENERATION_ENABLED value */
|
|
6881
|
+
AI_STOP_GENERATION_ENABLED = 70
|
|
6872
6882
|
}
|
|
6873
6883
|
}
|
|
6874
6884
|
|
|
@@ -10357,6 +10367,9 @@ export namespace waproto {
|
|
|
10357
10367
|
/** BotMetadata botHistoryShareMetadata. */
|
|
10358
10368
|
botHistoryShareMetadata?: (waproto.BotHistoryShareMetadata.$Properties|null);
|
|
10359
10369
|
|
|
10370
|
+
/** BotMetadata responseStoppedByUser. */
|
|
10371
|
+
responseStoppedByUser?: (boolean|null);
|
|
10372
|
+
|
|
10360
10373
|
/** BotMetadata internalMetadata. */
|
|
10361
10374
|
internalMetadata?: (Uint8Array|null);
|
|
10362
10375
|
|
|
@@ -10570,6 +10583,9 @@ export namespace waproto {
|
|
|
10570
10583
|
/** BotMetadata botHistoryShareMetadata */
|
|
10571
10584
|
botHistoryShareMetadata?: (waproto.BotHistoryShareMetadata.$Properties|null);
|
|
10572
10585
|
|
|
10586
|
+
/** BotMetadata responseStoppedByUser */
|
|
10587
|
+
responseStoppedByUser?: (boolean|null);
|
|
10588
|
+
|
|
10573
10589
|
/** BotMetadata internalMetadata */
|
|
10574
10590
|
internalMetadata?: (Uint8Array|null);
|
|
10575
10591
|
|
|
@@ -10729,7 +10745,10 @@ export namespace waproto {
|
|
|
10729
10745
|
NEW_CHAT_LIST = 56,
|
|
10730
10746
|
|
|
10731
10747
|
/** CONTACTS_TAB value */
|
|
10732
|
-
CONTACTS_TAB = 57
|
|
10748
|
+
CONTACTS_TAB = 57,
|
|
10749
|
+
|
|
10750
|
+
/** NEW_3P_AGENT_CREATION value */
|
|
10751
|
+
NEW_3P_AGENT_CREATION = 58
|
|
10733
10752
|
}
|
|
10734
10753
|
|
|
10735
10754
|
/**
|
|
@@ -28960,6 +28979,9 @@ export namespace waproto {
|
|
|
28960
28979
|
/** BusinessBroadcast recipientLimit. */
|
|
28961
28980
|
recipientLimit?: (number|null);
|
|
28962
28981
|
|
|
28982
|
+
/** BusinessBroadcast proCompanionSupportEnabled. */
|
|
28983
|
+
proCompanionSupportEnabled?: (boolean|null);
|
|
28984
|
+
|
|
28963
28985
|
/**
|
|
28964
28986
|
* Creates a new BusinessBroadcast instance using the specified properties.
|
|
28965
28987
|
* @param [properties] Properties to set
|
|
@@ -29059,6 +29081,9 @@ export namespace waproto {
|
|
|
29059
29081
|
/** BusinessBroadcast recipientLimit */
|
|
29060
29082
|
recipientLimit?: (number|null);
|
|
29061
29083
|
|
|
29084
|
+
/** BusinessBroadcast proCompanionSupportEnabled */
|
|
29085
|
+
proCompanionSupportEnabled?: (boolean|null);
|
|
29086
|
+
|
|
29062
29087
|
/** Unknown fields preserved while decoding when enabled */
|
|
29063
29088
|
$unknowns?: Uint8Array[];
|
|
29064
29089
|
}
|
|
@@ -66586,6 +66611,9 @@ export namespace waproto {
|
|
|
66586
66611
|
/** VideoMessage videoSourceType. */
|
|
66587
66612
|
videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
|
|
66588
66613
|
|
|
66614
|
+
/** VideoMessage dashManifestUrl. */
|
|
66615
|
+
dashManifestUrl?: (string|null);
|
|
66616
|
+
|
|
66589
66617
|
/**
|
|
66590
66618
|
* Creates a new VideoMessage instance using the specified properties.
|
|
66591
66619
|
* @param [properties] Properties to set
|
|
@@ -66760,6 +66788,9 @@ export namespace waproto {
|
|
|
66760
66788
|
/** VideoMessage videoSourceType */
|
|
66761
66789
|
videoSourceType?: (waproto.Message.VideoMessage.VideoSourceType|null);
|
|
66762
66790
|
|
|
66791
|
+
/** VideoMessage dashManifestUrl */
|
|
66792
|
+
dashManifestUrl?: (string|null);
|
|
66793
|
+
|
|
66763
66794
|
/** Unknown fields preserved while decoding when enabled */
|
|
66764
66795
|
$unknowns?: Uint8Array[];
|
|
66765
66796
|
}
|
|
@@ -66796,6 +66827,7 @@ export namespace waproto {
|
|
|
66796
66827
|
motionPhotoPresentationOffsetMs?: number|Long|null;
|
|
66797
66828
|
metadataUrl?: string|null;
|
|
66798
66829
|
videoSourceType?: waproto.Message.VideoMessage.VideoSourceType|null;
|
|
66830
|
+
dashManifestUrl?: string|null;
|
|
66799
66831
|
$unknowns?: Uint8Array[];
|
|
66800
66832
|
};
|
|
66801
66833
|
|
package/dist/index.js
CHANGED
|
@@ -10336,6 +10336,7 @@ $root.waproto = (function() {
|
|
|
10336
10336
|
* @property {Array.<waproto.AIRichResponseSubMessage.$Properties>|null} [submessages] AIRichResponseMessage submessages
|
|
10337
10337
|
* @property {waproto.AIRichResponseUnifiedResponse.$Properties|null} [unifiedResponse] AIRichResponseMessage unifiedResponse
|
|
10338
10338
|
* @property {waproto.ContextInfo.$Properties|null} [contextInfo] AIRichResponseMessage contextInfo
|
|
10339
|
+
* @property {waproto.AIRichResponseUnifiedResponse.$Properties|null} [originalRecipientMetadata] AIRichResponseMessage originalRecipientMetadata
|
|
10339
10340
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
10340
10341
|
*/
|
|
10341
10342
|
|
|
@@ -10354,6 +10355,7 @@ $root.waproto = (function() {
|
|
|
10354
10355
|
* submessages?: Array.<waproto.AIRichResponseSubMessage.$Shape>|null;
|
|
10355
10356
|
* unifiedResponse?: waproto.AIRichResponseUnifiedResponse.$Shape|null;
|
|
10356
10357
|
* contextInfo?: waproto.ContextInfo.$Shape|null;
|
|
10358
|
+
* originalRecipientMetadata?: waproto.AIRichResponseUnifiedResponse.$Shape|null;
|
|
10357
10359
|
* $unknowns?: Array.<Uint8Array>;
|
|
10358
10360
|
* }} waproto.AIRichResponseMessage.$Shape
|
|
10359
10361
|
*/
|
|
@@ -10406,6 +10408,14 @@ $root.waproto = (function() {
|
|
|
10406
10408
|
*/
|
|
10407
10409
|
AIRichResponseMessage.prototype.contextInfo = null;
|
|
10408
10410
|
|
|
10411
|
+
/**
|
|
10412
|
+
* AIRichResponseMessage originalRecipientMetadata.
|
|
10413
|
+
* @member {waproto.AIRichResponseUnifiedResponse.$Properties|null|undefined} originalRecipientMetadata
|
|
10414
|
+
* @memberof waproto.AIRichResponseMessage
|
|
10415
|
+
* @instance
|
|
10416
|
+
*/
|
|
10417
|
+
AIRichResponseMessage.prototype.originalRecipientMetadata = null;
|
|
10418
|
+
|
|
10409
10419
|
// OneOf field names bound to virtual getters and setters
|
|
10410
10420
|
var $oneOfFields;
|
|
10411
10421
|
|
|
@@ -10427,6 +10437,12 @@ $root.waproto = (function() {
|
|
|
10427
10437
|
set: $util.oneOfSetter($oneOfFields)
|
|
10428
10438
|
});
|
|
10429
10439
|
|
|
10440
|
+
// Virtual OneOf for proto3 optional field
|
|
10441
|
+
$Object.defineProperty(AIRichResponseMessage.prototype, "_originalRecipientMetadata", {
|
|
10442
|
+
get: $util.oneOfGetter($oneOfFields = ["originalRecipientMetadata"]),
|
|
10443
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
10444
|
+
});
|
|
10445
|
+
|
|
10430
10446
|
/**
|
|
10431
10447
|
* Creates a new AIRichResponseMessage instance using the specified properties.
|
|
10432
10448
|
* @function create
|
|
@@ -10468,6 +10484,8 @@ $root.waproto = (function() {
|
|
|
10468
10484
|
$root.waproto.AIRichResponseUnifiedResponse.encode(message.unifiedResponse, writer.uint32(/* id 3, wireType 2 =*/26).fork(), _depth + 1).ldelim();
|
|
10469
10485
|
if (message.contextInfo != null && $Object.hasOwnProperty.call(message, "contextInfo"))
|
|
10470
10486
|
$root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork(), _depth + 1).ldelim();
|
|
10487
|
+
if (message.originalRecipientMetadata != null && $Object.hasOwnProperty.call(message, "originalRecipientMetadata"))
|
|
10488
|
+
$root.waproto.AIRichResponseUnifiedResponse.encode(message.originalRecipientMetadata, writer.uint32(/* id 5, wireType 2 =*/42).fork(), _depth + 1).ldelim();
|
|
10471
10489
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
10472
10490
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
10473
10491
|
writer.raw(message.$unknowns[i]);
|
|
@@ -10554,6 +10572,13 @@ $root.waproto = (function() {
|
|
|
10554
10572
|
message._contextInfo = "contextInfo";
|
|
10555
10573
|
continue;
|
|
10556
10574
|
}
|
|
10575
|
+
case 5: {
|
|
10576
|
+
if (wireType !== 2)
|
|
10577
|
+
break;
|
|
10578
|
+
message.originalRecipientMetadata = $root.waproto.AIRichResponseUnifiedResponse.decode(reader, reader.uint32(), $undefined, _depth + 1, message.originalRecipientMetadata);
|
|
10579
|
+
message._originalRecipientMetadata = "originalRecipientMetadata";
|
|
10580
|
+
continue;
|
|
10581
|
+
}
|
|
10557
10582
|
}
|
|
10558
10583
|
reader.skipType(wireType, _depth, tag);
|
|
10559
10584
|
if (!reader.discardUnknown) {
|
|
@@ -10633,6 +10658,14 @@ $root.waproto = (function() {
|
|
|
10633
10658
|
return "contextInfo." + error;
|
|
10634
10659
|
}
|
|
10635
10660
|
}
|
|
10661
|
+
if (message.originalRecipientMetadata != null && $Object.hasOwnProperty.call(message, "originalRecipientMetadata")) {
|
|
10662
|
+
properties._originalRecipientMetadata = 1;
|
|
10663
|
+
{
|
|
10664
|
+
var error = $root.waproto.AIRichResponseUnifiedResponse.verify(message.originalRecipientMetadata, _depth + 1);
|
|
10665
|
+
if (error)
|
|
10666
|
+
return "originalRecipientMetadata." + error;
|
|
10667
|
+
}
|
|
10668
|
+
}
|
|
10636
10669
|
return null;
|
|
10637
10670
|
};
|
|
10638
10671
|
|
|
@@ -10687,6 +10720,11 @@ $root.waproto = (function() {
|
|
|
10687
10720
|
throw $TypeError(".waproto.AIRichResponseMessage.contextInfo: object expected");
|
|
10688
10721
|
message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo, _depth + 1);
|
|
10689
10722
|
}
|
|
10723
|
+
if (object.originalRecipientMetadata != null) {
|
|
10724
|
+
if (!$util.isObject(object.originalRecipientMetadata))
|
|
10725
|
+
throw $TypeError(".waproto.AIRichResponseMessage.originalRecipientMetadata: object expected");
|
|
10726
|
+
message.originalRecipientMetadata = $root.waproto.AIRichResponseUnifiedResponse.fromObject(object.originalRecipientMetadata, _depth + 1);
|
|
10727
|
+
}
|
|
10690
10728
|
return message;
|
|
10691
10729
|
};
|
|
10692
10730
|
|
|
@@ -10720,6 +10758,8 @@ $root.waproto = (function() {
|
|
|
10720
10758
|
object.unifiedResponse = $root.waproto.AIRichResponseUnifiedResponse.toObject(message.unifiedResponse, options, _depth + 1);
|
|
10721
10759
|
if (message.contextInfo != null && $Object.hasOwnProperty.call(message, "contextInfo"))
|
|
10722
10760
|
object.contextInfo = $root.waproto.ContextInfo.toObject(message.contextInfo, options, _depth + 1);
|
|
10761
|
+
if (message.originalRecipientMetadata != null && $Object.hasOwnProperty.call(message, "originalRecipientMetadata"))
|
|
10762
|
+
object.originalRecipientMetadata = $root.waproto.AIRichResponseUnifiedResponse.toObject(message.originalRecipientMetadata, options, _depth + 1);
|
|
10723
10763
|
return object;
|
|
10724
10764
|
};
|
|
10725
10765
|
|
|
@@ -18747,6 +18787,10 @@ $root.waproto = (function() {
|
|
|
18747
18787
|
case 69:
|
|
18748
18788
|
message.capabilities[message.capabilities.length] = 69;
|
|
18749
18789
|
break;
|
|
18790
|
+
case "AI_STOP_GENERATION_ENABLED":
|
|
18791
|
+
case 70:
|
|
18792
|
+
message.capabilities[message.capabilities.length] = 70;
|
|
18793
|
+
break;
|
|
18750
18794
|
default:
|
|
18751
18795
|
if (typeof object.capabilities[i] === "number" && (object.capabilities[i] | 0) === object.capabilities[i])
|
|
18752
18796
|
message.capabilities[message.capabilities.length] = object.capabilities[i];
|
|
@@ -18881,6 +18925,7 @@ $root.waproto = (function() {
|
|
|
18881
18925
|
* @property {number} AI_RICH_RESPONSE_ARTIFACTS_ENABLED=67 AI_RICH_RESPONSE_ARTIFACTS_ENABLED value
|
|
18882
18926
|
* @property {number} AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED=68 AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED value
|
|
18883
18927
|
* @property {number} AI_RICH_RESPONSE_REMINDERS_ENABLED=69 AI_RICH_RESPONSE_REMINDERS_ENABLED value
|
|
18928
|
+
* @property {number} AI_STOP_GENERATION_ENABLED=70 AI_STOP_GENERATION_ENABLED value
|
|
18884
18929
|
*/
|
|
18885
18930
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
18886
18931
|
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
@@ -18954,6 +18999,7 @@ $root.waproto = (function() {
|
|
|
18954
18999
|
values[valuesById[67] = "AI_RICH_RESPONSE_ARTIFACTS_ENABLED"] = 67;
|
|
18955
19000
|
values[valuesById[68] = "AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED"] = 68;
|
|
18956
19001
|
values[valuesById[69] = "AI_RICH_RESPONSE_REMINDERS_ENABLED"] = 69;
|
|
19002
|
+
values[valuesById[70] = "AI_STOP_GENERATION_ENABLED"] = 70;
|
|
18957
19003
|
return values;
|
|
18958
19004
|
})();
|
|
18959
19005
|
|
|
@@ -28033,6 +28079,10 @@ $root.waproto = (function() {
|
|
|
28033
28079
|
case 57:
|
|
28034
28080
|
message.botEntryPointOrigin = 57;
|
|
28035
28081
|
break;
|
|
28082
|
+
case "NEW_3P_AGENT_CREATION":
|
|
28083
|
+
case 58:
|
|
28084
|
+
message.botEntryPointOrigin = 58;
|
|
28085
|
+
break;
|
|
28036
28086
|
default:
|
|
28037
28087
|
if (typeof object.botEntryPointOrigin === "number" && (object.botEntryPointOrigin | 0) === object.botEntryPointOrigin)
|
|
28038
28088
|
message.botEntryPointOrigin = object.botEntryPointOrigin;
|
|
@@ -28141,6 +28191,7 @@ $root.waproto = (function() {
|
|
|
28141
28191
|
* @property {waproto.AISubscriptionUpsellMetadata.$Properties|null} [subscriptionUpsellMetadata] BotMetadata subscriptionUpsellMetadata
|
|
28142
28192
|
* @property {waproto.BotPttPromptMetadata.$Properties|null} [pttPromptMetadata] BotMetadata pttPromptMetadata
|
|
28143
28193
|
* @property {waproto.BotHistoryShareMetadata.$Properties|null} [botHistoryShareMetadata] BotMetadata botHistoryShareMetadata
|
|
28194
|
+
* @property {boolean|null} [responseStoppedByUser] BotMetadata responseStoppedByUser
|
|
28144
28195
|
* @property {Uint8Array|null} [internalMetadata] BotMetadata internalMetadata
|
|
28145
28196
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
28146
28197
|
*/
|
|
@@ -28509,6 +28560,14 @@ $root.waproto = (function() {
|
|
|
28509
28560
|
*/
|
|
28510
28561
|
BotMetadata.prototype.botHistoryShareMetadata = null;
|
|
28511
28562
|
|
|
28563
|
+
/**
|
|
28564
|
+
* BotMetadata responseStoppedByUser.
|
|
28565
|
+
* @member {boolean|null|undefined} responseStoppedByUser
|
|
28566
|
+
* @memberof waproto.BotMetadata
|
|
28567
|
+
* @instance
|
|
28568
|
+
*/
|
|
28569
|
+
BotMetadata.prototype.responseStoppedByUser = null;
|
|
28570
|
+
|
|
28512
28571
|
/**
|
|
28513
28572
|
* BotMetadata internalMetadata.
|
|
28514
28573
|
* @member {Uint8Array|null|undefined} internalMetadata
|
|
@@ -28772,6 +28831,12 @@ $root.waproto = (function() {
|
|
|
28772
28831
|
set: $util.oneOfSetter($oneOfFields)
|
|
28773
28832
|
});
|
|
28774
28833
|
|
|
28834
|
+
// Virtual OneOf for proto3 optional field
|
|
28835
|
+
$Object.defineProperty(BotMetadata.prototype, "_responseStoppedByUser", {
|
|
28836
|
+
get: $util.oneOfGetter($oneOfFields = ["responseStoppedByUser"]),
|
|
28837
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
28838
|
+
});
|
|
28839
|
+
|
|
28775
28840
|
// Virtual OneOf for proto3 optional field
|
|
28776
28841
|
$Object.defineProperty(BotMetadata.prototype, "_internalMetadata", {
|
|
28777
28842
|
get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]),
|
|
@@ -28894,6 +28959,8 @@ $root.waproto = (function() {
|
|
|
28894
28959
|
$root.waproto.BotPttPromptMetadata.encode(message.pttPromptMetadata, writer.uint32(/* id 42, wireType 2 =*/338).fork(), _depth + 1).ldelim();
|
|
28895
28960
|
if (message.botHistoryShareMetadata != null && $Object.hasOwnProperty.call(message, "botHistoryShareMetadata"))
|
|
28896
28961
|
$root.waproto.BotHistoryShareMetadata.encode(message.botHistoryShareMetadata, writer.uint32(/* id 43, wireType 2 =*/346).fork(), _depth + 1).ldelim();
|
|
28962
|
+
if (message.responseStoppedByUser != null && $Object.hasOwnProperty.call(message, "responseStoppedByUser"))
|
|
28963
|
+
writer.uint32(/* id 44, wireType 0 =*/352).bool(message.responseStoppedByUser);
|
|
28897
28964
|
if (message.internalMetadata != null && $Object.hasOwnProperty.call(message, "internalMetadata"))
|
|
28898
28965
|
writer.uint32(/* id 999, wireType 2 =*/7994).bytes(message.internalMetadata);
|
|
28899
28966
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
@@ -29247,6 +29314,13 @@ $root.waproto = (function() {
|
|
|
29247
29314
|
message._botHistoryShareMetadata = "botHistoryShareMetadata";
|
|
29248
29315
|
continue;
|
|
29249
29316
|
}
|
|
29317
|
+
case 44: {
|
|
29318
|
+
if (wireType !== 0)
|
|
29319
|
+
break;
|
|
29320
|
+
message.responseStoppedByUser = reader.bool();
|
|
29321
|
+
message._responseStoppedByUser = "responseStoppedByUser";
|
|
29322
|
+
continue;
|
|
29323
|
+
}
|
|
29250
29324
|
case 999: {
|
|
29251
29325
|
if (wireType !== 2)
|
|
29252
29326
|
break;
|
|
@@ -29618,6 +29692,11 @@ $root.waproto = (function() {
|
|
|
29618
29692
|
return "botHistoryShareMetadata." + error;
|
|
29619
29693
|
}
|
|
29620
29694
|
}
|
|
29695
|
+
if (message.responseStoppedByUser != null && $Object.hasOwnProperty.call(message, "responseStoppedByUser")) {
|
|
29696
|
+
properties._responseStoppedByUser = 1;
|
|
29697
|
+
if (typeof message.responseStoppedByUser !== "boolean")
|
|
29698
|
+
return "responseStoppedByUser: boolean expected";
|
|
29699
|
+
}
|
|
29621
29700
|
if (message.internalMetadata != null && $Object.hasOwnProperty.call(message, "internalMetadata")) {
|
|
29622
29701
|
properties._internalMetadata = 1;
|
|
29623
29702
|
if (!(message.internalMetadata && typeof message.internalMetadata.length === "number" || $util.isString(message.internalMetadata)))
|
|
@@ -29836,6 +29915,8 @@ $root.waproto = (function() {
|
|
|
29836
29915
|
throw $TypeError(".waproto.BotMetadata.botHistoryShareMetadata: object expected");
|
|
29837
29916
|
message.botHistoryShareMetadata = $root.waproto.BotHistoryShareMetadata.fromObject(object.botHistoryShareMetadata, _depth + 1);
|
|
29838
29917
|
}
|
|
29918
|
+
if (object.responseStoppedByUser != null)
|
|
29919
|
+
message.responseStoppedByUser = $Boolean(object.responseStoppedByUser);
|
|
29839
29920
|
if (object.internalMetadata != null)
|
|
29840
29921
|
if (typeof object.internalMetadata === "string")
|
|
29841
29922
|
$util.base64.decode(object.internalMetadata, message.internalMetadata = $util.newBuffer($util.base64.length(object.internalMetadata)), 0);
|
|
@@ -29945,6 +30026,8 @@ $root.waproto = (function() {
|
|
|
29945
30026
|
object.pttPromptMetadata = $root.waproto.BotPttPromptMetadata.toObject(message.pttPromptMetadata, options, _depth + 1);
|
|
29946
30027
|
if (message.botHistoryShareMetadata != null && $Object.hasOwnProperty.call(message, "botHistoryShareMetadata"))
|
|
29947
30028
|
object.botHistoryShareMetadata = $root.waproto.BotHistoryShareMetadata.toObject(message.botHistoryShareMetadata, options, _depth + 1);
|
|
30029
|
+
if (message.responseStoppedByUser != null && $Object.hasOwnProperty.call(message, "responseStoppedByUser"))
|
|
30030
|
+
object.responseStoppedByUser = message.responseStoppedByUser;
|
|
29948
30031
|
if (message.internalMetadata != null && $Object.hasOwnProperty.call(message, "internalMetadata"))
|
|
29949
30032
|
object.internalMetadata = options.bytes === $String ? $util.base64.encode(message.internalMetadata, 0, message.internalMetadata.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.internalMetadata) : message.internalMetadata;
|
|
29950
30033
|
return object;
|
|
@@ -30031,6 +30114,7 @@ $root.waproto = (function() {
|
|
|
30031
30114
|
* @property {number} CHATLIST_SEARCH=55 CHATLIST_SEARCH value
|
|
30032
30115
|
* @property {number} NEW_CHAT_LIST=56 NEW_CHAT_LIST value
|
|
30033
30116
|
* @property {number} CONTACTS_TAB=57 CONTACTS_TAB value
|
|
30117
|
+
* @property {number} NEW_3P_AGENT_CREATION=58 NEW_3P_AGENT_CREATION value
|
|
30034
30118
|
*/
|
|
30035
30119
|
waproto.BotMetricsEntryPoint = (function() {
|
|
30036
30120
|
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
@@ -30083,6 +30167,7 @@ $root.waproto = (function() {
|
|
|
30083
30167
|
values[valuesById[55] = "CHATLIST_SEARCH"] = 55;
|
|
30084
30168
|
values[valuesById[56] = "NEW_CHAT_LIST"] = 56;
|
|
30085
30169
|
values[valuesById[57] = "CONTACTS_TAB"] = 57;
|
|
30170
|
+
values[valuesById[58] = "NEW_3P_AGENT_CREATION"] = 58;
|
|
30086
30171
|
return values;
|
|
30087
30172
|
})();
|
|
30088
30173
|
|
|
@@ -30570,6 +30655,10 @@ $root.waproto = (function() {
|
|
|
30570
30655
|
case 57:
|
|
30571
30656
|
message.destinationEntryPoint = 57;
|
|
30572
30657
|
break;
|
|
30658
|
+
case "NEW_3P_AGENT_CREATION":
|
|
30659
|
+
case 58:
|
|
30660
|
+
message.destinationEntryPoint = 58;
|
|
30661
|
+
break;
|
|
30573
30662
|
default:
|
|
30574
30663
|
if (typeof object.destinationEntryPoint === "number" && (object.destinationEntryPoint | 0) === object.destinationEntryPoint)
|
|
30575
30664
|
message.destinationEntryPoint = object.destinationEntryPoint;
|
|
@@ -84372,6 +84461,7 @@ $root.waproto = (function() {
|
|
|
84372
84461
|
* @property {boolean|null} [campaignSyncEnabled] BusinessBroadcast campaignSyncEnabled
|
|
84373
84462
|
* @property {boolean|null} [insightsSyncEnabled] BusinessBroadcast insightsSyncEnabled
|
|
84374
84463
|
* @property {number|null} [recipientLimit] BusinessBroadcast recipientLimit
|
|
84464
|
+
* @property {boolean|null} [proCompanionSupportEnabled] BusinessBroadcast proCompanionSupportEnabled
|
|
84375
84465
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
84376
84466
|
*/
|
|
84377
84467
|
|
|
@@ -84443,6 +84533,14 @@ $root.waproto = (function() {
|
|
|
84443
84533
|
*/
|
|
84444
84534
|
BusinessBroadcast.prototype.recipientLimit = null;
|
|
84445
84535
|
|
|
84536
|
+
/**
|
|
84537
|
+
* BusinessBroadcast proCompanionSupportEnabled.
|
|
84538
|
+
* @member {boolean|null|undefined} proCompanionSupportEnabled
|
|
84539
|
+
* @memberof waproto.DeviceCapabilities.BusinessBroadcast
|
|
84540
|
+
* @instance
|
|
84541
|
+
*/
|
|
84542
|
+
BusinessBroadcast.prototype.proCompanionSupportEnabled = null;
|
|
84543
|
+
|
|
84446
84544
|
// OneOf field names bound to virtual getters and setters
|
|
84447
84545
|
var $oneOfFields;
|
|
84448
84546
|
|
|
@@ -84476,6 +84574,12 @@ $root.waproto = (function() {
|
|
|
84476
84574
|
set: $util.oneOfSetter($oneOfFields)
|
|
84477
84575
|
});
|
|
84478
84576
|
|
|
84577
|
+
// Virtual OneOf for proto3 optional field
|
|
84578
|
+
$Object.defineProperty(BusinessBroadcast.prototype, "_proCompanionSupportEnabled", {
|
|
84579
|
+
get: $util.oneOfGetter($oneOfFields = ["proCompanionSupportEnabled"]),
|
|
84580
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
84581
|
+
});
|
|
84582
|
+
|
|
84479
84583
|
/**
|
|
84480
84584
|
* Creates a new BusinessBroadcast instance using the specified properties.
|
|
84481
84585
|
* @function create
|
|
@@ -84518,6 +84622,8 @@ $root.waproto = (function() {
|
|
|
84518
84622
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.insightsSyncEnabled);
|
|
84519
84623
|
if (message.recipientLimit != null && $Object.hasOwnProperty.call(message, "recipientLimit"))
|
|
84520
84624
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.recipientLimit);
|
|
84625
|
+
if (message.proCompanionSupportEnabled != null && $Object.hasOwnProperty.call(message, "proCompanionSupportEnabled"))
|
|
84626
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.proCompanionSupportEnabled);
|
|
84521
84627
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
84522
84628
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
84523
84629
|
writer.raw(message.$unknowns[i]);
|
|
@@ -84610,6 +84716,13 @@ $root.waproto = (function() {
|
|
|
84610
84716
|
message._recipientLimit = "recipientLimit";
|
|
84611
84717
|
continue;
|
|
84612
84718
|
}
|
|
84719
|
+
case 6: {
|
|
84720
|
+
if (wireType !== 0)
|
|
84721
|
+
break;
|
|
84722
|
+
message.proCompanionSupportEnabled = reader.bool();
|
|
84723
|
+
message._proCompanionSupportEnabled = "proCompanionSupportEnabled";
|
|
84724
|
+
continue;
|
|
84725
|
+
}
|
|
84613
84726
|
}
|
|
84614
84727
|
reader.skipType(wireType, _depth, tag);
|
|
84615
84728
|
if (!reader.discardUnknown) {
|
|
@@ -84684,6 +84797,11 @@ $root.waproto = (function() {
|
|
|
84684
84797
|
if (!$util.isInteger(message.recipientLimit))
|
|
84685
84798
|
return "recipientLimit: integer expected";
|
|
84686
84799
|
}
|
|
84800
|
+
if (message.proCompanionSupportEnabled != null && $Object.hasOwnProperty.call(message, "proCompanionSupportEnabled")) {
|
|
84801
|
+
properties._proCompanionSupportEnabled = 1;
|
|
84802
|
+
if (typeof message.proCompanionSupportEnabled !== "boolean")
|
|
84803
|
+
return "proCompanionSupportEnabled: boolean expected";
|
|
84804
|
+
}
|
|
84687
84805
|
return null;
|
|
84688
84806
|
};
|
|
84689
84807
|
|
|
@@ -84715,6 +84833,8 @@ $root.waproto = (function() {
|
|
|
84715
84833
|
message.insightsSyncEnabled = $Boolean(object.insightsSyncEnabled);
|
|
84716
84834
|
if (object.recipientLimit != null)
|
|
84717
84835
|
message.recipientLimit = object.recipientLimit | 0;
|
|
84836
|
+
if (object.proCompanionSupportEnabled != null)
|
|
84837
|
+
message.proCompanionSupportEnabled = $Boolean(object.proCompanionSupportEnabled);
|
|
84718
84838
|
return message;
|
|
84719
84839
|
};
|
|
84720
84840
|
|
|
@@ -84745,6 +84865,8 @@ $root.waproto = (function() {
|
|
|
84745
84865
|
object.insightsSyncEnabled = message.insightsSyncEnabled;
|
|
84746
84866
|
if (message.recipientLimit != null && $Object.hasOwnProperty.call(message, "recipientLimit"))
|
|
84747
84867
|
object.recipientLimit = message.recipientLimit;
|
|
84868
|
+
if (message.proCompanionSupportEnabled != null && $Object.hasOwnProperty.call(message, "proCompanionSupportEnabled"))
|
|
84869
|
+
object.proCompanionSupportEnabled = message.proCompanionSupportEnabled;
|
|
84748
84870
|
return object;
|
|
84749
84871
|
};
|
|
84750
84872
|
|
|
@@ -198188,6 +198310,7 @@ $root.waproto = (function() {
|
|
|
198188
198310
|
* @property {number|Long|null} [motionPhotoPresentationOffsetMs] VideoMessage motionPhotoPresentationOffsetMs
|
|
198189
198311
|
* @property {string|null} [metadataUrl] VideoMessage metadataUrl
|
|
198190
198312
|
* @property {waproto.Message.VideoMessage.VideoSourceType|null} [videoSourceType] VideoMessage videoSourceType
|
|
198313
|
+
* @property {string|null} [dashManifestUrl] VideoMessage dashManifestUrl
|
|
198191
198314
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
198192
198315
|
*/
|
|
198193
198316
|
|
|
@@ -198232,6 +198355,7 @@ $root.waproto = (function() {
|
|
|
198232
198355
|
* motionPhotoPresentationOffsetMs?: number|Long|null;
|
|
198233
198356
|
* metadataUrl?: string|null;
|
|
198234
198357
|
* videoSourceType?: waproto.Message.VideoMessage.VideoSourceType|null;
|
|
198358
|
+
* dashManifestUrl?: string|null;
|
|
198235
198359
|
* $unknowns?: Array.<Uint8Array>;
|
|
198236
198360
|
* }} waproto.Message.VideoMessage.$Shape
|
|
198237
198361
|
*/
|
|
@@ -198494,6 +198618,14 @@ $root.waproto = (function() {
|
|
|
198494
198618
|
*/
|
|
198495
198619
|
VideoMessage.prototype.videoSourceType = null;
|
|
198496
198620
|
|
|
198621
|
+
/**
|
|
198622
|
+
* VideoMessage dashManifestUrl.
|
|
198623
|
+
* @member {string|null|undefined} dashManifestUrl
|
|
198624
|
+
* @memberof waproto.Message.VideoMessage
|
|
198625
|
+
* @instance
|
|
198626
|
+
*/
|
|
198627
|
+
VideoMessage.prototype.dashManifestUrl = null;
|
|
198628
|
+
|
|
198497
198629
|
// OneOf field names bound to virtual getters and setters
|
|
198498
198630
|
var $oneOfFields;
|
|
198499
198631
|
|
|
@@ -198659,6 +198791,12 @@ $root.waproto = (function() {
|
|
|
198659
198791
|
set: $util.oneOfSetter($oneOfFields)
|
|
198660
198792
|
});
|
|
198661
198793
|
|
|
198794
|
+
// Virtual OneOf for proto3 optional field
|
|
198795
|
+
$Object.defineProperty(VideoMessage.prototype, "_dashManifestUrl", {
|
|
198796
|
+
get: $util.oneOfGetter($oneOfFields = ["dashManifestUrl"]),
|
|
198797
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198798
|
+
});
|
|
198799
|
+
|
|
198662
198800
|
/**
|
|
198663
198801
|
* Creates a new VideoMessage instance using the specified properties.
|
|
198664
198802
|
* @function create
|
|
@@ -198754,6 +198892,8 @@ $root.waproto = (function() {
|
|
|
198754
198892
|
writer.uint32(/* id 30, wireType 2 =*/242).string(message.metadataUrl);
|
|
198755
198893
|
if (message.videoSourceType != null && $Object.hasOwnProperty.call(message, "videoSourceType"))
|
|
198756
198894
|
writer.uint32(/* id 31, wireType 0 =*/248).int32(message.videoSourceType);
|
|
198895
|
+
if (message.dashManifestUrl != null && $Object.hasOwnProperty.call(message, "dashManifestUrl"))
|
|
198896
|
+
writer.uint32(/* id 33, wireType 2 =*/266).string(message.dashManifestUrl);
|
|
198757
198897
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
198758
198898
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
198759
198899
|
writer.raw(message.$unknowns[i]);
|
|
@@ -199024,6 +199164,13 @@ $root.waproto = (function() {
|
|
|
199024
199164
|
message._videoSourceType = "videoSourceType";
|
|
199025
199165
|
continue;
|
|
199026
199166
|
}
|
|
199167
|
+
case 33: {
|
|
199168
|
+
if (wireType !== 2)
|
|
199169
|
+
break;
|
|
199170
|
+
message.dashManifestUrl = reader.stringVerify();
|
|
199171
|
+
message._dashManifestUrl = "dashManifestUrl";
|
|
199172
|
+
continue;
|
|
199173
|
+
}
|
|
199027
199174
|
}
|
|
199028
199175
|
reader.skipType(wireType, _depth, tag);
|
|
199029
199176
|
if (!reader.discardUnknown) {
|
|
@@ -199238,6 +199385,11 @@ $root.waproto = (function() {
|
|
|
199238
199385
|
if (typeof message.videoSourceType !== "number" || (message.videoSourceType | 0) !== message.videoSourceType)
|
|
199239
199386
|
return "videoSourceType: enum value expected";
|
|
199240
199387
|
}
|
|
199388
|
+
if (message.dashManifestUrl != null && $Object.hasOwnProperty.call(message, "dashManifestUrl")) {
|
|
199389
|
+
properties._dashManifestUrl = 1;
|
|
199390
|
+
if (!$util.isString(message.dashManifestUrl))
|
|
199391
|
+
return "dashManifestUrl: string expected";
|
|
199392
|
+
}
|
|
199241
199393
|
return null;
|
|
199242
199394
|
};
|
|
199243
199395
|
|
|
@@ -199418,6 +199570,8 @@ $root.waproto = (function() {
|
|
|
199418
199570
|
if (typeof object.videoSourceType === "number" && (object.videoSourceType | 0) === object.videoSourceType)
|
|
199419
199571
|
message.videoSourceType = object.videoSourceType;
|
|
199420
199572
|
}
|
|
199573
|
+
if (object.dashManifestUrl != null)
|
|
199574
|
+
message.dashManifestUrl = $String(object.dashManifestUrl);
|
|
199421
199575
|
return message;
|
|
199422
199576
|
};
|
|
199423
199577
|
|
|
@@ -199527,6 +199681,8 @@ $root.waproto = (function() {
|
|
|
199527
199681
|
object.metadataUrl = message.metadataUrl;
|
|
199528
199682
|
if (message.videoSourceType != null && $Object.hasOwnProperty.call(message, "videoSourceType"))
|
|
199529
199683
|
object.videoSourceType = options.enums === $String ? $root.waproto.Message.VideoMessage.VideoSourceType[message.videoSourceType] === $undefined ? message.videoSourceType : $root.waproto.Message.VideoMessage.VideoSourceType[message.videoSourceType] : message.videoSourceType;
|
|
199684
|
+
if (message.dashManifestUrl != null && $Object.hasOwnProperty.call(message, "dashManifestUrl"))
|
|
199685
|
+
object.dashManifestUrl = message.dashManifestUrl;
|
|
199530
199686
|
return object;
|
|
199531
199687
|
};
|
|
199532
199688
|
|