@juzi/wechaty-grpc 1.0.67 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  5. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +839 -0
  6. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +49 -0
  9. package/dist/cjs/out/wechaty/puppet/message_pb.js +394 -2
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +102 -3
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +138 -3
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  16. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +42 -0
  17. package/dist/cjs/proto/wechaty/puppet/message.proto +11 -1
  18. package/dist/cjs/proto/wechaty/puppet.proto +5 -0
  19. package/dist/cjs/src/package-json.js +1 -1
  20. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  22. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  23. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  24. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  25. package/dist/esm/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  26. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  27. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +839 -0
  28. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  29. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  30. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +49 -0
  31. package/dist/esm/out/wechaty/puppet/message_pb.js +394 -2
  32. package/dist/esm/out/wechaty/puppet.openapi.yaml +102 -3
  33. package/dist/esm/out/wechaty/puppet.swagger.json +138 -3
  34. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  36. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  37. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  38. package/dist/esm/proto/wechaty/puppet/chat-history.proto +42 -0
  39. package/dist/esm/proto/wechaty/puppet/message.proto +11 -1
  40. package/dist/esm/proto/wechaty/puppet.proto +5 -0
  41. package/dist/esm/src/package-json.js +1 -1
  42. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +5 -0
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  46. package/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  47. package/out/wechaty/puppet/chat-history_pb.js +839 -0
  48. package/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  49. package/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  50. package/out/wechaty/puppet/message_pb.d.ts +49 -0
  51. package/out/wechaty/puppet/message_pb.js +394 -2
  52. package/out/wechaty/puppet.openapi.yaml +102 -3
  53. package/out/wechaty/puppet.swagger.json +138 -3
  54. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  55. package/out/wechaty/puppet_grpc_pb.js +33 -0
  56. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  57. package/out/wechaty/puppet_pb_service.js +40 -0
  58. package/package.json +1 -1
  59. package/src/package-json.ts +1 -1
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/chat-history.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/chat-history.proto
3
+
@@ -11,6 +11,7 @@ import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
11
11
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
12
12
  import * as wechaty_puppet_post_pb from "../../wechaty/puppet/post_pb";
13
13
  import * as wechaty_puppet_call_pb from "../../wechaty/puppet/call_pb";
14
+ import * as wechaty_puppet_chat_history_pb from "../../wechaty/puppet/chat-history_pb";
14
15
 
15
16
  export class MessagePayloadRequest extends jspb.Message {
16
17
  getId(): string;
@@ -404,6 +405,48 @@ export namespace MessageCallRecordResponse {
404
405
  }
405
406
  }
406
407
 
