@flashbacktech/tsclient 0.4.60 → 0.4.62

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 CHANGED
@@ -251,6 +251,15 @@ var OrganizationClient = class {
251
251
  const res = await this.http.put(`/organization/${orgId}`, { body });
252
252
  return unwrapData(res);
253
253
  }
254
+ /**
255
+ * Self-service: create an org for the current (orgless) user and assign them
256
+ * as Owner. Used by the onboarding wizard so the org exists before the limits
257
+ * and project/sandbox steps. Fails if the user already belongs to an org.
258
+ */
259
+ async create(body) {
260
+ const res = await this.http.post("/organization", { body });
261
+ return unwrapData(res);
262
+ }
254
263
  /**
255
264
  * Fetch the org's default-notification-channel config: the per-event
256
265
  * subscriptions, the notify channels available to route to, and whether the