@juzi/wechaty-grpc 1.0.40 → 1.0.42
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 +6 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +33 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +50 -1
- 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 +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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 +6 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +33 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +50 -1
- 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 +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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 +6 -0
- package/out/wechaty/puppet/contact_pb.js +51 -2
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +336 -1
- package/out/wechaty/puppet.openapi.yaml +33 -1
- package/out/wechaty/puppet.swagger.json +50 -1
- 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
|
@@ -622,6 +622,11 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
622
622
|
getAdditionalInfo(): string;
|
|
623
623
|
setAdditionalInfo(value: string): void;
|
|
624
624
|
|
|
625
|
+
clearTagIdsList(): void;
|
|
626
|
+
getTagIdsList(): Array<string>;
|
|
627
|
+
setTagIdsList(value: Array<string>): void;
|
|
628
|
+
addTagIds(value: string, index?: number): string;
|
|
629
|
+
|
|
625
630
|
serializeBinary(): Uint8Array;
|
|
626
631
|
toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
|
|
627
632
|
static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
|
|
@@ -653,6 +658,7 @@ export namespace ContactPayloadModifyRequest {
|
|
|
653
658
|
coworker: boolean,
|
|
654
659
|
phonesList: Array<string>,
|
|
655
660
|
additionalInfo: string,
|
|
661
|
+
tagIdsList: Array<string>,
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
664
|
|
|
@@ -4395,7 +4395,7 @@ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(me
|
|
|
4395
4395
|
* @private {!Array<number>}
|
|
4396
4396
|
* @const
|
|
4397
4397
|
*/
|
|
4398
|
-
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18];
|
|
4398
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18,20];
|
|
4399
4399
|
|
|
4400
4400
|
|
|
4401
4401
|
|
|
@@ -4446,7 +4446,8 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
|
|
|
4446
4446
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
4447
4447
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4448
4448
|
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
4449
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
4449
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4450
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
|
|
4450
4451
|
};
|
|
4451
4452
|
|
|
4452
4453
|
if (includeInstance) {
|
|
@@ -4559,6 +4560,10 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
|
|
|
4559
4560
|
var value = /** @type {string} */ (reader.readString());
|
|
4560
4561
|
msg.setAdditionalInfo(value);
|
|
4561
4562
|
break;
|
|
4563
|
+
case 20:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.addTagIds(value);
|
|
4566
|
+
break;
|
|
4562
4567
|
default:
|
|
4563
4568
|
reader.skipField();
|
|
4564
4569
|
break;
|
|
@@ -4721,6 +4726,13 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
|
|
|
4721
4726
|
f
|
|
4722
4727
|
);
|
|
4723
4728
|
}
|
|
4729
|
+
f = message.getTagIdsList();
|
|
4730
|
+
if (f.length > 0) {
|
|
4731
|
+
writer.writeRepeatedString(
|
|
4732
|
+
20,
|
|
4733
|
+
f
|
|
4734
|
+
);
|
|
4735
|
+
}
|
|
4724
4736
|
};
|
|
4725
4737
|
|
|
4726
4738
|
|
|
@@ -5085,6 +5097,43 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = f
|
|
|
5085
5097
|
};
|
|
5086
5098
|
|
|
5087
5099
|
|
|
5100
|
+
/**
|
|
5101
|
+
* repeated string tag_ids = 20;
|
|
5102
|
+
* @return {!Array<string>}
|
|
5103
|
+
*/
|
|
5104
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTagIdsList = function() {
|
|
5105
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
/**
|
|
5110
|
+
* @param {!Array<string>} value
|
|
5111
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5112
|
+
*/
|
|
5113
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTagIdsList = function(value) {
|
|
5114
|
+
return jspb.Message.setField(this, 20, value || []);
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* @param {string} value
|
|
5120
|
+
* @param {number=} opt_index
|
|
5121
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5122
|
+
*/
|
|
5123
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addTagIds = function(value, opt_index) {
|
|
5124
|
+
return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
/**
|
|
5129
|
+
* Clears the list making it empty but non-null.
|
|
5130
|
+
* @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
|
|
5131
|
+
*/
|
|
5132
|
+
proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = function() {
|
|
5133
|
+
return this.setTagIdsList([]);
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
|
|
5088
5137
|
|
|
5089
5138
|
|
|
5090
5139
|
|
|
@@ -91,6 +91,9 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
91
91
|
getAdditionalInfo(): string;
|
|
92
92
|
setAdditionalInfo(value: string): void;
|
|
93
93
|
|
|
94
|
+
getRoomRemark(): string;
|
|
95
|
+
setRoomRemark(value: string): void;
|
|
96
|
+
|
|
94
97
|
serializeBinary(): Uint8Array;
|
|
95
98
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
96
99
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -111,6 +114,7 @@ export namespace RoomPayloadResponse {
|
|
|
111
114
|
memberIdsList: Array<string>,
|
|
112
115
|
handle: string,
|
|
113
116
|
additionalInfo: string,
|
|
117
|
+
roomRemark: string,
|
|
114
118
|
}
|
|
115
119
|
}
|
|
116
120
|
|
|
@@ -482,3 +486,43 @@ export namespace RoomAnnounceResponse {
|
|
|
482
486
|
}
|
|
483
487
|
}
|
|
484
488
|
|
|
489
|
+
export class RoomRemarkRequest extends jspb.Message {
|
|
490
|
+
getId(): string;
|
|
491
|
+
setId(value: string): void;
|
|
492
|
+
|
|
493
|
+
getRemark(): string;
|
|
494
|
+
setRemark(value: string): void;
|
|
495
|
+
|
|
496
|
+
serializeBinary(): Uint8Array;
|
|
497
|
+
toObject(includeInstance?: boolean): RoomRemarkRequest.AsObject;
|
|
498
|
+
static toObject(includeInstance: boolean, msg: RoomRemarkRequest): RoomRemarkRequest.AsObject;
|
|
499
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
500
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
501
|
+
static serializeBinaryToWriter(message: RoomRemarkRequest, writer: jspb.BinaryWriter): void;
|
|
502
|
+
static deserializeBinary(bytes: Uint8Array): RoomRemarkRequest;
|
|
503
|
+
static deserializeBinaryFromReader(message: RoomRemarkRequest, reader: jspb.BinaryReader): RoomRemarkRequest;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export namespace RoomRemarkRequest {
|
|
507
|
+
export type AsObject = {
|
|
508
|
+
id: string,
|
|
509
|
+
remark: string,
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export class RoomRemarkResponse extends jspb.Message {
|
|
514
|
+
serializeBinary(): Uint8Array;
|
|
515
|
+
toObject(includeInstance?: boolean): RoomRemarkResponse.AsObject;
|
|
516
|
+
static toObject(includeInstance: boolean, msg: RoomRemarkResponse): RoomRemarkResponse.AsObject;
|
|
517
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
518
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
519
|
+
static serializeBinaryToWriter(message: RoomRemarkResponse, writer: jspb.BinaryWriter): void;
|
|
520
|
+
static deserializeBinary(bytes: Uint8Array): RoomRemarkResponse;
|
|
521
|
+
static deserializeBinaryFromReader(message: RoomRemarkResponse, reader: jspb.BinaryReader): RoomRemarkResponse;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export namespace RoomRemarkResponse {
|
|
525
|
+
export type AsObject = {
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.wechaty.puppet.RoomQRCodeRequest', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.wechaty.puppet.RoomQRCodeResponse', null, global);
|
|
36
36
|
goog.exportSymbol('proto.wechaty.puppet.RoomQuitRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.wechaty.puppet.RoomQuitResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomRemarkRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomRemarkResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.wechaty.puppet.RoomTopicRequest', null, global);
|
|
39
41
|
goog.exportSymbol('proto.wechaty.puppet.RoomTopicResponse', null, global);
|
|
40
42
|
/**
|
|
@@ -457,6 +459,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
457
459
|
*/
|
|
458
460
|
proto.wechaty.puppet.RoomAnnounceResponse.displayName = 'proto.wechaty.puppet.RoomAnnounceResponse';
|
|
459
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Generated by JsPbCodeGenerator.
|
|
464
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
465
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
466
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
467
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
468
|
+
* valid.
|
|
469
|
+
* @extends {jspb.Message}
|
|
470
|
+
* @constructor
|
|
471
|
+
*/
|
|
472
|
+
proto.wechaty.puppet.RoomRemarkRequest = function(opt_data) {
|
|
473
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
474
|
+
};
|
|
475
|
+
goog.inherits(proto.wechaty.puppet.RoomRemarkRequest, jspb.Message);
|
|
476
|
+
if (goog.DEBUG && !COMPILED) {
|
|
477
|
+
/**
|
|
478
|
+
* @public
|
|
479
|
+
* @override
|
|
480
|
+
*/
|
|
481
|
+
proto.wechaty.puppet.RoomRemarkRequest.displayName = 'proto.wechaty.puppet.RoomRemarkRequest';
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Generated by JsPbCodeGenerator.
|
|
485
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
486
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
487
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
488
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
489
|
+
* valid.
|
|
490
|
+
* @extends {jspb.Message}
|
|
491
|
+
* @constructor
|
|
492
|
+
*/
|
|
493
|
+
proto.wechaty.puppet.RoomRemarkResponse = function(opt_data) {
|
|
494
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
495
|
+
};
|
|
496
|
+
goog.inherits(proto.wechaty.puppet.RoomRemarkResponse, jspb.Message);
|
|
497
|
+
if (goog.DEBUG && !COMPILED) {
|
|
498
|
+
/**
|
|
499
|
+
* @public
|
|
500
|
+
* @override
|
|
501
|
+
*/
|
|
502
|
+
proto.wechaty.puppet.RoomRemarkResponse.displayName = 'proto.wechaty.puppet.RoomRemarkResponse';
|
|
503
|
+
}
|
|
460
504
|
|
|
461
505
|
|
|
462
506
|
|
|
@@ -890,7 +934,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
890
934
|
adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
891
935
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
892
936
|
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
893
|
-
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
937
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
938
|
+
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
894
939
|
};
|
|
895
940
|
|
|
896
941
|
if (includeInstance) {
|
|
@@ -959,6 +1004,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
959
1004
|
var value = /** @type {string} */ (reader.readString());
|
|
960
1005
|
msg.setAdditionalInfo(value);
|
|
961
1006
|
break;
|
|
1007
|
+
case 9:
|
|
1008
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1009
|
+
msg.setRoomRemark(value);
|
|
1010
|
+
break;
|
|
962
1011
|
default:
|
|
963
1012
|
reader.skipField();
|
|
964
1013
|
break;
|
|
@@ -1044,6 +1093,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1044
1093
|
f
|
|
1045
1094
|
);
|
|
1046
1095
|
}
|
|
1096
|
+
f = message.getRoomRemark();
|
|
1097
|
+
if (f.length > 0) {
|
|
1098
|
+
writer.writeString(
|
|
1099
|
+
9,
|
|
1100
|
+
f
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1047
1103
|
};
|
|
1048
1104
|
|
|
1049
1105
|
|
|
@@ -1229,6 +1285,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(
|
|
|
1229
1285
|
};
|
|
1230
1286
|
|
|
1231
1287
|
|
|
1288
|
+
/**
|
|
1289
|
+
* optional string room_remark = 9;
|
|
1290
|
+
* @return {string}
|
|
1291
|
+
*/
|
|
1292
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getRoomRemark = function() {
|
|
1293
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* @param {string} value
|
|
1299
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1300
|
+
*/
|
|
1301
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setRoomRemark = function(value) {
|
|
1302
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
|
|
1232
1306
|
|
|
1233
1307
|
|
|
1234
1308
|
|
|
@@ -3724,4 +3798,265 @@ proto.wechaty.puppet.RoomAnnounceResponse.prototype.setText = function(value) {
|
|
|
3724
3798
|
};
|
|
3725
3799
|
|
|
3726
3800
|
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3805
|
+
/**
|
|
3806
|
+
* Creates an object representation of this proto.
|
|
3807
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3808
|
+
* Optional fields that are not set will be set to undefined.
|
|
3809
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3810
|
+
* For the list of reserved names please see:
|
|
3811
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3812
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3813
|
+
* JSPB instance for transitional soy proto support:
|
|
3814
|
+
* http://goto/soy-param-migration
|
|
3815
|
+
* @return {!Object}
|
|
3816
|
+
*/
|
|
3817
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3818
|
+
return proto.wechaty.puppet.RoomRemarkRequest.toObject(opt_includeInstance, this);
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* Static version of the {@see toObject} method.
|
|
3824
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3825
|
+
* the JSPB instance for transitional soy proto support:
|
|
3826
|
+
* http://goto/soy-param-migration
|
|
3827
|
+
* @param {!proto.wechaty.puppet.RoomRemarkRequest} msg The msg instance to transform.
|
|
3828
|
+
* @return {!Object}
|
|
3829
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3830
|
+
*/
|
|
3831
|
+
proto.wechaty.puppet.RoomRemarkRequest.toObject = function(includeInstance, msg) {
|
|
3832
|
+
var f, obj = {
|
|
3833
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3834
|
+
remark: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
if (includeInstance) {
|
|
3838
|
+
obj.$jspbMessageInstance = msg;
|
|
3839
|
+
}
|
|
3840
|
+
return obj;
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
/**
|
|
3846
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3847
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3848
|
+
* @return {!proto.wechaty.puppet.RoomRemarkRequest}
|
|
3849
|
+
*/
|
|
3850
|
+
proto.wechaty.puppet.RoomRemarkRequest.deserializeBinary = function(bytes) {
|
|
3851
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3852
|
+
var msg = new proto.wechaty.puppet.RoomRemarkRequest;
|
|
3853
|
+
return proto.wechaty.puppet.RoomRemarkRequest.deserializeBinaryFromReader(msg, reader);
|
|
3854
|
+
};
|
|
3855
|
+
|
|
3856
|
+
|
|
3857
|
+
/**
|
|
3858
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3859
|
+
* given reader into the given message object.
|
|
3860
|
+
* @param {!proto.wechaty.puppet.RoomRemarkRequest} msg The message object to deserialize into.
|
|
3861
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3862
|
+
* @return {!proto.wechaty.puppet.RoomRemarkRequest}
|
|
3863
|
+
*/
|
|
3864
|
+
proto.wechaty.puppet.RoomRemarkRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3865
|
+
while (reader.nextField()) {
|
|
3866
|
+
if (reader.isEndGroup()) {
|
|
3867
|
+
break;
|
|
3868
|
+
}
|
|
3869
|
+
var field = reader.getFieldNumber();
|
|
3870
|
+
switch (field) {
|
|
3871
|
+
case 1:
|
|
3872
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3873
|
+
msg.setId(value);
|
|
3874
|
+
break;
|
|
3875
|
+
case 2:
|
|
3876
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3877
|
+
msg.setRemark(value);
|
|
3878
|
+
break;
|
|
3879
|
+
default:
|
|
3880
|
+
reader.skipField();
|
|
3881
|
+
break;
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
return msg;
|
|
3885
|
+
};
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
/**
|
|
3889
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3890
|
+
* @return {!Uint8Array}
|
|
3891
|
+
*/
|
|
3892
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.serializeBinary = function() {
|
|
3893
|
+
var writer = new jspb.BinaryWriter();
|
|
3894
|
+
proto.wechaty.puppet.RoomRemarkRequest.serializeBinaryToWriter(this, writer);
|
|
3895
|
+
return writer.getResultBuffer();
|
|
3896
|
+
};
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3901
|
+
* format), writing to the given BinaryWriter.
|
|
3902
|
+
* @param {!proto.wechaty.puppet.RoomRemarkRequest} message
|
|
3903
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3904
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3905
|
+
*/
|
|
3906
|
+
proto.wechaty.puppet.RoomRemarkRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3907
|
+
var f = undefined;
|
|
3908
|
+
f = message.getId();
|
|
3909
|
+
if (f.length > 0) {
|
|
3910
|
+
writer.writeString(
|
|
3911
|
+
1,
|
|
3912
|
+
f
|
|
3913
|
+
);
|
|
3914
|
+
}
|
|
3915
|
+
f = message.getRemark();
|
|
3916
|
+
if (f.length > 0) {
|
|
3917
|
+
writer.writeString(
|
|
3918
|
+
2,
|
|
3919
|
+
f
|
|
3920
|
+
);
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* optional string id = 1;
|
|
3927
|
+
* @return {string}
|
|
3928
|
+
*/
|
|
3929
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.getId = function() {
|
|
3930
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* @param {string} value
|
|
3936
|
+
* @return {!proto.wechaty.puppet.RoomRemarkRequest} returns this
|
|
3937
|
+
*/
|
|
3938
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.setId = function(value) {
|
|
3939
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* optional string remark = 2;
|
|
3945
|
+
* @return {string}
|
|
3946
|
+
*/
|
|
3947
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.getRemark = function() {
|
|
3948
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* @param {string} value
|
|
3954
|
+
* @return {!proto.wechaty.puppet.RoomRemarkRequest} returns this
|
|
3955
|
+
*/
|
|
3956
|
+
proto.wechaty.puppet.RoomRemarkRequest.prototype.setRemark = function(value) {
|
|
3957
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3965
|
+
/**
|
|
3966
|
+
* Creates an object representation of this proto.
|
|
3967
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3968
|
+
* Optional fields that are not set will be set to undefined.
|
|
3969
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3970
|
+
* For the list of reserved names please see:
|
|
3971
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3972
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3973
|
+
* JSPB instance for transitional soy proto support:
|
|
3974
|
+
* http://goto/soy-param-migration
|
|
3975
|
+
* @return {!Object}
|
|
3976
|
+
*/
|
|
3977
|
+
proto.wechaty.puppet.RoomRemarkResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3978
|
+
return proto.wechaty.puppet.RoomRemarkResponse.toObject(opt_includeInstance, this);
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3981
|
+
|
|
3982
|
+
/**
|
|
3983
|
+
* Static version of the {@see toObject} method.
|
|
3984
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3985
|
+
* the JSPB instance for transitional soy proto support:
|
|
3986
|
+
* http://goto/soy-param-migration
|
|
3987
|
+
* @param {!proto.wechaty.puppet.RoomRemarkResponse} msg The msg instance to transform.
|
|
3988
|
+
* @return {!Object}
|
|
3989
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3990
|
+
*/
|
|
3991
|
+
proto.wechaty.puppet.RoomRemarkResponse.toObject = function(includeInstance, msg) {
|
|
3992
|
+
var f, obj = {
|
|
3993
|
+
|
|
3994
|
+
};
|
|
3995
|
+
|
|
3996
|
+
if (includeInstance) {
|
|
3997
|
+
obj.$jspbMessageInstance = msg;
|
|
3998
|
+
}
|
|
3999
|
+
return obj;
|
|
4000
|
+
};
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
/**
|
|
4005
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4006
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4007
|
+
* @return {!proto.wechaty.puppet.RoomRemarkResponse}
|
|
4008
|
+
*/
|
|
4009
|
+
proto.wechaty.puppet.RoomRemarkResponse.deserializeBinary = function(bytes) {
|
|
4010
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4011
|
+
var msg = new proto.wechaty.puppet.RoomRemarkResponse;
|
|
4012
|
+
return proto.wechaty.puppet.RoomRemarkResponse.deserializeBinaryFromReader(msg, reader);
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4018
|
+
* given reader into the given message object.
|
|
4019
|
+
* @param {!proto.wechaty.puppet.RoomRemarkResponse} msg The message object to deserialize into.
|
|
4020
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4021
|
+
* @return {!proto.wechaty.puppet.RoomRemarkResponse}
|
|
4022
|
+
*/
|
|
4023
|
+
proto.wechaty.puppet.RoomRemarkResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4024
|
+
while (reader.nextField()) {
|
|
4025
|
+
if (reader.isEndGroup()) {
|
|
4026
|
+
break;
|
|
4027
|
+
}
|
|
4028
|
+
var field = reader.getFieldNumber();
|
|
4029
|
+
switch (field) {
|
|
4030
|
+
default:
|
|
4031
|
+
reader.skipField();
|
|
4032
|
+
break;
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
return msg;
|
|
4036
|
+
};
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
/**
|
|
4040
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4041
|
+
* @return {!Uint8Array}
|
|
4042
|
+
*/
|
|
4043
|
+
proto.wechaty.puppet.RoomRemarkResponse.prototype.serializeBinary = function() {
|
|
4044
|
+
var writer = new jspb.BinaryWriter();
|
|
4045
|
+
proto.wechaty.puppet.RoomRemarkResponse.serializeBinaryToWriter(this, writer);
|
|
4046
|
+
return writer.getResultBuffer();
|
|
4047
|
+
};
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4052
|
+
* format), writing to the given BinaryWriter.
|
|
4053
|
+
* @param {!proto.wechaty.puppet.RoomRemarkResponse} message
|
|
4054
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4056
|
+
*/
|
|
4057
|
+
proto.wechaty.puppet.RoomRemarkResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4058
|
+
var f = undefined;
|
|
4059
|
+
};
|
|
4060
|
+
|
|
4061
|
+
|
|
3727
4062
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.42
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -423,6 +423,11 @@ paths:
|
|
|
423
423
|
additionalInfo:
|
|
424
424
|
type: string
|
|
425
425
|
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
426
|
+
tagIds:
|
|
427
|
+
type: array
|
|
428
|
+
items:
|
|
429
|
+
type: string
|
|
430
|
+
title: 标签(的id)
|
|
426
431
|
tags:
|
|
427
432
|
- Puppet
|
|
428
433
|
'/conversation/{conversationId}/read':
|
|
@@ -1695,6 +1700,29 @@ paths:
|
|
|
1695
1700
|
type: string
|
|
1696
1701
|
tags:
|
|
1697
1702
|
- Puppet
|
|
1703
|
+
'/rooms/{id}/remark':
|
|
1704
|
+
put:
|
|
1705
|
+
operationId: Puppet_RoomRemark
|
|
1706
|
+
responses:
|
|
1707
|
+
'200':
|
|
1708
|
+
description: A successful response.
|
|
1709
|
+
schema:
|
|
1710
|
+
$ref: '#/definitions/puppetRoomRemarkResponse'
|
|
1711
|
+
default:
|
|
1712
|
+
description: An unexpected error response.
|
|
1713
|
+
schema:
|
|
1714
|
+
$ref: '#/definitions/rpcStatus'
|
|
1715
|
+
parameters:
|
|
1716
|
+
- name: id
|
|
1717
|
+
in: path
|
|
1718
|
+
required: true
|
|
1719
|
+
type: string
|
|
1720
|
+
- name: remark
|
|
1721
|
+
in: query
|
|
1722
|
+
required: false
|
|
1723
|
+
type: string
|
|
1724
|
+
tags:
|
|
1725
|
+
- Puppet
|
|
1698
1726
|
'/rooms/{id}/topic':
|
|
1699
1727
|
get:
|
|
1700
1728
|
operationId: Puppet_RoomTopic
|
|
@@ -3299,6 +3327,8 @@ definitions:
|
|
|
3299
3327
|
title: IM内部id,企微中为群的chat_id
|
|
3300
3328
|
additionalInfo:
|
|
3301
3329
|
type: string
|
|
3330
|
+
roomRemark:
|
|
3331
|
+
type: string
|
|
3302
3332
|
puppetRoomQRCodeResponse:
|
|
3303
3333
|
type: object
|
|
3304
3334
|
properties:
|
|
@@ -3306,6 +3336,8 @@ definitions:
|
|
|
3306
3336
|
type: string
|
|
3307
3337
|
puppetRoomQuitResponse:
|
|
3308
3338
|
type: object
|
|
3339
|
+
puppetRoomRemarkResponse:
|
|
3340
|
+
type: object
|
|
3309
3341
|
puppetRoomTopicResponse:
|
|
3310
3342
|
type: object
|
|
3311
3343
|
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.42",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -619,6 +619,13 @@
|
|
|
619
619
|
"additionalInfo": {
|
|
620
620
|
"type": "string",
|
|
621
621
|
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
622
|
+
},
|
|
623
|
+
"tagIds": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"title": "标签(的id)"
|
|
622
629
|
}
|
|
623
630
|
}
|
|
624
631
|
}
|
|
@@ -2516,6 +2523,42 @@
|
|
|
2516
2523
|
]
|
|
2517
2524
|
}
|
|
2518
2525
|
},
|
|
2526
|
+
"/rooms/{id}/remark": {
|
|
2527
|
+
"put": {
|
|
2528
|
+
"operationId": "Puppet_RoomRemark",
|
|
2529
|
+
"responses": {
|
|
2530
|
+
"200": {
|
|
2531
|
+
"description": "A successful response.",
|
|
2532
|
+
"schema": {
|
|
2533
|
+
"$ref": "#/definitions/puppetRoomRemarkResponse"
|
|
2534
|
+
}
|
|
2535
|
+
},
|
|
2536
|
+
"default": {
|
|
2537
|
+
"description": "An unexpected error response.",
|
|
2538
|
+
"schema": {
|
|
2539
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"parameters": [
|
|
2544
|
+
{
|
|
2545
|
+
"name": "id",
|
|
2546
|
+
"in": "path",
|
|
2547
|
+
"required": true,
|
|
2548
|
+
"type": "string"
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"name": "remark",
|
|
2552
|
+
"in": "query",
|
|
2553
|
+
"required": false,
|
|
2554
|
+
"type": "string"
|
|
2555
|
+
}
|
|
2556
|
+
],
|
|
2557
|
+
"tags": [
|
|
2558
|
+
"Puppet"
|
|
2559
|
+
]
|
|
2560
|
+
}
|
|
2561
|
+
},
|
|
2519
2562
|
"/rooms/{id}/topic": {
|
|
2520
2563
|
"get": {
|
|
2521
2564
|
"operationId": "Puppet_RoomTopic",
|
|
@@ -4635,6 +4678,9 @@
|
|
|
4635
4678
|
},
|
|
4636
4679
|
"additionalInfo": {
|
|
4637
4680
|
"type": "string"
|
|
4681
|
+
},
|
|
4682
|
+
"roomRemark": {
|
|
4683
|
+
"type": "string"
|
|
4638
4684
|
}
|
|
4639
4685
|
}
|
|
4640
4686
|
},
|
|
@@ -4649,6 +4695,9 @@
|
|
|
4649
4695
|
"puppetRoomQuitResponse": {
|
|
4650
4696
|
"type": "object"
|
|
4651
4697
|
},
|
|
4698
|
+
"puppetRoomRemarkResponse": {
|
|
4699
|
+
"type": "object"
|
|
4700
|
+
},
|
|
4652
4701
|
"puppetRoomTopicResponse": {
|
|
4653
4702
|
"type": "object",
|
|
4654
4703
|
"properties": {
|