squarefi-bff-api-module 1.32.45 → 1.33.1

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.
@@ -5,22 +5,22 @@ export declare const refreshTokenPath = "/auth/refresh/refresh-token";
5
5
  export declare const auth: {
6
6
  otp: {
7
7
  verify: {
8
- email: (email: string, token: string) => Promise<API.Auth.VerifyOtp.Response>;
9
- phone: (phone: string, token: string) => Promise<API.Auth.VerifyOtp.Response>;
8
+ email: (email: string, token: string, captcha: string) => Promise<API.Auth.VerifyOtp.Response>;
9
+ phone: (phone: string, token: string, captcha: string) => Promise<API.Auth.VerifyOtp.Response>;
10
10
  };
11
11
  };
12
12
  signin: {
13
13
  omni: {
14
- email: (data: API.Auth.SignIn.Omni.Email.OTP.Request) => Promise<API.Auth.Tokens>;
15
- phone: ({ phone, ...data }: API.Auth.SignIn.Omni.Phone.OTP.Request) => Promise<API.Auth.Tokens>;
14
+ email: (data: API.Auth.SignIn.Omni.Email.OTP.Request, captcha: string) => Promise<API.Auth.Tokens>;
15
+ phone: ({ phone, ...data }: API.Auth.SignIn.Omni.Phone.OTP.Request, captcha: string) => Promise<API.Auth.Tokens>;
16
16
  };
17
- byType: (data: API.Auth.SignIn.ByType.Request) => Promise<API.Auth.SignIn.ByType.Response>;
17
+ byType: (data: API.Auth.SignIn.ByType.Request, captcha: string) => Promise<API.Auth.SignIn.ByType.Response>;
18
18
  telegram: (data: API.Auth.Telegram.Signin.Request) => Promise<API.Auth.Telegram.Signin.Response>;
19
- password: (email: string, password: string) => Promise<API.Auth.Tokens>;
19
+ password: (email: string, password: string, captcha: string) => Promise<API.Auth.Tokens>;
20
20
  };
21
21
  signup: {
22
- byType: (data: API.Auth.SignUp.ByType.Request) => Promise<API.Auth.Tokens>;
23
- password: (email: string, password: string) => Promise<API.Auth.Tokens>;
22
+ byType: (data: API.Auth.SignUp.ByType.Request, captcha: string) => Promise<API.Auth.Tokens>;
23
+ password: (email: string, password: string, captcha: string) => Promise<API.Auth.Tokens>;
24
24
  telegram: (data: API.Auth.Telegram.Signup.Request) => Promise<API.Auth.Telegram.Signup.Response>;
25
25
  };
26
26
  refresh: {
package/dist/api/auth.js CHANGED
@@ -7,48 +7,56 @@ export const refreshTokenPath = '/auth/refresh/refresh-token';
7
7
  export const auth = {
8
8
  otp: {
9
9
  verify: {
10
- email: (email, token) => apiClientV2.postRequest('/auth/verify/email/otp', {
10
+ email: (email, token, captcha) => apiClientV2.postRequest('/auth/verify/email/otp', {
11
11
  data: { email, token, type: 'email' },
12
+ headers: { captcha },
12
13
  context: { bypassUnauthorizedHandler: true },
13
14
  }),
14
- phone: (phone, token) => apiClientV2.postRequest('/auth/verify/phone/otp', {
15
+ phone: (phone, token, captcha) => apiClientV2.postRequest('/auth/verify/phone/otp', {
15
16
  data: {
16
17
  phone: convertPhoneToSupabaseFormat(phone),
17
18
  token,
18
19
  type: 'sms',
19
20
  },
21
+ headers: { captcha },
20
22
  context: { bypassUnauthorizedHandler: true },
21
23
  }),
22
24
  },
23
25
  },
24
26
  signin: {
25
27
  omni: {
26
- email: (data) => apiClientV2.postRequest('/auth/sign-in/omni/email/otp', {
28
+ email: (data, captcha) => apiClientV2.postRequest('/auth/sign-in/omni/email/otp', {
27
29
  data,
30
+ headers: { captcha },
28
31
  context: { bypassUnauthorizedHandler: true },
29
32
  }),
30
- phone: ({ phone, ...data }) => apiClientV2.postRequest('/auth/sign-in/omni/phone/otp', {
33
+ phone: ({ phone, ...data }, captcha) => apiClientV2.postRequest('/auth/sign-in/omni/phone/otp', {
31
34
  data: { phone: convertPhoneToSupabaseFormat(phone), ...data },
35
+ headers: { captcha },
32
36
  context: { bypassUnauthorizedHandler: true },
33
37
  }),
34
38
  },
35
- byType: (data) => apiClientV2.postRequest('/auth/sign-in', {
39
+ byType: (data, captcha) => apiClientV2.postRequest('/auth/sign-in', {
36
40
  data,
41
+ headers: { captcha },
37
42
  context: { bypassUnauthorizedHandler: true },
38
43
  }),
39
44
  telegram: (data) => apiClientV2.postRequest(telegramSignInPath, { data }),
40
- password: (email, password) => apiClientV2.postRequest('/auth/sign-in/password/email', {
45
+ password: (email, password, captcha) => apiClientV2.postRequest('/auth/sign-in/password/email', {
41
46
  data: { email, password },
47
+ headers: { captcha },
42
48
  context: { bypassUnauthorizedHandler: true },
43
49
  }),
44
50
  },
45
51
  signup: {
46
- byType: (data) => apiClientV2.postRequest('/auth/sign-up', {
52
+ byType: (data, captcha) => apiClientV2.postRequest('/auth/sign-up', {
47
53
  data,
54
+ headers: { captcha },
48
55
  context: { bypassUnauthorizedHandler: true },
49
56
  }),
50
- password: (email, password) => apiClientV2.postRequest('/auth/sign-up/password/email', {
57
+ password: (email, password, captcha) => apiClientV2.postRequest('/auth/sign-up/password/email', {
51
58
  data: { email, password },
59
+ headers: { captcha },
52
60
  context: { bypassUnauthorizedHandler: true },
53
61
  }),
54
62
  telegram: (data) => apiClientV2.postRequest(telegramSignUpPath, { data }),
@@ -2024,6 +2024,7 @@ export interface components {
2024
2024
  ubo_declaration_url?: string | null;
2025
2025
  website?: string | null;
2026
2026
  selfie_url?: string | null;
2027
+ regulatory_license_url?: string | null;
2027
2028
  annual_salary?: string | null;
2028
2029
  expected_monthly_volume?: string | null;
2029
2030
  monthly_crypto_deposits?: string | null;
@@ -2140,6 +2141,7 @@ export interface components {
2140
2141
  ubo_declaration_url?: string | null;
2141
2142
  website?: string | null;
2142
2143
  selfie_url?: string | null;
2144
+ regulatory_license_url?: string | null;
2143
2145
  annual_salary?: string | null;
2144
2146
  expected_monthly_volume?: string | null;
2145
2147
  monthly_crypto_deposits?: string | null;
@@ -2579,7 +2581,10 @@ export interface operations {
2579
2581
  AuthController_verifyEmail: {
2580
2582
  parameters: {
2581
2583
  query?: never;
2582
- header?: never;
2584
+ header?: {
2585
+ /** @description Captcha token */
2586
+ captcha?: string;
2587
+ };
2583
2588
  path?: never;
2584
2589
  cookie?: never;
2585
2590
  };
@@ -2609,7 +2614,10 @@ export interface operations {
2609
2614
  AuthController_verifyPhone: {
2610
2615
  parameters: {
2611
2616
  query?: never;
2612
- header?: never;
2617
+ header?: {
2618
+ /** @description Captcha token */
2619
+ captcha?: string;
2620
+ };
2613
2621
  path?: never;
2614
2622
  cookie?: never;
2615
2623
  };
@@ -2662,7 +2670,10 @@ export interface operations {
2662
2670
  AuthController_signIn: {
2663
2671
  parameters: {
2664
2672
  query?: never;
2665
- header?: never;
2673
+ header?: {
2674
+ /** @description Captcha token */
2675
+ captcha?: string;
2676
+ };
2666
2677
  path?: never;
2667
2678
  cookie?: never;
2668
2679
  };
@@ -2684,7 +2695,10 @@ export interface operations {
2684
2695
  AuthController_signUp: {
2685
2696
  parameters: {
2686
2697
  query?: never;
2687
- header?: never;
2698
+ header?: {
2699
+ /** @description Captcha token */
2700
+ captcha?: string;
2701
+ };
2688
2702
  path?: never;
2689
2703
  cookie?: never;
2690
2704
  };
@@ -2802,7 +2816,10 @@ export interface operations {
2802
2816
  AuthPasswordController_signUpByEmail: {
2803
2817
  parameters: {
2804
2818
  query?: never;
2805
- header?: never;
2819
+ header?: {
2820
+ /** @description Captcha token */
2821
+ captcha?: string;
2822
+ };
2806
2823
  path?: never;
2807
2824
  cookie?: never;
2808
2825
  };
@@ -2838,7 +2855,10 @@ export interface operations {
2838
2855
  AuthPasswordController_resendSignUpByEmail: {
2839
2856
  parameters: {
2840
2857
  query?: never;
2841
- header?: never;
2858
+ header?: {
2859
+ /** @description Captcha token */
2860
+ captcha?: string;
2861
+ };
2842
2862
  path?: never;
2843
2863
  cookie?: never;
2844
2864
  };
@@ -2916,7 +2936,10 @@ export interface operations {
2916
2936
  AuthPasswordController_signInByEmail: {
2917
2937
  parameters: {
2918
2938
  query?: never;
2919
- header?: never;
2939
+ header?: {
2940
+ /** @description Captcha token */
2941
+ captcha?: string;
2942
+ };
2920
2943
  path?: never;
2921
2944
  cookie?: never;
2922
2945
  };
@@ -2952,7 +2975,10 @@ export interface operations {
2952
2975
  AuthOmniController_signInOmniByEmail: {
2953
2976
  parameters: {
2954
2977
  query?: never;
2955
- header?: never;
2978
+ header?: {
2979
+ /** @description Captcha token */
2980
+ captcha?: string;
2981
+ };
2956
2982
  path: {
2957
2983
  type: "otp" | "magic";
2958
2984
  };
@@ -2990,7 +3016,10 @@ export interface operations {
2990
3016
  AuthOmniController_signInOmniByPhone: {
2991
3017
  parameters: {
2992
3018
  query?: never;
2993
- header?: never;
3019
+ header?: {
3020
+ /** @description Captcha token */
3021
+ captcha?: string;
3022
+ };
2994
3023
  path?: never;
2995
3024
  cookie?: never;
2996
3025
  };
@@ -1690,6 +1690,7 @@ export declare namespace API {
1690
1690
  to_currency: string;
1691
1691
  from_amount: number;
1692
1692
  to_amount: number;
1693
+ counterparty_account_id: string;
1693
1694
  counterparty_destination_id: string;
1694
1695
  type: 'ORDER';
1695
1696
  sub_type: OrderType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.45",
3
+ "version": "1.33.1",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",