@juzi/wechaty-grpc 1.0.56 → 1.0.58
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/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/dist/cjs/out/wechaty/puppet/room_pb.js +189 -69
- package/dist/cjs/out/wechaty/puppet/util_pb.d.ts +2 -2
- package/dist/cjs/out/wechaty/puppet/util_pb.js +2 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +39 -17
- package/dist/cjs/out/wechaty/puppet.swagger.json +49 -19
- package/dist/cjs/proto/wechaty/puppet/room.proto +10 -6
- package/dist/cjs/proto/wechaty/puppet/util.proto +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/dist/esm/out/wechaty/puppet/room_pb.js +189 -69
- package/dist/esm/out/wechaty/puppet/util_pb.d.ts +2 -2
- package/dist/esm/out/wechaty/puppet/util_pb.js +2 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +39 -17
- package/dist/esm/out/wechaty/puppet.swagger.json +49 -19
- package/dist/esm/proto/wechaty/puppet/room.proto +10 -6
- package/dist/esm/proto/wechaty/puppet/util.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/room_pb.d.ts +34 -18
- package/out/wechaty/puppet/room_pb.js +189 -69
- package/out/wechaty/puppet/util_pb.d.ts +2 -2
- package/out/wechaty/puppet/util_pb.js +2 -2
- package/out/wechaty/puppet.openapi.yaml +39 -17
- package/out/wechaty/puppet.swagger.json +49 -19
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -17,6 +17,7 @@ const puppetFileList = [
|
|
|
17
17
|
'../../out/wechaty/puppet/moment_pb.js',
|
|
18
18
|
'../../out/wechaty/puppet/post_pb.js',
|
|
19
19
|
'../../out/wechaty/puppet/conversation_pb.js',
|
|
20
|
+
'../../out/wechaty/puppet/util_pb.js',
|
|
20
21
|
|
|
21
22
|
'../../out/wechaty/puppet_grpc_pb.js',
|
|
22
23
|
'../../out/wechaty/puppet_pb.js',
|
|
@@ -39,6 +39,7 @@ export * from '../../out/wechaty/puppet/channel_pb.js'
|
|
|
39
39
|
export * from '../../out/wechaty/puppet/moment_pb.js'
|
|
40
40
|
export * from '../../out/wechaty/puppet/post_pb.js'
|
|
41
41
|
export * from '../../out/wechaty/puppet/conversation_pb.js'
|
|
42
|
+
export * from '../../out/wechaty/puppet/util_pb.js'
|
|
42
43
|
|
|
43
44
|
export * from '../../out/wechaty/puppet_grpc_pb.js'
|
|
44
45
|
export * from '../../out/wechaty/puppet_pb.js'
|
|
@@ -571,14 +571,20 @@ export class RoomPermissionRequest extends jspb.Message {
|
|
|
571
571
|
getId(): string;
|
|
572
572
|
setId(value: string): void;
|
|
573
573
|
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
getInviteConfirm(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
575
|
+
setInviteConfirm(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
576
576
|
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
getAdminOnlyManage(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
578
|
+
setAdminOnlyManage(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
579
579
|
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
getAdminOnlyAtAll(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
581
|
+
setAdminOnlyAtAll(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
582
|
+
|
|
583
|
+
getMuteAll(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
584
|
+
setMuteAll(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
585
|
+
|
|
586
|
+
getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
587
|
+
setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
582
588
|
|
|
583
589
|
serializeBinary(): Uint8Array;
|
|
584
590
|
toObject(includeInstance?: boolean): RoomPermissionRequest.AsObject;
|
|
@@ -593,21 +599,29 @@ export class RoomPermissionRequest extends jspb.Message {
|
|
|
593
599
|
export namespace RoomPermissionRequest {
|
|
594
600
|
export type AsObject = {
|
|
595
601
|
id: string,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
602
|
+
inviteConfirm: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
603
|
+
adminOnlyManage: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
604
|
+
adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
605
|
+
muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
606
|
+
forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
599
607
|
}
|
|
600
608
|
}
|
|
601
609
|
|
|
602
610
|
export class RoomPermissionResponse extends jspb.Message {
|
|
603
|
-
|
|
604
|
-
|
|
611
|
+
getInviteConfirm(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
612
|
+
setInviteConfirm(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
613
|
+
|
|
614
|
+
getAdminOnlyManage(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
615
|
+
setAdminOnlyManage(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
616
|
+
|
|
617
|
+
getAdminOnlyAtAll(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
618
|
+
setAdminOnlyAtAll(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
605
619
|
|
|
606
|
-
|
|
607
|
-
|
|
620
|
+
getMuteAll(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
621
|
+
setMuteAll(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
608
622
|
|
|
609
|
-
|
|
610
|
-
|
|
623
|
+
getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
624
|
+
setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
611
625
|
|
|
612
626
|
serializeBinary(): Uint8Array;
|
|
613
627
|
toObject(includeInstance?: boolean): RoomPermissionResponse.AsObject;
|
|
@@ -621,9 +635,11 @@ export class RoomPermissionResponse extends jspb.Message {
|
|
|
621
635
|
|
|
622
636
|
export namespace RoomPermissionResponse {
|
|
623
637
|
export type AsObject = {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
638
|
+
inviteConfirm: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
639
|
+
adminOnlyManage: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
640
|
+
adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
641
|
+
muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
642
|
+
forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
627
643
|
}
|
|
628
644
|
}
|
|
629
645
|
|
|
@@ -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) {
|
|
@@ -4487,16 +4489,24 @@ proto.wechaty.puppet.RoomPermissionRequest.deserializeBinaryFromReader = functio
|
|
|
4487
4489
|
msg.setId(value);
|
|
4488
4490
|
break;
|
|
4489
4491
|
case 2:
|
|
4490
|
-
var value = /** @type {!proto.wechaty.puppet.
|
|
4491
|
-
msg.
|
|
4492
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4493
|
+
msg.setInviteConfirm(value);
|
|
4492
4494
|
break;
|
|
4493
4495
|
case 3:
|
|
4494
|
-
var value = /** @type {!proto.wechaty.puppet.
|
|
4495
|
-
msg.
|
|
4496
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
4497
|
+
msg.setAdminOnlyManage(value);
|
|
4496
4498
|
break;
|
|
4497
4499
|
case 4:
|
|
4498
|
-
var value = /** @type {!proto.wechaty.puppet.
|
|
4499
|
-
msg.
|
|
4500
|
+
var value = /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (reader.readEnum());
|
|
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,59 +4601,95 @@ proto.wechaty.puppet.RoomPermissionRequest.prototype.setId = function(value) {
|
|
|
4577
4601
|
|
|
4578
4602
|
|
|
4579
4603
|
/**
|
|
4580
|
-
* optional
|
|
4581
|
-
* @return {!proto.wechaty.puppet.
|
|
4604
|
+
* optional OptionalBoolean invite_confirm = 2;
|
|
4605
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4582
4606
|
*/
|
|
4583
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4584
|
-
return /** @type {!proto.wechaty.puppet.
|
|
4607
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getInviteConfirm = function() {
|
|
4608
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4585
4609
|
};
|
|
4586
4610
|
|
|
4587
4611
|
|
|
4588
4612
|
/**
|
|
4589
|
-
* @param {!proto.wechaty.puppet.
|
|
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
|
|
4599
|
-
* @return {!proto.wechaty.puppet.
|
|
4622
|
+
* optional OptionalBoolean admin_only_manage = 3;
|
|
4623
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4600
4624
|
*/
|
|
4601
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4602
|
-
return /** @type {!proto.wechaty.puppet.
|
|
4625
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getAdminOnlyManage = function() {
|
|
4626
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4603
4627
|
};
|
|
4604
4628
|
|
|
4605
4629
|
|
|
4606
4630
|
/**
|
|
4607
|
-
* @param {!proto.wechaty.puppet.
|
|
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
|
|
4617
|
-
* @return {!proto.wechaty.puppet.
|
|
4640
|
+
* optional OptionalBoolean admin_only_at_all = 4;
|
|
4641
|
+
* @return {!proto.wechaty.puppet.OptionalBoolean}
|
|
4618
4642
|
*/
|
|
4619
|
-
proto.wechaty.puppet.RoomPermissionRequest.prototype.
|
|
4620
|
-
return /** @type {!proto.wechaty.puppet.
|
|
4643
|
+
proto.wechaty.puppet.RoomPermissionRequest.prototype.getAdminOnlyAtAll = function() {
|
|
4644
|
+
return /** @type {!proto.wechaty.puppet.OptionalBoolean} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4621
4645
|
};
|
|
4622
4646
|
|
|
4623
4647
|
|
|
4624
4648
|
/**
|
|
4625
|
-
* @param {!proto.wechaty.puppet.
|
|
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
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface OptionalBooleanMap {
|
|
7
7
|
BOOL_UNSET: 0;
|
|
8
8
|
BOOL_FALSE: 1;
|
|
9
9
|
BOOL_TRUE: 2;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const OptionalBoolean: OptionalBooleanMap;
|
|
13
13
|
|
|
@@ -15,11 +15,11 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
17
|
|
|
18
|
-
goog.exportSymbol('proto.wechaty.puppet.
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.OptionalBoolean', null, global);
|
|
19
19
|
/**
|
|
20
20
|
* @enum {number}
|
|
21
21
|
*/
|
|
22
|
-
proto.wechaty.puppet.
|
|
22
|
+
proto.wechaty.puppet.OptionalBoolean = {
|
|
23
23
|
BOOL_UNSET: 0,
|
|
24
24
|
BOOL_FALSE: 1,
|
|
25
25
|
BOOL_TRUE: 2
|
|
@@ -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.58
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1791,7 +1791,7 @@ paths:
|
|
|
1791
1791
|
in: path
|
|
1792
1792
|
required: true
|
|
1793
1793
|
type: string
|
|
1794
|
-
- name:
|
|
1794
|
+
- name: inviteConfirm
|
|
1795
1795
|
in: query
|
|
1796
1796
|
required: false
|
|
1797
1797
|
type: string
|
|
@@ -1800,7 +1800,7 @@ paths:
|
|
|
1800
1800
|
- BOOL_FALSE
|
|
1801
1801
|
- BOOL_TRUE
|
|
1802
1802
|
default: BOOL_UNSET
|
|
1803
|
-
- name:
|
|
1803
|
+
- name: adminOnlyManage
|
|
1804
1804
|
in: query
|
|
1805
1805
|
required: false
|
|
1806
1806
|
type: string
|
|
@@ -1809,7 +1809,25 @@ paths:
|
|
|
1809
1809
|
- BOOL_FALSE
|
|
1810
1810
|
- BOOL_TRUE
|
|
1811
1811
|
default: BOOL_UNSET
|
|
1812
|
-
- name:
|
|
1812
|
+
- name: adminOnlyAtAll
|
|
1813
|
+
in: query
|
|
1814
|
+
required: false
|
|
1815
|
+
type: string
|
|
1816
|
+
enum:
|
|
1817
|
+
- BOOL_UNSET
|
|
1818
|
+
- BOOL_FALSE
|
|
1819
|
+
- BOOL_TRUE
|
|
1820
|
+
default: BOOL_UNSET
|
|
1821
|
+
- name: muteAll
|
|
1822
|
+
in: query
|
|
1823
|
+
required: false
|
|
1824
|
+
type: string
|
|
1825
|
+
enum:
|
|
1826
|
+
- BOOL_UNSET
|
|
1827
|
+
- BOOL_FALSE
|
|
1828
|
+
- BOOL_TRUE
|
|
1829
|
+
default: BOOL_UNSET
|
|
1830
|
+
- name: forbidRoomTopicEdit
|
|
1813
1831
|
in: query
|
|
1814
1832
|
required: false
|
|
1815
1833
|
type: string
|
|
@@ -2307,13 +2325,6 @@ definitions:
|
|
|
2307
2325
|
'@type':
|
|
2308
2326
|
type: string
|
|
2309
2327
|
additionalProperties: {}
|
|
2310
|
-
puppetBool_Optional:
|
|
2311
|
-
type: string
|
|
2312
|
-
enum:
|
|
2313
|
-
- BOOL_UNSET
|
|
2314
|
-
- BOOL_FALSE
|
|
2315
|
-
- BOOL_TRUE
|
|
2316
|
-
default: BOOL_UNSET
|
|
2317
2328
|
puppetBroadcastStatus:
|
|
2318
2329
|
type: string
|
|
2319
2330
|
enum:
|
|
@@ -3112,6 +3123,13 @@ definitions:
|
|
|
3112
3123
|
type: array
|
|
3113
3124
|
items:
|
|
3114
3125
|
type: string
|
|
3126
|
+
puppetOptionalBoolean:
|
|
3127
|
+
type: string
|
|
3128
|
+
enum:
|
|
3129
|
+
- BOOL_UNSET
|
|
3130
|
+
- BOOL_FALSE
|
|
3131
|
+
- BOOL_TRUE
|
|
3132
|
+
default: BOOL_UNSET
|
|
3115
3133
|
puppetPayloadType:
|
|
3116
3134
|
type: string
|
|
3117
3135
|
enum:
|
|
@@ -3432,12 +3450,16 @@ definitions:
|
|
|
3432
3450
|
puppetRoomPermissionResponse:
|
|
3433
3451
|
type: object
|
|
3434
3452
|
properties:
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3453
|
+
inviteConfirm:
|
|
3454
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3455
|
+
adminOnlyManage:
|
|
3456
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3457
|
+
adminOnlyAtAll:
|
|
3458
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3459
|
+
muteAll:
|
|
3460
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3461
|
+
forbidRoomTopicEdit:
|
|
3462
|
+
$ref: '#/definitions/puppetOptionalBoolean'
|
|
3441
3463
|
puppetRoomQRCodeResponse:
|
|
3442
3464
|
type: object
|
|
3443
3465
|
properties:
|