@juzi/wechaty-grpc 1.0.20 → 1.0.22

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.
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
30
30
  getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
31
31
  setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
32
32
 
33
- hasCahnel(): boolean;
34
- clearCahnel(): void;
35
- getCahnel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
- setCahnel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
33
+ hasChannel(): boolean;
34
+ clearChannel(): void;
35
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
37
 
38
38
  getSayablesCase(): PostSayable.SayablesCase;
39
39
  serializeBinary(): Uint8Array;
@@ -53,7 +53,7 @@ export namespace PostSayable {
53
53
  text: string,
54
54
  fileBox: string,
55
55
  urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
- cahnel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
56
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
57
  }
58
58
 
59
59
  export enum SayablesCase {
@@ -62,7 +62,7 @@ export namespace PostSayable {
62
62
  TEXT = 3,
63
63
  FILE_BOX = 4,
64
64
  URL_LINK = 5,
65
- CAHNEL = 6,
65
+ CHANNEL = 6,
66
66
  }
67
67
  }
68
68
 
@@ -163,8 +163,10 @@ export class PostCommentRequest extends jspb.Message {
163
163
  getText(): string;
164
164
  setText(value: string): void;
165
165
 
166
- getMentionId(): string;
167
- setMentionId(value: string): void;
166
+ clearMentionalIdListList(): void;
167
+ getMentionalIdListList(): Array<string>;
168
+ setMentionalIdListList(value: Array<string>): void;
169
+ addMentionalIdList(value: string, index?: number): string;
168
170
 
169
171
  serializeBinary(): Uint8Array;
170
172
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -180,7 +182,7 @@ export namespace PostCommentRequest {
180
182
  export type AsObject = {
181
183
  postId: string,
182
184
  text: string,
183
- mentionId: string,
185
+ mentionalIdListList: Array<string>,
184
186
  }
185
187
  }
186
188
 
@@ -109,7 +109,7 @@ if (goog.DEBUG && !COMPILED) {
109
109
  * @constructor
110
110
  */
111
111
  proto.wechaty.puppet.PostCommentRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostCommentRequest.repeatedFields_, null);
113
113
  };
114
114
  goog.inherits(proto.wechaty.puppet.PostCommentRequest, jspb.Message);
115
115
  if (goog.DEBUG && !COMPILED) {
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
286
286
  TEXT: 3,
287
287
  FILE_BOX: 4,
288
288
  URL_LINK: 5,
289
- CAHNEL: 6
289
+ CHANNEL: 6
290
290
  };
291
291
 
292
292
  /**
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
332
332
  text: jspb.Message.getFieldWithDefault(msg, 3, ""),
333
333
  fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
334
334
  urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
335
- cahnel: (f = msg.getCahnel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
335
+ channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
336
336
  };
337
337
 
338
338
  if (includeInstance) {
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
393
393
  case 6:
394
394
  var value = new wechaty_puppet_channel_pb.ChannelPayload;
395
395
  reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
396
- msg.setCahnel(value);
396
+ msg.setChannel(value);
397
397
  break;
398
398
  default:
399
399
  reader.skipField();
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
460
460
  wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
461
461
  );
462
462
  }
463
- f = message.getCahnel();
463
+ f = message.getChannel();
464
464
  if (f != null) {
465
465
  writer.writeMessage(
466
466
  6,
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
635
635
 
636
636
 
637
637
  /**
638
- * optional ChannelPayload cahnel = 6;
638
+ * optional ChannelPayload channel = 6;
639
639
  * @return {?proto.wechaty.puppet.ChannelPayload}
640
640
  */
641
- proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
641
+ proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
642
642
  return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
643
643
  jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
644
644
  };
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
648
648
  * @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
649
649
  * @return {!proto.wechaty.puppet.PostSayable} returns this
650
650
  */
651
- proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
651
+ proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
652
652
  return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
653
653
  };
654
654
 
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
657
657
  * Clears the message field making it undefined.
658
658
  * @return {!proto.wechaty.puppet.PostSayable} returns this
659
659
  */
660
- proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
661
- return this.setCahnel(undefined);
660
+ proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
661
+ return this.setChannel(undefined);
662
662
  };
663
663
 
664
664
 
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
666
666
  * Returns whether this field is set.
667
667
  * @return {boolean}
668
668
  */
669
- proto.wechaty.puppet.PostSayable.prototype.hasCahnel = function() {
669
+ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
670
670
  return jspb.Message.getField(this, 6) != null;
671
671
  };
672
672
 
@@ -1343,6 +1343,13 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1343
1343
 
1344
1344
 
1345
1345
 
1346
+ /**
1347
+ * List of repeated fields within this message type.
1348
+ * @private {!Array<number>}
1349
+ * @const
1350
+ */
1351
+ proto.wechaty.puppet.PostCommentRequest.repeatedFields_ = [3];
1352
+
1346
1353
 
1347
1354
 
1348
1355
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1376,7 +1383,7 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1376
1383
  var f, obj = {
1377
1384
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1378
1385
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1379
- mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
1386
+ mentionalIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1380
1387
  };
1381
1388
 
1382
1389
  if (includeInstance) {
@@ -1423,7 +1430,7 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1423
1430
  break;
1424
1431
  case 3:
1425
1432
  var value = /** @type {string} */ (reader.readString());
1426
- msg.setMentionId(value);
1433
+ msg.addMentionalIdList(value);
1427
1434
  break;
1428
1435
  default:
1429
1436
  reader.skipField();
@@ -1468,9 +1475,9 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1468
1475
  f
1469
1476
  );
1470
1477
  }
1471
- f = message.getMentionId();
1478
+ f = message.getMentionalIdListList();
1472
1479
  if (f.length > 0) {
1473
- writer.writeString(
1480
+ writer.writeRepeatedString(
1474
1481
  3,
1475
1482
  f
1476
1483
  );
@@ -1515,20 +1522,39 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1515
1522
 
1516
1523
 
1517
1524
  /**
1518
- * optional string mention_id = 3;
1519
- * @return {string}
1525
+ * repeated string mentional_id_list = 3;
1526
+ * @return {!Array<string>}
1520
1527
  */
1521
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionId = function() {
1522
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1528
+ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionalIdListList = function() {
1529
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * @param {!Array<string>} value
1535
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1536
+ */
1537
+ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionalIdListList = function(value) {
1538
+ return jspb.Message.setField(this, 3, value || []);
1523
1539
  };
1524
1540
 
1525
1541
 
1526
1542
  /**
1527
1543
  * @param {string} value
1544
+ * @param {number=} opt_index
1545
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1546
+ */
1547
+ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionalIdList = function(value, opt_index) {
1548
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Clears the list making it empty but non-null.
1528
1554
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1529
1555
  */
1530
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionId = function(value) {
1531
- return jspb.Message.setProto3StringField(this, 3, value);
1556
+ proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionalIdListList = function() {
1557
+ return this.setMentionalIdListList([]);
1532
1558
  };
1533
1559
 
1534
1560
 
@@ -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.20
12
+ version: 1.0.22
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
+ mentionalIdList:
2684
+ type: array
2685
+ items:
2686
+ type: string
2685
2687
  puppetPostCommentResponse:
2686
2688
  type: object
2687
2689
  properties:
@@ -2770,7 +2772,7 @@ definitions:
2770
2772
  type: string
2771
2773
  urlLink:
2772
2774
  $ref: '#/definitions/puppetUrlLinkPayload'
2773
- cahnel:
2775
+ channel:
2774
2776
  $ref: '#/definitions/puppetChannelPayload'
2775
2777
  puppetPostType:
2776
2778
  type: string
@@ -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.20",
6
+ "version": "1.0.22",
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
+ "mentionalIdList": {
3898
+ "type": "array",
3899
+ "items": {
3900
+ "type": "string"
3901
+ }
3899
3902
  }
3900
3903
  }
3901
3904
  },
@@ -4031,7 +4034,7 @@
4031
4034
  "urlLink": {
4032
4035
  "$ref": "#/definitions/puppetUrlLinkPayload"
4033
4036
  },
4034
- "cahnel": {
4037
+ "channel": {
4035
4038
  "$ref": "#/definitions/puppetChannelPayload"
4036
4039
  }
4037
4040
  }
@@ -31,7 +31,7 @@ message PostSayable {
31
31
  string text = 3;
32
32
  string file_box = 4; // FileBox.toJSON()
33
33
  UrlLinkPayload url_link = 5;
34
- ChannelPayload cahnel = 6;
34
+ ChannelPayload channel = 6;
35
35
  }
36
36
  }
37
37
 
@@ -59,7 +59,7 @@ message PostPayloadServer {
59
59
  message PostCommentRequest {
60
60
  string post_id = 1;
61
61
  string text = 2;
62
- string mention_id = 3;
62
+ repeated string mentional_id_list = 3;
63
63
  }
64
64
 
65
65
  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.20",
6
+ "version": "1.0.22",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
30
30
  getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
31
31
  setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
32
32
 
33
- hasCahnel(): boolean;
34
- clearCahnel(): void;
35
- getCahnel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
- setCahnel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
33
+ hasChannel(): boolean;
34
+ clearChannel(): void;
35
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
37
 
38
38
  getSayablesCase(): PostSayable.SayablesCase;
39
39
  serializeBinary(): Uint8Array;
@@ -53,7 +53,7 @@ export namespace PostSayable {
53
53
  text: string,
54
54
  fileBox: string,
55
55
  urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
- cahnel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
56
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
57
  }
58
58
 
59
59
  export enum SayablesCase {
@@ -62,7 +62,7 @@ export namespace PostSayable {
62
62
  TEXT = 3,
63
63
  FILE_BOX = 4,
64
64
  URL_LINK = 5,
65
- CAHNEL = 6,
65
+ CHANNEL = 6,
66
66
  }
67
67
  }
68
68
 
@@ -163,8 +163,10 @@ export class PostCommentRequest extends jspb.Message {
163
163
  getText(): string;
164
164
  setText(value: string): void;
165
165
 
166
- getMentionId(): string;
167
- setMentionId(value: string): void;
166
+ clearMentionalIdListList(): void;
167
+ getMentionalIdListList(): Array<string>;
168
+ setMentionalIdListList(value: Array<string>): void;
169
+ addMentionalIdList(value: string, index?: number): string;
168
170
 
169
171
  serializeBinary(): Uint8Array;
170
172
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -180,7 +182,7 @@ export namespace PostCommentRequest {
180
182
  export type AsObject = {
181
183
  postId: string,
182
184
  text: string,
183
- mentionId: string,
185
+ mentionalIdListList: Array<string>,
184
186
  }
185
187
  }
186
188
 
@@ -109,7 +109,7 @@ if (goog.DEBUG && !COMPILED) {
109
109
  * @constructor
110
110
  */
111
111
  proto.wechaty.puppet.PostCommentRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostCommentRequest.repeatedFields_, null);
113
113
  };
114
114
  goog.inherits(proto.wechaty.puppet.PostCommentRequest, jspb.Message);
115
115
  if (goog.DEBUG && !COMPILED) {
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
286
286
  TEXT: 3,
287
287
  FILE_BOX: 4,
288
288
  URL_LINK: 5,
289
- CAHNEL: 6
289
+ CHANNEL: 6
290
290
  };
291
291
 
292
292
  /**
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
332
332
  text: jspb.Message.getFieldWithDefault(msg, 3, ""),
333
333
  fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
334
334
  urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
335
- cahnel: (f = msg.getCahnel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
335
+ channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
336
336
  };
337
337
 
338
338
  if (includeInstance) {
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
393
393
  case 6:
394
394
  var value = new wechaty_puppet_channel_pb.ChannelPayload;
395
395
  reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
396
- msg.setCahnel(value);
396
+ msg.setChannel(value);
397
397
  break;
398
398
  default:
399
399
  reader.skipField();
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
460
460
  wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
461
461
  );
462
462
  }
463
- f = message.getCahnel();
463
+ f = message.getChannel();
464
464
  if (f != null) {
465
465
  writer.writeMessage(
466
466
  6,
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
635
635
 
636
636
 
637
637
  /**
638
- * optional ChannelPayload cahnel = 6;
638
+ * optional ChannelPayload channel = 6;
639
639
  * @return {?proto.wechaty.puppet.ChannelPayload}
640
640
  */
641
- proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
641
+ proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
642
642
  return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
643
643
  jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
644
644
  };
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
648
648
  * @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
649
649
  * @return {!proto.wechaty.puppet.PostSayable} returns this
650
650
  */
651
- proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
651
+ proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
652
652
  return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
653
653
  };
654
654
 
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
657
657
  * Clears the message field making it undefined.
658
658
  * @return {!proto.wechaty.puppet.PostSayable} returns this
659
659
  */
660
- proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
661
- return this.setCahnel(undefined);
660
+ proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
661
+ return this.setChannel(undefined);
662
662
  };
663
663
 
664
664
 
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
666
666
  * Returns whether this field is set.
667
667
  * @return {boolean}
668
668
  */
669
- proto.wechaty.puppet.PostSayable.prototype.hasCahnel = function() {
669
+ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
670
670
  return jspb.Message.getField(this, 6) != null;
671
671
  };
672
672
 
@@ -1343,6 +1343,13 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1343
1343
 
1344
1344
 
1345
1345
 
1346
+ /**
1347
+ * List of repeated fields within this message type.
1348
+ * @private {!Array<number>}
1349
+ * @const
1350
+ */
1351
+ proto.wechaty.puppet.PostCommentRequest.repeatedFields_ = [3];
1352
+
1346
1353
 
1347
1354
 
1348
1355
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1376,7 +1383,7 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1376
1383
  var f, obj = {
1377
1384
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1378
1385
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1379
- mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
1386
+ mentionalIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1380
1387
  };
1381
1388
 
1382
1389
  if (includeInstance) {
@@ -1423,7 +1430,7 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1423
1430
  break;
1424
1431
  case 3:
1425
1432
  var value = /** @type {string} */ (reader.readString());
1426
- msg.setMentionId(value);
1433
+ msg.addMentionalIdList(value);
1427
1434
  break;
1428
1435
  default:
1429
1436
  reader.skipField();
@@ -1468,9 +1475,9 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1468
1475
  f
1469
1476
  );
1470
1477
  }
1471
- f = message.getMentionId();
1478
+ f = message.getMentionalIdListList();
1472
1479
  if (f.length > 0) {
1473
- writer.writeString(
1480
+ writer.writeRepeatedString(
1474
1481
  3,
1475
1482
  f
1476
1483
  );
@@ -1515,20 +1522,39 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1515
1522
 
1516
1523
 
1517
1524
  /**
1518
- * optional string mention_id = 3;
1519
- * @return {string}
1525
+ * repeated string mentional_id_list = 3;
1526
+ * @return {!Array<string>}
1520
1527
  */
1521
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionId = function() {
1522
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1528
+ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionalIdListList = function() {
1529
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * @param {!Array<string>} value
1535
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1536
+ */
1537
+ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionalIdListList = function(value) {
1538
+ return jspb.Message.setField(this, 3, value || []);
1523
1539
  };
1524
1540
 
1525
1541
 
1526
1542
  /**
1527
1543
  * @param {string} value
1544
+ * @param {number=} opt_index
1545
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1546
+ */
1547
+ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionalIdList = function(value, opt_index) {
1548
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Clears the list making it empty but non-null.
1528
1554
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1529
1555
  */
1530
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionId = function(value) {
1531
- return jspb.Message.setProto3StringField(this, 3, value);
1556
+ proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionalIdListList = function() {
1557
+ return this.setMentionalIdListList([]);
1532
1558
  };
1533
1559
 
1534
1560
 
@@ -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.20
12
+ version: 1.0.22
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
+ mentionalIdList:
2684
+ type: array
2685
+ items:
2686
+ type: string
2685
2687
  puppetPostCommentResponse:
2686
2688
  type: object
2687
2689
  properties:
@@ -2770,7 +2772,7 @@ definitions:
2770
2772
  type: string
2771
2773
  urlLink:
2772
2774
  $ref: '#/definitions/puppetUrlLinkPayload'
2773
- cahnel:
2775
+ channel:
2774
2776
  $ref: '#/definitions/puppetChannelPayload'
2775
2777
  puppetPostType:
2776
2778
  type: string
@@ -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.20",
6
+ "version": "1.0.22",
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
+ "mentionalIdList": {
3898
+ "type": "array",
3899
+ "items": {
3900
+ "type": "string"
3901
+ }
3899
3902
  }
3900
3903
  }
3901
3904
  },
@@ -4031,7 +4034,7 @@
4031
4034
  "urlLink": {
4032
4035
  "$ref": "#/definitions/puppetUrlLinkPayload"
4033
4036
  },
4034
- "cahnel": {
4037
+ "channel": {
4035
4038
  "$ref": "#/definitions/puppetChannelPayload"
4036
4039
  }
4037
4040
  }
@@ -31,7 +31,7 @@ message PostSayable {
31
31
  string text = 3;
32
32
  string file_box = 4; // FileBox.toJSON()
33
33
  UrlLinkPayload url_link = 5;
34
- ChannelPayload cahnel = 6;
34
+ ChannelPayload channel = 6;
35
35
  }
36
36
  }
37
37
 
@@ -59,7 +59,7 @@ message PostPayloadServer {
59
59
  message PostCommentRequest {
60
60
  string post_id = 1;
61
61
  string text = 2;
62
- string mention_id = 3;
62
+ repeated string mentional_id_list = 3;
63
63
  }
64
64
 
65
65
  message PostCommentResponse {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,10 +30,10 @@ export class PostSayable extends jspb.Message {
30
30
  getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
31
31
  setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
32
32
 
33
- hasCahnel(): boolean;
34
- clearCahnel(): void;
35
- getCahnel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
- setCahnel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
33
+ hasChannel(): boolean;
34
+ clearChannel(): void;
35
+ getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
36
+ setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
37
37
 
38
38
  getSayablesCase(): PostSayable.SayablesCase;
39
39
  serializeBinary(): Uint8Array;
@@ -53,7 +53,7 @@ export namespace PostSayable {
53
53
  text: string,
54
54
  fileBox: string,
55
55
  urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
56
- cahnel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
56
+ channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
57
57
  }
58
58
 
59
59
  export enum SayablesCase {
@@ -62,7 +62,7 @@ export namespace PostSayable {
62
62
  TEXT = 3,
63
63
  FILE_BOX = 4,
64
64
  URL_LINK = 5,
65
- CAHNEL = 6,
65
+ CHANNEL = 6,
66
66
  }
67
67
  }
68
68
 
@@ -163,8 +163,10 @@ export class PostCommentRequest extends jspb.Message {
163
163
  getText(): string;
164
164
  setText(value: string): void;
165
165
 
166
- getMentionId(): string;
167
- setMentionId(value: string): void;
166
+ clearMentionalIdListList(): void;
167
+ getMentionalIdListList(): Array<string>;
168
+ setMentionalIdListList(value: Array<string>): void;
169
+ addMentionalIdList(value: string, index?: number): string;
168
170
 
169
171
  serializeBinary(): Uint8Array;
170
172
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -180,7 +182,7 @@ export namespace PostCommentRequest {
180
182
  export type AsObject = {
181
183
  postId: string,
182
184
  text: string,
183
- mentionId: string,
185
+ mentionalIdListList: Array<string>,
184
186
  }
185
187
  }
186
188
 
@@ -109,7 +109,7 @@ if (goog.DEBUG && !COMPILED) {
109
109
  * @constructor
110
110
  */
111
111
  proto.wechaty.puppet.PostCommentRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostCommentRequest.repeatedFields_, null);
113
113
  };
114
114
  goog.inherits(proto.wechaty.puppet.PostCommentRequest, jspb.Message);
115
115
  if (goog.DEBUG && !COMPILED) {
@@ -286,7 +286,7 @@ proto.wechaty.puppet.PostSayable.SayablesCase = {
286
286
  TEXT: 3,
287
287
  FILE_BOX: 4,
288
288
  URL_LINK: 5,
289
- CAHNEL: 6
289
+ CHANNEL: 6
290
290
  };
291
291
 
292
292
  /**
@@ -332,7 +332,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
332
332
  text: jspb.Message.getFieldWithDefault(msg, 3, ""),
333
333
  fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
334
334
  urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
335
- cahnel: (f = msg.getCahnel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
335
+ channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
336
336
  };
337
337
 
338
338
  if (includeInstance) {
@@ -393,7 +393,7 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
393
393
  case 6:
394
394
  var value = new wechaty_puppet_channel_pb.ChannelPayload;
395
395
  reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
396
- msg.setCahnel(value);
396
+ msg.setChannel(value);
397
397
  break;
398
398
  default:
399
399
  reader.skipField();
@@ -460,7 +460,7 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
460
460
  wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
461
461
  );
462
462
  }
463
- f = message.getCahnel();
463
+ f = message.getChannel();
464
464
  if (f != null) {
465
465
  writer.writeMessage(
466
466
  6,
@@ -635,10 +635,10 @@ proto.wechaty.puppet.PostSayable.prototype.hasUrlLink = function() {
635
635
 
636
636
 
637
637
  /**
638
- * optional ChannelPayload cahnel = 6;
638
+ * optional ChannelPayload channel = 6;
639
639
  * @return {?proto.wechaty.puppet.ChannelPayload}
640
640
  */
641
- proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
641
+ proto.wechaty.puppet.PostSayable.prototype.getChannel = function() {
642
642
  return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
643
643
  jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 6));
644
644
  };
@@ -648,7 +648,7 @@ proto.wechaty.puppet.PostSayable.prototype.getCahnel = function() {
648
648
  * @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
649
649
  * @return {!proto.wechaty.puppet.PostSayable} returns this
650
650
  */
651
- proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
651
+ proto.wechaty.puppet.PostSayable.prototype.setChannel = function(value) {
652
652
  return jspb.Message.setOneofWrapperField(this, 6, proto.wechaty.puppet.PostSayable.oneofGroups_[0], value);
653
653
  };
654
654
 
@@ -657,8 +657,8 @@ proto.wechaty.puppet.PostSayable.prototype.setCahnel = function(value) {
657
657
  * Clears the message field making it undefined.
658
658
  * @return {!proto.wechaty.puppet.PostSayable} returns this
659
659
  */
660
- proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
661
- return this.setCahnel(undefined);
660
+ proto.wechaty.puppet.PostSayable.prototype.clearChannel = function() {
661
+ return this.setChannel(undefined);
662
662
  };
663
663
 
664
664
 
@@ -666,7 +666,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearCahnel = function() {
666
666
  * Returns whether this field is set.
667
667
  * @return {boolean}
668
668
  */
669
- proto.wechaty.puppet.PostSayable.prototype.hasCahnel = function() {
669
+ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
670
670
  return jspb.Message.getField(this, 6) != null;
671
671
  };
672
672
 
@@ -1343,6 +1343,13 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1343
1343
 
1344
1344
 
1345
1345
 
1346
+ /**
1347
+ * List of repeated fields within this message type.
1348
+ * @private {!Array<number>}
1349
+ * @const
1350
+ */
1351
+ proto.wechaty.puppet.PostCommentRequest.repeatedFields_ = [3];
1352
+
1346
1353
 
1347
1354
 
1348
1355
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1376,7 +1383,7 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1376
1383
  var f, obj = {
1377
1384
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1378
1385
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1379
- mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
1386
+ mentionalIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1380
1387
  };
1381
1388
 
1382
1389
  if (includeInstance) {
@@ -1423,7 +1430,7 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1423
1430
  break;
1424
1431
  case 3:
1425
1432
  var value = /** @type {string} */ (reader.readString());
1426
- msg.setMentionId(value);
1433
+ msg.addMentionalIdList(value);
1427
1434
  break;
1428
1435
  default:
1429
1436
  reader.skipField();
@@ -1468,9 +1475,9 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1468
1475
  f
1469
1476
  );
1470
1477
  }
1471
- f = message.getMentionId();
1478
+ f = message.getMentionalIdListList();
1472
1479
  if (f.length > 0) {
1473
- writer.writeString(
1480
+ writer.writeRepeatedString(
1474
1481
  3,
1475
1482
  f
1476
1483
  );
@@ -1515,20 +1522,39 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1515
1522
 
1516
1523
 
1517
1524
  /**
1518
- * optional string mention_id = 3;
1519
- * @return {string}
1525
+ * repeated string mentional_id_list = 3;
1526
+ * @return {!Array<string>}
1520
1527
  */
1521
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionId = function() {
1522
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1528
+ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionalIdListList = function() {
1529
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * @param {!Array<string>} value
1535
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1536
+ */
1537
+ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionalIdListList = function(value) {
1538
+ return jspb.Message.setField(this, 3, value || []);
1523
1539
  };
1524
1540
 
1525
1541
 
1526
1542
  /**
1527
1543
  * @param {string} value
1544
+ * @param {number=} opt_index
1545
+ * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1546
+ */
1547
+ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionalIdList = function(value, opt_index) {
1548
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Clears the list making it empty but non-null.
1528
1554
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1529
1555
  */
1530
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionId = function(value) {
1531
- return jspb.Message.setProto3StringField(this, 3, value);
1556
+ proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionalIdListList = function() {
1557
+ return this.setMentionalIdListList([]);
1532
1558
  };
1533
1559
 
1534
1560
 
@@ -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.20
12
+ version: 1.0.22
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
+ mentionalIdList:
2684
+ type: array
2685
+ items:
2686
+ type: string
2685
2687
  puppetPostCommentResponse:
2686
2688
  type: object
2687
2689
  properties:
@@ -2770,7 +2772,7 @@ definitions:
2770
2772
  type: string
2771
2773
  urlLink:
2772
2774
  $ref: '#/definitions/puppetUrlLinkPayload'
2773
- cahnel:
2775
+ channel:
2774
2776
  $ref: '#/definitions/puppetChannelPayload'
2775
2777
  puppetPostType:
2776
2778
  type: string
@@ -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.20",
6
+ "version": "1.0.22",
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
+ "mentionalIdList": {
3898
+ "type": "array",
3899
+ "items": {
3900
+ "type": "string"
3901
+ }
3899
3902
  }
3900
3903
  }
3901
3904
  },
@@ -4031,7 +4034,7 @@
4031
4034
  "urlLink": {
4032
4035
  "$ref": "#/definitions/puppetUrlLinkPayload"
4033
4036
  },
4034
- "cahnel": {
4037
+ "channel": {
4035
4038
  "$ref": "#/definitions/puppetChannelPayload"
4036
4039
  }
4037
4040
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.20",
7
+ "version": "1.0.22",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {