@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/FRONTEND-INTEGRATION.md +32 -0
- package/dist/index.d.mts +100 -2
- package/dist/index.d.ts +100 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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
|
//
|