@getsupervisor/agents-studio-sdk 1.41.1-beta.162 → 1.41.1-beta.164
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 +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2530,6 +2530,20 @@ function createWorkspacesApi(cfg) {
|
|
|
2530
2530
|
body: JSON.stringify(payload)
|
|
2531
2531
|
});
|
|
2532
2532
|
return res.json();
|
|
2533
|
+
},
|
|
2534
|
+
/**
|
|
2535
|
+
* Crea un workspace para el usuario autenticado. Como efecto colateral
|
|
2536
|
+
* aprovisiona la cuenta en el sistema propietario vía M2M y habilita el
|
|
2537
|
+
* workspace de forma desacoplada. Pensado para el alta directa desde Agents
|
|
2538
|
+
* Studio.
|
|
2539
|
+
*/
|
|
2540
|
+
async create(payload) {
|
|
2541
|
+
const res = await doFetch(`${base}/workspaces`, {
|
|
2542
|
+
method: "POST",
|
|
2543
|
+
headers: jsonHeaders,
|
|
2544
|
+
body: JSON.stringify(payload)
|
|
2545
|
+
});
|
|
2546
|
+
return res.json();
|
|
2533
2547
|
}
|
|
2534
2548
|
};
|
|
2535
2549
|
}
|