@juzi/wechaty-grpc 1.0.4 → 1.0.7

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 (70) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +36 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +275 -0
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +4 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +31 -1
  5. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +40 -0
  6. package/dist/cjs/out/wechaty/puppet/message_pb.js +304 -0
  7. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  8. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +31 -1
  9. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +4 -0
  10. package/dist/cjs/out/wechaty/puppet/room_pb.js +31 -1
  11. package/dist/cjs/out/wechaty/puppet.openapi.yaml +50 -1
  12. package/dist/cjs/out/wechaty/puppet.swagger.json +78 -1
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  14. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  17. package/dist/cjs/proto/wechaty/puppet/base.proto +7 -0
  18. package/dist/cjs/proto/wechaty/puppet/contact.proto +19 -18
  19. package/dist/cjs/proto/wechaty/puppet/message.proto +7 -0
  20. package/dist/cjs/proto/wechaty/puppet/room-member.proto +6 -5
  21. package/dist/cjs/proto/wechaty/puppet/room.proto +6 -5
  22. package/dist/cjs/proto/wechaty/puppet.proto +12 -0
  23. package/dist/cjs/src/package-json.js +1 -1
  24. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  25. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  26. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  27. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +36 -0
  28. package/dist/esm/out/wechaty/puppet/base_pb.js +275 -0
  29. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +4 -0
  30. package/dist/esm/out/wechaty/puppet/contact_pb.js +31 -1
  31. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +40 -0
  32. package/dist/esm/out/wechaty/puppet/message_pb.js +304 -0
  33. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  34. package/dist/esm/out/wechaty/puppet/room-member_pb.js +31 -1
  35. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +4 -0
  36. package/dist/esm/out/wechaty/puppet/room_pb.js +31 -1
  37. package/dist/esm/out/wechaty/puppet.openapi.yaml +50 -1
  38. package/dist/esm/out/wechaty/puppet.swagger.json +78 -1
  39. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  40. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  42. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  43. package/dist/esm/proto/wechaty/puppet/base.proto +7 -0
  44. package/dist/esm/proto/wechaty/puppet/contact.proto +19 -18
  45. package/dist/esm/proto/wechaty/puppet/message.proto +7 -0
  46. package/dist/esm/proto/wechaty/puppet/room-member.proto +6 -5
  47. package/dist/esm/proto/wechaty/puppet/room.proto +6 -5
  48. package/dist/esm/proto/wechaty/puppet.proto +12 -0
  49. package/dist/esm/src/package-json.js +1 -1
  50. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  51. package/dist/esm/tests/puppet-server-impl.js +10 -0
  52. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  53. package/out/wechaty/puppet/base_pb.d.ts +36 -0
  54. package/out/wechaty/puppet/base_pb.js +275 -0
  55. package/out/wechaty/puppet/contact_pb.d.ts +4 -0
  56. package/out/wechaty/puppet/contact_pb.js +31 -1
  57. package/out/wechaty/puppet/message_pb.d.ts +40 -0
  58. package/out/wechaty/puppet/message_pb.js +304 -0
  59. package/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  60. package/out/wechaty/puppet/room-member_pb.js +31 -1
  61. package/out/wechaty/puppet/room_pb.d.ts +4 -0
  62. package/out/wechaty/puppet/room_pb.js +31 -1
  63. package/out/wechaty/puppet.openapi.yaml +50 -1
  64. package/out/wechaty/puppet.swagger.json +78 -1
  65. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  66. package/out/wechaty/puppet_grpc_pb.js +66 -0
  67. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  68. package/out/wechaty/puppet_pb_service.js +80 -0
  69. package/package.json +1 -1
  70. 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
 
@@ -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
  */
