@juzi/wechaty-grpc 1.0.22 → 1.0.24

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,10 +153,10 @@ export class PostCommentRequest extends jspb.Message {
163
153
  getText(): string;
164
154
  setText(value: string): void;
165
155
 
166
- clearMentionalIdListList(): void;
167
- getMentionalIdListList(): Array<string>;
168
- setMentionalIdListList(value: Array<string>): void;
169
- addMentionalIdList(value: string, index?: number): string;
156
+ clearMentionIdListList(): void;
157
+ getMentionIdListList(): Array<string>;
158
+ setMentionIdListList(value: Array<string>): void;
159
+ addMentionIdList(value: string, index?: number): string;
170
160
 
171
161
  serializeBinary(): Uint8Array;
172
162
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -182,7 +172,7 @@ export namespace PostCommentRequest {
182
172
  export type AsObject = {
183
173
  postId: string,
184
174
  text: string,
185
- mentionalIdListList: Array<string>,
175
+ mentionIdListList: Array<string>,
186
176
  }
187
177
  }
188
178
 
@@ -227,6 +217,9 @@ export namespace PostLikeRequest {
227
217
  }
228
218
 
229
219
  export class PostLikeResponse extends jspb.Message {
220
+ getTapId(): string;
221
+ setTapId(value: string): void;
222
+
230
223
  serializeBinary(): Uint8Array;
231
224
  toObject(includeInstance?: boolean): PostLikeResponse.AsObject;
232
225
  static toObject(includeInstance: boolean, msg: PostLikeResponse): PostLikeResponse.AsObject;
@@ -239,6 +232,7 @@ export class PostLikeResponse extends jspb.Message {
239
232
 
240
233
  export namespace PostLikeResponse {
241
234
  export type AsObject = {
235
+ tapId: string,
242
236
  }
243
237
  }
244
238
 
@@ -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) {
@@ -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.
@@ -1383,7 +1355,7 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1383
1355
  var f, obj = {
1384
1356
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1385
1357
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1386
- mentionalIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1358
+ mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1387
1359
  };
1388
1360
 
1389
1361
  if (includeInstance) {
@@ -1430,7 +1402,7 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1430
1402
  break;
1431
1403
  case 3:
1432
1404
  var value = /** @type {string} */ (reader.readString());
1433
- msg.addMentionalIdList(value);
1405
+ msg.addMentionIdList(value);
1434
1406
  break;
1435
1407
  default:
1436
1408
  reader.skipField();
@@ -1475,7 +1447,7 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1475
1447
  f
1476
1448
  );
1477
1449
  }
1478
- f = message.getMentionalIdListList();
1450
+ f = message.getMentionIdListList();
1479
1451
  if (f.length > 0) {
1480
1452
  writer.writeRepeatedString(
1481
1453
  3,
@@ -1522,10 +1494,10 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1522
1494
 
1523
1495
 
1524
1496
  /**
1525
- * repeated string mentional_id_list = 3;
1497
+ * repeated string mention_id_list = 3;
1526
1498
  * @return {!Array<string>}
1527
1499
  */
1528
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionalIdListList = function() {
1500
+ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionIdListList = function() {
1529
1501
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1530
1502
  };
1531
1503
 
@@ -1534,7 +1506,7 @@ proto.wechaty.puppet.PostCommentRequest.prototype.getMentionalIdListList = funct
1534
1506
  * @param {!Array<string>} value
1535
1507
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1536
1508
  */
1537
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionalIdListList = function(value) {
1509
+ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionIdListList = function(value) {
1538
1510
  return jspb.Message.setField(this, 3, value || []);
1539
1511
  };
1540
1512
 
@@ -1544,7 +1516,7 @@ proto.wechaty.puppet.PostCommentRequest.prototype.setMentionalIdListList = funct
1544
1516
  * @param {number=} opt_index
1545
1517
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1546
1518
  */
1547
- proto.wechaty.puppet.PostCommentRequest.prototype.addMentionalIdList = function(value, opt_index) {
1519
+ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionIdList = function(value, opt_index) {
1548
1520
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1549
1521
  };
1550
1522
 
@@ -1553,8 +1525,8 @@ proto.wechaty.puppet.PostCommentRequest.prototype.addMentionalIdList = function(
1553
1525
  * Clears the list making it empty but non-null.
1554
1526
  * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1555
1527
  */
1556
- proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionalIdListList = function() {
1557
- return this.setMentionalIdListList([]);
1528
+ proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionIdListList = function() {
1529
+ return this.setMentionIdListList([]);
1558
1530
  };
1559
1531
 
1560
1532
 
@@ -1850,7 +1822,7 @@ proto.wechaty.puppet.PostLikeResponse.prototype.toObject = function(opt_includeI
1850
1822
  */
1851
1823
  proto.wechaty.puppet.PostLikeResponse.toObject = function(includeInstance, msg) {
1852
1824
  var f, obj = {
1853
-
1825
+ tapId: jspb.Message.getFieldWithDefault(msg, 1, "")
1854
1826
  };
1855
1827
 
1856
1828
  if (includeInstance) {
@@ -1887,6 +1859,10 @@ proto.wechaty.puppet.PostLikeResponse.deserializeBinaryFromReader = function(msg
1887
1859
  }
1888
1860
  var field = reader.getFieldNumber();
1889
1861
  switch (field) {
1862
+ case 1:
1863
+ var value = /** @type {string} */ (reader.readString());
1864
+ msg.setTapId(value);
1865
+ break;
1890
1866
  default:
1891
1867
  reader.skipField();
1892
1868
  break;
@@ -1916,6 +1892,31 @@ proto.wechaty.puppet.PostLikeResponse.prototype.serializeBinary = function() {
1916
1892
  */
1917
1893
  proto.wechaty.puppet.PostLikeResponse.serializeBinaryToWriter = function(message, writer) {
1918
1894
  var f = undefined;
1895
+ f = message.getTapId();
1896
+ if (f.length > 0) {
1897
+ writer.writeString(
1898
+ 1,
1899
+ f
1900
+ );
1901
+ }
1902
+ };
1903
+
1904
+
1905
+ /**
1906
+ * optional string tap_id = 1;
1907
+ * @return {string}
1908
+ */
1909
+ proto.wechaty.puppet.PostLikeResponse.prototype.getTapId = function() {
1910
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1911
+ };
1912
+
1913
+
1914
+ /**
1915
+ * @param {string} value
1916
+ * @return {!proto.wechaty.puppet.PostLikeResponse} returns this
1917
+ */
1918
+ proto.wechaty.puppet.PostLikeResponse.prototype.setTapId = function(value) {
1919
+ return jspb.Message.setProto3StringField(this, 1, value);
1919
1920
  };
1920
1921
 
1921
1922
 
@@ -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.22
12
+ version: 1.0.24
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2680,7 +2680,7 @@ definitions:
2680
2680
  type: string
2681
2681
  text:
2682
2682
  type: string
2683
- mentionalIdList:
2683
+ mentionIdList:
2684
2684
  type: array
2685
2685
  items:
2686
2686
  type: string
@@ -2696,6 +2696,9 @@ definitions:
2696
2696
  type: string
2697
2697
  puppetPostLikeResponse:
2698
2698
  type: object
2699
+ properties:
2700
+ tapId:
2701
+ type: string
2699
2702
  puppetPostPayloadClient:
2700
2703
  type: object
2701
2704
  properties:
@@ -2774,6 +2777,10 @@ definitions:
2774
2777
  $ref: '#/definitions/puppetUrlLinkPayload'
2775
2778
  channel:
2776
2779
  $ref: '#/definitions/puppetChannelPayload'
2780
+ mentionIdList:
2781
+ type: array
2782
+ items:
2783
+ type: string
2777
2784
  puppetPostType:
2778
2785
  type: string
2779
2786
  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.22",
6
+ "version": "1.0.24",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3894,7 +3894,7 @@
3894
3894
  "text": {
3895
3895
  "type": "string"
3896
3896
  },
3897
- "mentionalIdList": {
3897
+ "mentionIdList": {
3898
3898
  "type": "array",
3899
3899
  "items": {
3900
3900
  "type": "string"
@@ -3919,7 +3919,12 @@
3919
3919
  }
3920
3920
  },
3921
3921
  "puppetPostLikeResponse": {
3922
- "type": "object"
3922
+ "type": "object",
3923
+ "properties": {
3924
+ "tapId": {
3925
+ "type": "string"
3926
+ }
3927
+ }
3923
3928
  },
3924
3929
  "puppetPostPayloadClient": {
3925
3930
  "type": "object",
@@ -4036,6 +4041,12 @@
4036
4041
  },
4037
4042
  "channel": {
4038
4043
  "$ref": "#/definitions/puppetChannelPayload"
4044
+ },
4045
+ "mentionIdList": {
4046
+ "type": "array",
4047
+ "items": {
4048
+ "type": "string"
4049
+ }
4039
4050
  }
4040
4051
  }
4041
4052
  },
@@ -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
- repeated string mentional_id_list = 3;
63
+ repeated string mention_id_list = 3;
63
64
  }
64
65
 
65
66
  message PostCommentResponse {
@@ -71,6 +72,7 @@ message PostLikeRequest {
71
72
  }
72
73
 
73
74
  message PostLikeResponse {
75
+ string tap_id = 1;
74
76
  }
75
77
 
76
78
  message PostPayloadRequest {
@@ -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.22",
6
+ "version": "1.0.24",
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,10 +153,10 @@ export class PostCommentRequest extends jspb.Message {
163
153
  getText(): string;
164
154
  setText(value: string): void;
165
155
 
166
- clearMentionalIdListList(): void;
167
- getMentionalIdListList(): Array<string>;
168
- setMentionalIdListList(value: Array<string>): void;
169
- addMentionalIdList(value: string, index?: number): string;
156
+ clearMentionIdListList(): void;
157
+ getMentionIdListList(): Array<string>;
158
+ setMentionIdListList(value: Array<string>): void;
159
+ addMentionIdList(value: string, index?: number): string;
170
160
 
171
161
  serializeBinary(): Uint8Array;
172
162
  toObject(includeInstance?: boolean): PostCommentRequest.AsObject;
@@ -182,7 +172,7 @@ export namespace PostCommentRequest {
182
172
  export type AsObject = {
183
173
  postId: string,
184
174
  text: string,
185
- mentionalIdListList: Array<string>,
175
+ mentionIdListList: Array<string>,
186
176
  }
187
177
  }
188
178
 
@@ -227,6 +217,9 @@ export namespace PostLikeRequest {
227
217
  }
228
218
 
229
219
  export class PostLikeResponse extends jspb.Message {
220
+ getTapId(): string;
221
+ setTapId(value: string): void;
222
+
230
223
  serializeBinary(): Uint8Array;
231
224
  toObject(includeInstance?: boolean): PostLikeResponse.AsObject;
232
225
  static toObject(includeInstance: boolean, msg: PostLikeResponse): PostLikeResponse.AsObject;
@@ -239,6 +232,7 @@ export class PostLikeResponse extends jspb.Message {
239
232
 
240
233
  export namespace PostLikeResponse {
241
234
  export type AsObject = {
235
+ tapId: string,
242
236
  }
243
237
  }
244
238