@delopay/sdk 0.23.0 → 0.24.0
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/{chunk-ZGDBGVGC.js → chunk-64E3LG2C.js} +16 -1
- package/dist/chunk-64E3LG2C.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZGDBGVGC.js.map +0 -1
|
@@ -1959,6 +1959,21 @@ var Users = class {
|
|
|
1959
1959
|
async update(params) {
|
|
1960
1960
|
return this.request("POST", "/user/update", { body: params });
|
|
1961
1961
|
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Permanently delete the caller's account. Requires a fresh password
|
|
1964
|
+
* (and a current 6-digit TOTP code if the user has TOTP enrolled). The
|
|
1965
|
+
* backend hard-deletes every `user_roles` row for the caller and soft-
|
|
1966
|
+
* deletes the user record itself (`is_active = false`, password / TOTP
|
|
1967
|
+
* wiped). On success all in-flight sessions are blacklisted, so the
|
|
1968
|
+
* caller should clear local credentials and route to the login page.
|
|
1969
|
+
*
|
|
1970
|
+
* Refuses (`InvalidDeleteOperation`) when the caller is the sole
|
|
1971
|
+
* owner-level admin of an org / merchant / profile — they must transfer
|
|
1972
|
+
* ownership first.
|
|
1973
|
+
*/
|
|
1974
|
+
async deleteAccount(params) {
|
|
1975
|
+
return this.request("DELETE", "/user/account", { body: params });
|
|
1976
|
+
}
|
|
1962
1977
|
async changePassword(params) {
|
|
1963
1978
|
return this.request("POST", "/user/change_password", { body: params });
|
|
1964
1979
|
}
|
|
@@ -3646,4 +3661,4 @@ export {
|
|
|
3646
3661
|
applyBrandingVariables,
|
|
3647
3662
|
shadowFor
|
|
3648
3663
|
};
|
|
3649
|
-
//# sourceMappingURL=chunk-
|
|
3664
|
+
//# sourceMappingURL=chunk-64E3LG2C.js.map
|