@juzi/wechaty-grpc 1.0.41 → 1.0.42

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.
Files changed (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +336 -1
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +28 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +43 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +336 -1
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +28 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +43 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  23. package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +5 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/room_pb.d.ts +44 -0
  30. package/out/wechaty/puppet/room_pb.js +336 -1
  31. package/out/wechaty/puppet.openapi.yaml +28 -1
  32. package/out/wechaty/puppet.swagger.json +43 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  34. package/out/wechaty/puppet_grpc_pb.js +33 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  36. package/out/wechaty/puppet_pb_service.js +40 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -91,6 +91,9 @@ export class RoomPayloadResponse extends jspb.Message {
91
91
  getAdditionalInfo(): string;
92
92
  setAdditionalInfo(value: string): void;
93
93
 
94
+ getRoomRemark(): string;
95
+ setRoomRemark(value: string): void;
96
+
94
97
  serializeBinary(): Uint8Array;
95
98
  toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
96
99
  static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
@@ -111,6 +114,7 @@ export namespace RoomPayloadResponse {
111
114
  memberIdsList: Array<string>,
112
115
  handle: string,
113
116
  additionalInfo: string,
117
+ roomRemark: string,
114
118
  }
115
119
  }
116
120
 
@@ -482,3 +486,43 @@ export namespace RoomAnnounceResponse {
482
486
  }
483
487
  }
484
488
 
489
+ export class RoomRemarkRequest extends jspb.Message {
490
+ getId(): string;
491
+ setId(value: string): void;
492
+
493
+ getRemark(): string;
494
+ setRemark(value: string): void;
495
+
496
+ serializeBinary(): Uint8Array;
497
+ toObject(includeInstance?: boolean): RoomRemarkRequest.AsObject;
498
+ static toObject(includeInstance: boolean, msg: RoomRemarkRequest): RoomRemarkRequest.AsObject;
499
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
500
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
501
+ static serializeBinaryToWriter(message: RoomRemarkRequest, writer: jspb.BinaryWriter): void;
502
+ static deserializeBinary(bytes: Uint8Array): RoomRemarkRequest;
503
+ static deserializeBinaryFromReader(message: RoomRemarkRequest, reader: jspb.BinaryReader): RoomRemarkRequest;
504
+ }
505
+
506
+ export namespace RoomRemarkRequest {
507
+ export type AsObject = {
508
+ id: string,
509
+ remark: string,
510
+ }
511
+ }
512
+
513
+ export class RoomRemarkResponse extends jspb.Message {
514
+ serializeBinary(): Uint8Array;
515
+ toObject(includeInstance?: boolean): RoomRemarkResponse.AsObject;
516
+ static toObject(includeInstance: boolean, msg: RoomRemarkResponse): RoomRemarkResponse.AsObject;
517
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
518
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
519
+ static serializeBinaryToWriter(message: RoomRemarkResponse, writer: jspb.BinaryWriter): void;
520
+ static deserializeBinary(bytes: Uint8Array): RoomRemarkResponse;
521
+ static deserializeBinaryFromReader(message: RoomRemarkResponse, reader: jspb.BinaryReader): RoomRemarkResponse;
522
+ }
523
+
524
+ export namespace RoomRemarkResponse {
525
+ export type AsObject = {
526
+ }
527
+ }
528
+
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.wechaty.puppet.RoomQRCodeRequest', null, global);
35
35
  goog.exportSymbol('proto.wechaty.puppet.RoomQRCodeResponse', null, global);
36
36
  goog.exportSymbol('proto.wechaty.puppet.RoomQuitRequest', null, global);
37
37
  goog.exportSymbol('proto.wechaty.puppet.RoomQuitResponse', null, global);
38
+ goog.exportSymbol('proto.wechaty.puppet.RoomRemarkRequest', null, global);
39
+ goog.exportSymbol('proto.wechaty.puppet.RoomRemarkResponse', null, global);
38
40
  goog.exportSymbol('proto.wechaty.puppet.RoomTopicRequest', null, global);
