@juzi/wechaty-grpc 1.0.4 → 1.0.5
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/message_pb.d.ts +40 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +304 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +25 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +39 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +40 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +304 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +25 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +39 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +40 -0
- package/out/wechaty/puppet/message_pb.js +304 -0
- package/out/wechaty/puppet.openapi.yaml +25 -1
- package/out/wechaty/puppet.swagger.json +39 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -852,6 +852,46 @@ export namespace MessageSendChannelResponse {
|
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
+
export class MessagePreviewRequest extends jspb.Message {
|
|
856
|
+
getId(): string;
|
|
857
|
+
setId(value: string): void;
|
|
858
|
+
|
|
859
|
+
serializeBinary(): Uint8Array;
|
|
860
|
+
toObject(includeInstance?: boolean): MessagePreviewRequest.AsObject;
|
|
861
|
+
static toObject(includeInstance: boolean, msg: MessagePreviewRequest): MessagePreviewRequest.AsObject;
|
|
862
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
863
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
864
|
+
static serializeBinaryToWriter(message: MessagePreviewRequest, writer: jspb.BinaryWriter): void;
|
|
865
|
+
static deserializeBinary(bytes: Uint8Array): MessagePreviewRequest;
|
|
866
|
+
static deserializeBinaryFromReader(message: MessagePreviewRequest, reader: jspb.BinaryReader): MessagePreviewRequest;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export namespace MessagePreviewRequest {
|
|
870
|
+
export type AsObject = {
|
|
871
|
+
id: string,
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export class MessagePreviewResponse extends jspb.Message {
|
|
876
|
+
getFileBox(): string;
|
|
877
|
+
setFileBox(value: string): void;
|
|
878
|
+
|
|
879
|
+
serializeBinary(): Uint8Array;
|
|
880
|
+
toObject(includeInstance?: boolean): MessagePreviewResponse.AsObject;
|
|
881
|
+
static toObject(includeInstance: boolean, msg: MessagePreviewResponse): MessagePreviewResponse.AsObject;
|
|
882
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
883
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
884
|
+
static serializeBinaryToWriter(message: MessagePreviewResponse, writer: jspb.BinaryWriter): void;
|
|
885
|
+
static deserializeBinary(bytes: Uint8Array): MessagePreviewResponse;
|
|
886
|
+
static deserializeBinaryFromReader(message: MessagePreviewResponse, reader: jspb.BinaryReader): MessagePreviewResponse;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export namespace MessagePreviewResponse {
|
|
890
|
+
export type AsObject = {
|
|
891
|
+
fileBox: string,
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
855
895
|
export interface MessageTypeMap {
|
|
856
896
|
MESSAGE_TYPE_UNSPECIFIED: 0;
|
|
857
897
|
MESSAGE_TYPE_ATTACHMENT: 1;
|
|
@@ -45,6 +45,8 @@ goog.exportSymbol('proto.wechaty.puppet.MessageMiniProgramRequest', null, global
|
|
|
45
45
|
goog.exportSymbol('proto.wechaty.puppet.MessageMiniProgramResponse', null, global);
|
|
46
46
|
goog.exportSymbol('proto.wechaty.puppet.MessagePayloadRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.wechaty.puppet.MessagePayloadResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.wechaty.puppet.MessagePreviewRequest', null, global);
|
|
49
|
+
goog.exportSymbol('proto.wechaty.puppet.MessagePreviewResponse', null, global);
|
|
48
50
|
goog.exportSymbol('proto.wechaty.puppet.MessageRecallRequest', null, global);
|
|
49
51
|
goog.exportSymbol('proto.wechaty.puppet.MessageRecallResponse', null, global);
|
|
50
52
|
goog.exportSymbol('proto.wechaty.puppet.MessageSendChannelRequest', null, global);
|
|
@@ -778,6 +780,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
778
780
|
*/
|
|
779
781
|
proto.wechaty.puppet.MessageSendChannelResponse.displayName = 'proto.wechaty.puppet.MessageSendChannelResponse';
|
|
780
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Generated by JsPbCodeGenerator.
|
|
785
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
786
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
787
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
788
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
789
|
+
* valid.
|
|
790
|
+
* @extends {jspb.Message}
|
|
791
|
+
* @constructor
|
|
792
|
+
*/
|
|
793
|
+
proto.wechaty.puppet.MessagePreviewRequest = function(opt_data) {
|
|
794
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
795
|
+
};
|
|
796
|
+
goog.inherits(proto.wechaty.puppet.MessagePreviewRequest, jspb.Message);
|
|
797
|
+
if (goog.DEBUG && !COMPILED) {
|
|
798
|
+
/**
|
|
799
|
+
* @public
|
|
800
|
+
* @override
|
|
801
|
+
*/
|
|
802
|
+
proto.wechaty.puppet.MessagePreviewRequest.displayName = 'proto.wechaty.puppet.MessagePreviewRequest';
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Generated by JsPbCodeGenerator.
|
|
806
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
807
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
808
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
809
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
810
|
+
* valid.
|
|
811
|
+
* @extends {jspb.Message}
|
|
812
|
+
* @constructor
|
|
813
|
+
*/
|
|
814
|
+
proto.wechaty.puppet.MessagePreviewResponse = function(opt_data) {
|
|
815
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
816
|
+
};
|
|
817
|
+
goog.inherits(proto.wechaty.puppet.MessagePreviewResponse, jspb.Message);
|
|
818
|
+
if (goog.DEBUG && !COMPILED) {
|
|
819
|
+
/**
|
|
820
|
+
* @public
|
|
821
|
+
* @override
|
|
822
|
+
*/
|
|
823
|
+
proto.wechaty.puppet.MessagePreviewResponse.displayName = 'proto.wechaty.puppet.MessagePreviewResponse';
|
|
824
|
+
}
|
|
781
825
|
|
|
782
826
|
|
|
783
827
|
|
|
@@ -6531,6 +6575,266 @@ proto.wechaty.puppet.MessageSendChannelResponse.prototype.setId = function(value
|
|
|
6531
6575
|
};
|
|
6532
6576
|
|
|
6533
6577
|
|
|
6578
|
+
|
|
6579
|
+
|
|
6580
|
+
|
|
6581
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6582
|
+
/**
|
|
6583
|
+
* Creates an object representation of this proto.
|
|
6584
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6585
|
+
* Optional fields that are not set will be set to undefined.
|
|
6586
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6587
|
+
* For the list of reserved names please see:
|
|
6588
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6589
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6590
|
+
* JSPB instance for transitional soy proto support:
|
|
6591
|
+
* http://goto/soy-param-migration
|
|
6592
|
+
* @return {!Object}
|
|
6593
|
+
*/
|
|
6594
|
+
proto.wechaty.puppet.MessagePreviewRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6595
|
+
return proto.wechaty.puppet.MessagePreviewRequest.toObject(opt_includeInstance, this);
|
|
6596
|
+
};
|
|
6597
|
+
|
|
6598
|
+
|
|
6599
|
+
/**
|
|
6600
|
+
* Static version of the {@see toObject} method.
|
|
6601
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6602
|
+
* the JSPB instance for transitional soy proto support:
|
|
6603
|
+
* http://goto/soy-param-migration
|
|
6604
|
+
* @param {!proto.wechaty.puppet.MessagePreviewRequest} msg The msg instance to transform.
|
|
6605
|
+
* @return {!Object}
|
|
6606
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6607
|
+
*/
|
|
6608
|
+
proto.wechaty.puppet.MessagePreviewRequest.toObject = function(includeInstance, msg) {
|
|
6609
|
+
var f, obj = {
|
|
6610
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6611
|
+
};
|
|
6612
|
+
|
|
6613
|
+
if (includeInstance) {
|
|
6614
|
+
obj.$jspbMessageInstance = msg;
|
|
6615
|
+
}
|
|
6616
|
+
return obj;
|
|
6617
|
+
};
|
|
6618
|
+
}
|
|
6619
|
+
|
|
6620
|
+
|
|
6621
|
+
/**
|
|
6622
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6623
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6624
|
+
* @return {!proto.wechaty.puppet.MessagePreviewRequest}
|
|
6625
|
+
*/
|
|
6626
|
+
proto.wechaty.puppet.MessagePreviewRequest.deserializeBinary = function(bytes) {
|
|
6627
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6628
|
+
var msg = new proto.wechaty.puppet.MessagePreviewRequest;
|
|
6629
|
+
return proto.wechaty.puppet.MessagePreviewRequest.deserializeBinaryFromReader(msg, reader);
|
|
6630
|
+
};
|
|
6631
|
+
|
|
6632
|
+
|
|
6633
|
+
/**
|
|
6634
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6635
|
+
* given reader into the given message object.
|
|
6636
|
+
* @param {!proto.wechaty.puppet.MessagePreviewRequest} msg The message object to deserialize into.
|
|
6637
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6638
|
+
* @return {!proto.wechaty.puppet.MessagePreviewRequest}
|
|
6639
|
+
*/
|
|
6640
|
+
proto.wechaty.puppet.MessagePreviewRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6641
|
+
while (reader.nextField()) {
|
|
6642
|
+
if (reader.isEndGroup()) {
|
|
6643
|
+
break;
|
|
6644
|
+
}
|
|
6645
|
+
var field = reader.getFieldNumber();
|
|
6646
|
+
switch (field) {
|
|
6647
|
+
case 1:
|
|
6648
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6649
|
+
msg.setId(value);
|
|
6650
|
+
break;
|
|
6651
|
+
default:
|
|
6652
|
+
reader.skipField();
|
|
6653
|
+
break;
|
|
6654
|
+
}
|
|
6655
|
+
}
|
|
6656
|
+
return msg;
|
|
6657
|
+
};
|
|
6658
|
+
|
|
6659
|
+
|
|
6660
|
+
/**
|
|
6661
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6662
|
+
* @return {!Uint8Array}
|
|
6663
|
+
*/
|
|
6664
|
+
proto.wechaty.puppet.MessagePreviewRequest.prototype.serializeBinary = function() {
|
|
6665
|
+
var writer = new jspb.BinaryWriter();
|
|
6666
|
+
proto.wechaty.puppet.MessagePreviewRequest.serializeBinaryToWriter(this, writer);
|
|
6667
|
+
return writer.getResultBuffer();
|
|
6668
|
+
};
|
|
6669
|
+
|
|
6670
|
+
|
|
6671
|
+
/**
|
|
6672
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6673
|
+
* format), writing to the given BinaryWriter.
|
|
6674
|
+
* @param {!proto.wechaty.puppet.MessagePreviewRequest} message
|
|
6675
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6676
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6677
|
+
*/
|
|
6678
|
+
proto.wechaty.puppet.MessagePreviewRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6679
|
+
var f = undefined;
|
|
6680
|
+
f = message.getId();
|
|
6681
|
+
if (f.length > 0) {
|
|
6682
|
+
writer.writeString(
|
|
6683
|
+
1,
|
|
6684
|
+
f
|
|
6685
|
+
);
|
|
6686
|
+
}
|
|
6687
|
+
};
|
|
6688
|
+
|
|
6689
|
+
|
|
6690
|
+
/**
|
|
6691
|
+
* optional string id = 1;
|
|
6692
|
+
* @return {string}
|
|
6693
|
+
*/
|
|
6694
|
+
proto.wechaty.puppet.MessagePreviewRequest.prototype.getId = function() {
|
|
6695
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6696
|
+
};
|
|
6697
|
+
|
|
6698
|
+
|
|
6699
|
+
/**
|
|
6700
|
+
* @param {string} value
|
|
6701
|
+
* @return {!proto.wechaty.puppet.MessagePreviewRequest} returns this
|
|
6702
|
+
*/
|
|
6703
|
+
proto.wechaty.puppet.MessagePreviewRequest.prototype.setId = function(value) {
|
|
6704
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6705
|
+
};
|
|
6706
|
+
|
|
6707
|
+
|
|
6708
|
+
|
|
6709
|
+
|
|
6710
|
+
|
|
6711
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6712
|
+
/**
|
|
6713
|
+
* Creates an object representation of this proto.
|
|
6714
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6715
|
+
* Optional fields that are not set will be set to undefined.
|
|
6716
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6717
|
+
* For the list of reserved names please see:
|
|
6718
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6719
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6720
|
+
* JSPB instance for transitional soy proto support:
|
|
6721
|
+
* http://goto/soy-param-migration
|
|
6722
|
+
* @return {!Object}
|
|
6723
|
+
*/
|
|
6724
|
+
proto.wechaty.puppet.MessagePreviewResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6725
|
+
return proto.wechaty.puppet.MessagePreviewResponse.toObject(opt_includeInstance, this);
|
|
6726
|
+
};
|
|
6727
|
+
|
|
6728
|
+
|
|
6729
|
+
/**
|
|
6730
|
+
* Static version of the {@see toObject} method.
|
|
6731
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6732
|
+
* the JSPB instance for transitional soy proto support:
|
|
6733
|
+
* http://goto/soy-param-migration
|
|
6734
|
+
* @param {!proto.wechaty.puppet.MessagePreviewResponse} msg The msg instance to transform.
|
|
6735
|
+
* @return {!Object}
|
|
6736
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6737
|
+
*/
|
|
6738
|
+
proto.wechaty.puppet.MessagePreviewResponse.toObject = function(includeInstance, msg) {
|
|
6739
|
+
var f, obj = {
|
|
6740
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6743
|
+
if (includeInstance) {
|
|
6744
|
+
obj.$jspbMessageInstance = msg;
|
|
6745
|
+
}
|
|
6746
|
+
return obj;
|
|
6747
|
+
};
|
|
6748
|
+
}
|
|
6749
|
+
|
|
6750
|
+
|
|
6751
|
+
/**
|
|
6752
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6753
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6754
|
+
* @return {!proto.wechaty.puppet.MessagePreviewResponse}
|
|
6755
|
+
*/
|
|
6756
|
+
proto.wechaty.puppet.MessagePreviewResponse.deserializeBinary = function(bytes) {
|
|
6757
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6758
|
+
var msg = new proto.wechaty.puppet.MessagePreviewResponse;
|
|
6759
|
+
return proto.wechaty.puppet.MessagePreviewResponse.deserializeBinaryFromReader(msg, reader);
|
|
6760
|
+
};
|
|
6761
|
+
|
|
6762
|
+
|
|
6763
|
+
/**
|
|
6764
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6765
|
+
* given reader into the given message object.
|
|
6766
|
+
* @param {!proto.wechaty.puppet.MessagePreviewResponse} msg The message object to deserialize into.
|
|
6767
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6768
|
+
* @return {!proto.wechaty.puppet.MessagePreviewResponse}
|
|
6769
|
+
*/
|
|
6770
|
+
proto.wechaty.puppet.MessagePreviewResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6771
|
+
while (reader.nextField()) {
|
|
6772
|
+
if (reader.isEndGroup()) {
|
|
6773
|
+
break;
|
|
6774
|
+
}
|
|
6775
|
+
var field = reader.getFieldNumber();
|
|
6776
|
+
switch (field) {
|
|
6777
|
+
case 1:
|
|
6778
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6779
|
+
msg.setFileBox(value);
|
|
6780
|
+
break;
|
|
6781
|
+
default:
|
|
6782
|
+
reader.skipField();
|
|
6783
|
+
break;
|
|
6784
|
+
}
|
|
6785
|
+
}
|
|
6786
|
+
return msg;
|
|
6787
|
+
};
|
|
6788
|
+
|
|
6789
|
+
|
|
6790
|
+
/**
|
|
6791
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6792
|
+
* @return {!Uint8Array}
|
|
6793
|
+
*/
|
|
6794
|
+
proto.wechaty.puppet.MessagePreviewResponse.prototype.serializeBinary = function() {
|
|
6795
|
+
var writer = new jspb.BinaryWriter();
|
|
6796
|
+
proto.wechaty.puppet.MessagePreviewResponse.serializeBinaryToWriter(this, writer);
|
|
6797
|
+
return writer.getResultBuffer();
|
|
6798
|
+
};
|
|
6799
|
+
|
|
6800
|
+
|
|
6801
|
+
/**
|
|
6802
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6803
|
+
* format), writing to the given BinaryWriter.
|
|
6804
|
+
* @param {!proto.wechaty.puppet.MessagePreviewResponse} message
|
|
6805
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6806
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6807
|
+
*/
|
|
6808
|
+
proto.wechaty.puppet.MessagePreviewResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6809
|
+
var f = undefined;
|
|
6810
|
+
f = message.getFileBox();
|
|
6811
|
+
if (f.length > 0) {
|
|
6812
|
+
writer.writeString(
|
|
6813
|
+
1,
|
|
6814
|
+
f
|
|
6815
|
+
);
|
|
6816
|
+
}
|
|
6817
|
+
};
|
|
6818
|
+
|
|
6819
|
+
|
|
6820
|
+
/**
|
|
6821
|
+
* optional string file_box = 1;
|
|
6822
|
+
* @return {string}
|
|
6823
|
+
*/
|
|
6824
|
+
proto.wechaty.puppet.MessagePreviewResponse.prototype.getFileBox = function() {
|
|
6825
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6826
|
+
};
|
|
6827
|
+
|
|
6828
|
+
|
|
6829
|
+
/**
|
|
6830
|
+
* @param {string} value
|
|
6831
|
+
* @return {!proto.wechaty.puppet.MessagePreviewResponse} returns this
|
|
6832
|
+
*/
|
|
6833
|
+
proto.wechaty.puppet.MessagePreviewResponse.prototype.setFileBox = function(value) {
|
|
6834
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6835
|
+
};
|
|
6836
|
+
|
|
6837
|
+
|
|
6534
6838
|
/**
|
|
6535
6839
|
* @enum {number}
|
|
6536
6840
|
*/
|
|
@@ -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.5
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -976,6 +976,25 @@ paths:
|
|
|
976
976
|
type: string
|
|
977
977
|
tags:
|
|
978
978
|
- Puppet
|
|
979
|
+
'/message/{id}/preview':
|
|
980
|
+
get:
|
|
981
|
+
operationId: Puppet_MessagePreview
|
|
982
|
+
responses:
|
|
983
|
+
'200':
|
|
984
|
+
description: A successful response.
|
|
985
|
+
schema:
|
|
986
|
+
$ref: '#/definitions/puppetMessagePreviewResponse'
|
|
987
|
+
default:
|
|
988
|
+
description: An unexpected error response.
|
|
989
|
+
schema:
|
|
990
|
+
$ref: '#/definitions/rpcStatus'
|
|
991
|
+
parameters:
|
|
992
|
+
- name: id
|
|
993
|
+
in: path
|
|
994
|
+
required: true
|
|
995
|
+
type: string
|
|
996
|
+
tags:
|
|
997
|
+
- Puppet
|
|
979
998
|
'/message/{id}/recall':
|
|
980
999
|
put:
|
|
981
1000
|
operationId: Puppet_MessageRecall
|
|
@@ -2094,6 +2113,11 @@ definitions:
|
|
|
2094
2113
|
format: date-time
|
|
2095
2114
|
quoteId:
|
|
2096
2115
|
type: string
|
|
2116
|
+
puppetMessagePreviewResponse:
|
|
2117
|
+
type: object
|
|
2118
|
+
properties:
|
|
2119
|
+
fileBox:
|
|
2120
|
+
type: string
|
|
2097
2121
|
puppetMessageRecallResponse:
|
|
2098
2122
|
type: object
|
|
2099
2123
|
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.5",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1445,6 +1445,36 @@
|
|
|
1445
1445
|
]
|
|
1446
1446
|
}
|
|
1447
1447
|
},
|
|
1448
|
+
"/message/{id}/preview": {
|
|
1449
|
+
"get": {
|
|
1450
|
+
"operationId": "Puppet_MessagePreview",
|
|
1451
|
+
"responses": {
|
|
1452
|
+
"200": {
|
|
1453
|
+
"description": "A successful response.",
|
|
1454
|
+
"schema": {
|
|
1455
|
+
"$ref": "#/definitions/puppetMessagePreviewResponse"
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
"default": {
|
|
1459
|
+
"description": "An unexpected error response.",
|
|
1460
|
+
"schema": {
|
|
1461
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"parameters": [
|
|
1466
|
+
{
|
|
1467
|
+
"name": "id",
|
|
1468
|
+
"in": "path",
|
|
1469
|
+
"required": true,
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
}
|
|
1472
|
+
],
|
|
1473
|
+
"tags": [
|
|
1474
|
+
"Puppet"
|
|
1475
|
+
]
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1448
1478
|
"/message/{id}/recall": {
|
|
1449
1479
|
"put": {
|
|
1450
1480
|
"operationId": "Puppet_MessageRecall",
|
|
@@ -3056,6 +3086,14 @@
|
|
|
3056
3086
|
}
|
|
3057
3087
|
}
|
|
3058
3088
|
},
|
|
3089
|
+
"puppetMessagePreviewResponse": {
|
|
3090
|
+
"type": "object",
|
|
3091
|
+
"properties": {
|
|
3092
|
+
"fileBox": {
|
|
3093
|
+
"type": "string"
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3059
3097
|
"puppetMessageRecallResponse": {
|
|
3060
3098
|
"type": "object",
|
|
3061
3099
|
"properties": {
|
|
@@ -64,6 +64,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
64
64
|
messageSendUrl: IPuppetService_IMessageSendUrl;
|
|
65
65
|
messageSendLocation: IPuppetService_IMessageSendLocation;
|
|
66
66
|
messageSendChannel: IPuppetService_IMessageSendChannel;
|
|
67
|
+
messagePreview: IPuppetService_IMessagePreview;
|
|
67
68
|
roomPayload: IPuppetService_IRoomPayload;
|
|
68
69
|
roomList: IPuppetService_IRoomList;
|
|
69
70
|
roomAdd: IPuppetService_IRoomAdd;
|
|
@@ -473,6 +474,15 @@ interface IPuppetService_IMessageSendChannel extends grpc.MethodDefinition<wecha
|
|
|
473
474
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
474
475
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
475
476
|
}
|
|
477
|
+
interface IPuppetService_IMessagePreview extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessagePreviewRequest, wechaty_puppet_message_pb.MessagePreviewResponse> {
|
|
478
|
+
path: "/wechaty.Puppet/MessagePreview";
|
|
479
|
+
requestStream: false;
|
|
480
|
+
responseStream: false;
|
|
481
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessagePreviewRequest>;
|
|
482
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessagePreviewRequest>;
|
|
483
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
484
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
485
|
+
}
|
|
476
486
|
interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse> {
|
|
477
487
|
path: "/wechaty.Puppet/RoomPayload";
|
|
478
488
|
requestStream: false;
|
|
@@ -700,6 +710,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
700
710
|
messageSendUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendUrlRequest, wechaty_puppet_message_pb.MessageSendUrlResponse>;
|
|
701
711
|
messageSendLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendLocationRequest, wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
702
712
|
messageSendChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
713
|
+
messagePreview: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessagePreviewRequest, wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
703
714
|
roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
704
715
|
roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
|
|
705
716
|
roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
|
|
@@ -850,6 +861,9 @@ export interface IPuppetClient {
|
|
|
850
861
|
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
851
862
|
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
852
863
|
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
864
|
+
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
865
|
+
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
866
|
+
messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
853
867
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
854
868
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
855
869
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1041,6 +1055,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1041
1055
|
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1042
1056
|
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1043
1057
|
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1058
|
+
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1059
|
+
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1060
|
+
public messagePreview(request: wechaty_puppet_message_pb.MessagePreviewRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessagePreviewResponse) => void): grpc.ClientUnaryCall;
|
|
1044
1061
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1045
1062
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1046
1063
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -689,6 +689,28 @@ function deserialize_wechaty_puppet_MessagePayloadResponse(buffer_arg) {
|
|
|
689
689
|
return wechaty_puppet_message_pb.MessagePayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
+
function serialize_wechaty_puppet_MessagePreviewRequest(arg) {
|
|
693
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessagePreviewRequest)) {
|
|
694
|
+
throw new Error('Expected argument of type wechaty.puppet.MessagePreviewRequest');
|
|
695
|
+
}
|
|
696
|
+
return Buffer.from(arg.serializeBinary());
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
function deserialize_wechaty_puppet_MessagePreviewRequest(buffer_arg) {
|
|
700
|
+
return wechaty_puppet_message_pb.MessagePreviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
function serialize_wechaty_puppet_MessagePreviewResponse(arg) {
|
|
704
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessagePreviewResponse)) {
|
|
705
|
+
throw new Error('Expected argument of type wechaty.puppet.MessagePreviewResponse');
|
|
706
|
+
}
|
|
707
|
+
return Buffer.from(arg.serializeBinary());
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
function deserialize_wechaty_puppet_MessagePreviewResponse(buffer_arg) {
|
|
711
|
+
return wechaty_puppet_message_pb.MessagePreviewResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
712
|
+
}
|
|
713
|
+
|
|
692
714
|
function serialize_wechaty_puppet_MessageRecallRequest(arg) {
|
|
693
715
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageRecallRequest)) {
|
|
694
716
|
throw new Error('Expected argument of type wechaty.puppet.MessageRecallRequest');
|
|
@@ -1900,6 +1922,17 @@ messageFile: {
|
|
|
1900
1922
|
responseSerialize: serialize_wechaty_puppet_MessageSendChannelResponse,
|
|
1901
1923
|
responseDeserialize: deserialize_wechaty_puppet_MessageSendChannelResponse,
|
|
1902
1924
|
},
|
|
1925
|
+
messagePreview: {
|
|
1926
|
+
path: '/wechaty.Puppet/MessagePreview',
|
|
1927
|
+
requestStream: false,
|
|
1928
|
+
responseStream: false,
|
|
1929
|
+
requestType: wechaty_puppet_message_pb.MessagePreviewRequest,
|
|
1930
|
+
responseType: wechaty_puppet_message_pb.MessagePreviewResponse,
|
|
1931
|
+
requestSerialize: serialize_wechaty_puppet_MessagePreviewRequest,
|
|
1932
|
+
requestDeserialize: deserialize_wechaty_puppet_MessagePreviewRequest,
|
|
1933
|
+
responseSerialize: serialize_wechaty_puppet_MessagePreviewResponse,
|
|
1934
|
+
responseDeserialize: deserialize_wechaty_puppet_MessagePreviewResponse,
|
|
1935
|
+
},
|
|
1903
1936
|
// *
|
|
1904
1937
|
//
|
|
1905
1938
|
// Room
|
|
@@ -402,6 +402,15 @@ type PuppetMessageSendChannel = {
|
|
|
402
402
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendChannelResponse;
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
+
type PuppetMessagePreview = {
|
|
406
|
+
readonly methodName: string;
|
|
407
|
+
readonly service: typeof Puppet;
|
|
408
|
+
readonly requestStream: false;
|
|
409
|
+
readonly responseStream: false;
|
|
410
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessagePreviewRequest;
|
|
411
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessagePreviewResponse;
|
|
412
|
+
};
|
|
413
|
+
|
|
405
414
|
type PuppetRoomPayload = {
|
|
406
415
|
readonly methodName: string;
|
|
407
416
|
readonly service: typeof Puppet;
|
|
@@ -627,6 +636,7 @@ export class Puppet {
|
|
|
627
636
|
static readonly MessageSendUrl: PuppetMessageSendUrl;
|
|
628
637
|
static readonly MessageSendLocation: PuppetMessageSendLocation;
|
|
629
638
|
static readonly MessageSendChannel: PuppetMessageSendChannel;
|
|
639
|
+
static readonly MessagePreview: PuppetMessagePreview;
|
|
630
640
|
static readonly RoomPayload: PuppetRoomPayload;
|
|
631
641
|
static readonly RoomList: PuppetRoomList;
|
|
632
642
|
static readonly RoomAdd: PuppetRoomAdd;
|
|
@@ -1036,6 +1046,15 @@ export class PuppetClient {
|
|
|
1036
1046
|
requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
|
|
1037
1047
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
|
|
1038
1048
|
): UnaryResponse;
|
|
1049
|
+
messagePreview(
|
|
1050
|
+
requestMessage: wechaty_puppet_message_pb.MessagePreviewRequest,
|
|
1051
|
+
metadata: grpc.Metadata,
|
|
1052
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessagePreviewResponse|null) => void
|
|
1053
|
+
): UnaryResponse;
|
|
1054
|
+
messagePreview(
|
|
1055
|
+
requestMessage: wechaty_puppet_message_pb.MessagePreviewRequest,
|
|
1056
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessagePreviewResponse|null) => void
|
|
1057
|
+
): UnaryResponse;
|
|
1039
1058
|
roomPayload(
|
|
1040
1059
|
requestMessage: wechaty_puppet_room_pb.RoomPayloadRequest,
|
|
1041
1060
|
metadata: grpc.Metadata,
|
|
@@ -408,6 +408,15 @@ Puppet.MessageSendChannel = {
|
|
|
408
408
|
responseType: wechaty_puppet_message_pb.MessageSendChannelResponse
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
+
Puppet.MessagePreview = {
|
|
412
|
+
methodName: "MessagePreview",
|
|
413
|
+
service: Puppet,
|
|
414
|
+
requestStream: false,
|
|
415
|
+
responseStream: false,
|
|
416
|
+
requestType: wechaty_puppet_message_pb.MessagePreviewRequest,
|
|
417
|
+
responseType: wechaty_puppet_message_pb.MessagePreviewResponse
|
|
418
|
+
};
|
|
419
|
+
|
|
411
420
|
Puppet.RoomPayload = {
|
|
412
421
|
methodName: "RoomPayload",
|
|
413
422
|
service: Puppet,
|
|
@@ -1962,6 +1971,37 @@ PuppetClient.prototype.messageSendChannel = function messageSendChannel(requestM
|
|
|
1962
1971
|
};
|
|
1963
1972
|
};
|
|
1964
1973
|
|
|
1974
|
+
PuppetClient.prototype.messagePreview = function messagePreview(requestMessage, metadata, callback) {
|
|
1975
|
+
if (arguments.length === 2) {
|
|
1976
|
+
callback = arguments[1];
|
|
1977
|
+
}
|
|
1978
|
+
var client = grpc.unary(Puppet.MessagePreview, {
|
|
1979
|
+
request: requestMessage,
|
|
1980
|
+
host: this.serviceHost,
|
|
1981
|
+
metadata: metadata,
|
|
1982
|
+
transport: this.options.transport,
|
|
1983
|
+
debug: this.options.debug,
|
|
1984
|
+
onEnd: function (response) {
|
|
1985
|
+
if (callback) {
|
|
1986
|
+
if (response.status !== grpc.Code.OK) {
|
|
1987
|
+
var err = new Error(response.statusMessage);
|
|
1988
|
+
err.code = response.status;
|
|
1989
|
+
err.metadata = response.trailers;
|
|
1990
|
+
callback(err, null);
|
|
1991
|
+
} else {
|
|
1992
|
+
callback(null, response.message);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
return {
|
|
1998
|
+
cancel: function () {
|
|
1999
|
+
callback = null;
|
|
2000
|
+
client.close();
|
|
2001
|
+
}
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
|
|
1965
2005
|
PuppetClient.prototype.roomPayload = function roomPayload(requestMessage, metadata, callback) {
|
|
1966
2006
|
if (arguments.length === 2) {
|
|
1967
2007
|
callback = arguments[1];
|