@juzi/wechaty-grpc 1.0.2 → 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 +57 -8
- package/dist/cjs/out/wechaty/puppet/message_pb.js +364 -9
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +33 -4
- package/dist/cjs/out/wechaty/puppet.swagger.json +49 -5
- 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 +19 -8
- 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 +57 -8
- package/dist/esm/out/wechaty/puppet/message_pb.js +364 -9
- package/dist/esm/out/wechaty/puppet.openapi.yaml +33 -4
- package/dist/esm/out/wechaty/puppet.swagger.json +49 -5
- 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 +19 -8
- 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 +57 -8
- package/out/wechaty/puppet/message_pb.js +364 -9
- package/out/wechaty/puppet.openapi.yaml +33 -4
- package/out/wechaty/puppet.swagger.json +49 -5
- 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
|
@@ -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
|
|
|
@@ -956,7 +1000,8 @@ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance,
|
|
|
956
1000
|
roomId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
957
1001
|
listenerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
958
1002
|
mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
|
|
959
|
-
receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1003
|
+
receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1004
|
+
quoteId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
960
1005
|
};
|
|
961
1006
|
|
|
962
1007
|
if (includeInstance) {
|
|
@@ -1034,6 +1079,10 @@ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader = functi
|
|
|
1034
1079
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1035
1080
|
msg.setReceiveTime(value);
|
|
1036
1081
|
break;
|
|
1082
|
+
case 11:
|
|
1083
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1084
|
+
msg.setQuoteId(value);
|
|
1085
|
+
break;
|
|
1037
1086
|
default:
|
|
1038
1087
|
reader.skipField();
|
|
1039
1088
|
break;
|
|
@@ -1134,6 +1183,13 @@ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(m
|
|
|
1134
1183
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1135
1184
|
);
|
|
1136
1185
|
}
|
|
1186
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
1187
|
+
if (f != null) {
|
|
1188
|
+
writer.writeString(
|
|
1189
|
+
11,
|
|
1190
|
+
f
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1137
1193
|
};
|
|
1138
1194
|
|
|
1139
1195
|
|
|
@@ -1355,6 +1411,42 @@ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function(
|
|
|
1355
1411
|
};
|
|
1356
1412
|
|
|
1357
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* optional string quote_id = 11;
|
|
1416
|
+
* @return {string}
|
|
1417
|
+
*/
|
|
1418
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.getQuoteId = function() {
|
|
1419
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* @param {string} value
|
|
1425
|
+
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
|
|
1426
|
+
*/
|
|
1427
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.setQuoteId = function(value) {
|
|
1428
|
+
return jspb.Message.setField(this, 11, value);
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Clears the field making it undefined.
|
|
1434
|
+
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
|
|
1435
|
+
*/
|
|
1436
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.clearQuoteId = function() {
|
|
1437
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Returns whether this field is set.
|
|
1443
|
+
* @return {boolean}
|
|
1444
|
+
*/
|
|
1445
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.hasQuoteId = function() {
|
|
1446
|
+
return jspb.Message.getField(this, 11) != null;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
|
|
1358
1450
|
|
|
1359
1451
|
|
|
1360
1452
|
|
|
@@ -6483,6 +6575,266 @@ proto.wechaty.puppet.MessageSendChannelResponse.prototype.setId = function(value
|
|
|
6483
6575
|
};
|
|
6484
6576
|
|
|
6485
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
|
+
|
|
6486
6838
|
/**
|
|
6487
6839
|
* @enum {number}
|
|
6488
6840
|
*/
|
|
@@ -6491,18 +6843,21 @@ proto.wechaty.puppet.MessageType = {
|
|
|
6491
6843
|
MESSAGE_TYPE_ATTACHMENT: 1,
|
|
6492
6844
|
MESSAGE_TYPE_AUDIO: 2,
|
|
6493
6845
|
MESSAGE_TYPE_CONTACT: 3,
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6846
|
+
MESSAGE_TYPE_CHAT_HISTORY: 4,
|
|
6847
|
+
MESSAGE_TYPE_EMOTCION: 5,
|
|
6848
|
+
MESSAGE_TYPE_IMAGE: 6,
|
|
6849
|
+
MESSAGE_TYPE_TEXT: 7,
|
|
6850
|
+
MESSAGE_TYPE_LOCATION: 8,
|
|
6851
|
+
MESSAGE_TYPE_MINI_PROGRAM: 9,
|
|
6852
|
+
MESSAGE_TYPE_GROUP_NOTE: 10,
|
|
6501
6853
|
MESSAGE_TYPE_TRANSFER: 11,
|
|
6502
6854
|
MESSAGE_TYPE_RED_ENVELOPE: 12,
|
|
6503
6855
|
MESSAGE_TYPE_RECALLED: 13,
|
|
6504
6856
|
MESSAGE_TYPE_URL: 14,
|
|
6505
|
-
|
|
6857
|
+
MESSAGE_TYPE_VIDEO: 15,
|
|
6858
|
+
MESSAGE_TYPE_POST: 16,
|
|
6859
|
+
MESSAGE_TYPE_CHANNEL: 17,
|
|
6860
|
+
MESSAGE_TYPE_SYSTEM: 18
|
|
6506
6861
|
};
|
|
6507
6862
|
|
|
6508
6863
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
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
|
|
@@ -2092,6 +2111,13 @@ definitions:
|
|
|
2092
2111
|
receiveTime:
|
|
2093
2112
|
type: string
|
|
2094
2113
|
format: date-time
|
|
2114
|
+
quoteId:
|
|
2115
|
+
type: string
|
|
2116
|
+
puppetMessagePreviewResponse:
|
|
2117
|
+
type: object
|
|
2118
|
+
properties:
|
|
2119
|
+
fileBox:
|
|
2120
|
+
type: string
|
|
2095
2121
|
puppetMessageRecallResponse:
|
|
2096
2122
|
type: object
|
|
2097
2123
|
properties:
|
|
@@ -2209,18 +2235,21 @@ definitions:
|
|
|
2209
2235
|
- MESSAGE_TYPE_ATTACHMENT
|
|
2210
2236
|
- MESSAGE_TYPE_AUDIO
|
|
2211
2237
|
- MESSAGE_TYPE_CONTACT
|
|
2212
|
-
-
|
|
2238
|
+
- MESSAGE_TYPE_CHAT_HISTORY
|
|
2239
|
+
- MESSAGE_TYPE_EMOTCION
|
|
2213
2240
|
- MESSAGE_TYPE_IMAGE
|
|
2214
2241
|
- MESSAGE_TYPE_TEXT
|
|
2215
|
-
- MESSAGE_TYPE_VIDEO
|
|
2216
|
-
- MESSAGE_TYPE_CHAT_HISTORY
|
|
2217
2242
|
- MESSAGE_TYPE_LOCATION
|
|
2218
2243
|
- MESSAGE_TYPE_MINI_PROGRAM
|
|
2244
|
+
- MESSAGE_TYPE_GROUP_NOTE
|
|
2219
2245
|
- MESSAGE_TYPE_TRANSFER
|
|
2220
2246
|
- MESSAGE_TYPE_RED_ENVELOPE
|
|
2221
2247
|
- MESSAGE_TYPE_RECALLED
|
|
2222
2248
|
- MESSAGE_TYPE_URL
|
|
2249
|
+
- MESSAGE_TYPE_VIDEO
|
|
2250
|
+
- MESSAGE_TYPE_POST
|
|
2223
2251
|
- MESSAGE_TYPE_CHANNEL
|
|
2252
|
+
- MESSAGE_TYPE_SYSTEM
|
|
2224
2253
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
2225
2254
|
puppetMessageUrlResponse:
|
|
2226
2255
|
type: object
|
|
@@ -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",
|
|
@@ -3050,6 +3080,17 @@
|
|
|
3050
3080
|
"receiveTime": {
|
|
3051
3081
|
"type": "string",
|
|
3052
3082
|
"format": "date-time"
|
|
3083
|
+
},
|
|
3084
|
+
"quoteId": {
|
|
3085
|
+
"type": "string"
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
},
|
|
3089
|
+
"puppetMessagePreviewResponse": {
|
|
3090
|
+
"type": "object",
|
|
3091
|
+
"properties": {
|
|
3092
|
+
"fileBox": {
|
|
3093
|
+
"type": "string"
|
|
3053
3094
|
}
|
|
3054
3095
|
}
|
|
3055
3096
|
},
|
|
@@ -3180,18 +3221,21 @@
|
|
|
3180
3221
|
"MESSAGE_TYPE_ATTACHMENT",
|
|
3181
3222
|
"MESSAGE_TYPE_AUDIO",
|
|
3182
3223
|
"MESSAGE_TYPE_CONTACT",
|
|
3183
|
-
"
|
|
3224
|
+
"MESSAGE_TYPE_CHAT_HISTORY",
|
|
3225
|
+
"MESSAGE_TYPE_EMOTCION",
|
|
3184
3226
|
"MESSAGE_TYPE_IMAGE",
|
|
3185
3227
|
"MESSAGE_TYPE_TEXT",
|
|
3186
|
-
"MESSAGE_TYPE_VIDEO",
|
|
3187
|
-
"MESSAGE_TYPE_CHAT_HISTORY",
|
|
3188
3228
|
"MESSAGE_TYPE_LOCATION",
|
|
3189
3229
|
"MESSAGE_TYPE_MINI_PROGRAM",
|
|
3230
|
+
"MESSAGE_TYPE_GROUP_NOTE",
|
|
3190
3231
|
"MESSAGE_TYPE_TRANSFER",
|
|
3191
3232
|
"MESSAGE_TYPE_RED_ENVELOPE",
|
|
3192
3233
|
"MESSAGE_TYPE_RECALLED",
|
|
3193
3234
|
"MESSAGE_TYPE_URL",
|
|
3194
|
-
"
|
|
3235
|
+
"MESSAGE_TYPE_VIDEO",
|
|
3236
|
+
"MESSAGE_TYPE_POST",
|
|
3237
|
+
"MESSAGE_TYPE_CHANNEL",
|
|
3238
|
+
"MESSAGE_TYPE_SYSTEM"
|
|
3195
3239
|
],
|
|
3196
3240
|
"default": "MESSAGE_TYPE_UNSPECIFIED"
|
|
3197
3241
|
},
|
|
@@ -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
|