@juzi/wechaty-grpc 1.0.83 → 1.0.85

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.
@@ -340,6 +340,8 @@ export interface PostTypeMap {
340
340
  POST_TYPE_CHANNEL: 2;
341
341
  POST_TYPE_MESSAGE: 3;
342
342
  POST_TYPE_BROADCAST: 4;
343
+ POST_TYPE_TEXT_BUTTON: 5;
344
+ POST_TYPE_GOODS_CARD: 6;
343
345
  }
344
346
 
345
347
  export const PostType: PostTypeMap;
@@ -2598,7 +2598,9 @@ proto.wechaty.puppet.PostType = {
2598
2598
  POST_TYPE_MOMENT: 1,
2599
2599
  POST_TYPE_CHANNEL: 2,
2600
2600
  POST_TYPE_MESSAGE: 3,
2601
- POST_TYPE_BROADCAST: 4
2601
+ POST_TYPE_BROADCAST: 4,
2602
+ POST_TYPE_TEXT_BUTTON: 5,
2603
+ POST_TYPE_GOODS_CARD: 6
2602
2604
  };
2603
2605
 
2604
2606
  /**
@@ -3,6 +3,7 @@
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
6
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
7
  import * as wechaty_puppet_util_pb from "../../wechaty/puppet/util_pb";
7
8
 
8
9
  export class RoomListRequest extends jspb.Message {
@@ -98,6 +99,11 @@ export class RoomPayloadResponse extends jspb.Message {
98
99
  getExternal(): boolean;
99
100
  setExternal(value: boolean): void;
100
101
 
102
+ hasCreateTime(): boolean;
103
+ clearCreateTime(): void;
104
+ getCreateTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
105
+ setCreateTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
106
+
101
107
  serializeBinary(): Uint8Array;
102
108
  toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
103
109
  static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
@@ -120,6 +126,7 @@ export namespace RoomPayloadResponse {
120
126
  additionalInfo: string,
121
127
  roomRemark: string,
122
128
  external: boolean,
129
+ createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
123
130
  }
124
131
  }
125
132
 
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
20
22
  var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
21
23
  goog.object.extend(proto, wechaty_puppet_util_pb);
22
24
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
@@ -1114,7 +1116,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
1114
1116
  handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
1115
1117
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
1116
1118
  roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
1117
- external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
1119
+ external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
1120
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1118
1121
  };
1119
1122
 
1120
1123
  if (includeInstance) {
@@ -1191,6 +1194,11 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
1191
1194
  var value = /** @type {boolean} */ (reader.readBool());
1192
1195
  msg.setExternal(value);
1193
1196
  break;
1197
+ case 11:
1198
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1199
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1200
+ msg.setCreateTime(value);
1201
+ break;
1194
1202
  default:
1195
1203
  reader.skipField();
1196
1204
  break;
@@ -1290,6 +1298,14 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
1290
1298
  f
1291
1299
  );
1292
1300
  }
1301
+ f = message.getCreateTime();
1302
+ if (f != null) {
1303
+ writer.writeMessage(
1304
+ 11,
1305
+ f,
1306
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1307
+ );
1308
+ }
1293
1309
  };
1294
1310
 
1295
1311
 
@@ -1511,6 +1527,43 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value)
1511
1527
  };
1512
1528
 
1513
1529
 
1530
+ /**
1531
+ * optional google.protobuf.Timestamp create_time = 11;
1532
+ * @return {?proto.google.protobuf.Timestamp}
1533
+ */
1534
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.getCreateTime = function() {
1535
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1536
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1542
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1543
+ */
1544
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.setCreateTime = function(value) {
1545
+ return jspb.Message.setWrapperField(this, 11, value);
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Clears the message field making it undefined.
1551
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1552
+ */
1553
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.clearCreateTime = function() {
1554
+ return this.setCreateTime(undefined);
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Returns whether this field is set.
1560
+ * @return {boolean}
1561
+ */
1562
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1563
+ return jspb.Message.getField(this, 11) != null;
1564
+ };
1565
+
1566
+
1514
1567
 
1515
1568
 
1516
1569
 
@@ -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.83
12
+ version: 1.0.85
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -3914,12 +3914,16 @@ definitions:
3914
3914
  - POST_TYPE_CHANNEL
3915
3915
  - POST_TYPE_MESSAGE
3916
3916
  - POST_TYPE_BROADCAST
3917
+ - POST_TYPE_TEXT_BUTTON
3918
+ - POST_TYPE_GOODS_CARD
3917
3919
  default: POST_TYPE_UNSPECIFIED
3918
3920
  title: |-
3919
3921
  - POST_TYPE_MOMENT: 朋友圈
3920
3922
  - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
3921
3923
  - POST_TYPE_MESSAGE: 消息——富媒体消息
3922
3924
  - POST_TYPE_BROADCAST: 群发
3925
+ - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息
3926
+ - POST_TYPE_GOODS_CARD: puppet-mini 商品消息
3923
3927
  puppetReferrer:
3924
3928
  type: object
3925
3929
  properties:
@@ -4105,6 +4109,9 @@ definitions:
4105
4109
  type: string
4106
4110
  external:
4107
4111
  type: boolean
4112
+ createTime:
4113
+ type: string
4114
+ format: date-time
4108
4115
  puppetRoomPermissionResponse:
4109
4116
  type: object
4110
4117
  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.83",
6
+ "version": "1.0.85",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -5565,10 +5565,12 @@
5565
5565
  "POST_TYPE_MOMENT",
5566
5566
  "POST_TYPE_CHANNEL",
5567
5567
  "POST_TYPE_MESSAGE",
5568
- "POST_TYPE_BROADCAST"
5568
+ "POST_TYPE_BROADCAST",
5569
+ "POST_TYPE_TEXT_BUTTON",
5570
+ "POST_TYPE_GOODS_CARD"
5569
5571
  ],
5570
5572
  "default": "POST_TYPE_UNSPECIFIED",
5571
- "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发"
5573
+ "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发\n - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息\n - POST_TYPE_GOODS_CARD: puppet-mini 商品消息"
5572
5574
  },
5573
5575
  "puppetReferrer": {
5574
5576
  "type": "object",
@@ -5821,6 +5823,10 @@
5821
5823
  },
5822
5824
  "external": {
5823
5825
  "type": "boolean"
5826
+ },
5827
+ "createTime": {
5828
+ "type": "string",
5829
+ "format": "date-time"
5824
5830
  }
5825
5831
  }
5826
5832
  },
@@ -18,6 +18,8 @@ enum PostType {
18
18
  POST_TYPE_CHANNEL = 2; // 视频号——原始设计走post,实际目前采用message
19
19
  POST_TYPE_MESSAGE = 3; // 消息——富媒体消息
20
20
  POST_TYPE_BROADCAST = 4; // 群发
21
+ POST_TYPE_TEXT_BUTTON = 5; // puppet-mini 按钮消息
22
+ POST_TYPE_GOODS_CARD = 6; // puppet-mini 商品消息
21
23
  }
22
24
 
23
25
  enum SayableType {
@@ -6,6 +6,7 @@ option java_package = "io.github.wechaty.grpc.puppet";
6
6
  option csharp_namespace = "github.wechaty.grpc.puppet";
7
7
 
8
8
  import "google/protobuf/wrappers.proto";
9
+ import "google/protobuf/timestamp.proto";
9
10
 
10
11
  import "wechaty/puppet/util.proto";
11
12
 
@@ -28,6 +29,7 @@ message RoomPayloadResponse {
28
29
  string additional_info = 8;
29
30
  string room_remark = 9;
30
31
  bool external = 10;
32
+ google.protobuf.Timestamp create_time = 11;
31
33
  }
32
34
 
33
35
  message RoomAddRequest {
@@ -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.83",
6
+ "version": "1.0.85",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -340,6 +340,8 @@ export interface PostTypeMap {
340
340
  POST_TYPE_CHANNEL: 2;
341
341
  POST_TYPE_MESSAGE: 3;
342
342
  POST_TYPE_BROADCAST: 4;
343
+ POST_TYPE_TEXT_BUTTON: 5;
344
+ POST_TYPE_GOODS_CARD: 6;
343
345
  }
344
346
 
345
347
  export const PostType: PostTypeMap;
@@ -2598,7 +2598,9 @@ proto.wechaty.puppet.PostType = {
2598
2598
  POST_TYPE_MOMENT: 1,
2599
2599
  POST_TYPE_CHANNEL: 2,
2600
2600
  POST_TYPE_MESSAGE: 3,
2601
- POST_TYPE_BROADCAST: 4
2601
+ POST_TYPE_BROADCAST: 4,
2602
+ POST_TYPE_TEXT_BUTTON: 5,
2603
+ POST_TYPE_GOODS_CARD: 6
2602
2604
  };
2603
2605
 
2604
2606
  /**
@@ -3,6 +3,7 @@
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
6
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
7
  import * as wechaty_puppet_util_pb from "../../wechaty/puppet/util_pb";
7
8
 
8
9
  export class RoomListRequest extends jspb.Message {
@@ -98,6 +99,11 @@ export class RoomPayloadResponse extends jspb.Message {
98
99
  getExternal(): boolean;
99
100
  setExternal(value: boolean): void;
100
101
 
102
+ hasCreateTime(): boolean;
103
+ clearCreateTime(): void;
104
+ getCreateTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
105
+ setCreateTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
106
+
101
107
  serializeBinary(): Uint8Array;
102
108
  toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
103
109
  static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
@@ -120,6 +126,7 @@ export namespace RoomPayloadResponse {
120
126
  additionalInfo: string,
121
127
  roomRemark: string,
122
128
  external: boolean,
129
+ createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
123
130
  }
124
131
  }
125
132
 
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
20
22
  var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
21
23
  goog.object.extend(proto, wechaty_puppet_util_pb);
22
24
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
@@ -1114,7 +1116,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
1114
1116
  handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
1115
1117
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
1116
1118
  roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
1117
- external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
1119
+ external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
1120
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1118
1121
  };
1119
1122
 
1120
1123
  if (includeInstance) {
@@ -1191,6 +1194,11 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
1191
1194
  var value = /** @type {boolean} */ (reader.readBool());
1192
1195
  msg.setExternal(value);
1193
1196
  break;
1197
+ case 11:
1198
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1199
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1200
+ msg.setCreateTime(value);
1201
+ break;
1194
1202
  default:
1195
1203
  reader.skipField();
1196
1204
  break;
@@ -1290,6 +1298,14 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
1290
1298
  f
1291
1299
  );
1292
1300
  }
1301
+ f = message.getCreateTime();
1302
+ if (f != null) {
1303
+ writer.writeMessage(
1304
+ 11,
1305
+ f,
1306
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1307
+ );
1308
+ }
1293
1309
  };
1294
1310
 
1295
1311
 
@@ -1511,6 +1527,43 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value)
1511
1527
  };
1512
1528
 
1513
1529
 
1530
+ /**
1531
+ * optional google.protobuf.Timestamp create_time = 11;
1532
+ * @return {?proto.google.protobuf.Timestamp}
1533
+ */
1534
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.getCreateTime = function() {
1535
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1536
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1542
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1543
+ */
1544
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.setCreateTime = function(value) {
1545
+ return jspb.Message.setWrapperField(this, 11, value);
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Clears the message field making it undefined.
1551
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1552
+ */
1553
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.clearCreateTime = function() {
1554
+ return this.setCreateTime(undefined);
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Returns whether this field is set.
1560
+ * @return {boolean}
1561
+ */
1562
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1563
+ return jspb.Message.getField(this, 11) != null;
1564
+ };
1565
+
1566
+
1514
1567
 
1515
1568
 
1516
1569
 
@@ -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.83
12
+ version: 1.0.85
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -3914,12 +3914,16 @@ definitions:
3914
3914
  - POST_TYPE_CHANNEL
3915
3915
  - POST_TYPE_MESSAGE
3916
3916
  - POST_TYPE_BROADCAST
3917
+ - POST_TYPE_TEXT_BUTTON
3918
+ - POST_TYPE_GOODS_CARD
3917
3919
  default: POST_TYPE_UNSPECIFIED
3918
3920
  title: |-
3919
3921
  - POST_TYPE_MOMENT: 朋友圈
3920
3922
  - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
3921
3923
  - POST_TYPE_MESSAGE: 消息——富媒体消息
3922
3924
  - POST_TYPE_BROADCAST: 群发
3925
+ - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息
3926
+ - POST_TYPE_GOODS_CARD: puppet-mini 商品消息
3923
3927
  puppetReferrer:
3924
3928
  type: object
3925
3929
  properties:
@@ -4105,6 +4109,9 @@ definitions:
4105
4109
  type: string
4106
4110
  external:
4107
4111
  type: boolean
4112
+ createTime:
4113
+ type: string
4114
+ format: date-time
4108
4115
  puppetRoomPermissionResponse:
4109
4116
  type: object
4110
4117
  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.83",
6
+ "version": "1.0.85",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -5565,10 +5565,12 @@
5565
5565
  "POST_TYPE_MOMENT",
5566
5566
  "POST_TYPE_CHANNEL",
5567
5567
  "POST_TYPE_MESSAGE",
5568
- "POST_TYPE_BROADCAST"
5568
+ "POST_TYPE_BROADCAST",
5569
+ "POST_TYPE_TEXT_BUTTON",
5570
+ "POST_TYPE_GOODS_CARD"
5569
5571
  ],
5570
5572
  "default": "POST_TYPE_UNSPECIFIED",
5571
- "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发"
5573
+ "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发\n - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息\n - POST_TYPE_GOODS_CARD: puppet-mini 商品消息"
5572
5574
  },
5573
5575
  "puppetReferrer": {
5574
5576
  "type": "object",
@@ -5821,6 +5823,10 @@
5821
5823
  },
5822
5824
  "external": {
5823
5825
  "type": "boolean"
5826
+ },
5827
+ "createTime": {
5828
+ "type": "string",
5829
+ "format": "date-time"
5824
5830
  }
5825
5831
  }
5826
5832
  },
@@ -18,6 +18,8 @@ enum PostType {
18
18
  POST_TYPE_CHANNEL = 2; // 视频号——原始设计走post,实际目前采用message
19
19
  POST_TYPE_MESSAGE = 3; // 消息——富媒体消息
20
20
  POST_TYPE_BROADCAST = 4; // 群发
21
+ POST_TYPE_TEXT_BUTTON = 5; // puppet-mini 按钮消息
22
+ POST_TYPE_GOODS_CARD = 6; // puppet-mini 商品消息
21
23
  }
22
24
 
23
25
  enum SayableType {
@@ -6,6 +6,7 @@ option java_package = "io.github.wechaty.grpc.puppet";
6
6
  option csharp_namespace = "github.wechaty.grpc.puppet";
7
7
 
8
8
  import "google/protobuf/wrappers.proto";
9
+ import "google/protobuf/timestamp.proto";
9
10
 
10
11
  import "wechaty/puppet/util.proto";
11
12
 
@@ -28,6 +29,7 @@ message RoomPayloadResponse {
28
29
  string additional_info = 8;
29
30
  string room_remark = 9;
30
31
  bool external = 10;
32
+ google.protobuf.Timestamp create_time = 11;
31
33
  }
32
34
 
33
35
  message RoomAddRequest {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -340,6 +340,8 @@ export interface PostTypeMap {
340
340
  POST_TYPE_CHANNEL: 2;
341
341
  POST_TYPE_MESSAGE: 3;
342
342
  POST_TYPE_BROADCAST: 4;
343
+ POST_TYPE_TEXT_BUTTON: 5;
344
+ POST_TYPE_GOODS_CARD: 6;
343
345
  }
344
346
 
345
347
  export const PostType: PostTypeMap;
@@ -2598,7 +2598,9 @@ proto.wechaty.puppet.PostType = {
2598
2598
  POST_TYPE_MOMENT: 1,
2599
2599
  POST_TYPE_CHANNEL: 2,
2600
2600
  POST_TYPE_MESSAGE: 3,
2601
- POST_TYPE_BROADCAST: 4
2601
+ POST_TYPE_BROADCAST: 4,
2602
+ POST_TYPE_TEXT_BUTTON: 5,
2603
+ POST_TYPE_GOODS_CARD: 6
2602
2604
  };
2603
2605
 
2604
2606
  /**
@@ -3,6 +3,7 @@
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
6
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
7
  import * as wechaty_puppet_util_pb from "../../wechaty/puppet/util_pb";
7
8
 
8
9
  export class RoomListRequest extends jspb.Message {
@@ -98,6 +99,11 @@ export class RoomPayloadResponse extends jspb.Message {
98
99
  getExternal(): boolean;
99
100
  setExternal(value: boolean): void;
100
101
 
102
+ hasCreateTime(): boolean;
103
+ clearCreateTime(): void;
104
+ getCreateTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
105
+ setCreateTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
106
+
101
107
  serializeBinary(): Uint8Array;
102
108
  toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
103
109
  static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
@@ -120,6 +126,7 @@ export namespace RoomPayloadResponse {
120
126
  additionalInfo: string,
121
127
  roomRemark: string,
122
128
  external: boolean,
129
+ createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
123
130
  }
124
131
  }
125
132
 
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
20
22
  var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
21
23
  goog.object.extend(proto, wechaty_puppet_util_pb);
22
24
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
@@ -1114,7 +1116,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
1114
1116
  handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
1115
1117
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
1116
1118
  roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
1117
- external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
1119
+ external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
1120
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1118
1121
  };
1119
1122
 
1120
1123
  if (includeInstance) {
@@ -1191,6 +1194,11 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
1191
1194
  var value = /** @type {boolean} */ (reader.readBool());
1192
1195
  msg.setExternal(value);
1193
1196
  break;
1197
+ case 11:
1198
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1199
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1200
+ msg.setCreateTime(value);
1201
+ break;
1194
1202
  default:
1195
1203
  reader.skipField();
1196
1204
  break;
@@ -1290,6 +1298,14 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
1290
1298
  f
1291
1299
  );
1292
1300
  }
1301
+ f = message.getCreateTime();
1302
+ if (f != null) {
1303
+ writer.writeMessage(
1304
+ 11,
1305
+ f,
1306
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1307
+ );
1308
+ }
1293
1309
  };
1294
1310
 
1295
1311
 
@@ -1511,6 +1527,43 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value)
1511
1527
  };
1512
1528
 
1513
1529
 
1530
+ /**
1531
+ * optional google.protobuf.Timestamp create_time = 11;
1532
+ * @return {?proto.google.protobuf.Timestamp}
1533
+ */
1534
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.getCreateTime = function() {
1535
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1536
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1542
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1543
+ */
1544
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.setCreateTime = function(value) {
1545
+ return jspb.Message.setWrapperField(this, 11, value);
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Clears the message field making it undefined.
1551
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1552
+ */
1553
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.clearCreateTime = function() {
1554
+ return this.setCreateTime(undefined);
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Returns whether this field is set.
1560
+ * @return {boolean}
1561
+ */
1562
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1563
+ return jspb.Message.getField(this, 11) != null;
1564
+ };
1565
+
1566
+
1514
1567
 
1515
1568
 
1516
1569
 
@@ -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.83
12
+ version: 1.0.85
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -3914,12 +3914,16 @@ definitions:
3914
3914
  - POST_TYPE_CHANNEL
3915
3915
  - POST_TYPE_MESSAGE
3916
3916
  - POST_TYPE_BROADCAST
3917
+ - POST_TYPE_TEXT_BUTTON
3918
+ - POST_TYPE_GOODS_CARD
3917
3919
  default: POST_TYPE_UNSPECIFIED
3918
3920
  title: |-
3919
3921
  - POST_TYPE_MOMENT: 朋友圈
3920
3922
  - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
3921
3923
  - POST_TYPE_MESSAGE: 消息——富媒体消息
3922
3924
  - POST_TYPE_BROADCAST: 群发
3925
+ - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息
3926
+ - POST_TYPE_GOODS_CARD: puppet-mini 商品消息
3923
3927
  puppetReferrer:
3924
3928
  type: object
3925
3929
  properties:
@@ -4105,6 +4109,9 @@ definitions:
4105
4109
  type: string
4106
4110
  external:
4107
4111
  type: boolean
4112
+ createTime:
4113
+ type: string
4114
+ format: date-time
4108
4115
  puppetRoomPermissionResponse:
4109
4116
  type: object
4110
4117
  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.83",
6
+ "version": "1.0.85",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -5565,10 +5565,12 @@
5565
5565
  "POST_TYPE_MOMENT",
5566
5566
  "POST_TYPE_CHANNEL",
5567
5567
  "POST_TYPE_MESSAGE",
5568
- "POST_TYPE_BROADCAST"
5568
+ "POST_TYPE_BROADCAST",
5569
+ "POST_TYPE_TEXT_BUTTON",
5570
+ "POST_TYPE_GOODS_CARD"
5569
5571
  ],
5570
5572
  "default": "POST_TYPE_UNSPECIFIED",
5571
- "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发"
5573
+ "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息\n - POST_TYPE_BROADCAST: 群发\n - POST_TYPE_TEXT_BUTTON: puppet-mini 按钮消息\n - POST_TYPE_GOODS_CARD: puppet-mini 商品消息"
5572
5574
  },
5573
5575
  "puppetReferrer": {
5574
5576
  "type": "object",
@@ -5821,6 +5823,10 @@
5821
5823
  },
5822
5824
  "external": {
5823
5825
  "type": "boolean"
5826
+ },
5827
+ "createTime": {
5828
+ "type": "string",
5829
+ "format": "date-time"
5824
5830
  }
5825
5831
  }
5826
5832
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
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.83",
7
+ "version": "1.0.85",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {