@wppconnect/wa-proto 2.3000.1045618570 → 2.3000.1045631763
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 +127 -0
- package/dist/index.js +309 -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.1045631763
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -5750,6 +5750,7 @@ enum MutationProps {
|
|
|
5750
5750
|
CTWA_MESSAGE_RECEIVED_ACTION = 93;
|
|
5751
5751
|
SHARED_DEVICE_ALLOWLIST_ACTION = 94;
|
|
5752
5752
|
CONTACT_MANAGER_METADATA_ACTION = 95;
|
|
5753
|
+
BUSINESS_FOLDER_ACTIVATION_ACTION = 96;
|
|
5753
5754
|
SHARE_OWN_PN = 10001;
|
|
5754
5755
|
BUSINESS_BROADCAST_ACTION = 10002;
|
|
5755
5756
|
AI_THREAD_DELETE_ACTION = 10003;
|
|
@@ -6526,6 +6527,7 @@ message SyncActionValue {
|
|
|
6526
6527
|
optional CtwaMessageReceivedAction ctwaMessageReceivedAction = 93;
|
|
6527
6528
|
optional SharedDeviceAllowlistAction sharedDeviceAllowlistAction = 94;
|
|
6528
6529
|
optional ContactManagerMetadataAction contactManagerMetadataAction = 95;
|
|
6530
|
+
optional BusinessFolderActivationAction businessFolderActivationAction = 96;
|
|
6529
6531
|
message AgentAction {
|
|
6530
6532
|
optional string name = 1;
|
|
6531
6533
|
optional int32 deviceId = 2;
|
|
@@ -6627,6 +6629,10 @@ message SyncActionValue {
|
|
|
6627
6629
|
optional string customAudienceFbid = 6;
|
|
6628
6630
|
}
|
|
6629
6631
|
|
|
6632
|
+
message BusinessFolderActivationAction {
|
|
6633
|
+
optional bool activated = 1;
|
|
6634
|
+
}
|
|
6635
|
+
|
|
6630
6636
|
message CallLogAction {
|
|
6631
6637
|
optional CallLogRecord callLogRecord = 1;
|
|
6632
6638
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -81720,6 +81720,9 @@ export namespace waproto {
|
|
|
81720
81720
|
/** CONTACT_MANAGER_METADATA_ACTION value */
|
|
81721
81721
|
CONTACT_MANAGER_METADATA_ACTION = 95,
|
|
81722
81722
|
|
|
81723
|
+
/** BUSINESS_FOLDER_ACTIVATION_ACTION value */
|
|
81724
|
+
BUSINESS_FOLDER_ACTIVATION_ACTION = 96,
|
|
81725
|
+
|
|
81723
81726
|
/** SHARE_OWN_PN value */
|
|
81724
81727
|
SHARE_OWN_PN = 10001,
|
|
81725
81728
|
|
|
@@ -92685,6 +92688,9 @@ export namespace waproto {
|
|
|
92685
92688
|
/** SyncActionValue contactManagerMetadataAction. */
|
|
92686
92689
|
contactManagerMetadataAction?: (waproto.SyncActionValue.ContactManagerMetadataAction.$Properties|null);
|
|
92687
92690
|
|
|
92691
|
+
/** SyncActionValue businessFolderActivationAction. */
|
|
92692
|
+
businessFolderActivationAction?: (waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null);
|
|
92693
|
+
|
|
92688
92694
|
/**
|
|
92689
92695
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
92690
92696
|
* @param [properties] Properties to set
|
|
@@ -93027,6 +93033,9 @@ export namespace waproto {
|
|
|
93027
93033
|
/** SyncActionValue contactManagerMetadataAction */
|
|
93028
93034
|
contactManagerMetadataAction?: (waproto.SyncActionValue.ContactManagerMetadataAction.$Properties|null);
|
|
93029
93035
|
|
|
93036
|
+
/** SyncActionValue businessFolderActivationAction */
|
|
93037
|
+
businessFolderActivationAction?: (waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null);
|
|
93038
|
+
|
|
93030
93039
|
/** Unknown fields preserved while decoding when enabled */
|
|
93031
93040
|
$unknowns?: Uint8Array[];
|
|
93032
93041
|
}
|
|
@@ -93119,6 +93128,7 @@ export namespace waproto {
|
|
|
93119
93128
|
ctwaMessageReceivedAction?: waproto.SyncActionValue.CtwaMessageReceivedAction.$Shape|null;
|
|
93120
93129
|
sharedDeviceAllowlistAction?: waproto.SyncActionValue.SharedDeviceAllowlistAction.$Shape|null;
|
|
93121
93130
|
contactManagerMetadataAction?: waproto.SyncActionValue.ContactManagerMetadataAction.$Shape|null;
|
|
93131
|
+
businessFolderActivationAction?: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape|null;
|
|
93122
93132
|
$unknowns?: Uint8Array[];
|
|
93123
93133
|
};
|
|
93124
93134
|
|
|
@@ -94961,6 +94971,123 @@ export namespace waproto {
|
|
|
94961
94971
|
type $Shape = waproto.SyncActionValue.BusinessBroadcastListAction.$Properties;
|
|
94962
94972
|
}
|
|
94963
94973
|
|
|
94974
|
+
/**
|
|
94975
|
+
* Properties of a BusinessFolderActivationAction.
|
|
94976
|
+
* @deprecated Use waproto.SyncActionValue.BusinessFolderActivationAction.$Properties instead.
|
|
94977
|
+
*/
|
|
94978
|
+
interface IBusinessFolderActivationAction extends waproto.SyncActionValue.BusinessFolderActivationAction.$Properties {
|
|
94979
|
+
}
|
|
94980
|
+
|
|
94981
|
+
/** Represents a BusinessFolderActivationAction. */
|
|
94982
|
+
class BusinessFolderActivationAction {
|
|
94983
|
+
|
|
94984
|
+
/**
|
|
94985
|
+
* Constructs a new BusinessFolderActivationAction.
|
|
94986
|
+
* @param [properties] Properties to set
|
|
94987
|
+
*/
|
|
94988
|
+
constructor(properties?: waproto.SyncActionValue.BusinessFolderActivationAction.$Properties);
|
|
94989
|
+
|
|
94990
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
94991
|
+
$unknowns?: Uint8Array[];
|
|
94992
|
+
|
|
94993
|
+
/** BusinessFolderActivationAction activated. */
|
|
94994
|
+
activated?: (boolean|null);
|
|
94995
|
+
|
|
94996
|
+
/**
|
|
94997
|
+
* Creates a new BusinessFolderActivationAction instance using the specified properties.
|
|
94998
|
+
* @param [properties] Properties to set
|
|
94999
|
+
* @returns BusinessFolderActivationAction instance
|
|
95000
|
+
*/
|
|
95001
|
+
static create(properties: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape): waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape;
|
|
95002
|
+
static create(properties?: waproto.SyncActionValue.BusinessFolderActivationAction.$Properties): waproto.SyncActionValue.BusinessFolderActivationAction;
|
|
95003
|
+
|
|
95004
|
+
/**
|
|
95005
|
+
* Encodes the specified BusinessFolderActivationAction message. Does not implicitly {@link waproto.SyncActionValue.BusinessFolderActivationAction.verify|verify} messages.
|
|
95006
|
+
* @param message BusinessFolderActivationAction message or plain object to encode
|
|
95007
|
+
* @param [writer] Writer to encode to
|
|
95008
|
+
* @returns Writer
|
|
95009
|
+
*/
|
|
95010
|
+
static encode(message: waproto.SyncActionValue.BusinessFolderActivationAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95011
|
+
|
|
95012
|
+
/**
|
|
95013
|
+
* Encodes the specified BusinessFolderActivationAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.BusinessFolderActivationAction.verify|verify} messages.
|
|
95014
|
+
* @param message BusinessFolderActivationAction message or plain object to encode
|
|
95015
|
+
* @param [writer] Writer to encode to
|
|
95016
|
+
* @returns Writer
|
|
95017
|
+
*/
|
|
95018
|
+
static encodeDelimited(message: waproto.SyncActionValue.BusinessFolderActivationAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95019
|
+
|
|
95020
|
+
/**
|
|
95021
|
+
* Decodes a BusinessFolderActivationAction message from the specified reader or buffer.
|
|
95022
|
+
* @param reader Reader or buffer to decode from
|
|
95023
|
+
* @param [length] Message length if known beforehand
|
|
95024
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape} BusinessFolderActivationAction
|
|
95025
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95026
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95027
|
+
*/
|
|
95028
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape;
|
|
95029
|
+
|
|
95030
|
+
/**
|
|
95031
|
+
* Decodes a BusinessFolderActivationAction message from the specified reader or buffer, length delimited.
|
|
95032
|
+
* @param reader Reader or buffer to decode from
|
|
95033
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape} BusinessFolderActivationAction
|
|
95034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95036
|
+
*/
|
|
95037
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape;
|
|
95038
|
+
|
|
95039
|
+
/**
|
|
95040
|
+
* Verifies a BusinessFolderActivationAction message.
|
|
95041
|
+
* @param message Plain object to verify
|
|
95042
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
95043
|
+
*/
|
|
95044
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
95045
|
+
|
|
95046
|
+
/**
|
|
95047
|
+
* Creates a BusinessFolderActivationAction message from a plain object. Also converts values to their respective internal types.
|
|
95048
|
+
* @param object Plain object
|
|
95049
|
+
* @returns BusinessFolderActivationAction
|
|
95050
|
+
*/
|
|
95051
|
+
static fromObject(object: { [k: string]: any }): waproto.SyncActionValue.BusinessFolderActivationAction;
|
|
95052
|
+
|
|
95053
|
+
/**
|
|
95054
|
+
* Creates a plain object from a BusinessFolderActivationAction message. Also converts values to other types if specified.
|
|
95055
|
+
* @param message BusinessFolderActivationAction
|
|
95056
|
+
* @param [options] Conversion options
|
|
95057
|
+
* @returns Plain object
|
|
95058
|
+
*/
|
|
95059
|
+
static toObject(message: waproto.SyncActionValue.BusinessFolderActivationAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
95060
|
+
|
|
95061
|
+
/**
|
|
95062
|
+
* Converts this BusinessFolderActivationAction to JSON.
|
|
95063
|
+
* @returns JSON object
|
|
95064
|
+
*/
|
|
95065
|
+
toJSON(): { [k: string]: any };
|
|
95066
|
+
|
|
95067
|
+
/**
|
|
95068
|
+
* Gets the type url for BusinessFolderActivationAction
|
|
95069
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
95070
|
+
* @returns The type url
|
|
95071
|
+
*/
|
|
95072
|
+
static getTypeUrl(prefix?: string): string;
|
|
95073
|
+
}
|
|
95074
|
+
|
|
95075
|
+
namespace BusinessFolderActivationAction {
|
|
95076
|
+
|
|
95077
|
+
/** Properties of a BusinessFolderActivationAction. */
|
|
95078
|
+
interface $Properties {
|
|
95079
|
+
|
|
95080
|
+
/** BusinessFolderActivationAction activated */
|
|
95081
|
+
activated?: (boolean|null);
|
|
95082
|
+
|
|
95083
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
95084
|
+
$unknowns?: Uint8Array[];
|
|
95085
|
+
}
|
|
95086
|
+
|
|
95087
|
+
/** Shape of a BusinessFolderActivationAction. */
|
|
95088
|
+
type $Shape = waproto.SyncActionValue.BusinessFolderActivationAction.$Properties;
|
|
95089
|
+
}
|
|
95090
|
+
|
|
94964
95091
|
/**
|
|
94965
95092
|
* Properties of a CallLogAction.
|
|
94966
95093
|
* @deprecated Use waproto.SyncActionValue.CallLogAction.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -233087,6 +233087,7 @@ $root.waproto = (function() {
|
|
|
233087
233087
|
* @property {number} CTWA_MESSAGE_RECEIVED_ACTION=93 CTWA_MESSAGE_RECEIVED_ACTION value
|
|
233088
233088
|
* @property {number} SHARED_DEVICE_ALLOWLIST_ACTION=94 SHARED_DEVICE_ALLOWLIST_ACTION value
|
|
233089
233089
|
* @property {number} CONTACT_MANAGER_METADATA_ACTION=95 CONTACT_MANAGER_METADATA_ACTION value
|
|
233090
|
+
* @property {number} BUSINESS_FOLDER_ACTIVATION_ACTION=96 BUSINESS_FOLDER_ACTIVATION_ACTION value
|
|
233090
233091
|
* @property {number} SHARE_OWN_PN=10001 SHARE_OWN_PN value
|
|
233091
233092
|
* @property {number} BUSINESS_BROADCAST_ACTION=10002 BUSINESS_BROADCAST_ACTION value
|
|
233092
233093
|
* @property {number} AI_THREAD_DELETE_ACTION=10003 AI_THREAD_DELETE_ACTION value
|
|
@@ -233182,6 +233183,7 @@ $root.waproto = (function() {
|
|
|
233182
233183
|
values[valuesById[93] = "CTWA_MESSAGE_RECEIVED_ACTION"] = 93;
|
|
233183
233184
|
values[valuesById[94] = "SHARED_DEVICE_ALLOWLIST_ACTION"] = 94;
|
|
233184
233185
|
values[valuesById[95] = "CONTACT_MANAGER_METADATA_ACTION"] = 95;
|
|
233186
|
+
values[valuesById[96] = "BUSINESS_FOLDER_ACTIVATION_ACTION"] = 96;
|
|
233185
233187
|
values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
|
|
233186
233188
|
values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
|
|
233187
233189
|
values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
|
|
@@ -262620,6 +262622,7 @@ $root.waproto = (function() {
|
|
|
262620
262622
|
* @property {waproto.SyncActionValue.CtwaMessageReceivedAction.$Properties|null} [ctwaMessageReceivedAction] SyncActionValue ctwaMessageReceivedAction
|
|
262621
262623
|
* @property {waproto.SyncActionValue.SharedDeviceAllowlistAction.$Properties|null} [sharedDeviceAllowlistAction] SyncActionValue sharedDeviceAllowlistAction
|
|
262622
262624
|
* @property {waproto.SyncActionValue.ContactManagerMetadataAction.$Properties|null} [contactManagerMetadataAction] SyncActionValue contactManagerMetadataAction
|
|
262625
|
+
* @property {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null} [businessFolderActivationAction] SyncActionValue businessFolderActivationAction
|
|
262623
262626
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
262624
262627
|
*/
|
|
262625
262628
|
|
|
@@ -262720,6 +262723,7 @@ $root.waproto = (function() {
|
|
|
262720
262723
|
* ctwaMessageReceivedAction?: waproto.SyncActionValue.CtwaMessageReceivedAction.$Shape|null;
|
|
262721
262724
|
* sharedDeviceAllowlistAction?: waproto.SyncActionValue.SharedDeviceAllowlistAction.$Shape|null;
|
|
262722
262725
|
* contactManagerMetadataAction?: waproto.SyncActionValue.ContactManagerMetadataAction.$Shape|null;
|
|
262726
|
+
* businessFolderActivationAction?: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape|null;
|
|
262723
262727
|
* $unknowns?: Array.<Uint8Array>;
|
|
262724
262728
|
* }} waproto.SyncActionValue.$Shape
|
|
262725
262729
|
*/
|
|
@@ -263427,6 +263431,14 @@ $root.waproto = (function() {
|
|
|
263427
263431
|
*/
|
|
263428
263432
|
SyncActionValue.prototype.contactManagerMetadataAction = null;
|
|
263429
263433
|
|
|
263434
|
+
/**
|
|
263435
|
+
* SyncActionValue businessFolderActivationAction.
|
|
263436
|
+
* @member {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties|null|undefined} businessFolderActivationAction
|
|
263437
|
+
* @memberof waproto.SyncActionValue
|
|
263438
|
+
* @instance
|
|
263439
|
+
*/
|
|
263440
|
+
SyncActionValue.prototype.businessFolderActivationAction = null;
|
|
263441
|
+
|
|
263430
263442
|
// OneOf field names bound to virtual getters and setters
|
|
263431
263443
|
var $oneOfFields;
|
|
263432
263444
|
|
|
@@ -263946,6 +263958,12 @@ $root.waproto = (function() {
|
|
|
263946
263958
|
set: $util.oneOfSetter($oneOfFields)
|
|
263947
263959
|
});
|
|
263948
263960
|
|
|
263961
|
+
// Virtual OneOf for proto3 optional field
|
|
263962
|
+
$Object.defineProperty(SyncActionValue.prototype, "_businessFolderActivationAction", {
|
|
263963
|
+
get: $util.oneOfGetter($oneOfFields = ["businessFolderActivationAction"]),
|
|
263964
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
263965
|
+
});
|
|
263966
|
+
|
|
263949
263967
|
/**
|
|
263950
263968
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
263951
263969
|
* @function create
|
|
@@ -264150,6 +264168,8 @@ $root.waproto = (function() {
|
|
|
264150
264168
|
$root.waproto.SyncActionValue.SharedDeviceAllowlistAction.encode(message.sharedDeviceAllowlistAction, writer.uint32(/* id 94, wireType 2 =*/754).fork(), _depth + 1).ldelim();
|
|
264151
264169
|
if (message.contactManagerMetadataAction != null && $Object.hasOwnProperty.call(message, "contactManagerMetadataAction"))
|
|
264152
264170
|
$root.waproto.SyncActionValue.ContactManagerMetadataAction.encode(message.contactManagerMetadataAction, writer.uint32(/* id 95, wireType 2 =*/762).fork(), _depth + 1).ldelim();
|
|
264171
|
+
if (message.businessFolderActivationAction != null && $Object.hasOwnProperty.call(message, "businessFolderActivationAction"))
|
|
264172
|
+
$root.waproto.SyncActionValue.BusinessFolderActivationAction.encode(message.businessFolderActivationAction, writer.uint32(/* id 96, wireType 2 =*/770).fork(), _depth + 1).ldelim();
|
|
264153
264173
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
264154
264174
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
264155
264175
|
writer.raw(message.$unknowns[i]);
|
|
@@ -264799,6 +264819,13 @@ $root.waproto = (function() {
|
|
|
264799
264819
|
message._contactManagerMetadataAction = "contactManagerMetadataAction";
|
|
264800
264820
|
continue;
|
|
264801
264821
|
}
|
|
264822
|
+
case 96: {
|
|
264823
|
+
if (wireType !== 2)
|
|
264824
|
+
break;
|
|
264825
|
+
message.businessFolderActivationAction = $root.waproto.SyncActionValue.BusinessFolderActivationAction.decode(reader, reader.uint32(), $undefined, _depth + 1, message.businessFolderActivationAction);
|
|
264826
|
+
message._businessFolderActivationAction = "businessFolderActivationAction";
|
|
264827
|
+
continue;
|
|
264828
|
+
}
|
|
264802
264829
|
}
|
|
264803
264830
|
reader.skipType(wireType, _depth, tag);
|
|
264804
264831
|
if (!reader.discardUnknown) {
|
|
@@ -265528,6 +265555,14 @@ $root.waproto = (function() {
|
|
|
265528
265555
|
return "contactManagerMetadataAction." + error;
|
|
265529
265556
|
}
|
|
265530
265557
|
}
|
|
265558
|
+
if (message.businessFolderActivationAction != null && $Object.hasOwnProperty.call(message, "businessFolderActivationAction")) {
|
|
265559
|
+
properties._businessFolderActivationAction = 1;
|
|
265560
|
+
{
|
|
265561
|
+
var error = $root.waproto.SyncActionValue.BusinessFolderActivationAction.verify(message.businessFolderActivationAction, _depth + 1);
|
|
265562
|
+
if (error)
|
|
265563
|
+
return "businessFolderActivationAction." + error;
|
|
265564
|
+
}
|
|
265565
|
+
}
|
|
265531
265566
|
return null;
|
|
265532
265567
|
};
|
|
265533
265568
|
|
|
@@ -265983,6 +266018,11 @@ $root.waproto = (function() {
|
|
|
265983
266018
|
throw $TypeError(".waproto.SyncActionValue.contactManagerMetadataAction: object expected");
|
|
265984
266019
|
message.contactManagerMetadataAction = $root.waproto.SyncActionValue.ContactManagerMetadataAction.fromObject(object.contactManagerMetadataAction, _depth + 1);
|
|
265985
266020
|
}
|
|
266021
|
+
if (object.businessFolderActivationAction != null) {
|
|
266022
|
+
if (!$util.isObject(object.businessFolderActivationAction))
|
|
266023
|
+
throw $TypeError(".waproto.SyncActionValue.businessFolderActivationAction: object expected");
|
|
266024
|
+
message.businessFolderActivationAction = $root.waproto.SyncActionValue.BusinessFolderActivationAction.fromObject(object.businessFolderActivationAction, _depth + 1);
|
|
266025
|
+
}
|
|
265986
266026
|
return message;
|
|
265987
266027
|
};
|
|
265988
266028
|
|
|
@@ -266180,6 +266220,8 @@ $root.waproto = (function() {
|
|
|
266180
266220
|
object.sharedDeviceAllowlistAction = $root.waproto.SyncActionValue.SharedDeviceAllowlistAction.toObject(message.sharedDeviceAllowlistAction, options, _depth + 1);
|
|
266181
266221
|
if (message.contactManagerMetadataAction != null && $Object.hasOwnProperty.call(message, "contactManagerMetadataAction"))
|
|
266182
266222
|
object.contactManagerMetadataAction = $root.waproto.SyncActionValue.ContactManagerMetadataAction.toObject(message.contactManagerMetadataAction, options, _depth + 1);
|
|
266223
|
+
if (message.businessFolderActivationAction != null && $Object.hasOwnProperty.call(message, "businessFolderActivationAction"))
|
|
266224
|
+
object.businessFolderActivationAction = $root.waproto.SyncActionValue.BusinessFolderActivationAction.toObject(message.businessFolderActivationAction, options, _depth + 1);
|
|
266183
266225
|
return object;
|
|
266184
266226
|
};
|
|
266185
266227
|
|
|
@@ -270951,6 +270993,273 @@ $root.waproto = (function() {
|
|
|
270951
270993
|
return BusinessBroadcastListAction;
|
|
270952
270994
|
})();
|
|
270953
270995
|
|
|
270996
|
+
SyncActionValue.BusinessFolderActivationAction = (function() {
|
|
270997
|
+
|
|
270998
|
+
/**
|
|
270999
|
+
* Properties of a BusinessFolderActivationAction.
|
|
271000
|
+
* @typedef {Object} waproto.SyncActionValue.BusinessFolderActivationAction.$Properties
|
|
271001
|
+
* @property {boolean|null} [activated] BusinessFolderActivationAction activated
|
|
271002
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
271003
|
+
*/
|
|
271004
|
+
|
|
271005
|
+
/**
|
|
271006
|
+
* Properties of a BusinessFolderActivationAction.
|
|
271007
|
+
* @memberof waproto.SyncActionValue
|
|
271008
|
+
* @interface IBusinessFolderActivationAction
|
|
271009
|
+
* @augments waproto.SyncActionValue.BusinessFolderActivationAction.$Properties
|
|
271010
|
+
* @deprecated Use waproto.SyncActionValue.BusinessFolderActivationAction.$Properties instead.
|
|
271011
|
+
*/
|
|
271012
|
+
|
|
271013
|
+
/**
|
|
271014
|
+
* Shape of a BusinessFolderActivationAction.
|
|
271015
|
+
* @typedef {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties} waproto.SyncActionValue.BusinessFolderActivationAction.$Shape
|
|
271016
|
+
*/
|
|
271017
|
+
|
|
271018
|
+
/**
|
|
271019
|
+
* Constructs a new BusinessFolderActivationAction.
|
|
271020
|
+
* @memberof waproto.SyncActionValue
|
|
271021
|
+
* @classdesc Represents a BusinessFolderActivationAction.
|
|
271022
|
+
* @constructor
|
|
271023
|
+
* @param {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties=} [properties] Properties to set
|
|
271024
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
271025
|
+
*/
|
|
271026
|
+
var BusinessFolderActivationAction = function (properties) {
|
|
271027
|
+
if (properties)
|
|
271028
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
271029
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
271030
|
+
this[keys[i]] = properties[keys[i]];
|
|
271031
|
+
};
|
|
271032
|
+
|
|
271033
|
+
/**
|
|
271034
|
+
* BusinessFolderActivationAction activated.
|
|
271035
|
+
* @member {boolean|null|undefined} activated
|
|
271036
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271037
|
+
* @instance
|
|
271038
|
+
*/
|
|
271039
|
+
BusinessFolderActivationAction.prototype.activated = null;
|
|
271040
|
+
|
|
271041
|
+
// OneOf field names bound to virtual getters and setters
|
|
271042
|
+
var $oneOfFields;
|
|
271043
|
+
|
|
271044
|
+
// Virtual OneOf for proto3 optional field
|
|
271045
|
+
$Object.defineProperty(BusinessFolderActivationAction.prototype, "_activated", {
|
|
271046
|
+
get: $util.oneOfGetter($oneOfFields = ["activated"]),
|
|
271047
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
271048
|
+
});
|
|
271049
|
+
|
|
271050
|
+
/**
|
|
271051
|
+
* Creates a new BusinessFolderActivationAction instance using the specified properties.
|
|
271052
|
+
* @function create
|
|
271053
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271054
|
+
* @static
|
|
271055
|
+
* @param {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties=} [properties] Properties to set
|
|
271056
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction} BusinessFolderActivationAction instance
|
|
271057
|
+
* @type {{
|
|
271058
|
+
* (properties: waproto.SyncActionValue.BusinessFolderActivationAction.$Shape): waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape;
|
|
271059
|
+
* (properties?: waproto.SyncActionValue.BusinessFolderActivationAction.$Properties): waproto.SyncActionValue.BusinessFolderActivationAction;
|
|
271060
|
+
* }}
|
|
271061
|
+
*/
|
|
271062
|
+
BusinessFolderActivationAction.create = function(properties) {
|
|
271063
|
+
return new BusinessFolderActivationAction(properties);
|
|
271064
|
+
};
|
|
271065
|
+
|
|
271066
|
+
/**
|
|
271067
|
+
* Encodes the specified BusinessFolderActivationAction message. Does not implicitly {@link waproto.SyncActionValue.BusinessFolderActivationAction.verify|verify} messages.
|
|
271068
|
+
* @function encode
|
|
271069
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271070
|
+
* @static
|
|
271071
|
+
* @param {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties} message BusinessFolderActivationAction message or plain object to encode
|
|
271072
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
271073
|
+
* @returns {$protobuf.Writer} Writer
|
|
271074
|
+
*/
|
|
271075
|
+
BusinessFolderActivationAction.encode = function (message, writer, _depth) {
|
|
271076
|
+
if (!writer)
|
|
271077
|
+
writer = $Writer.create();
|
|
271078
|
+
if (_depth === $undefined)
|
|
271079
|
+
_depth = 0;
|
|
271080
|
+
if (_depth > $util.recursionLimit)
|
|
271081
|
+
throw $Error("max depth exceeded");
|
|
271082
|
+
if (message.activated != null && $Object.hasOwnProperty.call(message, "activated"))
|
|
271083
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.activated);
|
|
271084
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
271085
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
271086
|
+
writer.raw(message.$unknowns[i]);
|
|
271087
|
+
return writer;
|
|
271088
|
+
};
|
|
271089
|
+
|
|
271090
|
+
/**
|
|
271091
|
+
* Encodes the specified BusinessFolderActivationAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.BusinessFolderActivationAction.verify|verify} messages.
|
|
271092
|
+
* @function encodeDelimited
|
|
271093
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271094
|
+
* @static
|
|
271095
|
+
* @param {waproto.SyncActionValue.BusinessFolderActivationAction.$Properties} message BusinessFolderActivationAction message or plain object to encode
|
|
271096
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
271097
|
+
* @returns {$protobuf.Writer} Writer
|
|
271098
|
+
*/
|
|
271099
|
+
BusinessFolderActivationAction.encodeDelimited = function(message, writer) {
|
|
271100
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
271101
|
+
};
|
|
271102
|
+
|
|
271103
|
+
/**
|
|
271104
|
+
* Decodes a BusinessFolderActivationAction message from the specified reader or buffer.
|
|
271105
|
+
* @function decode
|
|
271106
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271107
|
+
* @static
|
|
271108
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
271109
|
+
* @param {number} [length] Message length if known beforehand
|
|
271110
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape} BusinessFolderActivationAction
|
|
271111
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
271112
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
271113
|
+
*/
|
|
271114
|
+
BusinessFolderActivationAction.decode = function (reader, length, _end, _depth, _target) {
|
|
271115
|
+
if (!(reader instanceof $Reader))
|
|
271116
|
+
reader = $Reader.create(reader);
|
|
271117
|
+
if (_depth === $undefined)
|
|
271118
|
+
_depth = 0;
|
|
271119
|
+
if (_depth > $Reader.recursionLimit)
|
|
271120
|
+
throw $Error("max depth exceeded");
|
|
271121
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.waproto.SyncActionValue.BusinessFolderActivationAction();
|
|
271122
|
+
while (reader.pos < end) {
|
|
271123
|
+
var start = reader.pos;
|
|
271124
|
+
var tag = reader.tag();
|
|
271125
|
+
if (tag === _end) {
|
|
271126
|
+
_end = $undefined;
|
|
271127
|
+
break;
|
|
271128
|
+
}
|
|
271129
|
+
var wireType = tag & 7;
|
|
271130
|
+
switch (tag >>>= 3) {
|
|
271131
|
+
case 1: {
|
|
271132
|
+
if (wireType !== 0)
|
|
271133
|
+
break;
|
|
271134
|
+
message.activated = reader.bool();
|
|
271135
|
+
message._activated = "activated";
|
|
271136
|
+
continue;
|
|
271137
|
+
}
|
|
271138
|
+
}
|
|
271139
|
+
reader.skipType(wireType, _depth, tag);
|
|
271140
|
+
if (!reader.discardUnknown) {
|
|
271141
|
+
$util.makeProp(message, "$unknowns", false);
|
|
271142
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
271143
|
+
}
|
|
271144
|
+
}
|
|
271145
|
+
if (_end !== $undefined)
|
|
271146
|
+
throw $Error("missing end group");
|
|
271147
|
+
return message;
|
|
271148
|
+
};
|
|
271149
|
+
|
|
271150
|
+
/**
|
|
271151
|
+
* Decodes a BusinessFolderActivationAction message from the specified reader or buffer, length delimited.
|
|
271152
|
+
* @function decodeDelimited
|
|
271153
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271154
|
+
* @static
|
|
271155
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
271156
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction & waproto.SyncActionValue.BusinessFolderActivationAction.$Shape} BusinessFolderActivationAction
|
|
271157
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
271158
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
271159
|
+
*/
|
|
271160
|
+
BusinessFolderActivationAction.decodeDelimited = function(reader) {
|
|
271161
|
+
if (!(reader instanceof $Reader))
|
|
271162
|
+
reader = new $Reader(reader);
|
|
271163
|
+
return this.decode(reader, reader.uint32());
|
|
271164
|
+
};
|
|
271165
|
+
|
|
271166
|
+
/**
|
|
271167
|
+
* Verifies a BusinessFolderActivationAction message.
|
|
271168
|
+
* @function verify
|
|
271169
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271170
|
+
* @static
|
|
271171
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
271172
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
271173
|
+
*/
|
|
271174
|
+
BusinessFolderActivationAction.verify = function (message, _depth) {
|
|
271175
|
+
if (typeof message !== "object" || message === null)
|
|
271176
|
+
return "object expected";
|
|
271177
|
+
if (_depth === $undefined)
|
|
271178
|
+
_depth = 0;
|
|
271179
|
+
if (_depth > $util.recursionLimit)
|
|
271180
|
+
return "max depth exceeded";
|
|
271181
|
+
var properties = {};
|
|
271182
|
+
if (message.activated != null && $Object.hasOwnProperty.call(message, "activated")) {
|
|
271183
|
+
properties._activated = 1;
|
|
271184
|
+
if (typeof message.activated !== "boolean")
|
|
271185
|
+
return "activated: boolean expected";
|
|
271186
|
+
}
|
|
271187
|
+
return null;
|
|
271188
|
+
};
|
|
271189
|
+
|
|
271190
|
+
/**
|
|
271191
|
+
* Creates a BusinessFolderActivationAction message from a plain object. Also converts values to their respective internal types.
|
|
271192
|
+
* @function fromObject
|
|
271193
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271194
|
+
* @static
|
|
271195
|
+
* @param {Object.<string,*>} object Plain object
|
|
271196
|
+
* @returns {waproto.SyncActionValue.BusinessFolderActivationAction} BusinessFolderActivationAction
|
|
271197
|
+
*/
|
|
271198
|
+
BusinessFolderActivationAction.fromObject = function (object, _depth) {
|
|
271199
|
+
if (object instanceof $root.waproto.SyncActionValue.BusinessFolderActivationAction)
|
|
271200
|
+
return object;
|
|
271201
|
+
if (!$util.isObject(object))
|
|
271202
|
+
throw $TypeError(".waproto.SyncActionValue.BusinessFolderActivationAction: object expected");
|
|
271203
|
+
if (_depth === $undefined)
|
|
271204
|
+
_depth = 0;
|
|
271205
|
+
if (_depth > $util.recursionLimit)
|
|
271206
|
+
throw $Error("max depth exceeded");
|
|
271207
|
+
var message = new $root.waproto.SyncActionValue.BusinessFolderActivationAction();
|
|
271208
|
+
if (object.activated != null)
|
|
271209
|
+
message.activated = $Boolean(object.activated);
|
|
271210
|
+
return message;
|
|
271211
|
+
};
|
|
271212
|
+
|
|
271213
|
+
/**
|
|
271214
|
+
* Creates a plain object from a BusinessFolderActivationAction message. Also converts values to other types if specified.
|
|
271215
|
+
* @function toObject
|
|
271216
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271217
|
+
* @static
|
|
271218
|
+
* @param {waproto.SyncActionValue.BusinessFolderActivationAction} message BusinessFolderActivationAction
|
|
271219
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
271220
|
+
* @returns {Object.<string,*>} Plain object
|
|
271221
|
+
*/
|
|
271222
|
+
BusinessFolderActivationAction.toObject = function (message, options, _depth) {
|
|
271223
|
+
if (!options)
|
|
271224
|
+
options = {};
|
|
271225
|
+
if (_depth === $undefined)
|
|
271226
|
+
_depth = 0;
|
|
271227
|
+
if (_depth > $util.recursionLimit)
|
|
271228
|
+
throw $Error("max depth exceeded");
|
|
271229
|
+
var object = {};
|
|
271230
|
+
if (message.activated != null && $Object.hasOwnProperty.call(message, "activated"))
|
|
271231
|
+
object.activated = message.activated;
|
|
271232
|
+
return object;
|
|
271233
|
+
};
|
|
271234
|
+
|
|
271235
|
+
/**
|
|
271236
|
+
* Converts this BusinessFolderActivationAction to JSON.
|
|
271237
|
+
* @function toJSON
|
|
271238
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271239
|
+
* @instance
|
|
271240
|
+
* @returns {Object.<string,*>} JSON object
|
|
271241
|
+
*/
|
|
271242
|
+
BusinessFolderActivationAction.prototype.toJSON = function() {
|
|
271243
|
+
return BusinessFolderActivationAction.toObject(this, $protobuf.util.toJSONOptions);
|
|
271244
|
+
};
|
|
271245
|
+
|
|
271246
|
+
/**
|
|
271247
|
+
* Gets the type url for BusinessFolderActivationAction
|
|
271248
|
+
* @function getTypeUrl
|
|
271249
|
+
* @memberof waproto.SyncActionValue.BusinessFolderActivationAction
|
|
271250
|
+
* @static
|
|
271251
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
271252
|
+
* @returns {string} The type url
|
|
271253
|
+
*/
|
|
271254
|
+
BusinessFolderActivationAction.getTypeUrl = function(prefix) {
|
|
271255
|
+
if (prefix === $undefined)
|
|
271256
|
+
prefix = "type.googleapis.com";
|
|
271257
|
+
return prefix + "/waproto.SyncActionValue.BusinessFolderActivationAction";
|
|
271258
|
+
};
|
|
271259
|
+
|
|
271260
|
+
return BusinessFolderActivationAction;
|
|
271261
|
+
})();
|
|
271262
|
+
|
|
270954
271263
|
SyncActionValue.CallLogAction = (function() {
|
|
270955
271264
|
|
|
270956
271265
|
/**
|