@mitumba/sdk 1.21.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.mjs CHANGED
@@ -1100,6 +1100,37 @@ var SettingsModule = class {
1100
1100
  async disable2FA(code, options) {
1101
1101
  return this.client.post("/auth/2fa/disable", { code }, options);
1102
1102
  }
1103
+ async enable2FA(code, options) {
1104
+ return this.client.post("/auth/2fa/enable", { code }, options);
1105
+ }
1106
+ async delete2FA(code, options) {
1107
+ return this.client.delete("/auth/2fa", { code }, options);
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
+ }
1103
1134
  };
1104
1135
 
1105
1136
  // src/modules/mailer.ts
@@ -1345,6 +1376,9 @@ var ReportsModule = class {
1345
1376
  }
1346
1377
  };
1347
1378
 
1379
+ // src/types/auth.ts
1380
+ var TWO_FACTOR_METHOD_TYPES = ["totp", "sms", "email"];
1381
+
1348
1382
  // src/types/listings.ts
1349
1383
  var CONDITIONS = ["new", "like_new", "good", "fair"];
1350
1384
  var LISTING_STATUSES = ["draft", "active", "sold", "removed"];
@@ -1453,6 +1487,6 @@ var MitumbaClient = class {
1453
1487
  }
1454
1488
  };
1455
1489
 
1456
- 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 };
1457
1491
  //# sourceMappingURL=index.mjs.map
1458
1492
  //# sourceMappingURL=index.mjs.map