@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.
Files changed (44) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +2 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +3 -1
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +6 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
  5. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  6. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +40 -71
  8. package/dist/cjs/out/wechaty/puppet/tag_pb.js +159 -444
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -31
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +47 -44
  11. package/dist/cjs/proto/wechaty/puppet/base.proto +2 -0
  12. package/dist/cjs/proto/wechaty/puppet/contact.proto +2 -0
  13. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  14. package/dist/cjs/proto/wechaty/puppet/tag.proto +12 -16
  15. package/dist/cjs/proto/wechaty/puppet.proto +1 -1
  16. package/dist/cjs/src/package-json.js +1 -1
  17. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +2 -0
  18. package/dist/esm/out/wechaty/puppet/base_pb.js +3 -1
  19. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +6 -0
  20. package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
  21. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  22. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  23. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +40 -71
  24. package/dist/esm/out/wechaty/puppet/tag_pb.js +159 -444
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -31
  26. package/dist/esm/out/wechaty/puppet.swagger.json +47 -44
  27. package/dist/esm/proto/wechaty/puppet/base.proto +2 -0
  28. package/dist/esm/proto/wechaty/puppet/contact.proto +2 -0
  29. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  30. package/dist/esm/proto/wechaty/puppet/tag.proto +12 -16
  31. package/dist/esm/proto/wechaty/puppet.proto +1 -1
  32. package/dist/esm/src/package-json.js +1 -1
  33. package/out/wechaty/puppet/base_pb.d.ts +2 -0
  34. package/out/wechaty/puppet/base_pb.js +3 -1
  35. package/out/wechaty/puppet/contact_pb.d.ts +6 -0
  36. package/out/wechaty/puppet/contact_pb.js +51 -2
  37. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  38. package/out/wechaty/puppet/event_pb.js +2 -1
  39. package/out/wechaty/puppet/tag_pb.d.ts +40 -71
  40. package/out/wechaty/puppet/tag_pb.js +159 -444
  41. package/out/wechaty/puppet.openapi.yaml +38 -31
  42. package/out/wechaty/puppet.swagger.json +47 -44
  43. package/package.json +1 -1
  44. 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.14
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/{tag.groupId}/{tag.id}/contacts':
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: tag.groupId
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
- tags:
2654
+ tagIds:
2642
2655
  type: array
2643
2656
  items:
2644
- $ref: '#/definitions/puppetTagIdentifier'
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
- tags:
2667
+ tagIds:
2655
2668
  type: array
2656
2669
  items:
2657
- $ref: '#/definitions/puppetTagIdentifier'
2670
+ type: string
2658
2671
  puppetTagContactTagRemoveRequest:
2659
2672
  type: object
2660
2673
  properties:
2661
- tags:
2674
+ tagIds:
2662
2675
  type: array
2663
2676
  items:
2664
- $ref: '#/definitions/puppetTagIdentifier'
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
- tags:
2730
+ tagIds:
2718
2731
  type: array
2719
2732
  items:
2720
- $ref: '#/definitions/puppetTagIdentifier'
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
- tag:
2743
- $ref: '#/definitions/puppetTagIdentifier'
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
- tag:
2760
- $ref: '#/definitions/puppetTagIdentifier'
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
- tag:
2772
- $ref: '#/definitions/puppetTagIdentifier'
2777
+ tagId:
2778
+ type: string
2773
2779
  puppetTagTagDeleteResponse:
2774
2780
  type: object
2775
2781
  puppetTagTagListResponse:
2776
2782
  type: object
2777
2783
  properties:
2778
- tags:
2784
+ tagIds:
2779
2785
  type: array
2780
2786
  items:
2781
- $ref: '#/definitions/puppetTagIdentifier'
2787
+ type: string
2782
2788
  puppetTagType:
2783
2789
  type: string
2784
2790
  enum:
2791
+ - Unspecific
2785
2792
  - PERSONAL
2786
2793
  - CORPORATION
2787
- default: PERSONAL
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.14",
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/{tag.groupId}/{tag.id}/contacts": {
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": "tag.groupId",
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
- "tags": {
3829
+ "tagIds": {
3817
3830
  "type": "array",
3818
3831
  "items": {
3819
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tags": {
3849
+ "tagIds": {
3837
3850
  "type": "array",
3838
3851
  "items": {
3839
- "$ref": "#/definitions/puppetTagIdentifier"
3852
+ "type": "string"
3840
3853
  }
3841
3854
  }
3842
3855
  }
@@ -3844,10 +3857,10 @@
3844
3857
  "puppetTagContactTagRemoveRequest": {
3845
3858
  "type": "object",
3846
3859
  "properties": {
3847
- "tags": {
3860
+ "tagIds": {
3848
3861
  "type": "array",
3849
3862
  "items": {
3850
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tags": {
3948
+ "tagIds": {
3936
3949
  "type": "array",
3937
3950
  "items": {
3938
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tag": {
3975
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tag": {
4002
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tag": {
4021
- "$ref": "#/definitions/puppetTagIdentifier"
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
- "tags": {
4033
+ "tagIds": {
4032
4034
  "type": "array",
4033
4035
  "items": {
4034
- "$ref": "#/definitions/puppetTagIdentifier"
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": "PERSONAL"
4048
+ "default": "Unspecific"
4046
4049
  },
4047
4050
  "puppetUploadRequest": {
4048
4051
  "type": "object",
@@ -12,6 +12,8 @@ enum PayloadType {
12
12
  PAYLOAD_TYPE_ROOM = 3;
13
13
  PAYLOAD_TYPE_ROOM_MEMBER = 4;
14
14
  PAYLOAD_TYPE_FRIENDSHIP = 5;
15
+ PAYLOAD_TYPE_TAG = 6;
16
+ PAYLOAD_TYPE_TAG_GROUP = 7;
15
17
  }
16
18
 
17
19
  message StartRequest {}
@@ -59,6 +59,8 @@ message ContactPayloadResponse {
59
59
  bool coworker = 17;
60
60
  repeated string phones = 18;
61
61
  string additional_info = 19;
62
+
63
+ repeated string tag_ids = 20;
62
64
  }
63
65
 
64
66
  message ContactSelfQRCodeRequest {}
@@ -28,6 +28,7 @@ enum EventType {
28
28
  EVENT_TYPE_LOGOUT = 26;
29
29
  EVENT_TYPE_DIRTY = 27;
30
30
  EVENT_TYPE_TAG = 28;
31
+ EVENT_TYPE_TAG_GROUP = 29;
31
32
  }
32
33
 
33
34
  message EventRequest {}
@@ -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
- PERSONAL = 0;
10
- CORPORATION = 1;
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 TagIdentifier tags = 1;
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 TagIdentifier tags = 1;
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
- TagIdentifier tag = 1;
64
+ string tag_id = 1;
69
65
  }
70
66
 
71
67
  message TagTagDeleteRequest {
72
- TagIdentifier tag = 1;
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 TagIdentifier tags = 1;
86
+ repeated string tag_ids = 1;
91
87
  }
92
88
 
93
89
  message TagTagListRequest {
94
90
  }
95
91
 
96
92
  message TagTagListResponse {
97
- repeated TagIdentifier tags = 1;
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 TagIdentifier tags = 1;
101
+ repeated string tag_ids = 1;
106
102
  }
107
103
 
108
104
  message TagTagContactListRequest {
109
- TagIdentifier tag = 1;
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
- TagIdentifier tag = 1;
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/{tag.group_id}/{tag.id}/contacts"
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.14",
6
+ "version": "1.0.17",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -254,6 +254,8 @@ export interface PayloadTypeMap {
254
254
  PAYLOAD_TYPE_ROOM: 3;
255
255
  PAYLOAD_TYPE_ROOM_MEMBER: 4;
256
256
  PAYLOAD_TYPE_FRIENDSHIP: 5;
257
+ PAYLOAD_TYPE_TAG: 6;
258
+ PAYLOAD_TYPE_TAG_GROUP: 7;
257
259
  }
258
260
 
259
261
  export const PayloadType: PayloadTypeMap;
@@ -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