@juzi/wechaty-grpc 1.0.57 → 1.0.59
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/contact_pb.d.ts +40 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +305 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/dist/cjs/out/wechaty/puppet/room_pb.js +177 -57
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +57 -10
- package/dist/cjs/out/wechaty/puppet.swagger.json +79 -10
- 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/contact.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +10 -6
- package/dist/cjs/proto/wechaty/puppet.proto +5 -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/contact_pb.d.ts +40 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +305 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/dist/esm/out/wechaty/puppet/room_pb.js +177 -57
- package/dist/esm/out/wechaty/puppet.openapi.yaml +57 -10
- package/dist/esm/out/wechaty/puppet.swagger.json +79 -10
- 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/contact.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +10 -6
- package/dist/esm/proto/wechaty/puppet.proto +5 -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/contact_pb.d.ts +40 -0
- package/out/wechaty/puppet/contact_pb.js +305 -0
- package/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/out/wechaty/puppet/room_pb.js +177 -57
- package/out/wechaty/puppet.openapi.yaml +57 -10
- package/out/wechaty/puppet.swagger.json +79 -10
- 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
|
@@ -4443,9 +4443,11 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.toObject = function(opt_inc
|
|
|
4443
4443
|
proto.wechaty.puppet.RoomPermissionRequest.toObject = function(includeInstance, msg) {
|
|
4444
4444
|
var f, obj = {
|
|
4445
4445
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4446
|
+
inviteConfirm: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4447
|
+
adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4448
|
+
adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
4449
|
+
muteAll: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
4450
|
+
forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
4449
4451
|
};
|
|
4450
4452
|
|
|
4451
4453
|
if (includeInstance) {
|
|
@@ -4488,15 +4490,23 @@ proto.wechaty.puppet.RoomPermissionRequest.deserializeBinaryFromReader = functio
|
|
|
4488
4490
|
break;
|
|
4489
4491
|
case 2:
|
|
4490
4492
|
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4491
|
-
msg.
|
|
4493
|
+
msg.setInviteConfirm(value);
|
|
4492
4494
|
break;
|
|
4493
4495
|
case 3:
|
|
4494
4496
|
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4495
|
-
msg.
|
|
4497
|
+
msg.setAdminOnlyManage(value);
|
|
4496
4498
|
break;
|
|
4497
4499
|
case 4:
|
|
4498
4500
|
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4499
|
-
msg.
|
|
4501
|
+
msg.setAdminOnlyAtAll(value);
|
|
4502
|
+
break;
|
|
4503
|
+
case 5:
|
|
4504
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4505
|
+
msg.setMuteAll(value);
|
|
4506
|
+
break;
|
|
4507
|
+
case 6:
|
|
4508
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4509
|
+
msg.setForbidRoomTopicEdit(value);
|
|
4500
4510
|
break;
|
|
4501
4511
|
default:
|
|
4502
4512
|
reader.skipField();
|
|
@@ -4534,27 +4544,41 @@ proto.wechaty.puppet.RoomPermissionRequest.serializeBinaryToWriter = function(me
|
|
|
4534
4544
|
f
|
|
4535
4545
|
);
|
|
4536
4546
|
}
|
|
4537
|
-
f = message.
|
|
4547
|
+
f = message.getInviteConfirm();
|
|
4538
4548
|
if (f !== 0.0) {
|
|
4539
4549
|
writer.writeEnum(
|
|
4540
4550
|
2,
|
|
4541
4551
|
f
|
|
4542
4552
|
);
|
|
4543
4553
|
}
|
|
4544
|
-
f = message.
|
|
4554
|
+
f = message.getAdminOnlyManage();
|
|
4545
4555
|
if (f !== 0.0) {
|
|
4546
4556
|
writer.writeEnum(
|
|
4547
4557
|
3,
|
|
4548
4558
|
f
|
|
4549
4559
|
);
|
|
4550
4560
|
}
|
|
4551
|
-
f = message.
|
|
4561
|
+
f = message.getAdminOnlyAtAll();
|
|
4552
4562
|
if (f !== 0.0) {
|
|
4553
4563
|
writer.writeEnum(
|
|
4554
4564
|
4,
|
|
4555
4565
|
f
|
|
4556
4566
|
);
|
|
4557
4567
|
}
|
|
4568
|
+
f = message.getMuteAll();
|
|
4569
|
+
if (f !== 0.0) {
|
|
4570
|
+
writer.writeEnum(
|
|
4571
|
+
5,
|
|
4572
|
+
f
|
|
4573
|
+
);
|
|
4574
|
+
}
|
|
4575
|
+
f = message.getForbidRoomTopicEdit();
|
|
4576
|
+
if (f !== 0.0) {
|
|
4577
|
+
writer.writeEnum(
|
|
4578
|
+
6,
|
|
4579
|
+
f
|
|
4580
|
+
);
|
|
4581
|
+
}
|
|
4558
4582
|
};
|
|
4559
4583
|
|
|
4560
4584
|
|
|
@@ -4577,10 +4601,10 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.setId = function(value) {
|
|
|
4577
4601
|
|
|
4578
4602
|
|
|
4579
4603
|
/**
|
|
4580
|
-
* optional OptionalBoolean
|
|
4604
|
+
* optional OptionalBoolean invite_confirm = 2;
|
|
4581
4605
|
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4582
4606
|
*/
|
|
4583
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4607
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getInviteConfirm = function() {
|
|
4584
4608
|
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4585
4609
|
};
|
|
4586
4610
|
|
|
@@ -4589,16 +4613,16 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.getSendMessage = function()
|
|
|
4589
4613
|
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4590
4614
|
* @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
|
|
4591
4615
|
*/
|
|
4592
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4616
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.setInviteConfirm = function(value) {
|
|
4593
4617
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
4594
4618
|
};
|
|
4595
4619
|
|
|
4596
4620
|
|
|
4597
4621
|
/**
|
|
4598
|
-
* optional OptionalBoolean
|
|
4622
|
+
* optional OptionalBoolean admin_only_manage = 3;
|
|
4599
4623
|
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4600
4624
|
*/
|
|
4601
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4625
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getAdminOnlyManage = function() {
|
|
4602
4626
|
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4603
4627
|
};
|
|
4604
4628
|
|
|
@@ -4607,16 +4631,16 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.getInvitationCheck = functi
|
|
|
4607
4631
|
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4608
4632
|
* @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
|
|
4609
4633
|
*/
|
|
4610
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4634
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.setAdminOnlyManage = function(value) {
|
|
4611
4635
|
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
4612
4636
|
};
|
|
4613
4637
|
|
|
4614
4638
|
|
|
4615
4639
|
/**
|
|
4616
|
-
* optional OptionalBoolean
|
|
4640
|
+
* optional OptionalBoolean admin_only_at_all = 4;
|
|
4617
4641
|
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4618
4642
|
*/
|
|
4619
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4643
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getAdminOnlyAtAll = function() {
|
|
4620
4644
|
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4621
4645
|
};
|
|
4622
4646
|
|
|
@@ -4625,11 +4649,47 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.getRoomTopicEdit = function
|
|
|
4625
4649
|
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4626
4650
|
* @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
|
|
4627
4651
|
*/
|
|
4628
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4652
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.setAdminOnlyAtAll = function(value) {
|
|
4629
4653
|
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
4630
4654
|
};
|
|
4631
4655
|
|
|
4632
4656
|
|
|
4657
|
+
/**
|
|
4658
|
+
* optional OptionalBoolean mute_all = 5;
|
|
4659
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4660
|
+
*/
|
|
4661
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getMuteAll = function() {
|
|
4662
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
4663
|
+
};
|
|
4664
|
+
|
|
4665
|
+
|
|
4666
|
+
/**
|
|
4667
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4668
|
+
* @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
|
|
4669
|
+
*/
|
|
4670
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.setMuteAll = function(value) {
|
|
4671
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
4672
|
+
};
|
|
4673
|
+
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* optional OptionalBoolean forbid_room_topic_edit = 6;
|
|
4677
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4678
|
+
*/
|
|
4679
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getForbidRoomTopicEdit = function() {
|
|
4680
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
4681
|
+
};
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
/**
|
|
4685
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4686
|
+
* @return {!proto.wechaty.puppet.RoomPermissionRequest} returns this
|
|
4687
|
+
*/
|
|
4688
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.setForbidRoomTopicEdit = function(value) {
|
|
4689
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
4690
|
+
};
|
|
4691
|
+
|
|
4692
|
+
|
|
4633
4693
|
|
|
4634
4694
|
|
|
4635
4695
|
|
|
@@ -4662,9 +4722,11 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.toObject = function(opt_in
|
|
|
4662
4722
|
*/
|
|
4663
4723
|
proto.wechaty.puppet.RoomPermissionResponse.toObject = function(includeInstance, msg) {
|
|
4664
4724
|
var f, obj = {
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4725
|
+
inviteConfirm: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4726
|
+
adminOnlyManage: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4727
|
+
adminOnlyAtAll: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
4728
|
+
muteAll: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
4729
|
+
forbidRoomTopicEdit: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
4668
4730
|
};
|
|
4669
4731
|
|
|
4670
4732
|
if (includeInstance) {
|
|
@@ -4702,16 +4764,24 @@ proto.wechaty.puppet.RoomPermissionResponse.deserializeBinaryFromReader = functi
|
|
|
4702
4764
|
var field = reader.getFieldNumber();
|
|
4703
4765
|
switch (field) {
|
|
4704
4766
|
case 1:
|
|
4705
|
-
var value = /** @type {
|
|
4706
|
-
msg.
|
|
4767
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4768
|
+
msg.setInviteConfirm(value);
|
|
4707
4769
|
break;
|
|
4708
4770
|
case 2:
|
|
4709
|
-
var value = /** @type {
|
|
4710
|
-
msg.
|
|
4771
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4772
|
+
msg.setAdminOnlyManage(value);
|
|
4711
4773
|
break;
|
|
4712
4774
|
case 3:
|
|
4713
|
-
var value = /** @type {
|
|
4714
|
-
msg.
|
|
4775
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4776
|
+
msg.setAdminOnlyAtAll(value);
|
|
4777
|
+
break;
|
|
4778
|
+
case 4:
|
|
4779
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4780
|
+
msg.setMuteAll(value);
|
|
4781
|
+
break;
|
|
4782
|
+
case 5:
|
|
4783
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4784
|
+
msg.setForbidRoomTopicEdit(value);
|
|
4715
4785
|
break;
|
|
4716
4786
|
default:
|
|
4717
4787
|
reader.skipField();
|
|
@@ -4742,81 +4812,131 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.serializeBinary = function
|
|
|
4742
4812
|
*/
|
|
4743
4813
|
proto.wechaty.puppet.RoomPermissionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4744
4814
|
var f = undefined;
|
|
4745
|
-
f = message.
|
|
4746
|
-
if (f) {
|
|
4747
|
-
writer.
|
|
4815
|
+
f = message.getInviteConfirm();
|
|
4816
|
+
if (f !== 0.0) {
|
|
4817
|
+
writer.writeEnum(
|
|
4748
4818
|
1,
|
|
4749
4819
|
f
|
|
4750
4820
|
);
|
|
4751
4821
|
}
|
|
4752
|
-
f = message.
|
|
4753
|
-
if (f) {
|
|
4754
|
-
writer.
|
|
4822
|
+
f = message.getAdminOnlyManage();
|
|
4823
|
+
if (f !== 0.0) {
|
|
4824
|
+
writer.writeEnum(
|
|
4755
4825
|
2,
|
|
4756
4826
|
f
|
|
4757
4827
|
);
|
|
4758
4828
|
}
|
|
4759
|
-
f = message.
|
|
4760
|
-
if (f) {
|
|
4761
|
-
writer.
|
|
4829
|
+
f = message.getAdminOnlyAtAll();
|
|
4830
|
+
if (f !== 0.0) {
|
|
4831
|
+
writer.writeEnum(
|
|
4762
4832
|
3,
|
|
4763
4833
|
f
|
|
4764
4834
|
);
|
|
4765
4835
|
}
|
|
4836
|
+
f = message.getMuteAll();
|
|
4837
|
+
if (f !== 0.0) {
|
|
4838
|
+
writer.writeEnum(
|
|
4839
|
+
4,
|
|
4840
|
+
f
|
|
4841
|
+
);
|
|
4842
|
+
}
|
|
4843
|
+
f = message.getForbidRoomTopicEdit();
|
|
4844
|
+
if (f !== 0.0) {
|
|
4845
|
+
writer.writeEnum(
|
|
4846
|
+
5,
|
|
4847
|
+
f
|
|
4848
|
+
);
|
|
4849
|
+
}
|
|
4766
4850
|
};
|
|
4767
4851
|
|
|
4768
4852
|
|
|
4769
4853
|
/**
|
|
4770
|
-
* optional
|
|
4771
|
-
* @return {
|
|
4854
|
+
* optional OptionalBoolean invite_confirm = 1;
|
|
4855
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4772
4856
|
*/
|
|
4773
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4774
|
-
return /** @type {
|
|
4857
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.getInviteConfirm = function() {
|
|
4858
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4775
4859
|
};
|
|
4776
4860
|
|
|
4777
4861
|
|
|
4778
4862
|
/**
|
|
4779
|
-
* @param {
|
|
4863
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4780
4864
|
* @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
|
|
4781
4865
|
*/
|
|
4782
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4783
|
-
return jspb.Message.
|
|
4866
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.setInviteConfirm = function(value) {
|
|
4867
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
4784
4868
|
};
|
|
4785
4869
|
|
|
4786
4870
|
|
|
4787
4871
|
/**
|
|
4788
|
-
* optional
|
|
4789
|
-
* @return {
|
|
4872
|
+
* optional OptionalBoolean admin_only_manage = 2;
|
|
4873
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4790
4874
|
*/
|
|
4791
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4792
|
-
return /** @type {
|
|
4875
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.getAdminOnlyManage = function() {
|
|
4876
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4793
4877
|
};
|
|
4794
4878
|
|
|
4795
4879
|
|
|
4796
4880
|
/**
|
|
4797
|
-
* @param {
|
|
4881
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4798
4882
|
* @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
|
|
4799
4883
|
*/
|
|
4800
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4801
|
-
return jspb.Message.
|
|
4884
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.setAdminOnlyManage = function(value) {
|
|
4885
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
4802
4886
|
};
|
|
4803
4887
|
|
|
4804
4888
|
|
|
4805
4889
|
/**
|
|
4806
|
-
* optional
|
|
4807
|
-
* @return {
|
|
4890
|
+
* optional OptionalBoolean admin_only_at_all = 3;
|
|
4891
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4808
4892
|
*/
|
|
4809
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4810
|
-
return /** @type {
|
|
4893
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.getAdminOnlyAtAll = function() {
|
|
4894
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4811
4895
|
};
|
|
4812
4896
|
|
|
4813
4897
|
|
|
4814
4898
|
/**
|
|
4815
|
-
* @param {
|
|
4899
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4816
4900
|
* @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
|
|
4817
4901
|
*/
|
|
4818
|
-
proto.wechaty.puppet.RoomPermissionResponse.prototype.
|
|
4819
|
-
return jspb.Message.
|
|
4902
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.setAdminOnlyAtAll = function(value) {
|
|
4903
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
4904
|
+
};
|
|
4905
|
+
|
|
4906
|
+
|
|
4907
|
+
/**
|
|
4908
|
+
* optional OptionalBoolean mute_all = 4;
|
|
4909
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4910
|
+
*/
|
|
4911
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.getMuteAll = function() {
|
|
4912
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4913
|
+
};
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
/**
|
|
4917
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4918
|
+
* @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
|
|
4919
|
+
*/
|
|
4920
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.setMuteAll = function(value) {
|
|
4921
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
4922
|
+
};
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
/**
|
|
4926
|
+
* optional OptionalBoolean forbid_room_topic_edit = 5;
|
|
4927
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4928
|
+
*/
|
|
4929
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.getForbidRoomTopicEdit = function() {
|
|
4930
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4933
|
+
|
|
4934
|
+
/**
|
|
4935
|
+
* @param {!proto.wechaty.puppet.OptionalBoolean} value
|
|
4936
|
+
* @return {!proto.wechaty.puppet.RoomPermissionResponse} returns this
|
|
4937
|
+
*/
|
|
4938
|
+
proto.wechaty.puppet.RoomPermissionResponse.prototype.setForbidRoomTopicEdit = function(value) {
|
|
4939
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
4820
4940
|
};
|
|
4821
4941
|
|
|
4822
4942
|
|
|
@@ -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.59
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,29 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
'/contact/room/{roomId}/alias/{alias}':
|
|
28
|
+
put:
|
|
29
|
+
operationId: Puppet_ContactSelfRoomAlias
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetContactSelfRoomAliasResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: roomId
|
|
41
|
+
in: path
|
|
42
|
+
required: true
|
|
43
|
+
type: string
|
|
44
|
+
- name: alias
|
|
45
|
+
in: path
|
|
46
|
+
required: true
|
|
47
|
+
type: string
|
|
48
|
+
tags:
|
|
49
|
+
- Puppet
|
|
27
50
|
/contacts:
|
|
28
51
|
get:
|
|
29
52
|
summary: >-
|
|
@@ -1791,7 +1814,16 @@ paths:
|
|
|
1791
1814
|
in: path
|
|
1792
1815
|
required: true
|
|
1793
1816
|
type: string
|
|
1794
|
-
- name:
|
|
1817
|
+
- name: inviteConfirm
|
|
1818
|
+
in: query
|
|
1819
|
+
required: false
|
|
1820
|
+
type: string
|
|
1821
|
+
enum:
|
|
1822
|
+
- BOOL_UNSET
|
|
1823
|
+
- BOOL_FALSE
|
|
1824
|
+
- BOOL_TRUE
|
|
1825
|
+
default: BOOL_UNSET
|
|
1826
|
+
- name: adminOnlyManage
|
|
1795
1827
|
in: query
|
|
1796
1828
|
required: false
|
|
1797
1829
|
type: string
|
|
@@ -1800,7 +1832,7 @@ paths:
|
|
|
1800
1832
|
- BOOL_FALSE
|
|
1801
1833
|
- BOOL_TRUE
|
|
1802
1834
|
default: BOOL_UNSET
|
|
1803
|
-
- name:
|
|
1835
|
+
- name: adminOnlyAtAll
|
|
1804
1836
|
in: query
|
|
1805
1837
|
required: false
|
|
1806
1838
|
type: string
|
|
@@ -1809,7 +1841,16 @@ paths:
|
|
|
1809
1841
|
- BOOL_FALSE
|
|
1810
1842
|
- BOOL_TRUE
|
|
1811
1843
|
default: BOOL_UNSET
|
|
1812
|
-
- name:
|
|
1844
|
+
- name: muteAll
|
|
1845
|
+
in: query
|
|
1846
|
+
required: false
|
|
1847
|
+
type: string
|
|
1848
|
+
enum:
|
|
1849
|
+
- BOOL_UNSET
|
|
1850
|
+
- BOOL_FALSE
|
|
1851
|
+
- BOOL_TRUE
|
|
1852
|
+
default: BOOL_UNSET
|
|
1853
|
+
- name: forbidRoomTopicEdit
|
|
1813
1854
|
in: query
|
|
1814
1855
|
required: false
|
|
1815
1856
|
type: string
|
|
@@ -2502,6 +2543,8 @@ definitions:
|
|
|
2502
2543
|
properties:
|
|
2503
2544
|
qrcode:
|
|
2504
2545
|
type: string
|
|
2546
|
+
puppetContactSelfRoomAliasResponse:
|
|
2547
|
+
type: object
|
|
2505
2548
|
puppetContactSelfSignatureRequest:
|
|
2506
2549
|
type: object
|
|
2507
2550
|
properties:
|
|
@@ -3432,12 +3475,16 @@ definitions:
|
|
|
3432
3475
|
puppetRoomPermissionResponse:
|
|
3433
3476
|
type: object
|
|
3434
3477
|
properties:
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3478
|
+
inviteConfirm:
|
|
3479
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3480
|
+
adminOnlyManage:
|
|
3481
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3482
|
+
adminOnlyAtAll:
|
|
3483
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3484
|
+
muteAll:
|
|
3485
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3486
|
+
forbidRoomTopicEdit:
|
|
3487
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3441
3488
|
puppetRoomQRCodeResponse:
|
|
3442
3489
|
type: object
|
|
3443
3490
|
properties:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.59",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,42 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/contact/room/{roomId}/alias/{alias}": {
|
|
30
|
+
"put": {
|
|
31
|
+
"operationId": "Puppet_ContactSelfRoomAlias",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetContactSelfRoomAliasResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "roomId",
|
|
49
|
+
"in": "path",
|
|
50
|
+
"required": true,
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "alias",
|
|
55
|
+
"in": "path",
|
|
56
|
+
"required": true,
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"tags": [
|
|
61
|
+
"Puppet"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
29
65
|
"/contacts": {
|
|
30
66
|
"get": {
|
|
31
67
|
"summary": "*\nHuan(202002): consider changing response to a stream in the future for better performance",
|
|
@@ -2656,7 +2692,31 @@
|
|
|
2656
2692
|
"type": "string"
|
|
2657
2693
|
},
|
|
2658
2694
|
{
|
|
2659
|
-
"name": "
|
|
2695
|
+
"name": "inviteConfirm",
|
|
2696
|
+
"in": "query",
|
|
2697
|
+
"required": false,
|
|
2698
|
+
"type": "string",
|
|
2699
|
+
"enum": [
|
|
2700
|
+
"BOOL_UNSET",
|
|
2701
|
+
"BOOL_FALSE",
|
|
2702
|
+
"BOOL_TRUE"
|
|
2703
|
+
],
|
|
2704
|
+
"default": "BOOL_UNSET"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"name": "adminOnlyManage",
|
|
2708
|
+
"in": "query",
|
|
2709
|
+
"required": false,
|
|
2710
|
+
"type": "string",
|
|
2711
|
+
"enum": [
|
|
2712
|
+
"BOOL_UNSET",
|
|
2713
|
+
"BOOL_FALSE",
|
|
2714
|
+
"BOOL_TRUE"
|
|
2715
|
+
],
|
|
2716
|
+
"default": "BOOL_UNSET"
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
"name": "adminOnlyAtAll",
|
|
2660
2720
|
"in": "query",
|
|
2661
2721
|
"required": false,
|
|
2662
2722
|
"type": "string",
|
|
@@ -2668,7 +2728,7 @@
|
|
|
2668
2728
|
"default": "BOOL_UNSET"
|
|
2669
2729
|
},
|
|
2670
2730
|
{
|
|
2671
|
-
"name": "
|
|
2731
|
+
"name": "muteAll",
|
|
2672
2732
|
"in": "query",
|
|
2673
2733
|
"required": false,
|
|
2674
2734
|
"type": "string",
|
|
@@ -2680,7 +2740,7 @@
|
|
|
2680
2740
|
"default": "BOOL_UNSET"
|
|
2681
2741
|
},
|
|
2682
2742
|
{
|
|
2683
|
-
"name": "
|
|
2743
|
+
"name": "forbidRoomTopicEdit",
|
|
2684
2744
|
"in": "query",
|
|
2685
2745
|
"required": false,
|
|
2686
2746
|
"type": "string",
|
|
@@ -3692,6 +3752,9 @@
|
|
|
3692
3752
|
}
|
|
3693
3753
|
}
|
|
3694
3754
|
},
|
|
3755
|
+
"puppetContactSelfRoomAliasResponse": {
|
|
3756
|
+
"type": "object"
|
|
3757
|
+
},
|
|
3695
3758
|
"puppetContactSelfSignatureRequest": {
|
|
3696
3759
|
"type": "object",
|
|
3697
3760
|
"properties": {
|
|
@@ -4846,14 +4909,20 @@
|
|
|
4846
4909
|
"puppetRoomPermissionResponse": {
|
|
4847
4910
|
"type": "object",
|
|
4848
4911
|
"properties": {
|
|
4849
|
-
"
|
|
4850
|
-
"
|
|
4912
|
+
"inviteConfirm": {
|
|
4913
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
4851
4914
|
},
|
|
4852
|
-
"
|
|
4853
|
-
"
|
|
4915
|
+
"adminOnlyManage": {
|
|
4916
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
4854
4917
|
},
|
|
4855
|
-
"
|
|
4856
|
-
"
|
|
4918
|
+
"adminOnlyAtAll": {
|
|
4919
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
4920
|
+
},
|
|
4921
|
+
"muteAll": {
|
|
4922
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
4923
|
+
},
|
|
4924
|
+
"forbidRoomTopicEdit": {
|
|
4925
|
+
"$ref": "#/definitions/puppetOptionalBoolean"
|
|
4857
4926
|
}
|
|
4858
4927
|
}
|
|
4859
4928
|
},
|