@imbue-ai/detent 1.14.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.
@@ -1 +1 @@
1
- {"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA4nP5E,CAAC"}
1
+ {"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAitQ5E,CAAC"}
@@ -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": {