@juzi/wechaty-grpc 1.0.33 → 1.0.35
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/room-member_pb.d.ts +18 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.js +73 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +22 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +32 -3
- package/dist/cjs/proto/wechaty/puppet/conversation.proto +4 -1
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +18 -6
- 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/room-member_pb.d.ts +18 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.js +73 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +22 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +32 -3
- package/dist/esm/proto/wechaty/puppet/conversation.proto +4 -1
- package/dist/esm/proto/wechaty/puppet/room-member.proto +18 -6
- 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/room-member_pb.d.ts +18 -0
- package/out/wechaty/puppet/room-member_pb.js +73 -1
- package/out/wechaty/puppet.openapi.yaml +22 -1
- package/out/wechaty/puppet.swagger.json +32 -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
|
|
|
@@ -46,6 +46,12 @@ export class RoomMemberPayloadResponse extends jspb.Message {
|
|
|
46
46
|
getAdditionalInfo(): string;
|
|
47
47
|
setAdditionalInfo(value: string): void;
|
|
48
48
|
|
|
49
|
+
getJoinTime(): number;
|
|
50
|
+
setJoinTime(value: number): void;
|
|
51
|
+
|
|
52
|
+
getJoinScene(): RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap];
|
|
53
|
+
setJoinScene(value: RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap]): void;
|
|
54
|
+
|
|
49
55
|
serializeBinary(): Uint8Array;
|
|
50
56
|
toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
|
|
51
57
|
static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
|
|
@@ -64,6 +70,8 @@ export namespace RoomMemberPayloadResponse {
|
|
|
64
70
|
avatar: string,
|
|
65
71
|
name: string,
|
|
66
72
|
additionalInfo: string,
|
|
73
|
+
joinTime: number,
|
|
74
|
+
joinScene: RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap],
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
|
|
@@ -109,3 +117,13 @@ export namespace RoomMemberListResponse {
|
|
|
109
117
|
}
|
|
110
118
|
}
|
|
111
119
|
|
|
120
|
+
export interface RoomMemberJoinSceneTypeMap {
|
|
121
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN: 0;
|
|
122
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_ADD: 1;
|
|
123
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK: 2;
|
|
124
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE: 3;
|
|
125
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER: 4;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export const RoomMemberJoinSceneType: RoomMemberJoinSceneTypeMap;
|
|
129
|
+
|
|
@@ -15,6 +15,7 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
17
|
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberJoinSceneType', null, global);
|
|
18
19
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberListRequest', null, global);
|
|
19
20
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberListResponse', null, global);
|
|
20
21
|
goog.exportSymbol('proto.wechaty.puppet.RoomMemberPayloadRequest', null, global);
|
|
@@ -300,7 +301,9 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject = function(includeInstan
|
|
|
300
301
|
inviterId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
301
302
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
302
303
|
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
303
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
304
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
305
|
+
joinTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
306
|
+
joinScene: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
304
307
|
};
|
|
305
308
|
|
|
306
309
|
if (includeInstance) {
|
|
@@ -361,6 +364,14 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader = fun
|
|
|
361
364
|
var value = /** @type {string} */ (reader.readString());
|
|
362
365
|
msg.setAdditionalInfo(value);
|
|
363
366
|
break;
|
|
367
|
+
case 7:
|
|
368
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
369
|
+
msg.setJoinTime(value);
|
|
370
|
+
break;
|
|
371
|
+
case 8:
|
|
372
|
+
var value = /** @type {!proto.wechaty.puppet.RoomMemberJoinSceneType} */ (reader.readEnum());
|
|
373
|
+
msg.setJoinScene(value);
|
|
374
|
+
break;
|
|
364
375
|
default:
|
|
365
376
|
reader.skipField();
|
|
366
377
|
break;
|
|
@@ -432,6 +443,20 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter = functio
|
|
|
432
443
|
f
|
|
433
444
|
);
|
|
434
445
|
}
|
|
446
|
+
f = message.getJoinTime();
|
|
447
|
+
if (f !== 0.0) {
|
|
448
|
+
writer.writeDouble(
|
|
449
|
+
7,
|
|
450
|
+
f
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
f = message.getJoinScene();
|
|
454
|
+
if (f !== 0.0) {
|
|
455
|
+
writer.writeEnum(
|
|
456
|
+
8,
|
|
457
|
+
f
|
|
458
|
+
);
|
|
459
|
+
}
|
|
435
460
|
};
|
|
436
461
|
|
|
437
462
|
|
|
@@ -543,6 +568,42 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setAdditionalInfo = fun
|
|
|
543
568
|
};
|
|
544
569
|
|
|
545
570
|
|
|
571
|
+
/**
|
|
572
|
+
* optional double join_time = 7;
|
|
573
|
+
* @return {number}
|
|
574
|
+
*/
|
|
575
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getJoinTime = function() {
|
|
576
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* @param {number} value
|
|
582
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
|
|
583
|
+
*/
|
|
584
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setJoinTime = function(value) {
|
|
585
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* optional RoomMemberJoinSceneType join_scene = 8;
|
|
591
|
+
* @return {!proto.wechaty.puppet.RoomMemberJoinSceneType}
|
|
592
|
+
*/
|
|
593
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getJoinScene = function() {
|
|
594
|
+
return /** @type {!proto.wechaty.puppet.RoomMemberJoinSceneType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @param {!proto.wechaty.puppet.RoomMemberJoinSceneType} value
|
|
600
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
|
|
601
|
+
*/
|
|
602
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setJoinScene = function(value) {
|
|
603
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
|
|
546
607
|
|
|
547
608
|
|
|
548
609
|
|
|
@@ -829,4 +890,15 @@ proto.wechaty.puppet.RoomMemberListResponse.prototype.clearMemberIdsList = funct
|
|
|
829
890
|
};
|
|
830
891
|
|
|
831
892
|
|
|
893
|
+
/**
|
|
894
|
+
* @enum {number}
|
|
895
|
+
*/
|
|
896
|
+
proto.wechaty.puppet.RoomMemberJoinSceneType = {
|
|
897
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN: 0,
|
|
898
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_ADD: 1,
|
|
899
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK: 2,
|
|
900
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE: 3,
|
|
901
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER: 4
|
|
902
|
+
};
|
|
903
|
+
|
|
832
904
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.35
|
|
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:
|
|
@@ -3107,6 +3113,16 @@ definitions:
|
|
|
3107
3113
|
type: array
|
|
3108
3114
|
items:
|
|
3109
3115
|
type: string
|
|
3116
|
+
puppetRoomMemberJoinSceneType:
|
|
3117
|
+
type: string
|
|
3118
|
+
enum:
|
|
3119
|
+
- ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN
|
|
3120
|
+
- ROOM_MEMBER_JOIN_SCENE_TYPE_ADD
|
|
3121
|
+
- ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK
|
|
3122
|
+
- ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE
|
|
3123
|
+
- ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER
|
|
3124
|
+
default: ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN
|
|
3125
|
+
title: 类型枚举
|
|
3110
3126
|
puppetRoomMemberListResponse:
|
|
3111
3127
|
type: object
|
|
3112
3128
|
properties:
|
|
@@ -3133,6 +3149,11 @@ definitions:
|
|
|
3133
3149
|
title: 名称
|
|
3134
3150
|
additionalInfo:
|
|
3135
3151
|
type: string
|
|
3152
|
+
joinTime:
|
|
3153
|
+
type: number
|
|
3154
|
+
format: double
|
|
3155
|
+
joinScene:
|
|
3156
|
+
$ref: '#/definitions/puppetRoomMemberJoinSceneType'
|
|
3136
3157
|
puppetRoomPayloadResponse:
|
|
3137
3158
|
type: object
|
|
3138
3159
|
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.35",
|
|
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",
|
|
@@ -4363,6 +4373,18 @@
|
|
|
4363
4373
|
}
|
|
4364
4374
|
}
|
|
4365
4375
|
},
|
|
4376
|
+
"puppetRoomMemberJoinSceneType": {
|
|
4377
|
+
"type": "string",
|
|
4378
|
+
"enum": [
|
|
4379
|
+
"ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN",
|
|
4380
|
+
"ROOM_MEMBER_JOIN_SCENE_TYPE_ADD",
|
|
4381
|
+
"ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK",
|
|
4382
|
+
"ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE",
|
|
4383
|
+
"ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER"
|
|
4384
|
+
],
|
|
4385
|
+
"default": "ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN",
|
|
4386
|
+
"title": "类型枚举"
|
|
4387
|
+
},
|
|
4366
4388
|
"puppetRoomMemberListResponse": {
|
|
4367
4389
|
"type": "object",
|
|
4368
4390
|
"properties": {
|
|
@@ -4398,6 +4420,13 @@
|
|
|
4398
4420
|
},
|
|
4399
4421
|
"additionalInfo": {
|
|
4400
4422
|
"type": "string"
|
|
4423
|
+
},
|
|
4424
|
+
"joinTime": {
|
|
4425
|
+
"type": "number",
|
|
4426
|
+
"format": "double"
|
|
4427
|
+
},
|
|
4428
|
+
"joinScene": {
|
|
4429
|
+
"$ref": "#/definitions/puppetRoomMemberJoinSceneType"
|
|
4401
4430
|
}
|
|
4402
4431
|
}
|
|
4403
4432
|
},
|
|
@@ -5,22 +5,34 @@ option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
|
5
5
|
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
6
|
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
7
|
|
|
8
|
+
enum RoomMemberJoinSceneType { // 类型枚举
|
|
9
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN = 0;
|
|
10
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_ADD = 1;
|
|
11
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK = 2;
|
|
12
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE = 3;
|
|
13
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER = 4;
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
message RoomMemberPayloadRequest {
|
|
9
17
|
string id = 1;
|
|
10
18
|
string member_id = 2;
|
|
11
19
|
}
|
|
20
|
+
|
|
12
21
|
message RoomMemberPayloadResponse {
|
|
13
|
-
string id
|
|
14
|
-
string room_alias
|
|
15
|
-
string inviter_id
|
|
16
|
-
string avatar
|
|
17
|
-
string name
|
|
18
|
-
string additional_info
|
|
22
|
+
string id = 1;
|
|
23
|
+
string room_alias = 2; // 联系人在群内的别名(群备注)
|
|
24
|
+
string inviter_id = 3; // 邀请者id
|
|
25
|
+
string avatar = 4; // 头像
|
|
26
|
+
string name = 5; // 名称
|
|
27
|
+
string additional_info = 6;
|
|
28
|
+
double join_time = 7;
|
|
29
|
+
RoomMemberJoinSceneType join_scene = 8;
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
message RoomMemberListRequest {
|
|
22
33
|
string id = 1;
|
|
23
34
|
}
|
|
35
|
+
|
|
24
36
|
message RoomMemberListResponse {
|
|
25
37
|
repeated string member_ids = 1;
|
|
26
38
|
}
|
|
@@ -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.35",
|
|
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
|
|
|
@@ -46,6 +46,12 @@ export class RoomMemberPayloadResponse extends jspb.Message {
|
|
|
46
46
|
getAdditionalInfo(): string;
|
|
47
47
|
setAdditionalInfo(value: string): void;
|
|
48
48
|
|
|
49
|
+
getJoinTime(): number;
|
|
50
|
+
setJoinTime(value: number): void;
|
|
51
|
+
|
|
52
|
+
getJoinScene(): RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap];
|
|
53
|
+
setJoinScene(value: RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap]): void;
|
|
54
|
+
|
|
49
55
|
serializeBinary(): Uint8Array;
|
|
50
56
|
toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
|
|
51
57
|
static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
|
|
@@ -64,6 +70,8 @@ export namespace RoomMemberPayloadResponse {
|
|
|
64
70
|
avatar: string,
|
|
65
71
|
name: string,
|
|
66
72
|
additionalInfo: string,
|
|
73
|
+
joinTime: number,
|
|
74
|
+
joinScene: RoomMemberJoinSceneTypeMap[keyof RoomMemberJoinSceneTypeMap],
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
|
|
@@ -109,3 +117,13 @@ export namespace RoomMemberListResponse {
|
|
|
109
117
|
}
|
|
110
118
|
}
|
|
111
119
|
|
|
120
|
+
export interface RoomMemberJoinSceneTypeMap {
|
|
121
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN: 0;
|
|
122
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_ADD: 1;
|
|
123
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_INVITE_LINK: 2;
|
|
124
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE: 3;
|
|
125
|
+
ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER: 4;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export const RoomMemberJoinSceneType: RoomMemberJoinSceneTypeMap;
|
|
129
|
+
|