@mitumba/sdk 1.21.0 → 1.22.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 CHANGED
@@ -103,6 +103,7 @@ interface UserProfile {
103
103
  onboarding_completed: boolean;
104
104
  email_verified: boolean;
105
105
  totp_enabled: boolean;
106
+ totp_configured: boolean;
106
107
  is_active: boolean;
107
108
  created_at: string;
108
109
  roles: string[];
@@ -378,6 +379,7 @@ interface Message {
378
379
  listing_id: string | null;
379
380
  store_id: string | null;
380
381
  order_id?: string | null;
382
+ from_store?: number;
381
383
  read_at: string | null;
382
384
  created_at: string;
383
385
  }
@@ -387,6 +389,7 @@ interface SendMessageInput {
387
389
  listing_id?: string;
388
390
  store_id?: string;
389
391
  order_id?: string;
392
+ from_store?: boolean;
390
393
  }
391
394
 
392
395
  type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system';
@@ -1642,6 +1645,12 @@ declare class SettingsModule {
1642
1645
  disable2FA(code: string, options?: RequestOptions): Promise<{
1643
1646
  ok: true;
1644
1647
  }>;
1648
+ enable2FA(code: string, options?: RequestOptions): Promise<{
1649
+ ok: true;
1650
+ }>;
1651
+ delete2FA(code: string, options?: RequestOptions): Promise<{
1652
+ ok: true;
1653
+ }>;
1645
1654
  }
1646
1655
 
1647
1656
  declare class MailerModule {
package/dist/index.d.ts CHANGED
@@ -103,6 +103,7 @@ interface UserProfile {
103
103
  onboarding_completed: boolean;
104
104
  email_verified: boolean;
105
105
  totp_enabled: boolean;
106
+ totp_configured: boolean;
106
107
  is_active: boolean;
107
108
  created_at: string;
108
109
  roles: string[];
@@ -378,6 +379,7 @@ interface Message {
378
379
  listing_id: string | null;
379
380
  store_id: string | null;
380
381
  order_id?: string | null;
382
+ from_store?: number;
381
383
  read_at: string | null;
382
384
  created_at: string;
383
385
  }
@@ -387,6 +389,7 @@ interface SendMessageInput {
387
389
  listing_id?: string;
388
390
  store_id?: string;
389
391
  order_id?: string;
392
+ from_store?: boolean;
390
393
  }
391
394
 
392
395
  type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system';
@@ -1642,6 +1645,12 @@ declare class SettingsModule {
1642
1645
  disable2FA(code: string, options?: RequestOptions): Promise<{
1643
1646
  ok: true;
1644
1647
  }>;
1648
+ enable2FA(code: string, options?: RequestOptions): Promise<{
1649
+ ok: true;
1650
+ }>;
1651
+ delete2FA(code: string, options?: RequestOptions): Promise<{
1652
+ ok: true;
1653
+ }>;
1645
1654
  }
1646
1655
 
1647
1656
  declare class MailerModule {
package/dist/index.js CHANGED
@@ -1102,6 +1102,12 @@ var SettingsModule = class {
1102
1102
  async disable2FA(code, options) {
1103
1103
  return this.client.post("/auth/2fa/disable", { code }, options);
1104
1104
  }
1105
+ async enable2FA(code, options) {
1106
+ return this.client.post("/auth/2fa/enable", { code }, options);
1107
+ }
1108
+ async delete2FA(code, options) {
1109
+ return this.client.delete("/auth/2fa", { code }, options);
1110
+ }
1105
1111
  };
1106
1112
 
1107
1113
  // src/modules/mailer.ts