@juzi/wechaty-grpc 1.0.11 → 1.0.14

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 (54) hide show
  1. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  3. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  4. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  5. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +181 -73
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.js +1472 -594
  7. package/dist/cjs/out/wechaty/puppet.openapi.yaml +216 -112
  8. package/dist/cjs/out/wechaty/puppet.swagger.json +312 -144
  9. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  13. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  14. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  15. package/dist/cjs/proto/wechaty/puppet/tag.proto +39 -21
  16. package/dist/cjs/proto/wechaty/puppet.proto +29 -9
  17. package/dist/cjs/src/package-json.js +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  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/room_pb.d.ts +6 -0
  24. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  25. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +181 -73
  26. package/dist/esm/out/wechaty/puppet/tag_pb.js +1472 -594
  27. package/dist/esm/out/wechaty/puppet.openapi.yaml +216 -112
  28. package/dist/esm/out/wechaty/puppet.swagger.json +312 -144
  29. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  30. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  33. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  34. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  35. package/dist/esm/proto/wechaty/puppet/tag.proto +39 -21
  36. package/dist/esm/proto/wechaty/puppet.proto +29 -9
  37. package/dist/esm/src/package-json.js +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +10 -0
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  42. package/out/wechaty/puppet/event_pb.js +2 -1
  43. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  44. package/out/wechaty/puppet/room_pb.js +58 -2
  45. package/out/wechaty/puppet/tag_pb.d.ts +181 -73
  46. package/out/wechaty/puppet/tag_pb.js +1472 -594
  47. package/out/wechaty/puppet.openapi.yaml +216 -112
  48. package/out/wechaty/puppet.swagger.json +312 -144
  49. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  50. package/out/wechaty/puppet_grpc_pb.js +66 -0
  51. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  52. package/out/wechaty/puppet_pb_service.js +80 -0
  53. package/package.json +1 -1
  54. 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.11
12
+ version: 1.0.14
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -204,59 +204,6 @@ paths:
204
204
  type: string
205
205
  tags:
206
206
  - Puppet
207
- '/contacts/{contactId}/tag/tags/{tagId}':
208
- delete:
209
- operationId: Puppet_TagContactTagRemove
210
- responses:
211
- '200':
212
- description: A successful response.
213
- schema:
214
- $ref: '#/definitions/puppetTagContactTagRemoveResponse'
215
- default:
216
- description: An unexpected error response.
217
- schema:
218
- $ref: '#/definitions/rpcStatus'
219
- parameters:
220
- - name: contactId
221
- in: path
222
- required: true
223
- type: string
224
- - name: tagId
225
- in: path
226
- required: true
227
- type: string
228
- - name: tagGroupId
229
- in: query
230
- required: false
231
- type: string
232
- tags:
233
- - Puppet
234
- put:
235
- operationId: Puppet_TagContactTagAdd
236
- responses:
237
- '200':
238
- description: A successful response.
239
- schema:
240
- $ref: '#/definitions/puppetTagContactTagAddResponse'
241
- default:
242
- description: An unexpected error response.
243
- schema:
244
- $ref: '#/definitions/rpcStatus'
245
- parameters:
246
- - name: contactId
247
- in: path
248
- required: true
249
- type: string
250
- - name: tagId
251
- in: path
252
- required: true
253
- type: string
254
- - name: tagGroupId
255
- in: query
256
- required: false
257
- type: string
258
- tags:
259
- - Puppet
260
207
  '/contacts/{id}':
261
208
  get:
262
209
  summary: Get a contact payload
@@ -1358,6 +1305,13 @@ paths:
1358
1305
  in: path
1359
1306
  required: true
1360
1307
  type: string
1308
+ - name: contactIds
1309
+ in: query
1310
+ required: false
1311
+ type: array
1312
+ items:
1313
+ type: string
1314
+ collectionFormat: multi
1361
1315
  tags:
1362
1316
  - Puppet
1363
1317
  '/rooms/{id}/members':
@@ -1480,18 +1434,64 @@ paths:
1480
1434
  $ref: '#/definitions/rpcStatus'
1481
1435
  tags:
1482
1436
  - Puppet
1483
- /tag/groups:
1484
- get:
1485
- operationId: Puppet_TagGroupList
1437
+ /tag/add:
1438
+ post:
1439
+ operationId: Puppet_TagTagAdd
1486
1440
  responses:
1487
1441
  '200':
1488
1442
  description: A successful response.
1489
1443
  schema:
1490
- $ref: '#/definitions/puppetTagGroupListResponse'
1444
+ $ref: '#/definitions/puppetTagTagAddResponse'
1445
+ default:
1446
+ description: An unexpected error response.
1447
+ schema:
1448
+ $ref: '#/definitions/rpcStatus'
1449
+ parameters:
1450
+ - name: body
1451
+ in: body
1452
+ required: true
1453
+ schema:
1454
+ $ref: '#/definitions/puppetTagTagAddRequest'
1455
+ tags:
1456
+ - Puppet
1457
+ /tag/addContactTag:
1458
+ post:
1459
+ operationId: Puppet_TagContactTagAdd
1460
+ responses:
1461
+ '200':
1462
+ description: A successful response.
1463
+ schema:
1464
+ $ref: '#/definitions/puppetTagContactTagAddResponse'
1491
1465
  default:
1492
1466
  description: An unexpected error response.
1493
1467
  schema:
1494
1468
  $ref: '#/definitions/rpcStatus'
1469
+ parameters:
1470
+ - name: body
1471
+ in: body
1472
+ required: true
1473
+ schema:
1474
+ $ref: '#/definitions/puppetTagContactTagAddRequest'
1475
+ tags:
1476
+ - Puppet
1477
+ /tag/delete:
1478
+ post:
1479
+ operationId: Puppet_TagTagDelete
1480
+ responses:
1481
+ '200':
1482
+ description: A successful response.
1483
+ schema:
1484
+ $ref: '#/definitions/puppetTagTagDeleteResponse'
1485
+ default:
1486
+ description: An unexpected error response.
1487
+ schema:
1488
+ $ref: '#/definitions/rpcStatus'
1489
+ parameters:
1490
+ - name: body
1491
+ in: body
1492
+ required: true
1493
+ schema:
1494
+ $ref: '#/definitions/puppetTagTagDeleteRequest'
1495
1495
  tags:
1496
1496
  - Puppet
1497
1497
  '/tag/groups/{tagGroupId}/tags':
@@ -1513,7 +1513,7 @@ paths:
1513
1513
  type: string
1514
1514
  tags:
1515
1515
  - Puppet
1516
- /tag/tags:
1516
+ /tag/list:
1517
1517
  get:
1518
1518
  operationId: Puppet_TagTagList
1519
1519
  responses:
@@ -1527,111 +1527,141 @@ paths:
1527
1527
  $ref: '#/definitions/rpcStatus'
1528
1528
  tags:
1529
1529
  - Puppet
1530
- '/tag/{tagGroupId}/{tagId}/contacts':
1531
- get:
1532
- operationId: Puppet_TagTagContactList
1530
+ /tag/payload:
1531
+ post:
1532
+ operationId: Puppet_TagPayload
1533
1533
  responses:
1534
1534
  '200':
1535
1535
  description: A successful response.
1536
1536
  schema:
1537
- $ref: '#/definitions/puppetTagTagContactListResponse'
1537
+ $ref: '#/definitions/puppetTagPayloadResponse'
1538
1538
  default:
1539
1539
  description: An unexpected error response.
1540
1540
  schema:
1541
1541
  $ref: '#/definitions/rpcStatus'
1542
1542
  parameters:
1543
- - name: tagGroupId
1544
- in: path
1545
- required: true
1546
- type: string
1547
- - name: tagId
1548
- in: path
1543
+ - name: body
1544
+ in: body
1549
1545
  required: true
1550
- type: string
1546
+ schema:
1547
+ $ref: '#/definitions/puppetTagPayloadRequest'
1551
1548
  tags:
1552
1549
  - Puppet
1553
- '/tags/groups/{tagGroupId}':
1554
- delete:
1555
- operationId: Puppet_TagGroupDelete
1550
+ /tag/removeContactTag:
1551
+ post:
1552
+ operationId: Puppet_TagContactTagRemove
1556
1553
  responses:
1557
1554
  '200':
1558
1555
  description: A successful response.
1559
1556
  schema:
1560
- $ref: '#/definitions/puppetTagGroupDeleteResponse'
1557
+ $ref: '#/definitions/puppetTagContactTagRemoveResponse'
1561
1558
  default:
1562
1559
  description: An unexpected error response.
1563
1560
  schema:
1564
1561
  $ref: '#/definitions/rpcStatus'
1565
1562
  parameters:
1566
- - name: tagGroupId
1567
- in: path
1563
+ - name: body
1564
+ in: body
1568
1565
  required: true
1569
- type: string
1566
+ schema:
1567
+ $ref: '#/definitions/puppetTagContactTagRemoveRequest'
1570
1568
  tags:
1571
1569
  - Puppet
1572
- '/tags/groups/{tagGroupId}/tags/{tagId}':
1573
- delete:
1574
- operationId: Puppet_TagTagDelete
1570
+ '/tag/{tag.groupId}/{tag.id}/contacts':
1571
+ get:
1572
+ operationId: Puppet_TagTagContactList
1575
1573
  responses:
1576
1574
  '200':
1577
1575
  description: A successful response.
1578
1576
  schema:
1579
- $ref: '#/definitions/puppetTagTagDeleteResponse'
1577
+ $ref: '#/definitions/puppetTagTagContactListResponse'
1580
1578
  default:
1581
1579
  description: An unexpected error response.
1582
1580
  schema:
1583
1581
  $ref: '#/definitions/rpcStatus'
1584
1582
  parameters:
1585
- - name: tagGroupId
1583
+ - name: tag.groupId
1586
1584
  in: path
1587
1585
  required: true
1588
1586
  type: string
1589
- - name: tagId
1587
+ - name: tag.id
1590
1588
  in: path
1591
1589
  required: true
1592
1590
  type: string
1593
1591
  tags:
1594
1592
  - Puppet
1595
- '/tags/groups/{tagGroupId}/tags/{tagName}':
1596
- put:
1597
- operationId: Puppet_TagTagAdd
1593
+ /tagGroup/add:
1594
+ post:
1595
+ operationId: Puppet_TagGroupAdd
1598
1596
  responses:
1599
1597
  '200':
1600
1598
  description: A successful response.
1601
1599
  schema:
1602
- $ref: '#/definitions/puppetTagTagAddResponse'
1600
+ $ref: '#/definitions/puppetTagGroupAddResponse'
1603
1601
  default:
1604
1602
  description: An unexpected error response.
1605
1603
  schema:
1606
1604
  $ref: '#/definitions/rpcStatus'
1607
1605
  parameters:
1608
- - name: tagGroupId
1609
- in: path
1606
+ - name: body
1607
+ in: body
1610
1608
  required: true
1611
- type: string
1612
- - name: tagName
1613
- in: path
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
1614
1628
  required: true
1615
- type: string
1629
+ schema:
1630
+ $ref: '#/definitions/puppetTagGroupDeleteRequest'
1616
1631
  tags:
1617
1632
  - Puppet
1618
- '/tags/groups/{tagGroupName}':
1619
- put:
1620
- operationId: Puppet_TagGroupAdd
1633
+ /tagGroup/list:
1634
+ get:
1635
+ operationId: Puppet_TagGroupList
1621
1636
  responses:
1622
1637
  '200':
1623
1638
  description: A successful response.
1624
1639
  schema:
1625
- $ref: '#/definitions/puppetTagGroupAddResponse'
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'
1626
1655
  default:
1627
1656
  description: An unexpected error response.
1628
1657
  schema:
1629
1658
  $ref: '#/definitions/rpcStatus'
1630
1659
  parameters:
1631
- - name: tagGroupName
1632
- in: path
1660
+ - name: body
1661
+ in: body
1633
1662
  required: true
1634
- type: string
1663
+ schema:
1664
+ $ref: '#/definitions/puppetTagGroupPayloadRequest'
1635
1665
  tags:
1636
1666
  - Puppet
1637
1667
  /upload:
@@ -2033,6 +2063,7 @@ definitions:
2033
2063
  - EVENT_TYPE_LOGIN
2034
2064
  - EVENT_TYPE_LOGOUT
2035
2065
  - EVENT_TYPE_DIRTY
2066
+ - EVENT_TYPE_TAG
2036
2067
  default: EVENT_TYPE_UNSPECIFIED
2037
2068
  puppetFileBoxChunk:
2038
2069
  type: object
@@ -2604,31 +2635,63 @@ definitions:
2604
2635
  type: object
2605
2636
  puppetStopResponse:
2606
2637
  type: object
2638
+ puppetTagContactTagAddRequest:
2639
+ type: object
2640
+ properties:
2641
+ tags:
2642
+ type: array
2643
+ items:
2644
+ $ref: '#/definitions/puppetTagIdentifier'
2645
+ contactIds:
2646
+ type: array
2647
+ items:
2648
+ type: string
2607
2649
  puppetTagContactTagAddResponse:
2608
2650
  type: object
2609
2651
  puppetTagContactTagListResponse:
2610
2652
  type: object
2611
2653
  properties:
2612
- payloads:
2654
+ tags:
2655
+ type: array
2656
+ items:
2657
+ $ref: '#/definitions/puppetTagIdentifier'
2658
+ puppetTagContactTagRemoveRequest:
2659
+ type: object
2660
+ properties:
2661
+ tags:
2613
2662
  type: array
2614
2663
  items:
2615
- $ref: '#/definitions/puppetTagPayload'
2664
+ $ref: '#/definitions/puppetTagIdentifier'
2665
+ contactIds:
2666
+ type: array
2667
+ items:
2668
+ type: string
2616
2669
  puppetTagContactTagRemoveResponse:
2617
2670
  type: object
2671
+ puppetTagGroupAddRequest:
2672
+ type: object
2673
+ properties:
2674
+ tagGroupName:
2675
+ type: string
2618
2676
  puppetTagGroupAddResponse:
2619
2677
  type: object
2620
2678
  properties:
2621
- payload:
2622
- $ref: '#/definitions/puppetTagGroupPayload'
2679
+ tagGroupId:
2680
+ type: string
2681
+ puppetTagGroupDeleteRequest:
2682
+ type: object
2683
+ properties:
2684
+ tagGroupId:
2685
+ type: string
2623
2686
  puppetTagGroupDeleteResponse:
2624
2687
  type: object
2625
2688
  puppetTagGroupListResponse:
2626
2689
  type: object
2627
2690
  properties:
2628
- payloads:
2691
+ tagGroupIds:
2629
2692
  type: array
2630
2693
  items:
2631
- $ref: '#/definitions/puppetTagGroupPayload'
2694
+ type: string
2632
2695
  puppetTagGroupPayload:
2633
2696
  type: object
2634
2697
  properties:
@@ -2636,13 +2699,32 @@ definitions:
2636
2699
  type: string
2637
2700
  name:
2638
2701
  type: string
2702
+ type:
2703
+ $ref: '#/definitions/puppetTagType'
2704
+ puppetTagGroupPayloadRequest:
2705
+ type: object
2706
+ properties:
2707
+ groupId:
2708
+ type: string
2709
+ puppetTagGroupPayloadResponse:
2710
+ type: object
2711
+ properties:
2712
+ payload:
2713
+ $ref: '#/definitions/puppetTagGroupPayload'
2639
2714
  puppetTagGroupTagListResponse:
2640
2715
  type: object
2641
2716
  properties:
2642
- payloads:
2717
+ tags:
2643
2718
  type: array
2644
2719
  items:
2645
- $ref: '#/definitions/puppetTagPayload'
2720
+ $ref: '#/definitions/puppetTagIdentifier'
2721
+ puppetTagIdentifier:
2722
+ type: object
2723
+ properties:
2724
+ id:
2725
+ type: string
2726
+ groupId:
2727
+ type: string
2646
2728
  puppetTagPayload:
2647
2729
  type: object
2648
2730
  properties:
@@ -2654,27 +2736,49 @@ definitions:
2654
2736
  type: string
2655
2737
  type:
2656
2738
  $ref: '#/definitions/puppetTagType'
2657
- puppetTagTagAddResponse:
2739
+ puppetTagPayloadRequest:
2740
+ type: object
2741
+ properties:
2742
+ tag:
2743
+ $ref: '#/definitions/puppetTagIdentifier'
2744
+ puppetTagPayloadResponse:
2658
2745
  type: object
2659
2746
  properties:
2660
2747
  payload:
2661
2748
  $ref: '#/definitions/puppetTagPayload'
2749
+ puppetTagTagAddRequest:
2750
+ type: object
2751
+ properties:
2752
+ tagName:
2753
+ type: string
2754
+ tagGroupId:
2755
+ type: string
2756
+ puppetTagTagAddResponse:
2757
+ type: object
2758
+ properties:
2759
+ tag:
2760
+ $ref: '#/definitions/puppetTagIdentifier'
2662
2761
  puppetTagTagContactListResponse:
2663
2762
  type: object
2664
2763
  properties:
2665
- payloads:
2764
+ contactIds:
2666
2765
  type: array
2667
2766
  items:
2668
2767
  type: string
2768
+ puppetTagTagDeleteRequest:
2769
+ type: object
2770
+ properties:
2771
+ tag:
2772
+ $ref: '#/definitions/puppetTagIdentifier'
2669
2773
  puppetTagTagDeleteResponse:
2670
2774
  type: object
2671
2775
  puppetTagTagListResponse:
2672
2776
  type: object
2673
2777
  properties:
2674
- payloads:
2778
+ tags:
2675
2779
  type: array
2676
2780
  items:
2677
- $ref: '#/definitions/puppetTagPayload'
2781
+ $ref: '#/definitions/puppetTagIdentifier'
2678
2782
  puppetTagType:
2679
2783
  type: string
2680
2784
  enum: