@juzi/wechaty-grpc 1.0.85 → 1.0.87

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +46 -0
  2. package/dist/cjs/out/wechaty/puppet/message_pb.js +355 -0
  3. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +8 -0
  4. package/dist/cjs/out/wechaty/puppet/room_pb.js +62 -2
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +48 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +72 -1
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  11. package/dist/cjs/proto/wechaty/puppet/message.proto +9 -0
  12. package/dist/cjs/proto/wechaty/puppet/room.proto +2 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +6 -1
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +46 -0
  19. package/dist/esm/out/wechaty/puppet/message_pb.js +355 -0
  20. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +8 -0
  21. package/dist/esm/out/wechaty/puppet/room_pb.js +62 -2
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +48 -1
  23. package/dist/esm/out/wechaty/puppet.swagger.json +72 -1
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  28. package/dist/esm/proto/wechaty/puppet/message.proto +9 -0
  29. package/dist/esm/proto/wechaty/puppet/room.proto +2 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +6 -1
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +5 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/message_pb.d.ts +46 -0
  36. package/out/wechaty/puppet/message_pb.js +355 -0
  37. package/out/wechaty/puppet/room_pb.d.ts +8 -0
  38. package/out/wechaty/puppet/room_pb.js +62 -2
  39. package/out/wechaty/puppet.openapi.yaml +48 -1
  40. package/out/wechaty/puppet.swagger.json +72 -1
  41. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  42. package/out/wechaty/puppet_grpc_pb.js +33 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  44. package/out/wechaty/puppet_pb_service.js +40 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -78,6 +78,8 @@ goog.exportSymbol('proto.wechaty.puppet.MessageSendLocationRequest', null, globa
78
78
  goog.exportSymbol('proto.wechaty.puppet.MessageSendLocationResponse', null, global);
79
79
  goog.exportSymbol('proto.wechaty.puppet.MessageSendMiniProgramRequest', null, global);
80
80
  goog.exportSymbol('proto.wechaty.puppet.MessageSendMiniProgramResponse', null, global);
81
+ goog.exportSymbol('proto.wechaty.puppet.MessageSendPostRequest', null, global);
82
+ goog.exportSymbol('proto.wechaty.puppet.MessageSendPostResponse', null, global);
81
83
  goog.exportSymbol('proto.wechaty.puppet.MessageSendTextRequest', null, global);
82
84
  goog.exportSymbol('proto.wechaty.puppet.MessageSendTextResponse', null, global);
83
85
  goog.exportSymbol('proto.wechaty.puppet.MessageSendUrlRequest', null, global);
@@ -718,6 +720,48 @@ if (goog.DEBUG && !COMPILED) {
718
720
  */
719
721
  proto.wechaty.puppet.MessageSendUrlResponse.displayName = 'proto.wechaty.puppet.MessageSendUrlResponse';
720
722
  }
723
+ /**
724
+ * Generated by JsPbCodeGenerator.
725
+ * @param {Array=} opt_data Optional initial data array, typically from a
726
+ * server response, or constructed directly in Javascript. The array is used
727
+ * in place and becomes part of the constructed object. It is not cloned.
728
+ * If no data is provided, the constructed object will be empty, but still
729
+ * valid.
730
+ * @extends {jspb.Message}
731
+ * @constructor
732
+ */
733
+ proto.wechaty.puppet.MessageSendPostRequest = function(opt_data) {
734
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
735
+ };
736
+ goog.inherits(proto.wechaty.puppet.MessageSendPostRequest, jspb.Message);
737
+ if (goog.DEBUG && !COMPILED) {
738
+ /**
739
+ * @public
740
+ * @override
741
+ */
742
+ proto.wechaty.puppet.MessageSendPostRequest.displayName = 'proto.wechaty.puppet.MessageSendPostRequest';
743
+ }
744
+ /**
745
+ * Generated by JsPbCodeGenerator.
746
+ * @param {Array=} opt_data Optional initial data array, typically from a
747
+ * server response, or constructed directly in Javascript. The array is used
748
+ * in place and becomes part of the constructed object. It is not cloned.
749
+ * If no data is provided, the constructed object will be empty, but still
750
+ * valid.
751
+ * @extends {jspb.Message}
752
+ * @constructor
753
+ */
754
+ proto.wechaty.puppet.MessageSendPostResponse = function(opt_data) {
755
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
756
+ };
757
+ goog.inherits(proto.wechaty.puppet.MessageSendPostResponse, jspb.Message);
758
+ if (goog.DEBUG && !COMPILED) {
759
+ /**
760
+ * @public
761
+ * @override
762
+ */
763
+ proto.wechaty.puppet.MessageSendPostResponse.displayName = 'proto.wechaty.puppet.MessageSendPostResponse';
764
+ }
721
765
  /**
722
766
  * Generated by JsPbCodeGenerator.
723
767
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6382,6 +6426,317 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.setId = function(value) {
6382
6426
 
6383
6427
 
6384
6428
 
6429
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6430
+ /**
6431
+ * Creates an object representation of this proto.
6432
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6433
+ * Optional fields that are not set will be set to undefined.
6434
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6435
+ * For the list of reserved names please see:
6436
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6437
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6438
+ * JSPB instance for transitional soy proto support:
6439
+ * http://goto/soy-param-migration
6440
+ * @return {!Object}
6441
+ */
6442
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.toObject = function(opt_includeInstance) {
6443
+ return proto.wechaty.puppet.MessageSendPostRequest.toObject(opt_includeInstance, this);
6444
+ };
6445
+
6446
+
6447
+ /**
6448
+ * Static version of the {@see toObject} method.
6449
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6450
+ * the JSPB instance for transitional soy proto support:
6451
+ * http://goto/soy-param-migration
6452
+ * @param {!proto.wechaty.puppet.MessageSendPostRequest} msg The msg instance to transform.
6453
+ * @return {!Object}
6454
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6455
+ */
6456
+ proto.wechaty.puppet.MessageSendPostRequest.toObject = function(includeInstance, msg) {
6457
+ var f, obj = {
6458
+ conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6459
+ content: (f = msg.getContent()) && wechaty_puppet_post_pb.PostPayloadClient.toObject(includeInstance, f)
6460
+ };
6461
+
6462
+ if (includeInstance) {
6463
+ obj.$jspbMessageInstance = msg;
6464
+ }
6465
+ return obj;
6466
+ };
6467
+ }
6468
+
6469
+
6470
+ /**
6471
+ * Deserializes binary data (in protobuf wire format).
6472
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6473
+ * @return {!proto.wechaty.puppet.MessageSendPostRequest}
6474
+ */
6475
+ proto.wechaty.puppet.MessageSendPostRequest.deserializeBinary = function(bytes) {
6476
+ var reader = new jspb.BinaryReader(bytes);
6477
+ var msg = new proto.wechaty.puppet.MessageSendPostRequest;
6478
+ return proto.wechaty.puppet.MessageSendPostRequest.deserializeBinaryFromReader(msg, reader);
6479
+ };
6480
+
6481
+
6482
+ /**
6483
+ * Deserializes binary data (in protobuf wire format) from the
6484
+ * given reader into the given message object.
6485
+ * @param {!proto.wechaty.puppet.MessageSendPostRequest} msg The message object to deserialize into.
6486
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6487
+ * @return {!proto.wechaty.puppet.MessageSendPostRequest}
6488
+ */
6489
+ proto.wechaty.puppet.MessageSendPostRequest.deserializeBinaryFromReader = function(msg, reader) {
6490
+ while (reader.nextField()) {
6491
+ if (reader.isEndGroup()) {
6492
+ break;
6493
+ }
6494
+ var field = reader.getFieldNumber();
6495
+ switch (field) {
6496
+ case 1:
6497
+ var value = /** @type {string} */ (reader.readString());
6498
+ msg.setConversationId(value);
6499
+ break;
6500
+ case 2:
6501
+ var value = new wechaty_puppet_post_pb.PostPayloadClient;
6502
+ reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadClient.deserializeBinaryFromReader);
6503
+ msg.setContent(value);
6504
+ break;
6505
+ default:
6506
+ reader.skipField();
6507
+ break;
6508
+ }
6509
+ }
6510
+ return msg;
6511
+ };
6512
+
6513
+
6514
+ /**
6515
+ * Serializes the message to binary data (in protobuf wire format).
6516
+ * @return {!Uint8Array}
6517
+ */
6518
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.serializeBinary = function() {
6519
+ var writer = new jspb.BinaryWriter();
6520
+ proto.wechaty.puppet.MessageSendPostRequest.serializeBinaryToWriter(this, writer);
6521
+ return writer.getResultBuffer();
6522
+ };
6523
+
6524
+
6525
+ /**
6526
+ * Serializes the given message to binary data (in protobuf wire
6527
+ * format), writing to the given BinaryWriter.
6528
+ * @param {!proto.wechaty.puppet.MessageSendPostRequest} message
6529
+ * @param {!jspb.BinaryWriter} writer
6530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6531
+ */
6532
+ proto.wechaty.puppet.MessageSendPostRequest.serializeBinaryToWriter = function(message, writer) {
6533
+ var f = undefined;
6534
+ f = message.getConversationId();
6535
+ if (f.length > 0) {
6536
+ writer.writeString(
6537
+ 1,
6538
+ f
6539
+ );
6540
+ }
6541
+ f = message.getContent();
6542
+ if (f != null) {
6543
+ writer.writeMessage(
6544
+ 2,
6545
+ f,
6546
+ wechaty_puppet_post_pb.PostPayloadClient.serializeBinaryToWriter
6547
+ );
6548
+ }
6549
+ };
6550
+
6551
+
6552
+ /**
6553
+ * optional string conversation_id = 1;
6554
+ * @return {string}
6555
+ */
6556
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.getConversationId = function() {
6557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6558
+ };
6559
+
6560
+
6561
+ /**
6562
+ * @param {string} value
6563
+ * @return {!proto.wechaty.puppet.MessageSendPostRequest} returns this
6564
+ */
6565
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.setConversationId = function(value) {
6566
+ return jspb.Message.setProto3StringField(this, 1, value);
6567
+ };
6568
+
6569
+
6570
+ /**
6571
+ * optional PostPayloadClient content = 2;
6572
+ * @return {?proto.wechaty.puppet.PostPayloadClient}
6573
+ */
6574
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.getContent = function() {
6575
+ return /** @type{?proto.wechaty.puppet.PostPayloadClient} */ (
6576
+ jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient, 2));
6577
+ };
6578
+
6579
+
6580
+ /**
6581
+ * @param {?proto.wechaty.puppet.PostPayloadClient|undefined} value
6582
+ * @return {!proto.wechaty.puppet.MessageSendPostRequest} returns this
6583
+ */
6584
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.setContent = function(value) {
6585
+ return jspb.Message.setWrapperField(this, 2, value);
6586
+ };
6587
+
6588
+
6589
+ /**
6590
+ * Clears the message field making it undefined.
6591
+ * @return {!proto.wechaty.puppet.MessageSendPostRequest} returns this
6592
+ */
6593
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.clearContent = function() {
6594
+ return this.setContent(undefined);
6595
+ };
6596
+
6597
+
6598
+ /**
6599
+ * Returns whether this field is set.
6600
+ * @return {boolean}
6601
+ */
6602
+ proto.wechaty.puppet.MessageSendPostRequest.prototype.hasContent = function() {
6603
+ return jspb.Message.getField(this, 2) != null;
6604
+ };
6605
+
6606
+
6607
+
6608
+
6609
+
6610
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6611
+ /**
6612
+ * Creates an object representation of this proto.
6613
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6614
+ * Optional fields that are not set will be set to undefined.
6615
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6616
+ * For the list of reserved names please see:
6617
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6618
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6619
+ * JSPB instance for transitional soy proto support:
6620
+ * http://goto/soy-param-migration
6621
+ * @return {!Object}
6622
+ */
6623
+ proto.wechaty.puppet.MessageSendPostResponse.prototype.toObject = function(opt_includeInstance) {
6624
+ return proto.wechaty.puppet.MessageSendPostResponse.toObject(opt_includeInstance, this);
6625
+ };
6626
+
6627
+
6628
+ /**
6629
+ * Static version of the {@see toObject} method.
6630
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6631
+ * the JSPB instance for transitional soy proto support:
6632
+ * http://goto/soy-param-migration
6633
+ * @param {!proto.wechaty.puppet.MessageSendPostResponse} msg The msg instance to transform.
6634
+ * @return {!Object}
6635
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6636
+ */
6637
+ proto.wechaty.puppet.MessageSendPostResponse.toObject = function(includeInstance, msg) {
6638
+ var f, obj = {
6639
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
6640
+ };
6641
+
6642
+ if (includeInstance) {
6643
+ obj.$jspbMessageInstance = msg;
6644
+ }
6645
+ return obj;
6646
+ };
6647
+ }
6648
+
6649
+
6650
+ /**
6651
+ * Deserializes binary data (in protobuf wire format).
6652
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6653
+ * @return {!proto.wechaty.puppet.MessageSendPostResponse}
6654
+ */
6655
+ proto.wechaty.puppet.MessageSendPostResponse.deserializeBinary = function(bytes) {
6656
+ var reader = new jspb.BinaryReader(bytes);
6657
+ var msg = new proto.wechaty.puppet.MessageSendPostResponse;
6658
+ return proto.wechaty.puppet.MessageSendPostResponse.deserializeBinaryFromReader(msg, reader);
6659
+ };
6660
+
6661
+
6662
+ /**
6663
+ * Deserializes binary data (in protobuf wire format) from the
6664
+ * given reader into the given message object.
6665
+ * @param {!proto.wechaty.puppet.MessageSendPostResponse} msg The message object to deserialize into.
6666
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6667
+ * @return {!proto.wechaty.puppet.MessageSendPostResponse}
6668
+ */
6669
+ proto.wechaty.puppet.MessageSendPostResponse.deserializeBinaryFromReader = function(msg, reader) {
6670
+ while (reader.nextField()) {
6671
+ if (reader.isEndGroup()) {
6672
+ break;
6673
+ }
6674
+ var field = reader.getFieldNumber();
6675
+ switch (field) {
6676
+ case 1:
6677
+ var value = /** @type {string} */ (reader.readString());
6678
+ msg.setId(value);
6679
+ break;
6680
+ default:
6681
+ reader.skipField();
6682
+ break;
6683
+ }
6684
+ }
6685
+ return msg;
6686
+ };
6687
+
6688
+
6689
+ /**
6690
+ * Serializes the message to binary data (in protobuf wire format).
6691
+ * @return {!Uint8Array}
6692
+ */
6693
+ proto.wechaty.puppet.MessageSendPostResponse.prototype.serializeBinary = function() {
6694
+ var writer = new jspb.BinaryWriter();
6695
+ proto.wechaty.puppet.MessageSendPostResponse.serializeBinaryToWriter(this, writer);
6696
+ return writer.getResultBuffer();
6697
+ };
6698
+
6699
+
6700
+ /**
6701
+ * Serializes the given message to binary data (in protobuf wire
6702
+ * format), writing to the given BinaryWriter.
6703
+ * @param {!proto.wechaty.puppet.MessageSendPostResponse} message
6704
+ * @param {!jspb.BinaryWriter} writer
6705
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6706
+ */
6707
+ proto.wechaty.puppet.MessageSendPostResponse.serializeBinaryToWriter = function(message, writer) {
6708
+ var f = undefined;
6709
+ f = message.getId();
6710
+ if (f.length > 0) {
6711
+ writer.writeString(
6712
+ 1,
6713
+ f
6714
+ );
6715
+ }
6716
+ };
6717
+
6718
+
6719
+ /**
6720
+ * optional string id = 1;
6721
+ * @return {string}
6722
+ */
6723
+ proto.wechaty.puppet.MessageSendPostResponse.prototype.getId = function() {
6724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6725
+ };
6726
+
6727
+
6728
+ /**
6729
+ * @param {string} value
6730
+ * @return {!proto.wechaty.puppet.MessageSendPostResponse} returns this
6731
+ */
6732
+ proto.wechaty.puppet.MessageSendPostResponse.prototype.setId = function(value) {
6733
+ return jspb.Message.setProto3StringField(this, 1, value);
6734
+ };
6735
+
6736
+
6737
+
6738
+
6739
+
6385
6740
  if (jspb.Message.GENERATE_TO_OBJECT) {
6386
6741
  /**
6387
6742
  * Creates an object representation of this proto.
@@ -597,6 +597,9 @@ export class RoomPermissionRequest extends jspb.Message {
597
597
  getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
598
598
  setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
599
599
 
600
+ getDisableMemberMutualAdd(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
601
+ setDisableMemberMutualAdd(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
602
+
600
603
  serializeBinary(): Uint8Array;
601
604
  toObject(includeInstance?: boolean): RoomPermissionRequest.AsObject;
602
605
  static toObject(includeInstance: boolean, msg: RoomPermissionRequest): RoomPermissionRequest.AsObject;
@@ -615,6 +618,7 @@ export namespace RoomPermissionRequest {
615
618
  adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
616
619
  muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
617
620
  forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
621
+ disableMemberMutualAdd: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
618
622
  }
619
623
  }
620
624
 
@@ -634,6 +638,9 @@ export class RoomPermissionResponse extends jspb.Message {
634
638
  getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
635
639
  setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
636
640
 
641
+ getDisableMemberMutualAdd(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
642
+ setDisableMemberMutualAdd(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
643
+
637
644
  serializeBinary(): Uint8Array;
638
645
  toObject(includeInstance?: boolean): RoomPermissionResponse.AsObject;
639
646
  static toObject(includeInstance: boolean, msg: RoomPermissionResponse): RoomPermissionResponse.AsObject;
@@ -651,6 +658,7 @@ export namespace RoomPermissionResponse {
651
658
  adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
652
659
  muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
653
660
  forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
661
+ disableMemberMutualAdd: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
654
662
  }
655
663
  }
656
664
 
@@ -4618,7 +4618,8 @@ proto.wechaty.puppet.RoomPermissionRequest.toObject = function(includeInstance,
4618
4618
  adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 3, 0),
4619
4619
  adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
4620
4620
  muteAll: jspb.Message.getFieldWithDefault(msg, 5, 0),
4621
- forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 6, 0)
4621
+ forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 6, 0),
4622
+ disableMemberMutualAdd: jspb.Message.getFieldWithDefault(msg, 7, 0)
4622
4623
  };
4623
4624
 
4624
4625
  if (includeInstance) {
@@ -4679,6 +4680,10 @@ proto.wechaty.puppet.RoomPermissionRequest.deserializeBinaryFromReader = functio
4679
4680
  var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4680
4681
  msg.setForbidRoomTopicEdit(value);
4681
4682
  break;
4683
+ case 7:
4684
+ var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4685
+ msg.setDisableMemberMutualAdd(value);
4686
+ break;
4682
4687
  default:
4683
4688
  reader.skipField();
4684
4689
  break;
@@ -4750,6 +4755,13 @@ proto.wechaty.puppet.RoomPermissionRequest.serializeBinaryToWriter = function(me
4750
4755
  f
4751
4756
  );
4752
4757
  }
4758
+ f = message.getDisableMemberMutualAdd();
4759
+ if (f !== 0.0) {
4760
+ writer.writeEnum(
4761
+ 7,
4762
+ f
4763
+ );
4764
+ }
4753
4765
  };
4754
4766
 
4755
4767
 
@@ -4861,6 +4873,24 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.setForbidRoomTopicEdit = fu
4861
4873
  };
4862
4874
 
4863
4875
 
4876
+ /**
4877
+ * optional OptionalBoolean disable_member_mutual_add = 7;
4878
+ * @return {!proto.wechaty.puppet.OptionalBoolean}
4879
+ */
4880
+ proto.wechaty.puppet.RoomPermissionRequest.prototype.getDisableMemberMutualAdd = function() {
4881
+ return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
4882
+ };
4883
+
4884
+
4885
+ /**
4886
+ * @param {!proto.wechaty.puppet.OptionalBoolean} value
4887
+ * @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
4888
+ */
4889
+ proto.wechaty.puppet.RoomPermissionRequest.prototype.setDisableMemberMutualAdd = function(value) {
4890
+ return jspb.Message.setProto3EnumField(this, 7, value);
4891
+ };
4892
+
4893
+
4864
4894
 
4865
4895
 
4866
4896
 
@@ -4897,7 +4927,8 @@ proto.wechaty.puppet.RoomPermissionResponse.toObject = function(includeInstance,
4897
4927
  adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 2, 0),
4898
4928
  adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 3, 0),
4899
4929
  muteAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
4900
- forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 5, 0)
4930
+ forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 5, 0),
4931
+ disableMemberMutualAdd: jspb.Message.getFieldWithDefault(msg, 6, 0)
4901
4932
  };
4902
4933
 
4903
4934
  if (includeInstance) {
@@ -4954,6 +4985,10 @@ proto.wechaty.puppet.RoomPermissionResponse.deserializeBinaryFromReader = functi
4954
4985
  var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4955
4986
  msg.setForbidRoomTopicEdit(value);
4956
4987
  break;
4988
+ case 6:
4989
+ var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
4990
+ msg.setDisableMemberMutualAdd(value);
4991
+ break;
4957
4992
  default:
4958
4993
  reader.skipField();
4959
4994
  break;
@@ -5018,6 +5053,13 @@ proto.wechaty.puppet.RoomPermissionResponse.serializeBinaryToWriter = function(m
5018
5053
  f
5019
5054
  );
5020
5055
  }
5056
+ f = message.getDisableMemberMutualAdd();
5057
+ if (f !== 0.0) {
5058
+ writer.writeEnum(
5059
+ 6,
5060
+ f
5061
+ );
5062
+ }
5021
5063
  };
5022
5064
 
5023
5065
 
@@ -5111,6 +5153,24 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.setForbidRoomTopicEdit = f
5111
5153
  };
5112
5154
 
5113
5155
 
5156
+ /**
5157
+ * optional OptionalBoolean disable_member_mutual_add = 6;
5158
+ * @return {!proto.wechaty.puppet.OptionalBoolean}
5159
+ */
5160
+ proto.wechaty.puppet.RoomPermissionResponse.prototype.getDisableMemberMutualAdd = function() {
5161
+ return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
5162
+ };
5163
+
5164
+
5165
+ /**
5166
+ * @param {!proto.wechaty.puppet.OptionalBoolean} value
5167
+ * @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
5168
+ */
5169
+ proto.wechaty.puppet.RoomPermissionResponse.prototype.setDisableMemberMutualAdd = function(value) {
5170
+ return jspb.Message.setProto3EnumField(this, 6, value);
5171
+ };
5172
+
5173
+
5114
5174
 
5115
5175
  /**
5116
5176
  * List of repeated fields within this message type.
@@ -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.85
12
+ version: 1.0.87
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -603,6 +603,31 @@ paths:
603
603
  $ref: '#/definitions/PuppetMessageSendMiniProgramBody'
604
604
  tags:
605
605
  - Puppet
606
+ /conversations/{conversationId}/post:
607
+ post:
608
+ operationId: Puppet_MessageSendPost
609
+ responses:
610
+ '200':
611
+ description: A successful response.
612
+ schema:
613
+ $ref: '#/definitions/puppetMessageSendPostResponse'
614
+ default:
615
+ description: An unexpected error response.
616
+ schema:
617
+ $ref: '#/definitions/rpcStatus'
618
+ parameters:
619
+ - name: conversationId
620
+ description: 对话id
621
+ in: path
622
+ required: true
623
+ type: string
624
+ - name: body
625
+ in: body
626
+ required: true
627
+ schema:
628
+ $ref: '#/definitions/PuppetMessageSendPostBody'
629
+ tags:
630
+ - Puppet
606
631
  /conversations/{conversationId}/text:
607
632
  post:
608
633
  operationId: Puppet_MessageSendText
@@ -1972,6 +1997,15 @@ paths:
1972
1997
  - BOOL_FALSE
1973
1998
  - BOOL_TRUE
1974
1999
  default: BOOL_UNSET
2000
+ - name: disableMemberMutualAdd
2001
+ in: query
2002
+ required: false
2003
+ type: string
2004
+ enum:
2005
+ - BOOL_UNSET
2006
+ - BOOL_FALSE
2007
+ - BOOL_TRUE
2008
+ default: BOOL_UNSET
1975
2009
  tags:
1976
2010
  - Puppet
1977
2011
  /rooms/{id}/qrcode:
@@ -2697,6 +2731,12 @@ definitions:
2697
2731
  miniProgram:
2698
2732
  $ref: '#/definitions/puppetMiniProgramPayload'
2699
2733
  title: 小程序payload
2734
+ PuppetMessageSendPostBody:
2735
+ type: object
2736
+ properties:
2737
+ content:
2738
+ $ref: '#/definitions/puppetPostPayloadClient'
2739
+ title: 发送的post内容
2700
2740
  PuppetMessageSendTextBody:
2701
2741
  type: object
2702
2742
  properties:
@@ -3610,6 +3650,11 @@ definitions:
3610
3650
  https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
3611
3651
  id:
3612
3652
  type: string
3653
+ puppetMessageSendPostResponse:
3654
+ type: object
3655
+ properties:
3656
+ id:
3657
+ type: string
3613
3658
  puppetMessageSendTextResponse:
3614
3659
  type: object
3615
3660
  properties:
@@ -4125,6 +4170,8 @@ definitions:
4125
4170
  $ref: '#/definitions/puppetOptionalBoolean'
4126
4171
  forbidRoomTopicEdit:
4127
4172
  $ref: '#/definitions/puppetOptionalBoolean'
4173
+ disableMemberMutualAdd:
4174
+ $ref: '#/definitions/puppetOptionalBoolean'
4128
4175
  puppetRoomQRCodeResponse:
4129
4176
  type: object
4130
4177
  properties: