@juzi/wechaty-grpc 1.0.49 → 1.0.51
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 +34 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +357 -51
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +2 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.js +2 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +8 -4
- package/dist/cjs/out/wechaty/puppet.swagger.json +8 -4
- package/dist/cjs/proto/wechaty/puppet/contact.proto +17 -17
- package/dist/cjs/proto/wechaty/puppet/message.proto +2 -2
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +357 -51
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +2 -2
- package/dist/esm/out/wechaty/puppet/message_pb.js +2 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +8 -4
- package/dist/esm/out/wechaty/puppet.swagger.json +8 -4
- package/dist/esm/proto/wechaty/puppet/contact.proto +17 -17
- package/dist/esm/proto/wechaty/puppet/message.proto +2 -2
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +34 -0
- package/out/wechaty/puppet/contact_pb.js +357 -51
- package/out/wechaty/puppet/message_pb.d.ts +2 -2
- package/out/wechaty/puppet/message_pb.js +2 -2
- package/out/wechaty/puppet.openapi.yaml +8 -4
- package/out/wechaty/puppet.swagger.json +8 -4
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -1090,7 +1090,7 @@ export interface MessageTypeMap {
|
|
|
1090
1090
|
export const MessageType: MessageTypeMap;
|
|
1091
1091
|
|
|
1092
1092
|
export interface BroadcastStatusMap {
|
|
1093
|
-
|
|
1093
|
+
BROADCAST_STATUS_UNKNOWN: 0;
|
|
1094
1094
|
BROADCAST_STATUS_SENDING: 1;
|
|
1095
1095
|
BROADCAST_STATUS_SENT: 2;
|
|
1096
1096
|
}
|
|
@@ -1100,7 +1100,7 @@ export const BroadcastStatus: BroadcastStatusMap;
|
|
|
1100
1100
|
export interface BroadcastTargetStatusMap {
|
|
1101
1101
|
BROADCAST_TARGET_STATUS_UNSENT: 0;
|
|
1102
1102
|
BROADCAST_TARGET_STATUS_SENT: 1;
|
|
1103
|
-
|
|
1103
|
+
BROADCAST_TARGET_STATUS_NOT_FRIEND: 2;
|
|
1104
1104
|
BROADCAST_TARGET_STATUS_OCCUPIED: 3;
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
@@ -8223,7 +8223,7 @@ proto.wechaty.puppet.MessageType = {
|
|
|
8223
8223
|
* @enum {number}
|
|
8224
8224
|
*/
|
|
8225
8225
|
proto.wechaty.puppet.BroadcastStatus = {
|
|
8226
|
-
|
|
8226
|
+
BROADCAST_STATUS_UNKNOWN: 0,
|
|
8227
8227
|
BROADCAST_STATUS_SENDING: 1,
|
|
8228
8228
|
BROADCAST_STATUS_SENT: 2
|
|
8229
8229
|
};
|
|
@@ -8234,7 +8234,7 @@ proto.wechaty.puppet.BroadcastStatus = {
|
|
|
8234
8234
|
proto.wechaty.puppet.BroadcastTargetStatus = {
|
|
8235
8235
|
BROADCAST_TARGET_STATUS_UNSENT: 0,
|
|
8236
8236
|
BROADCAST_TARGET_STATUS_SENT: 1,
|
|
8237
|
-
|
|
8237
|
+
BROADCAST_TARGET_STATUS_NOT_FRIEND: 2,
|
|
8238
8238
|
BROADCAST_TARGET_STATUS_OCCUPIED: 3
|
|
8239
8239
|
};
|
|
8240
8240
|
|
|
@@ -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.51
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2201,10 +2201,10 @@ definitions:
|
|
|
2201
2201
|
puppetBroadcastStatus:
|
|
2202
2202
|
type: string
|
|
2203
2203
|
enum:
|
|
2204
|
-
-
|
|
2204
|
+
- BROADCAST_STATUS_UNKNOWN
|
|
2205
2205
|
- BROADCAST_STATUS_SENDING
|
|
2206
2206
|
- BROADCAST_STATUS_SENT
|
|
2207
|
-
default:
|
|
2207
|
+
default: BROADCAST_STATUS_UNKNOWN
|
|
2208
2208
|
puppetBroadcastTarget:
|
|
2209
2209
|
type: object
|
|
2210
2210
|
properties:
|
|
@@ -2219,7 +2219,7 @@ definitions:
|
|
|
2219
2219
|
enum:
|
|
2220
2220
|
- BROADCAST_TARGET_STATUS_UNSENT
|
|
2221
2221
|
- BROADCAST_TARGET_STATUS_SENT
|
|
2222
|
-
-
|
|
2222
|
+
- BROADCAST_TARGET_STATUS_NOT_FRIEND
|
|
2223
2223
|
- BROADCAST_TARGET_STATUS_OCCUPIED
|
|
2224
2224
|
default: BROADCAST_TARGET_STATUS_UNSENT
|
|
2225
2225
|
puppetChannelPayload:
|
|
@@ -2612,6 +2612,7 @@ definitions:
|
|
|
2612
2612
|
detail:
|
|
2613
2613
|
type: array
|
|
2614
2614
|
items:
|
|
2615
|
+
type: object
|
|
2615
2616
|
$ref: '#/definitions/puppetBroadcastTarget'
|
|
2616
2617
|
puppetGetMessageBroadcastTargetResponse:
|
|
2617
2618
|
type: object
|
|
@@ -3017,6 +3018,7 @@ definitions:
|
|
|
3017
3018
|
sayableList:
|
|
3018
3019
|
type: array
|
|
3019
3020
|
items:
|
|
3021
|
+
type: object
|
|
3020
3022
|
$ref: '#/definitions/puppetPostSayable'
|
|
3021
3023
|
visibleList:
|
|
3022
3024
|
type: array
|
|
@@ -3060,6 +3062,7 @@ definitions:
|
|
|
3060
3062
|
sayableList:
|
|
3061
3063
|
type: array
|
|
3062
3064
|
items:
|
|
3065
|
+
type: object
|
|
3063
3066
|
$ref: '#/definitions/puppetPostSayable'
|
|
3064
3067
|
contactId:
|
|
3065
3068
|
type: string
|
|
@@ -3532,5 +3535,6 @@ definitions:
|
|
|
3532
3535
|
details:
|
|
3533
3536
|
type: array
|
|
3534
3537
|
items:
|
|
3538
|
+
type: object
|
|
3535
3539
|
$ref: '#/definitions/protobufAny'
|
|
3536
3540
|
|
|
@@ -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.51",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3291,11 +3291,11 @@
|
|
|
3291
3291
|
"puppetBroadcastStatus": {
|
|
3292
3292
|
"type": "string",
|
|
3293
3293
|
"enum": [
|
|
3294
|
-
"
|
|
3294
|
+
"BROADCAST_STATUS_UNKNOWN",
|
|
3295
3295
|
"BROADCAST_STATUS_SENDING",
|
|
3296
3296
|
"BROADCAST_STATUS_SENT"
|
|
3297
3297
|
],
|
|
3298
|
-
"default": "
|
|
3298
|
+
"default": "BROADCAST_STATUS_UNKNOWN"
|
|
3299
3299
|
},
|
|
3300
3300
|
"puppetBroadcastTarget": {
|
|
3301
3301
|
"type": "object",
|
|
@@ -3316,7 +3316,7 @@
|
|
|
3316
3316
|
"enum": [
|
|
3317
3317
|
"BROADCAST_TARGET_STATUS_UNSENT",
|
|
3318
3318
|
"BROADCAST_TARGET_STATUS_SENT",
|
|
3319
|
-
"
|
|
3319
|
+
"BROADCAST_TARGET_STATUS_NOT_FRIEND",
|
|
3320
3320
|
"BROADCAST_TARGET_STATUS_OCCUPIED"
|
|
3321
3321
|
],
|
|
3322
3322
|
"default": "BROADCAST_TARGET_STATUS_UNSENT"
|
|
@@ -3779,6 +3779,7 @@
|
|
|
3779
3779
|
"detail": {
|
|
3780
3780
|
"type": "array",
|
|
3781
3781
|
"items": {
|
|
3782
|
+
"type": "object",
|
|
3782
3783
|
"$ref": "#/definitions/puppetBroadcastTarget"
|
|
3783
3784
|
}
|
|
3784
3785
|
}
|
|
@@ -4267,6 +4268,7 @@
|
|
|
4267
4268
|
"sayableList": {
|
|
4268
4269
|
"type": "array",
|
|
4269
4270
|
"items": {
|
|
4271
|
+
"type": "object",
|
|
4270
4272
|
"$ref": "#/definitions/puppetPostSayable"
|
|
4271
4273
|
}
|
|
4272
4274
|
},
|
|
@@ -4333,6 +4335,7 @@
|
|
|
4333
4335
|
"sayableList": {
|
|
4334
4336
|
"type": "array",
|
|
4335
4337
|
"items": {
|
|
4338
|
+
"type": "object",
|
|
4336
4339
|
"$ref": "#/definitions/puppetPostSayable"
|
|
4337
4340
|
}
|
|
4338
4341
|
},
|
|
@@ -5004,6 +5007,7 @@
|
|
|
5004
5007
|
"details": {
|
|
5005
5008
|
"type": "array",
|
|
5006
5009
|
"items": {
|
|
5010
|
+
"type": "object",
|
|
5007
5011
|
"$ref": "#/definitions/protobufAny"
|
|
5008
5012
|
}
|
|
5009
5013
|
}
|
|
@@ -133,24 +133,24 @@ message ContactDeleteResponse {}
|
|
|
133
133
|
|
|
134
134
|
message ContactPayloadModifyRequest {
|
|
135
135
|
string id = 1;
|
|
136
|
-
ContactGender gender = 2; // 性别
|
|
137
|
-
ContactType type = 3; // 类型
|
|
138
|
-
string name = 4; // 姓名
|
|
139
|
-
string avatar = 5; // 头像
|
|
140
|
-
string address = 6; // 地址
|
|
141
|
-
string alias = 7; // 别名,即备注
|
|
142
|
-
string city = 8; // 城市
|
|
143
|
-
bool friend = 9; // 是否为好友
|
|
144
|
-
string province = 10; // 省份
|
|
145
|
-
string signature = 11; // 签名
|
|
146
|
-
bool star = 12; // 是否为特别好友
|
|
147
|
-
string weixin = 13; // IM专属id,在企微环境中特指weixinId
|
|
148
|
-
string corporation = 14; // 企业
|
|
149
|
-
string title = 15; // 头衔
|
|
150
|
-
string description = 16; // 描述
|
|
151
|
-
bool coworker = 17; // 是否为同事
|
|
136
|
+
optional ContactGender gender = 2; // 性别
|
|
137
|
+
optional ContactType type = 3; // 类型
|
|
138
|
+
optional string name = 4; // 姓名
|
|
139
|
+
optional string avatar = 5; // 头像
|
|
140
|
+
optional string address = 6; // 地址
|
|
141
|
+
optional string alias = 7; // 别名,即备注
|
|
142
|
+
optional string city = 8; // 城市
|
|
143
|
+
optional bool friend = 9; // 是否为好友
|
|
144
|
+
optional string province = 10; // 省份
|
|
145
|
+
optional string signature = 11; // 签名
|
|
146
|
+
optional bool star = 12; // 是否为特别好友
|
|
147
|
+
optional string weixin = 13; // IM专属id,在企微环境中特指weixinId
|
|
148
|
+
optional string corporation = 14; // 企业
|
|
149
|
+
optional string title = 15; // 头衔
|
|
150
|
+
optional string description = 16; // 描述
|
|
151
|
+
optional bool coworker = 17; // 是否为同事
|
|
152
152
|
repeated string phones = 18; // 电话号码,企微中最多5个
|
|
153
|
-
string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
153
|
+
optional string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
154
154
|
repeated string tag_ids = 20; // 标签(的id)
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -277,7 +277,7 @@ message CreateMessageBroadcastResponse {
|
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
enum BroadcastStatus {
|
|
280
|
-
|
|
280
|
+
BROADCAST_STATUS_UNKNOWN = 0;
|
|
281
281
|
BROADCAST_STATUS_SENDING = 1;
|
|
282
282
|
BROADCAST_STATUS_SENT = 2;
|
|
283
283
|
}
|
|
@@ -285,7 +285,7 @@ enum BroadcastStatus {
|
|
|
285
285
|
enum BroadcastTargetStatus {
|
|
286
286
|
BROADCAST_TARGET_STATUS_UNSENT = 0;
|
|
287
287
|
BROADCAST_TARGET_STATUS_SENT = 1;
|
|
288
|
-
|
|
288
|
+
BROADCAST_TARGET_STATUS_NOT_FRIEND = 2;
|
|
289
289
|
BROADCAST_TARGET_STATUS_OCCUPIED = 3;
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -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.51",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -566,51 +566,83 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
566
566
|
getId(): string;
|
|
567
567
|
setId(value: string): void;
|
|
568
568
|
|
|
569
|
+
hasGender(): boolean;
|
|
570
|
+
clearGender(): void;
|
|
569
571
|
getGender(): ContactGenderMap[keyof ContactGenderMap];
|
|
570
572
|
setGender(value: ContactGenderMap[keyof ContactGenderMap]): void;
|
|
571
573
|
|
|
574
|
+
hasType(): boolean;
|
|
575
|
+
clearType(): void;
|
|
572
576
|
getType(): ContactTypeMap[keyof ContactTypeMap];
|
|
573
577
|
setType(value: ContactTypeMap[keyof ContactTypeMap]): void;
|
|
574
578
|
|
|
579
|
+
hasName(): boolean;
|
|
580
|
+
clearName(): void;
|
|
575
581
|
getName(): string;
|
|
576
582
|
setName(value: string): void;
|
|
577
583
|
|
|
584
|
+
hasAvatar(): boolean;
|
|
585
|
+
clearAvatar(): void;
|
|
578
586
|
getAvatar(): string;
|
|
579
587
|
setAvatar(value: string): void;
|
|
580
588
|
|
|
589
|
+
hasAddress(): boolean;
|
|
590
|
+
clearAddress(): void;
|
|
581
591
|
getAddress(): string;
|
|
582
592
|
setAddress(value: string): void;
|
|
583
593
|
|
|
594
|
+
hasAlias(): boolean;
|
|
595
|
+
clearAlias(): void;
|
|
584
596
|
getAlias(): string;
|
|
585
597
|
setAlias(value: string): void;
|
|
586
598
|
|
|
599
|
+
hasCity(): boolean;
|
|
600
|
+
clearCity(): void;
|
|
587
601
|
getCity(): string;
|
|
588
602
|
setCity(value: string): void;
|
|
589
603
|
|
|
604
|
+
hasFriend(): boolean;
|
|
605
|
+
clearFriend(): void;
|
|
590
606
|
getFriend(): boolean;
|
|
591
607
|
setFriend(value: boolean): void;
|
|
592
608
|
|
|
609
|
+
hasProvince(): boolean;
|
|
610
|
+
clearProvince(): void;
|
|
593
611
|
getProvince(): string;
|
|
594
612
|
setProvince(value: string): void;
|
|
595
613
|
|
|
614
|
+
hasSignature(): boolean;
|
|
615
|
+
clearSignature(): void;
|
|
596
616
|
getSignature(): string;
|
|
597
617
|
setSignature(value: string): void;
|
|
598
618
|
|
|
619
|
+
hasStar(): boolean;
|
|
620
|
+
clearStar(): void;
|
|
599
621
|
getStar(): boolean;
|
|
600
622
|
setStar(value: boolean): void;
|
|
601
623
|
|
|
624
|
+
hasWeixin(): boolean;
|
|
625
|
+
clearWeixin(): void;
|
|
602
626
|
getWeixin(): string;
|
|
603
627
|
setWeixin(value: string): void;
|
|
604
628
|
|
|
629
|
+
hasCorporation(): boolean;
|
|
630
|
+
clearCorporation(): void;
|
|
605
631
|
getCorporation(): string;
|
|
606
632
|
setCorporation(value: string): void;
|
|
607
633
|
|
|
634
|
+
hasTitle(): boolean;
|
|
635
|
+
clearTitle(): void;
|
|
608
636
|
getTitle(): string;
|
|
609
637
|
setTitle(value: string): void;
|
|
610
638
|
|
|
639
|
+
hasDescription(): boolean;
|
|
640
|
+
clearDescription(): void;
|
|
611
641
|
getDescription(): string;
|
|
612
642
|
setDescription(value: string): void;
|
|
613
643
|
|
|
644
|
+
hasCoworker(): boolean;
|
|
645
|
+
clearCoworker(): void;
|
|
614
646
|
getCoworker(): boolean;
|
|
615
647
|
setCoworker(value: boolean): void;
|
|
616
648
|
|
|
@@ -619,6 +651,8 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
619
651
|
setPhonesList(value: Array<string>): void;
|
|
620
652
|
addPhones(value: string, index?: number): string;
|
|
621
653
|
|
|
654
|
+
hasAdditionalInfo(): boolean;
|
|
655
|
+
clearAdditionalInfo(): void;
|
|
622
656
|
getAdditionalInfo(): string;
|
|
623
657
|
setAdditionalInfo(value: string): void;
|
|
624
658
|
|