squarefi-bff-api-module 1.32.45 → 1.33.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/api/auth.d.ts
CHANGED
|
@@ -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 }),
|
|
@@ -2579,7 +2579,10 @@ export interface operations {
|
|
|
2579
2579
|
AuthController_verifyEmail: {
|
|
2580
2580
|
parameters: {
|
|
2581
2581
|
query?: never;
|
|
2582
|
-
header?:
|
|
2582
|
+
header?: {
|
|
2583
|
+
/** @description Captcha token */
|
|
2584
|
+
captcha?: string;
|
|
2585
|
+
};
|
|
2583
2586
|
path?: never;
|
|
2584
2587
|
cookie?: never;
|
|
2585
2588
|
};
|
|
@@ -2609,7 +2612,10 @@ export interface operations {
|
|
|
2609
2612
|
AuthController_verifyPhone: {
|
|
2610
2613
|
parameters: {
|
|
2611
2614
|
query?: never;
|
|
2612
|
-
header?:
|
|
2615
|
+
header?: {
|
|
2616
|
+
/** @description Captcha token */
|
|
2617
|
+
captcha?: string;
|
|
2618
|
+
};
|
|
2613
2619
|
path?: never;
|
|
2614
2620
|
cookie?: never;
|
|
2615
2621
|
};
|
|
@@ -2662,7 +2668,10 @@ export interface operations {
|
|
|
2662
2668
|
AuthController_signIn: {
|
|
2663
2669
|
parameters: {
|
|
2664
2670
|
query?: never;
|
|
2665
|
-
header?:
|
|
2671
|
+
header?: {
|
|
2672
|
+
/** @description Captcha token */
|
|
2673
|
+
captcha?: string;
|
|
2674
|
+
};
|
|
2666
2675
|
path?: never;
|
|
2667
2676
|
cookie?: never;
|
|
2668
2677
|
};
|
|
@@ -2684,7 +2693,10 @@ export interface operations {
|
|
|
2684
2693
|
AuthController_signUp: {
|
|
2685
2694
|
parameters: {
|
|
2686
2695
|
query?: never;
|
|
2687
|
-
header?:
|
|
2696
|
+
header?: {
|
|
2697
|
+
/** @description Captcha token */
|
|
2698
|
+
captcha?: string;
|
|
2699
|
+
};
|
|
2688
2700
|
path?: never;
|
|
2689
2701
|
cookie?: never;
|
|
2690
2702
|
};
|
|
@@ -2802,7 +2814,10 @@ export interface operations {
|
|
|
2802
2814
|
AuthPasswordController_signUpByEmail: {
|
|
2803
2815
|
parameters: {
|
|
2804
2816
|
query?: never;
|
|
2805
|
-
header?:
|
|
2817
|
+
header?: {
|
|
2818
|
+
/** @description Captcha token */
|
|
2819
|
+
captcha?: string;
|
|
2820
|
+
};
|
|
2806
2821
|
path?: never;
|
|
2807
2822
|
cookie?: never;
|
|
2808
2823
|
};
|
|
@@ -2838,7 +2853,10 @@ export interface operations {
|
|
|
2838
2853
|
AuthPasswordController_resendSignUpByEmail: {
|
|
2839
2854
|
parameters: {
|
|
2840
2855
|
query?: never;
|
|
2841
|
-
header?:
|
|
2856
|
+
header?: {
|
|
2857
|
+
/** @description Captcha token */
|
|
2858
|
+
captcha?: string;
|
|
2859
|
+
};
|
|
2842
2860
|
path?: never;
|
|
2843
2861
|
cookie?: never;
|
|
2844
2862
|
};
|
|
@@ -2916,7 +2934,10 @@ export interface operations {
|
|
|
2916
2934
|
AuthPasswordController_signInByEmail: {
|
|
2917
2935
|
parameters: {
|
|
2918
2936
|
query?: never;
|
|
2919
|
-
header?:
|
|
2937
|
+
header?: {
|
|
2938
|
+
/** @description Captcha token */
|
|
2939
|
+
captcha?: string;
|
|
2940
|
+
};
|
|
2920
2941
|
path?: never;
|
|
2921
2942
|
cookie?: never;
|
|
2922
2943
|
};
|
|
@@ -2952,7 +2973,10 @@ export interface operations {
|
|
|
2952
2973
|
AuthOmniController_signInOmniByEmail: {
|
|
2953
2974
|
parameters: {
|
|
2954
2975
|
query?: never;
|
|
2955
|
-
header?:
|
|
2976
|
+
header?: {
|
|
2977
|
+
/** @description Captcha token */
|
|
2978
|
+
captcha?: string;
|
|
2979
|
+
};
|
|
2956
2980
|
path: {
|
|
2957
2981
|
type: "otp" | "magic";
|
|
2958
2982
|
};
|
|
@@ -2990,7 +3014,10 @@ export interface operations {
|
|
|
2990
3014
|
AuthOmniController_signInOmniByPhone: {
|
|
2991
3015
|
parameters: {
|
|
2992
3016
|
query?: never;
|
|
2993
|
-
header?:
|
|
3017
|
+
header?: {
|
|
3018
|
+
/** @description Captcha token */
|
|
3019
|
+
captcha?: string;
|
|
3020
|
+
};
|
|
2994
3021
|
path?: never;
|
|
2995
3022
|
cookie?: never;
|
|
2996
3023
|
};
|