@juzi/wechaty-grpc 1.0.87 → 1.0.90

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 (58) hide show
  1. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  2. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  3. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  4. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  5. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  6. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +334 -0
  7. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +54 -0
  8. package/dist/cjs/out/wechaty/puppet/room_pb.js +422 -2
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +72 -6
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +106 -6
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  13. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  14. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  15. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -0
  16. package/dist/cjs/proto/wechaty/puppet/room.proto +10 -0
  17. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  18. package/dist/cjs/src/package-json.js +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  20. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  21. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  22. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  23. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  24. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  25. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  26. package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  27. package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +334 -0
  28. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +54 -0
  29. package/dist/esm/out/wechaty/puppet/room_pb.js +422 -2
  30. package/dist/esm/out/wechaty/puppet.openapi.yaml +72 -6
  31. package/dist/esm/out/wechaty/puppet.swagger.json +106 -6
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  34. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  35. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  36. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -0
  37. package/dist/esm/proto/wechaty/puppet/room.proto +10 -0
  38. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  39. package/dist/esm/src/package-json.js +1 -1
  40. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  41. package/dist/esm/tests/puppet-server-impl.js +10 -0
  42. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  43. package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  44. package/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  45. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  46. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  47. package/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
  48. package/out/wechaty/puppet/room-invitation_pb.js +334 -0
  49. package/out/wechaty/puppet/room_pb.d.ts +54 -0
  50. package/out/wechaty/puppet/room_pb.js +422 -2
  51. package/out/wechaty/puppet.openapi.yaml +72 -6
  52. package/out/wechaty/puppet.swagger.json +106 -6
  53. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  54. package/out/wechaty/puppet_grpc_pb.js +66 -0
  55. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  56. package/out/wechaty/puppet_pb_service.js +80 -0
  57. package/package.json +1 -1
  58. 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);
@@ -146,7 +148,7 @@ if (goog.DEBUG && !COMPILED) {
146
148
  * @constructor
147
149
  */
148
150
  proto.wechaty.puppet.RoomAddRequest = function(opt_data) {
149
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAddRequest.repeatedFields_, null);
150
152
  };
151
153
  goog.inherits(proto.wechaty.puppet.RoomAddRequest, jspb.Message);
152
154
  if (goog.DEBUG && !COMPILED) {
@@ -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
@@ -1565,6 +1609,13 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1565
1609
 
1566
1610
 
1567
1611
 
1612
+ /**
1613
+ * List of repeated fields within this message type.
1614
+ * @private {!Array<number>}
1615
+ * @const
1616
+ */
1617
+ proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
1618
+
1568
1619
 
1569
1620
 
1570
1621
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1598,7 +1649,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
1598
1649
  var f, obj = {
1599
1650
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1600
1651
  contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1601
- inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1652
+ inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1653
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1602
1654
  };
1603
1655
 
1604
1656
  if (includeInstance) {
@@ -1647,6 +1699,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
1647
1699
  var value = /** @type {boolean} */ (reader.readBool());
1648
1700
  msg.setInviteOnly(value);
1649
1701
  break;
1702
+ case 4:
1703
+ var value = /** @type {string} */ (reader.readString());
1704
+ msg.addQuoteIds(value);
1705
+ break;
1650
1706
  default:
1651
1707
  reader.skipField();
1652
1708
  break;
@@ -1697,6 +1753,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
1697
1753
  f
1698
1754
  );
1699
1755
  }
1756
+ f = message.getQuoteIdsList();
1757
+ if (f.length > 0) {
1758
+ writer.writeRepeatedString(
1759
+ 4,
1760
+ f
1761
+ );
1762
+ }
1700
1763
  };
1701
1764
 
1702
1765
 
@@ -1754,6 +1817,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.setInviteOnly = function(value) {
1754
1817
  };
1755
1818
 
1756
1819
 
1820
+ /**
1821
+ * repeated string quote_ids = 4;
1822
+ * @return {!Array<string>}
1823
+ */
1824
+ proto.wechaty.puppet.RoomAddRequest.prototype.getQuoteIdsList = function() {
1825
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1826
+ };
1827
+
1828
+
1829
+ /**
1830
+ * @param {!Array<string>} value
1831
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1832
+ */
1833
+ proto.wechaty.puppet.RoomAddRequest.prototype.setQuoteIdsList = function(value) {
1834
+ return jspb.Message.setField(this, 4, value || []);
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * @param {string} value
1840
+ * @param {number=} opt_index
1841
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1842
+ */
1843
+ proto.wechaty.puppet.RoomAddRequest.prototype.addQuoteIds = function(value, opt_index) {
1844
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Clears the list making it empty but non-null.
1850
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1851
+ */
1852
+ proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
1853
+ return this.setQuoteIdsList([]);
1854
+ };
1855
+
1856
+
1757
1857
 
1758
1858
 
1759
1859
 
@@ -3652,6 +3752,326 @@ proto.wechaty.puppet.RoomQRCodeResponse.prototype.setQrcode = function(value) {
3652
3752
 
3653
3753
 
3654
3754
 
3755
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3756
+ /**
3757
+ * Creates an object representation of this proto.
3758
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3759
+ * Optional fields that are not set will be set to undefined.
3760
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3761
+ * For the list of reserved names please see:
3762
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3763
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3764
+ * JSPB instance for transitional soy proto support:
3765
+ * http://goto/soy-param-migration
3766
+ * @return {!Object}
3767
+ */
3768
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
3769
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.toObject(opt_includeInstance, this);
3770
+ };
3771
+
3772
+
3773
+ /**
3774
+ * Static version of the {@see toObject} method.
3775
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3776
+ * the JSPB instance for transitional soy proto support:
3777
+ * http://goto/soy-param-migration
3778
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} msg The msg instance to transform.
3779
+ * @return {!Object}
3780
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3781
+ */
3782
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.toObject = function(includeInstance, msg) {
3783
+ var f, obj = {
3784
+ url: jspb.Message.getFieldWithDefault(msg, 1, "")
3785
+ };
3786
+
3787
+ if (includeInstance) {
3788
+ obj.$jspbMessageInstance = msg;
3789
+ }
3790
+ return obj;
3791
+ };
3792
+ }
3793
+
3794
+
3795
+ /**
3796
+ * Deserializes binary data (in protobuf wire format).
3797
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3798
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest}
3799
+ */
3800
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinary = function(bytes) {
3801
+ var reader = new jspb.BinaryReader(bytes);
3802
+ var msg = new proto.wechaty.puppet.RoomParseDynamicQRCodeRequest;
3803
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinaryFromReader(msg, reader);
3804
+ };
3805
+
3806
+
3807
+ /**
3808
+ * Deserializes binary data (in protobuf wire format) from the
3809
+ * given reader into the given message object.
3810
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} msg The message object to deserialize into.
3811
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3812
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest}
3813
+ */
3814
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
3815
+ while (reader.nextField()) {
3816
+ if (reader.isEndGroup()) {
3817
+ break;
3818
+ }
3819
+ var field = reader.getFieldNumber();
3820
+ switch (field) {
3821
+ case 1:
3822
+ var value = /** @type {string} */ (reader.readString());
3823
+ msg.setUrl(value);
3824
+ break;
3825
+ default:
3826
+ reader.skipField();
3827
+ break;
3828
+ }
3829
+ }
3830
+ return msg;
3831
+ };
3832
+
3833
+
3834
+ /**
3835
+ * Serializes the message to binary data (in protobuf wire format).
3836
+ * @return {!Uint8Array}
3837
+ */
3838
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.serializeBinary = function() {
3839
+ var writer = new jspb.BinaryWriter();
3840
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.serializeBinaryToWriter(this, writer);
3841
+ return writer.getResultBuffer();
3842
+ };
3843
+
3844
+
3845
+ /**
3846
+ * Serializes the given message to binary data (in protobuf wire
3847
+ * format), writing to the given BinaryWriter.
3848
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} message
3849
+ * @param {!jspb.BinaryWriter} writer
3850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3851
+ */
3852
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
3853
+ var f = undefined;
3854
+ f = message.getUrl();
3855
+ if (f.length > 0) {
3856
+ writer.writeString(
3857
+ 1,
3858
+ f
3859
+ );
3860
+ }
3861
+ };
3862
+
3863
+
3864
+ /**
3865
+ * optional string url = 1;
3866
+ * @return {string}
3867
+ */
3868
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.getUrl = function() {
3869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * @param {string} value
3875
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeRequest} returns this
3876
+ */
3877
+ proto.wechaty.puppet.RoomParseDynamicQRCodeRequest.prototype.setUrl = function(value) {
3878
+ return jspb.Message.setProto3StringField(this, 1, value);
3879
+ };
3880
+
3881
+
3882
+
3883
+
3884
+
3885
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3886
+ /**
3887
+ * Creates an object representation of this proto.
3888
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3889
+ * Optional fields that are not set will be set to undefined.
3890
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3891
+ * For the list of reserved names please see:
3892
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3893
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3894
+ * JSPB instance for transitional soy proto support:
3895
+ * http://goto/soy-param-migration
3896
+ * @return {!Object}
3897
+ */
3898
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
3899
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.toObject(opt_includeInstance, this);
3900
+ };
3901
+
3902
+
3903
+ /**
3904
+ * Static version of the {@see toObject} method.
3905
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3906
+ * the JSPB instance for transitional soy proto support:
3907
+ * http://goto/soy-param-migration
3908
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} msg The msg instance to transform.
3909
+ * @return {!Object}
3910
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3911
+ */
3912
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.toObject = function(includeInstance, msg) {
3913
+ var f, obj = {
3914
+ qrcode: jspb.Message.getFieldWithDefault(msg, 1, ""),
3915
+ qrcodeImageUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
3916
+ roomName: jspb.Message.getFieldWithDefault(msg, 3, "")
3917
+ };
3918
+
3919
+ if (includeInstance) {
3920
+ obj.$jspbMessageInstance = msg;
3921
+ }
3922
+ return obj;
3923
+ };
3924
+ }
3925
+
3926
+
3927
+ /**
3928
+ * Deserializes binary data (in protobuf wire format).
3929
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3930
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse}
3931
+ */
3932
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinary = function(bytes) {
3933
+ var reader = new jspb.BinaryReader(bytes);
3934
+ var msg = new proto.wechaty.puppet.RoomParseDynamicQRCodeResponse;
3935
+ return proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinaryFromReader(msg, reader);
3936
+ };
3937
+
3938
+
3939
+ /**
3940
+ * Deserializes binary data (in protobuf wire format) from the
3941
+ * given reader into the given message object.
3942
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} msg The message object to deserialize into.
3943
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3944
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse}
3945
+ */
3946
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
3947
+ while (reader.nextField()) {
3948
+ if (reader.isEndGroup()) {
3949
+ break;
3950
+ }
3951
+ var field = reader.getFieldNumber();
3952
+ switch (field) {
3953
+ case 1:
3954
+ var value = /** @type {string} */ (reader.readString());
3955
+ msg.setQrcode(value);
3956
+ break;
3957
+ case 2:
3958
+ var value = /** @type {string} */ (reader.readString());
3959
+ msg.setQrcodeImageUrl(value);
3960
+ break;
3961
+ case 3:
3962
+ var value = /** @type {string} */ (reader.readString());
3963
+ msg.setRoomName(value);
3964
+ break;
3965
+ default:
3966
+ reader.skipField();
3967
+ break;
3968
+ }
3969
+ }
3970
+ return msg;
3971
+ };
3972
+
3973
+
3974
+ /**
3975
+ * Serializes the message to binary data (in protobuf wire format).
3976
+ * @return {!Uint8Array}
3977
+ */
3978
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.serializeBinary = function() {
3979
+ var writer = new jspb.BinaryWriter();
3980
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.serializeBinaryToWriter(this, writer);
3981
+ return writer.getResultBuffer();
3982
+ };
3983
+
3984
+
3985
+ /**
3986
+ * Serializes the given message to binary data (in protobuf wire
3987
+ * format), writing to the given BinaryWriter.
3988
+ * @param {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} message
3989
+ * @param {!jspb.BinaryWriter} writer
3990
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3991
+ */
3992
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
3993
+ var f = undefined;
3994
+ f = message.getQrcode();
3995
+ if (f.length > 0) {
3996
+ writer.writeString(
3997
+ 1,
3998
+ f
3999
+ );
4000
+ }
4001
+ f = message.getQrcodeImageUrl();
4002
+ if (f.length > 0) {
4003
+ writer.writeString(
4004
+ 2,
4005
+ f
4006
+ );
4007
+ }
4008
+ f = message.getRoomName();
4009
+ if (f.length > 0) {
4010
+ writer.writeString(
4011
+ 3,
4012
+ f
4013
+ );
4014
+ }
4015
+ };
4016
+
4017
+
4018
+ /**
4019
+ * optional string qrcode = 1;
4020
+ * @return {string}
4021
+ */
4022
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getQrcode = function() {
4023
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4024
+ };
4025
+
4026
+
4027
+ /**
4028
+ * @param {string} value
4029
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
4030
+ */
4031
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setQrcode = function(value) {
4032
+ return jspb.Message.setProto3StringField(this, 1, value);
4033
+ };
4034
+
4035
+
4036
+ /**
4037
+ * optional string qrcode_image_url = 2;
4038
+ * @return {string}
4039
+ */
4040
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getQrcodeImageUrl = function() {
4041
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4042
+ };
4043
+
4044
+
4045
+ /**
4046
+ * @param {string} value
4047
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
4048
+ */
4049
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setQrcodeImageUrl = function(value) {
4050
+ return jspb.Message.setProto3StringField(this, 2, value);
4051
+ };
4052
+
4053
+
4054
+ /**
4055
+ * optional string room_name = 3;
4056
+ * @return {string}
4057
+ */
4058
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.getRoomName = function() {
4059
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4060
+ };
4061
+
4062
+
4063
+ /**
4064
+ * @param {string} value
4065
+ * @return {!proto.wechaty.puppet.RoomParseDynamicQRCodeResponse} returns this
4066
+ */
4067
+ proto.wechaty.puppet.RoomParseDynamicQRCodeResponse.prototype.setRoomName = function(value) {
4068
+ return jspb.Message.setProto3StringField(this, 3, value);
4069
+ };
4070
+
4071
+
4072
+
4073
+
4074
+
3655
4075
  if (jspb.Message.GENERATE_TO_OBJECT) {
3656
4076
  /**
3657
4077
  * Creates an object representation of this proto.
@@ -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.87
12
+ version: 1.0.90
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
@@ -1693,6 +1712,14 @@ paths:
1693
1712
  in: query
1694
1713
  required: false
1695
1714
  type: boolean
1715
+ - name: quoteIds
1716
+ description: 要附带的聊天消息 id 列表
1717
+ in: query
1718
+ required: false
1719
+ type: array
1720
+ items:
1721
+ type: string
1722
+ collectionFormat: multi
1696
1723
  tags:
1697
1724
  - Puppet
1698
1725
  /rooms/{id}/announcement:
@@ -1823,7 +1850,7 @@ paths:
1823
1850
  - PAYLOAD_TYPE_POST
1824
1851
  - PAYLOAD_TYPE_TAG
1825
1852
  - PAYLOAD_TYPE_TAG_GROUP
1826
- pattern: PAYLOADTYPEROOMMEMBER
1853
+ pattern: PAYLOAD_TYPE_ROOM_MEMBER
1827
1854
  tags:
1828
1855
  - Puppet
1829
1856
  /rooms/{id}/dirty/{type}:
@@ -1857,7 +1884,7 @@ paths:
1857
1884
  - PAYLOAD_TYPE_POST
1858
1885
  - PAYLOAD_TYPE_TAG
1859
1886
  - PAYLOAD_TYPE_TAG_GROUP
1860
- pattern: PAYLOADTYPEROOM
1887
+ pattern: PAYLOAD_TYPE_ROOM
1861
1888
  tags:
1862
1889
  - Puppet
1863
1890
  /rooms/{id}/member/{contactId}:
@@ -2101,6 +2128,26 @@ paths:
2101
2128
  type: string
2102
2129
  tags:
2103
2130
  - Puppet
2131
+ /rooms/{url}/parse-dynamic-qrcode:
2132
+ get:
2133
+ operationId: Puppet_RoomParseDynamicQRCode
2134
+ responses:
2135
+ '200':
2136
+ description: A successful response.
2137
+ schema:
2138
+ $ref: '#/definitions/puppetRoomParseDynamicQRCodeResponse'
2139
+ default:
2140
+ description: An unexpected error response.
2141
+ schema:
2142
+ $ref: '#/definitions/rpcStatus'
2143
+ parameters:
2144
+ - name: url
2145
+ description: 群活码链接
2146
+ in: path
2147
+ required: true
2148
+ type: string
2149
+ tags:
2150
+ - Puppet
2104
2151
  /start:
2105
2152
  put:
2106
2153
  summary: '*'
@@ -4028,6 +4075,13 @@ definitions:
4028
4075
  type: object
4029
4076
  puppetRoomDismissResponse:
4030
4077
  type: object
4078
+ puppetRoomInvitationAcceptByQRCodeResponse:
4079
+ type: object
4080
+ properties:
4081
+ roomId:
4082
+ type: string
4083
+ chatId:
4084
+ type: string
4031
4085
  puppetRoomInvitationAcceptResponse:
4032
4086
  type: object
4033
4087
  puppetRoomInvitationPayloadResponse:
@@ -4121,6 +4175,18 @@ definitions:
4121
4175
  $ref: '#/definitions/puppetRoomMemberJoinSceneType'
4122
4176
  puppetRoomOwnerTransferResponse:
4123
4177
  type: object
4178
+ puppetRoomParseDynamicQRCodeResponse:
4179
+ type: object
4180
+ properties:
4181
+ qrcode:
4182
+ type: string
4183
+ title: 二维码url
4184
+ qrcodeImageUrl:
4185
+ type: string
4186
+ title: 二维码图片url
4187
+ roomName:
4188
+ type: string
4189
+ title: 群名称
4124
4190
  puppetRoomPayloadResponse:
4125
4191
  type: object
4126
4192
  properties: