@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 CHANGED
@@ -67,6 +67,7 @@ All workspace-scoped resources also expose `withOptions(options)`.
67
67
  ### `workspaces`
68
68
 
69
69
  - `create`
70
+ - `createSelfService`
70
71
  - `list`
71
72
  - `listAutoPaging`
72
73
  - `get`
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(