@juzi/wechaty-grpc 1.0.50 → 1.0.52
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 +46 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +454 -52
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +14 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +12 -1
- package/dist/cjs/proto/wechaty/puppet/contact.proto +27 -19
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +46 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +454 -52
- package/dist/esm/out/wechaty/puppet.openapi.yaml +14 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +12 -1
- package/dist/esm/proto/wechaty/puppet/contact.proto +27 -19
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +46 -0
- package/out/wechaty/puppet/contact_pb.js +454 -52
- package/out/wechaty/puppet.openapi.yaml +14 -1
- package/out/wechaty/puppet.swagger.json +12 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.52
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -428,6 +428,15 @@ paths:
|
|
|
428
428
|
items:
|
|
429
429
|
type: string
|
|
430
430
|
title: 标签(的id)
|
|
431
|
+
clearPhones:
|
|
432
|
+
type: boolean
|
|
433
|
+
description: |-
|
|
434
|
+
*
|
|
435
|
+
The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
|
|
436
|
+
Since protobuf is language-agnostic,
|
|
437
|
+
it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
|
|
438
|
+
clearTagIds:
|
|
439
|
+
type: boolean
|
|
431
440
|
tags:
|
|
432
441
|
- Puppet
|
|
433
442
|
'/conversation/{conversationId}/read':
|
|
@@ -2612,6 +2621,7 @@ definitions:
|
|
|
2612
2621
|
detail:
|
|
2613
2622
|
type: array
|
|
2614
2623
|
items:
|
|
2624
|
+
type: object
|
|
2615
2625
|
$ref: '#/definitions/puppetBroadcastTarget'
|
|
2616
2626
|
puppetGetMessageBroadcastTargetResponse:
|
|
2617
2627
|
type: object
|
|
@@ -3017,6 +3027,7 @@ definitions:
|
|
|
3017
3027
|
sayableList:
|
|
3018
3028
|
type: array
|
|
3019
3029
|
items:
|
|
3030
|
+
type: object
|
|
3020
3031
|
$ref: '#/definitions/puppetPostSayable'
|
|
3021
3032
|
visibleList:
|
|
3022
3033
|
type: array
|
|
@@ -3060,6 +3071,7 @@ definitions:
|
|
|
3060
3071
|
sayableList:
|
|
3061
3072
|
type: array
|
|
3062
3073
|
items:
|
|
3074
|
+
type: object
|
|
3063
3075
|
$ref: '#/definitions/puppetPostSayable'
|
|
3064
3076
|
contactId:
|
|
3065
3077
|
type: string
|
|
@@ -3532,5 +3544,6 @@ definitions:
|
|
|
3532
3544
|
details:
|
|
3533
3545
|
type: array
|
|
3534
3546
|
items:
|
|
3547
|
+
type: object
|
|
3535
3548
|
$ref: '#/definitions/protobufAny'
|
|
3536
3549
|
|
|
@@ -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.52",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -626,6 +626,13 @@
|
|
|
626
626
|
"type": "string"
|
|
627
627
|
},
|
|
628
628
|
"title": "标签(的id)"
|
|
629
|
+
},
|
|
630
|
+
"clearPhones": {
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
|
|
633
|
+
},
|
|
634
|
+
"clearTagIds": {
|
|
635
|
+
"type": "boolean"
|
|
629
636
|
}
|
|
630
637
|
}
|
|
631
638
|
}
|
|
@@ -3779,6 +3786,7 @@
|
|
|
3779
3786
|
"detail": {
|
|
3780
3787
|
"type": "array",
|
|
3781
3788
|
"items": {
|
|
3789
|
+
"type": "object",
|
|
3782
3790
|
"$ref": "#/definitions/puppetBroadcastTarget"
|
|
3783
3791
|
}
|
|
3784
3792
|
}
|
|
@@ -4267,6 +4275,7 @@
|
|
|
4267
4275
|
"sayableList": {
|
|
4268
4276
|
"type": "array",
|
|
4269
4277
|
"items": {
|
|
4278
|
+
"type": "object",
|
|
4270
4279
|
"$ref": "#/definitions/puppetPostSayable"
|
|
4271
4280
|
}
|
|
4272
4281
|
},
|
|
@@ -4333,6 +4342,7 @@
|
|
|
4333
4342
|
"sayableList": {
|
|
4334
4343
|
"type": "array",
|
|
4335
4344
|
"items": {
|
|
4345
|
+
"type": "object",
|
|
4336
4346
|
"$ref": "#/definitions/puppetPostSayable"
|
|
4337
4347
|
}
|
|
4338
4348
|
},
|
|
@@ -5004,6 +5014,7 @@
|
|
|
5004
5014
|
"details": {
|
|
5005
5015
|
"type": "array",
|
|
5006
5016
|
"items": {
|
|
5017
|
+
"type": "object",
|
|
5007
5018
|
"$ref": "#/definitions/protobufAny"
|
|
5008
5019
|
}
|
|
5009
5020
|
}
|
|
@@ -133,25 +133,33 @@ 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; // 是否为同事
|
|
152
|
-
repeated
|
|
153
|
-
string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
154
|
-
repeated
|
|
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
|
+
repeated string phones = 18; // 电话号码,企微中最多5个
|
|
153
|
+
optional string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
154
|
+
repeated string tag_ids = 20; // 标签(的id)
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
|
|
158
|
+
* Since protobuf is language-agnostic,
|
|
159
|
+
* it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
|
|
160
|
+
*/
|
|
161
|
+
optional bool clear_phones = 21;
|
|
162
|
+
optional bool clear_tag_ids = 22;
|
|
155
163
|
}
|
|
156
164
|
|
|
157
165
|
message ContactPayloadModifyResponse {}
|
|
@@ -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
|
|
|
@@ -627,6 +661,16 @@ export class ContactPayloadModifyRequest extends jspb.Message {
|
|
|
627
661
|
setTagIdsList(value: Array<string>): void;
|
|
628
662
|
addTagIds(value: string, index?: number): string;
|
|
629
663
|
|
|
664
|
+
hasClearPhones(): boolean;
|
|
665
|
+
clearClearPhones(): void;
|
|
666
|
+
getClearPhones(): boolean;
|
|
667
|
+
setClearPhones(value: boolean): void;
|
|
668
|
+
|
|
669
|
+
hasClearTagIds(): boolean;
|
|
670
|
+
clearClearTagIds(): void;
|
|
671
|
+
getClearTagIds(): boolean;
|
|
672
|
+
setClearTagIds(value: boolean): void;
|
|
673
|
+
|
|
630
674
|
serializeBinary(): Uint8Array;
|
|
631
675
|
toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
|
|
632
676
|
static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
|
|
@@ -659,6 +703,8 @@ export namespace ContactPayloadModifyRequest {
|
|
|
659
703
|
phonesList: Array<string>,
|
|
660
704
|
additionalInfo: string,
|
|
661
705
|
tagIdsList: Array<string>,
|
|
706
|
+
clearPhones: boolean,
|
|
707
|
+
clearTagIds: boolean,
|
|
662
708
|
}
|
|
663
709
|
}
|
|
664
710
|
|