@juzi/wechaty-grpc 1.0.14 → 1.0.17
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/base_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +3 -1
- 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/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +40 -71
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +159 -444
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -31
- package/dist/cjs/out/wechaty/puppet.swagger.json +47 -44
- package/dist/cjs/proto/wechaty/puppet/base.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +12 -16
- package/dist/cjs/proto/wechaty/puppet.proto +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +3 -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/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +40 -71
- package/dist/esm/out/wechaty/puppet/tag_pb.js +159 -444
- package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -31
- package/dist/esm/out/wechaty/puppet.swagger.json +47 -44
- package/dist/esm/proto/wechaty/puppet/base.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +12 -16
- package/dist/esm/proto/wechaty/puppet.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/out/wechaty/puppet/base_pb.js +3 -1
- package/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/out/wechaty/puppet/contact_pb.js +51 -2
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/tag_pb.d.ts +40 -71
- package/out/wechaty/puppet/tag_pb.js +159 -444
- package/out/wechaty/puppet.openapi.yaml +38 -31
- package/out/wechaty/puppet.swagger.json +47 -44
- 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.17
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -310,6 +310,8 @@ paths:
|
|
|
310
310
|
- PAYLOAD_TYPE_ROOM
|
|
311
311
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
312
312
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
313
|
+
- PAYLOAD_TYPE_TAG
|
|
314
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
313
315
|
pattern: PAYLOADTYPECONTACT
|
|
314
316
|
tags:
|
|
315
317
|
- Puppet
|
|
@@ -769,6 +771,8 @@ paths:
|
|
|
769
771
|
- PAYLOAD_TYPE_ROOM
|
|
770
772
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
771
773
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
774
|
+
- PAYLOAD_TYPE_TAG
|
|
775
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
772
776
|
pattern: PAYLOADTYPEFRIENDSHIP
|
|
773
777
|
tags:
|
|
774
778
|
- Puppet
|
|
@@ -871,6 +875,8 @@ paths:
|
|
|
871
875
|
- PAYLOAD_TYPE_ROOM
|
|
872
876
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
873
877
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
878
|
+
- PAYLOAD_TYPE_TAG
|
|
879
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
874
880
|
pattern: PAYLOADTYPEMESSAGE
|
|
875
881
|
tags:
|
|
876
882
|
- Puppet
|
|
@@ -1250,6 +1256,8 @@ paths:
|
|
|
1250
1256
|
- PAYLOAD_TYPE_ROOM
|
|
1251
1257
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
1252
1258
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
1259
|
+
- PAYLOAD_TYPE_TAG
|
|
1260
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
1253
1261
|
pattern: PAYLOADTYPEROOMMEMBER
|
|
1254
1262
|
tags:
|
|
1255
1263
|
- Puppet
|
|
@@ -1281,6 +1289,8 @@ paths:
|
|
|
1281
1289
|
- PAYLOAD_TYPE_ROOM
|
|
1282
1290
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
1283
1291
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
1292
|
+
- PAYLOAD_TYPE_TAG
|
|
1293
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
1284
1294
|
pattern: PAYLOADTYPEROOM
|
|
1285
1295
|
tags:
|
|
1286
1296
|
- Puppet
|
|
@@ -1567,7 +1577,7 @@ paths:
|
|
|
1567
1577
|
$ref: '#/definitions/puppetTagContactTagRemoveRequest'
|
|
1568
1578
|
tags:
|
|
1569
1579
|
- Puppet
|
|
1570
|
-
'/tag/{
|
|
1580
|
+
'/tag/{tagId}/contacts':
|
|
1571
1581
|
get:
|
|
1572
1582
|
operationId: Puppet_TagTagContactList
|
|
1573
1583
|
responses:
|
|
@@ -1580,11 +1590,7 @@ paths:
|
|
|
1580
1590
|
schema:
|
|
1581
1591
|
$ref: '#/definitions/rpcStatus'
|
|
1582
1592
|
parameters:
|
|
1583
|
-
- name:
|
|
1584
|
-
in: path
|
|
1585
|
-
required: true
|
|
1586
|
-
type: string
|
|
1587
|
-
- name: tag.id
|
|
1593
|
+
- name: tagId
|
|
1588
1594
|
in: path
|
|
1589
1595
|
required: true
|
|
1590
1596
|
type: string
|
|
@@ -1986,6 +1992,10 @@ definitions:
|
|
|
1986
1992
|
type: string
|
|
1987
1993
|
additionalInfo:
|
|
1988
1994
|
type: string
|
|
1995
|
+
tagIds:
|
|
1996
|
+
type: array
|
|
1997
|
+
items:
|
|
1998
|
+
type: string
|
|
1989
1999
|
puppetContactPhoneResponse:
|
|
1990
2000
|
type: object
|
|
1991
2001
|
properties:
|
|
@@ -2064,6 +2074,7 @@ definitions:
|
|
|
2064
2074
|
- EVENT_TYPE_LOGOUT
|
|
2065
2075
|
- EVENT_TYPE_DIRTY
|
|
2066
2076
|
- EVENT_TYPE_TAG
|
|
2077
|
+
- EVENT_TYPE_TAG_GROUP
|
|
2067
2078
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2068
2079
|
puppetFileBoxChunk:
|
|
2069
2080
|
type: object
|
|
@@ -2487,6 +2498,8 @@ definitions:
|
|
|
2487
2498
|
- PAYLOAD_TYPE_ROOM
|
|
2488
2499
|
- PAYLOAD_TYPE_ROOM_MEMBER
|
|
2489
2500
|
- PAYLOAD_TYPE_FRIENDSHIP
|
|
2501
|
+
- PAYLOAD_TYPE_TAG
|
|
2502
|
+
- PAYLOAD_TYPE_TAG_GROUP
|
|
2490
2503
|
default: PAYLOAD_TYPE_UNSPECIFIED
|
|
2491
2504
|
puppetReferrer:
|
|
2492
2505
|
type: object
|
|
@@ -2638,10 +2651,10 @@ definitions:
|
|
|
2638
2651
|
puppetTagContactTagAddRequest:
|
|
2639
2652
|
type: object
|
|
2640
2653
|
properties:
|
|
2641
|
-
|
|
2654
|
+
tagIds:
|
|
2642
2655
|
type: array
|
|
2643
2656
|
items:
|
|
2644
|
-
|
|
2657
|
+
type: string
|
|
2645
2658
|
contactIds:
|
|
2646
2659
|
type: array
|
|
2647
2660
|
items:
|
|
@@ -2651,17 +2664,17 @@ definitions:
|
|
|
2651
2664
|
puppetTagContactTagListResponse:
|
|
2652
2665
|
type: object
|
|
2653
2666
|
properties:
|
|
2654
|
-
|
|
2667
|
+
tagIds:
|
|
2655
2668
|
type: array
|
|
2656
2669
|
items:
|
|
2657
|
-
|
|
2670
|
+
type: string
|
|
2658
2671
|
puppetTagContactTagRemoveRequest:
|
|
2659
2672
|
type: object
|
|
2660
2673
|
properties:
|
|
2661
|
-
|
|
2674
|
+
tagIds:
|
|
2662
2675
|
type: array
|
|
2663
2676
|
items:
|
|
2664
|
-
|
|
2677
|
+
type: string
|
|
2665
2678
|
contactIds:
|
|
2666
2679
|
type: array
|
|
2667
2680
|
items:
|
|
@@ -2714,17 +2727,10 @@ definitions:
|
|
|
2714
2727
|
puppetTagGroupTagListResponse:
|
|
2715
2728
|
type: object
|
|
2716
2729
|
properties:
|
|
2717
|
-
|
|
2730
|
+
tagIds:
|
|
2718
2731
|
type: array
|
|
2719
2732
|
items:
|
|
2720
|
-
|
|
2721
|
-
puppetTagIdentifier:
|
|
2722
|
-
type: object
|
|
2723
|
-
properties:
|
|
2724
|
-
id:
|
|
2725
|
-
type: string
|
|
2726
|
-
groupId:
|
|
2727
|
-
type: string
|
|
2733
|
+
type: string
|
|
2728
2734
|
puppetTagPayload:
|
|
2729
2735
|
type: object
|
|
2730
2736
|
properties:
|
|
@@ -2739,8 +2745,8 @@ definitions:
|
|
|
2739
2745
|
puppetTagPayloadRequest:
|
|
2740
2746
|
type: object
|
|
2741
2747
|
properties:
|
|
2742
|
-
|
|
2743
|
-
|
|
2748
|
+
tagId:
|
|
2749
|
+
type: string
|
|
2744
2750
|
puppetTagPayloadResponse:
|
|
2745
2751
|
type: object
|
|
2746
2752
|
properties:
|
|
@@ -2756,8 +2762,8 @@ definitions:
|
|
|
2756
2762
|
puppetTagTagAddResponse:
|
|
2757
2763
|
type: object
|
|
2758
2764
|
properties:
|
|
2759
|
-
|
|
2760
|
-
|
|
2765
|
+
tagId:
|
|
2766
|
+
type: string
|
|
2761
2767
|
puppetTagTagContactListResponse:
|
|
2762
2768
|
type: object
|
|
2763
2769
|
properties:
|
|
@@ -2768,23 +2774,24 @@ definitions:
|
|
|
2768
2774
|
puppetTagTagDeleteRequest:
|
|
2769
2775
|
type: object
|
|
2770
2776
|
properties:
|
|
2771
|
-
|
|
2772
|
-
|
|
2777
|
+
tagId:
|
|
2778
|
+
type: string
|
|
2773
2779
|
puppetTagTagDeleteResponse:
|
|
2774
2780
|
type: object
|
|
2775
2781
|
puppetTagTagListResponse:
|
|
2776
2782
|
type: object
|
|
2777
2783
|
properties:
|
|
2778
|
-
|
|
2784
|
+
tagIds:
|
|
2779
2785
|
type: array
|
|
2780
2786
|
items:
|
|
2781
|
-
|
|
2787
|
+
type: string
|
|
2782
2788
|
puppetTagType:
|
|
2783
2789
|
type: string
|
|
2784
2790
|
enum:
|
|
2791
|
+
- Unspecific
|
|
2785
2792
|
- PERSONAL
|
|
2786
2793
|
- CORPORATION
|
|
2787
|
-
default:
|
|
2794
|
+
default: Unspecific
|
|
2788
2795
|
puppetUploadRequest:
|
|
2789
2796
|
type: object
|
|
2790
2797
|
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.17",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -459,7 +459,9 @@
|
|
|
459
459
|
"PAYLOAD_TYPE_CONTACT",
|
|
460
460
|
"PAYLOAD_TYPE_ROOM",
|
|
461
461
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
462
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
462
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
463
|
+
"PAYLOAD_TYPE_TAG",
|
|
464
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
463
465
|
],
|
|
464
466
|
"pattern": "PAYLOADTYPECONTACT"
|
|
465
467
|
}
|
|
@@ -1130,7 +1132,9 @@
|
|
|
1130
1132
|
"PAYLOAD_TYPE_CONTACT",
|
|
1131
1133
|
"PAYLOAD_TYPE_ROOM",
|
|
1132
1134
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
1133
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
1135
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
1136
|
+
"PAYLOAD_TYPE_TAG",
|
|
1137
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1134
1138
|
],
|
|
1135
1139
|
"pattern": "PAYLOADTYPEFRIENDSHIP"
|
|
1136
1140
|
}
|
|
@@ -1287,7 +1291,9 @@
|
|
|
1287
1291
|
"PAYLOAD_TYPE_CONTACT",
|
|
1288
1292
|
"PAYLOAD_TYPE_ROOM",
|
|
1289
1293
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
1290
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
1294
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
1295
|
+
"PAYLOAD_TYPE_TAG",
|
|
1296
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1291
1297
|
],
|
|
1292
1298
|
"pattern": "PAYLOADTYPEMESSAGE"
|
|
1293
1299
|
}
|
|
@@ -1863,7 +1869,9 @@
|
|
|
1863
1869
|
"PAYLOAD_TYPE_CONTACT",
|
|
1864
1870
|
"PAYLOAD_TYPE_ROOM",
|
|
1865
1871
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
1866
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
1872
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
1873
|
+
"PAYLOAD_TYPE_TAG",
|
|
1874
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1867
1875
|
],
|
|
1868
1876
|
"pattern": "PAYLOADTYPEROOMMEMBER"
|
|
1869
1877
|
}
|
|
@@ -1908,7 +1916,9 @@
|
|
|
1908
1916
|
"PAYLOAD_TYPE_CONTACT",
|
|
1909
1917
|
"PAYLOAD_TYPE_ROOM",
|
|
1910
1918
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
1911
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
1919
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
1920
|
+
"PAYLOAD_TYPE_TAG",
|
|
1921
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
1912
1922
|
],
|
|
1913
1923
|
"pattern": "PAYLOADTYPEROOM"
|
|
1914
1924
|
}
|
|
@@ -2362,7 +2372,7 @@
|
|
|
2362
2372
|
]
|
|
2363
2373
|
}
|
|
2364
2374
|
},
|
|
2365
|
-
"/tag/{
|
|
2375
|
+
"/tag/{tagId}/contacts": {
|
|
2366
2376
|
"get": {
|
|
2367
2377
|
"operationId": "Puppet_TagTagContactList",
|
|
2368
2378
|
"responses": {
|
|
@@ -2381,13 +2391,7 @@
|
|
|
2381
2391
|
},
|
|
2382
2392
|
"parameters": [
|
|
2383
2393
|
{
|
|
2384
|
-
"name": "
|
|
2385
|
-
"in": "path",
|
|
2386
|
-
"required": true,
|
|
2387
|
-
"type": "string"
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
"name": "tag.id",
|
|
2394
|
+
"name": "tagId",
|
|
2391
2395
|
"in": "path",
|
|
2392
2396
|
"required": true,
|
|
2393
2397
|
"type": "string"
|
|
@@ -2969,6 +2973,12 @@
|
|
|
2969
2973
|
},
|
|
2970
2974
|
"additionalInfo": {
|
|
2971
2975
|
"type": "string"
|
|
2976
|
+
},
|
|
2977
|
+
"tagIds": {
|
|
2978
|
+
"type": "array",
|
|
2979
|
+
"items": {
|
|
2980
|
+
"type": "string"
|
|
2981
|
+
}
|
|
2972
2982
|
}
|
|
2973
2983
|
}
|
|
2974
2984
|
},
|
|
@@ -3078,7 +3088,8 @@
|
|
|
3078
3088
|
"EVENT_TYPE_LOGIN",
|
|
3079
3089
|
"EVENT_TYPE_LOGOUT",
|
|
3080
3090
|
"EVENT_TYPE_DIRTY",
|
|
3081
|
-
"EVENT_TYPE_TAG"
|
|
3091
|
+
"EVENT_TYPE_TAG",
|
|
3092
|
+
"EVENT_TYPE_TAG_GROUP"
|
|
3082
3093
|
],
|
|
3083
3094
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3084
3095
|
},
|
|
@@ -3594,7 +3605,9 @@
|
|
|
3594
3605
|
"PAYLOAD_TYPE_CONTACT",
|
|
3595
3606
|
"PAYLOAD_TYPE_ROOM",
|
|
3596
3607
|
"PAYLOAD_TYPE_ROOM_MEMBER",
|
|
3597
|
-
"PAYLOAD_TYPE_FRIENDSHIP"
|
|
3608
|
+
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
3609
|
+
"PAYLOAD_TYPE_TAG",
|
|
3610
|
+
"PAYLOAD_TYPE_TAG_GROUP"
|
|
3598
3611
|
],
|
|
3599
3612
|
"default": "PAYLOAD_TYPE_UNSPECIFIED"
|
|
3600
3613
|
},
|
|
@@ -3813,10 +3826,10 @@
|
|
|
3813
3826
|
"puppetTagContactTagAddRequest": {
|
|
3814
3827
|
"type": "object",
|
|
3815
3828
|
"properties": {
|
|
3816
|
-
"
|
|
3829
|
+
"tagIds": {
|
|
3817
3830
|
"type": "array",
|
|
3818
3831
|
"items": {
|
|
3819
|
-
"
|
|
3832
|
+
"type": "string"
|
|
3820
3833
|
}
|
|
3821
3834
|
},
|
|
3822
3835
|
"contactIds": {
|
|
@@ -3833,10 +3846,10 @@
|
|
|
3833
3846
|
"puppetTagContactTagListResponse": {
|
|
3834
3847
|
"type": "object",
|
|
3835
3848
|
"properties": {
|
|
3836
|
-
"
|
|
3849
|
+
"tagIds": {
|
|
3837
3850
|
"type": "array",
|
|
3838
3851
|
"items": {
|
|
3839
|
-
"
|
|
3852
|
+
"type": "string"
|
|
3840
3853
|
}
|
|
3841
3854
|
}
|
|
3842
3855
|
}
|
|
@@ -3844,10 +3857,10 @@
|
|
|
3844
3857
|
"puppetTagContactTagRemoveRequest": {
|
|
3845
3858
|
"type": "object",
|
|
3846
3859
|
"properties": {
|
|
3847
|
-
"
|
|
3860
|
+
"tagIds": {
|
|
3848
3861
|
"type": "array",
|
|
3849
3862
|
"items": {
|
|
3850
|
-
"
|
|
3863
|
+
"type": "string"
|
|
3851
3864
|
}
|
|
3852
3865
|
},
|
|
3853
3866
|
"contactIds": {
|
|
@@ -3932,25 +3945,14 @@
|
|
|
3932
3945
|
"puppetTagGroupTagListResponse": {
|
|
3933
3946
|
"type": "object",
|
|
3934
3947
|
"properties": {
|
|
3935
|
-
"
|
|
3948
|
+
"tagIds": {
|
|
3936
3949
|
"type": "array",
|
|
3937
3950
|
"items": {
|
|
3938
|
-
"
|
|
3951
|
+
"type": "string"
|
|
3939
3952
|
}
|
|
3940
3953
|
}
|
|
3941
3954
|
}
|
|
3942
3955
|
},
|
|
3943
|
-
"puppetTagIdentifier": {
|
|
3944
|
-
"type": "object",
|
|
3945
|
-
"properties": {
|
|
3946
|
-
"id": {
|
|
3947
|
-
"type": "string"
|
|
3948
|
-
},
|
|
3949
|
-
"groupId": {
|
|
3950
|
-
"type": "string"
|
|
3951
|
-
}
|
|
3952
|
-
}
|
|
3953
|
-
},
|
|
3954
3956
|
"puppetTagPayload": {
|
|
3955
3957
|
"type": "object",
|
|
3956
3958
|
"properties": {
|
|
@@ -3971,8 +3973,8 @@
|
|
|
3971
3973
|
"puppetTagPayloadRequest": {
|
|
3972
3974
|
"type": "object",
|
|
3973
3975
|
"properties": {
|
|
3974
|
-
"
|
|
3975
|
-
"
|
|
3976
|
+
"tagId": {
|
|
3977
|
+
"type": "string"
|
|
3976
3978
|
}
|
|
3977
3979
|
}
|
|
3978
3980
|
},
|
|
@@ -3998,8 +4000,8 @@
|
|
|
3998
4000
|
"puppetTagTagAddResponse": {
|
|
3999
4001
|
"type": "object",
|
|
4000
4002
|
"properties": {
|
|
4001
|
-
"
|
|
4002
|
-
"
|
|
4003
|
+
"tagId": {
|
|
4004
|
+
"type": "string"
|
|
4003
4005
|
}
|
|
4004
4006
|
}
|
|
4005
4007
|
},
|
|
@@ -4017,8 +4019,8 @@
|
|
|
4017
4019
|
"puppetTagTagDeleteRequest": {
|
|
4018
4020
|
"type": "object",
|
|
4019
4021
|
"properties": {
|
|
4020
|
-
"
|
|
4021
|
-
"
|
|
4022
|
+
"tagId": {
|
|
4023
|
+
"type": "string"
|
|
4022
4024
|
}
|
|
4023
4025
|
}
|
|
4024
4026
|
},
|
|
@@ -4028,10 +4030,10 @@
|
|
|
4028
4030
|
"puppetTagTagListResponse": {
|
|
4029
4031
|
"type": "object",
|
|
4030
4032
|
"properties": {
|
|
4031
|
-
"
|
|
4033
|
+
"tagIds": {
|
|
4032
4034
|
"type": "array",
|
|
4033
4035
|
"items": {
|
|
4034
|
-
"
|
|
4036
|
+
"type": "string"
|
|
4035
4037
|
}
|
|
4036
4038
|
}
|
|
4037
4039
|
}
|
|
@@ -4039,10 +4041,11 @@
|
|
|
4039
4041
|
"puppetTagType": {
|
|
4040
4042
|
"type": "string",
|
|
4041
4043
|
"enum": [
|
|
4044
|
+
"Unspecific",
|
|
4042
4045
|
"PERSONAL",
|
|
4043
4046
|
"CORPORATION"
|
|
4044
4047
|
],
|
|
4045
|
-
"default": "
|
|
4048
|
+
"default": "Unspecific"
|
|
4046
4049
|
},
|
|
4047
4050
|
"puppetUploadRequest": {
|
|
4048
4051
|
"type": "object",
|
|
@@ -6,8 +6,9 @@ option java_package = "io.github.wechaty.grpc.puppet";
|
|
|
6
6
|
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
7
|
|
|
8
8
|
enum TagType {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Unspecific = 0;
|
|
10
|
+
PERSONAL = 1;
|
|
11
|
+
CORPORATION = 2;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
message TagPayload {
|
|
@@ -17,11 +18,6 @@ message TagPayload {
|
|
|
17
18
|
TagType type = 4;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
message TagIdentifier {
|
|
21
|
-
string id = 1;
|
|
22
|
-
string group_id = 2;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
21
|
message TagGroupPayload {
|
|
26
22
|
string id = 1;
|
|
27
23
|
string name = 2;
|
|
@@ -29,7 +25,7 @@ message TagGroupPayload {
|
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
message TagContactTagAddRequest {
|
|
32
|
-
repeated
|
|
28
|
+
repeated string tag_ids = 1;
|
|
33
29
|
repeated string contact_ids = 2;
|
|
34
30
|
}
|
|
35
31
|
|
|
@@ -37,7 +33,7 @@ message TagContactTagAddResponse {
|
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
message TagContactTagRemoveRequest {
|
|
40
|
-
repeated
|
|
36
|
+
repeated string tag_ids = 1;
|
|
41
37
|
repeated string contact_ids = 2;
|
|
42
38
|
}
|
|
43
39
|
|
|
@@ -65,11 +61,11 @@ message TagTagAddRequest {
|
|
|
65
61
|
}
|
|
66
62
|
|
|
67
63
|
message TagTagAddResponse {
|
|
68
|
-
|
|
64
|
+
string tag_id = 1;
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
message TagTagDeleteRequest {
|
|
72
|
-
|
|
68
|
+
string tag_id = 1;
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
message TagTagDeleteResponse {
|
|
@@ -87,14 +83,14 @@ message TagGroupTagListRequest {
|
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
message TagGroupTagListResponse {
|
|
90
|
-
repeated
|
|
86
|
+
repeated string tag_ids = 1;
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
message TagTagListRequest {
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
message TagTagListResponse {
|
|
97
|
-
repeated
|
|
93
|
+
repeated string tag_ids = 1;
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
message TagContactTagListRequest {
|
|
@@ -102,11 +98,11 @@ message TagContactTagListRequest {
|
|
|
102
98
|
}
|
|
103
99
|
|
|
104
100
|
message TagContactTagListResponse {
|
|
105
|
-
repeated
|
|
101
|
+
repeated string tag_ids = 1;
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
message TagTagContactListRequest {
|
|
109
|
-
|
|
105
|
+
string tag_id = 1;
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
message TagTagContactListResponse {
|
|
@@ -122,7 +118,7 @@ message TagGroupPayloadResponse {
|
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
message TagPayloadRequest {
|
|
125
|
-
|
|
121
|
+
string tag_id = 1;
|
|
126
122
|
}
|
|
127
123
|
|
|
128
124
|
message TagPayloadResponse {
|
|
@@ -568,7 +568,7 @@ service Puppet {
|
|
|
568
568
|
|
|
569
569
|
rpc TagTagContactList (puppet.TagTagContactListRequest) returns (puppet.TagTagContactListResponse) {
|
|
570
570
|
option (google.api.http) = {
|
|
571
|
-
get: "/tag/{
|
|
571
|
+
get: "/tag/{tag_id}/contacts"
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
@@ -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.17",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -1893,7 +1893,9 @@ proto.wechaty.puppet.PayloadType = {
|
|
|
1893
1893
|
PAYLOAD_TYPE_CONTACT: 2,
|
|
1894
1894
|
PAYLOAD_TYPE_ROOM: 3,
|
|
1895
1895
|
PAYLOAD_TYPE_ROOM_MEMBER: 4,
|
|
1896
|
-
PAYLOAD_TYPE_FRIENDSHIP: 5
|
|
1896
|
+
PAYLOAD_TYPE_FRIENDSHIP: 5,
|
|
1897
|
+
PAYLOAD_TYPE_TAG: 6,
|
|
1898
|
+
PAYLOAD_TYPE_TAG_GROUP: 7
|
|
1897
1899
|
};
|
|
1898
1900
|
|
|
1899
1901
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -122,6 +122,11 @@ export class ContactPayloadResponse extends jspb.Message {
|
|
|
122
122
|
getAdditionalInfo(): string;
|
|
123
123
|
setAdditionalInfo(value: string): void;
|
|
124
124
|
|
|
125
|
+
clearTagIdsList(): void;
|
|
126
|
+
getTagIdsList(): Array<string>;
|
|
127
|
+
setTagIdsList(value: Array<string>): void;
|
|
128
|
+
addTagIds(value: string, index?: number): string;
|
|
129
|
+
|
|
125
130
|
serializeBinary(): Uint8Array;
|
|
126
131
|
toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
|
|
127
132
|
static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
|
|
@@ -153,6 +158,7 @@ export namespace ContactPayloadResponse {
|
|
|
153
158
|
coworker: boolean,
|
|
154
159
|
phonesList: Array<string>,
|
|
155
160
|
additionalInfo: string,
|
|
161
|
+
tagIdsList: Array<string>,
|
|
156
162
|
}
|
|
157
163
|
}
|
|
158
164
|
|