@mitumba/sdk 1.22.0 → 1.23.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 +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1106,6 +1106,31 @@ var SettingsModule = class {
|
|
|
1106
1106
|
async delete2FA(code, options) {
|
|
1107
1107
|
return this.client.delete("/auth/2fa", { code }, options);
|
|
1108
1108
|
}
|
|
1109
|
+
// ── Multi-Method 2FA ──
|
|
1110
|
+
async list2FAMethods(options) {
|
|
1111
|
+
return this.client.get("/auth/2fa/methods", void 0, options);
|
|
1112
|
+
}
|
|
1113
|
+
async add2FAMethod(input, options) {
|
|
1114
|
+
return this.client.post("/auth/2fa/methods", input, options);
|
|
1115
|
+
}
|
|
1116
|
+
async verify2FAMethod(id, code, options) {
|
|
1117
|
+
return this.client.post(`/auth/2fa/methods/${id}/verify`, { code }, options);
|
|
1118
|
+
}
|
|
1119
|
+
async enable2FAMethod(id, code, options) {
|
|
1120
|
+
return this.client.post(`/auth/2fa/methods/${id}/enable`, { code }, options);
|
|
1121
|
+
}
|
|
1122
|
+
async disable2FAMethod(id, code, options) {
|
|
1123
|
+
return this.client.post(`/auth/2fa/methods/${id}/disable`, { code }, options);
|
|
1124
|
+
}
|
|
1125
|
+
async delete2FAMethod(id, code, options) {
|
|
1126
|
+
return this.client.delete(`/auth/2fa/methods/${id}`, { code }, options);
|
|
1127
|
+
}
|
|
1128
|
+
async setPrimary2FAMethod(id, options) {
|
|
1129
|
+
return this.client.post(`/auth/2fa/methods/${id}/primary`, void 0, options);
|
|
1130
|
+
}
|
|
1131
|
+
async challenge2FAMethod(id, options) {
|
|
1132
|
+
return this.client.post(`/auth/2fa/methods/${id}/challenge`, void 0, options);
|
|
1133
|
+
}
|
|
1109
1134
|
};
|
|
1110
1135
|
|
|
1111
1136
|
// src/modules/mailer.ts
|
|
@@ -1351,6 +1376,9 @@ var ReportsModule = class {
|
|
|
1351
1376
|
}
|
|
1352
1377
|
};
|
|
1353
1378
|
|
|
1379
|
+
// src/types/auth.ts
|
|
1380
|
+
var TWO_FACTOR_METHOD_TYPES = ["totp", "sms", "email"];
|
|
1381
|
+
|
|
1354
1382
|
// src/types/listings.ts
|
|
1355
1383
|
var CONDITIONS = ["new", "like_new", "good", "fair"];
|
|
1356
1384
|
var LISTING_STATUSES = ["draft", "active", "sold", "removed"];
|
|
@@ -1459,6 +1487,6 @@ var MitumbaClient = class {
|
|
|
1459
1487
|
}
|
|
1460
1488
|
};
|
|
1461
1489
|
|
|
1462
|
-
export { APIClient, APIError, AdminModule, AuthModule, BusinessesModule, CONDITIONS, CartModule, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DisputesModule, IDBTokenStore, LISTING_STATUSES, ListingsModule, MailerModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, ReportsModule, ReviewsModule, SearchModule, SettingsModule, StoresModule, UploadsModule, VaziModule, WishlistsModule, createTokenStore };
|
|
1490
|
+
export { APIClient, APIError, AdminModule, AuthModule, BusinessesModule, CONDITIONS, CartModule, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DisputesModule, IDBTokenStore, LISTING_STATUSES, ListingsModule, MailerModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, ReportsModule, ReviewsModule, SearchModule, SettingsModule, StoresModule, TWO_FACTOR_METHOD_TYPES, UploadsModule, VaziModule, WishlistsModule, createTokenStore };
|
|
1463
1491
|
//# sourceMappingURL=index.mjs.map
|
|
1464
1492
|
//# sourceMappingURL=index.mjs.map
|