@witnium-tech/witniumchain 0.6.0 → 0.6.2

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
@@ -412,6 +412,16 @@ var WitniumchainClient = class {
412
412
  getLedger() {
413
413
  return this.req("GET", "/v1/account/ledger", { auth: "SessionCookie" });
414
414
  }
415
+ /**
416
+ * DEV-ONLY: hard-delete the authenticated user + their org + contracts +
417
+ * delegated keys so signup can be re-run from scratch. Gated behind
418
+ * WITNIUM_PRE_LAUNCH on the server (throws 403 otherwise). The on-chain
419
+ * contract is orphaned (immutable). Removed before customer onboarding —
420
+ * do not build product UI on this; it's a dev-loop convenience.
421
+ */
422
+ deleteAccount() {
423
+ return this.req("DELETE", "/v1/account", { auth: "SessionCookie" });
424
+ }
415
425
  // ────────────────────────────────────────────────────────────────────────
416
426
  // MFA (/v1/account/mfa/*)
417
427
  //