@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/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(