39
41
  goog.exportSymbol('proto.wechaty.puppet.RoomTopicResponse', null, global);
40
42
  /**
@@ -457,6 +459,48 @@ if (goog.DEBUG && !COMPILED) {
457
459
  */
458
460
  proto.wechaty.puppet.RoomAnnounceResponse.displayName = 'proto.wechaty.puppet.RoomAnnounceResponse';
459
461
  }
462
+ /**
463
+ * Generated by JsPbCodeGenerator.
464
+ * @param {Array=} opt_data Optional initial data array, typically from a
465
+ * server response, or constructed directly in Javascript. The array is used
466
+ * in place and becomes part of the constructed object. It is not cloned.
467
+ * If no data is provided, the constructed object will be empty, but still
468
+ * valid.
469
+ * @extends {jspb.Message}
470
+ * @constructor
471
+ */
472
+ proto.wechaty.puppet.RoomRemarkRequest = function(opt_data) {
473
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
474
+ };
475
+ goog.inherits(proto.wechaty.puppet.RoomRemarkRequest, jspb.Message);
476
+ if (goog.DEBUG && !COMPILED) {
477
+ /**
478
+ * @public
479
+ * @override
480
+ */
481
+ proto.wechaty.puppet.RoomRemarkRequest.displayName = 'proto.wechaty.puppet.RoomRemarkRequest';
482
+ }
483
+ /**
484
+ * Generated by JsPbCodeGenerator.
485
+ * @param {Array=} opt_data Optional initial data array, typically from a
486
+ * server response, or constructed directly in Javascript. The array is used
487
+ * in place and becomes part of the constructed object. It is not cloned.
488
+ * If no data is provided, the constructed object will be empty, but still
489
+ * valid.
490
+ * @extends {jspb.Message}
491
+ * @constructor
492
+ */
493
+ proto.wechaty.puppet.RoomRemarkResponse = function(opt_data) {
494
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
495
+ };
496
+ goog.inherits(proto.wechaty.puppet.RoomRemarkResponse, jspb.Message);
497
+ if (goog.DEBUG && !COMPILED) {
498
+ /**
499
+ * @public
500
+ * @override
501
+ */
502
+ proto.wechaty.puppet.RoomRemarkResponse.displayName = 'proto.wechaty.puppet.RoomRemarkResponse';
503
+ }
460
504
 
461
505
 
462
506
 
@@ -890,7 +934,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
890
934
  adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
891
935
  memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
892
936
  handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
893
- additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
937
+ additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
938
+ roomRemark: jspb.Message.getFieldWithDefault(msg, 9, "")
894
939
  };
895
940
 
896
941
  if (includeInstance) {
@@ -959,6 +1004,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
959
1004
  var value = /** @type {string} */ (reader.readString());
960
1005
  msg.setAdditionalInfo(value);
961
1006
  break;
1007
+ case 9:
1008
+ var value = /** @type {string} */ (reader.readString());
1009
+ msg.setRoomRemark(value);
1010
+ break;
962
1011
  default:
963
1012
  reader.skipField();
964
1013
  break;
@@ -1044,6 +1093,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
1044
1093
  f
1045
1094
  );
1046
1095
  }
1096
+ f = message.getRoomRemark();
1097
+ if (f.length > 0) {
1098
+ writer.writeString(
1099
+ 9,
1100
+ f
1101
+ );
1102
+ }
1047
1103
  };
1048
1104
 
1049
1105
 
@@ -1229,6 +1285,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(
1229
1285
  };
1230
1286
 
1231
1287
 
