@juzi/wechaty-grpc 1.0.34 → 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.
@@ -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.34
12
+ version: 1.0.35
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -3113,6 +3113,16 @@ definitions:
3113
3113
  type: array
3114
3114
  items:
3115
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: 类型枚举
3116
3126
  puppetRoomMemberListResponse:
3117
3127
  type: object
3118
3128
  properties:
@@ -3139,6 +3149,11 @@ definitions:
3139
3149
  title: 名称
3140
3150
  additionalInfo:
3141
3151
  type: string
3152
+ joinTime:
3153
+ type: number
3154
+ format: double
3155
+ joinScene:
3156
+ $ref: '#/definitions/puppetRoomMemberJoinSceneType'
3142
3157
  puppetRoomPayloadResponse:
3143
3158
  type: object
3144
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.34",
6
+ "version": "1.0.35",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4373,6 +4373,18 @@
4373
4373
  }
4374
4374
  }
4375
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
+ },
4376
4388
  "puppetRoomMemberListResponse": {
4377
4389
  "type": "object",
4378
4390
  "properties": {
@@ -4408,6 +4420,13 @@
4408
4420
  },
4409
4421
  "additionalInfo": {
4410
4422
  "type": "string"
4423
+ },
4424
+ "joinTime": {
4425
+ "type": "number",
4426
+ "format": "double"
4427
+ },
4428
+ "joinScene": {
4429
+ "$ref": "#/definitions/puppetRoomMemberJoinSceneType"
4411
4430
  }
4412
4431
  }
4413
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 = 1;
14
- string room_alias = 2; // 联系人在群内的别名(群备注)
15
- string inviter_id = 3; // 邀请者id
16
- string avatar = 4; // 头像
17
- string name = 5; // 名称
18
- string additional_info = 6;
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.34",
6
+ "version": "1.0.35",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -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.34
12
+ version: 1.0.35
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -3113,6 +3113,16 @@ definitions:
3113
3113
  type: array
3114
3114
  items:
3115
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: 类型枚举
3116
3126
  puppetRoomMemberListResponse:
3117
3127
  type: object
3118
3128
  properties:
@@ -3139,6 +3149,11 @@ definitions:
3139
3149
  title: 名称
3140
3150
  additionalInfo:
3141
3151
  type: string
3152
+ joinTime:
3153
+ type: number
3154
+ format: double
3155
+ joinScene:
3156
+ $ref: '#/definitions/puppetRoomMemberJoinSceneType'
3142
3157
  puppetRoomPayloadResponse:
3143
3158
  type: object
3144
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.34",
6
+ "version": "1.0.35",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4373,6 +4373,18 @@
4373
4373
  }
4374
4374
  }
4375
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
+ },
4376
4388
  "puppetRoomMemberListResponse": {
4377
4389
  "type": "object",
4378
4390
  "properties": {
@@ -4408,6 +4420,13 @@
4408
4420
  },
4409
4421
  "additionalInfo": {
4410
4422
  "type": "string"
4423
+ },
4424
+ "joinTime": {
4425
+ "type": "number",
4426
+ "format": "double"
4427
+ },
4428
+ "joinScene": {
4429
+ "$ref": "#/definitions/puppetRoomMemberJoinSceneType"
4411
4430
  }
4412
4431
  }
4413
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 = 1;
14
- string room_alias = 2; // 联系人在群内的别名(群备注)
15
- string inviter_id = 3; // 邀请者id
16
- string avatar = 4; // 头像
17
- string name = 5; // 名称
18
- string additional_info = 6;
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
  }
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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.34
12
+ version: 1.0.35
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -3113,6 +3113,16 @@ definitions:
3113
3113
  type: array
3114
3114
  items:
3115
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: 类型枚举
3116
3126
  puppetRoomMemberListResponse:
3117
3127
  type: object
3118
3128
  properties:
@@ -3139,6 +3149,11 @@ definitions:
3139
3149
  title: 名称
3140
3150
  additionalInfo:
3141
3151
  type: string
3152
+ joinTime:
3153
+ type: number
3154
+ format: double
3155
+ joinScene:
3156
+ $ref: '#/definitions/puppetRoomMemberJoinSceneType'
3142
3157
  puppetRoomPayloadResponse:
3143
3158
  type: object
3144
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.34",
6
+ "version": "1.0.35",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4373,6 +4373,18 @@
4373
4373
  }
4374
4374
  }
4375
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
+ },
4376
4388
  "puppetRoomMemberListResponse": {
4377
4389
  "type": "object",
4378
4390
  "properties": {
@@ -4408,6 +4420,13 @@
4408
4420
  },
4409
4421
  "additionalInfo": {
4410
4422
  "type": "string"
4423
+ },
4424
+ "joinTime": {
4425
+ "type": "number",
4426
+ "format": "double"
4427
+ },
4428
+ "joinScene": {
4429
+ "$ref": "#/definitions/puppetRoomMemberJoinSceneType"
4411
4430
  }
4412
4431
  }
4413
4432
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
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.34",
7
+ "version": "1.0.35",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {