@flashbacktech/tsclient 0.4.61 → 0.4.63

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
@@ -1084,6 +1093,14 @@ var SubscriptionsClient = class {
1084
1093
  buy(body) {
1085
1094
  return this.http.post("/subscriptions/buy", { body });
1086
1095
  }
1096
+ /**
1097
+ * Preview the cost/credit impact of a plan change (pro-rated charge,
1098
+ * credit delta, effective dates) for the confirmation modal — no change
1099
+ * is made. kind="new" means a first purchase that would go via Checkout.
1100
+ */
1101
+ previewChange(body) {
1102
+ return this.http.post("/subscriptions/preview-change", { body });
1103
+ }
1087
1104
  cancel() {
1088
1105
  return this.http.post("/subscriptions/cancel", {});
1089
1106
  }