@imbue-ai/detent 1.14.0 → 1.15.1

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.
@@ -1249,6 +1249,603 @@ export const generatedBuiltinSchemas = {
1249
1249
  "path"
1250
1250
  ]
1251
1251
  },
1252
+ "fastmail-api": {
1253
+ "$comment": "Any request to Fastmail's JMAP API or its blob download host. Accounts are homed on regional shards, so the API host may carry a shard prefix (phl.api.fastmail.com) and the blob host may carry a matching one (phl-www.fastmailusercontent.com).",
1254
+ "properties": {
1255
+ "domain": {
1256
+ "type": "string",
1257
+ "pattern": "^(([a-z0-9-]+\\.)?api\\.fastmail\\.com|([a-z0-9-]+-)?www\\.fastmailusercontent\\.com)$"
1258
+ }
1259
+ },
1260
+ "required": [
1261
+ "domain"
1262
+ ]
1263
+ },
1264
+ "fastmail-dav-api": {
1265
+ "$comment": "Any request to Fastmail's CardDAV or CalDAV hosts. Separate from fastmail-api because these endpoints take an app password over Basic auth rather than the JMAP OAuth token.",
1266
+ "properties": {
1267
+ "domain": {
1268
+ "type": "string",
1269
+ "pattern": "^([a-z0-9-]+[.-])?(carddav|caldav)\\.fastmail\\.com$"
1270
+ }
1271
+ },
1272
+ "required": [
1273
+ "domain"
1274
+ ]
1275
+ },
1276
+ "fastmail-session": {
1277
+ "$comment": "Fetch the JMAP session document, which names the apiUrl, downloadUrl and account ids. Required for any JMAP client to function; reveals account metadata but no mail, contact or calendar content.",
1278
+ "properties": {
1279
+ "method": {
1280
+ "const": "GET"
1281
+ },
1282
+ "path": {
1283
+ "type": "string",
1284
+ "pattern": "^/(jmap/session|\\.well-known/jmap)$"
1285
+ }
1286
+ },
1287
+ "required": [
1288
+ "method",
1289
+ "path"
1290
+ ]
1291
+ },
1292
+ "fastmail-read-all": {
1293
+ "$comment": "Read anything over JMAP: the session document, any /get, /changes, /query, /queryChanges or /parse method call, and blob downloads. Every method call in the batch must be a read, so a single write anywhere in the envelope fails to match.",
1294
+ "anyOf": [
1295
+ {
1296
+ "type": "object",
1297
+ "properties": {
1298
+ "method": {
1299
+ "const": "GET"
1300
+ },
1301
+ "path": {
1302
+ "type": "string",
1303
+ "pattern": "^/(jmap/session|\\.well-known/jmap|jmap/download/|jmap/event/)"
1304
+ }
1305
+ },
1306
+ "required": [
1307
+ "method",
1308
+ "path"
1309
+ ]
1310
+ },
1311
+ {
1312
+ "type": "object",
1313
+ "properties": {
1314
+ "method": {
1315
+ "const": "POST"
1316
+ },
1317
+ "path": {
1318
+ "type": "string",
1319
+ "pattern": "^/jmap/api/?$"
1320
+ },
1321
+ "parsedBody": {
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "methodCalls": {
1325
+ "type": "array",
1326
+ "items": {
1327
+ "type": "array",
1328
+ "prefixItems": [
1329
+ {
1330
+ "type": "string",
1331
+ "pattern": "^(Core/echo|[A-Za-z]+/(get|changes|query|queryChanges|parse))$"
1332
+ }
1333
+ ]
1334
+ }
1335
+ }
1336
+ },
1337
+ "required": [
1338
+ "methodCalls"
1339
+ ]
1340
+ }
1341
+ },
1342
+ "required": [
1343
+ "method",
1344
+ "path",
1345
+ "parsedBody"
1346
+ ]
1347
+ }
1348
+ ]
1349
+ },
1350
+ "fastmail-write-all": {
1351
+ "$comment": "Create, update or delete anything over JMAP (any /set, /copy, /import or /upload method call), and upload blobs. Includes sending mail via EmailSubmission/set — grant fastmail-send-mail alone if that is the only write needed.",
1352
+ "anyOf": [
1353
+ {
1354
+ "type": "object",
1355
+ "properties": {
1356
+ "method": {
1357
+ "const": "POST"
1358
+ },
1359
+ "path": {
1360
+ "type": "string",
1361
+ "pattern": "^/jmap/api/?$"
1362
+ },
1363
+ "parsedBody": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "methodCalls": {
1367
+ "type": "array",
1368
+ "items": {
1369
+ "type": "array",
1370
+ "prefixItems": [
1371
+ {
1372
+ "type": "string",
1373
+ "pattern": "^[A-Za-z]+/(set|copy|import|upload)$"
1374
+ }
1375
+ ]
1376
+ }
1377
+ }
1378
+ },
1379
+ "required": [
1380
+ "methodCalls"
1381
+ ]
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "method",
1386
+ "path",
1387
+ "parsedBody"
1388
+ ]
1389
+ },
1390
+ {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "method": {
1394
+ "const": "POST"
1395
+ },
1396
+ "path": {
1397
+ "type": "string",
1398
+ "pattern": "^/jmap/upload/"
1399
+ }
1400
+ },
1401
+ "required": [
1402
+ "method",
1403
+ "path"
1404
+ ]
1405
+ }
1406
+ ]
1407
+ },
1408
+ "fastmail-read-mail": {
1409
+ "$comment": "Read mailboxes, threads, messages and search snippets (RFC 8621).",
1410
+ "properties": {
1411
+ "method": {
1412
+ "const": "POST"
1413
+ },
1414
+ "path": {
1415
+ "type": "string",
1416
+ "pattern": "^/jmap/api/?$"
1417
+ },
1418
+ "parsedBody": {
1419
+ "type": "object",
1420
+ "properties": {
1421
+ "methodCalls": {
1422
+ "type": "array",
1423
+ "items": {
1424
+ "type": "array",
1425
+ "prefixItems": [
1426
+ {
1427
+ "type": "string",
1428
+ "pattern": "^(Core/echo|(Mailbox|Thread|Email|SearchSnippet|Identity|VacationResponse)/(get|changes|query|queryChanges|parse))$"
1429
+ }
1430
+ ]
1431
+ }
1432
+ }
1433
+ },
1434
+ "required": [
1435
+ "methodCalls"
1436
+ ]
1437
+ }
1438
+ },
1439
+ "required": [
1440
+ "method",
1441
+ "path",
1442
+ "parsedBody"
1443
+ ]
1444
+ },
1445
+ "fastmail-write-mail": {
1446
+ "$comment": "Create, update, move or delete mailboxes and messages. Does not include sending — that is fastmail-send-mail.",
1447
+ "properties": {
1448
+ "method": {
1449
+ "const": "POST"
1450
+ },
1451
+ "path": {
1452
+ "type": "string",
1453
+ "pattern": "^/jmap/api/?$"
1454
+ },
1455
+ "parsedBody": {
1456
+ "type": "object",
1457
+ "properties": {
1458
+ "methodCalls": {
1459
+ "type": "array",
1460
+ "items": {
1461
+ "type": "array",
1462
+ "prefixItems": [
1463
+ {
1464
+ "type": "string",
1465
+ "pattern": "^(Mailbox|Thread|Email|Identity|VacationResponse)/(set|copy|import)$"
1466
+ }
1467
+ ]
1468
+ }
1469
+ }
1470
+ },
1471
+ "required": [
1472
+ "methodCalls"
1473
+ ]
1474
+ }
1475
+ },
1476
+ "required": [
1477
+ "method",
1478
+ "path",
1479
+ "parsedBody"
1480
+ ]
1481
+ },
1482
+ "fastmail-send-mail": {
1483
+ "$comment": "Send mail on the account's behalf (EmailSubmission/set). Separate from fastmail-write-mail because sending is externally visible and irreversible.",
1484
+ "properties": {
1485
+ "method": {
1486
+ "const": "POST"
1487
+ },
1488
+ "path": {
1489
+ "type": "string",
1490
+ "pattern": "^/jmap/api/?$"
1491
+ },
1492
+ "parsedBody": {
1493
+ "type": "object",
1494
+ "properties": {
1495
+ "methodCalls": {
1496
+ "type": "array",
1497
+ "items": {
1498
+ "type": "array",
1499
+ "prefixItems": [
1500
+ {
1501
+ "type": "string",
1502
+ "pattern": "^(Core/echo|Email/(get|set|import)|EmailSubmission/(get|set|changes|query|queryChanges))$"
1503
+ }
1504
+ ]
1505
+ }
1506
+ }
1507
+ },
1508
+ "required": [
1509
+ "methodCalls"
1510
+ ]
1511
+ }
1512
+ },
1513
+ "required": [
1514
+ "method",
1515
+ "path",
1516
+ "parsedBody"
1517
+ ]
1518
+ },
1519
+ "fastmail-read-contacts": {
1520
+ "$comment": "Read address books and contact cards (RFC 9610), including the legacy Contact and ContactGroup types.",
1521
+ "properties": {
1522
+ "method": {
1523
+ "const": "POST"
1524
+ },
1525
+ "path": {
1526
+ "type": "string",
1527
+ "pattern": "^/jmap/api/?$"
1528
+ },
1529
+ "parsedBody": {
1530
+ "type": "object",
1531
+ "properties": {
1532
+ "methodCalls": {
1533
+ "type": "array",
1534
+ "items": {
1535
+ "type": "array",
1536
+ "prefixItems": [
1537
+ {
1538
+ "type": "string",
1539
+ "pattern": "^(Core/echo|(AddressBook|ContactCard|Contact|ContactGroup)/(get|changes|query|queryChanges|parse))$"
1540
+ }
1541
+ ]
1542
+ }
1543
+ }
1544
+ },
1545
+ "required": [
1546
+ "methodCalls"
1547
+ ]
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "method",
1552
+ "path",
1553
+ "parsedBody"
1554
+ ]
1555
+ },
1556
+ "fastmail-write-contacts": {
1557
+ "$comment": "Create, update or delete address books and contact cards.",
1558
+ "properties": {
1559
+ "method": {
1560
+ "const": "POST"
1561
+ },
1562
+ "path": {
1563
+ "type": "string",
1564
+ "pattern": "^/jmap/api/?$"
1565
+ },
1566
+ "parsedBody": {
1567
+ "type": "object",
1568
+ "properties": {
1569
+ "methodCalls": {
1570
+ "type": "array",
1571
+ "items": {
1572
+ "type": "array",
1573
+ "prefixItems": [
1574
+ {
1575
+ "type": "string",
1576
+ "pattern": "^(AddressBook|ContactCard|Contact|ContactGroup)/(set|copy)$"
1577
+ }
1578
+ ]
1579
+ }
1580
+ }
1581
+ },
1582
+ "required": [
1583
+ "methodCalls"
1584
+ ]
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "method",
1589
+ "path",
1590
+ "parsedBody"
1591
+ ]
1592
+ },
1593
+ "fastmail-read-calendars": {
1594
+ "$comment": "Read calendars and calendar events (RFC 8984 / JSCalendar over JMAP).",
1595
+ "properties": {
1596
+ "method": {
1597
+ "const": "POST"
1598
+ },
1599
+ "path": {
1600
+ "type": "string",
1601
+ "pattern": "^/jmap/api/?$"
1602
+ },
1603
+ "parsedBody": {
1604
+ "type": "object",
1605
+ "properties": {
1606
+ "methodCalls": {
1607
+ "type": "array",
1608
+ "items": {
1609
+ "type": "array",
1610
+ "prefixItems": [
1611
+ {
1612
+ "type": "string",
1613
+ "pattern": "^(Core/echo|(Calendar|CalendarEvent|CalendarEventNotification|ParticipantIdentity)/(get|changes|query|queryChanges|parse))$"
1614
+ }
1615
+ ]
1616
+ }
1617
+ }
1618
+ },
1619
+ "required": [
1620
+ "methodCalls"
1621
+ ]
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "method",
1626
+ "path",
1627
+ "parsedBody"
1628
+ ]
1629
+ },
1630
+ "fastmail-write-calendars": {
1631
+ "$comment": "Create, update or delete calendars and calendar events, including sending invitations to participants.",
1632
+ "properties": {
1633
+ "method": {
1634
+ "const": "POST"
1635
+ },
1636
+ "path": {
1637
+ "type": "string",
1638
+ "pattern": "^/jmap/api/?$"
1639
+ },
1640
+ "parsedBody": {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "methodCalls": {
1644
+ "type": "array",
1645
+ "items": {
1646
+ "type": "array",
1647
+ "prefixItems": [
1648
+ {
1649
+ "type": "string",
1650
+ "pattern": "^(Calendar|CalendarEvent|CalendarEventNotification|ParticipantIdentity)/(set|copy)$"
1651
+ }
1652
+ ]
1653
+ }
1654
+ }
1655
+ },
1656
+ "required": [
1657
+ "methodCalls"
1658
+ ]
1659
+ }
1660
+ },
1661
+ "required": [
1662
+ "method",
1663
+ "path",
1664
+ "parsedBody"
1665
+ ]
1666
+ },
1667
+ "fastmail-download-blobs": {
1668
+ "$comment": "Download message sources and attachments from the blob host named by the session document's downloadUrl.",
1669
+ "properties": {
1670
+ "method": {
1671
+ "const": "GET"
1672
+ },
1673
+ "path": {
1674
+ "type": "string",
1675
+ "pattern": "^/jmap/download/"
1676
+ }
1677
+ },
1678
+ "required": [
1679
+ "method",
1680
+ "path"
1681
+ ]
1682
+ },
1683
+ "fastmail-upload-blobs": {
1684
+ "$comment": "Upload blobs (attachments, message sources) for later use in a method call.",
1685
+ "properties": {
1686
+ "method": {
1687
+ "const": "POST"
1688
+ },
1689
+ "path": {
1690
+ "type": "string",
1691
+ "pattern": "^/jmap/upload/"
1692
+ }
1693
+ },
1694
+ "required": [
1695
+ "method",
1696
+ "path"
1697
+ ]
1698
+ },
1699
+ "fastmail-dav-discover": {
1700
+ "$comment": "Discover the authenticated principal and the collections belonging to it (a current-user-principal PROPFIND, RFC 5397). Required before any DAV client can locate an address book or calendar.",
1701
+ "properties": {
1702
+ "method": {
1703
+ "enum": [
1704
+ "PROPFIND",
1705
+ "OPTIONS"
1706
+ ]
1707
+ },
1708
+ "path": {
1709
+ "type": "string",
1710
+ "pattern": "^/(dav/principals|\\.well-known/(carddav|caldav))"
1711
+ }
1712
+ },
1713
+ "required": [
1714
+ "method",
1715
+ "path"
1716
+ ]
1717
+ },
1718
+ "fastmail-dav-read-all": {
1719
+ "$comment": "Read any DAV resource: PROPFIND and REPORT to enumerate and sync collections, GET to fetch individual vCards or iCalendar objects.",
1720
+ "properties": {
1721
+ "method": {
1722
+ "enum": [
1723
+ "GET",
1724
+ "HEAD",
1725
+ "OPTIONS",
1726
+ "PROPFIND",
1727
+ "REPORT"
1728
+ ]
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "method"
1733
+ ]
1734
+ },
1735
+ "fastmail-dav-write-all": {
1736
+ "$comment": "Create, update or delete any DAV resource or collection.",
1737
+ "properties": {
1738
+ "method": {
1739
+ "enum": [
1740
+ "PUT",
1741
+ "POST",
1742
+ "DELETE",
1743
+ "PROPPATCH",
1744
+ "MKCOL",
1745
+ "MKCALENDAR",
1746
+ "COPY",
1747
+ "MOVE",
1748
+ "ACL"
1749
+ ]
1750
+ }
1751
+ },
1752
+ "required": [
1753
+ "method"
1754
+ ]
1755
+ },
1756
+ "fastmail-dav-read-contacts": {
1757
+ "$comment": "Read address books and vCards over CardDAV (RFC 6352).",
1758
+ "properties": {
1759
+ "method": {
1760
+ "enum": [
1761
+ "GET",
1762
+ "HEAD",
1763
+ "OPTIONS",
1764
+ "PROPFIND",
1765
+ "REPORT"
1766
+ ]
1767
+ },
1768
+ "path": {
1769
+ "type": "string",
1770
+ "pattern": "^/dav/addressbooks(/.*)?$"
1771
+ }
1772
+ },
1773
+ "required": [
1774
+ "method",
1775
+ "path"
1776
+ ]
1777
+ },
1778
+ "fastmail-dav-write-contacts": {
1779
+ "$comment": "Create, update or delete address books and vCards over CardDAV.",
1780
+ "properties": {
1781
+ "method": {
1782
+ "enum": [
1783
+ "PUT",
1784
+ "POST",
1785
+ "DELETE",
1786
+ "PROPPATCH",
1787
+ "MKCOL",
1788
+ "COPY",
1789
+ "MOVE"
1790
+ ]
1791
+ },
1792
+ "path": {
1793
+ "type": "string",
1794
+ "pattern": "^/dav/addressbooks(/.*)?$"
1795
+ }
1796
+ },
1797
+ "required": [
1798
+ "method",
1799
+ "path"
1800
+ ]
1801
+ },
1802
+ "fastmail-dav-read-calendars": {
1803
+ "$comment": "Read calendars and iCalendar objects over CalDAV (RFC 4791).",
1804
+ "properties": {
1805
+ "method": {
1806
+ "enum": [
1807
+ "GET",
1808
+ "HEAD",
1809
+ "OPTIONS",
1810
+ "PROPFIND",
1811
+ "REPORT"
1812
+ ]
1813
+ },
1814
+ "path": {
1815
+ "type": "string",
1816
+ "pattern": "^/dav/calendars(/.*)?$"
1817
+ }
1818
+ },
1819
+ "required": [
1820
+ "method",
1821
+ "path"
1822
+ ]
1823
+ },
1824
+ "fastmail-dav-write-calendars": {
1825
+ "$comment": "Create, update or delete calendars and events over CalDAV, including scheduling messages sent to participants.",
1826
+ "properties": {
1827
+ "method": {
1828
+ "enum": [
1829
+ "PUT",
1830
+ "POST",
1831
+ "DELETE",
1832
+ "PROPPATCH",
1833
+ "MKCOL",
1834
+ "MKCALENDAR",
1835
+ "COPY",
1836
+ "MOVE"
1837
+ ]
1838
+ },
1839
+ "path": {
1840
+ "type": "string",
1841
+ "pattern": "^/dav/calendars(/.*)?$"
1842
+ }
1843
+ },
1844
+ "required": [
1845
+ "method",
1846
+ "path"
1847
+ ]
1848
+ },
1252
1849
  "figma-api": {
1253
1850
  "$comment": "Any request to the Figma API.",
1254
1851
  "properties": {
@@ -6129,10 +6726,13 @@ export const generatedBuiltinSchemas = {
6129
6726
  ]
6130
6727
  },
6131
6728
  "slack-api": {
6132
- "$comment": "Any interaction with the Slack API.",
6729
+ "$comment": "Any interaction with the Slack API, including downloading file content and thumbnails from Slack's file-storage host.",
6133
6730
  "properties": {
6134
6731
  "domain": {
6135
- "const": "slack.com"
6732
+ "enum": [
6733
+ "slack.com",
6734
+ "files.slack.com"
6735
+ ]
6136
6736
  }
6137
6737
  },
6138
6738
  "required": [
@@ -6140,254 +6740,380 @@ export const generatedBuiltinSchemas = {
6140
6740
  ]
6141
6741
  },
6142
6742
  "slack-read-all": {
6143
- "$comment": "All read operations across the entire Slack API, including messages, users, files, reactions, search, pins, bookmarks, reminders, thread subscriptions, and unread counts.",
6144
- "properties": {
6145
- "path": {
6146
- "type": "string",
6147
- "pattern": "^/api/(auth\\.(test|teams\\.list)|chat\\.(getPermalink|scheduledMessages\\.list)|conversations\\.(history|info|list|listConnectInvites|members|replies|requestSharedInvite\\.list)|users\\.(conversations|getPresence|identity|info|list|lookupByEmail|profile\\.get)|files\\.(info|list|remote\\.(info|list))|reactions\\.(get|list)|search\\.(all|files|messages|modules\\.messages)|pins\\.list|bookmarks\\.list|reminders\\.(info|list)|client\\.counts|subscriptions\\.thread\\.getView|threads\\.getView)$"
6743
+ "$comment": "All read operations across the entire Slack API, including messages, users, files, reactions, search, pins, bookmarks, reminders, thread subscriptions, unread counts, and downloading file content and thumbnails.",
6744
+ "anyOf": [
6745
+ {
6746
+ "type": "object",
6747
+ "properties": {
6748
+ "domain": {
6749
+ "const": "slack.com"
6750
+ },
6751
+ "path": {
6752
+ "type": "string",
6753
+ "pattern": "^/api/(auth\\.(test|teams\\.list)|chat\\.(getPermalink|scheduledMessages\\.list)|conversations\\.(history|info|list|listConnectInvites|members|replies|requestSharedInvite\\.list)|users\\.(conversations|getPresence|identity|info|list|lookupByEmail|profile\\.get)|files\\.(info|list|remote\\.(info|list))|reactions\\.(get|list)|search\\.(all|files|messages|modules\\.messages)|pins\\.list|bookmarks\\.list|reminders\\.(info|list)|client\\.counts|subscriptions\\.thread\\.getView|threads\\.getView)$"
6754
+ }
6755
+ },
6756
+ "required": [
6757
+ "domain",
6758
+ "path"
6759
+ ]
6760
+ },
6761
+ {
6762
+ "type": "object",
6763
+ "properties": {
6764
+ "domain": {
6765
+ "const": "files.slack.com"
6766
+ },
6767
+ "path": {
6768
+ "type": "string",
6769
+ "pattern": "^/files-(pri|tmb)/[^/]+/(download/)?[^/]+$"
6770
+ }
6771
+ },
6772
+ "required": [
6773
+ "domain",
6774
+ "path"
6775
+ ]
6148
6776
  }
6149
- },
6150
- "required": [
6151
- "path"
6152
6777
  ]
6153
6778
  },
6154
6779
  "slack-write-all": {
6155
6780
  "$comment": "All write operations across the entire Slack API, including sending messages, managing conversations, updating profiles, uploading files, marking thread subscriptions, and modifying pins, bookmarks, and reminders.",
6156
6781
  "properties": {
6782
+ "domain": {
6783
+ "const": "slack.com"
6784
+ },
6157
6785
  "path": {
6158
6786
  "type": "string",
6159
6787
  "pattern": "^/api/(auth\\.revoke|chat\\.(appendStream|delete|deleteScheduledMessage|meMessage|postEphemeral|postMessage|scheduleMessage|startStream|stopStream|unfurl|update)|conversations\\.(acceptSharedInvite|approveSharedInvite|archive|canvasCreate|close|create|declineSharedInvite|externalInvitePermissions\\.set|invite|inviteShared|join|kick|leave|mark|open|rename|requestSharedInvite\\.(approve|deny)|setPurpose|setTopic|unarchive)|users\\.(setPresence|profile\\.set)|files\\.(completeUploadExternal|delete|getUploadURLExternal|remote\\.(add|remove|share|update)|revokePublicURL|sharedPublicURL)|reactions\\.(add|remove)|pins\\.(add|remove)|bookmarks\\.(add|edit|remove)|reminders\\.(add|complete|delete)|subscriptions\\.thread\\.mark)$"
6160
6788
  }
6161
6789
  },
6162
6790
  "required": [
6791
+ "domain",
6163
6792
  "path"
6164
6793
  ]
6165
6794
  },
6166
6795
  "slack-auth-read": {
6167
6796
  "$comment": "Check authentication status and list teams.",
6168
6797
  "properties": {
6798
+ "domain": {
6799
+ "const": "slack.com"
6800
+ },
6169
6801
  "path": {
6170
6802
  "type": "string",
6171
6803
  "pattern": "^/api/auth\\.(test|teams\\.list)$"
6172
6804
  }
6173
6805
  },
6174
6806
  "required": [
6807
+ "domain",
6175
6808
  "path"
6176
6809
  ]
6177
6810
  },
6178
6811
  "slack-auth-write": {
6179
6812
  "$comment": "Revoke authentication tokens.",
6180
6813
  "properties": {
6814
+ "domain": {
6815
+ "const": "slack.com"
6816
+ },
6181
6817
  "path": {
6182
6818
  "type": "string",
6183
6819
  "pattern": "^/api/auth\\.revoke$"
6184
6820
  }
6185
6821
  },
6186
6822
  "required": [
6823
+ "domain",
6187
6824
  "path"
6188
6825
  ]
6189
6826
  },
6190
6827
  "slack-chat-read": {
6191
6828
  "$comment": "Get message permalinks and list scheduled messages.",
6192
6829
  "properties": {
6830
+ "domain": {
6831
+ "const": "slack.com"
6832
+ },
6193
6833
  "path": {
6194
6834
  "type": "string",
6195
6835
  "pattern": "^/api/chat\\.(getPermalink|scheduledMessages\\.list)$"
6196
6836
  }
6197
6837
  },
6198
6838
  "required": [
6839
+ "domain",
6199
6840
  "path"
6200
6841
  ]
6201
6842
  },
6202
6843
  "slack-chat-write": {
6203
6844
  "$comment": "Send, update, delete, and schedule messages.",
6204
6845
  "properties": {
6846
+ "domain": {
6847
+ "const": "slack.com"
6848
+ },
6205
6849
  "path": {
6206
6850
  "type": "string",
6207
6851
  "pattern": "^/api/chat\\.(appendStream|delete|deleteScheduledMessage|meMessage|postEphemeral|postMessage|scheduleMessage|startStream|stopStream|unfurl|update)$"
6208
6852
  }
6209
6853
  },
6210
6854
  "required": [
6855
+ "domain",
6211
6856
  "path"
6212
6857
  ]
6213
6858
  },
6214
6859
  "slack-conversations-read": {
6215
6860
  "$comment": "Read conversation history, details, members, and replies.",
6216
6861
  "properties": {
6862
+ "domain": {
6863
+ "const": "slack.com"
6864
+ },
6217
6865
  "path": {
6218
6866
  "type": "string",
6219
6867
  "pattern": "^/api/conversations\\.(history|info|list|listConnectInvites|members|replies|requestSharedInvite\\.list)$"
6220
6868
  }
6221
6869
  },
6222
6870
  "required": [
6871
+ "domain",
6223
6872
  "path"
6224
6873
  ]
6225
6874
  },
6226
6875
  "slack-conversations-write": {
6227
6876
  "$comment": "Create, archive, rename, and manage conversations, including membership, invitations, topics, and purposes.",
6228
6877
  "properties": {
6878
+ "domain": {
6879
+ "const": "slack.com"
6880
+ },
6229
6881
  "path": {
6230
6882
  "type": "string",
6231
6883
  "pattern": "^/api/conversations\\.(acceptSharedInvite|approveSharedInvite|archive|canvasCreate|close|create|declineSharedInvite|externalInvitePermissions\\.set|invite|inviteShared|join|kick|leave|mark|open|rename|requestSharedInvite\\.(approve|deny)|setPurpose|setTopic|unarchive)$"
6232
6884
  }
6233
6885
  },
6234
6886
  "required": [
6887
+ "domain",
6235
6888
  "path"
6236
6889
  ]
6237
6890
  },
6238
6891
  "slack-users-read": {
6239
6892
  "$comment": "Read user profiles, presence, identity, and look up users by email.",
6240
6893
  "properties": {
6894
+ "domain": {
6895
+ "const": "slack.com"
6896
+ },
6241
6897
  "path": {
6242
6898
  "type": "string",
6243
6899
  "pattern": "^/api/users\\.(conversations|getPresence|identity|info|list|lookupByEmail|profile\\.get)$"
6244
6900
  }
6245
6901
  },
6246
6902
  "required": [
6903
+ "domain",
6247
6904
  "path"
6248
6905
  ]
6249
6906
  },
6250
6907
  "slack-users-write": {
6251
6908
  "$comment": "Update user presence and profile information.",
6252
6909
  "properties": {
6910
+ "domain": {
6911
+ "const": "slack.com"
6912
+ },
6253
6913
  "path": {
6254
6914
  "type": "string",
6255
6915
  "pattern": "^/api/users\\.(setPresence|profile\\.set)$"
6256
6916
  }
6257
6917
  },
6258
6918
  "required": [
6919
+ "domain",
6259
6920
  "path"
6260
6921
  ]
6261
6922
  },
6262
6923
  "slack-files-read": {
6263
- "$comment": "List and inspect files, including remote files.",
6264
- "properties": {
6265
- "path": {
6266
- "type": "string",
6267
- "pattern": "^/api/files\\.(info|list|remote\\.(info|list))$"
6924
+ "$comment": "List and inspect files, including remote files, and download file content and thumbnails.",
6925
+ "anyOf": [
6926
+ {
6927
+ "type": "object",
6928
+ "properties": {
6929
+ "domain": {
6930
+ "const": "slack.com"
6931
+ },
6932
+ "path": {
6933
+ "type": "string",
6934
+ "pattern": "^/api/files\\.(info|list|remote\\.(info|list))$"
6935
+ }
6936
+ },
6937
+ "required": [
6938
+ "domain",
6939
+ "path"
6940
+ ]
6941
+ },
6942
+ {
6943
+ "type": "object",
6944
+ "properties": {
6945
+ "domain": {
6946
+ "const": "files.slack.com"
6947
+ },
6948
+ "path": {
6949
+ "type": "string",
6950
+ "pattern": "^/files-(pri|tmb)/[^/]+/(download/)?[^/]+$"
6951
+ }
6952
+ },
6953
+ "required": [
6954
+ "domain",
6955
+ "path"
6956
+ ]
6268
6957
  }
6269
- },
6270
- "required": [
6271
- "path"
6272
6958
  ]
6273
6959
  },
6274
6960
  "slack-files-write": {
6275
6961
  "$comment": "Upload, delete, and share files, including remote files.",
6276
6962
  "properties": {
6963
+ "domain": {
6964
+ "const": "slack.com"
6965
+ },
6277
6966
  "path": {
6278
6967
  "type": "string",
6279
6968
  "pattern": "^/api/files\\.(completeUploadExternal|delete|getUploadURLExternal|remote\\.(add|remove|share|update)|revokePublicURL|sharedPublicURL)$"
6280
6969
  }
6281
6970
  },
6282
6971
  "required": [
6972
+ "domain",
6283
6973
  "path"
6284
6974
  ]
6285
6975
  },
6286
6976
  "slack-reactions-read": {
6287
6977
  "$comment": "List and inspect emoji reactions on messages.",
6288
6978
  "properties": {
6979
+ "domain": {
6980
+ "const": "slack.com"
6981
+ },
6289
6982
  "path": {
6290
6983
  "type": "string",
6291
6984
  "pattern": "^/api/reactions\\.(get|list)$"
6292
6985
  }
6293
6986
  },
6294
6987
  "required": [
6988
+ "domain",
6295
6989
  "path"
6296
6990
  ]
6297
6991
  },
6298
6992
  "slack-reactions-write": {
6299
6993
  "$comment": "Add or remove emoji reactions.",
6300
6994
  "properties": {
6995
+ "domain": {
6996
+ "const": "slack.com"
6997
+ },
6301
6998
  "path": {
6302
6999
  "type": "string",
6303
7000
  "pattern": "^/api/reactions\\.(add|remove)$"
6304
7001
  }
6305
7002
  },
6306
7003
  "required": [
7004
+ "domain",
6307
7005
  "path"
6308
7006
  ]
6309
7007
  },
6310
7008
  "slack-search": {
6311
7009
  "$comment": "Search messages, files, and all content.",
6312
7010
  "properties": {
7011
+ "domain": {
7012
+ "const": "slack.com"
7013
+ },
6313
7014
  "path": {
6314
7015
  "type": "string",
6315
7016
  "pattern": "^/api/search\\.(all|files|messages|modules\\.messages)$"
6316
7017
  }
6317
7018
  },
6318
7019
  "required": [
7020
+ "domain",
6319
7021
  "path"
6320
7022
  ]
6321
7023
  },
6322
7024
  "slack-pins-read": {
6323
7025
  "$comment": "List pinned messages in a conversation.",
6324
7026
  "properties": {
7027
+ "domain": {
7028
+ "const": "slack.com"
7029
+ },
6325
7030
  "path": {
6326
7031
  "type": "string",
6327
7032
  "pattern": "^/api/pins\\.list$"
6328
7033
  }
6329
7034
  },
6330
7035
  "required": [
7036
+ "domain",
6331
7037
  "path"
6332
7038
  ]
6333
7039
  },
6334
7040
  "slack-pins-write": {
6335
7041
  "$comment": "Pin or unpin messages in a conversation.",
6336
7042
  "properties": {
7043
+ "domain": {
7044
+ "const": "slack.com"
7045
+ },
6337
7046
  "path": {
6338
7047
  "type": "string",
6339
7048
  "pattern": "^/api/pins\\.(add|remove)$"
6340
7049
  }
6341
7050
  },
6342
7051
  "required": [
7052
+ "domain",
6343
7053
  "path"
6344
7054
  ]
6345
7055
  },
6346
7056
  "slack-bookmarks-read": {
6347
7057
  "$comment": "List bookmarks in a conversation.",
6348
7058
  "properties": {
7059
+ "domain": {
7060
+ "const": "slack.com"
7061
+ },
6349
7062
  "path": {
6350
7063
  "type": "string",
6351
7064
  "pattern": "^/api/bookmarks\\.list$"
6352
7065
  }
6353
7066
  },
6354
7067
  "required": [
7068
+ "domain",
6355
7069
  "path"
6356
7070
  ]
6357
7071
  },
6358
7072
  "slack-bookmarks-write": {
6359
7073
  "$comment": "Add, edit, or remove bookmarks.",
6360
7074
  "properties": {
7075
+ "domain": {
7076
+ "const": "slack.com"
7077
+ },
6361
7078
  "path": {
6362
7079
  "type": "string",
6363
7080
  "pattern": "^/api/bookmarks\\.(add|edit|remove)$"
6364
7081
  }
6365
7082
  },
6366
7083
  "required": [
7084
+ "domain",
6367
7085
  "path"
6368
7086
  ]
6369
7087
  },
6370
7088
  "slack-reminders-read": {
6371
7089
  "$comment": "List and inspect reminders.",
6372
7090
  "properties": {
7091
+ "domain": {
7092
+ "const": "slack.com"
7093
+ },
6373
7094
  "path": {
6374
7095
  "type": "string",
6375
7096
  "pattern": "^/api/reminders\\.(info|list)$"
6376
7097
  }
6377
7098
  },
6378
7099
  "required": [
7100
+ "domain",
6379
7101
  "path"
6380
7102
  ]
6381
7103
  },
6382
7104
  "slack-reminders-write": {
6383
7105
  "$comment": "Create, complete, or delete reminders.",
6384
7106
  "properties": {
7107
+ "domain": {
7108
+ "const": "slack.com"
7109
+ },
6385
7110
  "path": {
6386
7111
  "type": "string",
6387
7112
  "pattern": "^/api/reminders\\.(add|complete|delete)$"
6388
7113
  }
6389
7114
  },
6390
7115
  "required": [
7116
+ "domain",
6391
7117
  "path"
6392
7118
  ]
6393
7119
  },