@juzi/wechaty-grpc 1.0.11 → 1.0.12

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.
@@ -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.12
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,101 @@ 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/removeContactTag:
1531
+ post:
1532
+ operationId: Puppet_TagContactTagRemove
1533
1533
  responses:
1534
1534
  '200':
1535
1535
  description: A successful response.
1536
1536
  schema:
1537
- $ref: '#/definitions/puppetTagTagContactListResponse'
1537
+ $ref: '#/definitions/puppetTagContactTagRemoveResponse'
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/puppetTagContactTagRemoveRequest'
1551
1548
  tags:
1552
1549
  - Puppet
1553
- '/tags/groups/{tagGroupId}':
1554
- delete:
1555
- operationId: Puppet_TagGroupDelete
1550
+ '/tag/{tag.groupId}/{tag.id}/contacts':
1551
+ get:
1552
+ operationId: Puppet_TagTagContactList
1556
1553
  responses:
1557
1554
  '200':
1558
1555
  description: A successful response.
1559
1556
  schema:
1560
- $ref: '#/definitions/puppetTagGroupDeleteResponse'
1557
+ $ref: '#/definitions/puppetTagTagContactListResponse'
1561
1558
  default:
1562
1559
  description: An unexpected error response.
1563
1560
  schema:
1564
1561
  $ref: '#/definitions/rpcStatus'
1565
1562
  parameters:
1566
- - name: tagGroupId
1563
+ - name: tag.groupId
1564
+ in: path
1565
+ required: true
1566
+ type: string
1567
+ - name: tag.id
1567
1568
  in: path
1568
1569
  required: true
1569
1570
  type: string
1570
1571
  tags:
1571
1572
  - Puppet
1572
- '/tags/groups/{tagGroupId}/tags/{tagId}':
1573
- delete:
1574
- operationId: Puppet_TagTagDelete
1573
+ /tagGroup/add:
1574
+ post:
1575
+ operationId: Puppet_TagGroupAdd
1575
1576
  responses:
1576
1577
  '200':
1577
1578
  description: A successful response.
1578
1579
  schema:
1579
- $ref: '#/definitions/puppetTagTagDeleteResponse'
1580
+ $ref: '#/definitions/puppetTagGroupAddResponse'
1580
1581
  default:
1581
1582
  description: An unexpected error response.
1582
1583
  schema:
1583
1584
  $ref: '#/definitions/rpcStatus'
1584
1585
  parameters:
1585
- - name: tagGroupId
1586
- in: path
1587
- required: true
1588
- type: string
1589
- - name: tagId
1590
- in: path
1586
+ - name: body
1587
+ in: body
1591
1588
  required: true
1592
- type: string
1589
+ schema:
1590
+ $ref: '#/definitions/puppetTagGroupAddRequest'
1593
1591
  tags:
1594
1592
  - Puppet
1595
- '/tags/groups/{tagGroupId}/tags/{tagName}':
1596
- put:
1597
- operationId: Puppet_TagTagAdd
1593
+ /tagGroup/delete:
1594
+ post:
1595
+ operationId: Puppet_TagGroupDelete
1598
1596
  responses:
1599
1597
  '200':
1600
1598
  description: A successful response.
1601
1599
  schema:
1602
- $ref: '#/definitions/puppetTagTagAddResponse'
1600
+ $ref: '#/definitions/puppetTagGroupDeleteResponse'
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
1610
- required: true
1611
- type: string
1612
- - name: tagName
1613
- in: path
1606
+ - name: body
1607
+ in: body
1614
1608
  required: true
1615
- type: string
1609
+ schema:
1610
+ $ref: '#/definitions/puppetTagGroupDeleteRequest'
1616
1611
  tags:
1617
1612
  - Puppet
1618
- '/tags/groups/{tagGroupName}':
1619
- put:
1620
- operationId: Puppet_TagGroupAdd
1613
+ /tagGroup/list:
1614
+ get:
1615
+ operationId: Puppet_TagGroupList
1621
1616
  responses:
1622
1617
  '200':
1623
1618
  description: A successful response.
1624
1619
  schema:
1625
- $ref: '#/definitions/puppetTagGroupAddResponse'
1620
+ $ref: '#/definitions/puppetTagGroupListResponse'
1626
1621
  default:
1627
1622
  description: An unexpected error response.
1628
1623
  schema:
1629
1624
  $ref: '#/definitions/rpcStatus'
1630
- parameters:
1631
- - name: tagGroupName
1632
- in: path
1633
- required: true
1634
- type: string
1635
1625
  tags:
1636
1626
  - Puppet
1637
1627
  /upload:
@@ -2604,6 +2594,17 @@ definitions:
2604
2594
  type: object
2605
2595
  puppetStopResponse:
2606
2596
  type: object
2597
+ puppetTagContactTagAddRequest:
2598
+ type: object
2599
+ properties:
2600
+ tags:
2601
+ type: array
2602
+ items:
2603
+ $ref: '#/definitions/puppetTagIdentifier'
2604
+ contactIds:
2605
+ type: array
2606
+ items:
2607
+ type: string
2607
2608
  puppetTagContactTagAddResponse:
2608
2609
  type: object
2609
2610
  puppetTagContactTagListResponse:
@@ -2613,13 +2614,34 @@ definitions:
2613
2614
  type: array
2614
2615
  items:
2615
2616
  $ref: '#/definitions/puppetTagPayload'
2617
+ puppetTagContactTagRemoveRequest:
2618
+ type: object
2619
+ properties:
2620
+ tags:
2621
+ type: array
2622
+ items:
2623
+ $ref: '#/definitions/puppetTagIdentifier'
2624
+ contactIds:
2625
+ type: array
2626
+ items:
2627
+ type: string
2616
2628
  puppetTagContactTagRemoveResponse:
2617
2629
  type: object
2630
+ puppetTagGroupAddRequest:
2631
+ type: object
2632
+ properties:
2633
+ tagGroupName:
2634
+ type: string
2618
2635
  puppetTagGroupAddResponse:
2619
2636
  type: object
2620
2637
  properties:
2621
2638
  payload:
2622
2639
  $ref: '#/definitions/puppetTagGroupPayload'
2640
+ puppetTagGroupDeleteRequest:
2641
+ type: object
2642
+ properties:
2643
+ tagGroupId:
2644
+ type: string
2623
2645
  puppetTagGroupDeleteResponse:
2624
2646
  type: object
2625
2647
  puppetTagGroupListResponse:
@@ -2643,6 +2665,13 @@ definitions:
2643
2665
  type: array
2644
2666
  items:
2645
2667
  $ref: '#/definitions/puppetTagPayload'
2668
+ puppetTagIdentifier:
2669
+ type: object
2670
+ properties:
2671
+ id:
2672
+ type: string
2673
+ groupId:
2674
+ type: string
2646
2675
  puppetTagPayload:
2647
2676
  type: object
2648
2677
  properties:
@@ -2654,6 +2683,13 @@ definitions:
2654
2683
  type: string
2655
2684
  type:
2656
2685
  $ref: '#/definitions/puppetTagType'
2686
+ puppetTagTagAddRequest:
2687
+ type: object
2688
+ properties:
2689
+ tagName:
2690
+ type: string
2691
+ tagGroupId:
2692
+ type: string
2657
2693
  puppetTagTagAddResponse:
2658
2694
  type: object
2659
2695
  properties:
@@ -2666,6 +2702,11 @@ definitions:
2666
2702
  type: array
2667
2703
  items:
2668
2704
  type: string
2705
+ puppetTagTagDeleteRequest:
2706
+ type: object
2707
+ properties:
2708
+ tag:
2709
+ $ref: '#/definitions/puppetTagIdentifier'
2669
2710
  puppetTagTagDeleteResponse:
2670
2711
  type: object
2671
2712
  puppetTagTagListResponse: