@getsupervisor/agents-studio-sdk 1.41.0-patch.2 → 1.41.0-patch.3

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.
package/dist/index.cjs CHANGED
@@ -1544,7 +1544,15 @@ function createToolsApi(cfg) {
1544
1544
  });
1545
1545
  return res.json();
1546
1546
  };
1547
- return {
1547
+ const fetchToolConnectionsPage = async (options = {}) => {
1548
+ const query = serializeListOptions(options ?? {});
1549
+ const res = await doFetch(`${base}/tools/connections`, {
1550
+ method: "GET",
1551
+ query
1552
+ });
1553
+ return res.json();
1554
+ };
1555
+ const api = {
1548
1556
  async list(options = {}) {
1549
1557
  const normalizedOptions = { ...options ?? {} };
1550
1558
  const response = await fetchToolsPage(normalizedOptions);
@@ -1558,6 +1566,17 @@ function createToolsApi(cfg) {
1558
1566
  const response = await fetchPage(normalizedOptions);
1559
1567
  return attachPaginator(response, fetchPage, normalizedOptions);
1560
1568
  },
1569
+ async listConnections(options = {}) {
1570
+ const normalizedOptions = {
1571
+ ...options ?? {}
1572
+ };
1573
+ const response = await fetchToolConnectionsPage(normalizedOptions);
1574
+ return attachPaginator(
1575
+ response,
1576
+ fetchToolConnectionsPage,
1577
+ normalizedOptions
1578
+ );
1579
+ },
1561
1580
  async uploadResource(toolId, payload) {
1562
1581
  const formData = toFormData(payload);
1563
1582
  const res = await doFetch(`${base}/tools/${toolId}/resources`, {
@@ -1632,6 +1651,18 @@ function createToolsApi(cfg) {
1632
1651
  return res.json();
1633
1652
  }
1634
1653
  };
1654
+ const connections = {
1655
+ connect: api.connect,
1656
+ create: api.createConnection,
1657
+ execute: api.executeConnection,
1658
+ list: api.listConnections,
1659
+ createConnection: api.createConnection,
1660
+ executeConnection: api.executeConnection
1661
+ };
1662
+ return {
1663
+ ...api,
1664
+ connections
1665
+ };
1635
1666
  }
1636
1667
 
1637
1668
  // src/utils/catalog-voices.ts