@imbue-ai/detent 1.13.0 → 1.15.0

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": {
@@ -6757,6 +7354,176 @@ export const generatedBuiltinSchemas = {
6757
7354
  "path"
6758
7355
  ]
6759
7356
  },
7357
+ "tailscale-api": {
7358
+ "$comment": "All requests to the Tailscale admin REST API (api.tailscale.com), which is served under /api/v2/. Covers tailnet-wide user management (roles, approval, suspension, deletion), device management, ACL/policy, DNS, keys, logs, and webhooks. Does not cover the admin console (console.tailscale.com) or the sign-in host (login.tailscale.com), which the browser login visits but which are not API targets.",
7359
+ "properties": {
7360
+ "domain": {
7361
+ "const": "api.tailscale.com"
7362
+ },
7363
+ "path": {
7364
+ "type": "string",
7365
+ "pattern": "^/api/"
7366
+ }
7367
+ },
7368
+ "required": [
7369
+ "domain",
7370
+ "path"
7371
+ ]
7372
+ },
7373
+ "tailscale-read-all": {
7374
+ "$comment": "Read anything from the Tailscale admin API: list users, devices, keys, webhooks, posture integrations, services, tailnets, DNS and logging configuration, and the policy file. Safe methods only.",
7375
+ "properties": {
7376
+ "method": {
7377
+ "enum": [
7378
+ "GET",
7379
+ "HEAD",
7380
+ "OPTIONS"
7381
+ ]
7382
+ }
7383
+ },
7384
+ "required": [
7385
+ "method"
7386
+ ]
7387
+ },
7388
+ "tailscale-write-all": {
7389
+ "$comment": "Change anything through the Tailscale admin API: change user roles, approve/suspend/restore/delete users, authorize/expire/delete devices, set device tags/routes/names, set the policy file, configure DNS and logging, create and revoke keys, and manage webhooks and OAuth apps. Covers every unsafe method.",
7390
+ "properties": {
7391
+ "method": {
7392
+ "enum": [
7393
+ "POST",
7394
+ "PUT",
7395
+ "PATCH",
7396
+ "DELETE"
7397
+ ]
7398
+ }
7399
+ },
7400
+ "required": [
7401
+ "method"
7402
+ ]
7403
+ },
7404
+ "tailscale-read-users": {
7405
+ "$comment": "Read user information and invitations: list users and user invites, get a user's details. Safe methods on the users and user-invites endpoints only. Maps to Tailscale's own OAuth `users:read` scope.",
7406
+ "properties": {
7407
+ "method": {
7408
+ "enum": [
7409
+ "GET",
7410
+ "HEAD",
7411
+ "OPTIONS"
7412
+ ]
7413
+ },
7414
+ "path": {
7415
+ "type": "string",
7416
+ "pattern": "^/api/v2/(users/|user-invites/|tailnet/[^/]+/users|tailnet/[^/]+/user-invites)"
7417
+ }
7418
+ },
7419
+ "required": [
7420
+ "method",
7421
+ "path"
7422
+ ]
7423
+ },
7424
+ "tailscale-write-users": {
7425
+ "$comment": "Change user roles and handle user approval, suspension, deletion, and restoration; create and resend user invites. Unsafe methods on the users and user-invites endpoints only. Maps to Tailscale's own OAuth `users` scope.",
7426
+ "properties": {
7427
+ "method": {
7428
+ "enum": [
7429
+ "POST",
7430
+ "PUT",
7431
+ "PATCH",
7432
+ "DELETE"
7433
+ ]
7434
+ },
7435
+ "path": {
7436
+ "type": "string",
7437
+ "pattern": "^/api/v2/(users/|user-invites/|tailnet/[^/]+/users|tailnet/[^/]+/user-invites)"
7438
+ }
7439
+ },
7440
+ "required": [
7441
+ "method",
7442
+ "path"
7443
+ ]
7444
+ },
7445
+ "tailscale-read-devices": {
7446
+ "$comment": "Read device information: list tailnet devices, get a device's details, posture attributes, and routes. Safe methods on the device and device-invites endpoints only. Maps to Tailscale's own OAuth `devices:read` scope.",
7447
+ "properties": {
7448
+ "method": {
7449
+ "enum": [
7450
+ "GET",
7451
+ "HEAD",
7452
+ "OPTIONS"
7453
+ ]
7454
+ },
7455
+ "path": {
7456
+ "type": "string",
7457
+ "pattern": "^/api/v2/(device-invites/|device/|tailnet/[^/]+/devices|tailnet/[^/]+/device-attributes)"
7458
+ }
7459
+ },
7460
+ "required": [
7461
+ "method",
7462
+ "path"
7463
+ ]
7464
+ },
7465
+ "tailscale-write-devices": {
7466
+ "$comment": "Add or edit machines: authorize, expire, rename, retag, re-route, or delete devices, and manage device invites and posture attributes. Unsafe methods on the device and device-invites endpoints only. Maps to Tailscale's own OAuth `devices` scope.",
7467
+ "properties": {
7468
+ "method": {
7469
+ "enum": [
7470
+ "POST",
7471
+ "PUT",
7472
+ "PATCH",
7473
+ "DELETE"
7474
+ ]
7475
+ },
7476
+ "path": {
7477
+ "type": "string",
7478
+ "pattern": "^/api/v2/(device-invites/|device/|tailnet/[^/]+/devices|tailnet/[^/]+/device-attributes)"
7479
+ }
7480
+ },
7481
+ "required": [
7482
+ "method",
7483
+ "path"
7484
+ ]
7485
+ },
7486
+ "tailscale-read-keys": {
7487
+ "$comment": "Read the tailnet's keys: list and inspect auth keys (tskey-auth, for the tailscale CLI), API access tokens, OAuth clients, and federated identities. Safe methods on the keys endpoint only. Tailscale's own OAuth model splits this across `auth_keys:read`, `api_access_tokens:read`, `oauth_keys:read`, and `federated_keys:read`, but those are all served by the same `/tailnet/{tailnet}/keys` endpoint and cannot be separated by path.",
7488
+ "properties": {
7489
+ "method": {
7490
+ "enum": [
7491
+ "GET",
7492
+ "HEAD",
7493
+ "OPTIONS"
7494
+ ]
7495
+ },
7496
+ "path": {
7497
+ "type": "string",
7498
+ "pattern": "^/api/v2/tailnet/[^/]+/keys"
7499
+ }
7500
+ },
7501
+ "required": [
7502
+ "method",
7503
+ "path"
7504
+ ]
7505
+ },
7506
+ "tailscale-write-keys": {
7507
+ "$comment": "Mint, update, or revoke any key the tailnet's keys endpoint serves: auth keys (tskey-auth, which the tailscale CLI consumes to bring up nodes), API access tokens, OAuth clients, and federated identities. Unsafe methods on the keys endpoint only. Note that minting an OAuth client or federated identity creates a long-lived credential that can mint further access tokens, so this scope is broader than Tailscale's own `auth_keys` OAuth scope (which covers device auth keys only) -- detent matches by method and path, not request body, so the keyType field that distinguishes them cannot be narrowed here. This is the scope an agent needs to connect new machines to the tailnet.",
7508
+ "properties": {
7509
+ "method": {
7510
+ "enum": [
7511
+ "POST",
7512
+ "PUT",
7513
+ "PATCH",
7514
+ "DELETE"
7515
+ ]
7516
+ },
7517
+ "path": {
7518
+ "type": "string",
7519
+ "pattern": "^/api/v2/tailnet/[^/]+/keys"
7520
+ }
7521
+ },
7522
+ "required": [
7523
+ "method",
7524
+ "path"
7525
+ ]
7526
+ },
6760
7527
  "telegram-api": {
6761
7528
  "$comment": "Matches any request to the Telegram Bot API.",
6762
7529
  "properties": {