@wppconnect/wa-proto 2.3000.1046992358 → 2.3000.1047020237
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 +12 -1
- package/dist/index.d.ts +159 -1
- package/dist/index.js +538 -1
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1047020237
|
|
5
|
+
|
|
6
|
+
message ACP2Setting {
|
|
7
|
+
optional bool enabled = 1;
|
|
8
|
+
optional LimitSharing.TriggerType trigger = 2;
|
|
9
|
+
optional int64 settingTimestamp = 3;
|
|
10
|
+
optional bool initiatedByMe = 4;
|
|
11
|
+
}
|
|
5
12
|
|
|
6
13
|
message ADVDeviceIdentity {
|
|
7
14
|
optional uint32 rawId = 1;
|
|
@@ -2645,6 +2652,7 @@ message Message {
|
|
|
2645
2652
|
optional StatusLinkPreviewMetadata statusLinkPreviewMetadata = 130;
|
|
2646
2653
|
optional FutureProofMessage botPlatformRegistrationSuccessMessage = 131;
|
|
2647
2654
|
optional FutureProofMessage newsletterScheduledMessage = 132;
|
|
2655
|
+
optional FutureProofMessage acp2SettingMessage = 133;
|
|
2648
2656
|
message AlbumMessage {
|
|
2649
2657
|
optional uint32 expectedImageCount = 2;
|
|
2650
2658
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -4040,6 +4048,7 @@ message Message {
|
|
|
4040
4048
|
optional AIMetadataOperation aiMetadataOperation = 31;
|
|
4041
4049
|
optional Message.MarkAsVerifiedAction markAsVerifiedAction = 32;
|
|
4042
4050
|
optional CoexStateSync coexStateSync = 33;
|
|
4051
|
+
optional ACP2Setting acp2Setting = 35;
|
|
4043
4052
|
enum Type {
|
|
4044
4053
|
REVOKE = 0;
|
|
4045
4054
|
EPHEMERAL_SETTING = 3;
|
|
@@ -4073,6 +4082,7 @@ message Message {
|
|
|
4073
4082
|
AI_METADATA_OPERATION = 35;
|
|
4074
4083
|
MARK_AS_VERIFIED_ACTION = 36;
|
|
4075
4084
|
COEX_STATE_SYNC = 37;
|
|
4085
|
+
ACP2_SETTING = 39;
|
|
4076
4086
|
}
|
|
4077
4087
|
}
|
|
4078
4088
|
|
|
@@ -4489,6 +4499,7 @@ message MessageContextInfo {
|
|
|
4489
4499
|
optional NonE2EEAttestation accountEncryptionAttestation = 18;
|
|
4490
4500
|
optional bytes associatedPrimaryIdentityKey = 19;
|
|
4491
4501
|
optional string teeContextAnchorMessageId = 20;
|
|
4502
|
+
optional ACP2Setting acp2Setting = 21;
|
|
4492
4503
|
enum MessageAddonExpiryType {
|
|
4493
4504
|
STATIC = 1;
|
|
4494
4505
|
DEPENDENT_ON_PARENT = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,141 @@ import Long = require("long");
|
|
|
4
4
|
/** Namespace waproto. */
|
|
5
5
|
export namespace waproto {
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Properties of a ACP2Setting.
|
|
9
|
+
* @deprecated Use waproto.ACP2Setting.$Properties instead.
|
|
10
|
+
*/
|
|
11
|
+
interface IACP2Setting extends waproto.ACP2Setting.$Properties {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Represents a ACP2Setting. */
|
|
15
|
+
class ACP2Setting {
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a new ACP2Setting.
|
|
19
|
+
* @param [properties] Properties to set
|
|
20
|
+
*/
|
|
21
|
+
constructor(properties?: waproto.ACP2Setting.$Properties);
|
|
22
|
+
|
|
23
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
24
|
+
$unknowns?: Uint8Array[];
|
|
25
|
+
|
|
26
|
+
/** ACP2Setting enabled. */
|
|
27
|
+
enabled?: (boolean|null);
|
|
28
|
+
|
|
29
|
+
/** ACP2Setting trigger. */
|
|
30
|
+
trigger?: (waproto.LimitSharing.TriggerType|null);
|
|
31
|
+
|
|
32
|
+
/** ACP2Setting settingTimestamp. */
|
|
33
|
+
settingTimestamp?: (number|Long|null);
|
|
34
|
+
|
|
35
|
+
/** ACP2Setting initiatedByMe. */
|
|
36
|
+
initiatedByMe?: (boolean|null);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new ACP2Setting instance using the specified properties.
|
|
40
|
+
* @param [properties] Properties to set
|
|
41
|
+
* @returns ACP2Setting instance
|
|
42
|
+
*/
|
|
43
|
+
static create(properties: waproto.ACP2Setting.$Shape): waproto.ACP2Setting & waproto.ACP2Setting.$Shape;
|
|
44
|
+
static create(properties?: waproto.ACP2Setting.$Properties): waproto.ACP2Setting;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Encodes the specified ACP2Setting message. Does not implicitly {@link waproto.ACP2Setting.verify|verify} messages.
|
|
48
|
+
* @param message ACP2Setting message or plain object to encode
|
|
49
|
+
* @param [writer] Writer to encode to
|
|
50
|
+
* @returns Writer
|
|
51
|
+
*/
|
|
52
|
+
static encode(message: waproto.ACP2Setting.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Encodes the specified ACP2Setting message, length delimited. Does not implicitly {@link waproto.ACP2Setting.verify|verify} messages.
|
|
56
|
+
* @param message ACP2Setting message or plain object to encode
|
|
57
|
+
* @param [writer] Writer to encode to
|
|
58
|
+
* @returns Writer
|
|
59
|
+
*/
|
|
60
|
+
static encodeDelimited(message: waproto.ACP2Setting.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Decodes a ACP2Setting message from the specified reader or buffer.
|
|
64
|
+
* @param reader Reader or buffer to decode from
|
|
65
|
+
* @param [length] Message length if known beforehand
|
|
66
|
+
* @returns {waproto.ACP2Setting & waproto.ACP2Setting.$Shape} ACP2Setting
|
|
67
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69
|
+
*/
|
|
70
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.ACP2Setting & waproto.ACP2Setting.$Shape;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Decodes a ACP2Setting message from the specified reader or buffer, length delimited.
|
|
74
|
+
* @param reader Reader or buffer to decode from
|
|
75
|
+
* @returns {waproto.ACP2Setting & waproto.ACP2Setting.$Shape} ACP2Setting
|
|
76
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78
|
+
*/
|
|
79
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.ACP2Setting & waproto.ACP2Setting.$Shape;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Verifies a ACP2Setting message.
|
|
83
|
+
* @param message Plain object to verify
|
|
84
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
85
|
+
*/
|
|
86
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Creates a ACP2Setting message from a plain object. Also converts values to their respective internal types.
|
|
90
|
+
* @param object Plain object
|
|
91
|
+
* @returns ACP2Setting
|
|
92
|
+
*/
|
|
93
|
+
static fromObject(object: { [k: string]: any }): waproto.ACP2Setting;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Creates a plain object from a ACP2Setting message. Also converts values to other types if specified.
|
|
97
|
+
* @param message ACP2Setting
|
|
98
|
+
* @param [options] Conversion options
|
|
99
|
+
* @returns Plain object
|
|
100
|
+
*/
|
|
101
|
+
static toObject(message: waproto.ACP2Setting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Converts this ACP2Setting to JSON.
|
|
105
|
+
* @returns JSON object
|
|
106
|
+
*/
|
|
107
|
+
toJSON(): { [k: string]: any };
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Gets the type url for ACP2Setting
|
|
111
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
112
|
+
* @returns The type url
|
|
113
|
+
*/
|
|
114
|
+
static getTypeUrl(prefix?: string): string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
namespace ACP2Setting {
|
|
118
|
+
|
|
119
|
+
/** Properties of a ACP2Setting. */
|
|
120
|
+
interface $Properties {
|
|
121
|
+
|
|
122
|
+
/** ACP2Setting enabled */
|
|
123
|
+
enabled?: (boolean|null);
|
|
124
|
+
|
|
125
|
+
/** ACP2Setting trigger */
|
|
126
|
+
trigger?: (waproto.LimitSharing.TriggerType|null);
|
|
127
|
+
|
|
128
|
+
/** ACP2Setting settingTimestamp */
|
|
129
|
+
settingTimestamp?: (number|Long|null);
|
|
130
|
+
|
|
131
|
+
/** ACP2Setting initiatedByMe */
|
|
132
|
+
initiatedByMe?: (boolean|null);
|
|
133
|
+
|
|
134
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
135
|
+
$unknowns?: Uint8Array[];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Shape of a ACP2Setting. */
|
|
139
|
+
type $Shape = waproto.ACP2Setting.$Properties;
|
|
140
|
+
}
|
|
141
|
+
|
|
7
142
|
/**
|
|
8
143
|
* Properties of a ADVDeviceIdentity.
|
|
9
144
|
* @deprecated Use waproto.ADVDeviceIdentity.$Properties instead.
|
|
@@ -34078,6 +34213,9 @@ export namespace waproto {
|
|
|
34078
34213
|
/** Message newsletterScheduledMessage. */
|
|
34079
34214
|
newsletterScheduledMessage?: (waproto.Message.FutureProofMessage.$Properties|null);
|
|
34080
34215
|
|
|
34216
|
+
/** Message acp2SettingMessage. */
|
|
34217
|
+
acp2SettingMessage?: (waproto.Message.FutureProofMessage.$Properties|null);
|
|
34218
|
+
|
|
34081
34219
|
/**
|
|
34082
34220
|
* Creates a new Message instance using the specified properties.
|
|
34083
34221
|
* @param [properties] Properties to set
|
|
@@ -34495,6 +34633,9 @@ export namespace waproto {
|
|
|
34495
34633
|
/** Message newsletterScheduledMessage */
|
|
34496
34634
|
newsletterScheduledMessage?: (waproto.Message.FutureProofMessage.$Properties|null);
|
|
34497
34635
|
|
|
34636
|
+
/** Message acp2SettingMessage */
|
|
34637
|
+
acp2SettingMessage?: (waproto.Message.FutureProofMessage.$Properties|null);
|
|
34638
|
+
|
|
34498
34639
|
/** Unknown fields preserved while decoding when enabled */
|
|
34499
34640
|
$unknowns?: Uint8Array[];
|
|
34500
34641
|
}
|
|
@@ -34612,6 +34753,7 @@ export namespace waproto {
|
|
|
34612
34753
|
statusLinkPreviewMetadata?: waproto.Message.StatusLinkPreviewMetadata.$Shape|null;
|
|
34613
34754
|
botPlatformRegistrationSuccessMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
34614
34755
|
newsletterScheduledMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
34756
|
+
acp2SettingMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
34615
34757
|
$unknowns?: Uint8Array[];
|
|
34616
34758
|
};
|
|
34617
34759
|
|
|
@@ -55670,6 +55812,9 @@ export namespace waproto {
|
|
|
55670
55812
|
/** ProtocolMessage coexStateSync. */
|
|
55671
55813
|
coexStateSync?: (waproto.CoexStateSync.$Properties|null);
|
|
55672
55814
|
|
|
55815
|
+
/** ProtocolMessage acp2Setting. */
|
|
55816
|
+
acp2Setting?: (waproto.ACP2Setting.$Properties|null);
|
|
55817
|
+
|
|
55673
55818
|
/**
|
|
55674
55819
|
* Creates a new ProtocolMessage instance using the specified properties.
|
|
55675
55820
|
* @param [properties] Properties to set
|
|
@@ -55844,6 +55989,9 @@ export namespace waproto {
|
|
|
55844
55989
|
/** ProtocolMessage coexStateSync */
|
|
55845
55990
|
coexStateSync?: (waproto.CoexStateSync.$Properties|null);
|
|
55846
55991
|
|
|
55992
|
+
/** ProtocolMessage acp2Setting */
|
|
55993
|
+
acp2Setting?: (waproto.ACP2Setting.$Properties|null);
|
|
55994
|
+
|
|
55847
55995
|
/** Unknown fields preserved while decoding when enabled */
|
|
55848
55996
|
$unknowns?: Uint8Array[];
|
|
55849
55997
|
}
|
|
@@ -55880,6 +56028,7 @@ export namespace waproto {
|
|
|
55880
56028
|
aiMetadataOperation?: waproto.AIMetadataOperation.$Shape|null;
|
|
55881
56029
|
markAsVerifiedAction?: waproto.Message.MarkAsVerifiedAction.$Shape|null;
|
|
55882
56030
|
coexStateSync?: waproto.CoexStateSync.$Shape|null;
|
|
56031
|
+
acp2Setting?: waproto.ACP2Setting.$Shape|null;
|
|
55883
56032
|
$unknowns?: Uint8Array[];
|
|
55884
56033
|
};
|
|
55885
56034
|
|
|
@@ -55980,7 +56129,10 @@ export namespace waproto {
|
|
|
55980
56129
|
MARK_AS_VERIFIED_ACTION = 36,
|
|
55981
56130
|
|
|
55982
56131
|
/** COEX_STATE_SYNC value */
|
|
55983
|
-
COEX_STATE_SYNC = 37
|
|
56132
|
+
COEX_STATE_SYNC = 37,
|
|
56133
|
+
|
|
56134
|
+
/** ACP2_SETTING value */
|
|
56135
|
+
ACP2_SETTING = 39
|
|
55984
56136
|
}
|
|
55985
56137
|
}
|
|
55986
56138
|
|
|
@@ -61304,6 +61456,9 @@ export namespace waproto {
|
|
|
61304
61456
|
/** MessageContextInfo teeContextAnchorMessageId. */
|
|
61305
61457
|
teeContextAnchorMessageId?: (string|null);
|
|
61306
61458
|
|
|
61459
|
+
/** MessageContextInfo acp2Setting. */
|
|
61460
|
+
acp2Setting?: (waproto.ACP2Setting.$Properties|null);
|
|
61461
|
+
|
|
61307
61462
|
/**
|
|
61308
61463
|
* Creates a new MessageContextInfo instance using the specified properties.
|
|
61309
61464
|
* @param [properties] Properties to set
|
|
@@ -61448,6 +61603,9 @@ export namespace waproto {
|
|
|
61448
61603
|
/** MessageContextInfo teeContextAnchorMessageId */
|
|
61449
61604
|
teeContextAnchorMessageId?: (string|null);
|
|
61450
61605
|
|
|
61606
|
+
/** MessageContextInfo acp2Setting */
|
|
61607
|
+
acp2Setting?: (waproto.ACP2Setting.$Properties|null);
|
|
61608
|
+
|
|
61451
61609
|
/** Unknown fields preserved while decoding when enabled */
|
|
61452
61610
|
$unknowns?: Uint8Array[];
|
|
61453
61611
|
}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var $protobuf = require("protobufjs/minimal");
|
|
|
5
5
|
|
|
6
6
|
// Common aliases
|
|
7
7
|
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
|
|
8
|
-
var $Object = $util.global.Object, $undefined = $util.global.undefined, $Error = $util.global.Error, $RangeError = $util.global.RangeError, $TypeError = $util.global.TypeError, $
|
|
8
|
+
var $Object = $util.global.Object, $undefined = $util.global.undefined, $Error = $util.global.Error, $RangeError = $util.global.RangeError, $TypeError = $util.global.TypeError, $Boolean = $util.global.Boolean, $parseInt = $util.global.parseInt, $String = $util.global.String, $BigInt = $util.global.BigInt, $Number = $util.global.Number, $Array = $util.global.Array, $isFinite = $util.global.isFinite;
|
|
9
9
|
|
|
10
10
|
// Exported root namespace
|
|
11
11
|
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
@@ -19,6 +19,418 @@ $root.waproto = (function() {
|
|
|
19
19
|
*/
|
|
20
20
|
var waproto = {};
|
|
21
21
|
|
|
22
|
+
waproto.ACP2Setting = (function() {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Properties of a ACP2Setting.
|
|
26
|
+
* @typedef {Object} waproto.ACP2Setting.$Properties
|
|
27
|
+
* @property {boolean|null} [enabled] ACP2Setting enabled
|
|
28
|
+
* @property {waproto.LimitSharing.TriggerType|null} [trigger] ACP2Setting trigger
|
|
29
|
+
* @property {number|Long|null} [settingTimestamp] ACP2Setting settingTimestamp
|
|
30
|
+
* @property {boolean|null} [initiatedByMe] ACP2Setting initiatedByMe
|
|
31
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Properties of a ACP2Setting.
|
|
36
|
+
* @memberof waproto
|
|
37
|
+
* @interface IACP2Setting
|
|
38
|
+
* @augments waproto.ACP2Setting.$Properties
|
|
39
|
+
* @deprecated Use waproto.ACP2Setting.$Properties instead.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Shape of a ACP2Setting.
|
|
44
|
+
* @typedef {waproto.ACP2Setting.$Properties} waproto.ACP2Setting.$Shape
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a new ACP2Setting.
|
|
49
|
+
* @memberof waproto
|
|
50
|
+
* @classdesc Represents a ACP2Setting.
|
|
51
|
+
* @constructor
|
|
52
|
+
* @param {waproto.ACP2Setting.$Properties=} [properties] Properties to set
|
|
53
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
54
|
+
*/
|
|
55
|
+
var ACP2Setting = function (properties) {
|
|
56
|
+
if (properties)
|
|
57
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
59
|
+
this[keys[i]] = properties[keys[i]];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* ACP2Setting enabled.
|
|
64
|
+
* @member {boolean|null|undefined} enabled
|
|
65
|
+
* @memberof waproto.ACP2Setting
|
|
66
|
+
* @instance
|
|
67
|
+
*/
|
|
68
|
+
ACP2Setting.prototype.enabled = null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* ACP2Setting trigger.
|
|
72
|
+
* @member {waproto.LimitSharing.TriggerType|null|undefined} trigger
|
|
73
|
+
* @memberof waproto.ACP2Setting
|
|
74
|
+
* @instance
|
|
75
|
+
*/
|
|
76
|
+
ACP2Setting.prototype.trigger = null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* ACP2Setting settingTimestamp.
|
|
80
|
+
* @member {number|Long|null|undefined} settingTimestamp
|
|
81
|
+
* @memberof waproto.ACP2Setting
|
|
82
|
+
* @instance
|
|
83
|
+
*/
|
|
84
|
+
ACP2Setting.prototype.settingTimestamp = null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* ACP2Setting initiatedByMe.
|
|
88
|
+
* @member {boolean|null|undefined} initiatedByMe
|
|
89
|
+
* @memberof waproto.ACP2Setting
|
|
90
|
+
* @instance
|
|
91
|
+
*/
|
|
92
|
+
ACP2Setting.prototype.initiatedByMe = null;
|
|
93
|
+
|
|
94
|
+
// OneOf field names bound to virtual getters and setters
|
|
95
|
+
var $oneOfFields;
|
|
96
|
+
|
|
97
|
+
// Virtual OneOf for proto3 optional field
|
|
98
|
+
$Object.defineProperty(ACP2Setting.prototype, "_enabled", {
|
|
99
|
+
get: $util.oneOfGetter($oneOfFields = ["enabled"]),
|
|
100
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// Virtual OneOf for proto3 optional field
|
|
104
|
+
$Object.defineProperty(ACP2Setting.prototype, "_trigger", {
|
|
105
|
+
get: $util.oneOfGetter($oneOfFields = ["trigger"]),
|
|
106
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// Virtual OneOf for proto3 optional field
|
|
110
|
+
$Object.defineProperty(ACP2Setting.prototype, "_settingTimestamp", {
|
|
111
|
+
get: $util.oneOfGetter($oneOfFields = ["settingTimestamp"]),
|
|
112
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// Virtual OneOf for proto3 optional field
|
|
116
|
+
$Object.defineProperty(ACP2Setting.prototype, "_initiatedByMe", {
|
|
117
|
+
get: $util.oneOfGetter($oneOfFields = ["initiatedByMe"]),
|
|
118
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Creates a new ACP2Setting instance using the specified properties.
|
|
123
|
+
* @function create
|
|
124
|
+
* @memberof waproto.ACP2Setting
|
|
125
|
+
* @static
|
|
126
|
+
* @param {waproto.ACP2Setting.$Properties=} [properties] Properties to set
|
|
127
|
+
* @returns {waproto.ACP2Setting} ACP2Setting instance
|
|
128
|
+
* @type {{
|
|
129
|
+
* (properties: waproto.ACP2Setting.$Shape): waproto.ACP2Setting & waproto.ACP2Setting.$Shape;
|
|
130
|
+
* (properties?: waproto.ACP2Setting.$Properties): waproto.ACP2Setting;
|
|
131
|
+
* }}
|
|
132
|
+
*/
|
|
133
|
+
ACP2Setting.create = function(properties) {
|
|
134
|
+
return new ACP2Setting(properties);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Encodes the specified ACP2Setting message. Does not implicitly {@link waproto.ACP2Setting.verify|verify} messages.
|
|
139
|
+
* @function encode
|
|
140
|
+
* @memberof waproto.ACP2Setting
|
|
141
|
+
* @static
|
|
142
|
+
* @param {waproto.ACP2Setting.$Properties} message ACP2Setting message or plain object to encode
|
|
143
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
144
|
+
* @returns {$protobuf.Writer} Writer
|
|
145
|
+
*/
|
|
146
|
+
ACP2Setting.encode = function (message, writer, _depth) {
|
|
147
|
+
if (!writer)
|
|
148
|
+
writer = $Writer.create();
|
|
149
|
+
if (_depth === $undefined)
|
|
150
|
+
_depth = 0;
|
|
151
|
+
if (_depth > $util.recursionLimit)
|
|
152
|
+
throw $Error("max depth exceeded");
|
|
153
|
+
if (message.enabled != null && $Object.hasOwnProperty.call(message, "enabled"))
|
|
154
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
155
|
+
if (message.trigger != null && $Object.hasOwnProperty.call(message, "trigger"))
|
|
156
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trigger);
|
|
157
|
+
if (message.settingTimestamp != null && $Object.hasOwnProperty.call(message, "settingTimestamp"))
|
|
158
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.settingTimestamp);
|
|
159
|
+
if (message.initiatedByMe != null && $Object.hasOwnProperty.call(message, "initiatedByMe"))
|
|
160
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.initiatedByMe);
|
|
161
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
162
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
163
|
+
writer.raw(message.$unknowns[i]);
|
|
164
|
+
return writer;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Encodes the specified ACP2Setting message, length delimited. Does not implicitly {@link waproto.ACP2Setting.verify|verify} messages.
|
|
169
|
+
* @function encodeDelimited
|
|
170
|
+
* @memberof waproto.ACP2Setting
|
|
171
|
+
* @static
|
|
172
|
+
* @param {waproto.ACP2Setting.$Properties} message ACP2Setting message or plain object to encode
|
|
173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
174
|
+
* @returns {$protobuf.Writer} Writer
|
|
175
|
+
*/
|
|
176
|
+
ACP2Setting.encodeDelimited = function(message, writer) {
|
|
177
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Decodes a ACP2Setting message from the specified reader or buffer.
|
|
182
|
+
* @function decode
|
|
183
|
+
* @memberof waproto.ACP2Setting
|
|
184
|
+
* @static
|
|
185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
186
|
+
* @param {number} [length] Message length if known beforehand
|
|
187
|
+
* @returns {waproto.ACP2Setting & waproto.ACP2Setting.$Shape} ACP2Setting
|
|
188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
190
|
+
*/
|
|
191
|
+
ACP2Setting.decode = function (reader, length, _end, _depth, _target) {
|
|
192
|
+
if (!(reader instanceof $Reader))
|
|
193
|
+
reader = $Reader.create(reader);
|
|
194
|
+
if (_depth === $undefined)
|
|
195
|
+
_depth = 0;
|
|
196
|
+
if (_depth > $Reader.recursionLimit)
|
|
197
|
+
throw $Error("max depth exceeded");
|
|
198
|
+
var end, message, value;
|
|
199
|
+
if (length === $undefined)
|
|
200
|
+
end = reader.len;
|
|
201
|
+
else {
|
|
202
|
+
end = reader.pos + length;
|
|
203
|
+
if (end > reader.len)
|
|
204
|
+
throw $RangeError("index out of range");
|
|
205
|
+
length = reader.len;
|
|
206
|
+
reader.len = end;
|
|
207
|
+
}
|
|
208
|
+
message = _target || new $root.waproto.ACP2Setting();
|
|
209
|
+
while (reader.pos < end) {
|
|
210
|
+
var start = reader.pos;
|
|
211
|
+
var tag = reader.tag();
|
|
212
|
+
if (tag === _end) {
|
|
213
|
+
_end = $undefined;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
var wireType = tag & 7;
|
|
217
|
+
switch (tag >>>= 3) {
|
|
218
|
+
case 1: {
|
|
219
|
+
if (wireType !== 0)
|
|
220
|
+
break;
|
|
221
|
+
message.enabled = reader.bool();
|
|
222
|
+
message._enabled = "enabled";
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
case 2: {
|
|
226
|
+
if (wireType !== 0)
|
|
227
|
+
break;
|
|
228
|
+
message.trigger = reader.int32();
|
|
229
|
+
message._trigger = "trigger";
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 3: {
|
|
233
|
+
if (wireType !== 0)
|
|
234
|
+
break;
|
|
235
|
+
message.settingTimestamp = reader.int64();
|
|
236
|
+
message._settingTimestamp = "settingTimestamp";
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 4: {
|
|
240
|
+
if (wireType !== 0)
|
|
241
|
+
break;
|
|
242
|
+
message.initiatedByMe = reader.bool();
|
|
243
|
+
message._initiatedByMe = "initiatedByMe";
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
reader.skipType(wireType, _depth, tag);
|
|
248
|
+
if (!reader.discardUnknown) {
|
|
249
|
+
$util.makeProp(message, "$unknowns", false);
|
|
250
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (length !== $undefined) {
|
|
254
|
+
if (reader.pos !== end)
|
|
255
|
+
throw $RangeError("index out of range");
|
|
256
|
+
reader.len = length;
|
|
257
|
+
}
|
|
258
|
+
if (_end !== $undefined)
|
|
259
|
+
throw $Error("missing end group");
|
|
260
|
+
return message;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Decodes a ACP2Setting message from the specified reader or buffer, length delimited.
|
|
265
|
+
* @function decodeDelimited
|
|
266
|
+
* @memberof waproto.ACP2Setting
|
|
267
|
+
* @static
|
|
268
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
269
|
+
* @returns {waproto.ACP2Setting & waproto.ACP2Setting.$Shape} ACP2Setting
|
|
270
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
271
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
272
|
+
*/
|
|
273
|
+
ACP2Setting.decodeDelimited = function(reader) {
|
|
274
|
+
if (!(reader instanceof $Reader))
|
|
275
|
+
reader = new $Reader(reader);
|
|
276
|
+
return this.decode(reader, reader.uint32());
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Verifies a ACP2Setting message.
|
|
281
|
+
* @function verify
|
|
282
|
+
* @memberof waproto.ACP2Setting
|
|
283
|
+
* @static
|
|
284
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
285
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
286
|
+
*/
|
|
287
|
+
ACP2Setting.verify = function (message, _depth) {
|
|
288
|
+
if (typeof message !== "object" || message === null)
|
|
289
|
+
return "object expected";
|
|
290
|
+
if (_depth === $undefined)
|
|
291
|
+
_depth = 0;
|
|
292
|
+
if (_depth > $util.recursionLimit)
|
|
293
|
+
return "max depth exceeded";
|
|
294
|
+
var properties = {};
|
|
295
|
+
if (message.enabled != null && $Object.hasOwnProperty.call(message, "enabled")) {
|
|
296
|
+
properties._enabled = 1;
|
|
297
|
+
if (typeof message.enabled !== "boolean")
|
|
298
|
+
return "enabled: boolean expected";
|
|
299
|
+
}
|
|
300
|
+
if (message.trigger != null && $Object.hasOwnProperty.call(message, "trigger")) {
|
|
301
|
+
properties._trigger = 1;
|
|
302
|
+
if (typeof message.trigger !== "number" || (message.trigger | 0) !== message.trigger)
|
|
303
|
+
return "trigger: enum value expected";
|
|
304
|
+
}
|
|
305
|
+
if (message.settingTimestamp != null && $Object.hasOwnProperty.call(message, "settingTimestamp")) {
|
|
306
|
+
properties._settingTimestamp = 1;
|
|
307
|
+
if (!$util.isInteger(message.settingTimestamp) && !(message.settingTimestamp && $util.isInteger(message.settingTimestamp.low) && $util.isInteger(message.settingTimestamp.high)))
|
|
308
|
+
return "settingTimestamp: integer|Long expected";
|
|
309
|
+
}
|
|
310
|
+
if (message.initiatedByMe != null && $Object.hasOwnProperty.call(message, "initiatedByMe")) {
|
|
311
|
+
properties._initiatedByMe = 1;
|
|
312
|
+
if (typeof message.initiatedByMe !== "boolean")
|
|
313
|
+
return "initiatedByMe: boolean expected";
|
|
314
|
+
}
|
|
315
|
+
return null;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Creates a ACP2Setting message from a plain object. Also converts values to their respective internal types.
|
|
320
|
+
* @function fromObject
|
|
321
|
+
* @memberof waproto.ACP2Setting
|
|
322
|
+
* @static
|
|
323
|
+
* @param {Object.<string,*>} object Plain object
|
|
324
|
+
* @returns {waproto.ACP2Setting} ACP2Setting
|
|
325
|
+
*/
|
|
326
|
+
ACP2Setting.fromObject = function (object, _depth) {
|
|
327
|
+
if (object instanceof $root.waproto.ACP2Setting)
|
|
328
|
+
return object;
|
|
329
|
+
if (!$util.isObject(object))
|
|
330
|
+
throw $TypeError(".waproto.ACP2Setting: object expected");
|
|
331
|
+
if (_depth === $undefined)
|
|
332
|
+
_depth = 0;
|
|
333
|
+
if (_depth > $util.recursionLimit)
|
|
334
|
+
throw $Error("max depth exceeded");
|
|
335
|
+
var message = new $root.waproto.ACP2Setting();
|
|
336
|
+
if (object.enabled != null)
|
|
337
|
+
message.enabled = $Boolean(object.enabled);
|
|
338
|
+
switch (object.trigger) {
|
|
339
|
+
case "UNKNOWN":
|
|
340
|
+
case 0:
|
|
341
|
+
message.trigger = 0;
|
|
342
|
+
break;
|
|
343
|
+
case "CHAT_SETTING":
|
|
344
|
+
case 1:
|
|
345
|
+
message.trigger = 1;
|
|
346
|
+
break;
|
|
347
|
+
case "BIZ_SUPPORTS_FB_HOSTING":
|
|
348
|
+
case 2:
|
|
349
|
+
message.trigger = 2;
|
|
350
|
+
break;
|
|
351
|
+
case "UNKNOWN_GROUP":
|
|
352
|
+
case 3:
|
|
353
|
+
message.trigger = 3;
|
|
354
|
+
break;
|
|
355
|
+
default:
|
|
356
|
+
if (typeof object.trigger === "number" && (object.trigger | 0) === object.trigger)
|
|
357
|
+
message.trigger = object.trigger;
|
|
358
|
+
}
|
|
359
|
+
if (object.settingTimestamp != null)
|
|
360
|
+
if ($util.Long)
|
|
361
|
+
message.settingTimestamp = $util.Long.fromValue(object.settingTimestamp, false);
|
|
362
|
+
else if (typeof object.settingTimestamp === "string")
|
|
363
|
+
message.settingTimestamp = $parseInt(object.settingTimestamp, 10);
|
|
364
|
+
else if (typeof object.settingTimestamp === "number")
|
|
365
|
+
message.settingTimestamp = object.settingTimestamp;
|
|
366
|
+
else if (typeof object.settingTimestamp === "object")
|
|
367
|
+
message.settingTimestamp = new $util.LongBits(object.settingTimestamp.low >>> 0, object.settingTimestamp.high >>> 0).toNumber();
|
|
368
|
+
if (object.initiatedByMe != null)
|
|
369
|
+
message.initiatedByMe = $Boolean(object.initiatedByMe);
|
|
370
|
+
return message;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Creates a plain object from a ACP2Setting message. Also converts values to other types if specified.
|
|
375
|
+
* @function toObject
|
|
376
|
+
* @memberof waproto.ACP2Setting
|
|
377
|
+
* @static
|
|
378
|
+
* @param {waproto.ACP2Setting} message ACP2Setting
|
|
379
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
380
|
+
* @returns {Object.<string,*>} Plain object
|
|
381
|
+
*/
|
|
382
|
+
ACP2Setting.toObject = function (message, options, _depth) {
|
|
383
|
+
if (!options)
|
|
384
|
+
options = {};
|
|
385
|
+
if (_depth === $undefined)
|
|
386
|
+
_depth = 0;
|
|
387
|
+
if (_depth > $util.recursionLimit)
|
|
388
|
+
throw $Error("max depth exceeded");
|
|
389
|
+
var object = {};
|
|
390
|
+
if (message.enabled != null && $Object.hasOwnProperty.call(message, "enabled"))
|
|
391
|
+
object.enabled = message.enabled;
|
|
392
|
+
if (message.trigger != null && $Object.hasOwnProperty.call(message, "trigger"))
|
|
393
|
+
object.trigger = options.enums === $String ? $root.waproto.LimitSharing.TriggerType[message.trigger] === $undefined ? message.trigger : $root.waproto.LimitSharing.TriggerType[message.trigger] : message.trigger;
|
|
394
|
+
if (message.settingTimestamp != null && $Object.hasOwnProperty.call(message, "settingTimestamp"))
|
|
395
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
396
|
+
object.settingTimestamp = typeof message.settingTimestamp === "number" ? $BigInt(message.settingTimestamp) : $util.Long.fromBits(message.settingTimestamp.low >>> 0, message.settingTimestamp.high >>> 0, false).toBigInt();
|
|
397
|
+
else if (typeof message.settingTimestamp === "number")
|
|
398
|
+
object.settingTimestamp = options.longs === $String ? $String(message.settingTimestamp) : message.settingTimestamp;
|
|
399
|
+
else
|
|
400
|
+
object.settingTimestamp = options.longs === $String ? $util.Long.prototype.toString.call(message.settingTimestamp) : options.longs === $Number ? new $util.LongBits(message.settingTimestamp.low >>> 0, message.settingTimestamp.high >>> 0).toNumber() : message.settingTimestamp;
|
|
401
|
+
if (message.initiatedByMe != null && $Object.hasOwnProperty.call(message, "initiatedByMe"))
|
|
402
|
+
object.initiatedByMe = message.initiatedByMe;
|
|
403
|
+
return object;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Converts this ACP2Setting to JSON.
|
|
408
|
+
* @function toJSON
|
|
409
|
+
* @memberof waproto.ACP2Setting
|
|
410
|
+
* @instance
|
|
411
|
+
* @returns {Object.<string,*>} JSON object
|
|
412
|
+
*/
|
|
413
|
+
ACP2Setting.prototype.toJSON = function() {
|
|
414
|
+
return ACP2Setting.toObject(this, $protobuf.util.toJSONOptions);
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Gets the type url for ACP2Setting
|
|
419
|
+
* @function getTypeUrl
|
|
420
|
+
* @memberof waproto.ACP2Setting
|
|
421
|
+
* @static
|
|
422
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
423
|
+
* @returns {string} The type url
|
|
424
|
+
*/
|
|
425
|
+
ACP2Setting.getTypeUrl = function(prefix) {
|
|
426
|
+
if (prefix === $undefined)
|
|
427
|
+
prefix = "type.googleapis.com";
|
|
428
|
+
return prefix + "/waproto.ACP2Setting";
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
return ACP2Setting;
|
|
432
|
+
})();
|
|
433
|
+
|
|
22
434
|
waproto.ADVDeviceIdentity = (function() {
|
|
23
435
|
|
|
24
436
|
/**
|
|
@@ -99798,6 +100210,7 @@ $root.waproto = (function() {
|
|
|
99798
100210
|
* @property {waproto.Message.StatusLinkPreviewMetadata.$Properties|null} [statusLinkPreviewMetadata] Message statusLinkPreviewMetadata
|
|
99799
100211
|
* @property {waproto.Message.FutureProofMessage.$Properties|null} [botPlatformRegistrationSuccessMessage] Message botPlatformRegistrationSuccessMessage
|
|
99800
100212
|
* @property {waproto.Message.FutureProofMessage.$Properties|null} [newsletterScheduledMessage] Message newsletterScheduledMessage
|
|
100213
|
+
* @property {waproto.Message.FutureProofMessage.$Properties|null} [acp2SettingMessage] Message acp2SettingMessage
|
|
99801
100214
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
99802
100215
|
*/
|
|
99803
100216
|
|
|
@@ -99923,6 +100336,7 @@ $root.waproto = (function() {
|
|
|
99923
100336
|
* statusLinkPreviewMetadata?: waproto.Message.StatusLinkPreviewMetadata.$Shape|null;
|
|
99924
100337
|
* botPlatformRegistrationSuccessMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
99925
100338
|
* newsletterScheduledMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
100339
|
+
* acp2SettingMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
99926
100340
|
* $unknowns?: Array.<Uint8Array>;
|
|
99927
100341
|
* }} waproto.Message.$Shape
|
|
99928
100342
|
*/
|
|
@@ -100830,6 +101244,14 @@ $root.waproto = (function() {
|
|
|
100830
101244
|
*/
|
|
100831
101245
|
Message.prototype.newsletterScheduledMessage = null;
|
|
100832
101246
|
|
|
101247
|
+
/**
|
|
101248
|
+
* Message acp2SettingMessage.
|
|
101249
|
+
* @member {waproto.Message.FutureProofMessage.$Properties|null|undefined} acp2SettingMessage
|
|
101250
|
+
* @memberof waproto.Message
|
|
101251
|
+
* @instance
|
|
101252
|
+
*/
|
|
101253
|
+
Message.prototype.acp2SettingMessage = null;
|
|
101254
|
+
|
|
100833
101255
|
// OneOf field names bound to virtual getters and setters
|
|
100834
101256
|
var $oneOfFields;
|
|
100835
101257
|
|
|
@@ -101499,6 +101921,12 @@ $root.waproto = (function() {
|
|
|
101499
101921
|
set: $util.oneOfSetter($oneOfFields)
|
|
101500
101922
|
});
|
|
101501
101923
|
|
|
101924
|
+
// Virtual OneOf for proto3 optional field
|
|
101925
|
+
$Object.defineProperty(Message.prototype, "_acp2SettingMessage", {
|
|
101926
|
+
get: $util.oneOfGetter($oneOfFields = ["acp2SettingMessage"]),
|
|
101927
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
101928
|
+
});
|
|
101929
|
+
|
|
101502
101930
|
/**
|
|
101503
101931
|
* Creates a new Message instance using the specified properties.
|
|
101504
101932
|
* @function create
|
|
@@ -101753,6 +102181,8 @@ $root.waproto = (function() {
|
|
|
101753
102181
|
$root.waproto.Message.FutureProofMessage.encode(message.botPlatformRegistrationSuccessMessage, writer.uint32(/* id 131, wireType 2 =*/1050).fork(), _depth + 1).ldelim();
|
|
101754
102182
|
if (message.newsletterScheduledMessage != null && $Object.hasOwnProperty.call(message, "newsletterScheduledMessage"))
|
|
101755
102183
|
$root.waproto.Message.FutureProofMessage.encode(message.newsletterScheduledMessage, writer.uint32(/* id 132, wireType 2 =*/1058).fork(), _depth + 1).ldelim();
|
|
102184
|
+
if (message.acp2SettingMessage != null && $Object.hasOwnProperty.call(message, "acp2SettingMessage"))
|
|
102185
|
+
$root.waproto.Message.FutureProofMessage.encode(message.acp2SettingMessage, writer.uint32(/* id 133, wireType 2 =*/1066).fork(), _depth + 1).ldelim();
|
|
101756
102186
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
101757
102187
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
101758
102188
|
writer.raw(message.$unknowns[i]);
|
|
@@ -102587,6 +103017,13 @@ $root.waproto = (function() {
|
|
|
102587
103017
|
message._newsletterScheduledMessage = "newsletterScheduledMessage";
|
|
102588
103018
|
continue;
|
|
102589
103019
|
}
|
|
103020
|
+
case 133: {
|
|
103021
|
+
if (wireType !== 2)
|
|
103022
|
+
break;
|
|
103023
|
+
message.acp2SettingMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32(), $undefined, _depth + 1, message.acp2SettingMessage);
|
|
103024
|
+
message._acp2SettingMessage = "acp2SettingMessage";
|
|
103025
|
+
continue;
|
|
103026
|
+
}
|
|
102590
103027
|
}
|
|
102591
103028
|
reader.skipType(wireType, _depth, tag);
|
|
102592
103029
|
if (!reader.discardUnknown) {
|
|
@@ -103521,6 +103958,14 @@ $root.waproto = (function() {
|
|
|
103521
103958
|
return "newsletterScheduledMessage." + error;
|
|
103522
103959
|
}
|
|
103523
103960
|
}
|
|
103961
|
+
if (message.acp2SettingMessage != null && $Object.hasOwnProperty.call(message, "acp2SettingMessage")) {
|
|
103962
|
+
properties._acp2SettingMessage = 1;
|
|
103963
|
+
{
|
|
103964
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.acp2SettingMessage, _depth + 1);
|
|
103965
|
+
if (error)
|
|
103966
|
+
return "acp2SettingMessage." + error;
|
|
103967
|
+
}
|
|
103968
|
+
}
|
|
103524
103969
|
return null;
|
|
103525
103970
|
};
|
|
103526
103971
|
|
|
@@ -104094,6 +104539,11 @@ $root.waproto = (function() {
|
|
|
104094
104539
|
throw $TypeError(".waproto.Message.newsletterScheduledMessage: object expected");
|
|
104095
104540
|
message.newsletterScheduledMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.newsletterScheduledMessage, _depth + 1);
|
|
104096
104541
|
}
|
|
104542
|
+
if (object.acp2SettingMessage != null) {
|
|
104543
|
+
if (!$util.isObject(object.acp2SettingMessage))
|
|
104544
|
+
throw $TypeError(".waproto.Message.acp2SettingMessage: object expected");
|
|
104545
|
+
message.acp2SettingMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.acp2SettingMessage, _depth + 1);
|
|
104546
|
+
}
|
|
104097
104547
|
return message;
|
|
104098
104548
|
};
|
|
104099
104549
|
|
|
@@ -104336,6 +104786,8 @@ $root.waproto = (function() {
|
|
|
104336
104786
|
object.botPlatformRegistrationSuccessMessage = $root.waproto.Message.FutureProofMessage.toObject(message.botPlatformRegistrationSuccessMessage, options, _depth + 1);
|
|
104337
104787
|
if (message.newsletterScheduledMessage != null && $Object.hasOwnProperty.call(message, "newsletterScheduledMessage"))
|
|
104338
104788
|
object.newsletterScheduledMessage = $root.waproto.Message.FutureProofMessage.toObject(message.newsletterScheduledMessage, options, _depth + 1);
|
|
104789
|
+
if (message.acp2SettingMessage != null && $Object.hasOwnProperty.call(message, "acp2SettingMessage"))
|
|
104790
|
+
object.acp2SettingMessage = $root.waproto.Message.FutureProofMessage.toObject(message.acp2SettingMessage, options, _depth + 1);
|
|
104339
104791
|
return object;
|
|
104340
104792
|
};
|
|
104341
104793
|
|
|
@@ -166144,6 +166596,7 @@ $root.waproto = (function() {
|
|
|
166144
166596
|
* @property {waproto.AIMetadataOperation.$Properties|null} [aiMetadataOperation] ProtocolMessage aiMetadataOperation
|
|
166145
166597
|
* @property {waproto.Message.MarkAsVerifiedAction.$Properties|null} [markAsVerifiedAction] ProtocolMessage markAsVerifiedAction
|
|
166146
166598
|
* @property {waproto.CoexStateSync.$Properties|null} [coexStateSync] ProtocolMessage coexStateSync
|
|
166599
|
+
* @property {waproto.ACP2Setting.$Properties|null} [acp2Setting] ProtocolMessage acp2Setting
|
|
166147
166600
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
166148
166601
|
*/
|
|
166149
166602
|
|
|
@@ -166188,6 +166641,7 @@ $root.waproto = (function() {
|
|
|
166188
166641
|
* aiMetadataOperation?: waproto.AIMetadataOperation.$Shape|null;
|
|
166189
166642
|
* markAsVerifiedAction?: waproto.Message.MarkAsVerifiedAction.$Shape|null;
|
|
166190
166643
|
* coexStateSync?: waproto.CoexStateSync.$Shape|null;
|
|
166644
|
+
* acp2Setting?: waproto.ACP2Setting.$Shape|null;
|
|
166191
166645
|
* $unknowns?: Array.<Uint8Array>;
|
|
166192
166646
|
* }} waproto.Message.ProtocolMessage.$Shape
|
|
166193
166647
|
*/
|
|
@@ -166447,6 +166901,14 @@ $root.waproto = (function() {
|
|
|
166447
166901
|
*/
|
|
166448
166902
|
ProtocolMessage.prototype.coexStateSync = null;
|
|
166449
166903
|
|
|
166904
|
+
/**
|
|
166905
|
+
* ProtocolMessage acp2Setting.
|
|
166906
|
+
* @member {waproto.ACP2Setting.$Properties|null|undefined} acp2Setting
|
|
166907
|
+
* @memberof waproto.Message.ProtocolMessage
|
|
166908
|
+
* @instance
|
|
166909
|
+
*/
|
|
166910
|
+
ProtocolMessage.prototype.acp2Setting = null;
|
|
166911
|
+
|
|
166450
166912
|
// OneOf field names bound to virtual getters and setters
|
|
166451
166913
|
var $oneOfFields;
|
|
166452
166914
|
|
|
@@ -166630,6 +167092,12 @@ $root.waproto = (function() {
|
|
|
166630
167092
|
set: $util.oneOfSetter($oneOfFields)
|
|
166631
167093
|
});
|
|
166632
167094
|
|
|
167095
|
+
// Virtual OneOf for proto3 optional field
|
|
167096
|
+
$Object.defineProperty(ProtocolMessage.prototype, "_acp2Setting", {
|
|
167097
|
+
get: $util.oneOfGetter($oneOfFields = ["acp2Setting"]),
|
|
167098
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
167099
|
+
});
|
|
167100
|
+
|
|
166633
167101
|
/**
|
|
166634
167102
|
* Creates a new ProtocolMessage instance using the specified properties.
|
|
166635
167103
|
* @function create
|
|
@@ -166722,6 +167190,8 @@ $root.waproto = (function() {
|
|
|
166722
167190
|
$root.waproto.Message.MarkAsVerifiedAction.encode(message.markAsVerifiedAction, writer.uint32(/* id 32, wireType 2 =*/258).fork(), _depth + 1).ldelim();
|
|
166723
167191
|
if (message.coexStateSync != null && $Object.hasOwnProperty.call(message, "coexStateSync"))
|
|
166724
167192
|
$root.waproto.CoexStateSync.encode(message.coexStateSync, writer.uint32(/* id 33, wireType 2 =*/266).fork(), _depth + 1).ldelim();
|
|
167193
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting"))
|
|
167194
|
+
$root.waproto.ACP2Setting.encode(message.acp2Setting, writer.uint32(/* id 35, wireType 2 =*/282).fork(), _depth + 1).ldelim();
|
|
166725
167195
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
166726
167196
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
166727
167197
|
writer.raw(message.$unknowns[i]);
|
|
@@ -166989,6 +167459,13 @@ $root.waproto = (function() {
|
|
|
166989
167459
|
message._coexStateSync = "coexStateSync";
|
|
166990
167460
|
continue;
|
|
166991
167461
|
}
|
|
167462
|
+
case 35: {
|
|
167463
|
+
if (wireType !== 2)
|
|
167464
|
+
break;
|
|
167465
|
+
message.acp2Setting = $root.waproto.ACP2Setting.decode(reader, reader.uint32(), $undefined, _depth + 1, message.acp2Setting);
|
|
167466
|
+
message._acp2Setting = "acp2Setting";
|
|
167467
|
+
continue;
|
|
167468
|
+
}
|
|
166992
167469
|
}
|
|
166993
167470
|
reader.skipType(wireType, _depth, tag);
|
|
166994
167471
|
if (!reader.discardUnknown) {
|
|
@@ -167257,6 +167734,14 @@ $root.waproto = (function() {
|
|
|
167257
167734
|
return "coexStateSync." + error;
|
|
167258
167735
|
}
|
|
167259
167736
|
}
|
|
167737
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting")) {
|
|
167738
|
+
properties._acp2Setting = 1;
|
|
167739
|
+
{
|
|
167740
|
+
var error = $root.waproto.ACP2Setting.verify(message.acp2Setting, _depth + 1);
|
|
167741
|
+
if (error)
|
|
167742
|
+
return "acp2Setting." + error;
|
|
167743
|
+
}
|
|
167744
|
+
}
|
|
167260
167745
|
return null;
|
|
167261
167746
|
};
|
|
167262
167747
|
|
|
@@ -167412,6 +167897,10 @@ $root.waproto = (function() {
|
|
|
167412
167897
|
case 37:
|
|
167413
167898
|
message.type = 37;
|
|
167414
167899
|
break;
|
|
167900
|
+
case "ACP2_SETTING":
|
|
167901
|
+
case 39:
|
|
167902
|
+
message.type = 39;
|
|
167903
|
+
break;
|
|
167415
167904
|
default:
|
|
167416
167905
|
if (typeof object.type === "number" && (object.type | 0) === object.type)
|
|
167417
167906
|
message.type = object.type;
|
|
@@ -167555,6 +168044,11 @@ $root.waproto = (function() {
|
|
|
167555
168044
|
throw $TypeError(".waproto.Message.ProtocolMessage.coexStateSync: object expected");
|
|
167556
168045
|
message.coexStateSync = $root.waproto.CoexStateSync.fromObject(object.coexStateSync, _depth + 1);
|
|
167557
168046
|
}
|
|
168047
|
+
if (object.acp2Setting != null) {
|
|
168048
|
+
if (!$util.isObject(object.acp2Setting))
|
|
168049
|
+
throw $TypeError(".waproto.Message.ProtocolMessage.acp2Setting: object expected");
|
|
168050
|
+
message.acp2Setting = $root.waproto.ACP2Setting.fromObject(object.acp2Setting, _depth + 1);
|
|
168051
|
+
}
|
|
167558
168052
|
return message;
|
|
167559
168053
|
};
|
|
167560
168054
|
|
|
@@ -167645,6 +168139,8 @@ $root.waproto = (function() {
|
|
|
167645
168139
|
object.markAsVerifiedAction = $root.waproto.Message.MarkAsVerifiedAction.toObject(message.markAsVerifiedAction, options, _depth + 1);
|
|
167646
168140
|
if (message.coexStateSync != null && $Object.hasOwnProperty.call(message, "coexStateSync"))
|
|
167647
168141
|
object.coexStateSync = $root.waproto.CoexStateSync.toObject(message.coexStateSync, options, _depth + 1);
|
|
168142
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting"))
|
|
168143
|
+
object.acp2Setting = $root.waproto.ACP2Setting.toObject(message.acp2Setting, options, _depth + 1);
|
|
167648
168144
|
return object;
|
|
167649
168145
|
};
|
|
167650
168146
|
|
|
@@ -167709,6 +168205,7 @@ $root.waproto = (function() {
|
|
|
167709
168205
|
* @property {number} AI_METADATA_OPERATION=35 AI_METADATA_OPERATION value
|
|
167710
168206
|
* @property {number} MARK_AS_VERIFIED_ACTION=36 MARK_AS_VERIFIED_ACTION value
|
|
167711
168207
|
* @property {number} COEX_STATE_SYNC=37 COEX_STATE_SYNC value
|
|
168208
|
+
* @property {number} ACP2_SETTING=39 ACP2_SETTING value
|
|
167712
168209
|
*/
|
|
167713
168210
|
ProtocolMessage.Type = (function() {
|
|
167714
168211
|
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
@@ -167744,6 +168241,7 @@ $root.waproto = (function() {
|
|
|
167744
168241
|
values[valuesById[35] = "AI_METADATA_OPERATION"] = 35;
|
|
167745
168242
|
values[valuesById[36] = "MARK_AS_VERIFIED_ACTION"] = 36;
|
|
167746
168243
|
values[valuesById[37] = "COEX_STATE_SYNC"] = 37;
|
|
168244
|
+
values[valuesById[39] = "ACP2_SETTING"] = 39;
|
|
167747
168245
|
return values;
|
|
167748
168246
|
})();
|
|
167749
168247
|
|
|
@@ -183711,6 +184209,7 @@ $root.waproto = (function() {
|
|
|
183711
184209
|
* @property {waproto.NonE2EEAttestation.$Properties|null} [accountEncryptionAttestation] MessageContextInfo accountEncryptionAttestation
|
|
183712
184210
|
* @property {Uint8Array|null} [associatedPrimaryIdentityKey] MessageContextInfo associatedPrimaryIdentityKey
|
|
183713
184211
|
* @property {string|null} [teeContextAnchorMessageId] MessageContextInfo teeContextAnchorMessageId
|
|
184212
|
+
* @property {waproto.ACP2Setting.$Properties|null} [acp2Setting] MessageContextInfo acp2Setting
|
|
183714
184213
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
183715
184214
|
*/
|
|
183716
184215
|
|
|
@@ -183903,6 +184402,14 @@ $root.waproto = (function() {
|
|
|
183903
184402
|
*/
|
|
183904
184403
|
MessageContextInfo.prototype.teeContextAnchorMessageId = null;
|
|
183905
184404
|
|
|
184405
|
+
/**
|
|
184406
|
+
* MessageContextInfo acp2Setting.
|
|
184407
|
+
* @member {waproto.ACP2Setting.$Properties|null|undefined} acp2Setting
|
|
184408
|
+
* @memberof waproto.MessageContextInfo
|
|
184409
|
+
* @instance
|
|
184410
|
+
*/
|
|
184411
|
+
MessageContextInfo.prototype.acp2Setting = null;
|
|
184412
|
+
|
|
183906
184413
|
// OneOf field names bound to virtual getters and setters
|
|
183907
184414
|
var $oneOfFields;
|
|
183908
184415
|
|
|
@@ -184020,6 +184527,12 @@ $root.waproto = (function() {
|
|
|
184020
184527
|
set: $util.oneOfSetter($oneOfFields)
|
|
184021
184528
|
});
|
|
184022
184529
|
|
|
184530
|
+
// Virtual OneOf for proto3 optional field
|
|
184531
|
+
$Object.defineProperty(MessageContextInfo.prototype, "_acp2Setting", {
|
|
184532
|
+
get: $util.oneOfGetter($oneOfFields = ["acp2Setting"]),
|
|
184533
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
184534
|
+
});
|
|
184535
|
+
|
|
184023
184536
|
/**
|
|
184024
184537
|
* Creates a new MessageContextInfo instance using the specified properties.
|
|
184025
184538
|
* @function create
|
|
@@ -184093,6 +184606,8 @@ $root.waproto = (function() {
|
|
|
184093
184606
|
writer.uint32(/* id 19, wireType 2 =*/154).bytes(message.associatedPrimaryIdentityKey);
|
|
184094
184607
|
if (message.teeContextAnchorMessageId != null && $Object.hasOwnProperty.call(message, "teeContextAnchorMessageId"))
|
|
184095
184608
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.teeContextAnchorMessageId);
|
|
184609
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting"))
|
|
184610
|
+
$root.waproto.ACP2Setting.encode(message.acp2Setting, writer.uint32(/* id 21, wireType 2 =*/170).fork(), _depth + 1).ldelim();
|
|
184096
184611
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
184097
184612
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
184098
184613
|
writer.raw(message.$unknowns[i]);
|
|
@@ -184291,6 +184806,13 @@ $root.waproto = (function() {
|
|
|
184291
184806
|
message._teeContextAnchorMessageId = "teeContextAnchorMessageId";
|
|
184292
184807
|
continue;
|
|
184293
184808
|
}
|
|
184809
|
+
case 21: {
|
|
184810
|
+
if (wireType !== 2)
|
|
184811
|
+
break;
|
|
184812
|
+
message.acp2Setting = $root.waproto.ACP2Setting.decode(reader, reader.uint32(), $undefined, _depth + 1, message.acp2Setting);
|
|
184813
|
+
message._acp2Setting = "acp2Setting";
|
|
184814
|
+
continue;
|
|
184815
|
+
}
|
|
184294
184816
|
}
|
|
184295
184817
|
reader.skipType(wireType, _depth, tag);
|
|
184296
184818
|
if (!reader.discardUnknown) {
|
|
@@ -184462,6 +184984,14 @@ $root.waproto = (function() {
|
|
|
184462
184984
|
if (!$util.isString(message.teeContextAnchorMessageId))
|
|
184463
184985
|
return "teeContextAnchorMessageId: string expected";
|
|
184464
184986
|
}
|
|
184987
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting")) {
|
|
184988
|
+
properties._acp2Setting = 1;
|
|
184989
|
+
{
|
|
184990
|
+
var error = $root.waproto.ACP2Setting.verify(message.acp2Setting, _depth + 1);
|
|
184991
|
+
if (error)
|
|
184992
|
+
return "acp2Setting." + error;
|
|
184993
|
+
}
|
|
184994
|
+
}
|
|
184465
184995
|
return null;
|
|
184466
184996
|
};
|
|
184467
184997
|
|
|
@@ -184586,6 +185116,11 @@ $root.waproto = (function() {
|
|
|
184586
185116
|
message.associatedPrimaryIdentityKey = object.associatedPrimaryIdentityKey;
|
|
184587
185117
|
if (object.teeContextAnchorMessageId != null)
|
|
184588
185118
|
message.teeContextAnchorMessageId = $String(object.teeContextAnchorMessageId);
|
|
185119
|
+
if (object.acp2Setting != null) {
|
|
185120
|
+
if (!$util.isObject(object.acp2Setting))
|
|
185121
|
+
throw $TypeError(".waproto.MessageContextInfo.acp2Setting: object expected");
|
|
185122
|
+
message.acp2Setting = $root.waproto.ACP2Setting.fromObject(object.acp2Setting, _depth + 1);
|
|
185123
|
+
}
|
|
184589
185124
|
return message;
|
|
184590
185125
|
};
|
|
184591
185126
|
|
|
@@ -184651,6 +185186,8 @@ $root.waproto = (function() {
|
|
|
184651
185186
|
object.associatedPrimaryIdentityKey = options.bytes === $String ? $util.base64.encode(message.associatedPrimaryIdentityKey, 0, message.associatedPrimaryIdentityKey.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.associatedPrimaryIdentityKey) : message.associatedPrimaryIdentityKey;
|
|
184652
185187
|
if (message.teeContextAnchorMessageId != null && $Object.hasOwnProperty.call(message, "teeContextAnchorMessageId"))
|
|
184653
185188
|
object.teeContextAnchorMessageId = message.teeContextAnchorMessageId;
|
|
185189
|
+
if (message.acp2Setting != null && $Object.hasOwnProperty.call(message, "acp2Setting"))
|
|
185190
|
+
object.acp2Setting = $root.waproto.ACP2Setting.toObject(message.acp2Setting, options, _depth + 1);
|
|
184654
185191
|
return object;
|
|
184655
185192
|
};
|
|
184656
185193
|
|