1288
+ /**
1289
+ * optional string room_remark = 9;
1290
+ * @return {string}
1291
+ */
1292
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.getRoomRemark = function() {
1293
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * @param {string} value
1299
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1300
+ */
1301
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.setRoomRemark = function(value) {
1302
+ return jspb.Message.setProto3StringField(this, 9, value);
1303
+ };
1304
+
1305
+
1232
1306
 
1233
1307
 
1234
1308
 
@@ -3724,4 +3798,265 @@ proto.wechaty.puppet.RoomAnnounceResponse.prototype.setText = function(value) {
3724
3798
  };
3725
3799
 
3726
3800
 
3801
+
3802
+
3803
+
3804
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3805
+ /**
3806
+ * Creates an object representation of this proto.
3807
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3808
+ * Optional fields that are not set will be set to undefined.
3809
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3810
+ * For the list of reserved names please see:
3811
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3812
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3813
+ * JSPB instance for transitional soy proto support:
3814
+ * http://goto/soy-param-migration
3815
+ * @return {!Object}
3816
+ */
3817
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.toObject = function(opt_includeInstance) {
3818
+ return proto.wechaty.puppet.RoomRemarkRequest.toObject(opt_includeInstance, this);
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * Static version of the {@see toObject} method.
3824
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3825
+ * the JSPB instance for transitional soy proto support:
3826
+ * http://goto/soy-param-migration
3827
+ * @param {!proto.wechaty.puppet.RoomRemarkRequest} msg The msg instance to transform.
3828
+ * @return {!Object}
3829
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3830
+ */
3831
+ proto.wechaty.puppet.RoomRemarkRequest.toObject = function(includeInstance, msg) {
3832
+ var f, obj = {
3833
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3834
+ remark: jspb.Message.getFieldWithDefault(msg, 2, "")
3835
+ };
3836
+
3837
+ if (includeInstance) {
3838
+ obj.$jspbMessageInstance = msg;
3839
+ }
3840
+ return obj;
3841
+ };
3842
+ }
3843
+
3844
+
3845
+ /**
3846
+ * Deserializes binary data (in protobuf wire format).
3847
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3848
+ * @return {!proto.wechaty.puppet.RoomRemarkRequest}
3849
+ */
3850
+ proto.wechaty.puppet.RoomRemarkRequest.deserializeBinary = function(bytes) {
3851
+ var reader = new jspb.BinaryReader(bytes);
3852
+ var msg = new proto.wechaty.puppet.RoomRemarkRequest;
3853
+ return proto.wechaty.puppet.RoomRemarkRequest.deserializeBinaryFromReader(msg, reader);
3854
+ };
3855
+
3856
+
3857
+ /**
3858
+ * Deserializes binary data (in protobuf wire format) from the
3859
+ * given reader into the given message object.
3860
+ * @param {!proto.wechaty.puppet.RoomRemarkRequest} msg The message object to deserialize into.
3861
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3862
+ * @return {!proto.wechaty.puppet.RoomRemarkRequest}
3863
+ */
3864
+ proto.wechaty.puppet.RoomRemarkRequest.deserializeBinaryFromReader = function(msg, reader) {
3865
+ while (reader.nextField()) {
3866
+ if (reader.isEndGroup()) {
3867
+ break;
3868
+ }
3869
+ var field = reader.getFieldNumber();
3870
+ switch (field) {
3871
+ case 1:
3872
+ var value = /** @type {string} */ (reader.readString());
3873
+ msg.setId(value);
3874
+ break;
3875
+ case 2:
3876
+ var value = /** @type {string} */ (reader.readString());
3877
+ msg.setRemark(value);
3878
+ break;
3879
+ default:
3880
+ reader.skipField();
3881
+ break;
3882
+ }
3883
+ }
3884
+ return msg;
3885
+ };
3886
+
3887
+
3888
+ /**
3889
+ * Serializes the message to binary data (in protobuf wire format).
3890
+ * @return {!Uint8Array}
3891
+ */
3892
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.serializeBinary = function() {
3893
+ var writer = new jspb.BinaryWriter();
3894
+ proto.wechaty.puppet.RoomRemarkRequest.serializeBinaryToWriter(this, writer);
3895
+ return writer.getResultBuffer();
3896
+ };
3897
+
3898
+
3899
+ /**
3900
+ * Serializes the given message to binary data (in protobuf wire
3901
+ * format), writing to the given BinaryWriter.
3902
+ * @param {!proto.wechaty.puppet.RoomRemarkRequest} message
3903
+ * @param {!jspb.BinaryWriter} writer
3904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3905
+ */
3906
+ proto.wechaty.puppet.RoomRemarkRequest.serializeBinaryToWriter = function(message, writer) {
3907
+ var f = undefined;
3908
+ f = message.getId();
3909
+ if (f.length > 0) {
3910
+ writer.writeString(
3911
+ 1,
3912
+ f
3913
+ );
3914
+ }
3915
+ f = message.getRemark();
3916
+ if (f.length > 0) {
3917
+ writer.writeString(
3918
+ 2,
3919
+ f
3920
+ );
3921
+ }
3922
+ };
3923
+
3924
+
3925
+ /**
3926
+ * optional string id = 1;
3927
+ * @return {string}
3928
+ */
3929
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.getId = function() {
3930
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3931
+ };
3932
+
3933
+
3934
+ /**
3935
+ * @param {string} value
3936
+ * @return {!proto.wechaty.puppet.RoomRemarkRequest} returns this
3937
+ */
3938
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.setId = function(value) {
3939
+ return jspb.Message.setProto3StringField(this, 1, value);
3940
+ };
3941
+
3942
+
3943
+ /**
3944
+ * optional string remark = 2;
3945
+ * @return {string}
3946
+ */
3947
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.getRemark = function() {
3948
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3949
+ };
3950
+
3951
+
3952
+ /**
3953
+ * @param {string} value
3954
+ * @return {!proto.wechaty.puppet.RoomRemarkRequest} returns this
3955
+ */
3956
+ proto.wechaty.puppet.RoomRemarkRequest.prototype.setRemark = function(value) {
3957
+ return jspb.Message.setProto3StringField(this, 2, value);
3958
+ };
3959
+
3960
+
3961
+
3962
+
3963
+
3964
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3965
+ /**
3966
+ * Creates an object representation of this proto.
3967
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3968
+ * Optional fields that are not set will be set to undefined.
3969
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3970
+ * For the list of reserved names please see:
3971
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3972
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3973
+ * JSPB instance for transitional soy proto support:
3974
+ * http://goto/soy-param-migration
3975
+ * @return {!Object}
3976
+ */
3977
+ proto.wechaty.puppet.RoomRemarkResponse.prototype.toObject = function(opt_includeInstance) {
3978
+ return proto.wechaty.puppet.RoomRemarkResponse.toObject(opt_includeInstance, this);
3979
+ };
3980
+
3981
+
3982
+ /**
3983
+ * Static version of the {@see toObject} method.
3984
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3985
+ * the JSPB instance for transitional soy proto support:
3986
+ * http://goto/soy-param-migration
3987
+ * @param {!proto.wechaty.puppet.RoomRemarkResponse} msg The msg instance to transform.
3988
+ * @return {!Object}
3989
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3990
+ */
3991
+ proto.wechaty.puppet.RoomRemarkResponse.toObject = function(includeInstance, msg) {
3992
+ var f, obj = {
3993
+
3994
+ };
3995
+
3996
+ if (includeInstance) {
3997
+ obj.$jspbMessageInstance = msg;
3998
+ }
3999
+ return obj;
4000
+ };
4001
+ }
4002
+
4003
+
4004
+ /**
4005
+ * Deserializes binary data (in protobuf wire format).
4006
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4007
+ * @return {!proto.wechaty.puppet.RoomRemarkResponse}
4008
+ */
4009
+ proto.wechaty.puppet.RoomRemarkResponse.deserializeBinary = function(bytes) {
4010
+ var reader = new jspb.BinaryReader(bytes);
4011
+ var msg = new proto.wechaty.puppet.RoomRemarkResponse;
4012
+ return proto.wechaty.puppet.RoomRemarkResponse.deserializeBinaryFromReader(msg, reader);
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * Deserializes binary data (in protobuf wire format) from the
4018
+ * given reader into the given message object.
4019
+ * @param {!proto.wechaty.puppet.RoomRemarkResponse} msg The message object to deserialize into.
4020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4021
+ * @return {!proto.wechaty.puppet.RoomRemarkResponse}
4022
+ */
4023
+ proto.wechaty.puppet.RoomRemarkResponse.deserializeBinaryFromReader = function(msg, reader) {
4024
+ while (reader.nextField()) {
4025
+ if (reader.isEndGroup()) {
4026
+ break;
4027
+ }
4028
+ var field = reader.getFieldNumber();
4029
+ switch (field) {
4030
+ default:
4031
+ reader.skipField();
4032
+ break;
4033
+ }
4034
+ }
4035
+ return msg;
4036
+ };
4037
+
4038
+
4039
+ /**
4040
+ * Serializes the message to binary data (in protobuf wire format).
4041
+ * @return {!Uint8Array}
4042
+ */
4043
+ proto.wechaty.puppet.RoomRemarkResponse.prototype.serializeBinary = function() {
4044
+ var writer = new jspb.BinaryWriter();
4045
+ proto.wechaty.puppet.RoomRemarkResponse.serializeBinaryToWriter(this, writer);
4046
+ return writer.getResultBuffer();
4047
+ };
4048
+
4049
+
4050
+ /**
4051
+ * Serializes the given message to binary data (in protobuf wire
4052
+ * format), writing to the given BinaryWriter.
4053
+ * @param {!proto.wechaty.puppet.RoomRemarkResponse} message
4054
+ * @param {!jspb.BinaryWriter} writer
4055
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4056
+ */
4057
+ proto.wechaty.puppet.RoomRemarkResponse.serializeBinaryToWriter = function(message, writer) {
4058
+ var f = undefined;
4059
+ };
4060
+
4061
+
3727
4062
  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.41
12
+ version: 1.0.42
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -1700,6 +1700,29 @@ paths:
1700
1700
  type: string
1701
1701
  tags:
1702
1702
  - Puppet
1703
+ '/rooms/{id}/remark':
1704
+ put:
1705
+ operationId: Puppet_RoomRemark
1706
+ responses:
1707
+ '200':
1708
+ description: A successful response.
1709
+ schema:
1710
+ $ref: '#/definitions/puppetRoomRemarkResponse'
1711
+ default:
1712
+ description: An unexpected error response.
1713
+ schema:
1714
+ $ref: '#/definitions/rpcStatus'
1715
+ parameters:
1716
+ - name: id
1717
+ in: path
1718
+ required: true
1719
+ type: string
1720
+ - name: remark
1721
+ in: query
1722
+ required: false
1723
+ type: string
1724
+ tags:
1725
+ - Puppet
1703
1726
  '/rooms/{id}/topic':
1704
1727
  get:
1705
1728
  operationId: Puppet_RoomTopic
@@ -3304,6 +3327,8 @@ definitions:
3304
3327
  title: IM内部id,企微中为群的chat_id
3305
3328
  additionalInfo:
3306
3329
  type: string
3330
+ roomRemark:
3331
+ type: string
3307
3332
  puppetRoomQRCodeResponse:
3308
3333
  type: object
3309
3334
  properties:
@@ -3311,6 +3336,8 @@ definitions:
3311
3336
  type: string
3312
3337
  puppetRoomQuitResponse:
3313
3338
  type: object
3339
+ puppetRoomRemarkResponse:
3340
+ type: object
3314
3341
  puppetRoomTopicResponse:
3315
3342
  type: object
3316
3343
  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.41",
6
+ "version": "1.0.42",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2523,6 +2523,42 @@
2523
2523
  ]
2524
2524
  }
2525
2525
  },
2526
+ "/rooms/{id}/remark": {
2527
+ "put": {
2528
+ "operationId": "Puppet_RoomRemark",
2529
+ "responses": {
2530
+ "200": {
2531
+ "description": "A successful response.",
2532
+ "schema": {
2533
+ "$ref": "#/definitions/puppetRoomRemarkResponse"
2534
+ }
2535
+ },
2536
+ "default": {
2537
+ "description": "An unexpected error response.",
2538
+ "schema": {
2539
+ "$ref": "#/definitions/rpcStatus"
2540
+ }
2541
+ }
2542
+ },
2543
+ "parameters": [
2544
+ {
2545
+ "name": "id",
2546
+ "in": "path",
2547
+ "required": true,
2548
+ "type": "string"
2549
+ },
2550
+ {
2551
+ "name": "remark",
2552
+ "in": "query",
2553
+ "required": false,
2554
+ "type": "string"
2555
+ }
2556
+ ],
2557
+ "tags": [
2558
+ "Puppet"
2559
+ ]
2560
+ }
2561
+ },
2526
2562
  "/rooms/{id}/topic": {
2527
2563
  "get": {
2528
2564
  "operationId": "Puppet_RoomTopic",
@@ -4642,6 +4678,9 @@
4642
4678
  },
4643
4679
  "additionalInfo": {
4644
4680
  "type": "string"
4681
+ },
4682
+ "roomRemark": {
4683
+ "type": "string"
4645
4684
  }
4646
4685
  }
4647
4686
  },
@@ -4656,6 +4695,9 @@
4656
4695
  "puppetRoomQuitResponse": {
4657
4696
  "type": "object"
4658
4697
  },
4698
+ "puppetRoomRemarkResponse": {
4699
+ "type": "object"
4700
+ },
4659
4701
  "puppetRoomTopicResponse": {
4660
4702
  "type": "object",
4661
4703
  "properties": {
@@ -80,6 +80,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
80
80
  roomDel: IPuppetService_IRoomDel;
81
81
  roomQuit: IPuppetService_IRoomQuit;
82
82
  roomTopic: IPuppetService_IRoomTopic;
83
+ roomRemark: IPuppetService_IRoomRemark;
83
84
  roomQRCode: IPuppetService_IRoomQRCode;
84
85
  roomAnnounce: IPuppetService_IRoomAnnounce;
85
86
  roomMemberPayload: IPuppetService_IRoomMemberPayload;
@@ -614,6 +615,15 @@ interface IPuppetService_IRoomTopic extends grpc.MethodDefinition<wechaty_puppet
614
615
  responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomTopicResponse>;
615
616
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomTopicResponse>;
616
617
  }
618
+ interface IPuppetService_IRoomRemark extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomRemarkRequest, wechaty_puppet_room_pb.RoomRemarkResponse> {
619
+ path: "/wechaty.Puppet/RoomRemark";
620
+ requestStream: false;
621
+ responseStream: false;
622
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomRemarkRequest>;
623
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomRemarkRequest>;
624
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomRemarkResponse>;
625
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomRemarkResponse>;
626
+ }
617
627
  interface IPuppetService_IRoomQRCode extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomQRCodeRequest, wechaty_puppet_room_pb.RoomQRCodeResponse> {
618
628
  path: "/wechaty.Puppet/RoomQRCode";
619
629
  requestStream: false;
@@ -926,6 +936,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
926
936
  roomDel: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomDelRequest, wechaty_puppet_room_pb.RoomDelResponse>;
927
937
  roomQuit: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomQuitRequest, wechaty_puppet_room_pb.RoomQuitResponse>;
928
938
  roomTopic: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomTopicRequest, wechaty_puppet_room_pb.RoomTopicResponse>;
939
+ roomRemark: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomRemarkRequest, wechaty_puppet_room_pb.RoomRemarkResponse>;
929
940
  roomQRCode: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomQRCodeRequest, wechaty_puppet_room_pb.RoomQRCodeResponse>;
930
941
  roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
931
942
  roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
@@ -1123,6 +1134,9 @@ export interface IPuppetClient {
1123
1134
  roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1124
1135
  roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1125
1136
  roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1137
+ roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1138
+ roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1139
+ roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1126
1140
  roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
1127
1141
  roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
1128
1142
  roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
@@ -1377,6 +1391,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1377
1391
  public roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1378
1392
  public roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1379
1393
  public roomTopic(request: wechaty_puppet_room_pb.RoomTopicRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomTopicResponse) => void): grpc.ClientUnaryCall;
1394
+ public roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1395
+ public roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1396
+ public roomRemark(request: wechaty_puppet_room_pb.RoomRemarkRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomRemarkResponse) => void): grpc.ClientUnaryCall;
1380
1397
  public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
1381
1398
  public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
1382
1399
  public roomQRCode(request: wechaty_puppet_room_pb.RoomQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomQRCodeResponse) => void): grpc.ClientUnaryCall;
@@ -1462,6 +1462,28 @@ function deserialize_wechaty_puppet_RoomQuitResponse(buffer_arg) {
1462
1462
  return wechaty_puppet_room_pb.RoomQuitResponse.deserializeBinary(new Uint8Array(buffer_arg));
1463
1463
  }
1464
1464
 
1465
+ function serialize_wechaty_puppet_RoomRemarkRequest(arg) {
1466
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomRemarkRequest)) {
1467
+ throw new Error('Expected argument of type wechaty.puppet.RoomRemarkRequest');
1468
+ }
1469
+ return Buffer.from(arg.serializeBinary());
1470
+ }
1471
+
1472
+ function deserialize_wechaty_puppet_RoomRemarkRequest(buffer_arg) {
1473
+ return wechaty_puppet_room_pb.RoomRemarkRequest.deserializeBinary(new Uint8Array(buffer_arg));
1474
+ }
1475
+
1476
+ function serialize_wechaty_puppet_RoomRemarkResponse(arg) {
1477
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomRemarkResponse)) {
1478
+ throw new Error('Expected argument of type wechaty.puppet.RoomRemarkResponse');
1479
+ }
1480
+ return Buffer.from(arg.serializeBinary());
1481
+ }
1482
+
1483
+ function deserialize_wechaty_puppet_RoomRemarkResponse(buffer_arg) {
1484
+ return wechaty_puppet_room_pb.RoomRemarkResponse.deserializeBinary(new Uint8Array(buffer_arg));
1485
+ }
1486
+
1465
1487
  function serialize_wechaty_puppet_RoomTopicRequest(arg) {
1466
1488
  if (!(arg instanceof wechaty_puppet_room_pb.RoomTopicRequest)) {
1467
1489
  throw new Error('Expected argument of type wechaty.puppet.RoomTopicRequest');
@@ -2516,6 +2538,17 @@ roomPayload: {
2516
2538
  responseSerialize: serialize_wechaty_puppet_RoomTopicResponse,
2517
2539
  responseDeserialize: deserialize_wechaty_puppet_RoomTopicResponse,
2518
2540
  },
2541
+ roomRemark: {
2542
+ path: '/wechaty.Puppet/RoomRemark',
2543
+ requestStream: false,
2544
+ responseStream: false,
2545
+ requestType: wechaty_puppet_room_pb.RoomRemarkRequest,
2546
+ responseType: wechaty_puppet_room_pb.RoomRemarkResponse,
2547
+ requestSerialize: serialize_wechaty_puppet_RoomRemarkRequest,
2548
+ requestDeserialize: deserialize_wechaty_puppet_RoomRemarkRequest,
2549
+ responseSerialize: serialize_wechaty_puppet_RoomRemarkResponse,
2550
+ responseDeserialize: deserialize_wechaty_puppet_RoomRemarkResponse,
2551
+ },
2519
2552
  roomQRCode: {
2520
2553
  path: '/wechaty.Puppet/RoomQRCode',
2521
2554
  requestStream: false,