408
+ export class MessageChatHistoryRequest extends jspb.Message {
409
+ getId(): string;
410
+ setId(value: string): void;
411
+
412
+ serializeBinary(): Uint8Array;
413
+ toObject(includeInstance?: boolean): MessageChatHistoryRequest.AsObject;
414
+ static toObject(includeInstance: boolean, msg: MessageChatHistoryRequest): MessageChatHistoryRequest.AsObject;
415
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
416
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
417
+ static serializeBinaryToWriter(message: MessageChatHistoryRequest, writer: jspb.BinaryWriter): void;
418
+ static deserializeBinary(bytes: Uint8Array): MessageChatHistoryRequest;
419
+ static deserializeBinaryFromReader(message: MessageChatHistoryRequest, reader: jspb.BinaryReader): MessageChatHistoryRequest;
420
+ }
421
+
422
+ export namespace MessageChatHistoryRequest {
423
+ export type AsObject = {
424
+ id: string,
425
+ }
426
+ }
427
+
428
+ export class MessageChatHistoryResponse extends jspb.Message {
429
+ clearChatHistoryListList(): void;
430
+ getChatHistoryListList(): Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload>;
431
+ setChatHistoryListList(value: Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload>): void;
432
+ addChatHistoryList(value?: wechaty_puppet_chat_history_pb.ChatHistoryPayload, index?: number): wechaty_puppet_chat_history_pb.ChatHistoryPayload;
433
+
434
+ serializeBinary(): Uint8Array;
435
+ toObject(includeInstance?: boolean): MessageChatHistoryResponse.AsObject;
436
+ static toObject(includeInstance: boolean, msg: MessageChatHistoryResponse): MessageChatHistoryResponse.AsObject;
437
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
438
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
439
+ static serializeBinaryToWriter(message: MessageChatHistoryResponse, writer: jspb.BinaryWriter): void;
440
+ static deserializeBinary(bytes: Uint8Array): MessageChatHistoryResponse;
441
+ static deserializeBinaryFromReader(message: MessageChatHistoryResponse, reader: jspb.BinaryReader): MessageChatHistoryResponse;
442
+ }
443
+
444
+ export namespace MessageChatHistoryResponse {
445
+ export type AsObject = {
446
+ chatHistoryListList: Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload.AsObject>,
447
+ }
448
+ }
449
+
407
450
  export class MessageSendContactRequest extends jspb.Message {
408
451
  getConversationId(): string;
409
452
  setConversationId(value: string): void;
@@ -725,6 +768,11 @@ export class MessageForwardRequest extends jspb.Message {
725
768
  getConversationId(): string;
726
769
  setConversationId(value: string): void;
727
770
 
771
+ clearMessageIdsList(): void;
772
+ getMessageIdsList(): Array<string>;
773
+ setMessageIdsList(value: Array<string>): void;
774
+ addMessageIds(value: string, index?: number): string;
775
+
728
776
  serializeBinary(): Uint8Array;
729
777
  toObject(includeInstance?: boolean): MessageForwardRequest.AsObject;
730
778
  static toObject(includeInstance: boolean, msg: MessageForwardRequest): MessageForwardRequest.AsObject;
@@ -739,6 +787,7 @@ export namespace MessageForwardRequest {
739
787
  export type AsObject = {
740
788
  messageId: string,
741
789
  conversationId: string,
790
+ messageIdsList: Array<string>,
742
791
  }
743
792
  }
744
793
 
@@ -33,6 +33,8 @@ var wechaty_puppet_post_pb = require('../../wechaty/puppet/post_pb.js');
33
33
  goog.object.extend(proto, wechaty_puppet_post_pb);
34
34
  var wechaty_puppet_call_pb = require('../../wechaty/puppet/call_pb.js');
35
35
  goog.object.extend(proto, wechaty_puppet_call_pb);
36
+ var wechaty_puppet_chat$history_pb = require('../../wechaty/puppet/chat-history_pb.js');
37
+ goog.object.extend(proto, wechaty_puppet_chat$history_pb);
36
38
  goog.exportSymbol('proto.wechaty.puppet.BroadcastStatus', null, global);
37
39
  goog.exportSymbol('proto.wechaty.puppet.BroadcastTarget', null, global);
38
40
  goog.exportSymbol('proto.wechaty.puppet.BroadcastTargetStatus', null, global);
@@ -46,6 +48,8 @@ goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordRequest', null, global)
46
48
  goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordResponse', null, global);
47
49
  goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
48
50
  goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
51
+ goog.exportSymbol('proto.wechaty.puppet.MessageChatHistoryRequest', null, global);
52
+ goog.exportSymbol('proto.wechaty.puppet.MessageChatHistoryResponse', null, global);
49
53
  goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
50
54
  goog.exportSymbol('proto.wechaty.puppet.MessageContactResponse', null, global);
51
55
  goog.exportSymbol('proto.wechaty.puppet.MessageFileRequest', null, global);
@@ -417,6 +421,48 @@ if (goog.DEBUG && !COMPILED) {
417
421
  */
418
422
  proto.wechaty.puppet.MessageCallRecordResponse.displayName = 'proto.wechaty.puppet.MessageCallRecordResponse';
419
423
  }
424
+ /**
425
+ * Generated by JsPbCodeGenerator.
426
+ * @param {Array=} opt_data Optional initial data array, typically from a
427
+ * server response, or constructed directly in Javascript. The array is used
428
+ * in place and becomes part of the constructed object. It is not cloned.
429
+ * If no data is provided, the constructed object will be empty, but still
430
+ * valid.
431
+ * @extends {jspb.Message}
432
+ * @constructor
433
+ */
434
+ proto.wechaty.puppet.MessageChatHistoryRequest = function(opt_data) {
435
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
436
+ };
437
+ goog.inherits(proto.wechaty.puppet.MessageChatHistoryRequest, jspb.Message);
438
+ if (goog.DEBUG && !COMPILED) {
439
+ /**
440
+ * @public
441
+ * @override
442
+ */
443
+ proto.wechaty.puppet.MessageChatHistoryRequest.displayName = 'proto.wechaty.puppet.MessageChatHistoryRequest';
444
+ }
445
+ /**
446
+ * Generated by JsPbCodeGenerator.
447
+ * @param {Array=} opt_data Optional initial data array, typically from a
448
+ * server response, or constructed directly in Javascript. The array is used
449
+ * in place and becomes part of the constructed object. It is not cloned.
450
+ * If no data is provided, the constructed object will be empty, but still
451
+ * valid.
452
+ * @extends {jspb.Message}
453
+ * @constructor
454
+ */
455
+ proto.wechaty.puppet.MessageChatHistoryResponse = function(opt_data) {
456
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessageChatHistoryResponse.repeatedFields_, null);
457
+ };
458
+ goog.inherits(proto.wechaty.puppet.MessageChatHistoryResponse, jspb.Message);
459
+ if (goog.DEBUG && !COMPILED) {
460
+ /**
461
+ * @public
462
+ * @override
463
+ */
464
+ proto.wechaty.puppet.MessageChatHistoryResponse.displayName = 'proto.wechaty.puppet.MessageChatHistoryResponse';
465
+ }
420
466
  /**
421
467
  * Generated by JsPbCodeGenerator.
422
468
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -680,7 +726,7 @@ if (goog.DEBUG && !COMPILED) {
680
726
  * @constructor
681
727
  */
682
728
  proto.wechaty.puppet.MessageForwardRequest = function(opt_data) {
683
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
729
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessageForwardRequest.repeatedFields_, null);
684
730
  };