@@ -43,6 +43,9 @@ export class RoomMemberPayloadResponse extends jspb.Message {
43
43
  getName(): string;
44
44
  setName(value: string): void;
45
45
 
46
+ getAdditionalInfo(): string;
47
+ setAdditionalInfo(value: string): void;
48
+
46
49
  serializeBinary(): Uint8Array;
47
50
  toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
48
51
  static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
@@ -60,6 +63,7 @@ export namespace RoomMemberPayloadResponse {
60
63
  inviterId: string,
61
64
  avatar: string,
62
65
  name: string,
66
+ additionalInfo: string,
63
67
  }
64
68
  }
65
69
 
@@ -299,7 +299,8 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject = function(includeInstan
299
299
  roomAlias: jspb.Message.getFieldWithDefault(msg, 2, ""),
300
300
  inviterId: jspb.Message.getFieldWithDefault(msg, 3, ""),
301
301
  avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
302
- name: jspb.Message.getFieldWithDefault(msg, 5, "")
302
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
303
+ additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, "")
303
304
  };
304
305
 
305
306
  if (includeInstance) {
@@ -356,6 +357,10 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader = fun
356
357
  var value = /** @type {string} */ (reader.readString());
357
358
  msg.setName(value);
358
359
  break;
360
+ case 6:
361
+ var value = /** @type {string} */ (reader.readString());
362
+ msg.setAdditionalInfo(value);
363
+ break;
359
364
  default:
360
365
  reader.skipField();
361
366
  break;
@@ -420,6 +425,13 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter = functio
420
425
  f
421
426
  );
422
427
  }
428
+ f = message.getAdditionalInfo();
429
+ if (f.length > 0) {
430
+ writer.writeString(
431
+ 6,
432
+ f
433
+ );
434
+ }
423
435
  };
424
436
 
425
437
 
@@ -513,6 +525,24 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setName = function(valu
513
525
  };
514
526
 
515
527
 
528
+ /**
529
+ * optional string additional_info = 6;
530
+ * @return {string}
531
+ */
532
+ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getAdditionalInfo = function() {
533
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {string} value
539
+ * @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
540
+ */
541
+ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setAdditionalInfo = function(value) {
542
+ return jspb.Message.setProto3StringField(this, 6, value);
543
+ };
544
+
545
+
516
546
 
517
547
 
518
548
 
@@ -88,6 +88,9 @@ export class RoomPayloadResponse extends jspb.Message {
88
88
  getHandle(): string;
89
89
  setHandle(value: string): void;
90
90
 
91
+ getAdditionalInfo(): string;
92
+ setAdditionalInfo(value: string): void;
93
+
91
94
  serializeBinary(): Uint8Array;
92
95
  toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
93
96
  static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
@@ -107,6 +110,7 @@ export namespace RoomPayloadResponse {
107
110
  adminIdsList: Array<string>,
108
111
  memberIdsList: Array<string>,
109
112
  handle: string,
113
+ additionalInfo: string,
110
114
  }
111
115
  }
112
116
 
@@ -889,7 +889,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
889
889
  ownerId: jspb.Message.getFieldWithDefault(msg, 4, ""),
890
890
  adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
891
891
  memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
892
- handle: jspb.Message.getFieldWithDefault(msg, 7, "")
892
+ handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
893
+ additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
893
894
  };
894
895
 
895
896
  if (includeInstance) {
@@ -954,6 +955,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
954
955
  var value = /** @type {string} */ (reader.readString());
955
956
  msg.setHandle(value);
956
957
  break;
958
+ case 8:
959
+ var value = /** @type {string} */ (reader.readString());
960
+ msg.setAdditionalInfo(value);
961
+ break;
957
962
  default:
958
963
  reader.skipField();
959
964
  break;
@@ -1032,6 +1037,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
1032
1037
  f
1033
1038
  );
1034
1039
  }
1040
+ f = message.getAdditionalInfo();
1041
+ if (f.length > 0) {
1042
+ writer.writeString(
1043
+ 8,
1044
+ f
1045
+ );
1046
+ }
1035
1047
  };
1036
1048
 
1037
1049
 
@@ -1199,6 +1211,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setHandle = function(value) {
1199
1211
  };
