@juzi/wechaty-grpc 1.0.34 → 1.0.36

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.
@@ -526,6 +526,42 @@ export namespace ContactDescriptionResponse {
526
526
  }
527
527
  }
528
528
 
529
+ export class ContactDeleteRequest extends jspb.Message {
530
+ getContactId(): string;
531
+ setContactId(value: string): void;
532
+
533
+ serializeBinary(): Uint8Array;
534
+ toObject(includeInstance?: boolean): ContactDeleteRequest.AsObject;
535
+ static toObject(includeInstance: boolean, msg: ContactDeleteRequest): ContactDeleteRequest.AsObject;
536
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
537
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
538
+ static serializeBinaryToWriter(message: ContactDeleteRequest, writer: jspb.BinaryWriter): void;
539
+ static deserializeBinary(bytes: Uint8Array): ContactDeleteRequest;
540
+ static deserializeBinaryFromReader(message: ContactDeleteRequest, reader: jspb.BinaryReader): ContactDeleteRequest;
541
+ }
542
+
543
+ export namespace ContactDeleteRequest {
544
+ export type AsObject = {
545
+ contactId: string,
546
+ }
547
+ }
548
+
549
+ export class ContactDeleteResponse extends jspb.Message {
550
+ serializeBinary(): Uint8Array;
551
+ toObject(includeInstance?: boolean): ContactDeleteResponse.AsObject;
552
+ static toObject(includeInstance: boolean, msg: ContactDeleteResponse): ContactDeleteResponse.AsObject;
553
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
554
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
555
+ static serializeBinaryToWriter(message: ContactDeleteResponse, writer: jspb.BinaryWriter): void;
556
+ static deserializeBinary(bytes: Uint8Array): ContactDeleteResponse;
557
+ static deserializeBinaryFromReader(message: ContactDeleteResponse, reader: jspb.BinaryReader): ContactDeleteResponse;
558
+ }
559
+
560
+ export namespace ContactDeleteResponse {
561
+ export type AsObject = {
562
+ }
563
+ }
564
+
529
565
  export interface ContactGenderMap {
530
566
  CONTACT_GENDER_UNSPECIFIED: 0;
531
567
  CONTACT_GENDER_MALE: 1;
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
23
23
  goog.exportSymbol('proto.wechaty.puppet.ContactAvatarResponse', null, global);
24
24
  goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkRequest', null, global);
25
25
  goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkResponse', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.ContactDeleteRequest', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.ContactDeleteResponse', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionRequest', null, global);
27
29
  goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, global);
28
30
  goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
@@ -459,6 +461,48 @@ if (goog.DEBUG && !COMPILED) {
459
461
  */
460
462
  proto.wechaty.puppet.ContactDescriptionResponse.displayName = 'proto.wechaty.puppet.ContactDescriptionResponse';
461
463
  }
464
+ /**
465
+ * Generated by JsPbCodeGenerator.
466
+ * @param {Array=} opt_data Optional initial data array, typically from a
467
+ * server response, or constructed directly in Javascript. The array is used
468
+ * in place and becomes part of the constructed object. It is not cloned.
469
+ * If no data is provided, the constructed object will be empty, but still
470
+ * valid.
471
+ * @extends {jspb.Message}
472
+ * @constructor
473
+ */
474
+ proto.wechaty.puppet.ContactDeleteRequest = function(opt_data) {
475
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
476
+ };
477
+ goog.inherits(proto.wechaty.puppet.ContactDeleteRequest, jspb.Message);
478
+ if (goog.DEBUG && !COMPILED) {
479
+ /**
480
+ * @public
481
+ * @override
482
+ */
483
+ proto.wechaty.puppet.ContactDeleteRequest.displayName = 'proto.wechaty.puppet.ContactDeleteRequest';
484
+ }
485
+ /**
486
+ * Generated by JsPbCodeGenerator.
487
+ * @param {Array=} opt_data Optional initial data array, typically from a
488
+ * server response, or constructed directly in Javascript. The array is used
489
+ * in place and becomes part of the constructed object. It is not cloned.
490
+ * If no data is provided, the constructed object will be empty, but still
491
+ * valid.
492
+ * @extends {jspb.Message}
493
+ * @constructor
494
+ */
495
+ proto.wechaty.puppet.ContactDeleteResponse = function(opt_data) {
496
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
497
+ };
498
+ goog.inherits(proto.wechaty.puppet.ContactDeleteResponse, jspb.Message);
499
+ if (goog.DEBUG && !COMPILED) {
500
+ /**
501
+ * @public
502
+ * @override
503
+ */
504
+ proto.wechaty.puppet.ContactDeleteResponse.displayName = 'proto.wechaty.puppet.ContactDeleteResponse';
505
+ }
462
506
 
463
507
 
464
508
 
@@ -4070,6 +4114,237 @@ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter = functi
4070
4114
  };
4071
4115
 
4072
4116
 
4117
+
4118
+
4119
+
4120
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4121
+ /**
4122
+ * Creates an object representation of this proto.
4123
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4124
+ * Optional fields that are not set will be set to undefined.
4125
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4126
+ * For the list of reserved names please see:
4127
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4128
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4129
+ * JSPB instance for transitional soy proto support:
4130
+ * http://goto/soy-param-migration
4131
+ * @return {!Object}
4132
+ */
4133
+ proto.wechaty.puppet.ContactDeleteRequest.prototype.toObject = function(opt_includeInstance) {
4134
+ return proto.wechaty.puppet.ContactDeleteRequest.toObject(opt_includeInstance, this);
4135
+ };
4136
+
4137
+
4138
+ /**
4139
+ * Static version of the {@see toObject} method.
4140
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4141
+ * the JSPB instance for transitional soy proto support:
4142
+ * http://goto/soy-param-migration
4143
+ * @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The msg instance to transform.
4144
+ * @return {!Object}
4145
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4146
+ */
4147
+ proto.wechaty.puppet.ContactDeleteRequest.toObject = function(includeInstance, msg) {
4148
+ var f, obj = {
4149
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, "")
4150
+ };
4151
+
4152
+ if (includeInstance) {
4153
+ obj.$jspbMessageInstance = msg;
4154
+ }
4155
+ return obj;
4156
+ };
4157
+ }
4158
+
4159
+
4160
+ /**
4161
+ * Deserializes binary data (in protobuf wire format).
4162
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4163
+ * @return {!proto.wechaty.puppet.ContactDeleteRequest}
4164
+ */
4165
+ proto.wechaty.puppet.ContactDeleteRequest.deserializeBinary = function(bytes) {
4166
+ var reader = new jspb.BinaryReader(bytes);
4167
+ var msg = new proto.wechaty.puppet.ContactDeleteRequest;
4168
+ return proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader(msg, reader);
4169
+ };
4170
+
4171
+
4172
+ /**
4173
+ * Deserializes binary data (in protobuf wire format) from the
4174
+ * given reader into the given message object.
4175
+ * @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The message object to deserialize into.
4176
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4177
+ * @return {!proto.wechaty.puppet.ContactDeleteRequest}
4178
+ */
4179
+ proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
4180
+ while (reader.nextField()) {
4181
+ if (reader.isEndGroup()) {
4182
+ break;
4183
+ }
4184
+ var field = reader.getFieldNumber();
4185
+ switch (field) {
4186
+ case 1:
4187
+ var value = /** @type {string} */ (reader.readString());
4188
+ msg.setContactId(value);
4189
+ break;
4190
+ default:
4191
+ reader.skipField();
4192
+ break;
4193
+ }
4194
+ }
4195
+ return msg;
4196
+ };
4197
+
4198
+
4199
+ /**
4200
+ * Serializes the message to binary data (in protobuf wire format).
4201
+ * @return {!Uint8Array}
4202
+ */
4203
+ proto.wechaty.puppet.ContactDeleteRequest.prototype.serializeBinary = function() {
4204
+ var writer = new jspb.BinaryWriter();
4205
+ proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter(this, writer);
4206
+ return writer.getResultBuffer();
4207
+ };
4208
+
4209
+
4210
+ /**
4211
+ * Serializes the given message to binary data (in protobuf wire
4212
+ * format), writing to the given BinaryWriter.
4213
+ * @param {!proto.wechaty.puppet.ContactDeleteRequest} message
4214
+ * @param {!jspb.BinaryWriter} writer
4215
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4216
+ */
4217
+ proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter = function(message, writer) {
4218
+ var f = undefined;
4219
+ f = message.getContactId();
4220
+ if (f.length > 0) {
4221
+ writer.writeString(
4222
+ 1,
4223
+ f
4224
+ );
4225
+ }
4226
+ };
4227
+
4228
+
4229
+ /**
4230
+ * optional string contact_id = 1;
4231
+ * @return {string}
4232
+ */
4233
+ proto.wechaty.puppet.ContactDeleteRequest.prototype.getContactId = function() {
4234
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4235
+ };
4236
+
4237
+
4238
+ /**
4239
+ * @param {string} value
4240
+ * @return {!proto.wechaty.puppet.ContactDeleteRequest} returns this
4241
+ */
4242
+ proto.wechaty.puppet.ContactDeleteRequest.prototype.setContactId = function(value) {
4243
+ return jspb.Message.setProto3StringField(this, 1, value);
4244
+ };
4245
+
4246
+
4247
+
4248
+
4249
+
4250
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4251
+ /**
4252
+ * Creates an object representation of this proto.
4253
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4254
+ * Optional fields that are not set will be set to undefined.
4255
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4256
+ * For the list of reserved names please see:
4257
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4258
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4259
+ * JSPB instance for transitional soy proto support:
4260
+ * http://goto/soy-param-migration
4261
+ * @return {!Object}
4262
+ */
4263
+ proto.wechaty.puppet.ContactDeleteResponse.prototype.toObject = function(opt_includeInstance) {
4264
+ return proto.wechaty.puppet.ContactDeleteResponse.toObject(opt_includeInstance, this);
4265
+ };
4266
+
4267
+
4268
+ /**
4269
+ * Static version of the {@see toObject} method.
4270
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4271
+ * the JSPB instance for transitional soy proto support:
4272
+ * http://goto/soy-param-migration
4273
+ * @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The msg instance to transform.
4274
+ * @return {!Object}
4275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4276
+ */
4277
+ proto.wechaty.puppet.ContactDeleteResponse.toObject = function(includeInstance, msg) {
4278
+ var f, obj = {
4279
+
4280
+ };
4281
+
4282
+ if (includeInstance) {
4283
+ obj.$jspbMessageInstance = msg;
4284
+ }
4285
+ return obj;
4286
+ };
4287
+ }
4288
+
4289
+
4290
+ /**
4291
+ * Deserializes binary data (in protobuf wire format).
4292
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4293
+ * @return {!proto.wechaty.puppet.ContactDeleteResponse}
4294
+ */
4295
+ proto.wechaty.puppet.ContactDeleteResponse.deserializeBinary = function(bytes) {
4296
+ var reader = new jspb.BinaryReader(bytes);
4297
+ var msg = new proto.wechaty.puppet.ContactDeleteResponse;
4298
+ return proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader(msg, reader);
4299
+ };
4300
+
4301
+
4302
+ /**
4303
+ * Deserializes binary data (in protobuf wire format) from the
4304
+ * given reader into the given message object.
4305
+ * @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The message object to deserialize into.
4306
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4307
+ * @return {!proto.wechaty.puppet.ContactDeleteResponse}
4308
+ */
4309
+ proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
4310
+ while (reader.nextField()) {
4311
+ if (reader.isEndGroup()) {
4312
+ break;
4313
+ }
4314
+ var field = reader.getFieldNumber();
4315
+ switch (field) {
4316
+ default:
4317
+ reader.skipField();
4318
+ break;
4319
+ }
4320
+ }
4321
+ return msg;
4322
+ };
4323
+
4324
+
4325
+ /**
4326
+ * Serializes the message to binary data (in protobuf wire format).
4327
+ * @return {!Uint8Array}
4328
+ */
4329
+ proto.wechaty.puppet.ContactDeleteResponse.prototype.serializeBinary = function() {
4330
+ var writer = new jspb.BinaryWriter();
4331
+ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter(this, writer);
4332
+ return writer.getResultBuffer();
4333
+ };
4334
+
4335
+
4336
+ /**
4337
+ * Serializes the given message to binary data (in protobuf wire
4338
+ * format), writing to the given BinaryWriter.
4339
+ * @param {!proto.wechaty.puppet.ContactDeleteResponse} message
4340
+ * @param {!jspb.BinaryWriter} writer
4341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4342
+ */
4343
+ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(message, writer) {
4344
+ var f = undefined;
4345
+ };
4346
+
4347
+
4073
4348
  /**
4074
4349
  * @enum {number}
4075
4350
  */
@@ -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.36
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.36",
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
  },
@@ -123,3 +123,9 @@ message ContactDescriptionRequest {
123
123
  }
124
124
 
125
125
  message ContactDescriptionResponse {}
126
+
127
+ message ContactDeleteRequest {
128
+ string contact_id = 1;
129
+ }
130
+
131
+ message ContactDeleteResponse {}
@@ -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.36",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -526,6 +526,42 @@ export namespace ContactDescriptionResponse {
526
526
  }
527
527
  }
528
528
 
529
+ export class ContactDeleteRequest extends jspb.Message {
530
+ getContactId(): string;
531
+ setContactId(value: string): void;
532
+
533
+ serializeBinary(): Uint8Array;
534
+ toObject(includeInstance?: boolean): ContactDeleteRequest.AsObject;
535
+ static toObject(includeInstance: boolean, msg: ContactDeleteRequest): ContactDeleteRequest.AsObject;
536
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
537
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
538
+ static serializeBinaryToWriter(message: ContactDeleteRequest, writer: jspb.BinaryWriter): void;
539
+ static deserializeBinary(bytes: Uint8Array): ContactDeleteRequest;
540
+ static deserializeBinaryFromReader(message: ContactDeleteRequest, reader: jspb.BinaryReader): ContactDeleteRequest;
541
+ }
542
+
543
+ export namespace ContactDeleteRequest {
544
+ export type AsObject = {
545
+ contactId: string,
546
+ }
547
+ }
548
+
549
+ export class ContactDeleteResponse extends jspb.Message {
550
+ serializeBinary(): Uint8Array;
551
+ toObject(includeInstance?: boolean): ContactDeleteResponse.AsObject;
552
+ static toObject(includeInstance: boolean, msg: ContactDeleteResponse): ContactDeleteResponse.AsObject;
553
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
554
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
555
+ static serializeBinaryToWriter(message: ContactDeleteResponse, writer: jspb.BinaryWriter): void;
556
+ static deserializeBinary(bytes: Uint8Array): ContactDeleteResponse;
557
+ static deserializeBinaryFromReader(message: ContactDeleteResponse, reader: jspb.BinaryReader): ContactDeleteResponse;
558
+ }
559
+
560
+ export namespace ContactDeleteResponse {
561
+ export type AsObject = {
562
+ }
563
+ }
564
+
529
565
  export interface ContactGenderMap {
530
566
  CONTACT_GENDER_UNSPECIFIED: 0;
531
567
  CONTACT_GENDER_MALE: 1;