@amigo-ai/platform-sdk 0.17.2 → 0.17.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/api.md +1 -0
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +2 -2
- package/dist/resources/workspaces.js +7 -1
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/types/resources/workspaces.d.ts +14 -1
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -788,7 +788,7 @@ function resolveScopedPlatformClient(client) {
|
|
|
788
788
|
|
|
789
789
|
// src/resources/workspaces.ts
|
|
790
790
|
var WorkspacesResource = class extends WorkspaceScopedResource {
|
|
791
|
-
/** Create a new workspace */
|
|
791
|
+
/** Create a new workspace (unauthenticated — no owner membership created) */
|
|
792
792
|
async create(body) {
|
|
793
793
|
return extractData(
|
|
794
794
|
await this.client.POST("/v1/workspaces", {
|
|
@@ -796,6 +796,14 @@ var WorkspacesResource = class extends WorkspaceScopedResource {
|
|
|
796
796
|
})
|
|
797
797
|
);
|
|
798
798
|
}
|
|
799
|
+
/** Create a workspace for the authenticated user and attach owner access */
|
|
800
|
+
async createSelfService(body) {
|
|
801
|
+
return extractData(
|
|
802
|
+
await this.client.POST("/v1/workspaces/self-service", {
|
|
803
|
+
body
|
|
804
|
+
})
|
|
805
|
+
);
|
|
806
|
+
}
|
|
799
807
|
/** List workspaces accessible to the current API key */
|
|
800
808
|
async list(params) {
|
|
801
809
|
return extractData(
|