@juzi/wechaty-grpc 1.0.21 → 1.0.23

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.
@@ -10,18 +10,12 @@ export class PostSayable extends jspb.Message {
10
10
  getType(): SayableTypeMap[keyof SayableTypeMap];
11
11
  setType(value: SayableTypeMap[keyof SayableTypeMap]): void;
12
12
 
13
- hasId(): boolean;
14
- clearId(): void;
15
13
  getId(): string;
16
14
  setId(value: string): void;
17
15
 
18
- hasText(): boolean;
19
- clearText(): void;
20
16
  getText(): string;
21
17
  setText(value: string): void;
22
18
 
23
- hasFileBox(): boolean;
24
- clearFileBox(): void;
25
19
  getFileBox(): string;
26
20
  setFileBox(value: string): void;
27
21
 
@@ -35,7 +29,11 @@ export class PostSayable extends jspb.Message {
35
29
  getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
30
  setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
31
 
38
- getSayablesCase(): PostSayable.SayablesCase;
32
+ clearMentionIdListList(): void;
33
+ getMentionIdListList(): Array<string>;
34
+ setMentionIdListList(value: Array<string>): void;
35
+ addMentionIdList(value: string, index?: number): string;
36
+
39
37
  serializeBinary(): Uint8Array;
40
38
  toObject(includeInstance?: boolean): PostSayable.AsObject;
41
39
  static toObject(includeInstance: boolean, msg: PostSayable): PostSayable.AsObject;
@@ -54,15 +52,7 @@ export namespace PostSayable {
54
52
  fileBox: string,
55
53
  urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
54
  channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
- }
58
-
59
- export enum SayablesCase {
60
- SAYABLES_NOT_SET = 0,
61
- ID = 2,
62
- TEXT = 3,
63
- FILE_BOX = 4,
64
- URL_LINK = 5,
65
- CHANNEL = 6,
55
+ mentionIdListList: Array<string>,
66
56
  }
67
57
  }
68
58
 
@@ -163,8 +153,10 @@ export class PostCommentRequest extends jspb.Message {
163
153
  getText(): string;
164
154
  setText(value: string): void;
165
155
 
166
- getMentionId(): string;
167
- setMentionId(value: string): void;
156
+ clearMentionIdListList(): void;
157
+ getMentionIdListList(): Array<string>;
158
+ setMentionIdListList(value: Array<string>): void;
159
+ addMentionIdList(value: string, index?: number): string;
168
160
 
169
161
  serializeBinary(): Uint8Array;
170
162
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -180,7 +172,7 @@ export namespace PostCommentRequest {
180
172
  export type AsObject = {
181
173
  postId: string,
182
174
  text: string,
183
- mentionId: string,
175
+ mentionIdListList: Array<string>,
184
176
  }
185
177
  }
186
178
 
@@ -32,7 +32,6 @@ goog.exportSymbol('proto.wechaty.puppet.PostPayloadSayableRequest', null, global
32
32
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadSayableResponse', null, global);
33
33
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadServer', null, global);
34
34
  goog.exportSymbol('proto.wechaty.puppet.PostSayable', null, global);
35
- goog.exportSymbol('proto.wechaty.puppet.PostSayable.SayablesCase', null, global);
36
35
  goog.exportSymbol('proto.wechaty.puppet.PostType', null, global);
37
36
  goog.exportSymbol('proto.wechaty.puppet.SayableType', null, global);
38
37
  /**
@@ -46,7 +45,7 @@ goog.exportSymbol('proto.wechaty.puppet.SayableType', null, global);
46
45
  * @constructor
47
46
  */
48
47
  proto.wechaty.puppet.PostSayable = function(opt_data) {
49
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.wechaty.puppet.PostSayable.oneofGroups_);
48
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostSayable.repeatedFields_, null);
50
49
  };
51
50
  goog.inherits(proto.wechaty.puppet.PostSayable, jspb.Message);
52
51
  if (goog.DEBUG && !COMPILED) {
@@ -109,7 +108,7 @@ if (goog.DEBUG && !COMPILED) {
109
108
  * @constructor
110
109
  */
111
110
  proto.wechaty.puppet.PostCommentRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
111
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostCommentRequest.repeatedFields_, null);
113
112
  };
114
113
  goog.inherits(proto.wechaty.puppet.PostCommentRequest, jspb.Message);
115
114
  if (goog.DEBUG && !COMPILED) {
@@ -268,33 +267,11 @@ if (goog.DEBUG && !COMPILED) {
268
267
  }
269
268
 
270
269
  /**
271
- * Oneof group definitions for this message. Each group defines the field
272
- * numbers belonging to that group. When of these fields' value is set, all
273
- * other fields in the group are cleared. During deserialization, if multiple
274
- * fields are encountered for a group, only the last value seen will be kept.
275
- * @private {!Array<!Array<number>>}
270
+ * List of repeated fields within this message type.
271
+ * @private {!Array<number>}
276
272
  * @const
277
273
  */
278
- proto.wechaty.puppet.PostSayable.oneofGroups_ = [[2,3,4,5,6]];
279
-
280
- /**
281
- * @enum {number}
282
- */
283
- proto.wechaty.puppet.PostSayable.SayablesCase = {
284
- SAYABLES_NOT_SET: 0,
285
- ID: 2,
286
- TEXT: 3,
287
- FILE_BOX: 4,
288
- URL_LINK: 5,
289
- CHANNEL: 6
290
- };
291
-
292
- /**
293
- * @return {proto.wechaty.puppet.PostSayable.SayablesCase}
294
- */
295
- proto.wechaty.puppet.PostSayable.prototype.getSayablesCase = function() {
296
- return /** @type {proto.wechaty.puppet.PostSayable.SayablesCase} */(jspb.Message.computeOneofCase(this, proto.wechaty.puppet.PostSayable.oneofGroups_[0]));
297
- };
274
+ proto.wechaty.puppet.PostSayable.repeatedFields_ = [13];
298
275
 
299
276
 
300
277
 
@@ -332,7 +309,8 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
332
309
  text: jspb.Message.getFieldWithDefault(msg, 3, ""),
333
310
  fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
334
311
  urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
335
- channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
312
+ channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f),
313
+ mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
336
314
  };
337
315
 
338
316
  if (includeInstance) {
@@ -395,6 +373,10 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
395
373
  reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
396
374
  msg.setChannel(value);
397
375
  break;
376
+ case 13:
377
+ var value = /** @type {string} */ (reader.readString());
378
+ msg.addMentionIdList(value);
379
+ break;
398
380
  default:
399
381
  reader.skipField();
400
382
  break;
@@ -431,22 +413,22 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
431
413
  f
432
414
  );
433
415
  }
434
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
435
- if (f != null) {
416
+ f = message.getId();
417
+ if (f.length > 0) {
436
418
  writer.writeString(
437
419
  2,
438
420
  f
439
421
  );
440
422
  }
441
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
442
- if (f != null) {
423
+ f = message.getText();
424
+ if (f.length > 0) {
443
425
  writer.writeString(
444
426
  3,
445
427
  f
446
428
  );
447
429
  }
448
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
449
- if (f != null) {
430
+ f = message.getFileBox();
431
+ if (f.length > 0) {
450
432
  writer.writeString(
451
433
  4,
452
434
  f
@@ -468,6 +450,13 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
468
450
  wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
469
451
  );
470
452
  }
453
+ f = message.getMentionIdListList();
454
+ if (f.length > 0) {
455
+ writer.writeRepeatedString(
456
+ 13,
457
+ f
458
+ );
459
+ }
471
460
  };
472
461
 
473
462
 
@@ -503,25 +492,7 @@ proto.wechaty.puppet.PostSayable.prototype.getId = function() {
503
492
  * @return {!proto.wechaty.puppet.PostSayable} returns this
504
493
  */
505
494
  proto.wechaty.puppet.PostSayable.prototype.setId = function(value) {
506
- return jspb.Message.setOneofField(this, 2, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
507
- };
508
-
509
-
510
- /**
511
- * Clears the field making it undefined.
512
- * @return {!proto.wechaty.puppet.PostSayable} returns this
513
- */
514
- proto.wechaty.puppet.PostSayable.prototype.clearId = function() {
515
- return jspb.Message.setOneofField(this, 2, proto.wechaty.puppet.PostSayable.oneofGroups_[0], undefined);
516
- };
517
-
518
-
519
- /**
520
- * Returns whether this field is set.
521
- * @return {boolean}
522
- */
523
- proto.wechaty.puppet.PostSayable.prototype.hasId = function() {
524
- return jspb.Message.getField(this, 2) != null;
495
+ return jspb.Message.setProto3StringField(this, 2, value);
525
496
  };
526
497
 
527
498
 
@@ -539,25 +510,7 @@ proto.wechaty.puppet.PostSayable.prototype.getText = function() {
539
510
  * @return {!proto.wechaty.puppet.PostSayable} returns this
540
511
  */
541
512
  proto.wechaty.puppet.PostSayable.prototype.setText = function(value) {
542
- return jspb.Message.setOneofField(this, 3, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
543
- };
544
-
545
-
546
- /**
547
- * Clears the field making it undefined.
548
- * @return {!proto.wechaty.puppet.PostSayable} returns this
549
- */
550
- proto.wechaty.puppet.PostSayable.prototype.clearText = function() {
551
- return jspb.Message.setOneofField(this, 3, proto.wechaty.puppet.PostSayable.oneofGroups_[0], undefined);
552
- };
553
-
554
-
555
- /**
556
- * Returns whether this field is set.
557
- * @return {boolean}
558
- */
559
- proto.wechaty.puppet.PostSayable.prototype.hasText = function() {
560
- return jspb.Message.getField(this, 3) != null;
513
+ return jspb.Message.setProto3StringField(this, 3, value);
561
514
  };
562
515
 
563
516
 
@@ -575,25 +528,7 @@ proto.wechaty.puppet.PostSayable.prototype.getFileBox = function() {
575
528
  * @return {!proto.wechaty.puppet.PostSayable} returns this
576
529
  */
577
530
  proto.wechaty.puppet.PostSayable.prototype.setFileBox = function(value) {
578
- return jspb.Message.setOneofField(this, 4, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
579
- };
580
-
581
-
582
- /**
583
- * Clears the field making it undefined.
584
- * @return {!proto.wechaty.puppet.PostSayable} returns this
585
- */
586
- proto.wechaty.puppet.PostSayable.prototype.clearFileBox = function() {
587
- return jspb.Message.setOneofField(this, 4, proto.wechaty.puppet.PostSayable.oneofGroups_[0], undefined);
588
- };
589
-
590
-
591
- /**
592
- * Returns whether this field is set.
593
- * @return {boolean}
594
- */
595
- proto.wechaty.puppet.PostSayable.prototype.hasFileBox = function() {
596
- return jspb.Message.getField(this, 4) != null;
531
+ return jspb.Message.setProto3StringField(this, 4, value);
597
532
  };
598
533
 
599
534
 
@@ -612,7 +547,7 @@ proto.wechaty.puppet.PostSayable.prototype.getUrlLink = function() {
612
547
  * @return {!proto.wechaty.puppet.PostSayable} returns this
613
548
  */
614
549
  proto.wechaty.puppet.PostSayable.prototype.setUrlLink = function(value) {
615
- return jspb.Message.setOneofWrapperField(this, 5, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
550
+ return jspb.Message.setWrapperField(this, 5, value);
616
551
  };
617
552
 
618
553
 
@@ -649,7 +584,7 @@ proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
649
584
  * @return {!proto.wechaty.puppet.PostSayable} returns this
650
585
  */
651
586
  proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
652
- return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
587
+ return jspb.Message.setWrapperField(this, 6, value);
653
588
  };
654
589
 
655
590
 
@@ -671,6 +606,43 @@ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
671
606
  };
672
607
 
673
608
 
609
+ /**
610
+ * repeated string mention_id_list = 13;
611
+ * @return {!Array<string>}
612
+ */
613
+ proto.wechaty.puppet.PostSayable.prototype.getMentionIdListList = function() {
614
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
615
+ };
616
+
617
+
618
+ /**
619
+ * @param {!Array<string>} value
620
+ * @return {!proto.wechaty.puppet.PostSayable} returns this
621
+ */
622
+ proto.wechaty.puppet.PostSayable.prototype.setMentionIdListList = function(value) {
623
+ return jspb.Message.setField(this, 13, value || []);
624
+ };
625
+
626
+
627
+ /**
628
+ * @param {string} value
629
+ * @param {number=} opt_index
630
+ * @return {!proto.wechaty.puppet.PostSayable} returns this
631
+ */
632
+ proto.wechaty.puppet.PostSayable.prototype.addMentionIdList = function(value, opt_index) {
633
+ return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
634
+ };
635
+
636
+
637
+ /**
638
+ * Clears the list making it empty but non-null.
639
+ * @return {!proto.wechaty.puppet.PostSayable} returns this
640
+ */
641
+ proto.wechaty.puppet.PostSayable.prototype.clearMentionIdListList = function() {
642
+ return this.setMentionIdListList([]);
643
+ };
644
+
645
+
674
646
 
675
647
  /**
676
648
  * List of repeated fields within this message type.
@@ -1343,6 +1315,13 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1343
1315
 
1344
1316
 
1345
1317
 
1318
+ /**
1319
+ * List of repeated fields within this message type.
1320
+ * @private {!Array<number>}
1321
+ * @const
1322
+ */
1323
+ proto.wechaty.puppet.PostCommentRequest.repeatedFields_ = [3];
1324
+
1346
1325
 
1347
1326
 
1348
1327
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1376,7 +1355,7 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1376
1355
  var f, obj = {
1377
1356
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1378
1357
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1379
- mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
1358
+ mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1380
1359
  };
1381
1360
 
1382
1361
  if (includeInstance) {
@@ -1423,7 +1402,7 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1423
1402
  break;
1424
1403
  case 3:
1425
1404
  var value = /** @type {string} */ (reader.readString());
1426
- msg.setMentionId(value);
1405
+ msg.addMentionIdList(value);
1427
1406
  break;
1428
1407
  default:
1429
1408
  reader.skipField();
@@ -1468,9 +1447,9 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1468
1447
  f
1469
1448
  );
1470
1449
  }
1471
- f = message.getMentionId();
1450
+ f = message.getMentionIdListList();
1472
1451
  if (f.length > 0) {
1473
- writer.writeString(
1452
+ writer.writeRepeatedString(
1474
1453
  3,
1475
1454
  f
1476
1455
  );
@@ -1515,20 +1494,39 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1515
1494
 
1516
1495
 
1517
1496
  /**
1518
- * optional string mention_id = 3;
1519
- * @return {string}
1497
+ * repeated string mention_id_list = 3;
1498
+ * @return {!Array<string>}
1520
1499
  */
1521
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionId = function() {
1522
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1500
+ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionIdListList = function() {
1501
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1502
+ };
1503
+
1504
+
1505
+ /**
1506
+ * @param {!Array<string>} value
1507
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1508
+ */
1509
+ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionIdListList = function(value) {
1510
+ return jspb.Message.setField(this, 3, value || []);
1523
1511
  };
1524
1512
 
1525
1513
 
1526
1514
  /**
1527
1515
  * @param {string} value
1516
+ * @param {number=} opt_index
1528
1517
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1529
1518
  */
1530
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionId = function(value) {
1531
- return jspb.Message.setProto3StringField(this, 3, value);
1519
+ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionIdList = function(value, opt_index) {
1520
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1521
+ };
1522
+
1523
+
1524
+ /**
1525
+ * Clears the list making it empty but non-null.
1526
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1527
+ */
1528
+ proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionIdListList = function() {
1529
+ return this.setMentionIdListList([]);
1532
1530
  };
1533
1531
 
1534
1532
 
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.21
12
+ version: 1.0.23
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2680,8 +2680,10 @@ definitions:
2680
2680
  type: string
2681
2681
  text:
2682
2682
  type: string
2683
- mentionId:
2684
- type: string
2683
+ mentionIdList:
2684
+ type: array
2685
+ items:
2686
+ type: string
2685
2687
  puppetPostCommentResponse:
2686
2688
  type: object
2687
2689
  properties:
@@ -2772,6 +2774,10 @@ definitions:
2772
2774
  $ref: '#/definitions/puppetUrlLinkPayload'
2773
2775
  channel:
2774
2776
  $ref: '#/definitions/puppetChannelPayload'
2777
+ mentionIdList:
2778
+ type: array
2779
+ items:
2780
+ type: string
2775
2781
  puppetPostType:
2776
2782
  type: string
2777
2783
  enum:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.21",
6
+ "version": "1.0.23",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3894,8 +3894,11 @@
3894
3894
  "text": {
3895
3895
  "type": "string"
3896
3896
  },
3897
- "mentionId": {
3898
- "type": "string"
3897
+ "mentionIdList": {
3898
+ "type": "array",
3899
+ "items": {
3900
+ "type": "string"
3901
+ }
3899
3902
  }
3900
3903
  }
3901
3904
  },
@@ -4033,6 +4036,12 @@
4033
4036
  },
4034
4037
  "channel": {
4035
4038
  "$ref": "#/definitions/puppetChannelPayload"
4039
+ },
4040
+ "mentionIdList": {
4041
+ "type": "array",
4042
+ "items": {
4043
+ "type": "string"
4044
+ }
4036
4045
  }
4037
4046
  }
4038
4047
  },
@@ -26,13 +26,14 @@ enum SayableType {
26
26
 
27
27
  message PostSayable {
28
28
  SayableType type = 1;
29
- oneof sayables {
30
- string id = 2; // 服务器端获取的Post只传回id,异步进行获取
31
- string text = 3;
32
- string file_box = 4; // FileBox.toJSON()
33
- UrlLinkPayload url_link = 5;
34
- ChannelPayload channel = 6;
35
- }
29
+
30
+ string id = 2; // 服务器端获取的Post只传回id,异步进行获取
31
+ string text = 3;
32
+ string file_box = 4; // FileBox.toJSON()
33
+ UrlLinkPayload url_link = 5;
34
+ ChannelPayload channel = 6;
35
+
36
+ repeated string mention_id_list = 13; // 文本类型的sayable可传,朋友圈暂不支持
36
37
  }
37
38
 
38
39
  message PostPayloadClient {
@@ -59,7 +60,7 @@ message PostPayloadServer {
59
60
  message PostCommentRequest {
60
61
  string post_id = 1;
61
62
  string text = 2;
62
- string mention_id = 3;
63
+ repeated string mention_id_list = 3;
63
64
  }
64
65
 
65
66
  message PostCommentResponse {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageJson = void 0;
4
4
  exports.packageJson = {
5
5
  "name": "@juzi/wechaty-grpc",
6
- "version": "1.0.21",
6
+ "version": "1.0.23",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -10,18 +10,12 @@ export class PostSayable extends jspb.Message {
10
10
  getType(): SayableTypeMap[keyof SayableTypeMap];
11
11
  setType(value: SayableTypeMap[keyof SayableTypeMap]): void;
12
12
 
13
- hasId(): boolean;
14
- clearId(): void;
15
13
  getId(): string;
16
14
  setId(value: string): void;
17
15
 
18
- hasText(): boolean;
19
- clearText(): void;
20
16
  getText(): string;
21
17
  setText(value: string): void;
22
18
 
23
- hasFileBox(): boolean;
24
- clearFileBox(): void;
25
19
  getFileBox(): string;
26
20
  setFileBox(value: string): void;
27
21
 
@@ -35,7 +29,11 @@ export class PostSayable extends jspb.Message {
35
29
  getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
30
  setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
31
 
38
- getSayablesCase(): PostSayable.SayablesCase;
32
+ clearMentionIdListList(): void;
33
+ getMentionIdListList(): Array<string>;
34
+ setMentionIdListList(value: Array<string>): void;
35
+ addMentionIdList(value: string, index?: number): string;
36
+
39
37
  serializeBinary(): Uint8Array;
40
38
  toObject(includeInstance?: boolean): PostSayable.AsObject;
41
39
  static toObject(includeInstance: boolean, msg: PostSayable): PostSayable.AsObject;
@@ -54,15 +52,7 @@ export namespace PostSayable {
54
52
  fileBox: string,
55
53
  urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
54
  channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
- }
58
-
59
- export enum SayablesCase {
60
- SAYABLES_NOT_SET = 0,
61
- ID = 2,
62
- TEXT = 3,
63
- FILE_BOX = 4,
64
- URL_LINK = 5,
65
- CHANNEL = 6,
55
+ mentionIdListList: Array<string>,
66
56
  }
67
57
  }
68
58
 
@@ -163,8 +153,10 @@ export class PostCommentRequest extends jspb.Message {
163
153
  getText(): string;
164
154
  setText(value: string): void;
165
155
 
166
- getMentionId(): string;
167
- setMentionId(value: string): void;
156
+ clearMentionIdListList(): void;
157
+ getMentionIdListList(): Array<string>;
158
+ setMentionIdListList(value: Array<string>): void;
159
+ addMentionIdList(value: string, index?: number): string;
168
160
 
169
161
  serializeBinary(): Uint8Array;
170
162
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -180,7 +172,7 @@ export namespace PostCommentRequest {
180
172
  export type AsObject = {
181
173
  postId: string,
182
174
  text: string,
183
- mentionId: string,
175
+ mentionIdListList: Array<string>,
184
176
  }
185
177
  }
186
178