@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/api.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -881,7 +881,7 @@ function resolveScopedPlatformClient(client) {
|
|
|
881
881
|
|
|
882
882
|
// src/resources/workspaces.ts
|
|
883
883
|
var WorkspacesResource = class extends WorkspaceScopedResource {
|
|
884
|
-
/** Create a new workspace */
|
|
884
|
+
/** Create a new workspace (unauthenticated — no owner membership created) */
|
|
885
885
|
async create(body) {
|
|
886
886
|
return extractData(
|
|
887
887
|
await this.client.POST("/v1/workspaces", {
|
|
@@ -889,6 +889,14 @@ var WorkspacesResource = class extends WorkspaceScopedResource {
|
|
|
889
889
|
})
|
|
890
890
|
);
|
|
891
891
|
}
|
|
892
|
+
/** Create a workspace for the authenticated user and attach owner access */
|
|
893
|
+
async createSelfService(body) {
|
|
894
|
+
return extractData(
|
|
895
|
+
await this.client.POST("/v1/workspaces/self-service", {
|
|
896
|
+
body
|
|
897
|
+
})
|
|
898
|
+
);
|
|
899
|
+
}
|
|
892
900
|
/** List workspaces accessible to the current API key */
|
|
893
901
|
async list(params) {
|
|
894
902
|
return extractData(
|