@juzi/wechaty-grpc 1.0.33 → 1.0.34
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/conversation_pb.d.ts +8 -0
- package/dist/cjs/out/wechaty/puppet/conversation_pb.js +61 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +7 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +13 -3
- package/dist/cjs/proto/wechaty/puppet/conversation.proto +4 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/conversation_pb.d.ts +8 -0
- package/dist/esm/out/wechaty/puppet/conversation_pb.js +61 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +7 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +13 -3
- package/dist/esm/proto/wechaty/puppet/conversation.proto +4 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/conversation_pb.d.ts +8 -0
- package/out/wechaty/puppet/conversation_pb.js +61 -2
- package/out/wechaty/puppet.openapi.yaml +7 -1
- package/out/wechaty/puppet.swagger.json +13 -3
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -7,6 +7,9 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
7
7
|
getConversationId(): string;
|
|
8
8
|
setConversationId(value: string): void;
|
|
9
9
|
|
|
10
|
+
getHasRead(): boolean;
|
|
11
|
+
setHasRead(value: boolean): void;
|
|
12
|
+
|
|
10
13
|
serializeBinary(): Uint8Array;
|
|
11
14
|
toObject(includeInstance?: boolean): ConversationReadRequest.AsObject;
|
|
12
15
|
static toObject(includeInstance: boolean, msg: ConversationReadRequest): ConversationReadRequest.AsObject;
|
|
@@ -20,10 +23,14 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
20
23
|
export namespace ConversationReadRequest {
|
|
21
24
|
export type AsObject = {
|
|
22
25
|
conversationId: string,
|
|
26
|
+
hasRead: boolean,
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export class ConversationReadResponse extends jspb.Message {
|
|
31
|
+
getHasRead(): boolean;
|
|
32
|
+
setHasRead(value: boolean): void;
|
|
33
|
+
|
|
27
34
|
serializeBinary(): Uint8Array;
|
|
28
35
|
toObject(includeInstance?: boolean): ConversationReadResponse.AsObject;
|
|
29
36
|
static toObject(includeInstance: boolean, msg: ConversationReadResponse): ConversationReadResponse.AsObject;
|
|
@@ -36,6 +43,7 @@ export class ConversationReadResponse extends jspb.Message {
|
|
|
36
43
|
|
|
37
44
|
export namespace ConversationReadResponse {
|
|
38
45
|
export type AsObject = {
|
|
46
|
+
hasRead: boolean,
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
|
|
@@ -91,7 +91,8 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.toObject = function(opt_i
|
|
|
91
91
|
*/
|
|
92
92
|
proto.wechaty.puppet.ConversationReadRequest.toObject = function(includeInstance, msg) {
|
|
93
93
|
var f, obj = {
|
|
94
|
-
conversationId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
94
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
95
96
|
};
|
|
96
97
|
|
|
97
98
|
if (includeInstance) {
|
|
@@ -132,6 +133,10 @@ proto.wechaty.puppet.ConversationReadRequest.deserializeBinaryFromReader = funct
|
|
|
132
133
|
var value = /** @type {string} */ (reader.readString());
|
|
133
134
|
msg.setConversationId(value);
|
|
134
135
|
break;
|
|
136
|
+
case 2:
|
|
137
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
138
|
+
msg.setHasRead(value);
|
|
139
|
+
break;
|
|
135
140
|
default:
|
|
136
141
|
reader.skipField();
|
|
137
142
|
break;
|
|
@@ -168,6 +173,13 @@ proto.wechaty.puppet.ConversationReadRequest.serializeBinaryToWriter = function(
|
|
|
168
173
|
f
|
|
169
174
|
);
|
|
170
175
|
}
|
|
176
|
+
f = message.getHasRead();
|
|
177
|
+
if (f) {
|
|
178
|
+
writer.writeBool(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
171
183
|
};
|
|
172
184
|
|
|
173
185
|
|
|
@@ -189,6 +201,24 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.setConversationId = funct
|
|
|
189
201
|
};
|
|
190
202
|
|
|
191
203
|
|
|
204
|
+
/**
|
|
205
|
+
* optional bool has_read = 2;
|
|
206
|
+
* @return {boolean}
|
|
207
|
+
*/
|
|
208
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.getHasRead = function() {
|
|
209
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {boolean} value
|
|
215
|
+
* @return {!proto.wechaty.puppet.ConversationReadRequest} returns this
|
|
216
|
+
*/
|
|
217
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.setHasRead = function(value) {
|
|
218
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
192
222
|
|
|
193
223
|
|
|
194
224
|
|
|
@@ -221,7 +251,7 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.toObject = function(opt_
|
|
|
221
251
|
*/
|
|
222
252
|
proto.wechaty.puppet.ConversationReadResponse.toObject = function(includeInstance, msg) {
|
|
223
253
|
var f, obj = {
|
|
224
|
-
|
|
254
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
225
255
|
};
|
|
226
256
|
|
|
227
257
|
if (includeInstance) {
|
|
@@ -258,6 +288,10 @@ proto.wechaty.puppet.ConversationReadResponse.deserializeBinaryFromReader = func
|
|
|
258
288
|
}
|
|
259
289
|
var field = reader.getFieldNumber();
|
|
260
290
|
switch (field) {
|
|
291
|
+
case 1:
|
|
292
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
293
|
+
msg.setHasRead(value);
|
|
294
|
+
break;
|
|
261
295
|
default:
|
|
262
296
|
reader.skipField();
|
|
263
297
|
break;
|
|
@@ -287,6 +321,31 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.serializeBinary = functi
|
|
|
287
321
|
*/
|
|
288
322
|
proto.wechaty.puppet.ConversationReadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
289
323
|
var f = undefined;
|
|
324
|
+
f = message.getHasRead();
|
|
325
|
+
if (f) {
|
|
326
|
+
writer.writeBool(
|
|
327
|
+
1,
|
|
328
|
+
f
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* optional bool has_read = 1;
|
|
336
|
+
* @return {boolean}
|
|
337
|
+
*/
|
|
338
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.getHasRead = function() {
|
|
339
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @param {boolean} value
|
|
345
|
+
* @return {!proto.wechaty.puppet.ConversationReadResponse} returns this
|
|
346
|
+
*/
|
|
347
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.setHasRead = function(value) {
|
|
348
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
290
349
|
};
|
|
291
350
|
|
|
292
351
|
|
|
@@ -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.34
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -344,6 +344,9 @@ paths:
|
|
|
344
344
|
required: true
|
|
345
345
|
schema:
|
|
346
346
|
type: object
|
|
347
|
+
properties:
|
|
348
|
+
hasRead:
|
|
349
|
+
type: boolean
|
|
347
350
|
tags:
|
|
348
351
|
- Puppet
|
|
349
352
|
'/conversations/{conversationId}/channel':
|
|
@@ -2273,6 +2276,9 @@ definitions:
|
|
|
2273
2276
|
title: 类型枚举
|
|
2274
2277
|
puppetConversationReadResponse:
|
|
2275
2278
|
type: object
|
|
2279
|
+
properties:
|
|
2280
|
+
hasRead:
|
|
2281
|
+
type: boolean
|
|
2276
2282
|
puppetCurrentUserResponse:
|
|
2277
2283
|
type: object
|
|
2278
2284
|
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.34",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -507,7 +507,12 @@
|
|
|
507
507
|
"in": "body",
|
|
508
508
|
"required": true,
|
|
509
509
|
"schema": {
|
|
510
|
-
"type": "object"
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"hasRead": {
|
|
513
|
+
"type": "boolean"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
511
516
|
}
|
|
512
517
|
}
|
|
513
518
|
],
|
|
@@ -3345,7 +3350,12 @@
|
|
|
3345
3350
|
"title": "类型枚举"
|
|
3346
3351
|
},
|
|
3347
3352
|
"puppetConversationReadResponse": {
|
|
3348
|
-
"type": "object"
|
|
3353
|
+
"type": "object",
|
|
3354
|
+
"properties": {
|
|
3355
|
+
"hasRead": {
|
|
3356
|
+
"type": "boolean"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3349
3359
|
},
|
|
3350
3360
|
"puppetCurrentUserResponse": {
|
|
3351
3361
|
"type": "object",
|
|
@@ -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.34",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -7,6 +7,9 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
7
7
|
getConversationId(): string;
|
|
8
8
|
setConversationId(value: string): void;
|
|
9
9
|
|
|
10
|
+
getHasRead(): boolean;
|
|
11
|
+
setHasRead(value: boolean): void;
|
|
12
|
+
|
|
10
13
|
serializeBinary(): Uint8Array;
|
|
11
14
|
toObject(includeInstance?: boolean): ConversationReadRequest.AsObject;
|
|
12
15
|
static toObject(includeInstance: boolean, msg: ConversationReadRequest): ConversationReadRequest.AsObject;
|
|
@@ -20,10 +23,14 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
20
23
|
export namespace ConversationReadRequest {
|
|
21
24
|
export type AsObject = {
|
|
22
25
|
conversationId: string,
|
|
26
|
+
hasRead: boolean,
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export class ConversationReadResponse extends jspb.Message {
|
|
31
|
+
getHasRead(): boolean;
|
|
32
|
+
setHasRead(value: boolean): void;
|
|
33
|
+
|
|
27
34
|
serializeBinary(): Uint8Array;
|
|
28
35
|
toObject(includeInstance?: boolean): ConversationReadResponse.AsObject;
|
|
29
36
|
static toObject(includeInstance: boolean, msg: ConversationReadResponse): ConversationReadResponse.AsObject;
|
|
@@ -36,6 +43,7 @@ export class ConversationReadResponse extends jspb.Message {
|
|
|
36
43
|
|
|
37
44
|
export namespace ConversationReadResponse {
|
|
38
45
|
export type AsObject = {
|
|
46
|
+
hasRead: boolean,
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
|
|
@@ -91,7 +91,8 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.toObject = function(opt_i
|
|
|
91
91
|
*/
|
|
92
92
|
proto.wechaty.puppet.ConversationReadRequest.toObject = function(includeInstance, msg) {
|
|
93
93
|
var f, obj = {
|
|
94
|
-
conversationId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
94
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
95
96
|
};
|
|
96
97
|
|
|
97
98
|
if (includeInstance) {
|
|
@@ -132,6 +133,10 @@ proto.wechaty.puppet.ConversationReadRequest.deserializeBinaryFromReader = funct
|
|
|
132
133
|
var value = /** @type {string} */ (reader.readString());
|
|
133
134
|
msg.setConversationId(value);
|
|
134
135
|
break;
|
|
136
|
+
case 2:
|
|
137
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
138
|
+
msg.setHasRead(value);
|
|
139
|
+
break;
|
|
135
140
|
default:
|
|
136
141
|
reader.skipField();
|
|
137
142
|
break;
|
|
@@ -168,6 +173,13 @@ proto.wechaty.puppet.ConversationReadRequest.serializeBinaryToWriter = function(
|
|
|
168
173
|
f
|
|
169
174
|
);
|
|
170
175
|
}
|
|
176
|
+
f = message.getHasRead();
|
|
177
|
+
if (f) {
|
|
178
|
+
writer.writeBool(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
171
183
|
};
|
|
172
184
|
|
|
173
185
|
|
|
@@ -189,6 +201,24 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.setConversationId = funct
|
|
|
189
201
|
};
|
|
190
202
|
|
|
191
203
|
|
|
204
|
+
/**
|
|
205
|
+
* optional bool has_read = 2;
|
|
206
|
+
* @return {boolean}
|
|
207
|
+
*/
|
|
208
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.getHasRead = function() {
|
|
209
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {boolean} value
|
|
215
|
+
* @return {!proto.wechaty.puppet.ConversationReadRequest} returns this
|
|
216
|
+
*/
|
|
217
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.setHasRead = function(value) {
|
|
218
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
192
222
|
|
|
193
223
|
|
|
194
224
|
|
|
@@ -221,7 +251,7 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.toObject = function(opt_
|
|
|
221
251
|
*/
|
|
222
252
|
proto.wechaty.puppet.ConversationReadResponse.toObject = function(includeInstance, msg) {
|
|
223
253
|
var f, obj = {
|
|
224
|
-
|
|
254
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
225
255
|
};
|
|
226
256
|
|
|
227
257
|
if (includeInstance) {
|
|
@@ -258,6 +288,10 @@ proto.wechaty.puppet.ConversationReadResponse.deserializeBinaryFromReader = func
|
|
|
258
288
|
}
|
|
259
289
|
var field = reader.getFieldNumber();
|
|
260
290
|
switch (field) {
|
|
291
|
+
case 1:
|
|
292
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
293
|
+
msg.setHasRead(value);
|
|
294
|
+
break;
|
|
261
295
|
default:
|
|
262
296
|
reader.skipField();
|
|
263
297
|
break;
|
|
@@ -287,6 +321,31 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.serializeBinary = functi
|
|
|
287
321
|
*/
|
|
288
322
|
proto.wechaty.puppet.ConversationReadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
289
323
|
var f = undefined;
|
|
324
|
+
f = message.getHasRead();
|
|
325
|
+
if (f) {
|
|
326
|
+
writer.writeBool(
|
|
327
|
+
1,
|
|
328
|
+
f
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* optional bool has_read = 1;
|
|
336
|
+
* @return {boolean}
|
|
337
|
+
*/
|
|
338
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.getHasRead = function() {
|
|
339
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @param {boolean} value
|
|
345
|
+
* @return {!proto.wechaty.puppet.ConversationReadResponse} returns this
|
|
346
|
+
*/
|
|
347
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.setHasRead = function(value) {
|
|
348
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
290
349
|
};
|
|
291
350
|
|
|
292
351
|
|
|
@@ -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.34
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -344,6 +344,9 @@ paths:
|
|
|
344
344
|
required: true
|
|
345
345
|
schema:
|
|
346
346
|
type: object
|
|
347
|
+
properties:
|
|
348
|
+
hasRead:
|
|
349
|
+
type: boolean
|
|
347
350
|
tags:
|
|
348
351
|
- Puppet
|
|
349
352
|
'/conversations/{conversationId}/channel':
|
|
@@ -2273,6 +2276,9 @@ definitions:
|
|
|
2273
2276
|
title: 类型枚举
|
|
2274
2277
|
puppetConversationReadResponse:
|
|
2275
2278
|
type: object
|
|
2279
|
+
properties:
|
|
2280
|
+
hasRead:
|
|
2281
|
+
type: boolean
|
|
2276
2282
|
puppetCurrentUserResponse:
|
|
2277
2283
|
type: object
|
|
2278
2284
|
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.34",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -507,7 +507,12 @@
|
|
|
507
507
|
"in": "body",
|
|
508
508
|
"required": true,
|
|
509
509
|
"schema": {
|
|
510
|
-
"type": "object"
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"hasRead": {
|
|
513
|
+
"type": "boolean"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
511
516
|
}
|
|
512
517
|
}
|
|
513
518
|
],
|
|
@@ -3345,7 +3350,12 @@
|
|
|
3345
3350
|
"title": "类型枚举"
|
|
3346
3351
|
},
|
|
3347
3352
|
"puppetConversationReadResponse": {
|
|
3348
|
-
"type": "object"
|
|
3353
|
+
"type": "object",
|
|
3354
|
+
"properties": {
|
|
3355
|
+
"hasRead": {
|
|
3356
|
+
"type": "boolean"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3349
3359
|
},
|
|
3350
3360
|
"puppetCurrentUserResponse": {
|
|
3351
3361
|
"type": "object",
|
|
@@ -7,6 +7,9 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
7
7
|
getConversationId(): string;
|
|
8
8
|
setConversationId(value: string): void;
|
|
9
9
|
|
|
10
|
+
getHasRead(): boolean;
|
|
11
|
+
setHasRead(value: boolean): void;
|
|
12
|
+
|
|
10
13
|
serializeBinary(): Uint8Array;
|
|
11
14
|
toObject(includeInstance?: boolean): ConversationReadRequest.AsObject;
|
|
12
15
|
static toObject(includeInstance: boolean, msg: ConversationReadRequest): ConversationReadRequest.AsObject;
|
|
@@ -20,10 +23,14 @@ export class ConversationReadRequest extends jspb.Message {
|
|
|
20
23
|
export namespace ConversationReadRequest {
|
|
21
24
|
export type AsObject = {
|
|
22
25
|
conversationId: string,
|
|
26
|
+
hasRead: boolean,
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export class ConversationReadResponse extends jspb.Message {
|
|
31
|
+
getHasRead(): boolean;
|
|
32
|
+
setHasRead(value: boolean): void;
|
|
33
|
+
|
|
27
34
|
serializeBinary(): Uint8Array;
|
|
28
35
|
toObject(includeInstance?: boolean): ConversationReadResponse.AsObject;
|
|
29
36
|
static toObject(includeInstance: boolean, msg: ConversationReadResponse): ConversationReadResponse.AsObject;
|
|
@@ -36,6 +43,7 @@ export class ConversationReadResponse extends jspb.Message {
|
|
|
36
43
|
|
|
37
44
|
export namespace ConversationReadResponse {
|
|
38
45
|
export type AsObject = {
|
|
46
|
+
hasRead: boolean,
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
|
|
@@ -91,7 +91,8 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.toObject = function(opt_i
|
|
|
91
91
|
*/
|
|
92
92
|
proto.wechaty.puppet.ConversationReadRequest.toObject = function(includeInstance, msg) {
|
|
93
93
|
var f, obj = {
|
|
94
|
-
conversationId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
94
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
95
96
|
};
|
|
96
97
|
|
|
97
98
|
if (includeInstance) {
|
|
@@ -132,6 +133,10 @@ proto.wechaty.puppet.ConversationReadRequest.deserializeBinaryFromReader = funct
|
|
|
132
133
|
var value = /** @type {string} */ (reader.readString());
|
|
133
134
|
msg.setConversationId(value);
|
|
134
135
|
break;
|
|
136
|
+
case 2:
|
|
137
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
138
|
+
msg.setHasRead(value);
|
|
139
|
+
break;
|
|
135
140
|
default:
|
|
136
141
|
reader.skipField();
|
|
137
142
|
break;
|
|
@@ -168,6 +173,13 @@ proto.wechaty.puppet.ConversationReadRequest.serializeBinaryToWriter = function(
|
|
|
168
173
|
f
|
|
169
174
|
);
|
|
170
175
|
}
|
|
176
|
+
f = message.getHasRead();
|
|
177
|
+
if (f) {
|
|
178
|
+
writer.writeBool(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
171
183
|
};
|
|
172
184
|
|
|
173
185
|
|
|
@@ -189,6 +201,24 @@ proto.wechaty.puppet.ConversationReadRequest.prototype.setConversationId = funct
|
|
|
189
201
|
};
|
|
190
202
|
|
|
191
203
|
|
|
204
|
+
/**
|
|
205
|
+
* optional bool has_read = 2;
|
|
206
|
+
* @return {boolean}
|
|
207
|
+
*/
|
|
208
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.getHasRead = function() {
|
|
209
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {boolean} value
|
|
215
|
+
* @return {!proto.wechaty.puppet.ConversationReadRequest} returns this
|
|
216
|
+
*/
|
|
217
|
+
proto.wechaty.puppet.ConversationReadRequest.prototype.setHasRead = function(value) {
|
|
218
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
192
222
|
|
|
193
223
|
|
|
194
224
|
|
|
@@ -221,7 +251,7 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.toObject = function(opt_
|
|
|
221
251
|
*/
|
|
222
252
|
proto.wechaty.puppet.ConversationReadResponse.toObject = function(includeInstance, msg) {
|
|
223
253
|
var f, obj = {
|
|
224
|
-
|
|
254
|
+
hasRead: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
225
255
|
};
|
|
226
256
|
|
|
227
257
|
if (includeInstance) {
|
|
@@ -258,6 +288,10 @@ proto.wechaty.puppet.ConversationReadResponse.deserializeBinaryFromReader = func
|
|
|
258
288
|
}
|
|
259
289
|
var field = reader.getFieldNumber();
|
|
260
290
|
switch (field) {
|
|
291
|
+
case 1:
|
|
292
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
293
|
+
msg.setHasRead(value);
|
|
294
|
+
break;
|
|
261
295
|
default:
|
|
262
296
|
reader.skipField();
|
|
263
297
|
break;
|
|
@@ -287,6 +321,31 @@ proto.wechaty.puppet.ConversationReadResponse.prototype.serializeBinary = functi
|
|
|
287
321
|
*/
|
|
288
322
|
proto.wechaty.puppet.ConversationReadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
289
323
|
var f = undefined;
|
|
324
|
+
f = message.getHasRead();
|
|
325
|
+
if (f) {
|
|
326
|
+
writer.writeBool(
|
|
327
|
+
1,
|
|
328
|
+
f
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* optional bool has_read = 1;
|
|
336
|
+
* @return {boolean}
|
|
337
|
+
*/
|
|
338
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.getHasRead = function() {
|
|
339
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @param {boolean} value
|
|
345
|
+
* @return {!proto.wechaty.puppet.ConversationReadResponse} returns this
|
|
346
|
+
*/
|
|
347
|
+
proto.wechaty.puppet.ConversationReadResponse.prototype.setHasRead = function(value) {
|
|
348
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
290
349
|
};
|
|
291
350
|
|
|
292
351
|
|
|
@@ -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.34
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -344,6 +344,9 @@ paths:
|
|
|
344
344
|
required: true
|
|
345
345
|
schema:
|
|
346
346
|
type: object
|
|
347
|
+
properties:
|
|
348
|
+
hasRead:
|
|
349
|
+
type: boolean
|
|
347
350
|
tags:
|
|
348
351
|
- Puppet
|
|
349
352
|
'/conversations/{conversationId}/channel':
|
|
@@ -2273,6 +2276,9 @@ definitions:
|
|
|
2273
2276
|
title: 类型枚举
|
|
2274
2277
|
puppetConversationReadResponse:
|
|
2275
2278
|
type: object
|
|
2279
|
+
properties:
|
|
2280
|
+
hasRead:
|
|
2281
|
+
type: boolean
|
|
2276
2282
|
puppetCurrentUserResponse:
|
|
2277
2283
|
type: object
|
|
2278
2284
|
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.34",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -507,7 +507,12 @@
|
|
|
507
507
|
"in": "body",
|
|
508
508
|
"required": true,
|
|
509
509
|
"schema": {
|
|
510
|
-
"type": "object"
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"hasRead": {
|
|
513
|
+
"type": "boolean"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
511
516
|
}
|
|
512
517
|
}
|
|
513
518
|
],
|
|
@@ -3345,7 +3350,12 @@
|
|
|
3345
3350
|
"title": "类型枚举"
|
|
3346
3351
|
},
|
|
3347
3352
|
"puppetConversationReadResponse": {
|
|
3348
|
-
"type": "object"
|
|
3353
|
+
"type": "object",
|
|
3354
|
+
"properties": {
|
|
3355
|
+
"hasRead": {
|
|
3356
|
+
"type": "boolean"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3349
3359
|
},
|
|
3350
3360
|
"puppetCurrentUserResponse": {
|
|
3351
3361
|
"type": "object",
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED