@juzi/wechaty-grpc 1.0.30 → 1.0.32

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.
@@ -5,6 +5,7 @@ import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
6
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
7
7
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
8
+ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
8
9
 
9
10
  export class PostSayable extends jspb.Message {
10
11
  getType(): SayableTypeMap[keyof SayableTypeMap];
@@ -71,6 +72,16 @@ export class PostPayloadClient extends jspb.Message {
71
72
  setSayableListList(value: Array<PostSayable>): void;
72
73
  addSayableList(value?: PostSayable, index?: number): PostSayable;
73
74
 
75
+ clearVisibleListList(): void;
76
+ getVisibleListList(): Array<string>;
77
+ setVisibleListList(value: Array<string>): void;
78
+ addVisibleList(value: string, index?: number): string;
79
+
80
+ hasLocation(): boolean;
81
+ clearLocation(): void;
82
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
83
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
84
+
74
85
  serializeBinary(): Uint8Array;
75
86
  toObject(includeInstance?: boolean): PostPayloadClient.AsObject;
76
87
  static toObject(includeInstance: boolean, msg: PostPayloadClient): PostPayloadClient.AsObject;
@@ -87,6 +98,8 @@ export namespace PostPayloadClient {
87
98
  rootId: string,
88
99
  type: PostTypeMap[keyof PostTypeMap],
89
100
  sayableListList: Array<PostSayable.AsObject>,
101
+ visibleListList: Array<string>,
102
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
90
103
  }
91
104
  }
92
105
 
@@ -122,6 +135,16 @@ export class PostPayloadServer extends jspb.Message {
122
135
  getLike(): number;
123
136
  setLike(value: number): void;
124
137
 
138
+ clearVisibleListList(): void;
139
+ getVisibleListList(): Array<string>;
140
+ setVisibleListList(value: Array<string>): void;
141
+ addVisibleList(value: string, index?: number): string;
142
+
143
+ hasLocation(): boolean;
144
+ clearLocation(): void;
145
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
146
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
147
+
125
148
  serializeBinary(): Uint8Array;
126
149
  toObject(includeInstance?: boolean): PostPayloadServer.AsObject;
127
150
  static toObject(includeInstance: boolean, msg: PostPayloadServer): PostPayloadServer.AsObject;
@@ -143,6 +166,8 @@ export namespace PostPayloadServer {
143
166
  children: number,
144
167
  descendant: number,
145
168
  like: number,
169
+ visibleListList: Array<string>,
170
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
146
171
  }
147
172
  }
148
173
 
@@ -21,6 +21,8 @@ var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_url$link_pb);
22
22
  var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_channel_pb);
24
+ var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
25
+ goog.object.extend(proto, wechaty_puppet_location_pb);
24
26
  goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
25
27
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
@@ -628,7 +630,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearMentionIdListList = function() {
628
630
  * @private {!Array<number>}
629
631
  * @const
630
632
  */
631
- proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4];
633
+ proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4,5];
632
634
 
633
635
 
634
636
 
@@ -665,7 +667,9 @@ proto.wechaty.puppet.PostPayloadClient.toObject = function(includeInstance, msg)
665
667
  rootId: jspb.Message.getFieldWithDefault(msg, 2, ""),
666
668
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
667
669
  sayableListList: jspb.Message.toObjectList(msg.getSayableListList(),
668
- proto.wechaty.puppet.PostSayable.toObject, includeInstance)
670
+ proto.wechaty.puppet.PostSayable.toObject, includeInstance),
671
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
672
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
669
673
  };
670
674
 
671
675
  if (includeInstance) {
@@ -719,6 +723,15 @@ proto.wechaty.puppet.PostPayloadClient.deserializeBinaryFromReader = function(ms
719
723
  reader.readMessage(value,proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader);
720
724
  msg.addSayableList(value);
721
725
  break;
726
+ case 5:
727
+ var value = /** @type {string} */ (reader.readString());
728
+ msg.addVisibleList(value);
729
+ break;
730
+ case 6:
731
+ var value = new wechaty_puppet_location_pb.LocationPayload;
732
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
733
+ msg.setLocation(value);
734
+ break;
722
735
  default:
723
736
  reader.skipField();
724
737
  break;
@@ -777,6 +790,21 @@ proto.wechaty.puppet.PostPayloadClient.serializeBinaryToWriter = function(messag
777
790
  proto.wechaty.puppet.PostSayable.serializeBinaryToWriter
778
791
  );
779
792
  }
793
+ f = message.getVisibleListList();
794
+ if (f.length > 0) {
795
+ writer.writeRepeatedString(
796
+ 5,
797
+ f
798
+ );
799
+ }
800
+ f = message.getLocation();
801
+ if (f != null) {
802
+ writer.writeMessage(
803
+ 6,
804
+ f,
805
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
806
+ );
807
+ }
780
808
  };
781
809
 
782
810
 
@@ -872,13 +900,87 @@ proto.wechaty.puppet.PostPayloadClient.prototype.clearSayableListList = function
872
900
  };
873
901
 
874
902
 
903
+ /**
904
+ * repeated string visible_list = 5;
905
+ * @return {!Array<string>}
906
+ */
907
+ proto.wechaty.puppet.PostPayloadClient.prototype.getVisibleListList = function() {
908
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
909
+ };
910
+
911
+
912
+ /**
913
+ * @param {!Array<string>} value
914
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
915
+ */
916
+ proto.wechaty.puppet.PostPayloadClient.prototype.setVisibleListList = function(value) {
917
+ return jspb.Message.setField(this, 5, value || []);
918
+ };
919
+
920
+
921
+ /**
922
+ * @param {string} value
923
+ * @param {number=} opt_index
924
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
925
+ */
926
+ proto.wechaty.puppet.PostPayloadClient.prototype.addVisibleList = function(value, opt_index) {
927
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
928
+ };
929
+
930
+
931
+ /**
932
+ * Clears the list making it empty but non-null.
933
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
934
+ */
935
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearVisibleListList = function() {
936
+ return this.setVisibleListList([]);
937
+ };
938
+
939
+
940
+ /**
941
+ * optional LocationPayload location = 6;
942
+ * @return {?proto.wechaty.puppet.LocationPayload}
943
+ */
944
+ proto.wechaty.puppet.PostPayloadClient.prototype.getLocation = function() {
945
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
946
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 6));
947
+ };
948
+
949
+
950
+ /**
951
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
952
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
953
+ */
954
+ proto.wechaty.puppet.PostPayloadClient.prototype.setLocation = function(value) {
955
+ return jspb.Message.setWrapperField(this, 6, value);
956
+ };
957
+
958
+
959
+ /**
960
+ * Clears the message field making it undefined.
961
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
962
+ */
963
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearLocation = function() {
964
+ return this.setLocation(undefined);
965
+ };
966
+
967
+
968
+ /**
969
+ * Returns whether this field is set.
970
+ * @return {boolean}
971
+ */
972
+ proto.wechaty.puppet.PostPayloadClient.prototype.hasLocation = function() {
973
+ return jspb.Message.getField(this, 6) != null;
974
+ };
975
+
976
+
875
977
 
876
978
  /**
877
979
  * List of repeated fields within this message type.
878
980
  * @private {!Array<number>}
879
981
  * @const
880
982
  */
881
- proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4];
983
+ proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4,16];
882
984
 
883
985
 
884
986
 
@@ -920,7 +1022,9 @@ proto.wechaty.puppet.PostPayloadServer.toObject = function(includeInstance, msg)
920
1022
  timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
921
1023
  children: jspb.Message.getFieldWithDefault(msg, 7, 0),
922
1024
  descendant: jspb.Message.getFieldWithDefault(msg, 8, 0),
923
- like: jspb.Message.getFieldWithDefault(msg, 9, 0)
1025
+ like: jspb.Message.getFieldWithDefault(msg, 9, 0),
1026
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
1027
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
924
1028
  };
925
1029
 
926
1030
  if (includeInstance) {
@@ -995,6 +1099,15 @@ proto.wechaty.puppet.PostPayloadServer.deserializeBinaryFromReader = function(ms
995
1099
  var value = /** @type {number} */ (reader.readInt32());
996
1100
  msg.setLike(value);
997
1101
  break;
1102
+ case 16:
1103
+ var value = /** @type {string} */ (reader.readString());
1104
+ msg.addVisibleList(value);
1105
+ break;
1106
+ case 17:
1107
+ var value = new wechaty_puppet_location_pb.LocationPayload;
1108
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
1109
+ msg.setLocation(value);
1110
+ break;
998
1111
  default:
999
1112
  reader.skipField();
1000
1113
  break;
@@ -1089,6 +1202,21 @@ proto.wechaty.puppet.PostPayloadServer.serializeBinaryToWriter = function(messag
1089
1202
  f
1090
1203
  );
1091
1204
  }
1205
+ f = message.getVisibleListList();
1206
+ if (f.length > 0) {
1207
+ writer.writeRepeatedString(
1208
+ 16,
1209
+ f
1210
+ );
1211
+ }
1212
+ f = message.getLocation();
1213
+ if (f != null) {
1214
+ writer.writeMessage(
1215
+ 17,
1216
+ f,
1217
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
1218
+ );
1219
+ }
1092
1220
  };
1093
1221
 
1094
1222
 
@@ -1293,6 +1421,80 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1293
1421
  };
1294
1422
 
1295
1423
 
1424
+ /**
1425
+ * repeated string visible_list = 16;
1426
+ * @return {!Array<string>}
1427
+ */
1428
+ proto.wechaty.puppet.PostPayloadServer.prototype.getVisibleListList = function() {
1429
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * @param {!Array<string>} value
1435
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1436
+ */
1437
+ proto.wechaty.puppet.PostPayloadServer.prototype.setVisibleListList = function(value) {
1438
+ return jspb.Message.setField(this, 16, value || []);
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * @param {string} value
1444
+ * @param {number=} opt_index
1445
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1446
+ */
1447
+ proto.wechaty.puppet.PostPayloadServer.prototype.addVisibleList = function(value, opt_index) {
1448
+ return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
1449
+ };
1450
+
1451
+
1452
+ /**
1453
+ * Clears the list making it empty but non-null.
1454
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1455
+ */
1456
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearVisibleListList = function() {
1457
+ return this.setVisibleListList([]);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * optional LocationPayload location = 17;
1463
+ * @return {?proto.wechaty.puppet.LocationPayload}
1464
+ */
1465
+ proto.wechaty.puppet.PostPayloadServer.prototype.getLocation = function() {
1466
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
1467
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 17));
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
1473
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1474
+ */
1475
+ proto.wechaty.puppet.PostPayloadServer.prototype.setLocation = function(value) {
1476
+ return jspb.Message.setWrapperField(this, 17, value);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Clears the message field making it undefined.
1482
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1483
+ */
1484
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearLocation = function() {
1485
+ return this.setLocation(undefined);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * Returns whether this field is set.
1491
+ * @return {boolean}
1492
+ */
1493
+ proto.wechaty.puppet.PostPayloadServer.prototype.hasLocation = function() {
1494
+ return jspb.Message.getField(this, 17) != null;
1495
+ };
1496
+
1497
+
1296
1498
 
1297
1499
 
1298
1500
 
@@ -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.30
12
+ version: 1.0.32
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2897,6 +2897,12 @@ definitions:
2897
2897
  type: array
2898
2898
  items:
2899
2899
  $ref: '#/definitions/puppetPostSayable'
2900
+ visibleList:
2901
+ type: array
2902
+ items:
2903
+ type: string
2904
+ location:
2905
+ $ref: '#/definitions/puppetLocationPayload'
2900
2906
  puppetPostPayloadRequest:
2901
2907
  type: object
2902
2908
  properties:
@@ -2949,6 +2955,12 @@ definitions:
2949
2955
  like:
2950
2956
  type: integer
2951
2957
  format: int32
2958
+ visibleList:
2959
+ type: array
2960
+ items:
2961
+ type: string
2962
+ location:
2963
+ $ref: '#/definitions/puppetLocationPayload'
2952
2964
  puppetPostSayable:
2953
2965
  type: object
2954
2966
  properties:
@@ -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.30",
6
+ "version": "1.0.32",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4071,6 +4071,15 @@
4071
4071
  "items": {
4072
4072
  "$ref": "#/definitions/puppetPostSayable"
4073
4073
  }
4074
+ },
4075
+ "visibleList": {
4076
+ "type": "array",
4077
+ "items": {
4078
+ "type": "string"
4079
+ }
4080
+ },
4081
+ "location": {
4082
+ "$ref": "#/definitions/puppetLocationPayload"
4074
4083
  }
4075
4084
  }
4076
4085
  },
@@ -4148,6 +4157,15 @@
4148
4157
  "like": {
4149
4158
  "type": "integer",
4150
4159
  "format": "int32"
4160
+ },
4161
+ "visibleList": {
4162
+ "type": "array",
4163
+ "items": {
4164
+ "type": "string"
4165
+ }
4166
+ },
4167
+ "location": {
4168
+ "$ref": "#/definitions/puppetLocationPayload"
4151
4169
  }
4152
4170
  }
4153
4171
  },
@@ -9,6 +9,7 @@ import "google/protobuf/timestamp.proto";
9
9
 
10
10
  import "wechaty/puppet/url-link.proto";
11
11
  import "wechaty/puppet/channel.proto";
12
+ import "wechaty/puppet/location.proto";
12
13
 
13
14
  enum PostType {
14
15
  POST_TYPE_UNSPECIFIED = 0;
@@ -46,6 +47,9 @@ message PostPayloadClient {
46
47
  string root_id = 2; // 转发的根id,评论时应该是朋友圈的id
47
48
  PostType type = 3;
48
49
  repeated PostSayable sayable_list = 4;
50
+
51
+ repeated string visible_list = 5;
52
+ LocationPayload location = 6;
49
53
  }
50
54
 
51
55
  message PostPayloadServer {
@@ -60,6 +64,11 @@ message PostPayloadServer {
60
64
  int32 children = 7;
61
65
  int32 descendant = 8;
62
66
  int32 like = 9;
67
+
68
+ reserved 10 to 15;
69
+
70
+ repeated string visible_list = 16;
71
+ LocationPayload location = 17;
63
72
  }
64
73
 
65
74
  message PostTapRequest {
@@ -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.30",
6
+ "version": "1.0.32",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -5,6 +5,7 @@ import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
6
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
7
7
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
8
+ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
8
9
 
9
10
  export class PostSayable extends jspb.Message {
10
11
  getType(): SayableTypeMap[keyof SayableTypeMap];
@@ -71,6 +72,16 @@ export class PostPayloadClient extends jspb.Message {
71
72
  setSayableListList(value: Array<PostSayable>): void;
72
73
  addSayableList(value?: PostSayable, index?: number): PostSayable;
73
74
 
75
+ clearVisibleListList(): void;
76
+ getVisibleListList(): Array<string>;
77
+ setVisibleListList(value: Array<string>): void;
78
+ addVisibleList(value: string, index?: number): string;
79
+
80
+ hasLocation(): boolean;
81
+ clearLocation(): void;
82
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
83
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
84
+
74
85
  serializeBinary(): Uint8Array;
75
86
  toObject(includeInstance?: boolean): PostPayloadClient.AsObject;
76
87
  static toObject(includeInstance: boolean, msg: PostPayloadClient): PostPayloadClient.AsObject;
@@ -87,6 +98,8 @@ export namespace PostPayloadClient {
87
98
  rootId: string,
88
99
  type: PostTypeMap[keyof PostTypeMap],
89
100
  sayableListList: Array<PostSayable.AsObject>,
101
+ visibleListList: Array<string>,
102
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
90
103
  }
91
104
  }
92
105
 
@@ -122,6 +135,16 @@ export class PostPayloadServer extends jspb.Message {
122
135
  getLike(): number;
123
136
  setLike(value: number): void;
124
137
 
138
+ clearVisibleListList(): void;
139
+ getVisibleListList(): Array<string>;
140
+ setVisibleListList(value: Array<string>): void;
141
+ addVisibleList(value: string, index?: number): string;
142
+
143
+ hasLocation(): boolean;
144
+ clearLocation(): void;
145
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
146
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
147
+
125
148
  serializeBinary(): Uint8Array;
126
149
  toObject(includeInstance?: boolean): PostPayloadServer.AsObject;
127
150
  static toObject(includeInstance: boolean, msg: PostPayloadServer): PostPayloadServer.AsObject;
@@ -143,6 +166,8 @@ export namespace PostPayloadServer {
143
166
  children: number,
144
167
  descendant: number,
145
168
  like: number,
169
+ visibleListList: Array<string>,
170
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
146
171
  }
147
172
  }
148
173
 
@@ -21,6 +21,8 @@ var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_url$link_pb);
22
22
  var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_channel_pb);
24
+ var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
25
+ goog.object.extend(proto, wechaty_puppet_location_pb);
24
26
  goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
25
27
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
@@ -628,7 +630,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearMentionIdListList = function() {
628
630
  * @private {!Array<number>}
629
631
  * @const
630
632
  */
631
- proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4];
633
+ proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4,5];
632
634
 
633
635
 
634
636
 
@@ -665,7 +667,9 @@ proto.wechaty.puppet.PostPayloadClient.toObject = function(includeInstance, msg)
665
667
  rootId: jspb.Message.getFieldWithDefault(msg, 2, ""),
666
668
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
667
669
  sayableListList: jspb.Message.toObjectList(msg.getSayableListList(),
668
- proto.wechaty.puppet.PostSayable.toObject, includeInstance)
670
+ proto.wechaty.puppet.PostSayable.toObject, includeInstance),
671
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
672
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
669
673
  };
670
674
 
671
675
  if (includeInstance) {
@@ -719,6 +723,15 @@ proto.wechaty.puppet.PostPayloadClient.deserializeBinaryFromReader = function(ms
719
723
  reader.readMessage(value,proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader);
720
724
  msg.addSayableList(value);
721
725
  break;
726
+ case 5:
727
+ var value = /** @type {string} */ (reader.readString());
728
+ msg.addVisibleList(value);
729
+ break;
730
+ case 6:
731
+ var value = new wechaty_puppet_location_pb.LocationPayload;
732
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
733
+ msg.setLocation(value);
734
+ break;
722
735
  default:
723
736
  reader.skipField();
724
737
  break;
@@ -777,6 +790,21 @@ proto.wechaty.puppet.PostPayloadClient.serializeBinaryToWriter = function(messag
777
790
  proto.wechaty.puppet.PostSayable.serializeBinaryToWriter
778
791
  );
779
792
  }
793
+ f = message.getVisibleListList();
794
+ if (f.length > 0) {
795
+ writer.writeRepeatedString(
796
+ 5,
797
+ f
798
+ );
799
+ }
800
+ f = message.getLocation();
801
+ if (f != null) {
802
+ writer.writeMessage(
803
+ 6,
804
+ f,
805
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
806
+ );
807
+ }
780
808
  };
781
809
 
782
810
 
@@ -872,13 +900,87 @@ proto.wechaty.puppet.PostPayloadClient.prototype.clearSayableListList = function
872
900
  };
873
901
 
874
902
 
903
+ /**
904
+ * repeated string visible_list = 5;
905
+ * @return {!Array<string>}
906
+ */
907
+ proto.wechaty.puppet.PostPayloadClient.prototype.getVisibleListList = function() {
908
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
909
+ };
910
+
911
+
912
+ /**
913
+ * @param {!Array<string>} value
914
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
915
+ */
916
+ proto.wechaty.puppet.PostPayloadClient.prototype.setVisibleListList = function(value) {
917
+ return jspb.Message.setField(this, 5, value || []);
918
+ };
919
+
920
+
921
+ /**
922
+ * @param {string} value
923
+ * @param {number=} opt_index
924
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
925
+ */
926
+ proto.wechaty.puppet.PostPayloadClient.prototype.addVisibleList = function(value, opt_index) {
927
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
928
+ };
929
+
930
+
931
+ /**
932
+ * Clears the list making it empty but non-null.
933
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
934
+ */
935
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearVisibleListList = function() {
936
+ return this.setVisibleListList([]);
937
+ };
938
+
939
+
940
+ /**
941
+ * optional LocationPayload location = 6;
942
+ * @return {?proto.wechaty.puppet.LocationPayload}
943
+ */
944
+ proto.wechaty.puppet.PostPayloadClient.prototype.getLocation = function() {
945
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
946
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 6));
947
+ };
948
+
949
+
950
+ /**
951
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
952
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
953
+ */
954
+ proto.wechaty.puppet.PostPayloadClient.prototype.setLocation = function(value) {
955
+ return jspb.Message.setWrapperField(this, 6, value);
956
+ };
957
+
958
+
959
+ /**
960
+ * Clears the message field making it undefined.
961
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
962
+ */
963
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearLocation = function() {
964
+ return this.setLocation(undefined);
965
+ };
966
+
967
+
968
+ /**
969
+ * Returns whether this field is set.
970
+ * @return {boolean}
971
+ */
972
+ proto.wechaty.puppet.PostPayloadClient.prototype.hasLocation = function() {
973
+ return jspb.Message.getField(this, 6) != null;
974
+ };
975
+
976
+
875
977
 
876
978
  /**
877
979
  * List of repeated fields within this message type.
878
980
  * @private {!Array<number>}
879
981
  * @const
880
982
  */
881
- proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4];
983
+ proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4,16];
882
984
 
883
985
 
884
986
 
@@ -920,7 +1022,9 @@ proto.wechaty.puppet.PostPayloadServer.toObject = function(includeInstance, msg)
920
1022
  timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
921
1023
  children: jspb.Message.getFieldWithDefault(msg, 7, 0),
922
1024
  descendant: jspb.Message.getFieldWithDefault(msg, 8, 0),
923
- like: jspb.Message.getFieldWithDefault(msg, 9, 0)
1025
+ like: jspb.Message.getFieldWithDefault(msg, 9, 0),
1026
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
1027
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
924
1028
  };
925
1029
 
926
1030
  if (includeInstance) {
@@ -995,6 +1099,15 @@ proto.wechaty.puppet.PostPayloadServer.deserializeBinaryFromReader = function(ms
995
1099
  var value = /** @type {number} */ (reader.readInt32());
996
1100
  msg.setLike(value);
997
1101
  break;
1102
+ case 16:
1103
+ var value = /** @type {string} */ (reader.readString());
1104
+ msg.addVisibleList(value);
1105
+ break;
1106
+ case 17:
1107
+ var value = new wechaty_puppet_location_pb.LocationPayload;
1108
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
1109
+ msg.setLocation(value);
1110
+ break;
998
1111
  default:
999
1112
  reader.skipField();
1000
1113
  break;
@@ -1089,6 +1202,21 @@ proto.wechaty.puppet.PostPayloadServer.serializeBinaryToWriter = function(messag
1089
1202
  f
1090
1203
  );
1091
1204
  }
1205
+ f = message.getVisibleListList();
1206
+ if (f.length > 0) {
1207
+ writer.writeRepeatedString(
1208
+ 16,
1209
+ f
1210
+ );
1211
+ }
1212
+ f = message.getLocation();
1213
+ if (f != null) {
1214
+ writer.writeMessage(
1215
+ 17,
1216
+ f,
1217
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
1218
+ );
1219
+ }
1092
1220
  };
1093
1221
 
1094
1222
 
@@ -1293,6 +1421,80 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1293
1421
  };
1294
1422
 
1295
1423
 
1424
+ /**
1425
+ * repeated string visible_list = 16;
1426
+ * @return {!Array<string>}
1427
+ */
1428
+ proto.wechaty.puppet.PostPayloadServer.prototype.getVisibleListList = function() {
1429
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * @param {!Array<string>} value
1435
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1436
+ */
1437
+ proto.wechaty.puppet.PostPayloadServer.prototype.setVisibleListList = function(value) {
1438
+ return jspb.Message.setField(this, 16, value || []);
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * @param {string} value
1444
+ * @param {number=} opt_index
1445
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1446
+ */
1447
+ proto.wechaty.puppet.PostPayloadServer.prototype.addVisibleList = function(value, opt_index) {
1448
+ return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
1449
+ };
1450
+
1451
+
1452
+ /**
1453
+ * Clears the list making it empty but non-null.
1454
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1455
+ */
1456
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearVisibleListList = function() {
1457
+ return this.setVisibleListList([]);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * optional LocationPayload location = 17;
1463
+ * @return {?proto.wechaty.puppet.LocationPayload}
1464
+ */
1465
+ proto.wechaty.puppet.PostPayloadServer.prototype.getLocation = function() {
1466
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
1467
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 17));
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
1473
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1474
+ */
1475
+ proto.wechaty.puppet.PostPayloadServer.prototype.setLocation = function(value) {
1476
+ return jspb.Message.setWrapperField(this, 17, value);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Clears the message field making it undefined.
1482
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1483
+ */
1484
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearLocation = function() {
1485
+ return this.setLocation(undefined);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * Returns whether this field is set.
1491
+ * @return {boolean}
1492
+ */
1493
+ proto.wechaty.puppet.PostPayloadServer.prototype.hasLocation = function() {
1494
+ return jspb.Message.getField(this, 17) != null;
1495
+ };
1496
+
1497
+
1296
1498
 
1297
1499
 
1298
1500
 
@@ -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.30
12
+ version: 1.0.32
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2897,6 +2897,12 @@ definitions:
2897
2897
  type: array
2898
2898
  items:
2899
2899
  $ref: '#/definitions/puppetPostSayable'
2900
+ visibleList:
2901
+ type: array
2902
+ items:
2903
+ type: string
2904
+ location:
2905
+ $ref: '#/definitions/puppetLocationPayload'
2900
2906
  puppetPostPayloadRequest:
2901
2907
  type: object
2902
2908
  properties:
@@ -2949,6 +2955,12 @@ definitions:
2949
2955
  like:
2950
2956
  type: integer
2951
2957
  format: int32
2958
+ visibleList:
2959
+ type: array
2960
+ items:
2961
+ type: string
2962
+ location:
2963
+ $ref: '#/definitions/puppetLocationPayload'
2952
2964
  puppetPostSayable:
2953
2965
  type: object
2954
2966
  properties:
@@ -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.30",
6
+ "version": "1.0.32",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4071,6 +4071,15 @@
4071
4071
  "items": {
4072
4072
  "$ref": "#/definitions/puppetPostSayable"
4073
4073
  }
4074
+ },
4075
+ "visibleList": {
4076
+ "type": "array",
4077
+ "items": {
4078
+ "type": "string"
4079
+ }
4080
+ },
4081
+ "location": {
4082
+ "$ref": "#/definitions/puppetLocationPayload"
4074
4083
  }
4075
4084
  }
4076
4085
  },
@@ -4148,6 +4157,15 @@
4148
4157
  "like": {
4149
4158
  "type": "integer",
4150
4159
  "format": "int32"
4160
+ },
4161
+ "visibleList": {
4162
+ "type": "array",
4163
+ "items": {
4164
+ "type": "string"
4165
+ }
4166
+ },
4167
+ "location": {
4168
+ "$ref": "#/definitions/puppetLocationPayload"
4151
4169
  }
4152
4170
  }
4153
4171
  },
@@ -9,6 +9,7 @@ import "google/protobuf/timestamp.proto";
9
9
 
10
10
  import "wechaty/puppet/url-link.proto";
11
11
  import "wechaty/puppet/channel.proto";
12
+ import "wechaty/puppet/location.proto";
12
13
 
13
14
  enum PostType {
14
15
  POST_TYPE_UNSPECIFIED = 0;
@@ -46,6 +47,9 @@ message PostPayloadClient {
46
47
  string root_id = 2; // 转发的根id,评论时应该是朋友圈的id
47
48
  PostType type = 3;
48
49
  repeated PostSayable sayable_list = 4;
50
+
51
+ repeated string visible_list = 5;
52
+ LocationPayload location = 6;
49
53
  }
50
54
 
51
55
  message PostPayloadServer {
@@ -60,6 +64,11 @@ message PostPayloadServer {
60
64
  int32 children = 7;
61
65
  int32 descendant = 8;
62
66
  int32 like = 9;
67
+
68
+ reserved 10 to 15;
69
+
70
+ repeated string visible_list = 16;
71
+ LocationPayload location = 17;
63
72
  }
64
73
 
65
74
  message PostTapRequest {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -5,6 +5,7 @@ import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
6
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
7
7
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
8
+ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
8
9
 
9
10
  export class PostSayable extends jspb.Message {
10
11
  getType(): SayableTypeMap[keyof SayableTypeMap];
@@ -71,6 +72,16 @@ export class PostPayloadClient extends jspb.Message {
71
72
  setSayableListList(value: Array<PostSayable>): void;
72
73
  addSayableList(value?: PostSayable, index?: number): PostSayable;
73
74
 
75
+ clearVisibleListList(): void;
76
+ getVisibleListList(): Array<string>;
77
+ setVisibleListList(value: Array<string>): void;
78
+ addVisibleList(value: string, index?: number): string;
79
+
80
+ hasLocation(): boolean;
81
+ clearLocation(): void;
82
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
83
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
84
+
74
85
  serializeBinary(): Uint8Array;
75
86
  toObject(includeInstance?: boolean): PostPayloadClient.AsObject;
76
87
  static toObject(includeInstance: boolean, msg: PostPayloadClient): PostPayloadClient.AsObject;
@@ -87,6 +98,8 @@ export namespace PostPayloadClient {
87
98
  rootId: string,
88
99
  type: PostTypeMap[keyof PostTypeMap],
89
100
  sayableListList: Array<PostSayable.AsObject>,
101
+ visibleListList: Array<string>,
102
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
90
103
  }
91
104
  }
92
105
 
@@ -122,6 +135,16 @@ export class PostPayloadServer extends jspb.Message {
122
135
  getLike(): number;
123
136
  setLike(value: number): void;
124
137
 
138
+ clearVisibleListList(): void;
139
+ getVisibleListList(): Array<string>;
140
+ setVisibleListList(value: Array<string>): void;
141
+ addVisibleList(value: string, index?: number): string;
142
+
143
+ hasLocation(): boolean;
144
+ clearLocation(): void;
145
+ getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
146
+ setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
147
+
125
148
  serializeBinary(): Uint8Array;
126
149
  toObject(includeInstance?: boolean): PostPayloadServer.AsObject;
127
150
  static toObject(includeInstance: boolean, msg: PostPayloadServer): PostPayloadServer.AsObject;
@@ -143,6 +166,8 @@ export namespace PostPayloadServer {
143
166
  children: number,
144
167
  descendant: number,
145
168
  like: number,
169
+ visibleListList: Array<string>,
170
+ location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
146
171
  }
147
172
  }
148
173
 
@@ -21,6 +21,8 @@ var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_url$link_pb);
22
22
  var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_channel_pb);
24
+ var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
25
+ goog.object.extend(proto, wechaty_puppet_location_pb);
24
26
  goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
25
27
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
@@ -628,7 +630,7 @@ proto.wechaty.puppet.PostSayable.prototype.clearMentionIdListList = function() {
628
630
  * @private {!Array<number>}
629
631
  * @const
630
632
  */
631
- proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4];
633
+ proto.wechaty.puppet.PostPayloadClient.repeatedFields_ = [4,5];
632
634
 
633
635
 
634
636
 
@@ -665,7 +667,9 @@ proto.wechaty.puppet.PostPayloadClient.toObject = function(includeInstance, msg)
665
667
  rootId: jspb.Message.getFieldWithDefault(msg, 2, ""),
666
668
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
667
669
  sayableListList: jspb.Message.toObjectList(msg.getSayableListList(),
668
- proto.wechaty.puppet.PostSayable.toObject, includeInstance)
670
+ proto.wechaty.puppet.PostSayable.toObject, includeInstance),
671
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
672
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
669
673
  };
670
674
 
671
675
  if (includeInstance) {
@@ -719,6 +723,15 @@ proto.wechaty.puppet.PostPayloadClient.deserializeBinaryFromReader = function(ms
719
723
  reader.readMessage(value,proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader);
720
724
  msg.addSayableList(value);
721
725
  break;
726
+ case 5:
727
+ var value = /** @type {string} */ (reader.readString());
728
+ msg.addVisibleList(value);
729
+ break;
730
+ case 6:
731
+ var value = new wechaty_puppet_location_pb.LocationPayload;
732
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
733
+ msg.setLocation(value);
734
+ break;
722
735
  default:
723
736
  reader.skipField();
724
737
  break;
@@ -777,6 +790,21 @@ proto.wechaty.puppet.PostPayloadClient.serializeBinaryToWriter = function(messag
777
790
  proto.wechaty.puppet.PostSayable.serializeBinaryToWriter
778
791
  );
779
792
  }
793
+ f = message.getVisibleListList();
794
+ if (f.length > 0) {
795
+ writer.writeRepeatedString(
796
+ 5,
797
+ f
798
+ );
799
+ }
800
+ f = message.getLocation();
801
+ if (f != null) {
802
+ writer.writeMessage(
803
+ 6,
804
+ f,
805
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
806
+ );
807
+ }
780
808
  };
781
809
 
782
810
 
@@ -872,13 +900,87 @@ proto.wechaty.puppet.PostPayloadClient.prototype.clearSayableListList = function
872
900
  };
873
901
 
874
902
 
903
+ /**
904
+ * repeated string visible_list = 5;
905
+ * @return {!Array<string>}
906
+ */
907
+ proto.wechaty.puppet.PostPayloadClient.prototype.getVisibleListList = function() {
908
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
909
+ };
910
+
911
+
912
+ /**
913
+ * @param {!Array<string>} value
914
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
915
+ */
916
+ proto.wechaty.puppet.PostPayloadClient.prototype.setVisibleListList = function(value) {
917
+ return jspb.Message.setField(this, 5, value || []);
918
+ };
919
+
920
+
921
+ /**
922
+ * @param {string} value
923
+ * @param {number=} opt_index
924
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
925
+ */
926
+ proto.wechaty.puppet.PostPayloadClient.prototype.addVisibleList = function(value, opt_index) {
927
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
928
+ };
929
+
930
+
931
+ /**
932
+ * Clears the list making it empty but non-null.
933
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
934
+ */
935
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearVisibleListList = function() {
936
+ return this.setVisibleListList([]);
937
+ };
938
+
939
+
940
+ /**
941
+ * optional LocationPayload location = 6;
942
+ * @return {?proto.wechaty.puppet.LocationPayload}
943
+ */
944
+ proto.wechaty.puppet.PostPayloadClient.prototype.getLocation = function() {
945
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
946
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 6));
947
+ };
948
+
949
+
950
+ /**
951
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
952
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
953
+ */
954
+ proto.wechaty.puppet.PostPayloadClient.prototype.setLocation = function(value) {
955
+ return jspb.Message.setWrapperField(this, 6, value);
956
+ };
957
+
958
+
959
+ /**
960
+ * Clears the message field making it undefined.
961
+ * @return {!proto.wechaty.puppet.PostPayloadClient} returns this
962
+ */
963
+ proto.wechaty.puppet.PostPayloadClient.prototype.clearLocation = function() {
964
+ return this.setLocation(undefined);
965
+ };
966
+
967
+
968
+ /**
969
+ * Returns whether this field is set.
970
+ * @return {boolean}
971
+ */
972
+ proto.wechaty.puppet.PostPayloadClient.prototype.hasLocation = function() {
973
+ return jspb.Message.getField(this, 6) != null;
974
+ };
975
+
976
+
875
977
 
876
978
  /**
877
979
  * List of repeated fields within this message type.
878
980
  * @private {!Array<number>}
879
981
  * @const
880
982
  */
881
- proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4];
983
+ proto.wechaty.puppet.PostPayloadServer.repeatedFields_ = [4,16];
882
984
 
883
985
 
884
986
 
@@ -920,7 +1022,9 @@ proto.wechaty.puppet.PostPayloadServer.toObject = function(includeInstance, msg)
920
1022
  timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
921
1023
  children: jspb.Message.getFieldWithDefault(msg, 7, 0),
922
1024
  descendant: jspb.Message.getFieldWithDefault(msg, 8, 0),
923
- like: jspb.Message.getFieldWithDefault(msg, 9, 0)
1025
+ like: jspb.Message.getFieldWithDefault(msg, 9, 0),
1026
+ visibleListList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
1027
+ location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
924
1028
  };
925
1029
 
926
1030
  if (includeInstance) {
@@ -995,6 +1099,15 @@ proto.wechaty.puppet.PostPayloadServer.deserializeBinaryFromReader = function(ms
995
1099
  var value = /** @type {number} */ (reader.readInt32());
996
1100
  msg.setLike(value);
997
1101
  break;
1102
+ case 16:
1103
+ var value = /** @type {string} */ (reader.readString());
1104
+ msg.addVisibleList(value);
1105
+ break;
1106
+ case 17:
1107
+ var value = new wechaty_puppet_location_pb.LocationPayload;
1108
+ reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
1109
+ msg.setLocation(value);
1110
+ break;
998
1111
  default:
999
1112
  reader.skipField();
1000
1113
  break;
@@ -1089,6 +1202,21 @@ proto.wechaty.puppet.PostPayloadServer.serializeBinaryToWriter = function(messag
1089
1202
  f
1090
1203
  );
1091
1204
  }
1205
+ f = message.getVisibleListList();
1206
+ if (f.length > 0) {
1207
+ writer.writeRepeatedString(
1208
+ 16,
1209
+ f
1210
+ );
1211
+ }
1212
+ f = message.getLocation();
1213
+ if (f != null) {
1214
+ writer.writeMessage(
1215
+ 17,
1216
+ f,
1217
+ wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
1218
+ );
1219
+ }
1092
1220
  };
1093
1221
 
1094
1222
 
@@ -1293,6 +1421,80 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1293
1421
  };
1294
1422
 
1295
1423
 
1424
+ /**
1425
+ * repeated string visible_list = 16;
1426
+ * @return {!Array<string>}
1427
+ */
1428
+ proto.wechaty.puppet.PostPayloadServer.prototype.getVisibleListList = function() {
1429
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * @param {!Array<string>} value
1435
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1436
+ */
1437
+ proto.wechaty.puppet.PostPayloadServer.prototype.setVisibleListList = function(value) {
1438
+ return jspb.Message.setField(this, 16, value || []);
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * @param {string} value
1444
+ * @param {number=} opt_index
1445
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1446
+ */
1447
+ proto.wechaty.puppet.PostPayloadServer.prototype.addVisibleList = function(value, opt_index) {
1448
+ return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
1449
+ };
1450
+
1451
+
1452
+ /**
1453
+ * Clears the list making it empty but non-null.
1454
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1455
+ */
1456
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearVisibleListList = function() {
1457
+ return this.setVisibleListList([]);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * optional LocationPayload location = 17;
1463
+ * @return {?proto.wechaty.puppet.LocationPayload}
1464
+ */
1465
+ proto.wechaty.puppet.PostPayloadServer.prototype.getLocation = function() {
1466
+ return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
1467
+ jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 17));
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * @param {?proto.wechaty.puppet.LocationPayload|undefined} value
1473
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1474
+ */
1475
+ proto.wechaty.puppet.PostPayloadServer.prototype.setLocation = function(value) {
1476
+ return jspb.Message.setWrapperField(this, 17, value);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Clears the message field making it undefined.
1482
+ * @return {!proto.wechaty.puppet.PostPayloadServer} returns this
1483
+ */
1484
+ proto.wechaty.puppet.PostPayloadServer.prototype.clearLocation = function() {
1485
+ return this.setLocation(undefined);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * Returns whether this field is set.
1491
+ * @return {boolean}
1492
+ */
1493
+ proto.wechaty.puppet.PostPayloadServer.prototype.hasLocation = function() {
1494
+ return jspb.Message.getField(this, 17) != null;
1495
+ };
1496
+
1497
+
1296
1498
 
1297
1499
 
1298
1500
 
@@ -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.30
12
+ version: 1.0.32
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2897,6 +2897,12 @@ definitions:
2897
2897
  type: array
2898
2898
  items:
2899
2899
  $ref: '#/definitions/puppetPostSayable'
2900
+ visibleList:
2901
+ type: array
2902
+ items:
2903
+ type: string
2904
+ location:
2905
+ $ref: '#/definitions/puppetLocationPayload'
2900
2906
  puppetPostPayloadRequest:
2901
2907
  type: object
2902
2908
  properties:
@@ -2949,6 +2955,12 @@ definitions:
2949
2955
  like:
2950
2956
  type: integer
2951
2957
  format: int32
2958
+ visibleList:
2959
+ type: array
2960
+ items:
2961
+ type: string
2962
+ location:
2963
+ $ref: '#/definitions/puppetLocationPayload'
2952
2964
  puppetPostSayable:
2953
2965
  type: object
2954
2966
  properties:
@@ -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.30",
6
+ "version": "1.0.32",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4071,6 +4071,15 @@
4071
4071
  "items": {
4072
4072
  "$ref": "#/definitions/puppetPostSayable"
4073
4073
  }
4074
+ },
4075
+ "visibleList": {
4076
+ "type": "array",
4077
+ "items": {
4078
+ "type": "string"
4079
+ }
4080
+ },
4081
+ "location": {
4082
+ "$ref": "#/definitions/puppetLocationPayload"
4074
4083
  }
4075
4084
  }
4076
4085
  },
@@ -4148,6 +4157,15 @@
4148
4157
  "like": {
4149
4158
  "type": "integer",
4150
4159
  "format": "int32"
4160
+ },
4161
+ "visibleList": {
4162
+ "type": "array",
4163
+ "items": {
4164
+ "type": "string"
4165
+ }
4166
+ },
4167
+ "location": {
4168
+ "$ref": "#/definitions/puppetLocationPayload"
4151
4169
  }
4152
4170
  }
4153
4171
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
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.30",
7
+ "version": "1.0.32",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {