@juzi/wechaty-grpc 1.0.13 → 1.0.16
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 +41 -69
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +187 -443
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -30
- package/dist/cjs/out/wechaty/puppet.swagger.json +48 -43
- 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 +41 -69
- package/dist/esm/out/wechaty/puppet/tag_pb.js +187 -443
- package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -30
- package/dist/esm/out/wechaty/puppet.swagger.json +48 -43
- 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 +41 -69
- package/out/wechaty/puppet/tag_pb.js +187 -443
- package/out/wechaty/puppet.openapi.yaml +38 -30
- package/out/wechaty/puppet.swagger.json +48 -43
- 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.16
|
|
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:
|
|
@@ -2699,6 +2712,8 @@ definitions:
|
|
|
2699
2712
|
type: string
|
|
2700
2713
|
name:
|
|
2701
2714
|
type: string
|
|
2715
|
+
type:
|
|
2716
|
+
$ref: '#/definitions/puppetTagType'
|
|
2702
2717
|
puppetTagGroupPayloadRequest:
|
|
2703
2718
|
type: object
|
|
2704
2719
|
properties:
|
|
@@ -2712,17 +2727,10 @@ definitions:
|
|
|
2712
2727
|
puppetTagGroupTagListResponse:
|
|
2713
2728
|
type: object
|
|
2714
2729
|
properties:
|
|
2715
|
-
|
|
2730
|
+
tagIds:
|
|
2716
2731
|
type: array
|
|
2717
2732
|
items:
|
|
2718
|
-
|
|
2719
|
-
puppetTagIdentifier:
|
|
2720
|
-
type: object
|
|
2721
|
-
properties:
|
|
2722
|
-
id:
|
|
2723
|
-
type: string
|
|
2724
|
-
groupId:
|
|
2725
|
-
type: string
|
|
2733
|
+
type: string
|
|
2726
2734
|
puppetTagPayload:
|
|
2727
2735
|
type: object
|
|
2728
2736
|
properties:
|
|
@@ -2737,8 +2745,8 @@ definitions:
|
|
|
2737
2745
|
puppetTagPayloadRequest:
|
|
2738
2746
|
type: object
|
|
2739
2747
|
properties:
|
|
2740
|
-
|
|
2741
|
-
|
|
2748
|
+
tagId:
|
|
2749
|
+
type: string
|
|
2742
2750
|
puppetTagPayloadResponse:
|
|
2743
2751
|
type: object
|
|
2744
2752
|
properties:
|
|
@@ -2754,8 +2762,8 @@ definitions:
|
|
|
2754
2762
|
puppetTagTagAddResponse:
|
|
2755
2763
|
type: object
|
|
2756
2764
|
properties:
|
|
2757
|
-
|
|
2758
|
-
|
|
2765
|
+
tagId:
|
|
2766
|
+
type: string
|
|
2759
2767
|
puppetTagTagContactListResponse:
|
|
2760
2768
|
type: object
|
|
2761
2769
|
properties:
|
|
@@ -2766,17 +2774,17 @@ definitions:
|
|
|
2766
2774
|
puppetTagTagDeleteRequest:
|
|
2767
2775
|
type: object
|
|
2768
2776
|
properties:
|
|
2769
|
-
|
|
2770
|
-
|
|
2777
|
+
tagId:
|
|
2778
|
+
type: string
|
|
2771
2779
|
puppetTagTagDeleteResponse:
|
|
2772
2780
|
type: object
|
|
2773
2781
|
puppetTagTagListResponse:
|
|
2774
2782
|
type: object
|
|
2775
2783
|
properties:
|
|
2776
|
-
|
|
2784
|
+
tagIds:
|
|
2777
2785
|
type: array
|
|
2778
2786
|
items:
|
|
2779
|
-
|
|
2787
|
+
type: string
|
|
2780
2788
|
puppetTagType:
|
|
2781
2789
|
type: string
|
|
2782
2790
|
enum:
|
|
@@ -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.16",
|
|
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": {
|
|
@@ -3907,6 +3920,9 @@
|
|
|
3907
3920
|
},
|
|
3908
3921
|
"name": {
|
|
3909
3922
|
"type": "string"
|
|
3923
|
+
},
|
|
3924
|
+
"type": {
|
|
3925
|
+
"$ref": "#/definitions/puppetTagType"
|
|
3910
3926
|
}
|
|
3911
3927
|
}
|
|
3912
3928
|
},
|
|
@@ -3929,25 +3945,14 @@
|
|
|
3929
3945
|
"puppetTagGroupTagListResponse": {
|
|
3930
3946
|
"type": "object",
|
|
3931
3947
|
"properties": {
|
|
3932
|
-
"
|
|
3948
|
+
"tagIds": {
|
|
3933
3949
|
"type": "array",
|
|
3934
3950
|
"items": {
|
|
3935
|
-
"
|
|
3951
|
+
"type": "string"
|
|
3936
3952
|
}
|
|
3937
3953
|
}
|
|
3938
3954
|
}
|
|
3939
3955
|
},
|
|
3940
|
-
"puppetTagIdentifier": {
|
|
3941
|
-
"type": "object",
|
|
3942
|
-
"properties": {
|
|
3943
|
-
"id": {
|
|
3944
|
-
"type": "string"
|
|
3945
|
-
},
|
|
3946
|
-
"groupId": {
|
|
3947
|
-
"type": "string"
|
|
3948
|
-
}
|
|
3949
|
-
}
|
|
3950
|
-
},
|
|
3951
3956
|
"puppetTagPayload": {
|
|
3952
3957
|
"type": "object",
|
|
3953
3958
|
"properties": {
|
|
@@ -3968,8 +3973,8 @@
|
|
|
3968
3973
|
"puppetTagPayloadRequest": {
|
|
3969
3974
|
"type": "object",
|
|
3970
3975
|
"properties": {
|
|
3971
|
-
"
|
|
3972
|
-
"
|
|
3976
|
+
"tagId": {
|
|
3977
|
+
"type": "string"
|
|
3973
3978
|
}
|
|
3974
3979
|
}
|
|
3975
3980
|
},
|
|
@@ -3995,8 +4000,8 @@
|
|
|
3995
4000
|
"puppetTagTagAddResponse": {
|
|
3996
4001
|
"type": "object",
|
|
3997
4002
|
"properties": {
|
|
3998
|
-
"
|
|
3999
|
-
"
|
|
4003
|
+
"tagId": {
|
|
4004
|
+
"type": "string"
|
|
4000
4005
|
}
|
|
4001
4006
|
}
|
|
4002
4007
|
},
|
|
@@ -4014,8 +4019,8 @@
|
|
|
4014
4019
|
"puppetTagTagDeleteRequest": {
|
|
4015
4020
|
"type": "object",
|
|
4016
4021
|
"properties": {
|
|
4017
|
-
"
|
|
4018
|
-
"
|
|
4022
|
+
"tagId": {
|
|
4023
|
+
"type": "string"
|
|
4019
4024
|
}
|
|
4020
4025
|
}
|
|
4021
4026
|
},
|
|
@@ -4025,10 +4030,10 @@
|
|
|
4025
4030
|
"puppetTagTagListResponse": {
|
|
4026
4031
|
"type": "object",
|
|
4027
4032
|
"properties": {
|
|
4028
|
-
"
|
|
4033
|
+
"tagIds": {
|
|
4029
4034
|
"type": "array",
|
|
4030
4035
|
"items": {
|
|
4031
|
-
"
|
|
4036
|
+
"type": "string"
|
|
4032
4037
|
}
|
|
4033
4038
|
}
|
|
4034
4039
|
}
|
|
@@ -17,18 +17,14 @@ message TagPayload {
|
|
|
17
17
|
TagType type = 4;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
message TagIdentifier {
|
|
21
|
-
string id = 1;
|
|
22
|
-
string group_id = 2;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
20
|
message TagGroupPayload {
|
|
26
|
-
string
|
|
27
|
-
string
|
|
21
|
+
string id = 1;
|
|
22
|
+
string name = 2;
|
|
23
|
+
TagType type = 3;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
message TagContactTagAddRequest {
|
|
31
|
-
repeated
|
|
27
|
+
repeated string tag_ids = 1;
|
|
32
28
|
repeated string contact_ids = 2;
|
|
33
29
|
}
|
|
34
30
|
|
|
@@ -36,7 +32,7 @@ message TagContactTagAddResponse {
|
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
message TagContactTagRemoveRequest {
|
|
39
|
-
repeated
|
|
35
|
+
repeated string tag_ids = 1;
|
|
40
36
|
repeated string contact_ids = 2;
|
|
41
37
|
}
|
|
42
38
|
|
|
@@ -64,11 +60,11 @@ message TagTagAddRequest {
|
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
message TagTagAddResponse {
|
|
67
|
-
|
|
63
|
+
string tag_id = 1;
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
message TagTagDeleteRequest {
|
|
71
|
-
|
|
67
|
+
string tag_id = 1;
|
|
72
68
|
}
|
|
73
69
|
|
|
74
70
|
message TagTagDeleteResponse {
|
|
@@ -86,14 +82,14 @@ message TagGroupTagListRequest {
|
|
|
86
82
|
}
|
|
87
83
|
|
|
88
84
|
message TagGroupTagListResponse {
|
|
89
|
-
repeated
|
|
85
|
+
repeated string tag_ids = 1;
|
|
90
86
|
}
|
|
91
87
|
|
|
92
88
|
message TagTagListRequest {
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
message TagTagListResponse {
|
|
96
|
-
repeated
|
|
92
|
+
repeated string tag_ids = 1;
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
message TagContactTagListRequest {
|
|
@@ -101,11 +97,11 @@ message TagContactTagListRequest {
|
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
message TagContactTagListResponse {
|
|
104
|
-
repeated
|
|
100
|
+
repeated string tag_ids = 1;
|
|
105
101
|
}
|
|
106
102
|
|
|
107
103
|
message TagTagContactListRequest {
|
|
108
|
-
|
|
104
|
+
string tag_id = 1;
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
message TagTagContactListResponse {
|
|
@@ -121,7 +117,7 @@ message TagGroupPayloadResponse {
|
|
|
121
117
|
}
|
|
122
118
|
|
|
123
119
|
message TagPayloadRequest {
|
|
124
|
-
|
|
120
|
+
string tag_id = 1;
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
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
|
/**
|
|
@@ -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
|
|