@juzi/wechaty-grpc 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +7 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +10 -1
- package/dist/cjs/proto/wechaty/puppet/contact.proto +19 -18
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +6 -5
- package/dist/cjs/proto/wechaty/puppet/room.proto +6 -5
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +7 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +10 -1
- package/dist/esm/proto/wechaty/puppet/contact.proto +19 -18
- package/dist/esm/proto/wechaty/puppet/room-member.proto +6 -5
- package/dist/esm/proto/wechaty/puppet/room.proto +6 -5
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/out/wechaty/puppet/contact_pb.js +31 -1
- package/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/out/wechaty/puppet/room-member_pb.js +31 -1
- package/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/out/wechaty/puppet/room_pb.js +31 -1
- package/out/wechaty/puppet.openapi.yaml +7 -1
- package/out/wechaty/puppet.swagger.json +10 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -119,6 +119,9 @@ export class ContactPayloadResponse extends jspb.Message {
|
|
|
119
119
|
setPhonesList(value: Array<string>): void;
|
|
120
120
|
addPhones(value: string, index?: number): string;
|
|
121
121
|
|
|
122
|
+
getAdditionalInfo(): string;
|
|
123
|
+
setAdditionalInfo(value: string): void;
|
|
124
|
+
|
|
122
125
|
serializeBinary(): Uint8Array;
|
|
123
126
|
toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
|
|
124
127
|
static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
|
|
@@ -149,6 +152,7 @@ export namespace ContactPayloadResponse {
|
|
|
149
152
|
description: string,
|
|
150
153
|
coworker: boolean,
|
|
151
154
|
phonesList: Array<string>,
|
|
155
|
+
additionalInfo: string,
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
|
|
@@ -902,7 +902,8 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
|
|
|
902
902
|
title: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
903
903
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
904
904
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
905
|
-
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f
|
|
905
|
+
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
906
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
906
907
|
};
|
|
907
908
|
|
|
908
909
|
if (includeInstance) {
|
|
@@ -1011,6 +1012,10 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
|
|
|
1011
1012
|
var value = /** @type {string} */ (reader.readString());
|
|
1012
1013
|
msg.addPhones(value);
|
|
1013
1014
|
break;
|
|
1015
|
+
case 19:
|
|
1016
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1017
|
+
msg.setAdditionalInfo(value);
|
|
1018
|
+
break;
|
|
1014
1019
|
default:
|
|
1015
1020
|
reader.skipField();
|
|
1016
1021
|
break;
|
|
@@ -1166,6 +1171,13 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
|
|
|
1166
1171
|
f
|
|
1167
1172
|
);
|
|
1168
1173
|
}
|
|
1174
|
+
f = message.getAdditionalInfo();
|
|
1175
|
+
if (f.length > 0) {
|
|
1176
|
+
writer.writeString(
|
|
1177
|
+
19,
|
|
1178
|
+
f
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1169
1181
|
};
|
|
1170
1182
|
|
|
1171
1183
|
|
|
@@ -1512,6 +1524,24 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearPhonesList = function
|
|
|
1512
1524
|
};
|
|
1513
1525
|
|
|
1514
1526
|
|
|
1527
|
+
/**
|
|
1528
|
+
* optional string additional_info = 19;
|
|
1529
|
+
* @return {string}
|
|
1530
|
+
*/
|
|
1531
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {string} value
|
|
1538
|
+
* @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
|
|
1539
|
+
*/
|
|
1540
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1541
|
+
return jspb.Message.setProto3StringField(this, 19, value);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1515
1545
|
|
|
1516
1546
|
|
|
1517
1547
|
|
|
@@ -43,6 +43,9 @@ export class RoomMemberPayloadResponse extends jspb.Message {
|
|
|
43
43
|
getName(): string;
|
|
44
44
|
setName(value: string): void;
|
|
45
45
|
|
|
46
|
+
getAdditionalInfo(): string;
|
|
47
|
+
setAdditionalInfo(value: string): void;
|
|
48
|
+
|
|
46
49
|
serializeBinary(): Uint8Array;
|
|
47
50
|
toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
|
|
48
51
|
static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
|
|
@@ -60,6 +63,7 @@ export namespace RoomMemberPayloadResponse {
|
|
|
60
63
|
inviterId: string,
|
|
61
64
|
avatar: string,
|
|
62
65
|
name: string,
|
|
66
|
+
additionalInfo: string,
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -299,7 +299,8 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject = function(includeInstan
|
|
|
299
299
|
roomAlias: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
300
300
|
inviterId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
301
301
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
302
|
-
name: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
302
|
+
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
303
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
303
304
|
};
|
|
304
305
|
|
|
305
306
|
if (includeInstance) {
|
|
@@ -356,6 +357,10 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader = fun
|
|
|
356
357
|
var value = /** @type {string} */ (reader.readString());
|
|
357
358
|
msg.setName(value);
|
|
358
359
|
break;
|
|
360
|
+
case 6:
|
|
361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
362
|
+
msg.setAdditionalInfo(value);
|
|
363
|
+
break;
|
|
359
364
|
default:
|
|
360
365
|
reader.skipField();
|
|
361
366
|
break;
|
|
@@ -420,6 +425,13 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter = functio
|
|
|
420
425
|
f
|
|
421
426
|
);
|
|
422
427
|
}
|
|
428
|
+
f = message.getAdditionalInfo();
|
|
429
|
+
if (f.length > 0) {
|
|
430
|
+
writer.writeString(
|
|
431
|
+
6,
|
|
432
|
+
f
|
|
433
|
+
);
|
|
434
|
+
}
|
|
423
435
|
};
|
|
424
436
|
|
|
425
437
|
|
|
@@ -513,6 +525,24 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setName = function(valu
|
|
|
513
525
|
};
|
|
514
526
|
|
|
515
527
|
|
|
528
|
+
/**
|
|
529
|
+
* optional string additional_info = 6;
|
|
530
|
+
* @return {string}
|
|
531
|
+
*/
|
|
532
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @param {string} value
|
|
539
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
|
|
540
|
+
*/
|
|
541
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
542
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
|
|
516
546
|
|
|
517
547
|
|
|
518
548
|
|
|
@@ -88,6 +88,9 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
88
88
|
getHandle(): string;
|
|
89
89
|
setHandle(value: string): void;
|
|
90
90
|
|
|
91
|
+
getAdditionalInfo(): string;
|
|
92
|
+
setAdditionalInfo(value: string): void;
|
|
93
|
+
|
|
91
94
|
serializeBinary(): Uint8Array;
|
|
92
95
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
93
96
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -107,6 +110,7 @@ export namespace RoomPayloadResponse {
|
|
|
107
110
|
adminIdsList: Array<string>,
|
|
108
111
|
memberIdsList: Array<string>,
|
|
109
112
|
handle: string,
|
|
113
|
+
additionalInfo: string,
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
|
|
@@ -889,7 +889,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
889
889
|
ownerId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
890
890
|
adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
891
891
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
892
|
-
handle: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
892
|
+
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
893
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
893
894
|
};
|
|
894
895
|
|
|
895
896
|
if (includeInstance) {
|
|
@@ -954,6 +955,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
954
955
|
var value = /** @type {string} */ (reader.readString());
|
|
955
956
|
msg.setHandle(value);
|
|
956
957
|
break;
|
|
958
|
+
case 8:
|
|
959
|
+
var value = /** @type {string} */ (reader.readString());
|
|
960
|
+
msg.setAdditionalInfo(value);
|
|
961
|
+
break;
|
|
957
962
|
default:
|
|
958
963
|
reader.skipField();
|
|
959
964
|
break;
|
|
@@ -1032,6 +1037,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1032
1037
|
f
|
|
1033
1038
|
);
|
|
1034
1039
|
}
|
|
1040
|
+
f = message.getAdditionalInfo();
|
|
1041
|
+
if (f.length > 0) {
|
|
1042
|
+
writer.writeString(
|
|
1043
|
+
8,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1035
1047
|
};
|
|
1036
1048
|
|
|
1037
1049
|
|
|
@@ -1199,6 +1211,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setHandle = function(value) {
|
|
|
1199
1211
|
};
|
|
1200
1212
|
|
|
1201
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* optional string additional_info = 8;
|
|
1216
|
+
* @return {string}
|
|
1217
|
+
*/
|
|
1218
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1219
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* @param {string} value
|
|
1225
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1226
|
+
*/
|
|
1227
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1228
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
|
|
1202
1232
|
|
|
1203
1233
|
|
|
1204
1234
|
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.7
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1813,6 +1813,8 @@ definitions:
|
|
|
1813
1813
|
type: array
|
|
1814
1814
|
items:
|
|
1815
1815
|
type: string
|
|
1816
|
+
additionalInfo:
|
|
1817
|
+
type: string
|
|
1816
1818
|
puppetContactPhoneResponse:
|
|
1817
1819
|
type: object
|
|
1818
1820
|
properties:
|
|
@@ -2416,6 +2418,8 @@ definitions:
|
|
|
2416
2418
|
type: string
|
|
2417
2419
|
name:
|
|
2418
2420
|
type: string
|
|
2421
|
+
additionalInfo:
|
|
2422
|
+
type: string
|
|
2419
2423
|
puppetRoomPayloadResponse:
|
|
2420
2424
|
type: object
|
|
2421
2425
|
properties:
|
|
@@ -2437,6 +2441,8 @@ definitions:
|
|
|
2437
2441
|
type: string
|
|
2438
2442
|
handle:
|
|
2439
2443
|
type: string
|
|
2444
|
+
additionalInfo:
|
|
2445
|
+
type: string
|
|
2440
2446
|
puppetRoomQRCodeResponse:
|
|
2441
2447
|
type: object
|
|
2442
2448
|
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.7",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -2699,6 +2699,9 @@
|
|
|
2699
2699
|
"items": {
|
|
2700
2700
|
"type": "string"
|
|
2701
2701
|
}
|
|
2702
|
+
},
|
|
2703
|
+
"additionalInfo": {
|
|
2704
|
+
"type": "string"
|
|
2702
2705
|
}
|
|
2703
2706
|
}
|
|
2704
2707
|
},
|
|
@@ -3468,6 +3471,9 @@
|
|
|
3468
3471
|
},
|
|
3469
3472
|
"name": {
|
|
3470
3473
|
"type": "string"
|
|
3474
|
+
},
|
|
3475
|
+
"additionalInfo": {
|
|
3476
|
+
"type": "string"
|
|
3471
3477
|
}
|
|
3472
3478
|
}
|
|
3473
3479
|
},
|
|
@@ -3500,6 +3506,9 @@
|
|
|
3500
3506
|
},
|
|
3501
3507
|
"handle": {
|
|
3502
3508
|
"type": "string"
|
|
3509
|
+
},
|
|
3510
|
+
"additionalInfo": {
|
|
3511
|
+
"type": "string"
|
|
3503
3512
|
}
|
|
3504
3513
|
}
|
|
3505
3514
|
},
|
|
@@ -29,18 +29,18 @@ message ContactPayloadRequest {
|
|
|
29
29
|
string id = 1;
|
|
30
30
|
}
|
|
31
31
|
message ContactPayloadResponse {
|
|
32
|
-
string
|
|
33
|
-
ContactGender
|
|
34
|
-
ContactType
|
|
35
|
-
string
|
|
36
|
-
string
|
|
37
|
-
string
|
|
38
|
-
string
|
|
39
|
-
string
|
|
40
|
-
bool
|
|
41
|
-
string
|
|
42
|
-
string
|
|
43
|
-
bool
|
|
32
|
+
string id = 1;
|
|
33
|
+
ContactGender gender = 2;
|
|
34
|
+
ContactType type = 3;
|
|
35
|
+
string name = 4;
|
|
36
|
+
string avatar = 5;
|
|
37
|
+
string address = 6;
|
|
38
|
+
string alias = 7;
|
|
39
|
+
string city = 8;
|
|
40
|
+
bool friend = 9;
|
|
41
|
+
string province = 10;
|
|
42
|
+
string signature = 11;
|
|
43
|
+
bool star = 12;
|
|
44
44
|
/**
|
|
45
45
|
* Huan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.
|
|
46
46
|
* so we can just rename `weixin` to `handle` here.
|
|
@@ -52,12 +52,13 @@ message ContactPayloadResponse {
|
|
|
52
52
|
*
|
|
53
53
|
* TODO: rename `weixin` to `handle` in v2.0.0
|
|
54
54
|
*/
|
|
55
|
-
string
|
|
56
|
-
string
|
|
57
|
-
string
|
|
58
|
-
string
|
|
59
|
-
bool
|
|
60
|
-
repeated string
|
|
55
|
+
string weixin = 13;
|
|
56
|
+
string corporation = 14;
|
|
57
|
+
string title = 15;
|
|
58
|
+
string description = 16;
|
|
59
|
+
bool coworker = 17;
|
|
60
|
+
repeated string phones = 18;
|
|
61
|
+
string additional_info = 19;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
message ContactSelfQRCodeRequest {}
|
|
@@ -10,11 +10,12 @@ message RoomMemberPayloadRequest {
|
|
|
10
10
|
string member_id = 2;
|
|
11
11
|
}
|
|
12
12
|
message RoomMemberPayloadResponse {
|
|
13
|
-
string id
|
|
14
|
-
string room_alias
|
|
15
|
-
string inviter_id
|
|
16
|
-
string avatar
|
|
17
|
-
string name
|
|
13
|
+
string id = 1;
|
|
14
|
+
string room_alias = 2;
|
|
15
|
+
string inviter_id = 3;
|
|
16
|
+
string avatar = 4;
|
|
17
|
+
string name = 5;
|
|
18
|
+
string additional_info = 6;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
message RoomMemberListRequest {
|
|
@@ -16,13 +16,14 @@ message RoomPayloadRequest {
|
|
|
16
16
|
string id = 1;
|
|
17
17
|
}
|
|
18
18
|
message RoomPayloadResponse {
|
|
19
|
-
string id
|
|
20
|
-
string topic
|
|
21
|
-
string avatar
|
|
22
|
-
string owner_id
|
|
19
|
+
string id = 1;
|
|
20
|
+
string topic = 2;
|
|
21
|
+
string avatar = 3;
|
|
22
|
+
string owner_id = 4;
|
|
23
23
|
repeated string admin_ids = 5;
|
|
24
24
|
repeated string member_ids = 6;
|
|
25
|
-
string handle
|
|
25
|
+
string handle = 7;
|
|
26
|
+
string additional_info = 8;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
message RoomAddRequest {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.packageJson = void 0;
|
|
4
4
|
exports.packageJson = {
|
|
5
5
|
"name": "@juzi/wechaty-grpc",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.7",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -119,6 +119,9 @@ export class ContactPayloadResponse extends jspb.Message {
|
|
|
119
119
|
setPhonesList(value: Array<string>): void;
|
|
120
120
|
addPhones(value: string, index?: number): string;
|
|
121
121
|
|
|
122
|
+
getAdditionalInfo(): string;
|
|
123
|
+
setAdditionalInfo(value: string): void;
|
|
124
|
+
|
|
122
125
|
serializeBinary(): Uint8Array;
|
|
123
126
|
toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
|
|
124
127
|
static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
|
|
@@ -149,6 +152,7 @@ export namespace ContactPayloadResponse {
|
|
|
149
152
|
description: string,
|
|
150
153
|
coworker: boolean,
|
|
151
154
|
phonesList: Array<string>,
|
|
155
|
+
additionalInfo: string,
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
|
|
@@ -902,7 +902,8 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
|
|
|
902
902
|
title: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
903
903
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
904
904
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
905
|
-
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f
|
|
905
|
+
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
906
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
906
907
|
};
|
|
907
908
|
|
|
908
909
|
if (includeInstance) {
|
|
@@ -1011,6 +1012,10 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
|
|
|
1011
1012
|
var value = /** @type {string} */ (reader.readString());
|
|
1012
1013
|
msg.addPhones(value);
|
|
1013
1014
|
break;
|
|
1015
|
+
case 19:
|
|
1016
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1017
|
+
msg.setAdditionalInfo(value);
|
|
1018
|
+
break;
|
|
1014
1019
|
default:
|
|
1015
1020
|
reader.skipField();
|
|
1016
1021
|
break;
|
|
@@ -1166,6 +1171,13 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
|
|
|
1166
1171
|
f
|
|
1167
1172
|
);
|
|
1168
1173
|
}
|
|
1174
|
+
f = message.getAdditionalInfo();
|
|
1175
|
+
if (f.length > 0) {
|
|
1176
|
+
writer.writeString(
|
|
1177
|
+
19,
|
|
1178
|
+
f
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1169
1181
|
};
|
|
1170
1182
|
|
|
1171
1183
|
|
|
@@ -1512,6 +1524,24 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearPhonesList = function
|
|
|
1512
1524
|
};
|
|
1513
1525
|
|
|
1514
1526
|
|
|
1527
|
+
/**
|
|
1528
|
+
* optional string additional_info = 19;
|
|
1529
|
+
* @return {string}
|
|
1530
|
+
*/
|
|
1531
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {string} value
|
|
1538
|
+
* @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
|
|
1539
|
+
*/
|
|
1540
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1541
|
+
return jspb.Message.setProto3StringField(this, 19, value);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1515
1545
|
|
|
1516
1546
|
|
|
1517
1547
|
|
|
@@ -43,6 +43,9 @@ export class RoomMemberPayloadResponse extends jspb.Message {
|
|
|
43
43
|
getName(): string;
|
|
44
44
|
setName(value: string): void;
|
|
45
45
|
|
|
46
|
+
getAdditionalInfo(): string;
|
|
47
|
+
setAdditionalInfo(value: string): void;
|
|
48
|
+
|
|
46
49
|
serializeBinary(): Uint8Array;
|
|
47
50
|
toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
|
|
48
51
|
static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
|
|
@@ -60,6 +63,7 @@ export namespace RoomMemberPayloadResponse {
|
|
|
60
63
|
inviterId: string,
|
|
61
64
|
avatar: string,
|
|
62
65
|
name: string,
|
|
66
|
+
additionalInfo: string,
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -299,7 +299,8 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject = function(includeInstan
|
|
|
299
299
|
roomAlias: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
300
300
|
inviterId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
301
301
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
302
|
-
name: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
302
|
+
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
303
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
303
304
|
};
|
|
304
305
|
|
|
305
306
|
if (includeInstance) {
|
|
@@ -356,6 +357,10 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader = fun
|
|
|
356
357
|
var value = /** @type {string} */ (reader.readString());
|
|
357
358
|
msg.setName(value);
|
|
358
359
|
break;
|
|
360
|
+
case 6:
|
|
361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
362
|
+
msg.setAdditionalInfo(value);
|
|
363
|
+
break;
|
|
359
364
|
default:
|
|
360
365
|
reader.skipField();
|
|
361
366
|
break;
|
|
@@ -420,6 +425,13 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter = functio
|
|
|
420
425
|
f
|
|
421
426
|
);
|
|
422
427
|
}
|
|
428
|
+
f = message.getAdditionalInfo();
|
|
429
|
+
if (f.length > 0) {
|
|
430
|
+
writer.writeString(
|
|
431
|
+
6,
|
|
432
|
+
f
|
|
433
|
+
);
|
|
434
|
+
}
|
|
423
435
|
};
|
|
424
436
|
|
|
425
437
|
|
|
@@ -513,6 +525,24 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setName = function(valu
|
|
|
513
525
|
};
|
|
514
526
|
|
|
515
527
|
|
|
528
|
+
/**
|
|
529
|
+
* optional string additional_info = 6;
|
|
530
|
+
* @return {string}
|
|
531
|
+
*/
|
|
532
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @param {string} value
|
|
539
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
|
|
540
|
+
*/
|
|
541
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
542
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
|
|
516
546
|
|
|
517
547
|
|
|
518
548
|
|
|
@@ -88,6 +88,9 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
88
88
|
getHandle(): string;
|
|
89
89
|
setHandle(value: string): void;
|
|
90
90
|
|
|
91
|
+
getAdditionalInfo(): string;
|
|
92
|
+
setAdditionalInfo(value: string): void;
|
|
93
|
+
|
|
91
94
|
serializeBinary(): Uint8Array;
|
|
92
95
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
93
96
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -107,6 +110,7 @@ export namespace RoomPayloadResponse {
|
|
|
107
110
|
adminIdsList: Array<string>,
|
|
108
111
|
memberIdsList: Array<string>,
|
|
109
112
|
handle: string,
|
|
113
|
+
additionalInfo: string,
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
|
|
@@ -889,7 +889,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
889
889
|
ownerId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
890
890
|
adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
891
891
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
892
|
-
handle: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
892
|
+
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
893
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
893
894
|
};
|
|
894
895
|
|
|
895
896
|
if (includeInstance) {
|
|
@@ -954,6 +955,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
954
955
|
var value = /** @type {string} */ (reader.readString());
|
|
955
956
|
msg.setHandle(value);
|
|
956
957
|
break;
|
|
958
|
+
case 8:
|
|
959
|
+
var value = /** @type {string} */ (reader.readString());
|
|
960
|
+
msg.setAdditionalInfo(value);
|
|
961
|
+
break;
|
|
957
962
|
default:
|
|
958
963
|
reader.skipField();
|
|
959
964
|
break;
|
|
@@ -1032,6 +1037,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1032
1037
|
f
|
|
1033
1038
|
);
|
|
1034
1039
|
}
|
|
1040
|
+
f = message.getAdditionalInfo();
|
|
1041
|
+
if (f.length > 0) {
|
|
1042
|
+
writer.writeString(
|
|
1043
|
+
8,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1035
1047
|
};
|
|
1036
1048
|
|
|
1037
1049
|
|
|
@@ -1199,6 +1211,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setHandle = function(value) {
|
|
|
1199
1211
|
};
|
|
1200
1212
|
|
|
1201
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* optional string additional_info = 8;
|
|
1216
|
+
* @return {string}
|
|
1217
|
+
*/
|
|
1218
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1219
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* @param {string} value
|
|
1225
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1226
|
+
*/
|
|
1227
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1228
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
|
|
1202
1232
|
|
|
1203
1233
|
|
|
1204
1234
|
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.7
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1813,6 +1813,8 @@ definitions:
|
|
|
1813
1813
|
type: array
|
|
1814
1814
|
items:
|
|
1815
1815
|
type: string
|
|
1816
|
+
additionalInfo:
|
|
1817
|
+
type: string
|
|
1816
1818
|
puppetContactPhoneResponse:
|
|
1817
1819
|
type: object
|
|
1818
1820
|
properties:
|
|
@@ -2416,6 +2418,8 @@ definitions:
|
|
|
2416
2418
|
type: string
|
|
2417
2419
|
name:
|
|
2418
2420
|
type: string
|
|
2421
|
+
additionalInfo:
|
|
2422
|
+
type: string
|
|
2419
2423
|
puppetRoomPayloadResponse:
|
|
2420
2424
|
type: object
|
|
2421
2425
|
properties:
|
|
@@ -2437,6 +2441,8 @@ definitions:
|
|
|
2437
2441
|
type: string
|
|
2438
2442
|
handle:
|
|
2439
2443
|
type: string
|
|
2444
|
+
additionalInfo:
|
|
2445
|
+
type: string
|
|
2440
2446
|
puppetRoomQRCodeResponse:
|
|
2441
2447
|
type: object
|
|
2442
2448
|
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.7",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -2699,6 +2699,9 @@
|
|
|
2699
2699
|
"items": {
|
|
2700
2700
|
"type": "string"
|
|
2701
2701
|
}
|
|
2702
|
+
},
|
|
2703
|
+
"additionalInfo": {
|
|
2704
|
+
"type": "string"
|
|
2702
2705
|
}
|
|
2703
2706
|
}
|
|
2704
2707
|
},
|
|
@@ -3468,6 +3471,9 @@
|
|
|
3468
3471
|
},
|
|
3469
3472
|
"name": {
|
|
3470
3473
|
"type": "string"
|
|
3474
|
+
},
|
|
3475
|
+
"additionalInfo": {
|
|
3476
|
+
"type": "string"
|
|
3471
3477
|
}
|
|
3472
3478
|
}
|
|
3473
3479
|
},
|
|
@@ -3500,6 +3506,9 @@
|
|
|
3500
3506
|
},
|
|
3501
3507
|
"handle": {
|
|
3502
3508
|
"type": "string"
|
|
3509
|
+
},
|
|
3510
|
+
"additionalInfo": {
|
|
3511
|
+
"type": "string"
|
|
3503
3512
|
}
|
|
3504
3513
|
}
|
|
3505
3514
|
},
|
|
@@ -29,18 +29,18 @@ message ContactPayloadRequest {
|
|
|
29
29
|
string id = 1;
|
|
30
30
|
}
|
|
31
31
|
message ContactPayloadResponse {
|
|
32
|
-
string
|
|
33
|
-
ContactGender
|
|
34
|
-
ContactType
|
|
35
|
-
string
|
|
36
|
-
string
|
|
37
|
-
string
|
|
38
|
-
string
|
|
39
|
-
string
|
|
40
|
-
bool
|
|
41
|
-
string
|
|
42
|
-
string
|
|
43
|
-
bool
|
|
32
|
+
string id = 1;
|
|
33
|
+
ContactGender gender = 2;
|
|
34
|
+
ContactType type = 3;
|
|
35
|
+
string name = 4;
|
|
36
|
+
string avatar = 5;
|
|
37
|
+
string address = 6;
|
|
38
|
+
string alias = 7;
|
|
39
|
+
string city = 8;
|
|
40
|
+
bool friend = 9;
|
|
41
|
+
string province = 10;
|
|
42
|
+
string signature = 11;
|
|
43
|
+
bool star = 12;
|
|
44
44
|
/**
|
|
45
45
|
* Huan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.
|
|
46
46
|
* so we can just rename `weixin` to `handle` here.
|
|
@@ -52,12 +52,13 @@ message ContactPayloadResponse {
|
|
|
52
52
|
*
|
|
53
53
|
* TODO: rename `weixin` to `handle` in v2.0.0
|
|
54
54
|
*/
|
|
55
|
-
string
|
|
56
|
-
string
|
|
57
|
-
string
|
|
58
|
-
string
|
|
59
|
-
bool
|
|
60
|
-
repeated string
|
|
55
|
+
string weixin = 13;
|
|
56
|
+
string corporation = 14;
|
|
57
|
+
string title = 15;
|
|
58
|
+
string description = 16;
|
|
59
|
+
bool coworker = 17;
|
|
60
|
+
repeated string phones = 18;
|
|
61
|
+
string additional_info = 19;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
message ContactSelfQRCodeRequest {}
|
|
@@ -10,11 +10,12 @@ message RoomMemberPayloadRequest {
|
|
|
10
10
|
string member_id = 2;
|
|
11
11
|
}
|
|
12
12
|
message RoomMemberPayloadResponse {
|
|
13
|
-
string id
|
|
14
|
-
string room_alias
|
|
15
|
-
string inviter_id
|
|
16
|
-
string avatar
|
|
17
|
-
string name
|
|
13
|
+
string id = 1;
|
|
14
|
+
string room_alias = 2;
|
|
15
|
+
string inviter_id = 3;
|
|
16
|
+
string avatar = 4;
|
|
17
|
+
string name = 5;
|
|
18
|
+
string additional_info = 6;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
message RoomMemberListRequest {
|
|
@@ -16,13 +16,14 @@ message RoomPayloadRequest {
|
|
|
16
16
|
string id = 1;
|
|
17
17
|
}
|
|
18
18
|
message RoomPayloadResponse {
|
|
19
|
-
string id
|
|
20
|
-
string topic
|
|
21
|
-
string avatar
|
|
22
|
-
string owner_id
|
|
19
|
+
string id = 1;
|
|
20
|
+
string topic = 2;
|
|
21
|
+
string avatar = 3;
|
|
22
|
+
string owner_id = 4;
|
|
23
23
|
repeated string admin_ids = 5;
|
|
24
24
|
repeated string member_ids = 6;
|
|
25
|
-
string handle
|
|
25
|
+
string handle = 7;
|
|
26
|
+
string additional_info = 8;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
message RoomAddRequest {
|
|
@@ -119,6 +119,9 @@ export class ContactPayloadResponse extends jspb.Message {
|
|
|
119
119
|
setPhonesList(value: Array<string>): void;
|
|
120
120
|
addPhones(value: string, index?: number): string;
|
|
121
121
|
|
|
122
|
+
getAdditionalInfo(): string;
|
|
123
|
+
setAdditionalInfo(value: string): void;
|
|
124
|
+
|
|
122
125
|
serializeBinary(): Uint8Array;
|
|
123
126
|
toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
|
|
124
127
|
static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
|
|
@@ -149,6 +152,7 @@ export namespace ContactPayloadResponse {
|
|
|
149
152
|
description: string,
|
|
150
153
|
coworker: boolean,
|
|
151
154
|
phonesList: Array<string>,
|
|
155
|
+
additionalInfo: string,
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
|
|
@@ -902,7 +902,8 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
|
|
|
902
902
|
title: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
903
903
|
description: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
904
904
|
coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
905
|
-
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f
|
|
905
|
+
phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
906
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
906
907
|
};
|
|
907
908
|
|
|
908
909
|
if (includeInstance) {
|
|
@@ -1011,6 +1012,10 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
|
|
|
1011
1012
|
var value = /** @type {string} */ (reader.readString());
|
|
1012
1013
|
msg.addPhones(value);
|
|
1013
1014
|
break;
|
|
1015
|
+
case 19:
|
|
1016
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1017
|
+
msg.setAdditionalInfo(value);
|
|
1018
|
+
break;
|
|
1014
1019
|
default:
|
|
1015
1020
|
reader.skipField();
|
|
1016
1021
|
break;
|
|
@@ -1166,6 +1171,13 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
|
|
|
1166
1171
|
f
|
|
1167
1172
|
);
|
|
1168
1173
|
}
|
|
1174
|
+
f = message.getAdditionalInfo();
|
|
1175
|
+
if (f.length > 0) {
|
|
1176
|
+
writer.writeString(
|
|
1177
|
+
19,
|
|
1178
|
+
f
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1169
1181
|
};
|
|
1170
1182
|
|
|
1171
1183
|
|
|
@@ -1512,6 +1524,24 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearPhonesList = function
|
|
|
1512
1524
|
};
|
|
1513
1525
|
|
|
1514
1526
|
|
|
1527
|
+
/**
|
|
1528
|
+
* optional string additional_info = 19;
|
|
1529
|
+
* @return {string}
|
|
1530
|
+
*/
|
|
1531
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {string} value
|
|
1538
|
+
* @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
|
|
1539
|
+
*/
|
|
1540
|
+
proto.wechaty.puppet.ContactPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1541
|
+
return jspb.Message.setProto3StringField(this, 19, value);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1515
1545
|
|
|
1516
1546
|
|
|
1517
1547
|
|
|
@@ -43,6 +43,9 @@ export class RoomMemberPayloadResponse extends jspb.Message {
|
|
|
43
43
|
getName(): string;
|
|
44
44
|
setName(value: string): void;
|
|
45
45
|
|
|
46
|
+
getAdditionalInfo(): string;
|
|
47
|
+
setAdditionalInfo(value: string): void;
|
|
48
|
+
|
|
46
49
|
serializeBinary(): Uint8Array;
|
|
47
50
|
toObject(includeInstance?: boolean): RoomMemberPayloadResponse.AsObject;
|
|
48
51
|
static toObject(includeInstance: boolean, msg: RoomMemberPayloadResponse): RoomMemberPayloadResponse.AsObject;
|
|
@@ -60,6 +63,7 @@ export namespace RoomMemberPayloadResponse {
|
|
|
60
63
|
inviterId: string,
|
|
61
64
|
avatar: string,
|
|
62
65
|
name: string,
|
|
66
|
+
additionalInfo: string,
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -299,7 +299,8 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject = function(includeInstan
|
|
|
299
299
|
roomAlias: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
300
300
|
inviterId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
301
301
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
302
|
-
name: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
302
|
+
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
303
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
303
304
|
};
|
|
304
305
|
|
|
305
306
|
if (includeInstance) {
|
|
@@ -356,6 +357,10 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader = fun
|
|
|
356
357
|
var value = /** @type {string} */ (reader.readString());
|
|
357
358
|
msg.setName(value);
|
|
358
359
|
break;
|
|
360
|
+
case 6:
|
|
361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
362
|
+
msg.setAdditionalInfo(value);
|
|
363
|
+
break;
|
|
359
364
|
default:
|
|
360
365
|
reader.skipField();
|
|
361
366
|
break;
|
|
@@ -420,6 +425,13 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter = functio
|
|
|
420
425
|
f
|
|
421
426
|
);
|
|
422
427
|
}
|
|
428
|
+
f = message.getAdditionalInfo();
|
|
429
|
+
if (f.length > 0) {
|
|
430
|
+
writer.writeString(
|
|
431
|
+
6,
|
|
432
|
+
f
|
|
433
|
+
);
|
|
434
|
+
}
|
|
423
435
|
};
|
|
424
436
|
|
|
425
437
|
|
|
@@ -513,6 +525,24 @@ proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setName = function(valu
|
|
|
513
525
|
};
|
|
514
526
|
|
|
515
527
|
|
|
528
|
+
/**
|
|
529
|
+
* optional string additional_info = 6;
|
|
530
|
+
* @return {string}
|
|
531
|
+
*/
|
|
532
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @param {string} value
|
|
539
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse} returns this
|
|
540
|
+
*/
|
|
541
|
+
proto.wechaty.puppet.RoomMemberPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
542
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
|
|
516
546
|
|
|
517
547
|
|
|
518
548
|
|
|
@@ -88,6 +88,9 @@ export class RoomPayloadResponse extends jspb.Message {
|
|
|
88
88
|
getHandle(): string;
|
|
89
89
|
setHandle(value: string): void;
|
|
90
90
|
|
|
91
|
+
getAdditionalInfo(): string;
|
|
92
|
+
setAdditionalInfo(value: string): void;
|
|
93
|
+
|
|
91
94
|
serializeBinary(): Uint8Array;
|
|
92
95
|
toObject(includeInstance?: boolean): RoomPayloadResponse.AsObject;
|
|
93
96
|
static toObject(includeInstance: boolean, msg: RoomPayloadResponse): RoomPayloadResponse.AsObject;
|
|
@@ -107,6 +110,7 @@ export namespace RoomPayloadResponse {
|
|
|
107
110
|
adminIdsList: Array<string>,
|
|
108
111
|
memberIdsList: Array<string>,
|
|
109
112
|
handle: string,
|
|
113
|
+
additionalInfo: string,
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
|
|
@@ -889,7 +889,8 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
889
889
|
ownerId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
890
890
|
adminIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
891
891
|
memberIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
892
|
-
handle: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
892
|
+
handle: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
893
|
+
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
893
894
|
};
|
|
894
895
|
|
|
895
896
|
if (includeInstance) {
|
|
@@ -954,6 +955,10 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
954
955
|
var value = /** @type {string} */ (reader.readString());
|
|
955
956
|
msg.setHandle(value);
|
|
956
957
|
break;
|
|
958
|
+
case 8:
|
|
959
|
+
var value = /** @type {string} */ (reader.readString());
|
|
960
|
+
msg.setAdditionalInfo(value);
|
|
961
|
+
break;
|
|
957
962
|
default:
|
|
958
963
|
reader.skipField();
|
|
959
964
|
break;
|
|
@@ -1032,6 +1037,13 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1032
1037
|
f
|
|
1033
1038
|
);
|
|
1034
1039
|
}
|
|
1040
|
+
f = message.getAdditionalInfo();
|
|
1041
|
+
if (f.length > 0) {
|
|
1042
|
+
writer.writeString(
|
|
1043
|
+
8,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1035
1047
|
};
|
|
1036
1048
|
|
|
1037
1049
|
|
|
@@ -1199,6 +1211,24 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.setHandle = function(value) {
|
|
|
1199
1211
|
};
|
|
1200
1212
|
|
|
1201
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* optional string additional_info = 8;
|
|
1216
|
+
* @return {string}
|
|
1217
|
+
*/
|
|
1218
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getAdditionalInfo = function() {
|
|
1219
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* @param {string} value
|
|
1225
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1226
|
+
*/
|
|
1227
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setAdditionalInfo = function(value) {
|
|
1228
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
|
|
1202
1232
|
|
|
1203
1233
|
|
|
1204
1234
|
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.7
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -1813,6 +1813,8 @@ definitions:
|
|
|
1813
1813
|
type: array
|
|
1814
1814
|
items:
|
|
1815
1815
|
type: string
|
|
1816
|
+
additionalInfo:
|
|
1817
|
+
type: string
|
|
1816
1818
|
puppetContactPhoneResponse:
|
|
1817
1819
|
type: object
|
|
1818
1820
|
properties:
|
|
@@ -2416,6 +2418,8 @@ definitions:
|
|
|
2416
2418
|
type: string
|
|
2417
2419
|
name:
|
|
2418
2420
|
type: string
|
|
2421
|
+
additionalInfo:
|
|
2422
|
+
type: string
|
|
2419
2423
|
puppetRoomPayloadResponse:
|
|
2420
2424
|
type: object
|
|
2421
2425
|
properties:
|
|
@@ -2437,6 +2441,8 @@ definitions:
|
|
|
2437
2441
|
type: string
|
|
2438
2442
|
handle:
|
|
2439
2443
|
type: string
|
|
2444
|
+
additionalInfo:
|
|
2445
|
+
type: string
|
|
2440
2446
|
puppetRoomQRCodeResponse:
|
|
2441
2447
|
type: object
|
|
2442
2448
|
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.7",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -2699,6 +2699,9 @@
|
|
|
2699
2699
|
"items": {
|
|
2700
2700
|
"type": "string"
|
|
2701
2701
|
}
|
|
2702
|
+
},
|
|
2703
|
+
"additionalInfo": {
|
|
2704
|
+
"type": "string"
|
|
2702
2705
|
}
|
|
2703
2706
|
}
|
|
2704
2707
|
},
|
|
@@ -3468,6 +3471,9 @@
|
|
|
3468
3471
|
},
|
|
3469
3472
|
"name": {
|
|
3470
3473
|
"type": "string"
|
|
3474
|
+
},
|
|
3475
|
+
"additionalInfo": {
|
|
3476
|
+
"type": "string"
|
|
3471
3477
|
}
|
|
3472
3478
|
}
|
|
3473
3479
|
},
|
|
@@ -3500,6 +3506,9 @@
|
|
|
3500
3506
|
},
|
|
3501
3507
|
"handle": {
|
|
3502
3508
|
"type": "string"
|
|
3509
|
+
},
|
|
3510
|
+
"additionalInfo": {
|
|
3511
|
+
"type": "string"
|
|
3503
3512
|
}
|
|
3504
3513
|
}
|
|
3505
3514
|
},
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED