@mitumba/sdk 5.6.0 → 5.7.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/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2686,6 +2686,20 @@ var IamModule = class {
|
|
|
2686
2686
|
async finishPasskeyEnrollment(methodId, credential, options) {
|
|
2687
2687
|
return this.client.post(`/auth/iam/2fa/methods/${encodeURIComponent(methodId)}/passkey/finish`, credential, options);
|
|
2688
2688
|
}
|
|
2689
|
+
/**
|
|
2690
|
+
* Replace this IAM principal's recovery codes after re-proving the password. The previous set
|
|
2691
|
+
* stops working immediately; the returned codes are shown once and never retrievable again.
|
|
2692
|
+
*/
|
|
2693
|
+
async regenerateBackupCodes(password, options) {
|
|
2694
|
+
return this.client.post("/auth/iam/2fa/backup-codes/regenerate", { password }, options);
|
|
2695
|
+
}
|
|
2696
|
+
/**
|
|
2697
|
+
* Remove one of this principal's own second-factor methods after re-proving the password.
|
|
2698
|
+
* Refused with `last_factor` (409) when it is the only verified factor left.
|
|
2699
|
+
*/
|
|
2700
|
+
async deleteMethod(methodId, password, options) {
|
|
2701
|
+
return this.client.delete(`/auth/iam/2fa/methods/${encodeURIComponent(methodId)}`, { password }, options);
|
|
2702
|
+
}
|
|
2689
2703
|
/** List organizations the current root/global operator may administer. */
|
|
2690
2704
|
async listOrganizations(options) {
|
|
2691
2705
|
return this.client.get("/auth/orgs", void 0, options);
|