@getsupervisor/agents-studio-sdk 1.41.1-beta.163 → 1.41.1-beta.165
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 +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2051,14 +2051,21 @@ function createToolsApi(cfg) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
);
|
|
2053
2053
|
return res.json();
|
|
2054
|
+
},
|
|
2055
|
+
async deleteConnection(toolAgentConnectionId) {
|
|
2056
|
+
await doFetch(`${base}/tools/connections/${toolAgentConnectionId}`, {
|
|
2057
|
+
method: "DELETE"
|
|
2058
|
+
});
|
|
2054
2059
|
}
|
|
2055
2060
|
};
|
|
2056
2061
|
const connections = {
|
|
2057
2062
|
connect: api.connect,
|
|
2058
2063
|
create: api.createConnection,
|
|
2064
|
+
delete: api.deleteConnection,
|
|
2059
2065
|
execute: api.executeConnection,
|
|
2060
2066
|
list: api.listConnections,
|
|
2061
2067
|
createConnection: api.createConnection,
|
|
2068
|
+
deleteConnection: api.deleteConnection,
|
|
2062
2069
|
executeConnection: api.executeConnection
|
|
2063
2070
|
};
|
|
2064
2071
|
return {
|
|
@@ -2530,6 +2537,20 @@ function createWorkspacesApi(cfg) {
|
|
|
2530
2537
|
body: JSON.stringify(payload)
|
|
2531
2538
|
});
|
|
2532
2539
|
return res.json();
|
|
2540
|
+
},
|
|
2541
|
+
/**
|
|
2542
|
+
* Crea un workspace para el usuario autenticado. Como efecto colateral
|
|
2543
|
+
* aprovisiona la cuenta en el sistema propietario vía M2M y habilita el
|
|
2544
|
+
* workspace de forma desacoplada. Pensado para el alta directa desde Agents
|
|
2545
|
+
* Studio.
|
|
2546
|
+
*/
|
|
2547
|
+
async create(payload) {
|
|
2548
|
+
const res = await doFetch(`${base}/workspaces`, {
|
|
2549
|
+
method: "POST",
|
|
2550
|
+
headers: jsonHeaders,
|
|
2551
|
+
body: JSON.stringify(payload)
|
|
2552
|
+
});
|
|
2553
|
+
return res.json();
|
|
2533
2554
|
}
|
|
2534
2555
|
};
|
|
2535
2556
|
}
|