1200
1212
 
1201
1213
 
1214
+ /**
1215
+ * optional string additional_info = 8;
1216
+ * @return {string}
1217
+ */
1218
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.getAdditionalInfo = function() {
1219
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * @param {string} value
1225
+ * @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
1226
+ */
1227
+ proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(value) {
1228
+ return jspb.Message.setProto3StringField(this, 8, value);
1229
+ };
1230
+
1231
+
1202
1232
 
1203
1233
 
1204
1234
 
@@ -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.4
12
+ version: 1.0.7
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -598,6 +598,20 @@ paths:
598
598
  $ref: '#/definitions/puppetUrlLinkPayload'
599
599
  tags:
600
600
  - Puppet
601
+ /currentUser:
602
+ get:
603
+ operationId: Puppet_CurrentUser
604
+ responses:
605
+ '200':
606
+ description: A successful response.
607
+ schema:
608
+ $ref: '#/definitions/puppetCurrentUserResponse'
609
+ default:
610
+ description: An unexpected error response.
611
+ schema:
612
+ $ref: '#/definitions/rpcStatus'
613
+ tags:
614
+ - Puppet
601
615
  /ding:
602
616
  post:
603
617
  operationId: Puppet_Ding
@@ -976,6 +990,25 @@ paths:
976
990
  type: string
977
991
  tags:
978
992
  - Puppet
993
+ '/message/{id}/preview':
994
+ get:
995
+ operationId: Puppet_MessagePreview
996
+ responses:
997
+ '200':
998
+ description: A successful response.
999
+ schema:
1000
+ $ref: '#/definitions/puppetMessagePreviewResponse'
1001
+ default:
1002
+ description: An unexpected error response.
1003
+ schema:
1004
+ $ref: '#/definitions/rpcStatus'
1005
+ parameters:
1006
+ - name: id
1007
+ in: path
1008
+ required: true
1009
+ type: string
1010
+ tags:
1011
+ - Puppet
979
1012
  '/message/{id}/recall':
980
1013
  put:
981
1014
  operationId: Puppet_MessageRecall
@@ -1780,6 +1813,8 @@ definitions:
1780
1813
  type: array
1781
1814
  items:
1782
1815
  type: string
1816
+ additionalInfo:
1817
+ type: string
1783
1818
  puppetContactPhoneResponse:
1784
1819
  type: object
1785
1820
  properties:
@@ -1809,6 +1844,11 @@ definitions:
1809
1844
  - CONTACT_TYPE_OFFICIAL
1810
1845
  - CONTACT_TYPE_CORPORATION
1811
1846
  default: CONTACT_TYPE_UNSPECIFIED
1847
+ puppetCurrentUserResponse:
1848
+ type: object
1849
+ properties:
1850
+ userId:
1851
+ type: string
1812
1852
  puppetDingRequest:
1813
1853
  type: object
1814
1854
  properties:
@@ -2094,6 +2134,11 @@ definitions:
2094
2134
  format: date-time
2095
2135
  quoteId:
2096
2136
  type: string
2137
+ puppetMessagePreviewResponse:
2138
+ type: object
2139
+ properties:
2140
+ fileBox:
2141
+ type: string
2097
2142
  puppetMessageRecallResponse:
2098
2143
  type: object
2099
2144
  properties:
@@ -2373,6 +2418,8 @@ definitions:
2373
2418
  type: string
2374
2419
  name:
2375
2420
  type: string
2421
+ additionalInfo:
2422
+ type: string
2376
2423
  puppetRoomPayloadResponse:
2377
2424
  type: object
2378
2425
  properties:
@@ -2394,6 +2441,8 @@ definitions:
2394
2441
  type: string
2395
2442
  handle:
2396
2443
  type: string
2444
+ additionalInfo:
2445
+ type: string
2397
2446
  puppetRoomQRCodeResponse:
2398
2447
  type: object
2399
2448
  properties: