@dream-api/sdk 0.1.4 → 0.1.5

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.d.mts CHANGED
@@ -363,8 +363,6 @@ declare class DreamAPI {
363
363
  readonly products: ProductAPI;
364
364
  /** Dashboard metrics */
365
365
  readonly dashboard: DashboardAPI;
366
- /** Account management (self-service) */
367
- readonly account: AccountAPI;
368
366
  constructor(config: DreamAPIConfig);
369
367
  /**
370
368
  * Set the end-user JWT token.
@@ -551,23 +549,5 @@ declare class DashboardAPI {
551
549
  totalMRR: number;
552
550
  }>;
553
551
  }
554
- declare class AccountAPI {
555
- private client;
556
- constructor(client: DreamClient);
557
- /**
558
- * Delete the current user's account.
559
- * This permanently removes all user data.
560
- *
561
- * @example
562
- * ```typescript
563
- * await api.account.delete();
564
- * // User is now signed out and deleted
565
- * ```
566
- */
567
- delete(): Promise<{
568
- success: boolean;
569
- message: string;
570
- }>;
571
- }
572
552
 
573
553
  export { type CheckoutResult, type ClerkUser, type CreateCustomerParams, type Customer, type DashboardCustomer, type DashboardMetrics, DreamAPI, type DreamAPIConfig, type DreamAPIError, DreamAPIException, type Order, type PortalResult, type Product, type Tier, type Usage, type UsageTrackResult, type WebhookStatus, DreamAPI as default };
package/dist/index.d.ts CHANGED
@@ -363,8 +363,6 @@ declare class DreamAPI {
363
363
  readonly products: ProductAPI;
364
364
  /** Dashboard metrics */
365
365
  readonly dashboard: DashboardAPI;
366
- /** Account management (self-service) */
367
- readonly account: AccountAPI;
368
366
  constructor(config: DreamAPIConfig);
369
367
  /**
370
368
  * Set the end-user JWT token.
@@ -551,23 +549,5 @@ declare class DashboardAPI {
551
549
  totalMRR: number;
552
550
  }>;
553
551
  }
554
- declare class AccountAPI {
555
- private client;
556
- constructor(client: DreamClient);
557
- /**
558
- * Delete the current user's account.
559
- * This permanently removes all user data.
560
- *
561
- * @example
562
- * ```typescript
563
- * await api.account.delete();
564
- * // User is now signed out and deleted
565
- * ```
566
- */
567
- delete(): Promise<{
568
- success: boolean;
569
- message: string;
570
- }>;
571
- }
572
552
 
573
553
  export { type CheckoutResult, type ClerkUser, type CreateCustomerParams, type Customer, type DashboardCustomer, type DashboardMetrics, DreamAPI, type DreamAPIConfig, type DreamAPIError, DreamAPIException, type Order, type PortalResult, type Product, type Tier, type Usage, type UsageTrackResult, type WebhookStatus, DreamAPI as default };
package/dist/index.js CHANGED
@@ -434,7 +434,6 @@ var DreamAPI = class {
434
434
  this.billing = new BillingAPI(this.client);
435
435
  this.products = new ProductAPI(this.client);
436
436
  this.dashboard = new DashboardAPI(this.client);
437
- this.account = new AccountAPI(this.client);
438
437
  }
439
438
  /**
440
439
  * Set the end-user JWT token.
@@ -630,24 +629,6 @@ var DashboardAPI = class {
630
629
  return this.client.get("/api/dashboard/totals");
631
630
  }
632
631
  };
633
- var AccountAPI = class {
634
- constructor(client) {
635
- this.client = client;
636
- }
637
- /**
638
- * Delete the current user's account.
639
- * This permanently removes all user data.
640
- *
641
- * @example
642
- * ```typescript
643
- * await api.account.delete();
644
- * // User is now signed out and deleted
645
- * ```
646
- */
647
- async delete() {
648
- return this.client.delete("/api/me", true);
649
- }
650
- };
651
632
  var index_default = DreamAPI;
652
633
  // Annotate the CommonJS export names for ESM import in node:
653
634
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -406,7 +406,6 @@ var DreamAPI = class {
406
406
  this.billing = new BillingAPI(this.client);
407
407
  this.products = new ProductAPI(this.client);
408
408
  this.dashboard = new DashboardAPI(this.client);
409
- this.account = new AccountAPI(this.client);
410
409
  }
411
410
  /**
412
411
  * Set the end-user JWT token.
@@ -602,24 +601,6 @@ var DashboardAPI = class {
602
601
  return this.client.get("/api/dashboard/totals");
603
602
  }
604
603
  };
605
- var AccountAPI = class {
606
- constructor(client) {
607
- this.client = client;
608
- }
609
- /**
610
- * Delete the current user's account.
611
- * This permanently removes all user data.
612
- *
613
- * @example
614
- * ```typescript
615
- * await api.account.delete();
616
- * // User is now signed out and deleted
617
- * ```
618
- */
619
- async delete() {
620
- return this.client.delete("/api/me", true);
621
- }
622
- };
623
604
  var index_default = DreamAPI;
624
605
  export {
625
606
  DreamAPI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dream-api/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Official SDK for Dream API - Auth, billing, and usage tracking in one API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",