@wppconnect/wa-proto 2.3000.1029320063 → 2.3000.1029365661
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/CHANGELOG.md +4 -0
- package/WAProto.proto +9 -1
- package/dist/index.d.ts +113 -2
- package/dist/index.js +302 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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.1029365661
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -1192,6 +1192,7 @@ message ClientPayload {
|
|
|
1192
1192
|
TEST = 34;
|
|
1193
1193
|
SMART_GLASSES = 35;
|
|
1194
1194
|
BLUE_VR = 36;
|
|
1195
|
+
AR_WRIST = 37;
|
|
1195
1196
|
}
|
|
1196
1197
|
enum ReleaseChannel {
|
|
1197
1198
|
RELEASE = 0;
|
|
@@ -4441,12 +4442,18 @@ message SyncActionValue {
|
|
|
4441
4442
|
optional AvatarUpdatedAction avatarUpdatedAction = 72;
|
|
4442
4443
|
optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
|
|
4443
4444
|
optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
|
|
4445
|
+
optional AiThreadRenameAction aiThreadRenameAction = 76;
|
|
4444
4446
|
message AgentAction {
|
|
4445
4447
|
optional string name = 1;
|
|
4446
4448
|
optional int32 deviceID = 2;
|
|
4447
4449
|
optional bool isDeleted = 3;
|
|
4448
4450
|
}
|
|
4449
4451
|
|
|
4452
|
+
message AiThreadRenameAction {
|
|
4453
|
+
optional string newTitle = 1;
|
|
4454
|
+
optional bool isFromServer = 2;
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4450
4457
|
message AndroidUnsupportedActions {
|
|
4451
4458
|
optional bool allowed = 1;
|
|
4452
4459
|
}
|
|
@@ -4588,6 +4595,7 @@ message SyncActionValue {
|
|
|
4588
4595
|
COMMUNITY = 6;
|
|
4589
4596
|
SERVER_ASSIGNED = 7;
|
|
4590
4597
|
DRAFTED = 8;
|
|
4598
|
+
AI_HANDOFF = 9;
|
|
4591
4599
|
}
|
|
4592
4600
|
}
|
|
4593
4601
|
|
package/dist/index.d.ts
CHANGED
|
@@ -12771,7 +12771,8 @@ export namespace waproto {
|
|
|
12771
12771
|
IPAD = 33,
|
|
12772
12772
|
TEST = 34,
|
|
12773
12773
|
SMART_GLASSES = 35,
|
|
12774
|
-
BLUE_VR = 36
|
|
12774
|
+
BLUE_VR = 36,
|
|
12775
|
+
AR_WRIST = 37
|
|
12775
12776
|
}
|
|
12776
12777
|
|
|
12777
12778
|
/** ReleaseChannel enum. */
|
|
@@ -50678,6 +50679,9 @@ export namespace waproto {
|
|
|
50678
50679
|
|
|
50679
50680
|
/** SyncActionValue newsletterSavedInterestsAction */
|
|
50680
50681
|
newsletterSavedInterestsAction?: (waproto.SyncActionValue.INewsletterSavedInterestsAction|null);
|
|
50682
|
+
|
|
50683
|
+
/** SyncActionValue aiThreadRenameAction */
|
|
50684
|
+
aiThreadRenameAction?: (waproto.SyncActionValue.IAiThreadRenameAction|null);
|
|
50681
50685
|
}
|
|
50682
50686
|
|
|
50683
50687
|
/** Represents a SyncActionValue. */
|
|
@@ -50890,6 +50894,9 @@ export namespace waproto {
|
|
|
50890
50894
|
/** SyncActionValue newsletterSavedInterestsAction. */
|
|
50891
50895
|
public newsletterSavedInterestsAction?: (waproto.SyncActionValue.INewsletterSavedInterestsAction|null);
|
|
50892
50896
|
|
|
50897
|
+
/** SyncActionValue aiThreadRenameAction. */
|
|
50898
|
+
public aiThreadRenameAction?: (waproto.SyncActionValue.IAiThreadRenameAction|null);
|
|
50899
|
+
|
|
50893
50900
|
/**
|
|
50894
50901
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
50895
50902
|
* @param [properties] Properties to set
|
|
@@ -51079,6 +51086,109 @@ export namespace waproto {
|
|
|
51079
51086
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
51080
51087
|
}
|
|
51081
51088
|
|
|
51089
|
+
/** Properties of an AiThreadRenameAction. */
|
|
51090
|
+
interface IAiThreadRenameAction {
|
|
51091
|
+
|
|
51092
|
+
/** AiThreadRenameAction newTitle */
|
|
51093
|
+
newTitle?: (string|null);
|
|
51094
|
+
|
|
51095
|
+
/** AiThreadRenameAction isFromServer */
|
|
51096
|
+
isFromServer?: (boolean|null);
|
|
51097
|
+
}
|
|
51098
|
+
|
|
51099
|
+
/** Represents an AiThreadRenameAction. */
|
|
51100
|
+
class AiThreadRenameAction implements IAiThreadRenameAction {
|
|
51101
|
+
|
|
51102
|
+
/**
|
|
51103
|
+
* Constructs a new AiThreadRenameAction.
|
|
51104
|
+
* @param [properties] Properties to set
|
|
51105
|
+
*/
|
|
51106
|
+
constructor(properties?: waproto.SyncActionValue.IAiThreadRenameAction);
|
|
51107
|
+
|
|
51108
|
+
/** AiThreadRenameAction newTitle. */
|
|
51109
|
+
public newTitle?: (string|null);
|
|
51110
|
+
|
|
51111
|
+
/** AiThreadRenameAction isFromServer. */
|
|
51112
|
+
public isFromServer?: (boolean|null);
|
|
51113
|
+
|
|
51114
|
+
/**
|
|
51115
|
+
* Creates a new AiThreadRenameAction instance using the specified properties.
|
|
51116
|
+
* @param [properties] Properties to set
|
|
51117
|
+
* @returns AiThreadRenameAction instance
|
|
51118
|
+
*/
|
|
51119
|
+
public static create(properties?: waproto.SyncActionValue.IAiThreadRenameAction): waproto.SyncActionValue.AiThreadRenameAction;
|
|
51120
|
+
|
|
51121
|
+
/**
|
|
51122
|
+
* Encodes the specified AiThreadRenameAction message. Does not implicitly {@link waproto.SyncActionValue.AiThreadRenameAction.verify|verify} messages.
|
|
51123
|
+
* @param message AiThreadRenameAction message or plain object to encode
|
|
51124
|
+
* @param [writer] Writer to encode to
|
|
51125
|
+
* @returns Writer
|
|
51126
|
+
*/
|
|
51127
|
+
public static encode(message: waproto.SyncActionValue.IAiThreadRenameAction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51128
|
+
|
|
51129
|
+
/**
|
|
51130
|
+
* Encodes the specified AiThreadRenameAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.AiThreadRenameAction.verify|verify} messages.
|
|
51131
|
+
* @param message AiThreadRenameAction message or plain object to encode
|
|
51132
|
+
* @param [writer] Writer to encode to
|
|
51133
|
+
* @returns Writer
|
|
51134
|
+
*/
|
|
51135
|
+
public static encodeDelimited(message: waproto.SyncActionValue.IAiThreadRenameAction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51136
|
+
|
|
51137
|
+
/**
|
|
51138
|
+
* Decodes an AiThreadRenameAction message from the specified reader or buffer.
|
|
51139
|
+
* @param reader Reader or buffer to decode from
|
|
51140
|
+
* @param [length] Message length if known beforehand
|
|
51141
|
+
* @returns AiThreadRenameAction
|
|
51142
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51143
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51144
|
+
*/
|
|
51145
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.SyncActionValue.AiThreadRenameAction;
|
|
51146
|
+
|
|
51147
|
+
/**
|
|
51148
|
+
* Decodes an AiThreadRenameAction message from the specified reader or buffer, length delimited.
|
|
51149
|
+
* @param reader Reader or buffer to decode from
|
|
51150
|
+
* @returns AiThreadRenameAction
|
|
51151
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51152
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51153
|
+
*/
|
|
51154
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.SyncActionValue.AiThreadRenameAction;
|
|
51155
|
+
|
|
51156
|
+
/**
|
|
51157
|
+
* Verifies an AiThreadRenameAction message.
|
|
51158
|
+
* @param message Plain object to verify
|
|
51159
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
51160
|
+
*/
|
|
51161
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
51162
|
+
|
|
51163
|
+
/**
|
|
51164
|
+
* Creates an AiThreadRenameAction message from a plain object. Also converts values to their respective internal types.
|
|
51165
|
+
* @param object Plain object
|
|
51166
|
+
* @returns AiThreadRenameAction
|
|
51167
|
+
*/
|
|
51168
|
+
public static fromObject(object: { [k: string]: any }): waproto.SyncActionValue.AiThreadRenameAction;
|
|
51169
|
+
|
|
51170
|
+
/**
|
|
51171
|
+
* Creates a plain object from an AiThreadRenameAction message. Also converts values to other types if specified.
|
|
51172
|
+
* @param message AiThreadRenameAction
|
|
51173
|
+
* @param [options] Conversion options
|
|
51174
|
+
* @returns Plain object
|
|
51175
|
+
*/
|
|
51176
|
+
public static toObject(message: waproto.SyncActionValue.AiThreadRenameAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
51177
|
+
|
|
51178
|
+
/**
|
|
51179
|
+
* Converts this AiThreadRenameAction to JSON.
|
|
51180
|
+
* @returns JSON object
|
|
51181
|
+
*/
|
|
51182
|
+
public toJSON(): { [k: string]: any };
|
|
51183
|
+
|
|
51184
|
+
/**
|
|
51185
|
+
* Gets the default type url for AiThreadRenameAction
|
|
51186
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
51187
|
+
* @returns The default type url
|
|
51188
|
+
*/
|
|
51189
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
51190
|
+
}
|
|
51191
|
+
|
|
51082
51192
|
/** Properties of an AndroidUnsupportedActions. */
|
|
51083
51193
|
interface IAndroidUnsupportedActions {
|
|
51084
51194
|
|
|
@@ -53770,7 +53880,8 @@ export namespace waproto {
|
|
|
53770
53880
|
CUSTOM = 5,
|
|
53771
53881
|
COMMUNITY = 6,
|
|
53772
53882
|
SERVER_ASSIGNED = 7,
|
|
53773
|
-
DRAFTED = 8
|
|
53883
|
+
DRAFTED = 8,
|
|
53884
|
+
AI_HANDOFF = 9
|
|
53774
53885
|
}
|
|
53775
53886
|
}
|
|
53776
53887
|
|
package/dist/index.js
CHANGED
|
@@ -37293,6 +37293,7 @@ $root.waproto = (function() {
|
|
|
37293
37293
|
case 34:
|
|
37294
37294
|
case 35:
|
|
37295
37295
|
case 36:
|
|
37296
|
+
case 37:
|
|
37296
37297
|
break;
|
|
37297
37298
|
}
|
|
37298
37299
|
}
|
|
@@ -37559,6 +37560,10 @@ $root.waproto = (function() {
|
|
|
37559
37560
|
case 36:
|
|
37560
37561
|
message.platform = 36;
|
|
37561
37562
|
break;
|
|
37563
|
+
case "AR_WRIST":
|
|
37564
|
+
case 37:
|
|
37565
|
+
message.platform = 37;
|
|
37566
|
+
break;
|
|
37562
37567
|
}
|
|
37563
37568
|
if (object.appVersion != null) {
|
|
37564
37569
|
if (typeof object.appVersion !== "object")
|
|
@@ -38175,6 +38180,7 @@ $root.waproto = (function() {
|
|
|
38175
38180
|
* @property {number} TEST=34 TEST value
|
|
38176
38181
|
* @property {number} SMART_GLASSES=35 SMART_GLASSES value
|
|
38177
38182
|
* @property {number} BLUE_VR=36 BLUE_VR value
|
|
38183
|
+
* @property {number} AR_WRIST=37 AR_WRIST value
|
|
38178
38184
|
*/
|
|
38179
38185
|
UserAgent.Platform = (function() {
|
|
38180
38186
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -38215,6 +38221,7 @@ $root.waproto = (function() {
|
|
|
38215
38221
|
values[valuesById[34] = "TEST"] = 34;
|
|
38216
38222
|
values[valuesById[35] = "SMART_GLASSES"] = 35;
|
|
38217
38223
|
values[valuesById[36] = "BLUE_VR"] = 36;
|
|
38224
|
+
values[valuesById[37] = "AR_WRIST"] = 37;
|
|
38218
38225
|
return values;
|
|
38219
38226
|
})();
|
|
38220
38227
|
|
|
@@ -155723,6 +155730,7 @@ $root.waproto = (function() {
|
|
|
155723
155730
|
* @property {waproto.SyncActionValue.IAvatarUpdatedAction|null} [avatarUpdatedAction] SyncActionValue avatarUpdatedAction
|
|
155724
155731
|
* @property {waproto.SyncActionValue.IPrivateProcessingSettingAction|null} [privateProcessingSettingAction] SyncActionValue privateProcessingSettingAction
|
|
155725
155732
|
* @property {waproto.SyncActionValue.INewsletterSavedInterestsAction|null} [newsletterSavedInterestsAction] SyncActionValue newsletterSavedInterestsAction
|
|
155733
|
+
* @property {waproto.SyncActionValue.IAiThreadRenameAction|null} [aiThreadRenameAction] SyncActionValue aiThreadRenameAction
|
|
155726
155734
|
*/
|
|
155727
155735
|
|
|
155728
155736
|
/**
|
|
@@ -156276,6 +156284,14 @@ $root.waproto = (function() {
|
|
|
156276
156284
|
*/
|
|
156277
156285
|
SyncActionValue.prototype.newsletterSavedInterestsAction = null;
|
|
156278
156286
|
|
|
156287
|
+
/**
|
|
156288
|
+
* SyncActionValue aiThreadRenameAction.
|
|
156289
|
+
* @member {waproto.SyncActionValue.IAiThreadRenameAction|null|undefined} aiThreadRenameAction
|
|
156290
|
+
* @memberof waproto.SyncActionValue
|
|
156291
|
+
* @instance
|
|
156292
|
+
*/
|
|
156293
|
+
SyncActionValue.prototype.aiThreadRenameAction = null;
|
|
156294
|
+
|
|
156279
156295
|
// OneOf field names bound to virtual getters and setters
|
|
156280
156296
|
var $oneOfFields;
|
|
156281
156297
|
|
|
@@ -156681,6 +156697,12 @@ $root.waproto = (function() {
|
|
|
156681
156697
|
set: $util.oneOfSetter($oneOfFields)
|
|
156682
156698
|
});
|
|
156683
156699
|
|
|
156700
|
+
// Virtual OneOf for proto3 optional field
|
|
156701
|
+
Object.defineProperty(SyncActionValue.prototype, "_aiThreadRenameAction", {
|
|
156702
|
+
get: $util.oneOfGetter($oneOfFields = ["aiThreadRenameAction"]),
|
|
156703
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
156704
|
+
});
|
|
156705
|
+
|
|
156684
156706
|
/**
|
|
156685
156707
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
156686
156708
|
* @function create
|
|
@@ -156839,6 +156861,8 @@ $root.waproto = (function() {
|
|
|
156839
156861
|
$root.waproto.SyncActionValue.PrivateProcessingSettingAction.encode(message.privateProcessingSettingAction, writer.uint32(/* id 74, wireType 2 =*/594).fork()).ldelim();
|
|
156840
156862
|
if (message.newsletterSavedInterestsAction != null && Object.hasOwnProperty.call(message, "newsletterSavedInterestsAction"))
|
|
156841
156863
|
$root.waproto.SyncActionValue.NewsletterSavedInterestsAction.encode(message.newsletterSavedInterestsAction, writer.uint32(/* id 75, wireType 2 =*/602).fork()).ldelim();
|
|
156864
|
+
if (message.aiThreadRenameAction != null && Object.hasOwnProperty.call(message, "aiThreadRenameAction"))
|
|
156865
|
+
$root.waproto.SyncActionValue.AiThreadRenameAction.encode(message.aiThreadRenameAction, writer.uint32(/* id 76, wireType 2 =*/610).fork()).ldelim();
|
|
156842
156866
|
return writer;
|
|
156843
156867
|
};
|
|
156844
156868
|
|
|
@@ -157141,6 +157165,10 @@ $root.waproto = (function() {
|
|
|
157141
157165
|
message.newsletterSavedInterestsAction = $root.waproto.SyncActionValue.NewsletterSavedInterestsAction.decode(reader, reader.uint32());
|
|
157142
157166
|
break;
|
|
157143
157167
|
}
|
|
157168
|
+
case 76: {
|
|
157169
|
+
message.aiThreadRenameAction = $root.waproto.SyncActionValue.AiThreadRenameAction.decode(reader, reader.uint32());
|
|
157170
|
+
break;
|
|
157171
|
+
}
|
|
157144
157172
|
default:
|
|
157145
157173
|
reader.skipType(tag & 7);
|
|
157146
157174
|
break;
|
|
@@ -157710,6 +157738,14 @@ $root.waproto = (function() {
|
|
|
157710
157738
|
return "newsletterSavedInterestsAction." + error;
|
|
157711
157739
|
}
|
|
157712
157740
|
}
|
|
157741
|
+
if (message.aiThreadRenameAction != null && message.hasOwnProperty("aiThreadRenameAction")) {
|
|
157742
|
+
properties._aiThreadRenameAction = 1;
|
|
157743
|
+
{
|
|
157744
|
+
var error = $root.waproto.SyncActionValue.AiThreadRenameAction.verify(message.aiThreadRenameAction);
|
|
157745
|
+
if (error)
|
|
157746
|
+
return "aiThreadRenameAction." + error;
|
|
157747
|
+
}
|
|
157748
|
+
}
|
|
157713
157749
|
return null;
|
|
157714
157750
|
};
|
|
157715
157751
|
|
|
@@ -158064,6 +158100,11 @@ $root.waproto = (function() {
|
|
|
158064
158100
|
throw TypeError(".waproto.SyncActionValue.newsletterSavedInterestsAction: object expected");
|
|
158065
158101
|
message.newsletterSavedInterestsAction = $root.waproto.SyncActionValue.NewsletterSavedInterestsAction.fromObject(object.newsletterSavedInterestsAction);
|
|
158066
158102
|
}
|
|
158103
|
+
if (object.aiThreadRenameAction != null) {
|
|
158104
|
+
if (typeof object.aiThreadRenameAction !== "object")
|
|
158105
|
+
throw TypeError(".waproto.SyncActionValue.aiThreadRenameAction: object expected");
|
|
158106
|
+
message.aiThreadRenameAction = $root.waproto.SyncActionValue.AiThreadRenameAction.fromObject(object.aiThreadRenameAction);
|
|
158107
|
+
}
|
|
158067
158108
|
return message;
|
|
158068
158109
|
};
|
|
158069
158110
|
|
|
@@ -158418,6 +158459,11 @@ $root.waproto = (function() {
|
|
|
158418
158459
|
if (options.oneofs)
|
|
158419
158460
|
object._newsletterSavedInterestsAction = "newsletterSavedInterestsAction";
|
|
158420
158461
|
}
|
|
158462
|
+
if (message.aiThreadRenameAction != null && message.hasOwnProperty("aiThreadRenameAction")) {
|
|
158463
|
+
object.aiThreadRenameAction = $root.waproto.SyncActionValue.AiThreadRenameAction.toObject(message.aiThreadRenameAction, options);
|
|
158464
|
+
if (options.oneofs)
|
|
158465
|
+
object._aiThreadRenameAction = "aiThreadRenameAction";
|
|
158466
|
+
}
|
|
158421
158467
|
return object;
|
|
158422
158468
|
};
|
|
158423
158469
|
|
|
@@ -158729,6 +158775,255 @@ $root.waproto = (function() {
|
|
|
158729
158775
|
return AgentAction;
|
|
158730
158776
|
})();
|
|
158731
158777
|
|
|
158778
|
+
SyncActionValue.AiThreadRenameAction = (function() {
|
|
158779
|
+
|
|
158780
|
+
/**
|
|
158781
|
+
* Properties of an AiThreadRenameAction.
|
|
158782
|
+
* @memberof waproto.SyncActionValue
|
|
158783
|
+
* @interface IAiThreadRenameAction
|
|
158784
|
+
* @property {string|null} [newTitle] AiThreadRenameAction newTitle
|
|
158785
|
+
* @property {boolean|null} [isFromServer] AiThreadRenameAction isFromServer
|
|
158786
|
+
*/
|
|
158787
|
+
|
|
158788
|
+
/**
|
|
158789
|
+
* Constructs a new AiThreadRenameAction.
|
|
158790
|
+
* @memberof waproto.SyncActionValue
|
|
158791
|
+
* @classdesc Represents an AiThreadRenameAction.
|
|
158792
|
+
* @implements IAiThreadRenameAction
|
|
158793
|
+
* @constructor
|
|
158794
|
+
* @param {waproto.SyncActionValue.IAiThreadRenameAction=} [properties] Properties to set
|
|
158795
|
+
*/
|
|
158796
|
+
function AiThreadRenameAction(properties) {
|
|
158797
|
+
if (properties)
|
|
158798
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
158799
|
+
if (properties[keys[i]] != null)
|
|
158800
|
+
this[keys[i]] = properties[keys[i]];
|
|
158801
|
+
}
|
|
158802
|
+
|
|
158803
|
+
/**
|
|
158804
|
+
* AiThreadRenameAction newTitle.
|
|
158805
|
+
* @member {string|null|undefined} newTitle
|
|
158806
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158807
|
+
* @instance
|
|
158808
|
+
*/
|
|
158809
|
+
AiThreadRenameAction.prototype.newTitle = null;
|
|
158810
|
+
|
|
158811
|
+
/**
|
|
158812
|
+
* AiThreadRenameAction isFromServer.
|
|
158813
|
+
* @member {boolean|null|undefined} isFromServer
|
|
158814
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158815
|
+
* @instance
|
|
158816
|
+
*/
|
|
158817
|
+
AiThreadRenameAction.prototype.isFromServer = null;
|
|
158818
|
+
|
|
158819
|
+
// OneOf field names bound to virtual getters and setters
|
|
158820
|
+
var $oneOfFields;
|
|
158821
|
+
|
|
158822
|
+
// Virtual OneOf for proto3 optional field
|
|
158823
|
+
Object.defineProperty(AiThreadRenameAction.prototype, "_newTitle", {
|
|
158824
|
+
get: $util.oneOfGetter($oneOfFields = ["newTitle"]),
|
|
158825
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
158826
|
+
});
|
|
158827
|
+
|
|
158828
|
+
// Virtual OneOf for proto3 optional field
|
|
158829
|
+
Object.defineProperty(AiThreadRenameAction.prototype, "_isFromServer", {
|
|
158830
|
+
get: $util.oneOfGetter($oneOfFields = ["isFromServer"]),
|
|
158831
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
158832
|
+
});
|
|
158833
|
+
|
|
158834
|
+
/**
|
|
158835
|
+
* Creates a new AiThreadRenameAction instance using the specified properties.
|
|
158836
|
+
* @function create
|
|
158837
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158838
|
+
* @static
|
|
158839
|
+
* @param {waproto.SyncActionValue.IAiThreadRenameAction=} [properties] Properties to set
|
|
158840
|
+
* @returns {waproto.SyncActionValue.AiThreadRenameAction} AiThreadRenameAction instance
|
|
158841
|
+
*/
|
|
158842
|
+
AiThreadRenameAction.create = function create(properties) {
|
|
158843
|
+
return new AiThreadRenameAction(properties);
|
|
158844
|
+
};
|
|
158845
|
+
|
|
158846
|
+
/**
|
|
158847
|
+
* Encodes the specified AiThreadRenameAction message. Does not implicitly {@link waproto.SyncActionValue.AiThreadRenameAction.verify|verify} messages.
|
|
158848
|
+
* @function encode
|
|
158849
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158850
|
+
* @static
|
|
158851
|
+
* @param {waproto.SyncActionValue.IAiThreadRenameAction} message AiThreadRenameAction message or plain object to encode
|
|
158852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
158853
|
+
* @returns {$protobuf.Writer} Writer
|
|
158854
|
+
*/
|
|
158855
|
+
AiThreadRenameAction.encode = function encode(message, writer) {
|
|
158856
|
+
if (!writer)
|
|
158857
|
+
writer = $Writer.create();
|
|
158858
|
+
if (message.newTitle != null && Object.hasOwnProperty.call(message, "newTitle"))
|
|
158859
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.newTitle);
|
|
158860
|
+
if (message.isFromServer != null && Object.hasOwnProperty.call(message, "isFromServer"))
|
|
158861
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFromServer);
|
|
158862
|
+
return writer;
|
|
158863
|
+
};
|
|
158864
|
+
|
|
158865
|
+
/**
|
|
158866
|
+
* Encodes the specified AiThreadRenameAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.AiThreadRenameAction.verify|verify} messages.
|
|
158867
|
+
* @function encodeDelimited
|
|
158868
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158869
|
+
* @static
|
|
158870
|
+
* @param {waproto.SyncActionValue.IAiThreadRenameAction} message AiThreadRenameAction message or plain object to encode
|
|
158871
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
158872
|
+
* @returns {$protobuf.Writer} Writer
|
|
158873
|
+
*/
|
|
158874
|
+
AiThreadRenameAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
158875
|
+
return this.encode(message, writer).ldelim();
|
|
158876
|
+
};
|
|
158877
|
+
|
|
158878
|
+
/**
|
|
158879
|
+
* Decodes an AiThreadRenameAction message from the specified reader or buffer.
|
|
158880
|
+
* @function decode
|
|
158881
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158882
|
+
* @static
|
|
158883
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
158884
|
+
* @param {number} [length] Message length if known beforehand
|
|
158885
|
+
* @returns {waproto.SyncActionValue.AiThreadRenameAction} AiThreadRenameAction
|
|
158886
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
158887
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
158888
|
+
*/
|
|
158889
|
+
AiThreadRenameAction.decode = function decode(reader, length) {
|
|
158890
|
+
if (!(reader instanceof $Reader))
|
|
158891
|
+
reader = $Reader.create(reader);
|
|
158892
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.SyncActionValue.AiThreadRenameAction();
|
|
158893
|
+
while (reader.pos < end) {
|
|
158894
|
+
var tag = reader.uint32();
|
|
158895
|
+
switch (tag >>> 3) {
|
|
158896
|
+
case 1: {
|
|
158897
|
+
message.newTitle = reader.string();
|
|
158898
|
+
break;
|
|
158899
|
+
}
|
|
158900
|
+
case 2: {
|
|
158901
|
+
message.isFromServer = reader.bool();
|
|
158902
|
+
break;
|
|
158903
|
+
}
|
|
158904
|
+
default:
|
|
158905
|
+
reader.skipType(tag & 7);
|
|
158906
|
+
break;
|
|
158907
|
+
}
|
|
158908
|
+
}
|
|
158909
|
+
return message;
|
|
158910
|
+
};
|
|
158911
|
+
|
|
158912
|
+
/**
|
|
158913
|
+
* Decodes an AiThreadRenameAction message from the specified reader or buffer, length delimited.
|
|
158914
|
+
* @function decodeDelimited
|
|
158915
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158916
|
+
* @static
|
|
158917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
158918
|
+
* @returns {waproto.SyncActionValue.AiThreadRenameAction} AiThreadRenameAction
|
|
158919
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
158920
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
158921
|
+
*/
|
|
158922
|
+
AiThreadRenameAction.decodeDelimited = function decodeDelimited(reader) {
|
|
158923
|
+
if (!(reader instanceof $Reader))
|
|
158924
|
+
reader = new $Reader(reader);
|
|
158925
|
+
return this.decode(reader, reader.uint32());
|
|
158926
|
+
};
|
|
158927
|
+
|
|
158928
|
+
/**
|
|
158929
|
+
* Verifies an AiThreadRenameAction message.
|
|
158930
|
+
* @function verify
|
|
158931
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158932
|
+
* @static
|
|
158933
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
158934
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
158935
|
+
*/
|
|
158936
|
+
AiThreadRenameAction.verify = function verify(message) {
|
|
158937
|
+
if (typeof message !== "object" || message === null)
|
|
158938
|
+
return "object expected";
|
|
158939
|
+
var properties = {};
|
|
158940
|
+
if (message.newTitle != null && message.hasOwnProperty("newTitle")) {
|
|
158941
|
+
properties._newTitle = 1;
|
|
158942
|
+
if (!$util.isString(message.newTitle))
|
|
158943
|
+
return "newTitle: string expected";
|
|
158944
|
+
}
|
|
158945
|
+
if (message.isFromServer != null && message.hasOwnProperty("isFromServer")) {
|
|
158946
|
+
properties._isFromServer = 1;
|
|
158947
|
+
if (typeof message.isFromServer !== "boolean")
|
|
158948
|
+
return "isFromServer: boolean expected";
|
|
158949
|
+
}
|
|
158950
|
+
return null;
|
|
158951
|
+
};
|
|
158952
|
+
|
|
158953
|
+
/**
|
|
158954
|
+
* Creates an AiThreadRenameAction message from a plain object. Also converts values to their respective internal types.
|
|
158955
|
+
* @function fromObject
|
|
158956
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158957
|
+
* @static
|
|
158958
|
+
* @param {Object.<string,*>} object Plain object
|
|
158959
|
+
* @returns {waproto.SyncActionValue.AiThreadRenameAction} AiThreadRenameAction
|
|
158960
|
+
*/
|
|
158961
|
+
AiThreadRenameAction.fromObject = function fromObject(object) {
|
|
158962
|
+
if (object instanceof $root.waproto.SyncActionValue.AiThreadRenameAction)
|
|
158963
|
+
return object;
|
|
158964
|
+
var message = new $root.waproto.SyncActionValue.AiThreadRenameAction();
|
|
158965
|
+
if (object.newTitle != null)
|
|
158966
|
+
message.newTitle = String(object.newTitle);
|
|
158967
|
+
if (object.isFromServer != null)
|
|
158968
|
+
message.isFromServer = Boolean(object.isFromServer);
|
|
158969
|
+
return message;
|
|
158970
|
+
};
|
|
158971
|
+
|
|
158972
|
+
/**
|
|
158973
|
+
* Creates a plain object from an AiThreadRenameAction message. Also converts values to other types if specified.
|
|
158974
|
+
* @function toObject
|
|
158975
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
158976
|
+
* @static
|
|
158977
|
+
* @param {waproto.SyncActionValue.AiThreadRenameAction} message AiThreadRenameAction
|
|
158978
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
158979
|
+
* @returns {Object.<string,*>} Plain object
|
|
158980
|
+
*/
|
|
158981
|
+
AiThreadRenameAction.toObject = function toObject(message, options) {
|
|
158982
|
+
if (!options)
|
|
158983
|
+
options = {};
|
|
158984
|
+
var object = {};
|
|
158985
|
+
if (message.newTitle != null && message.hasOwnProperty("newTitle")) {
|
|
158986
|
+
object.newTitle = message.newTitle;
|
|
158987
|
+
if (options.oneofs)
|
|
158988
|
+
object._newTitle = "newTitle";
|
|
158989
|
+
}
|
|
158990
|
+
if (message.isFromServer != null && message.hasOwnProperty("isFromServer")) {
|
|
158991
|
+
object.isFromServer = message.isFromServer;
|
|
158992
|
+
if (options.oneofs)
|
|
158993
|
+
object._isFromServer = "isFromServer";
|
|
158994
|
+
}
|
|
158995
|
+
return object;
|
|
158996
|
+
};
|
|
158997
|
+
|
|
158998
|
+
/**
|
|
158999
|
+
* Converts this AiThreadRenameAction to JSON.
|
|
159000
|
+
* @function toJSON
|
|
159001
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
159002
|
+
* @instance
|
|
159003
|
+
* @returns {Object.<string,*>} JSON object
|
|
159004
|
+
*/
|
|
159005
|
+
AiThreadRenameAction.prototype.toJSON = function toJSON() {
|
|
159006
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
159007
|
+
};
|
|
159008
|
+
|
|
159009
|
+
/**
|
|
159010
|
+
* Gets the default type url for AiThreadRenameAction
|
|
159011
|
+
* @function getTypeUrl
|
|
159012
|
+
* @memberof waproto.SyncActionValue.AiThreadRenameAction
|
|
159013
|
+
* @static
|
|
159014
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
159015
|
+
* @returns {string} The default type url
|
|
159016
|
+
*/
|
|
159017
|
+
AiThreadRenameAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
159018
|
+
if (typeUrlPrefix === undefined) {
|
|
159019
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
159020
|
+
}
|
|
159021
|
+
return typeUrlPrefix + "/waproto.SyncActionValue.AiThreadRenameAction";
|
|
159022
|
+
};
|
|
159023
|
+
|
|
159024
|
+
return AiThreadRenameAction;
|
|
159025
|
+
})();
|
|
159026
|
+
|
|
158732
159027
|
SyncActionValue.AndroidUnsupportedActions = (function() {
|
|
158733
159028
|
|
|
158734
159029
|
/**
|
|
@@ -165073,6 +165368,7 @@ $root.waproto = (function() {
|
|
|
165073
165368
|
case 6:
|
|
165074
165369
|
case 7:
|
|
165075
165370
|
case 8:
|
|
165371
|
+
case 9:
|
|
165076
165372
|
break;
|
|
165077
165373
|
}
|
|
165078
165374
|
}
|
|
@@ -165156,6 +165452,10 @@ $root.waproto = (function() {
|
|
|
165156
165452
|
case 8:
|
|
165157
165453
|
message.type = 8;
|
|
165158
165454
|
break;
|
|
165455
|
+
case "AI_HANDOFF":
|
|
165456
|
+
case 9:
|
|
165457
|
+
message.type = 9;
|
|
165458
|
+
break;
|
|
165159
165459
|
}
|
|
165160
165460
|
if (object.isImmutable != null)
|
|
165161
165461
|
message.isImmutable = Boolean(object.isImmutable);
|
|
@@ -165274,6 +165574,7 @@ $root.waproto = (function() {
|
|
|
165274
165574
|
* @property {number} COMMUNITY=6 COMMUNITY value
|
|
165275
165575
|
* @property {number} SERVER_ASSIGNED=7 SERVER_ASSIGNED value
|
|
165276
165576
|
* @property {number} DRAFTED=8 DRAFTED value
|
|
165577
|
+
* @property {number} AI_HANDOFF=9 AI_HANDOFF value
|
|
165277
165578
|
*/
|
|
165278
165579
|
LabelEditAction.ListType = (function() {
|
|
165279
165580
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -165286,6 +165587,7 @@ $root.waproto = (function() {
|
|
|
165286
165587
|
values[valuesById[6] = "COMMUNITY"] = 6;
|
|
165287
165588
|
values[valuesById[7] = "SERVER_ASSIGNED"] = 7;
|
|
165288
165589
|
values[valuesById[8] = "DRAFTED"] = 8;
|
|
165590
|
+
values[valuesById[9] = "AI_HANDOFF"] = 9;
|
|
165289
165591
|
return values;
|
|
165290
165592
|
})();
|
|
165291
165593
|
|