@flashbacktech/tsclient 0.4.33 → 0.4.36

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
@@ -966,6 +966,25 @@ var CreditsClient = class {
966
966
  const res = await this.http.get("/credits/stats/monthly");
967
967
  return res.data ?? [];
968
968
  }
969
+ /**
970
+ * "Other amount" PAYG config — bounds + presets for the
971
+ * arbitrary-dollar tile. Public endpoint; returns a disabled
972
+ * shape (`enabled: false`) when the feature is off so the
973
+ * frontend can hide the tile without throwing.
974
+ */
975
+ async getCustomConfig() {
976
+ const res = await this.http.get("/credits/packs/custom-config");
977
+ return unwrapData(res);
978
+ }
979
+ /**
980
+ * Buy an arbitrary-dollar PAYG amount. The Stripe Checkout
981
+ * session is built with `price_data` inline (no pre-created
982
+ * Price), so the catalog has nothing to provision for this — it
983
+ * is purely a per-purchase flow.
984
+ */
985
+ buyCustom(body) {
986
+ return this.http.post("/credits/packs/buy-custom", { body });
987
+ }
969
988
  };
970
989
 
971
990
  // src/modules/usage/UsageClient.ts