685
731
  goog.inherits(proto.wechaty.puppet.MessageForwardRequest, jspb.Message);
686
732
  if (goog.DEBUG && !COMPILED) {
@@ -3696,6 +3742,296 @@ proto.wechaty.puppet.MessageCallRecordResponse.prototype.hasCallRecord = functio
3696
3742
 
3697
3743
 
3698
3744
 
3745
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3746
+ /**
3747
+ * Creates an object representation of this proto.
3748
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3749
+ * Optional fields that are not set will be set to undefined.
3750
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3751
+ * For the list of reserved names please see:
3752
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3753
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3754
+ * JSPB instance for transitional soy proto support:
3755
+ * http://goto/soy-param-migration
3756
+ * @return {!Object}
3757
+ */
3758
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.toObject = function(opt_includeInstance) {
3759
+ return proto.wechaty.puppet.MessageChatHistoryRequest.toObject(opt_includeInstance, this);
3760
+ };
3761
+
3762
+
3763
+ /**
3764
+ * Static version of the {@see toObject} method.
3765
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3766
+ * the JSPB instance for transitional soy proto support:
3767
+ * http://goto/soy-param-migration
3768
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} msg The msg instance to transform.
3769
+ * @return {!Object}
3770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3771
+ */
3772
+ proto.wechaty.puppet.MessageChatHistoryRequest.toObject = function(includeInstance, msg) {
3773
+ var f, obj = {
3774
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
3775
+ };
3776
+
3777
+ if (includeInstance) {
3778
+ obj.$jspbMessageInstance = msg;
3779
+ }
3780
+ return obj;
3781
+ };
3782
+ }
3783
+
3784
+
3785
+ /**
3786
+ * Deserializes binary data (in protobuf wire format).
3787
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3788
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest}
3789
+ */
3790
+ proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinary = function(bytes) {
3791
+ var reader = new jspb.BinaryReader(bytes);
3792
+ var msg = new proto.wechaty.puppet.MessageChatHistoryRequest;
3793
+ return proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinaryFromReader(msg, reader);
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * Deserializes binary data (in protobuf wire format) from the
3799
+ * given reader into the given message object.
3800
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} msg The message object to deserialize into.
3801
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3802
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest}
3803
+ */
3804
+ proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
3805
+ while (reader.nextField()) {
3806
+ if (reader.isEndGroup()) {
3807
+ break;
3808
+ }
3809
+ var field = reader.getFieldNumber();
3810
+ switch (field) {
3811
+ case 1:
3812
+ var value = /** @type {string} */ (reader.readString());
3813
+ msg.setId(value);
3814
+ break;
3815
+ default:
3816
+ reader.skipField();
3817
+ break;
3818
+ }
3819
+ }
3820
+ return msg;
3821
+ };
3822
+
3823
+
3824
+ /**
3825
+ * Serializes the message to binary data (in protobuf wire format).
3826
+ * @return {!Uint8Array}
3827
+ */
3828
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.serializeBinary = function() {
3829
+ var writer = new jspb.BinaryWriter();
3830
+ proto.wechaty.puppet.MessageChatHistoryRequest.serializeBinaryToWriter(this, writer);
3831
+ return writer.getResultBuffer();
3832
+ };
3833
+
3834
+
3835
+ /**
3836
+ * Serializes the given message to binary data (in protobuf wire
3837
+ * format), writing to the given BinaryWriter.
3838
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} message
3839
+ * @param {!jspb.BinaryWriter} writer
3840
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3841
+ */
3842
+ proto.wechaty.puppet.MessageChatHistoryRequest.serializeBinaryToWriter = function(message, writer) {
3843
+ var f = undefined;
3844
+ f = message.getId();
3845
+ if (f.length > 0) {
3846
+ writer.writeString(
3847
+ 1,
3848
+ f
3849
+ );
3850
+ }
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * optional string id = 1;
3856
+ * @return {string}
3857
+ */
3858
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.getId = function() {
3859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3860
+ };
3861
+
3862
+
3863
+ /**
3864
+ * @param {string} value
3865
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest} returns this
3866
+ */
3867
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.setId = function(value) {
3868
+ return jspb.Message.setProto3StringField(this, 1, value);
3869
+ };
3870
+
3871
+
3872
+
3873
+ /**
3874
+ * List of repeated fields within this message type.
3875
+ * @private {!Array<number>}
3876
+ * @const
3877
+ */
3878
+ proto.wechaty.puppet.MessageChatHistoryResponse.repeatedFields_ = [1];
3879
+
3880
+
3881
+
3882
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3883
+ /**
3884
+ * Creates an object representation of this proto.
3885
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3886
+ * Optional fields that are not set will be set to undefined.
3887
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3888
+ * For the list of reserved names please see:
3889
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3890
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3891
+ * JSPB instance for transitional soy proto support:
3892
+ * http://goto/soy-param-migration
3893
+ * @return {!Object}
3894
+ */
3895
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.toObject = function(opt_includeInstance) {
3896
+ return proto.wechaty.puppet.MessageChatHistoryResponse.toObject(opt_includeInstance, this);
3897
+ };
3898
+
3899
+
3900
+ /**
3901
+ * Static version of the {@see toObject} method.
3902
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3903
+ * the JSPB instance for transitional soy proto support:
3904
+ * http://goto/soy-param-migration
3905
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} msg The msg instance to transform.
3906
+ * @return {!Object}
3907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3908
+ */
3909
+ proto.wechaty.puppet.MessageChatHistoryResponse.toObject = function(includeInstance, msg) {
3910
+ var f, obj = {
3911
+ chatHistoryListList: jspb.Message.toObjectList(msg.getChatHistoryListList(),
3912
+ wechaty_puppet_chat$history_pb.ChatHistoryPayload.toObject, includeInstance)
3913
+ };
3914
+
3915
+ if (includeInstance) {
3916
+ obj.$jspbMessageInstance = msg;
3917
+ }
3918
+ return obj;
3919
+ };
3920
+ }
3921
+
3922
+
3923
+ /**
3924
+ * Deserializes binary data (in protobuf wire format).
3925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3926
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse}
3927
+ */
3928
+ proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinary = function(bytes) {
3929
+ var reader = new jspb.BinaryReader(bytes);
3930
+ var msg = new proto.wechaty.puppet.MessageChatHistoryResponse;
3931
+ return proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinaryFromReader(msg, reader);
3932
+ };
3933
+
3934
+
3935
+ /**
3936
+ * Deserializes binary data (in protobuf wire format) from the
3937
+ * given reader into the given message object.
3938
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} msg The message object to deserialize into.
3939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3940
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse}
3941
+ */
3942
+ proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
3943
+ while (reader.nextField()) {
3944
+ if (reader.isEndGroup()) {
3945
+ break;
3946
+ }
3947
+ var field = reader.getFieldNumber();
3948
+ switch (field) {
3949
+ case 1:
3950
+ var value = new wechaty_puppet_chat$history_pb.ChatHistoryPayload;
3951
+ reader.readMessage(value,wechaty_puppet_chat$history_pb.ChatHistoryPayload.deserializeBinaryFromReader);
3952
+ msg.addChatHistoryList(value);
3953
+ break;
3954
+ default:
3955
+ reader.skipField();
3956
+ break;
3957
+ }
3958
+ }
3959
+ return msg;
3960
+ };
3961
+
3962
+
3963
+ /**
3964
+ * Serializes the message to binary data (in protobuf wire format).
3965
+ * @return {!Uint8Array}
3966
+ */
3967
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.serializeBinary = function() {
3968
+ var writer = new jspb.BinaryWriter();
3969
+ proto.wechaty.puppet.MessageChatHistoryResponse.serializeBinaryToWriter(this, writer);
3970
+ return writer.getResultBuffer();
3971
+ };
3972
+
3973
+
3974
+ /**
3975
+ * Serializes the given message to binary data (in protobuf wire
3976
+ * format), writing to the given BinaryWriter.
3977
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} message
3978
+ * @param {!jspb.BinaryWriter} writer
3979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3980
+ */
3981
+ proto.wechaty.puppet.MessageChatHistoryResponse.serializeBinaryToWriter = function(message, writer) {
3982
+ var f = undefined;
3983
+ f = message.getChatHistoryListList();
3984
+ if (f.length > 0) {
3985
+ writer.writeRepeatedMessage(
3986
+ 1,
3987
+ f,
3988
+ wechaty_puppet_chat$history_pb.ChatHistoryPayload.serializeBinaryToWriter
3989
+ );
3990
+ }
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * repeated ChatHistoryPayload chat_history_list = 1;
3996
+ * @return {!Array<!proto.wechaty.puppet.ChatHistoryPayload>}
3997
+ */
3998
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.getChatHistoryListList = function() {
3999
+ return /** @type{!Array<!proto.wechaty.puppet.ChatHistoryPayload>} */ (
4000
+ jspb.Message.getRepeatedWrapperField(this, wechaty_puppet_chat$history_pb.ChatHistoryPayload, 1));
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * @param {!Array<!proto.wechaty.puppet.ChatHistoryPayload>} value
4006
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse} returns this
4007
+ */
4008
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.setChatHistoryListList = function(value) {
4009
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * @param {!proto.wechaty.puppet.ChatHistoryPayload=} opt_value
4015
+ * @param {number=} opt_index
4016
+ * @return {!proto.wechaty.puppet.ChatHistoryPayload}
4017
+ */
4018
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.addChatHistoryList = function(opt_value, opt_index) {
4019
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.ChatHistoryPayload, opt_index);
4020
+ };
4021
+
4022
+
4023
+ /**
4024
+ * Clears the list making it empty but non-null.
4025
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse} returns this
4026
+ */
4027
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.clearChatHistoryListList = function() {
4028
+ return this.setChatHistoryListList([]);
4029
+ };
4030
+
4031
+
4032
+
4033
+
4034
+
3699
4035
  if (jspb.Message.GENERATE_TO_OBJECT) {
3700
4036
  /**
3701
4037
  * Creates an object representation of this proto.
@@ -5865,6 +6201,13 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.setSuccess = function(value
5865
6201
 
5866
6202
 
5867
6203
 
6204
+ /**
6205
+ * List of repeated fields within this message type.
6206
+ * @private {!Array<number>}
6207
+ * @const
6208
+ */
6209
+ proto.wechaty.puppet.MessageForwardRequest.repeatedFields_ = [3];
6210
+
5868
6211
 
5869
6212
 
5870
6213
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5897,7 +6240,8 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.toObject = function(opt_inc
5897
6240
  proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance, msg) {
5898
6241
  var f, obj = {
5899
6242
  messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5900
- conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
6243
+ conversationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6244
+ messageIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5901
6245
  };
5902
6246
 
5903
6247
  if (includeInstance) {
@@ -5942,6 +6286,10 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
5942
6286
  var value = /** @type {string} */ (reader.readString());
5943
6287
  msg.setConversationId(value);
5944
6288
  break;
6289
+ case 3:
6290
+ var value = /** @type {string} */ (reader.readString());
6291
+ msg.addMessageIds(value);
6292
+ break;
5945
6293
  default:
5946
6294
  reader.skipField();
5947
6295
  break;
@@ -5985,6 +6333,13 @@ proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter = function(me
5985
6333
  f
5986
6334
  );
5987
6335
  }
6336
+ f = message.getMessageIdsList();
6337
+ if (f.length > 0) {
6338
+ writer.writeRepeatedString(
6339
+ 3,
6340
+ f
6341
+ );
6342
+ }
5988
6343
  };
5989
6344
 
5990
6345
 
@@ -6024,6 +6379,43 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.setConversationId = functio
6024
6379
  };
6025
6380
 
6026
6381
 
6382
+ /**
6383
+ * repeated string message_ids = 3;
6384
+ * @return {!Array<string>}
6385
+ */
6386
+ proto.wechaty.puppet.MessageForwardRequest.prototype.getMessageIdsList = function() {
6387
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
6388
+ };
6389
+
6390
+
6391
+ /**
6392
+ * @param {!Array<string>} value
6393
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6394
+ */
6395
+ proto.wechaty.puppet.MessageForwardRequest.prototype.setMessageIdsList = function(value) {
6396
+ return jspb.Message.setField(this, 3, value || []);
6397
+ };
6398
+
6399
+
6400
+ /**
6401
+ * @param {string} value
6402
+ * @param {number=} opt_index
6403
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6404
+ */
6405
+ proto.wechaty.puppet.MessageForwardRequest.prototype.addMessageIds = function(value, opt_index) {
6406
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
6407
+ };
6408
+
6409
+
6410
+ /**
6411
+ * Clears the list making it empty but non-null.
6412
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6413
+ */
6414
+ proto.wechaty.puppet.MessageForwardRequest.prototype.clearMessageIdsList = function() {
6415
+ return this.setMessageIdsList([]);
6416
+ };
6417
+
6418
+
6027
6419
 
6028
6420
 
6029
6421
 
@@ -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.67
12
+ version: 1.0.69
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -583,10 +583,21 @@ paths:
583
583
  required: true
584
584
  type: string
585
585
  - name: messageId
586
- description: 要转发的消息id
586
+ description: |-
587
+ @deprecated: use message_ids instead.
588
+
589
+ 要转发的消息id
587
590
  in: path
588
591
  required: true
589
592
  type: string
593
+ - name: messageIds
594
+ description: 要合并转发的消息id列表
595
+ in: query
596
+ required: false
597
+ type: array
598
+ items:
599
+ type: string
600
+ collectionFormat: multi
590
601
  tags:
591
602
  - Puppet
592
603
  /conversations/{conversationId}/location:
@@ -1152,6 +1163,25 @@ paths:
1152
1163
  type: string
1153
1164
  tags:
1154
1165
  - Puppet
1166
+ /message/{id}/chat-history:
1167
+ get:
1168
+ operationId: Puppet_MessageChatHistory
1169
+ responses:
1170
+ '200':
1171
+ description: A successful response.
1172
+ schema:
1173
+ $ref: '#/definitions/puppetMessageChatHistoryResponse'
1174
+ default:
1175
+ description: An unexpected error response.
1176
+ schema:
1177
+ $ref: '#/definitions/rpcStatus'
1178
+ parameters:
1179
+ - name: id
1180
+ in: path
1181
+ required: true
1182
+ type: string
1183
+ tags:
1184
+ - Puppet
1155
1185
  /message/{id}/contact:
1156
1186
  get:
1157
1187
  operationId: Puppet_MessageContact
@@ -1314,7 +1344,10 @@ paths:
1314
1344
  $ref: '#/definitions/rpcStatus'
1315
1345
  parameters:
1316
1346
  - name: messageId
1317
- description: 要转发的消息id
1347
+ description: |-
1348
+ @deprecated: use message_ids instead.
1349
+
1350
+ 要转发的消息id
1318
1351
  in: path
1319
1352
  required: true
1320
1353
  type: string
@@ -1323,6 +1356,14 @@ paths:
1323
1356
  in: path
1324
1357
  required: true
1325
1358
  type: string
1359
+ - name: messageIds
1360
+ description: 要合并转发的消息id列表
1361
+ in: query
1362
+ required: false
1363
+ type: array
1364
+ items:
1365
+ type: string
1366
+ collectionFormat: multi
1326
1367
  tags:
1327
1368
  - Puppet
1328
1369
  /moment/coverage:
@@ -2588,6 +2629,56 @@ definitions:
2588
2629
  title: 视频号直播专属
2589
2630
  objectNonceId:
2590
2631
  type: string
2632
+ puppetChatHistoryContent:
2633
+ type: object
2634
+ properties:
2635
+ type:
2636
+ $ref: '#/definitions/puppetChatHistoryContentType'
2637
+ text:
2638
+ type: string
2639
+ fileBox:
2640
+ type: string
2641
+ location:
2642
+ $ref: '#/definitions/puppetLocationPayload'
2643
+ urlLink:
2644
+ $ref: '#/definitions/puppetUrlLinkPayload'
2645
+ miniProgram:
2646
+ $ref: '#/definitions/puppetMiniProgramPayload'
2647
+ channel:
2648
+ $ref: '#/definitions/puppetChannelPayload'
2649
+ chatHistory:
2650
+ type: array
2651
+ items:
2652
+ type: object
2653
+ $ref: '#/definitions/puppetChatHistoryPayload'
2654
+ puppetChatHistoryContentType:
2655
+ type: string
2656
+ enum:
2657
+ - TEXT
2658
+ - FILE
2659
+ - LOCATION
2660
+ - URL
2661
+ - MINI_PROGRAM
2662
+ - CHANNEL
2663
+ - CHAT_HISTORY
2664
+ default: TEXT
2665
+ puppetChatHistoryPayload:
2666
+ type: object
2667
+ properties:
2668
+ type:
2669
+ type: integer
2670
+ format: int32
2671
+ avatar:
2672
+ type: string
2673
+ senderName:
2674
+ type: string
2675
+ corpName:
2676
+ type: string
2677
+ time:
2678
+ type: integer
2679
+ format: int32
2680
+ message:
2681
+ $ref: '#/definitions/puppetChatHistoryContent'
2591
2682
  puppetContactAliasResponse:
2592
2683
  type: object
2593
2684
  properties:
@@ -3007,6 +3098,14 @@ definitions:
3007
3098
  properties:
3008
3099
  channel:
3009
3100
  $ref: '#/definitions/puppetChannelPayload'
3101
+ puppetMessageChatHistoryResponse:
3102
+ type: object
3103
+ properties:
3104
+ chatHistoryList:
3105
+ type: array
3106
+ items:
3107
+ type: object
3108
+ $ref: '#/definitions/puppetChatHistoryPayload'
3010
3109
  puppetMessageContactResponse:
3011
3110
  type: object
3012
3111
  properties: