@juzi/wechaty-grpc 1.0.10 → 1.0.13

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 (77) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -1
  2. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  4. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +536 -76
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3909 -328
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +413 -362
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +652 -556
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +343 -351
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  13. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +130 -131
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +78 -79
  16. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  17. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  18. package/dist/cjs/proto/wechaty/puppet/tag.proto +115 -29
  19. package/dist/cjs/proto/wechaty/puppet.proto +36 -37
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.js +13 -13
  22. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  23. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
  24. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  25. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  26. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  27. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  28. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +536 -76
  29. package/dist/esm/out/wechaty/puppet/tag_pb.js +3909 -328
  30. package/dist/esm/out/wechaty/puppet.openapi.yaml +413 -362
  31. package/dist/esm/out/wechaty/puppet.swagger.json +652 -556
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.js +343 -351
  34. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  35. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  36. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +130 -131
  37. package/dist/esm/out/wechaty/puppet_pb_service.js +78 -79
  38. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  39. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  40. package/dist/esm/proto/wechaty/puppet/tag.proto +115 -29
  41. package/dist/esm/proto/wechaty/puppet.proto +36 -37
  42. package/dist/esm/src/package-json.js +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +13 -13
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  46. package/out/wechaty/puppet/event_pb.js +2 -1
  47. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  48. package/out/wechaty/puppet/room_pb.js +58 -2
  49. package/out/wechaty/puppet/tag_pb.d.ts +536 -76
  50. package/out/wechaty/puppet/tag_pb.js +3909 -328
  51. package/out/wechaty/puppet.openapi.yaml +413 -362
  52. package/out/wechaty/puppet.swagger.json +652 -556
  53. package/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  54. package/out/wechaty/puppet_grpc_pb.js +343 -351
  55. package/out/wechaty/puppet_pb.d.ts +0 -1
  56. package/out/wechaty/puppet_pb.js +0 -2
  57. package/out/wechaty/puppet_pb_service.d.ts +130 -131
  58. package/out/wechaty/puppet_pb_service.js +78 -79
  59. package/package.json +1 -1
  60. package/src/package-json.ts +1 -1
  61. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  62. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  63. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  64. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  65. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  66. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  67. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  68. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  69. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  70. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  71. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  72. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  73. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  74. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  75. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  76. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  77. package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
@@ -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.10
12
+ version: 1.0.13
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -43,29 +43,6 @@ paths:
43
43
  $ref: '#/definitions/rpcStatus'
44
44
  tags:
45
45
  - Puppet
46
- '/contacts/-/tags/{id}':
47
- delete:
48
- summary: |-
49
- *
50
- Operate Sub-Collections
51
- https://cloud.google.com/apis/design/design_patterns#list_sub-collections
52
- operationId: Puppet_TagContactDelete
53
- responses:
54
- '200':
55
- description: A successful response.
56
- schema:
57
- $ref: '#/definitions/puppetTagContactDeleteResponse'
58
- default:
59
- description: An unexpected error response.
60
- schema:
61
- $ref: '#/definitions/rpcStatus'
62
- parameters:
63
- - name: id
64
- in: path
65
- required: true
66
- type: string
67
- tags:
68
- - Puppet
69
46
  '/contacts/self/name/{name}':
70
47
  put:
71
48
  operationId: Puppet_ContactSelfName
@@ -121,78 +98,6 @@ paths:
121
98
  $ref: '#/definitions/puppetContactSelfSignatureRequest'
122
99
  tags:
123
100
  - Puppet
124
- '/contacts/{contactId}/corp-tag/tags':
125
- get:
126
- operationId: Puppet_CorpTagContactTagList
127
- responses:
128
- '200':
129
- description: A successful response.
130
- schema:
131
- $ref: '#/definitions/puppetCorpTagContactTagListResponse'
132
- default:
133
- description: An unexpected error response.
134
- schema:
135
- $ref: '#/definitions/rpcStatus'
136
- parameters:
137
- - name: contactId
138
- in: path
139
- required: true
140
- type: string
141
- tags:
142
- - Puppet
143
- '/contacts/{contactId}/corp-tag/tags/{corpTagId}':
144
- delete:
145
- operationId: Puppet_CorpTagContactTagRemove
146
- responses:
147
- '200':
148
- description: A successful response.
149
- schema:
150
- $ref: '#/definitions/puppetCorpTagContactTagRemoveResponse'
151
- default:
152
- description: An unexpected error response.
153
- schema:
154
- $ref: '#/definitions/rpcStatus'
155
- parameters:
156
- - name: contactId
157
- in: path
158
- required: true
159
- type: string
160
- - name: corpTagId
161
- in: path
162
- required: true
163
- type: string
164
- - name: corpTagGroupId
165
- in: query
166
- required: false
167
- type: string
168
- tags:
169
- - Puppet
170
- put:
171
- operationId: Puppet_CorpTagContactTagAdd
172
- responses:
173
- '200':
174
- description: A successful response.
175
- schema:
176
- $ref: '#/definitions/puppetCorpTagContactTagAddResponse'
177
- default:
178
- description: An unexpected error response.
179
- schema:
180
- $ref: '#/definitions/rpcStatus'
181
- parameters:
182
- - name: contactId
183
- in: path
184
- required: true
185
- type: string
186
- - name: corpTagId
187
- in: path
188
- required: true
189
- type: string
190
- - name: corpTagGroupId
191
- in: query
192
- required: false
193
- type: string
194
- tags:
195
- - Puppet
196
101
  '/contacts/{contactId}/corporation-remark':
197
102
  put:
198
103
  operationId: Puppet_ContactCorporationRemark
@@ -280,65 +185,14 @@ paths:
280
185
  type: string
281
186
  tags:
282
187
  - Puppet
283
- '/contacts/{contactId}/tags':
188
+ '/contacts/{contactId}/tag/tags':
284
189
  get:
285
- operationId: Puppet_TagContactList
286
- responses:
287
- '200':
288
- description: A successful response.
289
- schema:
290
- $ref: '#/definitions/puppetTagContactListResponse'
291
- default:
292
- description: An unexpected error response.
293
- schema:
294
- $ref: '#/definitions/rpcStatus'
295
- parameters:
296
- - name: contactId
297
- in: path
298
- required: true
299
- type: string
300
- - name: contactIdStringValueDeprecated
301
- description: |-
302
- @deprecated:
303
- Huan(202109): Wrapper types must not be used going forward.
304
- https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
305
- in: query
306
- required: false
307
- type: string
308
- tags:
309
- - Puppet
310
- '/contacts/{contactId}/tags/{id}':
311
- delete:
312
- operationId: Puppet_TagContactRemove
313
- responses:
314
- '200':
315
- description: A successful response.
316
- schema:
317
- $ref: '#/definitions/puppetTagContactRemoveResponse'
318
- default:
319
- description: An unexpected error response.
320
- schema:
321
- $ref: '#/definitions/rpcStatus'
322
- parameters:
323
- - name: contactId
324
- in: path
325
- required: true
326
- type: string
327
- - name: id
328
- in: path
329
- required: true
330
- type: string
331
- tags:
332
- - Puppet
333
- put:
334
- summary: '*'
335
- description: Tag
336
- operationId: Puppet_TagContactAdd
190
+ operationId: Puppet_TagContactTagList
337
191
  responses:
338
192
  '200':
339
193
  description: A successful response.
340
194
  schema:
341
- $ref: '#/definitions/puppetTagContactAddResponse'
195
+ $ref: '#/definitions/puppetTagContactTagListResponse'
342
196
  default:
343
197
  description: An unexpected error response.
344
198
  schema:
@@ -348,10 +202,6 @@ paths:
348
202
  in: path
349
203
  required: true
350
204
  type: string
351
- - name: id
352
- in: path
353
- required: true
354
- type: string
355
205
  tags:
356
206
  - Puppet
357
207
  '/contacts/{id}':
@@ -670,123 +520,6 @@ paths:
670
520
  $ref: '#/definitions/puppetUrlLinkPayload'
671
521
  tags:
672
522
  - Puppet
673
- /corp-tag/groups:
674
- get:
675
- operationId: Puppet_CorpTagGroupList
676
- responses:
677
- '200':
678
- description: A successful response.
679
- schema:
680
- $ref: '#/definitions/puppetCorpTagGroupListResponse'
681
- default:
682
- description: An unexpected error response.
683
- schema:
684
- $ref: '#/definitions/rpcStatus'
685
- tags:
686
- - Puppet
687
- '/corp-tag/groups/{corpTagGroupId}':
688
- get:
689
- operationId: Puppet_CorpTagTagList
690
- responses:
691
- '200':
692
- description: A successful response.
693
- schema:
694
- $ref: '#/definitions/puppetCorpTagTagListResponse'
695
- default:
696
- description: An unexpected error response.
697
- schema:
698
- $ref: '#/definitions/rpcStatus'
699
- parameters:
700
- - name: corpTagGroupId
701
- in: path
702
- required: true
703
- type: string
704
- tags:
705
- - Puppet
706
- '/corp-tags/groups/{corpTagGroupId}':
707
- delete:
708
- operationId: Puppet_CorpTagGroupDelete
709
- responses:
710
- '200':
711
- description: A successful response.
712
- schema:
713
- $ref: '#/definitions/puppetCorpTagGroupDeleteResponse'
714
- default:
715
- description: An unexpected error response.
716
- schema:
717
- $ref: '#/definitions/rpcStatus'
718
- parameters:
719
- - name: corpTagGroupId
720
- in: path
721
- required: true
722
- type: string
723
- tags:
724
- - Puppet
725
- '/corp-tags/groups/{corpTagGroupId}/tags/{corpTagId}':
726
- delete:
727
- operationId: Puppet_CorpTagTagDelete
728
- responses:
729
- '200':
730
- description: A successful response.
731
- schema:
732
- $ref: '#/definitions/puppetCorpTagTagDeleteResponse'
733
- default:
734
- description: An unexpected error response.
735
- schema:
736
- $ref: '#/definitions/rpcStatus'
737
- parameters:
738
- - name: corpTagGroupId
739
- in: path
740
- required: true
741
- type: string
742
- - name: corpTagId
743
- in: path
744
- required: true
745
- type: string
746
- tags:
747
- - Puppet
748
- '/corp-tags/groups/{corpTagGroupId}/tags/{corpTagName}':
749
- put:
750
- operationId: Puppet_CorpTagTagAdd
751
- responses:
752
- '200':
753
- description: A successful response.
754
- schema:
755
- $ref: '#/definitions/puppetCorpTagTagAddResponse'
756
- default:
757
- description: An unexpected error response.
758
- schema:
759
- $ref: '#/definitions/rpcStatus'
760
- parameters:
761
- - name: corpTagGroupId
762
- in: path
763
- required: true
764
- type: string
765
- - name: corpTagName
766
- in: path
767
- required: true
768
- type: string
769
- tags:
770
- - Puppet
771
- '/corp-tags/groups/{corpTagGroupName}':
772
- put:
773
- operationId: Puppet_CorpTagGroupAdd
774
- responses:
775
- '200':
776
- description: A successful response.
777
- schema:
778
- $ref: '#/definitions/puppetCorpTagGroupAddResponse'
779
- default:
780
- description: An unexpected error response.
781
- schema:
782
- $ref: '#/definitions/rpcStatus'
783
- parameters:
784
- - name: corpTagGroupName
785
- in: path
786
- required: true
787
- type: string
788
- tags:
789
- - Puppet
790
523
  /currentUser:
791
524
  get:
792
525
  operationId: Puppet_CurrentUser
@@ -1572,6 +1305,13 @@ paths:
1572
1305
  in: path
1573
1306
  required: true
1574
1307
  type: string
1308
+ - name: contactIds
1309
+ in: query
1310
+ required: false
1311
+ type: array
1312
+ items:
1313
+ type: string
1314
+ collectionFormat: multi
1575
1315
  tags:
1576
1316
  - Puppet
1577
1317
  '/rooms/{id}/members':
@@ -1694,79 +1434,309 @@ paths:
1694
1434
  $ref: '#/definitions/rpcStatus'
1695
1435
  tags:
1696
1436
  - Puppet
1697
- /upload:
1437
+ /tag/add:
1698
1438
  post:
1699
- operationId: Puppet_Upload
1439
+ operationId: Puppet_TagTagAdd
1700
1440
  responses:
1701
1441
  '200':
1702
1442
  description: A successful response.
1703
1443
  schema:
1704
- $ref: '#/definitions/puppetUploadResponse'
1444
+ $ref: '#/definitions/puppetTagTagAddResponse'
1705
1445
  default:
1706
1446
  description: An unexpected error response.
1707
1447
  schema:
1708
1448
  $ref: '#/definitions/rpcStatus'
1709
1449
  parameters:
1710
1450
  - name: body
1711
- description: ' (streaming inputs)'
1712
1451
  in: body
1713
1452
  required: true
1714
1453
  schema:
1715
- $ref: '#/definitions/puppetUploadRequest'
1454
+ $ref: '#/definitions/puppetTagTagAddRequest'
1716
1455
  tags:
1717
1456
  - Puppet
1718
- /version:
1719
- get:
1720
- operationId: Puppet_Version
1457
+ /tag/addContactTag:
1458
+ post:
1459
+ operationId: Puppet_TagContactTagAdd
1721
1460
  responses:
1722
1461
  '200':
1723
1462
  description: A successful response.
1724
1463
  schema:
1725
- $ref: '#/definitions/puppetVersionResponse'
1464
+ $ref: '#/definitions/puppetTagContactTagAddResponse'
1726
1465
  default:
1727
1466
  description: An unexpected error response.
1728
1467
  schema:
1729
1468
  $ref: '#/definitions/rpcStatus'
1469
+ parameters:
1470
+ - name: body
1471
+ in: body
1472
+ required: true
1473
+ schema:
1474
+ $ref: '#/definitions/puppetTagContactTagAddRequest'
1730
1475
  tags:
1731
1476
  - Puppet
1732
- /wechaty.Puppet/FriendshipSearchWeixin:
1477
+ /tag/delete:
1733
1478
  post:
1734
- summary: |-
1735
- *
1736
- Huan(202203): https://github.com/wechaty/puppet/issues/181
1737
- @deprecated use FriendshipSearchHandle instead, will be removed in v3.0
1738
- operationId: Puppet_FriendshipSearchWeixin
1479
+ operationId: Puppet_TagTagDelete
1739
1480
  responses:
1740
1481
  '200':
1741
1482
  description: A successful response.
1742
1483
  schema:
1743
- $ref: '#/definitions/puppetFriendshipSearchHandleResponse'
1484
+ $ref: '#/definitions/puppetTagTagDeleteResponse'
1744
1485
  default:
1745
1486
  description: An unexpected error response.
1746
1487
  schema:
1747
1488
  $ref: '#/definitions/rpcStatus'
1748
1489
  parameters:
1749
1490
  - name: body
1750
- description: >-
1751
- *
1752
-
1753
- Huan(202003): we just rename the payload message because gRPC only
1754
- care about the message structure
1755
- (and as long as we keep consistent with the old structure).
1756
-
1757
- @link https://github.com/wechaty/grpc/pull/173
1758
-
1759
- Rename:
1760
- 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`
1761
- 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`
1762
1491
  in: body
1763
1492
  required: true
1764
1493
  schema:
1765
- $ref: '#/definitions/puppetFriendshipSearchHandleRequest'
1494
+ $ref: '#/definitions/puppetTagTagDeleteRequest'
1766
1495
  tags:
1767
1496
  - Puppet
1768
- /wechaty.Puppet/MessageFile:
1769
- post:
1497
+ '/tag/groups/{tagGroupId}/tags':
1498
+ get:
1499
+ operationId: Puppet_TagGroupTagList
1500
+ responses:
1501
+ '200':
1502
+ description: A successful response.
1503
+ schema:
1504
+ $ref: '#/definitions/puppetTagGroupTagListResponse'
1505
+ default:
1506
+ description: An unexpected error response.
1507
+ schema:
1508
+ $ref: '#/definitions/rpcStatus'
1509
+ parameters:
1510
+ - name: tagGroupId
1511
+ in: path
1512
+ required: true
1513
+ type: string
1514
+ tags:
1515
+ - Puppet
1516
+ /tag/list:
1517
+ get:
1518
+ operationId: Puppet_TagTagList
1519
+ responses:
1520
+ '200':
1521
+ description: A successful response.
1522
+ schema:
1523
+ $ref: '#/definitions/puppetTagTagListResponse'
1524
+ default:
1525
+ description: An unexpected error response.
1526
+ schema:
1527
+ $ref: '#/definitions/rpcStatus'
1528
+ tags:
1529
+ - Puppet
1530
+ /tag/payload:
1531
+ post:
1532
+ operationId: Puppet_TagPayload
1533
+ responses:
1534
+ '200':
1535
+ description: A successful response.
1536
+ schema:
1537
+ $ref: '#/definitions/puppetTagPayloadResponse'
1538
+ default:
1539
+ description: An unexpected error response.
1540
+ schema:
1541
+ $ref: '#/definitions/rpcStatus'
1542
+ parameters:
1543
+ - name: body
1544
+ in: body
1545
+ required: true
1546
+ schema:
1547
+ $ref: '#/definitions/puppetTagPayloadRequest'
1548
+ tags:
1549
+ - Puppet
1550
+ /tag/removeContactTag:
1551
+ post:
1552
+ operationId: Puppet_TagContactTagRemove
1553
+ responses:
1554
+ '200':
1555
+ description: A successful response.
1556
+ schema:
1557
+ $ref: '#/definitions/puppetTagContactTagRemoveResponse'
1558
+ default:
1559
+ description: An unexpected error response.
1560
+ schema:
1561
+ $ref: '#/definitions/rpcStatus'
1562
+ parameters:
1563
+ - name: body
1564
+ in: body
1565
+ required: true
1566
+ schema:
1567
+ $ref: '#/definitions/puppetTagContactTagRemoveRequest'
1568
+ tags:
1569
+ - Puppet
1570
+ '/tag/{tag.groupId}/{tag.id}/contacts':
1571
+ get:
1572
+ operationId: Puppet_TagTagContactList
1573
+ responses:
1574
+ '200':
1575
+ description: A successful response.
1576
+ schema:
1577
+ $ref: '#/definitions/puppetTagTagContactListResponse'
1578
+ default:
1579
+ description: An unexpected error response.
1580
+ schema:
1581
+ $ref: '#/definitions/rpcStatus'
1582
+ parameters:
1583
+ - name: tag.groupId
1584
+ in: path
1585
+ required: true
1586
+ type: string
1587
+ - name: tag.id
1588
+ in: path
1589
+ required: true
1590
+ type: string
1591
+ tags:
1592
+ - Puppet
1593
+ /tagGroup/add:
1594
+ post:
1595
+ operationId: Puppet_TagGroupAdd
1596
+ responses:
1597
+ '200':
1598
+ description: A successful response.
1599
+ schema:
1600
+ $ref: '#/definitions/puppetTagGroupAddResponse'
1601
+ default:
1602
+ description: An unexpected error response.
1603
+ schema:
1604
+ $ref: '#/definitions/rpcStatus'
1605
+ parameters:
1606
+ - name: body
1607
+ in: body
1608
+ required: true
1609
+ schema:
1610
+ $ref: '#/definitions/puppetTagGroupAddRequest'
1611
+ tags:
1612
+ - Puppet
1613
+ /tagGroup/delete:
1614
+ post:
1615
+ operationId: Puppet_TagGroupDelete
1616
+ responses:
1617
+ '200':
1618
+ description: A successful response.
1619
+ schema:
1620
+ $ref: '#/definitions/puppetTagGroupDeleteResponse'
1621
+ default:
1622
+ description: An unexpected error response.
1623
+ schema:
1624
+ $ref: '#/definitions/rpcStatus'
1625
+ parameters:
1626
+ - name: body
1627
+ in: body
1628
+ required: true
1629
+ schema:
1630
+ $ref: '#/definitions/puppetTagGroupDeleteRequest'
1631
+ tags:
1632
+ - Puppet
1633
+ /tagGroup/list:
1634
+ get:
1635
+ operationId: Puppet_TagGroupList
1636
+ responses:
1637
+ '200':
1638
+ description: A successful response.
1639
+ schema:
1640
+ $ref: '#/definitions/puppetTagGroupListResponse'
1641
+ default:
1642
+ description: An unexpected error response.
1643
+ schema:
1644
+ $ref: '#/definitions/rpcStatus'
1645
+ tags:
1646
+ - Puppet
1647
+ /tagGroup/payload:
1648
+ post:
1649
+ operationId: Puppet_TagGroupPayload
1650
+ responses:
1651
+ '200':
1652
+ description: A successful response.
1653
+ schema:
1654
+ $ref: '#/definitions/puppetTagGroupPayloadResponse'
1655
+ default:
1656
+ description: An unexpected error response.
1657
+ schema:
1658
+ $ref: '#/definitions/rpcStatus'
1659
+ parameters:
1660
+ - name: body
1661
+ in: body
1662
+ required: true
1663
+ schema:
1664
+ $ref: '#/definitions/puppetTagGroupPayloadRequest'
1665
+ tags:
1666
+ - Puppet
1667
+ /upload:
1668
+ post:
1669
+ operationId: Puppet_Upload
1670
+ responses:
1671
+ '200':
1672
+ description: A successful response.
1673
+ schema:
1674
+ $ref: '#/definitions/puppetUploadResponse'
1675
+ default:
1676
+ description: An unexpected error response.
1677
+ schema:
1678
+ $ref: '#/definitions/rpcStatus'
1679
+ parameters:
1680
+ - name: body
1681
+ description: ' (streaming inputs)'
1682
+ in: body
1683
+ required: true
1684
+ schema:
1685
+ $ref: '#/definitions/puppetUploadRequest'
1686
+ tags:
1687
+ - Puppet
1688
+ /version:
1689
+ get:
1690
+ operationId: Puppet_Version
1691
+ responses:
1692
+ '200':
1693
+ description: A successful response.
1694
+ schema:
1695
+ $ref: '#/definitions/puppetVersionResponse'
1696
+ default:
1697
+ description: An unexpected error response.
1698
+ schema:
1699
+ $ref: '#/definitions/rpcStatus'
1700
+ tags:
1701
+ - Puppet
1702
+ /wechaty.Puppet/FriendshipSearchWeixin:
1703
+ post:
1704
+ summary: |-
1705
+ *
1706
+ Huan(202203): https://github.com/wechaty/puppet/issues/181
1707
+ @deprecated use FriendshipSearchHandle instead, will be removed in v3.0
1708
+ operationId: Puppet_FriendshipSearchWeixin
1709
+ responses:
1710
+ '200':
1711
+ description: A successful response.
1712
+ schema:
1713
+ $ref: '#/definitions/puppetFriendshipSearchHandleResponse'
1714
+ default:
1715
+ description: An unexpected error response.
1716
+ schema:
1717
+ $ref: '#/definitions/rpcStatus'
1718
+ parameters:
1719
+ - name: body
1720
+ description: >-
1721
+ *
1722
+
1723
+ Huan(202003): we just rename the payload message because gRPC only
1724
+ care about the message structure
1725
+ (and as long as we keep consistent with the old structure).
1726
+
1727
+ @link https://github.com/wechaty/grpc/pull/173
1728
+
1729
+ Rename:
1730
+ 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`
1731
+ 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`
1732
+ in: body
1733
+ required: true
1734
+ schema:
1735
+ $ref: '#/definitions/puppetFriendshipSearchHandleRequest'
1736
+ tags:
1737
+ - Puppet
1738
+ /wechaty.Puppet/MessageFile:
1739
+ post:
1770
1740
  operationId: Puppet_MessageFile
1771
1741
  responses:
1772
1742
  '200':
@@ -2045,61 +2015,6 @@ definitions:
2045
2015
  - CONTACT_TYPE_OFFICIAL
2046
2016
  - CONTACT_TYPE_CORPORATION
2047
2017
  default: CONTACT_TYPE_UNSPECIFIED
2048
- puppetCorpTagContactTagAddResponse:
2049
- type: object
2050
- puppetCorpTagContactTagListResponse:
2051
- type: object
2052
- properties:
2053
- payloads:
2054
- type: array
2055
- items:
2056
- $ref: '#/definitions/puppetCorpTagPayload'
2057
- puppetCorpTagContactTagRemoveResponse:
2058
- type: object
2059
- puppetCorpTagGroupAddResponse:
2060
- type: object
2061
- properties:
2062
- payload:
2063
- $ref: '#/definitions/puppetCorpTagGroupPayload'
2064
- puppetCorpTagGroupDeleteResponse:
2065
- type: object
2066
- puppetCorpTagGroupListResponse:
2067
- type: object
2068
- properties:
2069
- payloads:
2070
- type: array
2071
- items:
2072
- $ref: '#/definitions/puppetCorpTagGroupPayload'
2073
- puppetCorpTagGroupPayload:
2074
- type: object
2075
- properties:
2076
- id:
2077
- type: string
2078
- name:
2079
- type: string
2080
- puppetCorpTagPayload:
2081
- type: object
2082
- properties:
2083
- id:
2084
- type: string
2085
- name:
2086
- type: string
2087
- groupId:
2088
- type: string
2089
- puppetCorpTagTagAddResponse:
2090
- type: object
2091
- properties:
2092
- payload:
2093
- $ref: '#/definitions/puppetCorpTagPayload'
2094
- puppetCorpTagTagDeleteResponse:
2095
- type: object
2096
- puppetCorpTagTagListResponse:
2097
- type: object
2098
- properties:
2099
- payloads:
2100
- type: array
2101
- items:
2102
- $ref: '#/definitions/puppetCorpTagPayload'
2103
2018
  puppetCurrentUserResponse:
2104
2019
  type: object
2105
2020
  properties:
@@ -2148,6 +2063,7 @@ definitions:
2148
2063
  - EVENT_TYPE_LOGIN
2149
2064
  - EVENT_TYPE_LOGOUT
2150
2065
  - EVENT_TYPE_DIRTY
2066
+ - EVENT_TYPE_TAG
2151
2067
  default: EVENT_TYPE_UNSPECIFIED
2152
2068
  puppetFileBoxChunk:
2153
2069
  type: object
@@ -2719,19 +2635,154 @@ definitions:
2719
2635
  type: object
2720
2636
  puppetStopResponse:
2721
2637
  type: object
2722
- puppetTagContactAddResponse:
2638
+ puppetTagContactTagAddRequest:
2723
2639
  type: object
2724
- puppetTagContactDeleteResponse:
2640
+ properties:
2641
+ tags:
2642
+ type: array
2643
+ items:
2644
+ $ref: '#/definitions/puppetTagIdentifier'
2645
+ contactIds:
2646
+ type: array
2647
+ items:
2648
+ type: string
2649
+ puppetTagContactTagAddResponse:
2725
2650
  type: object
2726
- puppetTagContactListResponse:
2651
+ puppetTagContactTagListResponse:
2727
2652
  type: object
2728
2653
  properties:
2729
- ids:
2654
+ tags:
2655
+ type: array
2656
+ items:
2657
+ $ref: '#/definitions/puppetTagIdentifier'
2658
+ puppetTagContactTagRemoveRequest:
2659
+ type: object
2660
+ properties:
2661
+ tags:
2662
+ type: array
2663
+ items:
2664
+ $ref: '#/definitions/puppetTagIdentifier'
2665
+ contactIds:
2666
+ type: array
2667
+ items:
2668
+ type: string
2669
+ puppetTagContactTagRemoveResponse:
2670
+ type: object
2671
+ puppetTagGroupAddRequest:
2672
+ type: object
2673
+ properties:
2674
+ tagGroupName:
2675
+ type: string
2676
+ puppetTagGroupAddResponse:
2677
+ type: object
2678
+ properties:
2679
+ tagGroupId:
2680
+ type: string
2681
+ puppetTagGroupDeleteRequest:
2682
+ type: object
2683
+ properties:
2684
+ tagGroupId:
2685
+ type: string
2686
+ puppetTagGroupDeleteResponse:
2687
+ type: object
2688
+ puppetTagGroupListResponse:
2689
+ type: object
2690
+ properties:
2691
+ tagGroupIds:
2692
+ type: array
2693
+ items:
2694
+ type: string
2695
+ puppetTagGroupPayload:
2696
+ type: object
2697
+ properties:
2698
+ id:
2699
+ type: string
2700
+ name:
2701
+ type: string
2702
+ puppetTagGroupPayloadRequest:
2703
+ type: object
2704
+ properties:
2705
+ groupId:
2706
+ type: string
2707
+ puppetTagGroupPayloadResponse:
2708
+ type: object
2709
+ properties:
2710
+ payload:
2711
+ $ref: '#/definitions/puppetTagGroupPayload'
2712
+ puppetTagGroupTagListResponse:
2713
+ type: object
2714
+ properties:
2715
+ tags:
2716
+ type: array
2717
+ items:
2718
+ $ref: '#/definitions/puppetTagIdentifier'
2719
+ puppetTagIdentifier:
2720
+ type: object
2721
+ properties:
2722
+ id:
2723
+ type: string
2724
+ groupId:
2725
+ type: string
2726
+ puppetTagPayload:
2727
+ type: object
2728
+ properties:
2729
+ id:
2730
+ type: string
2731
+ name:
2732
+ type: string
2733
+ groupId:
2734
+ type: string
2735
+ type:
2736
+ $ref: '#/definitions/puppetTagType'
2737
+ puppetTagPayloadRequest:
2738
+ type: object
2739
+ properties:
2740
+ tag:
2741
+ $ref: '#/definitions/puppetTagIdentifier'
2742
+ puppetTagPayloadResponse:
2743
+ type: object
2744
+ properties:
2745
+ payload:
2746
+ $ref: '#/definitions/puppetTagPayload'
2747
+ puppetTagTagAddRequest:
2748
+ type: object
2749
+ properties:
2750
+ tagName:
2751
+ type: string
2752
+ tagGroupId:
2753
+ type: string
2754
+ puppetTagTagAddResponse:
2755
+ type: object
2756
+ properties:
2757
+ tag:
2758
+ $ref: '#/definitions/puppetTagIdentifier'
2759
+ puppetTagTagContactListResponse:
2760
+ type: object
2761
+ properties:
2762
+ contactIds:
2730
2763
  type: array
2731
2764
  items:
2732
2765
  type: string
2733
- puppetTagContactRemoveResponse:
2766
+ puppetTagTagDeleteRequest:
2767
+ type: object
2768
+ properties:
2769
+ tag:
2770
+ $ref: '#/definitions/puppetTagIdentifier'
2771
+ puppetTagTagDeleteResponse:
2734
2772
  type: object
2773
+ puppetTagTagListResponse:
2774
+ type: object
2775
+ properties:
2776
+ tags:
2777
+ type: array
2778
+ items:
2779
+ $ref: '#/definitions/puppetTagIdentifier'
2780
+ puppetTagType:
2781
+ type: string
2782
+ enum:
2783
+ - PERSONAL
2784
+ - CORPORATION
2785
+ default: PERSONAL
2735
2786
  puppetUploadRequest:
2736
2787
  type: object
2737
2788
  properties: