@juzi/wechaty-grpc 1.0.87 → 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.
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +48 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +364 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +64 -6
- package/dist/cjs/out/wechaty/puppet.swagger.json +95 -6
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +9 -0
- package/dist/cjs/proto/wechaty/puppet.proto +11 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +48 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +364 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +64 -6
- package/dist/esm/out/wechaty/puppet.swagger.json +95 -6
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +9 -0
- package/dist/esm/proto/wechaty/puppet.proto +11 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/out/wechaty/puppet/room_pb.d.ts +48 -0
- package/out/wechaty/puppet/room_pb.js +364 -0
- package/out/wechaty/puppet.openapi.yaml +64 -6
- package/out/wechaty/puppet.swagger.json +95 -6
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- 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.
|
|
@@ -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.
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1879
|
+
pattern: PAYLOAD_TYPE_ROOM
|
|
1861
1880
|
tags:
|
|
1862
1881
|
- Puppet
|
|
1863
1882
|
/rooms/{id}/member/{contactId}:
|
|
@@ -2101,6 +2120,26 @@ paths:
|
|
|
2101
2120
|
type: string
|
|
2102
2121
|
tags:
|
|
2103
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
|
|
2104
2143
|
/start:
|
|
2105
2144
|
put:
|
|
2106
2145
|
summary: '*'
|
|
@@ -4028,6 +4067,13 @@ definitions:
|
|
|
4028
4067
|
type: object
|
|
4029
4068
|
puppetRoomDismissResponse:
|
|
4030
4069
|
type: object
|
|
4070
|
+
puppetRoomInvitationAcceptByQRCodeResponse:
|
|
4071
|
+
type: object
|
|
4072
|
+
properties:
|
|
4073
|
+
roomId:
|
|
4074
|
+
type: string
|
|
4075
|
+
chatId:
|
|
4076
|
+
type: string
|
|
4031
4077
|
puppetRoomInvitationAcceptResponse:
|
|
4032
4078
|
type: object
|
|
4033
4079
|
puppetRoomInvitationPayloadResponse:
|
|
@@ -4121,6 +4167,18 @@ definitions:
|
|
|
4121
4167
|
$ref: '#/definitions/puppetRoomMemberJoinSceneType'
|
|
4122
4168
|
puppetRoomOwnerTransferResponse:
|
|
4123
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: 群名称
|
|
4124
4182
|
puppetRoomPayloadResponse:
|
|
4125
4183
|
type: object
|
|
4126
4184
|
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.
|
|
6
|
+
"version": "1.0.89",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
"PAYLOAD_TYPE_TAG",
|
|
629
629
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
630
630
|
],
|
|
631
|
-
"pattern": "
|
|
631
|
+
"pattern": "PAYLOAD_TYPE_CONTACT"
|
|
632
632
|
}
|
|
633
633
|
],
|
|
634
634
|
"tags": [
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
"PAYLOAD_TYPE_TAG",
|
|
1458
1458
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1459
1459
|
],
|
|
1460
|
-
"pattern": "
|
|
1460
|
+
"pattern": "PAYLOAD_TYPE_FRIENDSHIP"
|
|
1461
1461
|
}
|
|
1462
1462
|
],
|
|
1463
1463
|
"tags": [
|
|
@@ -1761,7 +1761,7 @@
|
|
|
1761
1761
|
"PAYLOAD_TYPE_TAG",
|
|
1762
1762
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1763
1763
|
],
|
|
1764
|
-
"pattern": "
|
|
1764
|
+
"pattern": "PAYLOAD_TYPE_MESSAGE"
|
|
1765
1765
|
}
|
|
1766
1766
|
],
|
|
1767
1767
|
"tags": [
|
|
@@ -2309,6 +2309,36 @@
|
|
|
2309
2309
|
]
|
|
2310
2310
|
}
|
|
2311
2311
|
},
|
|
2312
|
+
"/room-invitations/{qrcode}/accept-by-qrcode": {
|
|
2313
|
+
"put": {
|
|
2314
|
+
"operationId": "Puppet_RoomInvitationAcceptByQRCode",
|
|
2315
|
+
"responses": {
|
|
2316
|
+
"200": {
|
|
2317
|
+
"description": "A successful response.",
|
|
2318
|
+
"schema": {
|
|
2319
|
+
"$ref": "#/definitions/puppetRoomInvitationAcceptByQRCodeResponse"
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
"default": {
|
|
2323
|
+
"description": "An unexpected error response.",
|
|
2324
|
+
"schema": {
|
|
2325
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"parameters": [
|
|
2330
|
+
{
|
|
2331
|
+
"name": "qrcode",
|
|
2332
|
+
"in": "path",
|
|
2333
|
+
"required": true,
|
|
2334
|
+
"type": "string"
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
"tags": [
|
|
2338
|
+
"Puppet"
|
|
2339
|
+
]
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2312
2342
|
"/rooms": {
|
|
2313
2343
|
"get": {
|
|
2314
2344
|
"operationId": "Puppet_RoomList",
|
|
@@ -2726,7 +2756,7 @@
|
|
|
2726
2756
|
"PAYLOAD_TYPE_TAG",
|
|
2727
2757
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2728
2758
|
],
|
|
2729
|
-
"pattern": "
|
|
2759
|
+
"pattern": "PAYLOAD_TYPE_ROOM_MEMBER"
|
|
2730
2760
|
}
|
|
2731
2761
|
],
|
|
2732
2762
|
"tags": [
|
|
@@ -2774,7 +2804,7 @@
|
|
|
2774
2804
|
"PAYLOAD_TYPE_TAG",
|
|
2775
2805
|
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2776
2806
|
],
|
|
2777
|
-
"pattern": "
|
|
2807
|
+
"pattern": "PAYLOAD_TYPE_ROOM"
|
|
2778
2808
|
}
|
|
2779
2809
|
],
|
|
2780
2810
|
"tags": [
|
|
@@ -3144,6 +3174,37 @@
|
|
|
3144
3174
|
]
|
|
3145
3175
|
}
|
|
3146
3176
|
},
|
|
3177
|
+
"/rooms/{url}/parse-dynamic-qrcode": {
|
|
3178
|
+
"get": {
|
|
3179
|
+
"operationId": "Puppet_RoomParseDynamicQRCode",
|
|
3180
|
+
"responses": {
|
|
3181
|
+
"200": {
|
|
3182
|
+
"description": "A successful response.",
|
|
3183
|
+
"schema": {
|
|
3184
|
+
"$ref": "#/definitions/puppetRoomParseDynamicQRCodeResponse"
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
"default": {
|
|
3188
|
+
"description": "An unexpected error response.",
|
|
3189
|
+
"schema": {
|
|
3190
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
},
|
|
3194
|
+
"parameters": [
|
|
3195
|
+
{
|
|
3196
|
+
"name": "url",
|
|
3197
|
+
"description": "群活码链接",
|
|
3198
|
+
"in": "path",
|
|
3199
|
+
"required": true,
|
|
3200
|
+
"type": "string"
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
"tags": [
|
|
3204
|
+
"Puppet"
|
|
3205
|
+
]
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3147
3208
|
"/start": {
|
|
3148
3209
|
"put": {
|
|
3149
3210
|
"summary": "*",
|
|
@@ -5722,6 +5783,17 @@
|
|
|
5722
5783
|
"puppetRoomDismissResponse": {
|
|
5723
5784
|
"type": "object"
|
|
5724
5785
|
},
|
|
5786
|
+
"puppetRoomInvitationAcceptByQRCodeResponse": {
|
|
5787
|
+
"type": "object",
|
|
5788
|
+
"properties": {
|
|
5789
|
+
"roomId": {
|
|
5790
|
+
"type": "string"
|
|
5791
|
+
},
|
|
5792
|
+
"chatId": {
|
|
5793
|
+
"type": "string"
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5725
5797
|
"puppetRoomInvitationAcceptResponse": {
|
|
5726
5798
|
"type": "object"
|
|
5727
5799
|
},
|
|
@@ -5847,6 +5919,23 @@
|
|
|
5847
5919
|
"puppetRoomOwnerTransferResponse": {
|
|
5848
5920
|
"type": "object"
|
|
5849
5921
|
},
|
|
5922
|
+
"puppetRoomParseDynamicQRCodeResponse": {
|
|
5923
|
+
"type": "object",
|
|
5924
|
+
"properties": {
|
|
5925
|
+
"qrcode": {
|
|
5926
|
+
"type": "string",
|
|
5927
|
+
"title": "二维码url"
|
|
5928
|
+
},
|
|
5929
|
+
"qrcodeImageUrl": {
|
|
5930
|
+
"type": "string",
|
|
5931
|
+
"title": "二维码图片url"
|
|
5932
|
+
},
|
|
5933
|
+
"roomName": {
|
|
5934
|
+
"type": "string",
|
|
5935
|
+
"title": "群名称"
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
},
|
|
5850
5939
|
"puppetRoomPayloadResponse": {
|
|
5851
5940
|
"type": "object",
|
|
5852
5941
|
"properties": {
|