@juzi/wechaty-grpc 1.0.82 → 1.0.84
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.
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +11 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +84 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +6 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +8 -1
- package/dist/cjs/proto/wechaty/puppet/room.proto +3 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +11 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +84 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +6 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +8 -1
- package/dist/esm/proto/wechaty/puppet/room.proto +3 -0
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/room_pb.d.ts +11 -0
- package/out/wechaty/puppet/room_pb.js +84 -1
- package/out/wechaty/puppet.openapi.yaml +6 -1
- package/out/wechaty/puppet.swagger.json +8 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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 {
|
|
@@ -95,6 +96,14 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
95
96
|
getRoomRemark(): string;
|
|
96
97
|
setRoomRemark(value: string): void;
|
|
97
98
|
|
|
99
|
+
getExternal(): boolean;
|
|
100
|
+
setExternal(value: boolean): void;
|
|
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
|
+
|
|
98
107
|
serializeBinary(): Uint8Array;
|
|
99
108
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
100
109
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -116,6 +125,8 @@ export namespace RoomPayloadResponse {
|
|
|
116
125
|
handle: string,
|
|
117
126
|
additionalInfo: string,
|
|
118
127
|
roomRemark: string,
|
|
128
|
+
external: boolean,
|
|
129
|
+
createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
119
130
|
}
|
|
120
131
|
}
|
|
121
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);
|
|
@@ -1113,7 +1115,9 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
1113
1115
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
1114
1116
|
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1115
1117
|
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1116
|
-
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
1118
|
+
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1119
|
+
external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
1120
|
+
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1117
1121
|
};
|
|
1118
1122
|
|
|
1119
1123
|
if (includeInstance) {
|
|
@@ -1186,6 +1190,15 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
1186
1190
|
var value = /** @type {string} */ (reader.readString());
|
|
1187
1191
|
msg.setRoomRemark(value);
|
|
1188
1192
|
break;
|
|
1193
|
+
case 10:
|
|
1194
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1195
|
+
msg.setExternal(value);
|
|
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;
|
|
1189
1202
|
default:
|
|
1190
1203
|
reader.skipField();
|
|
1191
1204
|
break;
|
|
@@ -1278,6 +1291,21 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1278
1291
|
f
|
|
1279
1292
|
);
|
|
1280
1293
|
}
|
|
1294
|
+
f = message.getExternal();
|
|
1295
|
+
if (f) {
|
|
1296
|
+
writer.writeBool(
|
|
1297
|
+
10,
|
|
1298
|
+
f
|
|
1299
|
+
);
|
|
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
|
+
}
|
|
1281
1309
|
};
|
|
1282
1310
|
|
|
1283
1311
|
|
|
@@ -1481,6 +1509,61 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setRoomRemark = function(valu
|
|
|
1481
1509
|
};
|
|
1482
1510
|
|
|
1483
1511
|
|
|
1512
|
+
/**
|
|
1513
|
+
* optional bool external = 10;
|
|
1514
|
+
* @return {boolean}
|
|
1515
|
+
*/
|
|
1516
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getExternal = function() {
|
|
1517
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* @param {boolean} value
|
|
1523
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1524
|
+
*/
|
|
1525
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value) {
|
|
1526
|
+
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
1527
|
+
};
|
|
1528
|
+
|
|
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
|
+
|
|
1484
1567
|
|
|
1485
1568
|
|
|
1486
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.
|
|
12
|
+
version: 1.0.84
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -4103,6 +4103,11 @@ definitions:
|
|
|
4103
4103
|
type: string
|
|
4104
4104
|
roomRemark:
|
|
4105
4105
|
type: string
|
|
4106
|
+
external:
|
|
4107
|
+
type: boolean
|
|
4108
|
+
createTime:
|
|
4109
|
+
type: string
|
|
4110
|
+
format: date-time
|
|
4106
4111
|
puppetRoomPermissionResponse:
|
|
4107
4112
|
type: object
|
|
4108
4113
|
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.
|
|
6
|
+
"version": "1.0.84",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -5818,6 +5818,13 @@
|
|
|
5818
5818
|
},
|
|
5819
5819
|
"roomRemark": {
|
|
5820
5820
|
"type": "string"
|
|
5821
|
+
},
|
|
5822
|
+
"external": {
|
|
5823
|
+
"type": "boolean"
|
|
5824
|
+
},
|
|
5825
|
+
"createTime": {
|
|
5826
|
+
"type": "string",
|
|
5827
|
+
"format": "date-time"
|
|
5821
5828
|
}
|
|
5822
5829
|
}
|
|
5823
5830
|
},
|
|
@@ -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
|
|
|
@@ -27,6 +28,8 @@ message RoomPayloadResponse {
|
|
|
27
28
|
string handle = 7; // IM内部id,企微中为群的chat_id
|
|
28
29
|
string additional_info = 8;
|
|
29
30
|
string room_remark = 9;
|
|
31
|
+
bool external = 10;
|
|
32
|
+
google.protobuf.Timestamp create_time = 11;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
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.
|
|
6
|
+
"version": "1.0.84",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -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 {
|
|
@@ -95,6 +96,14 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
95
96
|
getRoomRemark(): string;
|
|
96
97
|
setRoomRemark(value: string): void;
|
|
97
98
|
|
|
99
|
+
getExternal(): boolean;
|
|
100
|
+
setExternal(value: boolean): void;
|
|
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
|
+
|
|
98
107
|
serializeBinary(): Uint8Array;
|
|
99
108
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
100
109
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -116,6 +125,8 @@ export namespace RoomPayloadResponse {
|
|
|
116
125
|
handle: string,
|
|
117
126
|
additionalInfo: string,
|
|
118
127
|
roomRemark: string,
|
|
128
|
+
external: boolean,
|
|
129
|
+
createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
119
130
|
}
|
|
120
131
|
}
|
|
121
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);
|
|
@@ -1113,7 +1115,9 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
1113
1115
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
1114
1116
|
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1115
1117
|
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1116
|
-
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
1118
|
+
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1119
|
+
external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
1120
|
+
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1117
1121
|
};
|
|
1118
1122
|
|
|
1119
1123
|
if (includeInstance) {
|
|
@@ -1186,6 +1190,15 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
1186
1190
|
var value = /** @type {string} */ (reader.readString());
|
|
1187
1191
|
msg.setRoomRemark(value);
|
|
1188
1192
|
break;
|
|
1193
|
+
case 10:
|
|
1194
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1195
|
+
msg.setExternal(value);
|
|
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;
|
|
1189
1202
|
default:
|
|
1190
1203
|
reader.skipField();
|
|
1191
1204
|
break;
|
|
@@ -1278,6 +1291,21 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1278
1291
|
f
|
|
1279
1292
|
);
|
|
1280
1293
|
}
|
|
1294
|
+
f = message.getExternal();
|
|
1295
|
+
if (f) {
|
|
1296
|
+
writer.writeBool(
|
|
1297
|
+
10,
|
|
1298
|
+
f
|
|
1299
|
+
);
|
|
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
|
+
}
|
|
1281
1309
|
};
|
|
1282
1310
|
|
|
1283
1311
|
|
|
@@ -1481,6 +1509,61 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setRoomRemark = function(valu
|
|
|
1481
1509
|
};
|
|
1482
1510
|
|
|
1483
1511
|
|
|
1512
|
+
/**
|
|
1513
|
+
* optional bool external = 10;
|
|
1514
|
+
* @return {boolean}
|
|
1515
|
+
*/
|
|
1516
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getExternal = function() {
|
|
1517
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* @param {boolean} value
|
|
1523
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1524
|
+
*/
|
|
1525
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value) {
|
|
1526
|
+
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
1527
|
+
};
|
|
1528
|
+
|
|
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
|
+
|
|
1484
1567
|
|
|
1485
1568
|
|
|
1486
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.
|
|
12
|
+
version: 1.0.84
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -4103,6 +4103,11 @@ definitions:
|
|
|
4103
4103
|
type: string
|
|
4104
4104
|
roomRemark:
|
|
4105
4105
|
type: string
|
|
4106
|
+
external:
|
|
4107
|
+
type: boolean
|
|
4108
|
+
createTime:
|
|
4109
|
+
type: string
|
|
4110
|
+
format: date-time
|
|
4106
4111
|
puppetRoomPermissionResponse:
|
|
4107
4112
|
type: object
|
|
4108
4113
|
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.
|
|
6
|
+
"version": "1.0.84",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -5818,6 +5818,13 @@
|
|
|
5818
5818
|
},
|
|
5819
5819
|
"roomRemark": {
|
|
5820
5820
|
"type": "string"
|
|
5821
|
+
},
|
|
5822
|
+
"external": {
|
|
5823
|
+
"type": "boolean"
|
|
5824
|
+
},
|
|
5825
|
+
"createTime": {
|
|
5826
|
+
"type": "string",
|
|
5827
|
+
"format": "date-time"
|
|
5821
5828
|
}
|
|
5822
5829
|
}
|
|
5823
5830
|
},
|
|
@@ -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
|
|
|
@@ -27,6 +28,8 @@ message RoomPayloadResponse {
|
|
|
27
28
|
string handle = 7; // IM内部id,企微中为群的chat_id
|
|
28
29
|
string additional_info = 8;
|
|
29
30
|
string room_remark = 9;
|
|
31
|
+
bool external = 10;
|
|
32
|
+
google.protobuf.Timestamp create_time = 11;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
message RoomAddRequest {
|
|
@@ -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 {
|
|
@@ -95,6 +96,14 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
95
96
|
getRoomRemark(): string;
|
|
96
97
|
setRoomRemark(value: string): void;
|
|
97
98
|
|
|
99
|
+
getExternal(): boolean;
|
|
100
|
+
setExternal(value: boolean): void;
|
|
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
|
+
|
|
98
107
|
serializeBinary(): Uint8Array;
|
|
99
108
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
100
109
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -116,6 +125,8 @@ export namespace RoomPayloadResponse {
|
|
|
116
125
|
handle: string,
|
|
117
126
|
additionalInfo: string,
|
|
118
127
|
roomRemark: string,
|
|
128
|
+
external: boolean,
|
|
129
|
+
createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
119
130
|
}
|
|
120
131
|
}
|
|
121
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);
|
|
@@ -1113,7 +1115,9 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
1113
1115
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
1114
1116
|
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1115
1117
|
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1116
|
-
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
1118
|
+
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1119
|
+
external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
1120
|
+
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1117
1121
|
};
|
|
1118
1122
|
|
|
1119
1123
|
if (includeInstance) {
|
|
@@ -1186,6 +1190,15 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
1186
1190
|
var value = /** @type {string} */ (reader.readString());
|
|
1187
1191
|
msg.setRoomRemark(value);
|
|
1188
1192
|
break;
|
|
1193
|
+
case 10:
|
|
1194
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1195
|
+
msg.setExternal(value);
|
|
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;
|
|
1189
1202
|
default:
|
|
1190
1203
|
reader.skipField();
|
|
1191
1204
|
break;
|
|
@@ -1278,6 +1291,21 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1278
1291
|
f
|
|
1279
1292
|
);
|
|
1280
1293
|
}
|
|
1294
|
+
f = message.getExternal();
|
|
1295
|
+
if (f) {
|
|
1296
|
+
writer.writeBool(
|
|
1297
|
+
10,
|
|
1298
|
+
f
|
|
1299
|
+
);
|
|
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
|
+
}
|
|
1281
1309
|
};
|
|
1282
1310
|
|
|
1283
1311
|
|
|
@@ -1481,6 +1509,61 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setRoomRemark = function(valu
|
|
|
1481
1509
|
};
|
|
1482
1510
|
|
|
1483
1511
|
|
|
1512
|
+
/**
|
|
1513
|
+
* optional bool external = 10;
|
|
1514
|
+
* @return {boolean}
|
|
1515
|
+
*/
|
|
1516
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getExternal = function() {
|
|
1517
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* @param {boolean} value
|
|
1523
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1524
|
+
*/
|
|
1525
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setExternal = function(value) {
|
|
1526
|
+
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
1527
|
+
};
|
|
1528
|
+
|
|
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
|
+
|
|
1484
1567
|
|
|
1485
1568
|
|
|
1486
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.
|
|
12
|
+
version: 1.0.84
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -4103,6 +4103,11 @@ definitions:
|
|
|
4103
4103
|
type: string
|
|
4104
4104
|
roomRemark:
|
|
4105
4105
|
type: string
|
|
4106
|
+
external:
|
|
4107
|
+
type: boolean
|
|
4108
|
+
createTime:
|
|
4109
|
+
type: string
|
|
4110
|
+
format: date-time
|
|
4106
4111
|
puppetRoomPermissionResponse:
|
|
4107
4112
|
type: object
|
|
4108
4113
|
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.
|
|
6
|
+
"version": "1.0.84",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -5818,6 +5818,13 @@
|
|
|
5818
5818
|
},
|
|
5819
5819
|
"roomRemark": {
|
|
5820
5820
|
"type": "string"
|
|
5821
|
+
},
|
|
5822
|
+
"external": {
|
|
5823
|
+
"type": "boolean"
|
|
5824
|
+
},
|
|
5825
|
+
"createTime": {
|
|
5826
|
+
"type": "string",
|
|
5827
|
+
"format": "date-time"
|
|
5821
5828
|
}
|
|
5822
5829
|
}
|
|
5823
5830
|
},
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED