@juzi/wechaty-grpc 1.0.86 → 1.0.89

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  2. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +334 -0
  3. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +56 -0
  4. package/dist/cjs/out/wechaty/puppet/room_pb.js +426 -2
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +75 -6
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +110 -6
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  11. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -0
  12. package/dist/cjs/proto/wechaty/puppet/room.proto +11 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  19. package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +334 -0
  20. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +56 -0
  21. package/dist/esm/out/wechaty/puppet/room_pb.js +426 -2
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +75 -6
  23. package/dist/esm/out/wechaty/puppet.swagger.json +110 -6
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  28. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -0
  29. package/dist/esm/proto/wechaty/puppet/room.proto +11 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +10 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  36. package/out/wechaty/puppet/room-invitation_pb.js +334 -0
  37. package/out/wechaty/puppet/room_pb.d.ts +56 -0
  38. package/out/wechaty/puppet/room_pb.js +426 -2
  39. package/out/wechaty/puppet.openapi.yaml +75 -6
  40. package/out/wechaty/puppet.swagger.json +110 -6
  41. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  42. package/out/wechaty/puppet_grpc_pb.js +66 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  44. package/out/wechaty/puppet_pb_service.js +80 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -39,6 +39,8 @@ goog.exportSymbol('proto.wechaty.puppet.RoomListRequest', null, global);
39
39
  goog.exportSymbol('proto.wechaty.puppet.RoomListResponse', null, global);
40
40
  goog.exportSymbol('proto.wechaty.puppet.RoomOwnerTransferRequest', null, global);
41
41
  goog.exportSymbol('proto.wechaty.puppet.RoomOwnerTransferResponse', null, global);
42
+ goog.exportSymbol('proto.wechaty.puppet.RoomParseDynamicQRCodeRequest', null, global);
43
+ goog.exportSymbol('proto.wechaty.puppet.RoomParseDynamicQRCodeResponse', null, global);
42
44
  goog.exportSymbol('proto.wechaty.puppet.RoomPayloadRequest', null, global);
43
45
  goog.exportSymbol('proto.wechaty.puppet.RoomPayloadResponse', null, global);
44
46
  goog.exportSymbol('proto.wechaty.puppet.RoomPermissionRequest', null, global);
@@ -429,6 +431,48 @@ if (goog.DEBUG && !COMPILED) {
429
431
  */
430
432
  proto.wechaty.puppet.RoomQRCodeResponse.displayName = 'proto.wechaty.puppet.RoomQRCodeResponse';
431
433
  }
434
+ /**
435
+ * Generated by JsPbCodeGenerator.
436
+ * @param {Array=} opt_data Optional initial data array, typically from a
437
+ * server response, or constructed directly in Javascript. The array is used
438
+ * in place and becomes part of the constructed object. It is not cloned.
439
+ * If no data is provided, the constructed object will be empty, but still
440
+ * valid.
441
+ * @extends {jspb.Message}
442
+ * @constructor
443
+ */
444
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest = function(opt_data) {
445
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
446
+ };
447
+ goog.inherits(proto.wechaty.puppet.RoomParseDynamicQRCodeRequest, jspb.Message);
448
+ if (goog.DEBUG && !COMPILED) {
449
+ /**
450
+ * @public
451
+ * @override
452
+ */
453
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.displayName = 'proto.wechaty.puppet.RoomParseDynamicQRCodeRequest';
454
+ }
455
+ /**
456
+ * Generated by JsPbCodeGenerator.
457
+ * @param {Array=} opt_data Optional initial data array, typically from a
458
+ * server response, or constructed directly in Javascript. The array is used
459
+ * in place and becomes part of the constructed object. It is not cloned.
460
+ * If no data is provided, the constructed object will be empty, but still
461
+ * valid.
462
+ * @extends {jspb.Message}
463
+ * @constructor
464
+ */
465
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse = function(opt_data) {
466
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
467
+ };
468
+ goog.inherits(proto.wechaty.puppet.RoomParseDynamicQRCodeResponse, jspb.Message);
469
+ if (goog.DEBUG && !COMPILED) {
470
+ /**
471
+ * @public
472
+ * @override
473
+ */
474
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.displayName = 'proto.wechaty.puppet.RoomParseDynamicQRCodeResponse';
475
+ }
432
476
  /**
433
477
  * Generated by JsPbCodeGenerator.
434
478
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3652,6 +3696,326 @@ proto.wechaty.puppet.RoomQRCodeResponse.prototype.setQrcode = function(value) {
3652
3696
 
3653
3697
 
3654
3698
 
3699
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3700
+ /**
3701
+ * Creates an object representation of this proto.
3702
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3703
+ * Optional fields that are not set will be set to undefined.
3704
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3705
+ * For the list of reserved names please see:
3706
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3707
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3708
+ * JSPB instance for transitional soy proto support:
3709
+ * http://goto/soy-param-migration
3710
+ * @return {!Object}
3711
+ */
3712
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
3713
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.toObject(opt_includeInstance, this);
3714
+ };
3715
+
3716
+
3717
+ /**
3718
+ * Static version of the {@see toObject} method.
3719
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3720
+ * the JSPB instance for transitional soy proto support:
3721
+ * http://goto/soy-param-migration
3722
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} msg The msg instance to transform.
3723
+ * @return {!Object}
3724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3725
+ */
3726
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.toObject = function(includeInstance, msg) {
3727
+ var f, obj = {
3728
+ url: jspb.Message.getFieldWithDefault(msg, 1, "")
3729
+ };
3730
+
3731
+ if (includeInstance) {
3732
+ obj.$jspbMessageInstance = msg;
3733
+ }
3734
+ return obj;
3735
+ };
3736
+ }
3737
+
3738
+
3739
+ /**
3740
+ * Deserializes binary data (in protobuf wire format).
3741
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3742
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest}
3743
+ */
3744
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinary = function(bytes) {
3745
+ var reader = new jspb.BinaryReader(bytes);
3746
+ var msg = new proto.wechaty.puppet.RoomParseDynamicQRCodeRequest;
3747
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinaryFromReader(msg, reader);
3748
+ };
3749
+
3750
+
3751
+ /**
3752
+ * Deserializes binary data (in protobuf wire format) from the
3753
+ * given reader into the given message object.
3754
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} msg The message object to deserialize into.
3755
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3756
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest}
3757
+ */
3758
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
3759
+ while (reader.nextField()) {
3760
+ if (reader.isEndGroup()) {
3761
+ break;
3762
+ }
3763
+ var field = reader.getFieldNumber();
3764
+ switch (field) {
3765
+ case 1:
3766
+ var value = /** @type {string} */ (reader.readString());
3767
+ msg.setUrl(value);
3768
+ break;
3769
+ default:
3770
+ reader.skipField();
3771
+ break;
3772
+ }
3773
+ }
3774
+ return msg;
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * Serializes the message to binary data (in protobuf wire format).
3780
+ * @return {!Uint8Array}
3781
+ */
3782
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.serializeBinary = function() {
3783
+ var writer = new jspb.BinaryWriter();
3784
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.serializeBinaryToWriter(this, writer);
3785
+ return writer.getResultBuffer();
3786
+ };
3787
+
3788
+
3789
+ /**
3790
+ * Serializes the given message to binary data (in protobuf wire
3791
+ * format), writing to the given BinaryWriter.
3792
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} message
3793
+ * @param {!jspb.BinaryWriter} writer
3794
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3795
+ */
3796
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
3797
+ var f = undefined;
3798
+ f = message.getUrl();
3799
+ if (f.length > 0) {
3800
+ writer.writeString(
3801
+ 1,
3802
+ f
3803
+ );
3804
+ }
3805
+ };
3806
+
3807
+
3808
+ /**
3809
+ * optional string url = 1;
3810
+ * @return {string}
3811
+ */
3812
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.getUrl = function() {
3813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3814
+ };
3815
+
3816
+
3817
+ /**
3818
+ * @param {string} value
3819
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} returns this
3820
+ */
3821
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.setUrl = function(value) {
3822
+ return jspb.Message.setProto3StringField(this, 1, value);
3823
+ };
3824
+
3825
+
3826
+
3827
+
3828
+
3829
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3830
+ /**
3831
+ * Creates an object representation of this proto.
3832
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3833
+ * Optional fields that are not set will be set to undefined.
3834
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3835
+ * For the list of reserved names please see:
3836
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3837
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3838
+ * JSPB instance for transitional soy proto support:
3839
+ * http://goto/soy-param-migration
3840
+ * @return {!Object}
3841
+ */
3842
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
3843
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.toObject(opt_includeInstance, this);
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * Static version of the {@see toObject} method.
3849
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3850
+ * the JSPB instance for transitional soy proto support:
3851
+ * http://goto/soy-param-migration
3852
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} msg The msg instance to transform.
3853
+ * @return {!Object}
3854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3855
+ */
3856
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.toObject = function(includeInstance, msg) {
3857
+ var f, obj = {
3858
+ qrcode: jspb.Message.getFieldWithDefault(msg, 1, ""),
3859
+ qrcodeImageUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
3860
+ roomName: jspb.Message.getFieldWithDefault(msg, 3, "")
3861
+ };
3862
+
3863
+ if (includeInstance) {
3864
+ obj.$jspbMessageInstance = msg;
3865
+ }
3866
+ return obj;
3867
+ };
3868
+ }
3869
+
3870
+
3871
+ /**
3872
+ * Deserializes binary data (in protobuf wire format).
3873
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3874
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse}
3875
+ */
3876
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinary = function(bytes) {
3877
+ var reader = new jspb.BinaryReader(bytes);
3878
+ var msg = new proto.wechaty.puppet.RoomParseDynamicQRCodeResponse;
3879
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinaryFromReader(msg, reader);
3880
+ };
3881
+
3882
+
3883
+ /**
3884
+ * Deserializes binary data (in protobuf wire format) from the
3885
+ * given reader into the given message object.
3886
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} msg The message object to deserialize into.
3887
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3888
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse}
3889
+ */
3890
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
3891
+ while (reader.nextField()) {
3892
+ if (reader.isEndGroup()) {
3893
+ break;
3894
+ }
3895
+ var field = reader.getFieldNumber();
3896
+ switch (field) {
3897
+ case 1:
3898
+ var value = /** @type {string} */ (reader.readString());
3899
+ msg.setQrcode(value);
3900
+ break;
3901
+ case 2:
3902
+ var value = /** @type {string} */ (reader.readString());
3903
+ msg.setQrcodeImageUrl(value);
3904
+ break;
3905
+ case 3:
3906
+ var value = /** @type {string} */ (reader.readString());
3907
+ msg.setRoomName(value);
3908
+ break;
3909
+ default:
3910
+ reader.skipField();
3911
+ break;
3912
+ }
3913
+ }
3914
+ return msg;
3915
+ };
3916
+
3917
+
3918
+ /**
3919
+ * Serializes the message to binary data (in protobuf wire format).
3920
+ * @return {!Uint8Array}
3921
+ */
3922
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.serializeBinary = function() {
3923
+ var writer = new jspb.BinaryWriter();
3924
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.serializeBinaryToWriter(this, writer);
3925
+ return writer.getResultBuffer();
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * Serializes the given message to binary data (in protobuf wire
3931
+ * format), writing to the given BinaryWriter.
3932
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} message
3933
+ * @param {!jspb.BinaryWriter} writer
3934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3935
+ */
3936
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
3937
+ var f = undefined;
3938
+ f = message.getQrcode();
3939
+ if (f.length > 0) {
3940
+ writer.writeString(
3941
+ 1,
3942
+ f
3943
+ );
3944
+ }
3945
+ f = message.getQrcodeImageUrl();
3946
+ if (f.length > 0) {
3947
+ writer.writeString(
3948
+ 2,
3949
+ f
3950
+ );
3951
+ }
3952
+ f = message.getRoomName();
3953
+ if (f.length > 0) {
3954
+ writer.writeString(
3955
+ 3,
3956
+ f
3957
+ );
3958
+ }
3959
+ };
3960
+
3961
+
3962
+ /**
3963
+ * optional string qrcode = 1;
3964
+ * @return {string}
3965
+ */
3966
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getQrcode = function() {
3967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3968
+ };
3969
+
3970
+
3971
+ /**
3972
+ * @param {string} value
3973
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
3974
+ */
3975
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setQrcode = function(value) {
3976
+ return jspb.Message.setProto3StringField(this, 1, value);
3977
+ };
3978
+
3979
+
3980
+ /**
3981
+ * optional string qrcode_image_url = 2;
3982
+ * @return {string}
3983
+ */
3984
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getQrcodeImageUrl = function() {
3985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3986
+ };
3987
+
3988
+
3989
+ /**
3990
+ * @param {string} value
3991
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
3992
+ */
3993
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setQrcodeImageUrl = function(value) {
3994
+ return jspb.Message.setProto3StringField(this, 2, value);
3995
+ };
3996
+
3997
+
3998
+ /**
3999
+ * optional string room_name = 3;
4000
+ * @return {string}
4001
+ */
4002
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getRoomName = function() {
4003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4004
+ };
4005
+
4006
+
4007
+ /**
4008
+ * @param {string} value
4009
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
4010
+ */
4011
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setRoomName = function(value) {
4012
+ return jspb.Message.setProto3StringField(this, 3, value);
4013
+ };
4014
+
4015
+
4016
+
4017
+
4018
+
3655
4019
  if (jspb.Message.GENERATE_TO_OBJECT) {
3656
4020
  /**
3657
4021
  * Creates an object representation of this proto.
@@ -4618,7 +4982,8 @@ proto.wechaty.puppet.RoomPermissionRequest.toObject = function(includeInstance,
4618
4982
  adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 3, 0),
4619
4983
  adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
4620
4984
  muteAll: jspb.Message.getFieldWithDefault(msg, 5, 0),
4621
- forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 6, 0)
4985
+ forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 6, 0),
4986
+ disableMemberMutualAdd: jspb.Message.getFieldWithDefault(msg, 7, 0)
4622
4987
  };
4623
4988
 
4624
4989
  if (includeInstance) {
@@ -4679,6 +5044,10 @@ proto.wechaty.puppet.RoomPermissionRequest.deserializeBinaryFromReader = functio
4679
5044
  var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4680
5045
  msg.setForbidRoomTopicEdit(value);
4681
5046
  break;
5047
+ case 7:
5048
+ var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
5049
+ msg.setDisableMemberMutualAdd(value);
5050
+ break;
4682
5051
  default:
4683
5052
  reader.skipField();
4684
5053
  break;
@@ -4750,6 +5119,13 @@ proto.wechaty.puppet.RoomPermissionRequest.serializeBinaryToWriter = function(me
4750
5119
  f
4751
5120
  );
4752
5121
  }
5122
+ f = message.getDisableMemberMutualAdd();
5123
+ if (f !== 0.0) {
5124
+ writer.writeEnum(
5125
+ 7,
5126
+ f
5127
+ );
5128
+ }
4753
5129
  };
4754
5130
 
4755
5131
 
@@ -4861,6 +5237,24 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.setForbidRoomTopicEdit = fu
4861
5237
  };
4862
5238
 
4863
5239
 
5240
+ /**
5241
+ * optional OptionalBoolean disable_member_mutual_add = 7;
5242
+ * @return {!proto.wechaty.puppet.OptionalBoolean}
5243
+ */
5244
+ proto.wechaty.puppet.RoomPermissionRequest.prototype.getDisableMemberMutualAdd = function() {
5245
+ return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
5246
+ };
5247
+
5248
+
5249
+ /**
5250
+ * @param {!proto.wechaty.puppet.OptionalBoolean} value
5251
+ * @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
5252
+ */
5253
+ proto.wechaty.puppet.RoomPermissionRequest.prototype.setDisableMemberMutualAdd = function(value) {
5254
+ return jspb.Message.setProto3EnumField(this, 7, value);
5255
+ };
5256
+
5257
+
4864
5258
 
4865
5259
 
4866
5260
 
@@ -4897,7 +5291,8 @@ proto.wechaty.puppet.RoomPermissionResponse.toObject = function(includeInstance,
4897
5291
  adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 2, 0),
4898
5292
  adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 3, 0),
4899
5293
  muteAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
4900
- forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 5, 0)
5294
+ forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 5, 0),
5295
+ disableMemberMutualAdd: jspb.Message.getFieldWithDefault(msg, 6, 0)
4901
5296
  };
4902
5297
 
4903
5298
  if (includeInstance) {
@@ -4954,6 +5349,10 @@ proto.wechaty.puppet.RoomPermissionResponse.deserializeBinaryFromReader = functi
4954
5349
  var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4955
5350
  msg.setForbidRoomTopicEdit(value);
4956
5351
  break;
5352
+ case 6:
5353
+ var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
5354
+ msg.setDisableMemberMutualAdd(value);
5355
+ break;
4957
5356
  default:
4958
5357
  reader.skipField();
4959
5358
  break;
@@ -5018,6 +5417,13 @@ proto.wechaty.puppet.RoomPermissionResponse.serializeBinaryToWriter = function(m
5018
5417
  f
5019
5418
  );
5020
5419
  }
5420
+ f = message.getDisableMemberMutualAdd();
5421
+ if (f !== 0.0) {
5422
+ writer.writeEnum(
5423
+ 6,
5424
+ f
5425
+ );
5426
+ }
5021
5427
  };
5022
5428
 
5023
5429
 
@@ -5111,6 +5517,24 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.setForbidRoomTopicEdit = f
5111
5517
  };
5112
5518
 
5113
5519
 
5520
+ /**
5521
+ * optional OptionalBoolean disable_member_mutual_add = 6;
5522
+ * @return {!proto.wechaty.puppet.OptionalBoolean}
5523
+ */
5524
+ proto.wechaty.puppet.RoomPermissionResponse.prototype.getDisableMemberMutualAdd = function() {
5525
+ return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
5526
+ };
5527
+
5528
+
5529
+ /**
5530
+ * @param {!proto.wechaty.puppet.OptionalBoolean} value
5531
+ * @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
5532
+ */
5533
+ proto.wechaty.puppet.RoomPermissionResponse.prototype.setDisableMemberMutualAdd = function(value) {
5534
+ return jspb.Message.setProto3EnumField(this, 6, value);
5535
+ };
5536
+
5537
+
5114
5538
 
5115
5539
  /**
5116
5540
  * List of repeated fields within this message type.
@@ -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.86
12
+ version: 1.0.89
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -417,7 +417,7 @@ paths:
417
417
  - PAYLOAD_TYPE_POST
418
418
  - PAYLOAD_TYPE_TAG
419
419
  - PAYLOAD_TYPE_TAG_GROUP
420
- pattern: PAYLOADTYPECONTACT
420
+ pattern: PAYLOAD_TYPE_CONTACT
421
421
  tags:
422
422
  - Puppet
423
423
  /contacts/{id}/payload-modify:
@@ -992,7 +992,7 @@ paths:
992
992
  - PAYLOAD_TYPE_POST
993
993
  - PAYLOAD_TYPE_TAG
994
994
  - PAYLOAD_TYPE_TAG_GROUP
995
- pattern: PAYLOADTYPEFRIENDSHIP
995
+ pattern: PAYLOAD_TYPE_FRIENDSHIP
996
996
  tags:
997
997
  - Puppet
998
998
  /logout:
@@ -1188,7 +1188,7 @@ paths:
1188
1188
  - PAYLOAD_TYPE_POST
1189
1189
  - PAYLOAD_TYPE_TAG
1190
1190
  - PAYLOAD_TYPE_TAG_GROUP
1191
- pattern: PAYLOADTYPEMESSAGE
1191
+ pattern: PAYLOAD_TYPE_MESSAGE
1192
1192
  tags:
1193
1193
  - Puppet
1194
1194
  /message/{id}/location:
@@ -1548,6 +1548,25 @@ paths:
1548
1548
  type: string
1549
1549
  tags:
1550
1550
  - Puppet
1551
+ /room-invitations/{qrcode}/accept-by-qrcode:
1552
+ put:
1553
+ operationId: Puppet_RoomInvitationAcceptByQRCode
1554
+ responses:
1555
+ '200':
1556
+ description: A successful response.
1557
+ schema:
1558
+ $ref: '#/definitions/puppetRoomInvitationAcceptByQRCodeResponse'
1559
+ default:
1560
+ description: An unexpected error response.
1561
+ schema:
1562
+ $ref: '#/definitions/rpcStatus'
1563
+ parameters:
1564
+ - name: qrcode
1565
+ in: path
1566
+ required: true
1567
+ type: string
1568
+ tags:
1569
+ - Puppet
1551
1570
  /rooms:
1552
1571
  get:
1553
1572
  operationId: Puppet_RoomList
@@ -1823,7 +1842,7 @@ paths:
1823
1842
  - PAYLOAD_TYPE_POST
1824
1843
  - PAYLOAD_TYPE_TAG
1825
1844
  - PAYLOAD_TYPE_TAG_GROUP
1826
- pattern: PAYLOADTYPEROOMMEMBER
1845
+ pattern: PAYLOAD_TYPE_ROOM_MEMBER
1827
1846
  tags:
1828
1847
  - Puppet
1829
1848
  /rooms/{id}/dirty/{type}:
@@ -1857,7 +1876,7 @@ paths:
1857
1876
  - PAYLOAD_TYPE_POST
1858
1877
  - PAYLOAD_TYPE_TAG
1859
1878
  - PAYLOAD_TYPE_TAG_GROUP
1860
- pattern: PAYLOADTYPEROOM
1879
+ pattern: PAYLOAD_TYPE_ROOM
1861
1880
  tags:
1862
1881
  - Puppet
1863
1882
  /rooms/{id}/member/{contactId}:
@@ -1997,6 +2016,15 @@ paths:
1997
2016
  - BOOL_FALSE
1998
2017
  - BOOL_TRUE
1999
2018
  default: BOOL_UNSET
2019
+ - name: disableMemberMutualAdd
2020
+ in: query
2021
+ required: false
2022
+ type: string
2023
+ enum:
2024
+ - BOOL_UNSET
2025
+ - BOOL_FALSE
2026
+ - BOOL_TRUE
2027
+ default: BOOL_UNSET
2000
2028
  tags:
2001
2029
  - Puppet
2002
2030
  /rooms/{id}/qrcode:
@@ -2092,6 +2120,26 @@ paths:
2092
2120
  type: string
2093
2121
  tags:
2094
2122
  - Puppet
2123
+ /rooms/{url}/parse-dynamic-qrcode:
2124
+ get:
2125
+ operationId: Puppet_RoomParseDynamicQRCode
2126
+ responses:
2127
+ '200':
2128
+ description: A successful response.
2129
+ schema:
2130
+ $ref: '#/definitions/puppetRoomParseDynamicQRCodeResponse'
2131
+ default:
2132
+ description: An unexpected error response.
2133
+ schema:
2134
+ $ref: '#/definitions/rpcStatus'
2135
+ parameters:
2136
+ - name: url
2137
+ description: 群活码链接
2138
+ in: path
2139
+ required: true
2140
+ type: string
2141
+ tags:
2142
+ - Puppet
2095
2143
  /start:
2096
2144
  put:
2097
2145
  summary: '*'
@@ -4019,6 +4067,13 @@ definitions:
4019
4067
  type: object
4020
4068
  puppetRoomDismissResponse:
4021
4069
  type: object
4070
+ puppetRoomInvitationAcceptByQRCodeResponse:
4071
+ type: object
4072
+ properties:
4073
+ roomId:
4074
+ type: string
4075
+ chatId:
4076
+ type: string
4022
4077
  puppetRoomInvitationAcceptResponse:
4023
4078
  type: object
4024
4079
  puppetRoomInvitationPayloadResponse:
@@ -4112,6 +4167,18 @@ definitions:
4112
4167
  $ref: '#/definitions/puppetRoomMemberJoinSceneType'
4113
4168
  puppetRoomOwnerTransferResponse:
4114
4169
  type: object
4170
+ puppetRoomParseDynamicQRCodeResponse:
4171
+ type: object
4172
+ properties:
4173
+ qrcode:
4174
+ type: string
4175
+ title: 二维码url
4176
+ qrcodeImageUrl:
4177
+ type: string
4178
+ title: 二维码图片url
4179
+ roomName:
4180
+ type: string
4181
+ title: 群名称
4115
4182
  puppetRoomPayloadResponse:
4116
4183
  type: object
4117
4184
  properties:
@@ -4161,6 +4228,8 @@ definitions:
4161
4228
  $ref: '#/definitions/puppetOptionalBoolean'
4162
4229
  forbidRoomTopicEdit:
4163
4230
  $ref: '#/definitions/puppetOptionalBoolean'
4231
+ disableMemberMutualAdd:
4232
+ $ref: '#/definitions/puppetOptionalBoolean'
4164
4233
  puppetRoomQRCodeResponse:
4165
4234
  type: object
4166
4235
  properties: