@juzi/wechaty-grpc 1.0.2 → 1.0.3

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.
@@ -65,6 +65,11 @@ export class MessagePayloadResponse extends jspb.Message {
65
65
  getReceiveTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
66
66
  setReceiveTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
67
67
 
68
+ hasQuoteId(): boolean;
69
+ clearQuoteId(): void;
70
+ getQuoteId(): string;
71
+ setQuoteId(value: string): void;
72
+
68
73
  serializeBinary(): Uint8Array;
69
74
  toObject(includeInstance?: boolean): MessagePayloadResponse.AsObject;
70
75
  static toObject(includeInstance: boolean, msg: MessagePayloadResponse): MessagePayloadResponse.AsObject;
@@ -87,6 +92,7 @@ export namespace MessagePayloadResponse {
87
92
  listenerId: string,
88
93
  mentionIdsList: Array<string>,
89
94
  receiveTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
95
+ quoteId: string,
90
96
  }
91
97
  }
92
98
 
@@ -956,7 +956,8 @@ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance,
956
956
  roomId: jspb.Message.getFieldWithDefault(msg, 7, ""),
957
957
  listenerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
958
958
  mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
959
- receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
959
+ receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
960
+ quoteId: jspb.Message.getFieldWithDefault(msg, 11, "")
960
961
  };
961
962
 
962
963
  if (includeInstance) {
@@ -1034,6 +1035,10 @@ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader = functi
1034
1035
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1035
1036
  msg.setReceiveTime(value);
1036
1037
  break;
1038
+ case 11:
1039
+ var value = /** @type {string} */ (reader.readString());
1040
+ msg.setQuoteId(value);
1041
+ break;
1037
1042
  default:
1038
1043
  reader.skipField();
1039
1044
  break;
@@ -1134,6 +1139,13 @@ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(m
1134
1139
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1135
1140
  );
1136
1141
  }
1142
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
1143
+ if (f != null) {
1144
+ writer.writeString(
1145
+ 11,
1146
+ f
1147
+ );
1148
+ }
1137
1149
  };
1138
1150
 
1139
1151
 
@@ -1355,6 +1367,42 @@ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function(
1355
1367
  };
1356
1368
 
1357
1369
 
1370
+ /**
1371
+ * optional string quote_id = 11;
1372
+ * @return {string}
1373
+ */
1374
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.getQuoteId = function() {
1375
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {string} value
1381
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1382
+ */
1383
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.setQuoteId = function(value) {
1384
+ return jspb.Message.setField(this, 11, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Clears the field making it undefined.
1390
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1391
+ */
1392
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.clearQuoteId = function() {
1393
+ return jspb.Message.setField(this, 11, undefined);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Returns whether this field is set.
1399
+ * @return {boolean}
1400
+ */
1401
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasQuoteId = function() {
1402
+ return jspb.Message.getField(this, 11) != null;
1403
+ };
1404
+
1405
+
1358
1406
 
1359
1407
 
1360
1408
 
@@ -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.2
12
+ version: 1.0.3
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2092,6 +2092,8 @@ definitions:
2092
2092
  receiveTime:
2093
2093
  type: string
2094
2094
  format: date-time
2095
+ quoteId:
2096
+ type: string
2095
2097
  puppetMessageRecallResponse:
2096
2098
  type: object
2097
2099
  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.2",
6
+ "version": "1.0.3",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3050,6 +3050,9 @@
3050
3050
  "receiveTime": {
3051
3051
  "type": "string",
3052
3052
  "format": "date-time"
3053
+ },
3054
+ "quoteId": {
3055
+ "type": "string"
3053
3056
  }
3054
3057
  }
3055
3058
  },
@@ -59,6 +59,7 @@ message MessagePayloadResponse {
59
59
  string listener_id = 8;
60
60
  repeated string mention_ids = 9;
61
61
  google.protobuf.Timestamp receive_time = 10;
62
+ optional string quote_id = 11;
62
63
  }
63
64
 
64
65
  message MessageImageRequest {
@@ -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.2",
6
+ "version": "1.0.3",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -65,6 +65,11 @@ export class MessagePayloadResponse extends jspb.Message {
65
65
  getReceiveTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
66
66
  setReceiveTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
67
67
 
68
+ hasQuoteId(): boolean;
69
+ clearQuoteId(): void;
70
+ getQuoteId(): string;
71
+ setQuoteId(value: string): void;
72
+
68
73
  serializeBinary(): Uint8Array;
69
74
  toObject(includeInstance?: boolean): MessagePayloadResponse.AsObject;
70
75
  static toObject(includeInstance: boolean, msg: MessagePayloadResponse): MessagePayloadResponse.AsObject;
@@ -87,6 +92,7 @@ export namespace MessagePayloadResponse {
87
92
  listenerId: string,
88
93
  mentionIdsList: Array<string>,
89
94
  receiveTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
95
+ quoteId: string,
90
96
  }
91
97
  }
92
98
 
@@ -956,7 +956,8 @@ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance,
956
956
  roomId: jspb.Message.getFieldWithDefault(msg, 7, ""),
957
957
  listenerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
958
958
  mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
959
- receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
959
+ receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
960
+ quoteId: jspb.Message.getFieldWithDefault(msg, 11, "")
960
961
  };
961
962
 
962
963
  if (includeInstance) {
@@ -1034,6 +1035,10 @@ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader = functi
1034
1035
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1035
1036
  msg.setReceiveTime(value);
1036
1037
  break;
1038
+ case 11:
1039
+ var value = /** @type {string} */ (reader.readString());
1040
+ msg.setQuoteId(value);
1041
+ break;
1037
1042
  default:
1038
1043
  reader.skipField();
1039
1044
  break;
@@ -1134,6 +1139,13 @@ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(m
1134
1139
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1135
1140
  );
1136
1141
  }
1142
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
1143
+ if (f != null) {
1144
+ writer.writeString(
1145
+ 11,
1146
+ f
1147
+ );
1148
+ }
1137
1149
  };
1138
1150
 
1139
1151
 
@@ -1355,6 +1367,42 @@ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function(
1355
1367
  };
1356
1368
 
1357
1369
 
1370
+ /**
1371
+ * optional string quote_id = 11;
1372
+ * @return {string}
1373
+ */
1374
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.getQuoteId = function() {
1375
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {string} value
1381
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1382
+ */
1383
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.setQuoteId = function(value) {
1384
+ return jspb.Message.setField(this, 11, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Clears the field making it undefined.
1390
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1391
+ */
1392
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.clearQuoteId = function() {
1393
+ return jspb.Message.setField(this, 11, undefined);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Returns whether this field is set.
1399
+ * @return {boolean}
1400
+ */
1401
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasQuoteId = function() {
1402
+ return jspb.Message.getField(this, 11) != null;
1403
+ };
1404
+
1405
+
1358
1406
 
1359
1407
 
1360
1408
 
@@ -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.2
12
+ version: 1.0.3
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2092,6 +2092,8 @@ definitions:
2092
2092
  receiveTime:
2093
2093
  type: string
2094
2094
  format: date-time
2095
+ quoteId:
2096
+ type: string
2095
2097
  puppetMessageRecallResponse:
2096
2098
  type: object
2097
2099
  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.2",
6
+ "version": "1.0.3",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3050,6 +3050,9 @@
3050
3050
  "receiveTime": {
3051
3051
  "type": "string",
3052
3052
  "format": "date-time"
3053
+ },
3054
+ "quoteId": {
3055
+ "type": "string"
3053
3056
  }
3054
3057
  }
3055
3058
  },
@@ -59,6 +59,7 @@ message MessagePayloadResponse {
59
59
  string listener_id = 8;
60
60
  repeated string mention_ids = 9;
61
61
  google.protobuf.Timestamp receive_time = 10;
62
+ optional string quote_id = 11;
62
63
  }
63
64
 
64
65
  message MessageImageRequest {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -65,6 +65,11 @@ export class MessagePayloadResponse extends jspb.Message {
65
65
  getReceiveTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
66
66
  setReceiveTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
67
67
 
68
+ hasQuoteId(): boolean;
69
+ clearQuoteId(): void;
70
+ getQuoteId(): string;
71
+ setQuoteId(value: string): void;
72
+
68
73
  serializeBinary(): Uint8Array;
69
74
  toObject(includeInstance?: boolean): MessagePayloadResponse.AsObject;
70
75
  static toObject(includeInstance: boolean, msg: MessagePayloadResponse): MessagePayloadResponse.AsObject;
@@ -87,6 +92,7 @@ export namespace MessagePayloadResponse {
87
92
  listenerId: string,
88
93
  mentionIdsList: Array<string>,
89
94
  receiveTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
95
+ quoteId: string,
90
96
  }
91
97
  }
92
98
 
@@ -956,7 +956,8 @@ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance,
956
956
  roomId: jspb.Message.getFieldWithDefault(msg, 7, ""),
957
957
  listenerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
958
958
  mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
959
- receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
959
+ receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
960
+ quoteId: jspb.Message.getFieldWithDefault(msg, 11, "")
960
961
  };
961
962
 
962
963
  if (includeInstance) {
@@ -1034,6 +1035,10 @@ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader = functi
1034
1035
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1035
1036
  msg.setReceiveTime(value);
1036
1037
  break;
1038
+ case 11:
1039
+ var value = /** @type {string} */ (reader.readString());
1040
+ msg.setQuoteId(value);
1041
+ break;
1037
1042
  default:
1038
1043
  reader.skipField();
1039
1044
  break;
@@ -1134,6 +1139,13 @@ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(m
1134
1139
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1135
1140
  );
1136
1141
  }
1142
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
1143
+ if (f != null) {
1144
+ writer.writeString(
1145
+ 11,
1146
+ f
1147
+ );
1148
+ }
1137
1149
  };
1138
1150
 
1139
1151
 
@@ -1355,6 +1367,42 @@ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function(
1355
1367
  };
1356
1368
 
1357
1369
 
1370
+ /**
1371
+ * optional string quote_id = 11;
1372
+ * @return {string}
1373
+ */
1374
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.getQuoteId = function() {
1375
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {string} value
1381
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1382
+ */
1383
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.setQuoteId = function(value) {
1384
+ return jspb.Message.setField(this, 11, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Clears the field making it undefined.
1390
+ * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
1391
+ */
1392
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.clearQuoteId = function() {
1393
+ return jspb.Message.setField(this, 11, undefined);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Returns whether this field is set.
1399
+ * @return {boolean}
1400
+ */
1401
+ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasQuoteId = function() {
1402
+ return jspb.Message.getField(this, 11) != null;
1403
+ };
1404
+
1405
+
1358
1406
 
1359
1407
 
1360
1408
 
@@ -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.2
12
+ version: 1.0.3
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2092,6 +2092,8 @@ definitions:
2092
2092
  receiveTime:
2093
2093
  type: string
2094
2094
  format: date-time
2095
+ quoteId:
2096
+ type: string
2095
2097
  puppetMessageRecallResponse:
2096
2098
  type: object
2097
2099
  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.2",
6
+ "version": "1.0.3",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3050,6 +3050,9 @@
3050
3050
  "receiveTime": {
3051
3051
  "type": "string",
3052
3052
  "format": "date-time"
3053
+ },
3054
+ "quoteId": {
3055
+ "type": "string"
3053
3056
  }
3054
3057
  }
3055
3058
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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.2",
7
+ "version": "1.0.3",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {