@mitumba/sdk 5.6.0 → 5.8.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 +45 -2
- package/dist/index.d.ts +45 -2
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2275,6 +2275,7 @@ var AdminModule = class {
|
|
|
2275
2275
|
return this.client.post(`/admin/users/${userId}/revoke-sessions`, void 0, options);
|
|
2276
2276
|
}
|
|
2277
2277
|
// ── Stores ──
|
|
2278
|
+
/** Stores, newest first. `seller_id` lists one seller's stores (exact match). */
|
|
2278
2279
|
async listStores(params, options) {
|
|
2279
2280
|
return this.client.get("/admin/stores", params, options);
|
|
2280
2281
|
}
|
|
@@ -2401,6 +2402,17 @@ var AdminModule = class {
|
|
|
2401
2402
|
async unverifyWholesaleStore(storeId, options) {
|
|
2402
2403
|
return this.client.post(`/admin/wholesale/stores/${storeId}/unverify`, void 0, options);
|
|
2403
2404
|
}
|
|
2405
|
+
/**
|
|
2406
|
+
* Wholesale applications by review state: `pending` (the queue, default) or `rejected` (refused,
|
|
2407
|
+
* with `review_note`). Supersedes {@link listPendingWholesaleStores}, which lists pending only.
|
|
2408
|
+
*/
|
|
2409
|
+
async listWholesaleApplications(params, options) {
|
|
2410
|
+
return this.client.get("/admin/wholesale/pending", params, options);
|
|
2411
|
+
}
|
|
2412
|
+
/** Refuse a wholesale application. The reason is recorded and shown to the seller, who can resubmit. */
|
|
2413
|
+
async rejectWholesaleStore(storeId, reason, options) {
|
|
2414
|
+
return this.client.post(`/admin/wholesale/stores/${encodeURIComponent(storeId)}/reject`, { reason }, options);
|
|
2415
|
+
}
|
|
2404
2416
|
// ── Broadcast ──
|
|
2405
2417
|
async broadcast(input, options) {
|
|
2406
2418
|
return this.client.post("/admin/broadcast", input, options);
|
|
@@ -2686,6 +2698,20 @@ var IamModule = class {
|
|
|
2686
2698
|
async finishPasskeyEnrollment(methodId, credential, options) {
|
|
2687
2699
|
return this.client.post(`/auth/iam/2fa/methods/${encodeURIComponent(methodId)}/passkey/finish`, credential, options);
|
|
2688
2700
|
}
|
|
2701
|
+
/**
|
|
2702
|
+
* Replace this IAM principal's recovery codes after re-proving the password. The previous set
|
|
2703
|
+
* stops working immediately; the returned codes are shown once and never retrievable again.
|
|
2704
|
+
*/
|
|
2705
|
+
async regenerateBackupCodes(password, options) {
|
|
2706
|
+
return this.client.post("/auth/iam/2fa/backup-codes/regenerate", { password }, options);
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* Remove one of this principal's own second-factor methods after re-proving the password.
|
|
2710
|
+
* Refused with `last_factor` (409) when it is the only verified factor left.
|
|
2711
|
+
*/
|
|
2712
|
+
async deleteMethod(methodId, password, options) {
|
|
2713
|
+
return this.client.delete(`/auth/iam/2fa/methods/${encodeURIComponent(methodId)}`, { password }, options);
|
|
2714
|
+
}
|
|
2689
2715
|
/** List organizations the current root/global operator may administer. */
|
|
2690
2716
|
async listOrganizations(options) {
|
|
2691
2717
|
return this.client.get("/auth/orgs", void 0, options);
|