@compozy/client 0.3.0-beta.37 → 0.3.0-beta.38

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.
@@ -214,6 +214,16 @@ export class agents extends HeyApiClient {
214
214
  },
215
215
  });
216
216
  }
217
+ /**
218
+ * List a filtered agent fleet with exact session metrics
219
+ */
220
+ listAgentsAggregate(options) {
221
+ return (options?.client ?? this.client).get({
222
+ responseStyle: "data",
223
+ url: "/api/agents/aggregate",
224
+ ...options,
225
+ });
226
+ }
217
227
  /**
218
228
  * List a filtered agent fleet with exact session metrics
219
229
  */
@@ -606,6 +616,16 @@ export class automation extends HeyApiClient {
606
616
  ...options,
607
617
  });
608
618
  }
619
+ /**
620
+ * List consent-first automation suggestions for one workspace
621
+ */
622
+ listAutomationSuggestionsAggregate(options) {
623
+ return (options?.client ?? this.client).get({
624
+ responseStyle: "data",
625
+ url: "/api/automation/suggestions",
626
+ ...options,
627
+ });
628
+ }
609
629
  /**
610
630
  * List automation triggers
611
631
  */
@@ -1375,164 +1395,156 @@ export class logs extends HeyApiClient {
1375
1395
  });
1376
1396
  }
1377
1397
  }
1378
- export class marketplace extends HeyApiClient {
1398
+ export class loops extends HeyApiClient {
1379
1399
  /**
1380
- * List the extension catalog with source state and a content revision
1400
+ * List Loop human requests
1381
1401
  */
1382
- listMarketplace(options) {
1402
+ listLoopRequestsAggregate(options) {
1383
1403
  return (options?.client ?? this.client).get({
1384
1404
  responseStyle: "data",
1385
- url: "/api/marketplace",
1405
+ url: "/api/loop-requests",
1386
1406
  ...options,
1387
1407
  });
1388
1408
  }
1389
1409
  /**
1390
- * Get a catalog entry or an explicitly selected installed extension
1410
+ * List Loop runs
1391
1411
  */
1392
- getMarketplaceCatalogEntry(options) {
1393
- return (options.client ?? this.client).get({
1412
+ listLoopRunsAggregate(options) {
1413
+ return (options?.client ?? this.client).get({
1394
1414
  responseStyle: "data",
1395
- url: "/api/marketplace/entries/{entry_id}",
1415
+ url: "/api/loop-runs",
1396
1416
  ...options,
1397
1417
  });
1398
1418
  }
1399
1419
  /**
1400
- * Refresh the extension catalog
1420
+ * List Loop catalog entries
1401
1421
  */
1402
- refreshMarketplaceCatalog(options) {
1403
- return (options?.client ?? this.client).post({
1422
+ listLoopsAggregate(options) {
1423
+ return (options?.client ?? this.client).get({
1404
1424
  responseStyle: "data",
1405
- url: "/api/marketplace/refresh",
1425
+ url: "/api/loops",
1406
1426
  ...options,
1407
1427
  });
1408
1428
  }
1409
1429
  /**
1410
- * List global plugin marketplace sources
1411
- *
1412
- * @stability experimental
1430
+ * List workspace Loop node state
1413
1431
  */
1414
- listMarketplaceSources(options) {
1415
- return (options?.client ?? this.client).get({
1432
+ listLoopNodes(options) {
1433
+ return (options.client ?? this.client).get({
1416
1434
  responseStyle: "data",
1417
- url: "/api/marketplace/sources",
1435
+ url: "/api/workspaces/{workspace_id}/loop-nodes",
1418
1436
  ...options,
1419
1437
  });
1420
1438
  }
1421
1439
  /**
1422
- * Validate or register a plugin marketplace source
1423
- *
1424
- * @stability experimental
1440
+ * List Loop human requests
1425
1441
  */
1426
- addMarketplaceSource(options) {
1427
- return (options.client ?? this.client).post({
1442
+ listLoopRequests(options) {
1443
+ return (options.client ?? this.client).get({
1428
1444
  responseStyle: "data",
1429
- url: "/api/marketplace/sources",
1445
+ url: "/api/workspaces/{workspace_id}/loop-requests",
1430
1446
  ...options,
1431
- headers: {
1432
- "Content-Type": "application/json",
1433
- ...options.headers,
1434
- },
1435
1447
  });
1436
1448
  }
1437
1449
  /**
1438
- * Remove a custom source without removing installed extensions
1439
- *
1440
- * @stability experimental
1450
+ * List Loop runs
1441
1451
  */
1442
- removeMarketplaceSource(options) {
1443
- return (options.client ?? this.client).delete({
1452
+ listLoopRuns(options) {
1453
+ return (options.client ?? this.client).get({
1444
1454
  responseStyle: "data",
1445
- url: "/api/marketplace/sources/{name}",
1455
+ url: "/api/workspaces/{workspace_id}/loop-runs",
1446
1456
  ...options,
1447
1457
  });
1448
1458
  }
1449
1459
  /**
1450
- * Enable or disable a plugin marketplace source
1451
- *
1452
- * @stability experimental
1460
+ * Get one Loop run
1453
1461
  */
1454
- updateMarketplaceSource(options) {
1455
- return (options.client ?? this.client).patch({
1462
+ getLoopRun(options) {
1463
+ return (options.client ?? this.client).get({
1456
1464
  responseStyle: "data",
1457
- url: "/api/marketplace/sources/{name}",
1465
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}",
1458
1466
  ...options,
1459
- headers: {
1460
- "Content-Type": "application/json",
1461
- ...options.headers,
1462
- },
1463
1467
  });
1464
1468
  }
1465
1469
  /**
1466
- * Refresh one enabled marketplace source
1467
- *
1468
- * @stability experimental
1470
+ * Approve one Loop gate
1469
1471
  */
1470
- refreshMarketplaceSource(options) {
1472
+ approveLoopRun(options) {
1471
1473
  return (options.client ?? this.client).post({
1472
1474
  responseStyle: "data",
1473
- url: "/api/marketplace/sources/{name}/refresh",
1475
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/approve",
1474
1476
  ...options,
1477
+ headers: {
1478
+ "Content-Type": "application/json",
1479
+ ...options.headers,
1480
+ },
1475
1481
  });
1476
1482
  }
1477
- }
1478
- export class settings extends HeyApiClient {
1479
1483
  /**
1480
- * Complete a loopback MCP OAuth browser redirect
1484
+ * Explain the current Loop run state
1481
1485
  */
1482
- completeMCPAuthCallback(options) {
1486
+ getLoopRunBriefing(options) {
1483
1487
  return (options.client ?? this.client).get({
1484
1488
  responseStyle: "data",
1485
- url: "/api/mcp/oauth/callback",
1489
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/briefing",
1486
1490
  ...options,
1487
1491
  });
1488
1492
  }
1489
1493
  /**
1490
- * Trigger a daemon restart using the persisted relaunch helper flow
1494
+ * Cancel one Loop run
1491
1495
  */
1492
- triggerSettingsRestart(options) {
1493
- return (options?.client ?? this.client).post({
1496
+ cancelLoopRun(options) {
1497
+ return (options.client ?? this.client).post({
1494
1498
  responseStyle: "data",
1495
- url: "/api/settings/actions/restart",
1499
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/cancel",
1496
1500
  ...options,
1501
+ headers: {
1502
+ "Content-Type": "application/json",
1503
+ ...options.headers,
1504
+ },
1497
1505
  });
1498
1506
  }
1499
1507
  /**
1500
- * Get the persisted status for one daemon restart operation
1508
+ * Compare Loop generations or runs
1501
1509
  */
1502
- getSettingsRestartStatus(options) {
1510
+ diffLoopRun(options) {
1503
1511
  return (options.client ?? this.client).get({
1504
1512
  responseStyle: "data",
1505
- url: "/api/settings/actions/restart/{operation_id}",
1513
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/diff",
1506
1514
  ...options,
1507
1515
  });
1508
1516
  }
1509
1517
  /**
1510
- * List config apply records for desired and active generation reconciliation
1518
+ * Fork a linked Loop run from history
1511
1519
  */
1512
- listSettingsApplyRecords(options) {
1513
- return (options?.client ?? this.client).get({
1520
+ forkLoopRun(options) {
1521
+ return (options.client ?? this.client).post({
1514
1522
  responseStyle: "data",
1515
- url: "/api/settings/apply",
1523
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/fork",
1516
1524
  ...options,
1525
+ headers: {
1526
+ "Content-Type": "application/json",
1527
+ ...options.headers,
1528
+ },
1517
1529
  });
1518
1530
  }
1519
1531
  /**
1520
- * Read the operator attention settings section
1532
+ * Get the computed Loop run node roster
1521
1533
  */
1522
- getSettingsAttention(options) {
1523
- return (options?.client ?? this.client).get({
1534
+ getLoopRunNodes(options) {
1535
+ return (options.client ?? this.client).get({
1524
1536
  responseStyle: "data",
1525
- url: "/api/settings/attention",
1537
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes",
1526
1538
  ...options,
1527
1539
  });
1528
1540
  }
1529
1541
  /**
1530
- * Update the operator attention settings section
1542
+ * Amend one parked Loop node output
1531
1543
  */
1532
- updateSettingsAttention(options) {
1533
- return (options.client ?? this.client).patch({
1544
+ amendLoopNode(options) {
1545
+ return (options.client ?? this.client).post({
1534
1546
  responseStyle: "data",
1535
- url: "/api/settings/attention",
1547
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/amend",
1536
1548
  ...options,
1537
1549
  headers: {
1538
1550
  "Content-Type": "application/json",
@@ -1541,22 +1553,26 @@ export class settings extends HeyApiClient {
1541
1553
  });
1542
1554
  }
1543
1555
  /**
1544
- * Read the automation settings section
1556
+ * Cancel one Loop node
1545
1557
  */
1546
- getSettingsAutomation(options) {
1547
- return (options?.client ?? this.client).get({
1558
+ cancelLoopNode(options) {
1559
+ return (options.client ?? this.client).post({
1548
1560
  responseStyle: "data",
1549
- url: "/api/settings/automation",
1561
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/cancel",
1550
1562
  ...options,
1563
+ headers: {
1564
+ "Content-Type": "application/json",
1565
+ ...options.headers,
1566
+ },
1551
1567
  });
1552
1568
  }
1553
1569
  /**
1554
- * Update the automation settings section
1570
+ * Pause one Loop node
1555
1571
  */
1556
- updateSettingsAutomation(options) {
1557
- return (options.client ?? this.client).patch({
1572
+ pauseLoopNode(options) {
1573
+ return (options.client ?? this.client).post({
1558
1574
  responseStyle: "data",
1559
- url: "/api/settings/automation",
1575
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/pause",
1560
1576
  ...options,
1561
1577
  headers: {
1562
1578
  "Content-Type": "application/json",
@@ -1565,22 +1581,22 @@ export class settings extends HeyApiClient {
1565
1581
  });
1566
1582
  }
1567
1583
  /**
1568
- * Read command-palette settings
1584
+ * Get one Loop human request
1569
1585
  */
1570
- getSettingsCmdPalette(options) {
1571
- return (options?.client ?? this.client).get({
1586
+ getLoopRequest(options) {
1587
+ return (options.client ?? this.client).get({
1572
1588
  responseStyle: "data",
1573
- url: "/api/settings/cmd-palette",
1589
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/request",
1574
1590
  ...options,
1575
1591
  });
1576
1592
  }
1577
1593
  /**
1578
- * Update command-palette settings
1594
+ * Requeue one Loop node
1579
1595
  */
1580
- updateSettingsCmdPalette(options) {
1581
- return (options.client ?? this.client).patch({
1596
+ requeueLoopNode(options) {
1597
+ return (options.client ?? this.client).post({
1582
1598
  responseStyle: "data",
1583
- url: "/api/settings/cmd-palette",
1599
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/requeue",
1584
1600
  ...options,
1585
1601
  headers: {
1586
1602
  "Content-Type": "application/json",
@@ -1589,22 +1605,26 @@ export class settings extends HeyApiClient {
1589
1605
  });
1590
1606
  }
1591
1607
  /**
1592
- * Read the general settings section
1608
+ * Answer one Loop human request
1593
1609
  */
1594
- getSettingsGeneral(options) {
1595
- return (options?.client ?? this.client).get({
1610
+ respondLoopRequest(options) {
1611
+ return (options.client ?? this.client).post({
1596
1612
  responseStyle: "data",
1597
- url: "/api/settings/general",
1613
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/respond",
1598
1614
  ...options,
1615
+ headers: {
1616
+ "Content-Type": "application/json",
1617
+ ...options.headers,
1618
+ },
1599
1619
  });
1600
1620
  }
1601
1621
  /**
1602
- * Update the general settings section
1622
+ * Resume one Loop node
1603
1623
  */
1604
- updateSettingsGeneral(options) {
1605
- return (options.client ?? this.client).patch({
1624
+ resumeLoopNode(options) {
1625
+ return (options.client ?? this.client).post({
1606
1626
  responseStyle: "data",
1607
- url: "/api/settings/general",
1627
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/resume",
1608
1628
  ...options,
1609
1629
  headers: {
1610
1630
  "Content-Type": "application/json",
@@ -1613,32 +1633,40 @@ export class settings extends HeyApiClient {
1613
1633
  });
1614
1634
  }
1615
1635
  /**
1616
- * List settings-backed hook declarations
1636
+ * Pause one Loop run
1617
1637
  */
1618
- listSettingsHooks(options) {
1619
- return (options?.client ?? this.client).get({
1638
+ pauseLoopRun(options) {
1639
+ return (options.client ?? this.client).post({
1620
1640
  responseStyle: "data",
1621
- url: "/api/settings/hooks",
1641
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/pause",
1622
1642
  ...options,
1643
+ headers: {
1644
+ "Content-Type": "application/json",
1645
+ ...options.headers,
1646
+ },
1623
1647
  });
1624
1648
  }
1625
1649
  /**
1626
- * Read the hooks and extensions settings section
1650
+ * Rerun a Loop from one settled node
1627
1651
  */
1628
- getSettingsHooksExtensions(options) {
1629
- return (options?.client ?? this.client).get({
1652
+ rerunLoopRun(options) {
1653
+ return (options.client ?? this.client).post({
1630
1654
  responseStyle: "data",
1631
- url: "/api/settings/hooks-extensions",
1655
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/rerun",
1632
1656
  ...options,
1657
+ headers: {
1658
+ "Content-Type": "application/json",
1659
+ ...options.headers,
1660
+ },
1633
1661
  });
1634
1662
  }
1635
1663
  /**
1636
- * Update the hooks and extensions settings section
1664
+ * Resume one Loop run
1637
1665
  */
1638
- updateSettingsHooksExtensions(options) {
1639
- return (options.client ?? this.client).patch({
1666
+ resumeLoopRun(options) {
1667
+ return (options.client ?? this.client).post({
1640
1668
  responseStyle: "data",
1641
- url: "/api/settings/hooks-extensions",
1669
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/resume",
1642
1670
  ...options,
1643
1671
  headers: {
1644
1672
  "Content-Type": "application/json",
@@ -1647,27 +1675,535 @@ export class settings extends HeyApiClient {
1647
1675
  });
1648
1676
  }
1649
1677
  /**
1650
- * Delete one settings-backed hook declaration
1678
+ * Read the durable Loop run timeline
1651
1679
  */
1652
- deleteSettingsHook(options) {
1653
- return (options.client ?? this.client).delete({
1680
+ getLoopRunTimeline(options) {
1681
+ return (options.client ?? this.client).get({
1654
1682
  responseStyle: "data",
1655
- url: "/api/settings/hooks/{name}",
1683
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/timeline",
1656
1684
  ...options,
1657
1685
  });
1658
1686
  }
1659
1687
  /**
1660
- * Create or replace one settings-backed hook declaration
1688
+ * List Goal turns in run-wide sequence order
1661
1689
  */
1662
- putSettingsHook(options) {
1663
- return (options.client ?? this.client).put({
1690
+ listGoalTurns(options) {
1691
+ return (options.client ?? this.client).get({
1664
1692
  responseStyle: "data",
1665
- url: "/api/settings/hooks/{name}",
1693
+ url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/turns",
1666
1694
  ...options,
1667
- headers: {
1668
- "Content-Type": "application/json",
1669
- ...options.headers,
1670
- },
1695
+ });
1696
+ }
1697
+ /**
1698
+ * List Loop catalog entries
1699
+ */
1700
+ listLoops(options) {
1701
+ return (options.client ?? this.client).get({
1702
+ responseStyle: "data",
1703
+ url: "/api/workspaces/{workspace_id}/loops",
1704
+ ...options,
1705
+ });
1706
+ }
1707
+ /**
1708
+ * Create or fork a Loop definition
1709
+ */
1710
+ createLoop(options) {
1711
+ return (options.client ?? this.client).post({
1712
+ responseStyle: "data",
1713
+ url: "/api/workspaces/{workspace_id}/loops",
1714
+ ...options,
1715
+ headers: {
1716
+ "Content-Type": "application/json",
1717
+ ...options.headers,
1718
+ },
1719
+ });
1720
+ }
1721
+ /**
1722
+ * Delete one writable Loop definition
1723
+ */
1724
+ deleteLoop(options) {
1725
+ return (options.client ?? this.client).delete({
1726
+ responseStyle: "data",
1727
+ url: "/api/workspaces/{workspace_id}/loops/{name}",
1728
+ ...options,
1729
+ });
1730
+ }
1731
+ /**
1732
+ * Inspect one Loop definition
1733
+ */
1734
+ getLoop(options) {
1735
+ return (options.client ?? this.client).get({
1736
+ responseStyle: "data",
1737
+ url: "/api/workspaces/{workspace_id}/loops/{name}",
1738
+ ...options,
1739
+ });
1740
+ }
1741
+ /**
1742
+ * Publish one Loop definition with optimistic concurrency
1743
+ */
1744
+ patchLoop(options) {
1745
+ return (options.client ?? this.client).patch({
1746
+ responseStyle: "data",
1747
+ url: "/api/workspaces/{workspace_id}/loops/{name}",
1748
+ ...options,
1749
+ headers: {
1750
+ "Content-Type": "application/json",
1751
+ ...options.headers,
1752
+ },
1753
+ });
1754
+ }
1755
+ /**
1756
+ * Get Loop editor annotations
1757
+ */
1758
+ getLoopAnnotations(options) {
1759
+ return (options.client ?? this.client).get({
1760
+ responseStyle: "data",
1761
+ url: "/api/workspaces/{workspace_id}/loops/{name}/annotations",
1762
+ ...options,
1763
+ });
1764
+ }
1765
+ /**
1766
+ * Replace Loop editor annotations
1767
+ */
1768
+ putLoopAnnotations(options) {
1769
+ return (options.client ?? this.client).put({
1770
+ responseStyle: "data",
1771
+ url: "/api/workspaces/{workspace_id}/loops/{name}/annotations",
1772
+ ...options,
1773
+ headers: {
1774
+ "Content-Type": "application/json",
1775
+ ...options.headers,
1776
+ },
1777
+ });
1778
+ }
1779
+ /**
1780
+ * Get Loop config override
1781
+ */
1782
+ getLoopConfig(options) {
1783
+ return (options.client ?? this.client).get({
1784
+ responseStyle: "data",
1785
+ url: "/api/workspaces/{workspace_id}/loops/{name}/config",
1786
+ ...options,
1787
+ });
1788
+ }
1789
+ /**
1790
+ * Replace Loop config override
1791
+ */
1792
+ putLoopConfig(options) {
1793
+ return (options.client ?? this.client).put({
1794
+ responseStyle: "data",
1795
+ url: "/api/workspaces/{workspace_id}/loops/{name}/config",
1796
+ ...options,
1797
+ headers: {
1798
+ "Content-Type": "application/json",
1799
+ ...options.headers,
1800
+ },
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Get one scoped Loop input-default table
1805
+ */
1806
+ getLoopInputDefaults(options) {
1807
+ return (options.client ?? this.client).get({
1808
+ responseStyle: "data",
1809
+ url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults",
1810
+ ...options,
1811
+ });
1812
+ }
1813
+ /**
1814
+ * Replace one scoped Loop input-default table
1815
+ */
1816
+ putLoopInputDefaults(options) {
1817
+ return (options.client ?? this.client).put({
1818
+ responseStyle: "data",
1819
+ url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults",
1820
+ ...options,
1821
+ headers: {
1822
+ "Content-Type": "application/json",
1823
+ ...options.headers,
1824
+ },
1825
+ });
1826
+ }
1827
+ /**
1828
+ * Delete one scoped Loop input default
1829
+ */
1830
+ deleteLoopInputDefault(options) {
1831
+ return (options.client ?? this.client).delete({
1832
+ responseStyle: "data",
1833
+ url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
1834
+ ...options,
1835
+ });
1836
+ }
1837
+ /**
1838
+ * Get one scoped Loop input default
1839
+ */
1840
+ getLoopInputDefault(options) {
1841
+ return (options.client ?? this.client).get({
1842
+ responseStyle: "data",
1843
+ url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
1844
+ ...options,
1845
+ });
1846
+ }
1847
+ /**
1848
+ * Set one scoped Loop input default
1849
+ */
1850
+ putLoopInputDefault(options) {
1851
+ return (options.client ?? this.client).put({
1852
+ responseStyle: "data",
1853
+ url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
1854
+ ...options,
1855
+ headers: {
1856
+ "Content-Type": "application/json",
1857
+ ...options.headers,
1858
+ },
1859
+ });
1860
+ }
1861
+ /**
1862
+ * Start or dry-run one Loop
1863
+ */
1864
+ runLoop(options) {
1865
+ return (options.client ?? this.client).post({
1866
+ responseStyle: "data",
1867
+ url: "/api/workspaces/{workspace_id}/loops/{name}/run",
1868
+ ...options,
1869
+ headers: {
1870
+ "Content-Type": "application/json",
1871
+ ...options.headers,
1872
+ },
1873
+ });
1874
+ }
1875
+ /**
1876
+ * Validate one Loop definition without saving
1877
+ */
1878
+ validateLoop(options) {
1879
+ return (options.client ?? this.client).post({
1880
+ responseStyle: "data",
1881
+ url: "/api/workspaces/{workspace_id}/loops/{name}/validate",
1882
+ ...options,
1883
+ headers: {
1884
+ "Content-Type": "application/json",
1885
+ ...options.headers,
1886
+ },
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Get the newest visible session Goal
1891
+ */
1892
+ getSessionGoal(options) {
1893
+ return (options.client ?? this.client).get({
1894
+ responseStyle: "data",
1895
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/goal",
1896
+ ...options,
1897
+ });
1898
+ }
1899
+ /**
1900
+ * Set or control the authenticated session Goal
1901
+ */
1902
+ mutateSessionGoal(options) {
1903
+ return (options.client ?? this.client).post({
1904
+ responseStyle: "data",
1905
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/goal",
1906
+ ...options,
1907
+ headers: {
1908
+ "Content-Type": "application/json",
1909
+ ...options.headers,
1910
+ },
1911
+ });
1912
+ }
1913
+ }
1914
+ export class marketplace extends HeyApiClient {
1915
+ /**
1916
+ * List the extension catalog with source state and a content revision
1917
+ */
1918
+ listMarketplace(options) {
1919
+ return (options?.client ?? this.client).get({
1920
+ responseStyle: "data",
1921
+ url: "/api/marketplace",
1922
+ ...options,
1923
+ });
1924
+ }
1925
+ /**
1926
+ * Get a catalog entry or an explicitly selected installed extension
1927
+ */
1928
+ getMarketplaceCatalogEntry(options) {
1929
+ return (options.client ?? this.client).get({
1930
+ responseStyle: "data",
1931
+ url: "/api/marketplace/entries/{entry_id}",
1932
+ ...options,
1933
+ });
1934
+ }
1935
+ /**
1936
+ * Refresh the extension catalog
1937
+ */
1938
+ refreshMarketplaceCatalog(options) {
1939
+ return (options?.client ?? this.client).post({
1940
+ responseStyle: "data",
1941
+ url: "/api/marketplace/refresh",
1942
+ ...options,
1943
+ });
1944
+ }
1945
+ /**
1946
+ * List global plugin marketplace sources
1947
+ *
1948
+ * @stability experimental
1949
+ */
1950
+ listMarketplaceSources(options) {
1951
+ return (options?.client ?? this.client).get({
1952
+ responseStyle: "data",
1953
+ url: "/api/marketplace/sources",
1954
+ ...options,
1955
+ });
1956
+ }
1957
+ /**
1958
+ * Validate or register a plugin marketplace source
1959
+ *
1960
+ * @stability experimental
1961
+ */
1962
+ addMarketplaceSource(options) {
1963
+ return (options.client ?? this.client).post({
1964
+ responseStyle: "data",
1965
+ url: "/api/marketplace/sources",
1966
+ ...options,
1967
+ headers: {
1968
+ "Content-Type": "application/json",
1969
+ ...options.headers,
1970
+ },
1971
+ });
1972
+ }
1973
+ /**
1974
+ * Remove a custom source without removing installed extensions
1975
+ *
1976
+ * @stability experimental
1977
+ */
1978
+ removeMarketplaceSource(options) {
1979
+ return (options.client ?? this.client).delete({
1980
+ responseStyle: "data",
1981
+ url: "/api/marketplace/sources/{name}",
1982
+ ...options,
1983
+ });
1984
+ }
1985
+ /**
1986
+ * Enable or disable a plugin marketplace source
1987
+ *
1988
+ * @stability experimental
1989
+ */
1990
+ updateMarketplaceSource(options) {
1991
+ return (options.client ?? this.client).patch({
1992
+ responseStyle: "data",
1993
+ url: "/api/marketplace/sources/{name}",
1994
+ ...options,
1995
+ headers: {
1996
+ "Content-Type": "application/json",
1997
+ ...options.headers,
1998
+ },
1999
+ });
2000
+ }
2001
+ /**
2002
+ * Refresh one enabled marketplace source
2003
+ *
2004
+ * @stability experimental
2005
+ */
2006
+ refreshMarketplaceSource(options) {
2007
+ return (options.client ?? this.client).post({
2008
+ responseStyle: "data",
2009
+ url: "/api/marketplace/sources/{name}/refresh",
2010
+ ...options,
2011
+ });
2012
+ }
2013
+ }
2014
+ export class settings extends HeyApiClient {
2015
+ /**
2016
+ * Complete a loopback MCP OAuth browser redirect
2017
+ */
2018
+ completeMCPAuthCallback(options) {
2019
+ return (options.client ?? this.client).get({
2020
+ responseStyle: "data",
2021
+ url: "/api/mcp/oauth/callback",
2022
+ ...options,
2023
+ });
2024
+ }
2025
+ /**
2026
+ * Trigger a daemon restart using the persisted relaunch helper flow
2027
+ */
2028
+ triggerSettingsRestart(options) {
2029
+ return (options?.client ?? this.client).post({
2030
+ responseStyle: "data",
2031
+ url: "/api/settings/actions/restart",
2032
+ ...options,
2033
+ });
2034
+ }
2035
+ /**
2036
+ * Get the persisted status for one daemon restart operation
2037
+ */
2038
+ getSettingsRestartStatus(options) {
2039
+ return (options.client ?? this.client).get({
2040
+ responseStyle: "data",
2041
+ url: "/api/settings/actions/restart/{operation_id}",
2042
+ ...options,
2043
+ });
2044
+ }
2045
+ /**
2046
+ * List config apply records for desired and active generation reconciliation
2047
+ */
2048
+ listSettingsApplyRecords(options) {
2049
+ return (options?.client ?? this.client).get({
2050
+ responseStyle: "data",
2051
+ url: "/api/settings/apply",
2052
+ ...options,
2053
+ });
2054
+ }
2055
+ /**
2056
+ * Read the operator attention settings section
2057
+ */
2058
+ getSettingsAttention(options) {
2059
+ return (options?.client ?? this.client).get({
2060
+ responseStyle: "data",
2061
+ url: "/api/settings/attention",
2062
+ ...options,
2063
+ });
2064
+ }
2065
+ /**
2066
+ * Update the operator attention settings section
2067
+ */
2068
+ updateSettingsAttention(options) {
2069
+ return (options.client ?? this.client).patch({
2070
+ responseStyle: "data",
2071
+ url: "/api/settings/attention",
2072
+ ...options,
2073
+ headers: {
2074
+ "Content-Type": "application/json",
2075
+ ...options.headers,
2076
+ },
2077
+ });
2078
+ }
2079
+ /**
2080
+ * Read the automation settings section
2081
+ */
2082
+ getSettingsAutomation(options) {
2083
+ return (options?.client ?? this.client).get({
2084
+ responseStyle: "data",
2085
+ url: "/api/settings/automation",
2086
+ ...options,
2087
+ });
2088
+ }
2089
+ /**
2090
+ * Update the automation settings section
2091
+ */
2092
+ updateSettingsAutomation(options) {
2093
+ return (options.client ?? this.client).patch({
2094
+ responseStyle: "data",
2095
+ url: "/api/settings/automation",
2096
+ ...options,
2097
+ headers: {
2098
+ "Content-Type": "application/json",
2099
+ ...options.headers,
2100
+ },
2101
+ });
2102
+ }
2103
+ /**
2104
+ * Read command-palette settings
2105
+ */
2106
+ getSettingsCmdPalette(options) {
2107
+ return (options?.client ?? this.client).get({
2108
+ responseStyle: "data",
2109
+ url: "/api/settings/cmd-palette",
2110
+ ...options,
2111
+ });
2112
+ }
2113
+ /**
2114
+ * Update command-palette settings
2115
+ */
2116
+ updateSettingsCmdPalette(options) {
2117
+ return (options.client ?? this.client).patch({
2118
+ responseStyle: "data",
2119
+ url: "/api/settings/cmd-palette",
2120
+ ...options,
2121
+ headers: {
2122
+ "Content-Type": "application/json",
2123
+ ...options.headers,
2124
+ },
2125
+ });
2126
+ }
2127
+ /**
2128
+ * Read the general settings section
2129
+ */
2130
+ getSettingsGeneral(options) {
2131
+ return (options?.client ?? this.client).get({
2132
+ responseStyle: "data",
2133
+ url: "/api/settings/general",
2134
+ ...options,
2135
+ });
2136
+ }
2137
+ /**
2138
+ * Update the general settings section
2139
+ */
2140
+ updateSettingsGeneral(options) {
2141
+ return (options.client ?? this.client).patch({
2142
+ responseStyle: "data",
2143
+ url: "/api/settings/general",
2144
+ ...options,
2145
+ headers: {
2146
+ "Content-Type": "application/json",
2147
+ ...options.headers,
2148
+ },
2149
+ });
2150
+ }
2151
+ /**
2152
+ * List settings-backed hook declarations
2153
+ */
2154
+ listSettingsHooks(options) {
2155
+ return (options?.client ?? this.client).get({
2156
+ responseStyle: "data",
2157
+ url: "/api/settings/hooks",
2158
+ ...options,
2159
+ });
2160
+ }
2161
+ /**
2162
+ * Read the hooks and extensions settings section
2163
+ */
2164
+ getSettingsHooksExtensions(options) {
2165
+ return (options?.client ?? this.client).get({
2166
+ responseStyle: "data",
2167
+ url: "/api/settings/hooks-extensions",
2168
+ ...options,
2169
+ });
2170
+ }
2171
+ /**
2172
+ * Update the hooks and extensions settings section
2173
+ */
2174
+ updateSettingsHooksExtensions(options) {
2175
+ return (options.client ?? this.client).patch({
2176
+ responseStyle: "data",
2177
+ url: "/api/settings/hooks-extensions",
2178
+ ...options,
2179
+ headers: {
2180
+ "Content-Type": "application/json",
2181
+ ...options.headers,
2182
+ },
2183
+ });
2184
+ }
2185
+ /**
2186
+ * Delete one settings-backed hook declaration
2187
+ */
2188
+ deleteSettingsHook(options) {
2189
+ return (options.client ?? this.client).delete({
2190
+ responseStyle: "data",
2191
+ url: "/api/settings/hooks/{name}",
2192
+ ...options,
2193
+ });
2194
+ }
2195
+ /**
2196
+ * Create or replace one settings-backed hook declaration
2197
+ */
2198
+ putSettingsHook(options) {
2199
+ return (options.client ?? this.client).put({
2200
+ responseStyle: "data",
2201
+ url: "/api/settings/hooks/{name}",
2202
+ ...options,
2203
+ headers: {
2204
+ "Content-Type": "application/json",
2205
+ ...options.headers,
2206
+ },
1671
2207
  });
1672
2208
  }
1673
2209
  /**
@@ -1802,7 +2338,31 @@ export class settings extends HeyApiClient {
1802
2338
  updateSettingsObservability(options) {
1803
2339
  return (options.client ?? this.client).patch({
1804
2340
  responseStyle: "data",
1805
- url: "/api/settings/observability",
2341
+ url: "/api/settings/observability",
2342
+ ...options,
2343
+ headers: {
2344
+ "Content-Type": "application/json",
2345
+ ...options.headers,
2346
+ },
2347
+ });
2348
+ }
2349
+ /**
2350
+ * Read profile-layerable persona defaults
2351
+ */
2352
+ getSettingsPersona(options) {
2353
+ return (options?.client ?? this.client).get({
2354
+ responseStyle: "data",
2355
+ url: "/api/settings/persona",
2356
+ ...options,
2357
+ });
2358
+ }
2359
+ /**
2360
+ * Update profile-layerable persona defaults
2361
+ */
2362
+ updateSettingsPersona(options) {
2363
+ return (options.client ?? this.client).patch({
2364
+ responseStyle: "data",
2365
+ url: "/api/settings/persona",
1806
2366
  ...options,
1807
2367
  headers: {
1808
2368
  "Content-Type": "application/json",
@@ -1811,22 +2371,22 @@ export class settings extends HeyApiClient {
1811
2371
  });
1812
2372
  }
1813
2373
  /**
1814
- * Read profile-layerable persona defaults
2374
+ * Read the provider usage settings section
1815
2375
  */
1816
- getSettingsPersona(options) {
2376
+ getSettingsProviderUsage(options) {
1817
2377
  return (options?.client ?? this.client).get({
1818
2378
  responseStyle: "data",
1819
- url: "/api/settings/persona",
2379
+ url: "/api/settings/provider-usage",
1820
2380
  ...options,
1821
2381
  });
1822
2382
  }
1823
2383
  /**
1824
- * Update profile-layerable persona defaults
2384
+ * Update the provider usage settings section
1825
2385
  */
1826
- updateSettingsPersona(options) {
2386
+ updateSettingsProviderUsage(options) {
1827
2387
  return (options.client ?? this.client).patch({
1828
2388
  responseStyle: "data",
1829
- url: "/api/settings/persona",
2389
+ url: "/api/settings/provider-usage",
1830
2390
  ...options,
1831
2391
  headers: {
1832
2392
  "Content-Type": "application/json",
@@ -2112,6 +2672,46 @@ export class providers extends HeyApiClient {
2112
2672
  ...options,
2113
2673
  });
2114
2674
  }
2675
+ /**
2676
+ * Read cached provider usage (experimental)
2677
+ *
2678
+ * @stability experimental
2679
+ */
2680
+ listProviderUsage(options) {
2681
+ return (options?.client ?? this.client).get({
2682
+ responseStyle: "data",
2683
+ url: "/api/provider-usage",
2684
+ ...options,
2685
+ });
2686
+ }
2687
+ /**
2688
+ * Read cached provider usage (experimental)
2689
+ *
2690
+ * @stability experimental
2691
+ */
2692
+ getProviderUsage(options) {
2693
+ return (options.client ?? this.client).get({
2694
+ responseStyle: "data",
2695
+ url: "/api/provider-usage/providers/{provider_id}",
2696
+ ...options,
2697
+ });
2698
+ }
2699
+ /**
2700
+ * Refresh provider usage (experimental)
2701
+ *
2702
+ * @stability experimental
2703
+ */
2704
+ refreshProviderUsage(options) {
2705
+ return (options?.client ?? this.client).post({
2706
+ responseStyle: "data",
2707
+ url: "/api/provider-usage/refresh",
2708
+ ...options,
2709
+ headers: {
2710
+ "Content-Type": "application/json",
2711
+ ...options?.headers,
2712
+ },
2713
+ });
2714
+ }
2115
2715
  /**
2116
2716
  * List providers and declared auth status
2117
2717
  */
@@ -3673,6 +4273,26 @@ export class sessions extends HeyApiClient {
3673
4273
  ...options,
3674
4274
  });
3675
4275
  }
4276
+ /**
4277
+ * List a session's monitors
4278
+ */
4279
+ listSessionMonitors(options) {
4280
+ return (options.client ?? this.client).get({
4281
+ responseStyle: "data",
4282
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors",
4283
+ ...options,
4284
+ });
4285
+ }
4286
+ /**
4287
+ * Cancel a session monitor without waking the session
4288
+ */
4289
+ cancelSessionMonitor(options) {
4290
+ return (options.client ?? this.client).post({
4291
+ responseStyle: "data",
4292
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors/{monitor_id}/cancel",
4293
+ ...options,
4294
+ });
4295
+ }
3676
4296
  /**
3677
4297
  * Move a session into a folder or back to the workspace root
3678
4298
  */
@@ -4152,217 +4772,17 @@ export class support extends HeyApiClient {
4152
4772
  });
4153
4773
  }
4154
4774
  }
4155
- export class tools extends HeyApiClient {
4156
- /**
4157
- * List remembered native-tool approval decisions for one workspace
4158
- */
4159
- listToolApprovalGrants(options) {
4160
- return (options.client ?? this.client).get({
4161
- responseStyle: "data",
4162
- url: "/api/tool-approval-grants",
4163
- ...options,
4164
- });
4165
- }
4166
- /**
4167
- * Set an explicit agent-wide or tool-wide native-tool approval decision
4168
- */
4169
- setToolApprovalGrant(options) {
4170
- return (options.client ?? this.client).put({
4171
- responseStyle: "data",
4172
- url: "/api/tool-approval-grants",
4173
- ...options,
4174
- headers: {
4175
- "Content-Type": "application/json",
4176
- ...options.headers,
4177
- },
4178
- });
4179
- }
4180
- /**
4181
- * Revoke one remembered native-tool approval decision in one workspace
4182
- */
4183
- revokeToolApprovalGrant(options) {
4184
- return (options.client ?? this.client).delete({
4185
- responseStyle: "data",
4186
- url: "/api/tool-approval-grants/{id}",
4187
- ...options,
4188
- });
4189
- }
4190
- /**
4191
- * List operator-visible registry tools
4192
- */
4193
- listTools(options) {
4194
- return (options?.client ?? this.client).get({
4195
- responseStyle: "data",
4196
- url: "/api/tools",
4197
- ...options,
4198
- });
4199
- }
4200
- /**
4201
- * Get one pending tool approval lifecycle
4202
- */
4203
- getPendingToolApproval(options) {
4204
- return (options.client ?? this.client).get({
4205
- responseStyle: "data",
4206
- url: "/api/tools/approvals/{id}",
4207
- ...options,
4208
- });
4209
- }
4210
- /**
4211
- * Cancel one pending tool approval
4212
- */
4213
- cancelPendingToolApproval(options) {
4214
- return (options.client ?? this.client).post({
4215
- responseStyle: "data",
4216
- url: "/api/tools/approvals/{id}/cancel",
4217
- ...options,
4218
- });
4219
- }
4220
- /**
4221
- * Approve or deny one pending tool approval
4222
- */
4223
- resolvePendingToolApproval(options) {
4224
- return (options.client ?? this.client).post({
4225
- responseStyle: "data",
4226
- url: "/api/tools/approvals/{id}/resolve",
4227
- ...options,
4228
- headers: {
4229
- "Content-Type": "application/json",
4230
- ...options.headers,
4231
- },
4232
- });
4233
- }
4234
- /**
4235
- * Search operator-visible registry tools
4236
- */
4237
- searchTools(options) {
4238
- return (options.client ?? this.client).post({
4239
- responseStyle: "data",
4240
- url: "/api/tools/search",
4241
- ...options,
4242
- headers: {
4243
- "Content-Type": "application/json",
4244
- ...options.headers,
4245
- },
4246
- });
4247
- }
4248
- /**
4249
- * Get one operator-visible registry tool
4250
- */
4251
- getTool(options) {
4252
- return (options.client ?? this.client).get({
4253
- responseStyle: "data",
4254
- url: "/api/tools/{id}",
4255
- ...options,
4256
- });
4257
- }
4258
- /**
4259
- * Mint a local single-use approval token for one tool invocation
4260
- */
4261
- createToolApproval(options) {
4262
- return (options.client ?? this.client).post({
4263
- responseStyle: "data",
4264
- url: "/api/tools/{id}/approvals",
4265
- ...options,
4266
- headers: {
4267
- "Content-Type": "application/json",
4268
- ...options.headers,
4269
- },
4270
- });
4271
- }
4272
- /**
4273
- * Invoke a registry tool through executable dispatch
4274
- */
4275
- invokeTool(options) {
4276
- return (options.client ?? this.client).post({
4277
- responseStyle: "data",
4278
- url: "/api/tools/{id}/invoke",
4279
- ...options,
4280
- headers: {
4281
- "Content-Type": "application/json",
4282
- ...options.headers,
4283
- },
4284
- });
4285
- }
4286
- /**
4287
- * Read one retained oversized tool-result page
4288
- */
4289
- readToolArtifact(options) {
4290
- return (options.client ?? this.client).get({
4291
- responseStyle: "data",
4292
- url: "/api/workspaces/{workspace_id}/tool-artifacts/{artifact_id}",
4293
- ...options,
4294
- });
4295
- }
4296
- }
4297
- export class toolsets extends HeyApiClient {
4298
- /**
4299
- * List named toolsets and expansion status
4300
- */
4301
- listToolsets(options) {
4302
- return (options?.client ?? this.client).get({
4303
- responseStyle: "data",
4304
- url: "/api/toolsets",
4305
- ...options,
4306
- });
4307
- }
4308
- /**
4309
- * Inspect one named toolset expansion
4310
- */
4311
- getToolset(options) {
4312
- return (options.client ?? this.client).get({
4313
- responseStyle: "data",
4314
- url: "/api/toolsets/{id}",
4315
- ...options,
4316
- });
4317
- }
4318
- }
4319
- export class vault extends HeyApiClient {
4320
- /**
4321
- * Delete one vault secret
4322
- */
4323
- deleteVaultSecret(options) {
4324
- return (options.client ?? this.client).delete({
4325
- responseStyle: "data",
4326
- url: "/api/vault/secrets",
4327
- ...options,
4328
- });
4329
- }
4775
+ export class workspaces extends HeyApiClient {
4330
4776
  /**
4331
- * List redacted vault secret metadata
4777
+ * List workspace terminals
4332
4778
  */
4333
- listVaultSecrets(options) {
4779
+ listTerminalsAggregate(options) {
4334
4780
  return (options?.client ?? this.client).get({
4335
4781
  responseStyle: "data",
4336
- url: "/api/vault/secrets",
4337
- ...options,
4338
- });
4339
- }
4340
- /**
4341
- * Create or update one write-only vault secret
4342
- */
4343
- putVaultSecret(options) {
4344
- return (options.client ?? this.client).put({
4345
- responseStyle: "data",
4346
- url: "/api/vault/secrets",
4347
- ...options,
4348
- headers: {
4349
- "Content-Type": "application/json",
4350
- ...options.headers,
4351
- },
4352
- });
4353
- }
4354
- /**
4355
- * Read redacted vault secret metadata
4356
- */
4357
- getVaultSecretMetadata(options) {
4358
- return (options.client ?? this.client).get({
4359
- responseStyle: "data",
4360
- url: "/api/vault/secrets/metadata",
4782
+ url: "/api/terminals",
4361
4783
  ...options,
4362
4784
  });
4363
4785
  }
4364
- }
4365
- export class workspaces extends HeyApiClient {
4366
4786
  /**
4367
4787
  * List registered workspaces
4368
4788
  */
@@ -4718,268 +5138,18 @@ export class workspaces extends HeyApiClient {
4718
5138
  */
4719
5139
  listWindowManagerLayoutProfiles(options) {
4720
5140
  return (options.client ?? this.client).get({
4721
- responseStyle: "data",
4722
- url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles",
4723
- ...options,
4724
- });
4725
- }
4726
- /**
4727
- * Delete one workspace-visible layout profile
4728
- */
4729
- deleteWindowManagerLayoutProfile(options) {
4730
- return (options.client ?? this.client).delete({
4731
- responseStyle: "data",
4732
- url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles/{profile_id}",
4733
- ...options,
4734
- headers: {
4735
- "Content-Type": "application/json",
4736
- ...options.headers,
4737
- },
4738
- });
4739
- }
4740
- /**
4741
- * Create or replace one workspace-visible layout profile
4742
- */
4743
- putWindowManagerLayoutProfile(options) {
4744
- return (options.client ?? this.client).put({
4745
- responseStyle: "data",
4746
- url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles/{profile_id}",
4747
- ...options,
4748
- headers: {
4749
- "Content-Type": "application/json",
4750
- ...options.headers,
4751
- },
4752
- });
4753
- }
4754
- /**
4755
- * Validate one declarative window layout
4756
- */
4757
- validateWindowManagerLayout(options) {
4758
- return (options.client ?? this.client).post({
4759
- responseStyle: "data",
4760
- url: "/api/workspaces/{workspace_id}/window-manager/layout/validate",
4761
- ...options,
4762
- headers: {
4763
- "Content-Type": "application/json",
4764
- ...options.headers,
4765
- },
4766
- });
4767
- }
4768
- /**
4769
- * Preview one semantic window-manager command
4770
- */
4771
- previewWindowManagerCommand(options) {
4772
- return (options.client ?? this.client).post({
4773
- responseStyle: "data",
4774
- url: "/api/workspaces/{workspace_id}/window-manager/preview",
4775
- ...options,
4776
- headers: {
4777
- "Content-Type": "application/json",
4778
- ...options.headers,
4779
- },
4780
- });
4781
- }
4782
- }
4783
- export class loops extends HeyApiClient {
4784
- /**
4785
- * List workspace Loop node state
4786
- */
4787
- listLoopNodes(options) {
4788
- return (options.client ?? this.client).get({
4789
- responseStyle: "data",
4790
- url: "/api/workspaces/{workspace_id}/loop-nodes",
4791
- ...options,
4792
- });
4793
- }
4794
- /**
4795
- * List Loop human requests
4796
- */
4797
- listLoopRequests(options) {
4798
- return (options.client ?? this.client).get({
4799
- responseStyle: "data",
4800
- url: "/api/workspaces/{workspace_id}/loop-requests",
4801
- ...options,
4802
- });
4803
- }
4804
- /**
4805
- * List Loop runs
4806
- */
4807
- listLoopRuns(options) {
4808
- return (options.client ?? this.client).get({
4809
- responseStyle: "data",
4810
- url: "/api/workspaces/{workspace_id}/loop-runs",
4811
- ...options,
4812
- });
4813
- }
4814
- /**
4815
- * Get one Loop run
4816
- */
4817
- getLoopRun(options) {
4818
- return (options.client ?? this.client).get({
4819
- responseStyle: "data",
4820
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}",
4821
- ...options,
4822
- });
4823
- }
4824
- /**
4825
- * Approve one Loop gate
4826
- */
4827
- approveLoopRun(options) {
4828
- return (options.client ?? this.client).post({
4829
- responseStyle: "data",
4830
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/approve",
4831
- ...options,
4832
- headers: {
4833
- "Content-Type": "application/json",
4834
- ...options.headers,
4835
- },
4836
- });
4837
- }
4838
- /**
4839
- * Explain the current Loop run state
4840
- */
4841
- getLoopRunBriefing(options) {
4842
- return (options.client ?? this.client).get({
4843
- responseStyle: "data",
4844
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/briefing",
4845
- ...options,
4846
- });
4847
- }
4848
- /**
4849
- * Cancel one Loop run
4850
- */
4851
- cancelLoopRun(options) {
4852
- return (options.client ?? this.client).post({
4853
- responseStyle: "data",
4854
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/cancel",
4855
- ...options,
4856
- headers: {
4857
- "Content-Type": "application/json",
4858
- ...options.headers,
4859
- },
4860
- });
4861
- }
4862
- /**
4863
- * Compare Loop generations or runs
4864
- */
4865
- diffLoopRun(options) {
4866
- return (options.client ?? this.client).get({
4867
- responseStyle: "data",
4868
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/diff",
4869
- ...options,
4870
- });
4871
- }
4872
- /**
4873
- * Fork a linked Loop run from history
4874
- */
4875
- forkLoopRun(options) {
4876
- return (options.client ?? this.client).post({
4877
- responseStyle: "data",
4878
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/fork",
4879
- ...options,
4880
- headers: {
4881
- "Content-Type": "application/json",
4882
- ...options.headers,
4883
- },
4884
- });
4885
- }
4886
- /**
4887
- * Get the computed Loop run node roster
4888
- */
4889
- getLoopRunNodes(options) {
4890
- return (options.client ?? this.client).get({
4891
- responseStyle: "data",
4892
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes",
4893
- ...options,
4894
- });
4895
- }
4896
- /**
4897
- * Amend one parked Loop node output
4898
- */
4899
- amendLoopNode(options) {
4900
- return (options.client ?? this.client).post({
4901
- responseStyle: "data",
4902
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/amend",
4903
- ...options,
4904
- headers: {
4905
- "Content-Type": "application/json",
4906
- ...options.headers,
4907
- },
4908
- });
4909
- }
4910
- /**
4911
- * Cancel one Loop node
4912
- */
4913
- cancelLoopNode(options) {
4914
- return (options.client ?? this.client).post({
4915
- responseStyle: "data",
4916
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/cancel",
4917
- ...options,
4918
- headers: {
4919
- "Content-Type": "application/json",
4920
- ...options.headers,
4921
- },
4922
- });
4923
- }
4924
- /**
4925
- * Pause one Loop node
4926
- */
4927
- pauseLoopNode(options) {
4928
- return (options.client ?? this.client).post({
4929
- responseStyle: "data",
4930
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/pause",
4931
- ...options,
4932
- headers: {
4933
- "Content-Type": "application/json",
4934
- ...options.headers,
4935
- },
4936
- });
4937
- }
4938
- /**
4939
- * Get one Loop human request
4940
- */
4941
- getLoopRequest(options) {
4942
- return (options.client ?? this.client).get({
4943
- responseStyle: "data",
4944
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/request",
4945
- ...options,
4946
- });
4947
- }
4948
- /**
4949
- * Requeue one Loop node
4950
- */
4951
- requeueLoopNode(options) {
4952
- return (options.client ?? this.client).post({
4953
- responseStyle: "data",
4954
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/requeue",
4955
- ...options,
4956
- headers: {
4957
- "Content-Type": "application/json",
4958
- ...options.headers,
4959
- },
4960
- });
4961
- }
4962
- /**
4963
- * Answer one Loop human request
4964
- */
4965
- respondLoopRequest(options) {
4966
- return (options.client ?? this.client).post({
4967
- responseStyle: "data",
4968
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/respond",
4969
- ...options,
4970
- headers: {
4971
- "Content-Type": "application/json",
4972
- ...options.headers,
4973
- },
5141
+ responseStyle: "data",
5142
+ url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles",
5143
+ ...options,
4974
5144
  });
4975
5145
  }
4976
5146
  /**
4977
- * Resume one Loop node
5147
+ * Delete one workspace-visible layout profile
4978
5148
  */
4979
- resumeLoopNode(options) {
4980
- return (options.client ?? this.client).post({
5149
+ deleteWindowManagerLayoutProfile(options) {
5150
+ return (options.client ?? this.client).delete({
4981
5151
  responseStyle: "data",
4982
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/nodes/{node_id}/resume",
5152
+ url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles/{profile_id}",
4983
5153
  ...options,
4984
5154
  headers: {
4985
5155
  "Content-Type": "application/json",
@@ -4988,12 +5158,12 @@ export class loops extends HeyApiClient {
4988
5158
  });
4989
5159
  }
4990
5160
  /**
4991
- * Pause one Loop run
5161
+ * Create or replace one workspace-visible layout profile
4992
5162
  */
4993
- pauseLoopRun(options) {
4994
- return (options.client ?? this.client).post({
5163
+ putWindowManagerLayoutProfile(options) {
5164
+ return (options.client ?? this.client).put({
4995
5165
  responseStyle: "data",
4996
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/pause",
5166
+ url: "/api/workspaces/{workspace_id}/window-manager/layout-profiles/{profile_id}",
4997
5167
  ...options,
4998
5168
  headers: {
4999
5169
  "Content-Type": "application/json",
@@ -5002,12 +5172,12 @@ export class loops extends HeyApiClient {
5002
5172
  });
5003
5173
  }
5004
5174
  /**
5005
- * Rerun a Loop from one settled node
5175
+ * Validate one declarative window layout
5006
5176
  */
5007
- rerunLoopRun(options) {
5177
+ validateWindowManagerLayout(options) {
5008
5178
  return (options.client ?? this.client).post({
5009
5179
  responseStyle: "data",
5010
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/rerun",
5180
+ url: "/api/workspaces/{workspace_id}/window-manager/layout/validate",
5011
5181
  ...options,
5012
5182
  headers: {
5013
5183
  "Content-Type": "application/json",
@@ -5016,12 +5186,12 @@ export class loops extends HeyApiClient {
5016
5186
  });
5017
5187
  }
5018
5188
  /**
5019
- * Resume one Loop run
5189
+ * Preview one semantic window-manager command
5020
5190
  */
5021
- resumeLoopRun(options) {
5191
+ previewWindowManagerCommand(options) {
5022
5192
  return (options.client ?? this.client).post({
5023
5193
  responseStyle: "data",
5024
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/resume",
5194
+ url: "/api/workspaces/{workspace_id}/window-manager/preview",
5025
5195
  ...options,
5026
5196
  headers: {
5027
5197
  "Content-Type": "application/json",
@@ -5029,77 +5199,79 @@ export class loops extends HeyApiClient {
5029
5199
  },
5030
5200
  });
5031
5201
  }
5202
+ }
5203
+ export class tools extends HeyApiClient {
5032
5204
  /**
5033
- * Read the durable Loop run timeline
5205
+ * List remembered native-tool approval decisions for one workspace
5034
5206
  */
5035
- getLoopRunTimeline(options) {
5207
+ listToolApprovalGrants(options) {
5036
5208
  return (options.client ?? this.client).get({
5037
5209
  responseStyle: "data",
5038
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/timeline",
5210
+ url: "/api/tool-approval-grants",
5039
5211
  ...options,
5040
5212
  });
5041
5213
  }
5042
5214
  /**
5043
- * List Goal turns in run-wide sequence order
5215
+ * Set an explicit agent-wide or tool-wide native-tool approval decision
5044
5216
  */
5045
- listGoalTurns(options) {
5046
- return (options.client ?? this.client).get({
5217
+ setToolApprovalGrant(options) {
5218
+ return (options.client ?? this.client).put({
5047
5219
  responseStyle: "data",
5048
- url: "/api/workspaces/{workspace_id}/loop-runs/{run_id}/turns",
5220
+ url: "/api/tool-approval-grants",
5049
5221
  ...options,
5222
+ headers: {
5223
+ "Content-Type": "application/json",
5224
+ ...options.headers,
5225
+ },
5050
5226
  });
5051
5227
  }
5052
5228
  /**
5053
- * List Loop catalog entries
5229
+ * Revoke one remembered native-tool approval decision in one workspace
5054
5230
  */
5055
- listLoops(options) {
5056
- return (options.client ?? this.client).get({
5231
+ revokeToolApprovalGrant(options) {
5232
+ return (options.client ?? this.client).delete({
5057
5233
  responseStyle: "data",
5058
- url: "/api/workspaces/{workspace_id}/loops",
5234
+ url: "/api/tool-approval-grants/{id}",
5059
5235
  ...options,
5060
5236
  });
5061
5237
  }
5062
5238
  /**
5063
- * Create or fork a Loop definition
5239
+ * List operator-visible registry tools
5064
5240
  */
5065
- createLoop(options) {
5066
- return (options.client ?? this.client).post({
5241
+ listTools(options) {
5242
+ return (options?.client ?? this.client).get({
5067
5243
  responseStyle: "data",
5068
- url: "/api/workspaces/{workspace_id}/loops",
5244
+ url: "/api/tools",
5069
5245
  ...options,
5070
- headers: {
5071
- "Content-Type": "application/json",
5072
- ...options.headers,
5073
- },
5074
5246
  });
5075
5247
  }
5076
5248
  /**
5077
- * Delete one writable Loop definition
5249
+ * Get one pending tool approval lifecycle
5078
5250
  */
5079
- deleteLoop(options) {
5080
- return (options.client ?? this.client).delete({
5251
+ getPendingToolApproval(options) {
5252
+ return (options.client ?? this.client).get({
5081
5253
  responseStyle: "data",
5082
- url: "/api/workspaces/{workspace_id}/loops/{name}",
5254
+ url: "/api/tools/approvals/{id}",
5083
5255
  ...options,
5084
5256
  });
5085
5257
  }
5086
5258
  /**
5087
- * Inspect one Loop definition
5259
+ * Cancel one pending tool approval
5088
5260
  */
5089
- getLoop(options) {
5090
- return (options.client ?? this.client).get({
5261
+ cancelPendingToolApproval(options) {
5262
+ return (options.client ?? this.client).post({
5091
5263
  responseStyle: "data",
5092
- url: "/api/workspaces/{workspace_id}/loops/{name}",
5264
+ url: "/api/tools/approvals/{id}/cancel",
5093
5265
  ...options,
5094
5266
  });
5095
5267
  }
5096
5268
  /**
5097
- * Publish one Loop definition with optimistic concurrency
5269
+ * Approve or deny one pending tool approval
5098
5270
  */
5099
- patchLoop(options) {
5100
- return (options.client ?? this.client).patch({
5271
+ resolvePendingToolApproval(options) {
5272
+ return (options.client ?? this.client).post({
5101
5273
  responseStyle: "data",
5102
- url: "/api/workspaces/{workspace_id}/loops/{name}",
5274
+ url: "/api/tools/approvals/{id}/resolve",
5103
5275
  ...options,
5104
5276
  headers: {
5105
5277
  "Content-Type": "application/json",
@@ -5108,22 +5280,12 @@ export class loops extends HeyApiClient {
5108
5280
  });
5109
5281
  }
5110
5282
  /**
5111
- * Get Loop editor annotations
5112
- */
5113
- getLoopAnnotations(options) {
5114
- return (options.client ?? this.client).get({
5115
- responseStyle: "data",
5116
- url: "/api/workspaces/{workspace_id}/loops/{name}/annotations",
5117
- ...options,
5118
- });
5119
- }
5120
- /**
5121
- * Replace Loop editor annotations
5283
+ * Search operator-visible registry tools
5122
5284
  */
5123
- putLoopAnnotations(options) {
5124
- return (options.client ?? this.client).put({
5285
+ searchTools(options) {
5286
+ return (options.client ?? this.client).post({
5125
5287
  responseStyle: "data",
5126
- url: "/api/workspaces/{workspace_id}/loops/{name}/annotations",
5288
+ url: "/api/tools/search",
5127
5289
  ...options,
5128
5290
  headers: {
5129
5291
  "Content-Type": "application/json",
@@ -5132,22 +5294,22 @@ export class loops extends HeyApiClient {
5132
5294
  });
5133
5295
  }
5134
5296
  /**
5135
- * Get Loop config override
5297
+ * Get one operator-visible registry tool
5136
5298
  */
5137
- getLoopConfig(options) {
5299
+ getTool(options) {
5138
5300
  return (options.client ?? this.client).get({
5139
5301
  responseStyle: "data",
5140
- url: "/api/workspaces/{workspace_id}/loops/{name}/config",
5302
+ url: "/api/tools/{id}",
5141
5303
  ...options,
5142
5304
  });
5143
5305
  }
5144
5306
  /**
5145
- * Replace Loop config override
5307
+ * Mint a local single-use approval token for one tool invocation
5146
5308
  */
5147
- putLoopConfig(options) {
5148
- return (options.client ?? this.client).put({
5309
+ createToolApproval(options) {
5310
+ return (options.client ?? this.client).post({
5149
5311
  responseStyle: "data",
5150
- url: "/api/workspaces/{workspace_id}/loops/{name}/config",
5312
+ url: "/api/tools/{id}/approvals",
5151
5313
  ...options,
5152
5314
  headers: {
5153
5315
  "Content-Type": "application/json",
@@ -5156,84 +5318,80 @@ export class loops extends HeyApiClient {
5156
5318
  });
5157
5319
  }
5158
5320
  /**
5159
- * Get one scoped Loop input-default table
5321
+ * Invoke a registry tool through executable dispatch
5160
5322
  */
5161
- getLoopInputDefaults(options) {
5162
- return (options.client ?? this.client).get({
5323
+ invokeTool(options) {
5324
+ return (options.client ?? this.client).post({
5163
5325
  responseStyle: "data",
5164
- url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults",
5326
+ url: "/api/tools/{id}/invoke",
5165
5327
  ...options,
5328
+ headers: {
5329
+ "Content-Type": "application/json",
5330
+ ...options.headers,
5331
+ },
5166
5332
  });
5167
5333
  }
5168
5334
  /**
5169
- * Replace one scoped Loop input-default table
5335
+ * Read one retained oversized tool-result page
5170
5336
  */
5171
- putLoopInputDefaults(options) {
5172
- return (options.client ?? this.client).put({
5337
+ readToolArtifact(options) {
5338
+ return (options.client ?? this.client).get({
5173
5339
  responseStyle: "data",
5174
- url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults",
5340
+ url: "/api/workspaces/{workspace_id}/tool-artifacts/{artifact_id}",
5175
5341
  ...options,
5176
- headers: {
5177
- "Content-Type": "application/json",
5178
- ...options.headers,
5179
- },
5180
5342
  });
5181
5343
  }
5344
+ }
5345
+ export class toolsets extends HeyApiClient {
5182
5346
  /**
5183
- * Delete one scoped Loop input default
5347
+ * List named toolsets and expansion status
5184
5348
  */
5185
- deleteLoopInputDefault(options) {
5186
- return (options.client ?? this.client).delete({
5349
+ listToolsets(options) {
5350
+ return (options?.client ?? this.client).get({
5187
5351
  responseStyle: "data",
5188
- url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
5352
+ url: "/api/toolsets",
5189
5353
  ...options,
5190
5354
  });
5191
5355
  }
5192
5356
  /**
5193
- * Get one scoped Loop input default
5357
+ * Inspect one named toolset expansion
5194
5358
  */
5195
- getLoopInputDefault(options) {
5359
+ getToolset(options) {
5196
5360
  return (options.client ?? this.client).get({
5197
5361
  responseStyle: "data",
5198
- url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
5362
+ url: "/api/toolsets/{id}",
5199
5363
  ...options,
5200
5364
  });
5201
5365
  }
5366
+ }
5367
+ export class vault extends HeyApiClient {
5202
5368
  /**
5203
- * Set one scoped Loop input default
5369
+ * Delete one vault secret
5204
5370
  */
5205
- putLoopInputDefault(options) {
5206
- return (options.client ?? this.client).put({
5371
+ deleteVaultSecret(options) {
5372
+ return (options.client ?? this.client).delete({
5207
5373
  responseStyle: "data",
5208
- url: "/api/workspaces/{workspace_id}/loops/{name}/input-defaults/{key}",
5374
+ url: "/api/vault/secrets",
5209
5375
  ...options,
5210
- headers: {
5211
- "Content-Type": "application/json",
5212
- ...options.headers,
5213
- },
5214
5376
  });
5215
5377
  }
5216
5378
  /**
5217
- * Start or dry-run one Loop
5379
+ * List redacted vault secret metadata
5218
5380
  */
5219
- runLoop(options) {
5220
- return (options.client ?? this.client).post({
5381
+ listVaultSecrets(options) {
5382
+ return (options?.client ?? this.client).get({
5221
5383
  responseStyle: "data",
5222
- url: "/api/workspaces/{workspace_id}/loops/{name}/run",
5384
+ url: "/api/vault/secrets",
5223
5385
  ...options,
5224
- headers: {
5225
- "Content-Type": "application/json",
5226
- ...options.headers,
5227
- },
5228
5386
  });
5229
5387
  }
5230
5388
  /**
5231
- * Validate one Loop definition without saving
5389
+ * Create or update one write-only vault secret
5232
5390
  */
5233
- validateLoop(options) {
5234
- return (options.client ?? this.client).post({
5391
+ putVaultSecret(options) {
5392
+ return (options.client ?? this.client).put({
5235
5393
  responseStyle: "data",
5236
- url: "/api/workspaces/{workspace_id}/loops/{name}/validate",
5394
+ url: "/api/vault/secrets",
5237
5395
  ...options,
5238
5396
  headers: {
5239
5397
  "Content-Type": "application/json",
@@ -5242,27 +5400,13 @@ export class loops extends HeyApiClient {
5242
5400
  });
5243
5401
  }
5244
5402
  /**
5245
- * Get the newest visible session Goal
5403
+ * Read redacted vault secret metadata
5246
5404
  */
5247
- getSessionGoal(options) {
5405
+ getVaultSecretMetadata(options) {
5248
5406
  return (options.client ?? this.client).get({
5249
5407
  responseStyle: "data",
5250
- url: "/api/workspaces/{workspace_id}/sessions/{session_id}/goal",
5251
- ...options,
5252
- });
5253
- }
5254
- /**
5255
- * Set or control the authenticated session Goal
5256
- */
5257
- mutateSessionGoal(options) {
5258
- return (options.client ?? this.client).post({
5259
- responseStyle: "data",
5260
- url: "/api/workspaces/{workspace_id}/sessions/{session_id}/goal",
5408
+ url: "/api/vault/secrets/metadata",
5261
5409
  ...options,
5262
- headers: {
5263
- "Content-Type": "application/json",
5264
- ...options.headers,
5265
- },
5266
5410
  });
5267
5411
  }
5268
5412
  }
@@ -5305,6 +5449,20 @@ export class worktrees extends HeyApiClient {
5305
5449
  },
5306
5450
  });
5307
5451
  }
5452
+ /**
5453
+ * Remove a discovered worktree
5454
+ */
5455
+ removeDiscoveredWorktree(options) {
5456
+ return (options.client ?? this.client).post({
5457
+ responseStyle: "data",
5458
+ url: "/api/workspaces/{workspace_id}/worktrees/discovered/remove",
5459
+ ...options,
5460
+ headers: {
5461
+ "Content-Type": "application/json",
5462
+ ...options.headers,
5463
+ },
5464
+ });
5465
+ }
5308
5466
  /**
5309
5467
  * Remove a worktree
5310
5468
  */
@@ -5393,6 +5551,16 @@ export class worktrees extends HeyApiClient {
5393
5551
  ...options,
5394
5552
  });
5395
5553
  }
5554
+ /**
5555
+ * List registered and discovered worktrees
5556
+ */
5557
+ listWorktreesAggregate(options) {
5558
+ return (options?.client ?? this.client).get({
5559
+ responseStyle: "data",
5560
+ url: "/api/worktrees",
5561
+ ...options,
5562
+ });
5563
+ }
5396
5564
  }
5397
5565
  export class Compozy extends HeyApiClient {
5398
5566
  static __registry = new HeyApiRegistry();
@@ -5444,6 +5612,10 @@ export class Compozy extends HeyApiClient {
5444
5612
  get logs() {
5445
5613
  return (this._logs ??= new logs({ client: this.client }));
5446
5614
  }
5615
+ _loops;
5616
+ get loops() {
5617
+ return (this._loops ??= new loops({ client: this.client }));
5618
+ }
5447
5619
  _marketplace;
5448
5620
  get marketplace() {
5449
5621
  return (this._marketplace ??= new marketplace({ client: this.client }));
@@ -5500,6 +5672,10 @@ export class Compozy extends HeyApiClient {
5500
5672
  get support() {
5501
5673
  return (this._support ??= new support({ client: this.client }));
5502
5674
  }
5675
+ _workspaces;
5676
+ get workspaces() {
5677
+ return (this._workspaces ??= new workspaces({ client: this.client }));
5678
+ }
5503
5679
  _tools;
5504
5680
  get tools() {
5505
5681
  return (this._tools ??= new tools({ client: this.client }));
@@ -5512,14 +5688,6 @@ export class Compozy extends HeyApiClient {
5512
5688
  get vault() {
5513
5689
  return (this._vault ??= new vault({ client: this.client }));
5514
5690
  }
5515
- _workspaces;
5516
- get workspaces() {
5517
- return (this._workspaces ??= new workspaces({ client: this.client }));
5518
- }
5519
- _loops;
5520
- get loops() {
5521
- return (this._loops ??= new loops({ client: this.client }));
5522
- }
5523
5691
  _worktrees;
5524
5692
  get worktrees() {
5525
5693
  return (this._worktrees ??= new worktrees({ client: this.client }));