squarefi-bff-api-module 1.25.4 → 1.25.6
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 +4 -2
- package/dist/api/auth.js +2 -0
- package/dist/api/totp.d.ts +1 -0
- package/dist/api/totp.js +3 -0
- package/dist/api/types/autogen/apiV2.types.d.ts +273 -0
- package/dist/api/types/types.d.ts +31 -14
- package/package.json +1 -1
- package/src/api/auth.ts +8 -4
- package/src/api/totp.ts +3 -0
- package/src/api/types/autogen/apiV2.types.ts +273 -0
- package/src/api/types/types.ts +34 -14
package/dist/api/auth.d.ts
CHANGED
|
@@ -11,13 +11,15 @@ export declare const auth: {
|
|
|
11
11
|
};
|
|
12
12
|
signin: {
|
|
13
13
|
omni: {
|
|
14
|
-
email: (data: API.Auth.SignIn.Email.OTP.Request) => Promise<API.Auth.Tokens>;
|
|
15
|
-
phone: ({ phone, ...data }: API.Auth.SignIn.Phone.OTP.Request) => Promise<API.Auth.Tokens>;
|
|
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>;
|
|
16
16
|
};
|
|
17
|
+
byType: (data: API.Auth.SignIn.ByType.Request) => Promise<API.Auth.Tokens>;
|
|
17
18
|
telegram: (data: API.Auth.Telegram.Signin.Request) => Promise<API.Auth.Telegram.Signin.Response>;
|
|
18
19
|
password: (email: string, password: string) => Promise<API.Auth.Tokens>;
|
|
19
20
|
};
|
|
20
21
|
signup: {
|
|
22
|
+
byType: (data: API.Auth.SignUp.ByType.Request) => Promise<API.Auth.Tokens>;
|
|
21
23
|
password: (email: string, password: string) => Promise<API.Auth.Tokens>;
|
|
22
24
|
telegram: (data: API.Auth.Telegram.Signup.Request) => Promise<API.Auth.Telegram.Signup.Response>;
|
|
23
25
|
};
|
package/dist/api/auth.js
CHANGED
|
@@ -39,6 +39,7 @@ exports.auth = {
|
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
+
byType: (data) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in', { data }),
|
|
42
43
|
telegram: (data) => apiClientFactory_1.apiClientV2.postRequest(exports.telegramSignInPath, { data }),
|
|
43
44
|
password: (email, password // check on backend V2
|
|
44
45
|
) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/password/email', {
|
|
@@ -46,6 +47,7 @@ exports.auth = {
|
|
|
46
47
|
}),
|
|
47
48
|
},
|
|
48
49
|
signup: {
|
|
50
|
+
byType: (data) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-up', { data }),
|
|
49
51
|
password: (email, password) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-up/password/email', {
|
|
50
52
|
data: { email, password },
|
|
51
53
|
}),
|
package/dist/api/totp.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export declare const totp: {
|
|
|
12
12
|
revoke: (data: API.TOTP.TOTP.Revoke.Request) => Promise<API.TOTP.TOTP.Revoke.Response>;
|
|
13
13
|
activate: (data: API.TOTP.TOTP.Activate.Request) => Promise<API.TOTP.TOTP.Activate.Response>;
|
|
14
14
|
generateEncrypted: (data: API.TOTP.TOTP.GenerateEncrypted.Request) => Promise<API.TOTP.TOTP.GenerateEncrypted.Response>;
|
|
15
|
+
status: () => Promise<API.TOTP.TOTP.Status.Response>;
|
|
15
16
|
};
|
|
16
17
|
};
|
package/dist/api/totp.js
CHANGED
|
@@ -71,6 +71,40 @@ export interface paths {
|
|
|
71
71
|
patch?: never;
|
|
72
72
|
trace?: never;
|
|
73
73
|
};
|
|
74
|
+
"/auth/sign-in": {
|
|
75
|
+
parameters: {
|
|
76
|
+
query?: never;
|
|
77
|
+
header?: never;
|
|
78
|
+
path?: never;
|
|
79
|
+
cookie?: never;
|
|
80
|
+
};
|
|
81
|
+
get?: never;
|
|
82
|
+
put?: never;
|
|
83
|
+
/** Sign in user by type */
|
|
84
|
+
post: operations["AuthController_signIn"];
|
|
85
|
+
delete?: never;
|
|
86
|
+
options?: never;
|
|
87
|
+
head?: never;
|
|
88
|
+
patch?: never;
|
|
89
|
+
trace?: never;
|
|
90
|
+
};
|
|
91
|
+
"/auth/sign-up": {
|
|
92
|
+
parameters: {
|
|
93
|
+
query?: never;
|
|
94
|
+
header?: never;
|
|
95
|
+
path?: never;
|
|
96
|
+
cookie?: never;
|
|
97
|
+
};
|
|
98
|
+
get?: never;
|
|
99
|
+
put?: never;
|
|
100
|
+
/** Sign up user by type */
|
|
101
|
+
post: operations["AuthController_signUp"];
|
|
102
|
+
delete?: never;
|
|
103
|
+
options?: never;
|
|
104
|
+
head?: never;
|
|
105
|
+
patch?: never;
|
|
106
|
+
trace?: never;
|
|
107
|
+
};
|
|
74
108
|
"/auth/sign-up/telegram": {
|
|
75
109
|
parameters: {
|
|
76
110
|
query?: never;
|
|
@@ -936,6 +970,22 @@ export interface paths {
|
|
|
936
970
|
patch?: never;
|
|
937
971
|
trace?: never;
|
|
938
972
|
};
|
|
973
|
+
"/persona/inquiries/{wallet_id}/{inquiry_id}/resume": {
|
|
974
|
+
parameters: {
|
|
975
|
+
query?: never;
|
|
976
|
+
header?: never;
|
|
977
|
+
path?: never;
|
|
978
|
+
cookie?: never;
|
|
979
|
+
};
|
|
980
|
+
get?: never;
|
|
981
|
+
put?: never;
|
|
982
|
+
post: operations["PersonaController_resumeInquiry"];
|
|
983
|
+
delete?: never;
|
|
984
|
+
options?: never;
|
|
985
|
+
head?: never;
|
|
986
|
+
patch?: never;
|
|
987
|
+
trace?: never;
|
|
988
|
+
};
|
|
939
989
|
"/kyc/integration-persona-templates": {
|
|
940
990
|
parameters: {
|
|
941
991
|
query?: never;
|
|
@@ -969,6 +1019,23 @@ export interface paths {
|
|
|
969
1019
|
patch?: never;
|
|
970
1020
|
trace?: never;
|
|
971
1021
|
};
|
|
1022
|
+
"/bank-data": {
|
|
1023
|
+
parameters: {
|
|
1024
|
+
query?: never;
|
|
1025
|
+
header?: never;
|
|
1026
|
+
path?: never;
|
|
1027
|
+
cookie?: never;
|
|
1028
|
+
};
|
|
1029
|
+
/** Returns bank data by account number */
|
|
1030
|
+
get: operations["BankDataController_getBankDataByAccountNumber"];
|
|
1031
|
+
put?: never;
|
|
1032
|
+
post?: never;
|
|
1033
|
+
delete?: never;
|
|
1034
|
+
options?: never;
|
|
1035
|
+
head?: never;
|
|
1036
|
+
patch?: never;
|
|
1037
|
+
trace?: never;
|
|
1038
|
+
};
|
|
972
1039
|
}
|
|
973
1040
|
export type webhooks = Record<string, never>;
|
|
974
1041
|
export interface components {
|
|
@@ -998,6 +1065,18 @@ export interface components {
|
|
|
998
1065
|
RefreshTokenDto: {
|
|
999
1066
|
refresh_token: string;
|
|
1000
1067
|
};
|
|
1068
|
+
SignInByTypeDto: {
|
|
1069
|
+
login: string;
|
|
1070
|
+
/** @enum {string} */
|
|
1071
|
+
type: "email" | "phone";
|
|
1072
|
+
};
|
|
1073
|
+
SignUpByTypeDto: {
|
|
1074
|
+
invite_code?: string;
|
|
1075
|
+
referrer?: string;
|
|
1076
|
+
/** @enum {string} */
|
|
1077
|
+
type: "email" | "phone";
|
|
1078
|
+
login: string;
|
|
1079
|
+
};
|
|
1001
1080
|
TelegramSignUpByPhoneDto: {
|
|
1002
1081
|
phone: string;
|
|
1003
1082
|
tg_id: string;
|
|
@@ -1809,6 +1888,7 @@ export interface components {
|
|
|
1809
1888
|
/** @enum {string} */
|
|
1810
1889
|
action: "verification";
|
|
1811
1890
|
type: string;
|
|
1891
|
+
full_name: string | null;
|
|
1812
1892
|
url: string;
|
|
1813
1893
|
};
|
|
1814
1894
|
WalletKycRailTermsAndConditionsDto: {
|
|
@@ -2085,6 +2165,10 @@ export interface components {
|
|
|
2085
2165
|
/** @example inq_E6U4KitBucNKpfrDMb997AaTkQTt */
|
|
2086
2166
|
inquiryId: string | null;
|
|
2087
2167
|
};
|
|
2168
|
+
ResumeInquiryResponseDto: {
|
|
2169
|
+
inquiryId: string;
|
|
2170
|
+
sessionId: string;
|
|
2171
|
+
};
|
|
2088
2172
|
IntegrationPersonaTemplateEntityDto: Record<string, never>;
|
|
2089
2173
|
FindAllIntegrationPersonaTemplatesResponseDto: {
|
|
2090
2174
|
/** @example 20 */
|
|
@@ -2098,6 +2182,71 @@ export interface components {
|
|
|
2098
2182
|
/** @description Hifibridge ID to load data to wallet */
|
|
2099
2183
|
hifibridge_id: string;
|
|
2100
2184
|
};
|
|
2185
|
+
CityDto: {
|
|
2186
|
+
id: string;
|
|
2187
|
+
country_id: string;
|
|
2188
|
+
name: string;
|
|
2189
|
+
};
|
|
2190
|
+
BankDto: {
|
|
2191
|
+
id: string;
|
|
2192
|
+
country_id: string;
|
|
2193
|
+
code: string;
|
|
2194
|
+
name: string;
|
|
2195
|
+
};
|
|
2196
|
+
SwiftDto: {
|
|
2197
|
+
id: string;
|
|
2198
|
+
address: string;
|
|
2199
|
+
postcode: string;
|
|
2200
|
+
branch_name: string;
|
|
2201
|
+
branch_code: string;
|
|
2202
|
+
country: components["schemas"]["CountryDto"];
|
|
2203
|
+
city: components["schemas"]["CityDto"];
|
|
2204
|
+
bank: components["schemas"]["BankDto"];
|
|
2205
|
+
};
|
|
2206
|
+
IbanDataDto: {
|
|
2207
|
+
id: string;
|
|
2208
|
+
account_number: string;
|
|
2209
|
+
national_bank_code: string;
|
|
2210
|
+
national_branch_code: string;
|
|
2211
|
+
swift: components["schemas"]["SwiftDto"];
|
|
2212
|
+
country: components["schemas"]["CountryDto"];
|
|
2213
|
+
};
|
|
2214
|
+
WireDto: {
|
|
2215
|
+
telegraphic_name: string;
|
|
2216
|
+
is_funds_transfer_allowed: boolean;
|
|
2217
|
+
is_settlement_only: boolean;
|
|
2218
|
+
is_securities_transfer_allowed: boolean;
|
|
2219
|
+
change_date: Record<string, never> | null;
|
|
2220
|
+
bank: components["schemas"]["BankDto"];
|
|
2221
|
+
city: components["schemas"]["CityDto"];
|
|
2222
|
+
};
|
|
2223
|
+
AchDto: {
|
|
2224
|
+
new_id: Record<string, never> | null;
|
|
2225
|
+
servicing_frb_id: string;
|
|
2226
|
+
address: string;
|
|
2227
|
+
postcode: string;
|
|
2228
|
+
phone: string;
|
|
2229
|
+
record_type_code: number;
|
|
2230
|
+
is_main_office: boolean;
|
|
2231
|
+
change_date: Record<string, never> | null;
|
|
2232
|
+
bank: components["schemas"]["BankDto"];
|
|
2233
|
+
city: components["schemas"]["CityDto"];
|
|
2234
|
+
};
|
|
2235
|
+
RtnDataDto: {
|
|
2236
|
+
id: string;
|
|
2237
|
+
wire: components["schemas"]["WireDto"];
|
|
2238
|
+
ach: components["schemas"]["AchDto"];
|
|
2239
|
+
};
|
|
2240
|
+
SwiftDataDto: {
|
|
2241
|
+
id: string;
|
|
2242
|
+
address: string;
|
|
2243
|
+
postcode: string;
|
|
2244
|
+
branch_name: string;
|
|
2245
|
+
branch_code: string;
|
|
2246
|
+
country: components["schemas"]["CountryDto"];
|
|
2247
|
+
city: components["schemas"]["CityDto"];
|
|
2248
|
+
bank: components["schemas"]["BankDto"];
|
|
2249
|
+
};
|
|
2101
2250
|
};
|
|
2102
2251
|
responses: never;
|
|
2103
2252
|
parameters: never;
|
|
@@ -2208,6 +2357,57 @@ export interface operations {
|
|
|
2208
2357
|
};
|
|
2209
2358
|
};
|
|
2210
2359
|
};
|
|
2360
|
+
AuthController_signIn: {
|
|
2361
|
+
parameters: {
|
|
2362
|
+
query?: never;
|
|
2363
|
+
header?: never;
|
|
2364
|
+
path?: never;
|
|
2365
|
+
cookie?: never;
|
|
2366
|
+
};
|
|
2367
|
+
requestBody: {
|
|
2368
|
+
content: {
|
|
2369
|
+
"application/json": components["schemas"]["SignInByTypeDto"];
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
responses: {
|
|
2373
|
+
/** @description Invalid tenant */
|
|
2374
|
+
401: {
|
|
2375
|
+
headers: {
|
|
2376
|
+
[name: string]: unknown;
|
|
2377
|
+
};
|
|
2378
|
+
content?: never;
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
AuthController_signUp: {
|
|
2383
|
+
parameters: {
|
|
2384
|
+
query?: never;
|
|
2385
|
+
header?: never;
|
|
2386
|
+
path?: never;
|
|
2387
|
+
cookie?: never;
|
|
2388
|
+
};
|
|
2389
|
+
requestBody: {
|
|
2390
|
+
content: {
|
|
2391
|
+
"application/json": components["schemas"]["SignUpByTypeDto"];
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
responses: {
|
|
2395
|
+
/** @description Invite code is required */
|
|
2396
|
+
400: {
|
|
2397
|
+
headers: {
|
|
2398
|
+
[name: string]: unknown;
|
|
2399
|
+
};
|
|
2400
|
+
content?: never;
|
|
2401
|
+
};
|
|
2402
|
+
/** @description Invalid tenant */
|
|
2403
|
+
401: {
|
|
2404
|
+
headers: {
|
|
2405
|
+
[name: string]: unknown;
|
|
2406
|
+
};
|
|
2407
|
+
content?: never;
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2211
2411
|
AuthTelegramController_signUp: {
|
|
2212
2412
|
parameters: {
|
|
2213
2413
|
query?: never;
|
|
@@ -4449,6 +4649,49 @@ export interface operations {
|
|
|
4449
4649
|
};
|
|
4450
4650
|
};
|
|
4451
4651
|
};
|
|
4652
|
+
PersonaController_resumeInquiry: {
|
|
4653
|
+
parameters: {
|
|
4654
|
+
query?: never;
|
|
4655
|
+
header?: never;
|
|
4656
|
+
path: {
|
|
4657
|
+
wallet_id: string;
|
|
4658
|
+
inquiry_id: string;
|
|
4659
|
+
};
|
|
4660
|
+
cookie?: never;
|
|
4661
|
+
};
|
|
4662
|
+
requestBody?: never;
|
|
4663
|
+
responses: {
|
|
4664
|
+
200: {
|
|
4665
|
+
headers: {
|
|
4666
|
+
[name: string]: unknown;
|
|
4667
|
+
};
|
|
4668
|
+
content: {
|
|
4669
|
+
"application/json": components["schemas"]["ResumeInquiryResponseDto"];
|
|
4670
|
+
};
|
|
4671
|
+
};
|
|
4672
|
+
/** @description Unauthorized */
|
|
4673
|
+
401: {
|
|
4674
|
+
headers: {
|
|
4675
|
+
[name: string]: unknown;
|
|
4676
|
+
};
|
|
4677
|
+
content?: never;
|
|
4678
|
+
};
|
|
4679
|
+
/** @description You don`t have access to current wallet */
|
|
4680
|
+
403: {
|
|
4681
|
+
headers: {
|
|
4682
|
+
[name: string]: unknown;
|
|
4683
|
+
};
|
|
4684
|
+
content?: never;
|
|
4685
|
+
};
|
|
4686
|
+
/** @description Persona reference or Inquiry not found */
|
|
4687
|
+
404: {
|
|
4688
|
+
headers: {
|
|
4689
|
+
[name: string]: unknown;
|
|
4690
|
+
};
|
|
4691
|
+
content?: never;
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
};
|
|
4452
4695
|
IntegrationPersonaTemplateController_findAll: {
|
|
4453
4696
|
parameters: {
|
|
4454
4697
|
query?: never;
|
|
@@ -4502,4 +4745,34 @@ export interface operations {
|
|
|
4502
4745
|
};
|
|
4503
4746
|
};
|
|
4504
4747
|
};
|
|
4748
|
+
BankDataController_getBankDataByAccountNumber: {
|
|
4749
|
+
parameters: {
|
|
4750
|
+
query: {
|
|
4751
|
+
/** @description Account number string must be a valid IBAN, RTN or SWIFT code */
|
|
4752
|
+
account_number: string;
|
|
4753
|
+
};
|
|
4754
|
+
header?: never;
|
|
4755
|
+
path?: never;
|
|
4756
|
+
cookie?: never;
|
|
4757
|
+
};
|
|
4758
|
+
requestBody?: never;
|
|
4759
|
+
responses: {
|
|
4760
|
+
/** @description Bank data */
|
|
4761
|
+
200: {
|
|
4762
|
+
headers: {
|
|
4763
|
+
[name: string]: unknown;
|
|
4764
|
+
};
|
|
4765
|
+
content: {
|
|
4766
|
+
"application/json": components["schemas"]["IbanDataDto"] | components["schemas"]["RtnDataDto"] | components["schemas"]["SwiftDataDto"];
|
|
4767
|
+
};
|
|
4768
|
+
};
|
|
4769
|
+
/** @description Unauthorized */
|
|
4770
|
+
401: {
|
|
4771
|
+
headers: {
|
|
4772
|
+
[name: string]: unknown;
|
|
4773
|
+
};
|
|
4774
|
+
content?: never;
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4505
4778
|
}
|
|
@@ -29,27 +29,35 @@ export declare namespace API {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
namespace SignIn {
|
|
32
|
-
namespace
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
namespace ByType {
|
|
33
|
+
type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
|
|
34
|
+
}
|
|
35
|
+
namespace Omni {
|
|
36
|
+
namespace Email {
|
|
37
|
+
namespace OTP {
|
|
38
|
+
interface Request {
|
|
39
|
+
email: string;
|
|
40
|
+
invite_code?: string;
|
|
41
|
+
referrer?: string;
|
|
42
|
+
redirect_url?: string;
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
namespace Phone {
|
|
47
|
+
namespace OTP {
|
|
48
|
+
interface Request {
|
|
49
|
+
phone: string;
|
|
50
|
+
invite_code?: string;
|
|
51
|
+
referrer?: string;
|
|
52
|
+
}
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
namespace SignUp {
|
|
58
|
+
namespace ByType {
|
|
59
|
+
type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
|
|
60
|
+
}
|
|
53
61
|
namespace Password {
|
|
54
62
|
interface Request {
|
|
55
63
|
email: string;
|
|
@@ -1957,6 +1965,15 @@ export declare namespace API {
|
|
|
1957
1965
|
data?: string;
|
|
1958
1966
|
};
|
|
1959
1967
|
}
|
|
1968
|
+
namespace Status {
|
|
1969
|
+
type Response = {
|
|
1970
|
+
success?: boolean;
|
|
1971
|
+
error?: boolean;
|
|
1972
|
+
message?: string;
|
|
1973
|
+
details?: string;
|
|
1974
|
+
has_active_totp?: boolean;
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1960
1977
|
}
|
|
1961
1978
|
}
|
|
1962
1979
|
namespace VirtualAccounts {
|
package/package.json
CHANGED
package/src/api/auth.ts
CHANGED
|
@@ -24,13 +24,15 @@ export const auth = {
|
|
|
24
24
|
},
|
|
25
25
|
signin: {
|
|
26
26
|
omni: {
|
|
27
|
-
email: (data: API.Auth.SignIn.Email.OTP.Request): Promise<API.Auth.Tokens> =>
|
|
28
|
-
apiClientV2.postRequest
|
|
29
|
-
phone: ({ phone, ...data }: API.Auth.SignIn.Phone.OTP.Request): Promise<API.Auth.Tokens> =>
|
|
30
|
-
apiClientV2.postRequest
|
|
27
|
+
email: (data: API.Auth.SignIn.Omni.Email.OTP.Request): Promise<API.Auth.Tokens> =>
|
|
28
|
+
apiClientV2.postRequest('/auth/sign-in/omni/email/otp', { data }),
|
|
29
|
+
phone: ({ phone, ...data }: API.Auth.SignIn.Omni.Phone.OTP.Request): Promise<API.Auth.Tokens> =>
|
|
30
|
+
apiClientV2.postRequest('/auth/sign-in/omni/phone/otp', {
|
|
31
31
|
data: { phone: convertPhoneToSupabaseFormat(phone), ...data },
|
|
32
32
|
}),
|
|
33
33
|
},
|
|
34
|
+
byType: (data: API.Auth.SignIn.ByType.Request): Promise<API.Auth.Tokens> =>
|
|
35
|
+
apiClientV2.postRequest('/auth/sign-in', { data }),
|
|
34
36
|
telegram: (data: API.Auth.Telegram.Signin.Request): Promise<API.Auth.Telegram.Signin.Response> =>
|
|
35
37
|
apiClientV2.postRequest<API.Auth.Telegram.Signin.Response>(telegramSignInPath, { data }),
|
|
36
38
|
password: (
|
|
@@ -42,6 +44,8 @@ export const auth = {
|
|
|
42
44
|
}),
|
|
43
45
|
},
|
|
44
46
|
signup: {
|
|
47
|
+
byType: (data: API.Auth.SignUp.ByType.Request): Promise<API.Auth.Tokens> =>
|
|
48
|
+
apiClientV2.postRequest('/auth/sign-up', { data }),
|
|
45
49
|
password: (email: string, password: string): Promise<API.Auth.Tokens> =>
|
|
46
50
|
apiClientV2.postRequest<API.Auth.Tokens>('/auth/sign-up/password/email', {
|
|
47
51
|
data: { email, password },
|
package/src/api/totp.ts
CHANGED
|
@@ -72,6 +72,40 @@ export interface paths {
|
|
|
72
72
|
patch?: never;
|
|
73
73
|
trace?: never;
|
|
74
74
|
};
|
|
75
|
+
"/auth/sign-in": {
|
|
76
|
+
parameters: {
|
|
77
|
+
query?: never;
|
|
78
|
+
header?: never;
|
|
79
|
+
path?: never;
|
|
80
|
+
cookie?: never;
|
|
81
|
+
};
|
|
82
|
+
get?: never;
|
|
83
|
+
put?: never;
|
|
84
|
+
/** Sign in user by type */
|
|
85
|
+
post: operations["AuthController_signIn"];
|
|
86
|
+
delete?: never;
|
|
87
|
+
options?: never;
|
|
88
|
+
head?: never;
|
|
89
|
+
patch?: never;
|
|
90
|
+
trace?: never;
|
|
91
|
+
};
|
|
92
|
+
"/auth/sign-up": {
|
|
93
|
+
parameters: {
|
|
94
|
+
query?: never;
|
|
95
|
+
header?: never;
|
|
96
|
+
path?: never;
|
|
97
|
+
cookie?: never;
|
|
98
|
+
};
|
|
99
|
+
get?: never;
|
|
100
|
+
put?: never;
|
|
101
|
+
/** Sign up user by type */
|
|
102
|
+
post: operations["AuthController_signUp"];
|
|
103
|
+
delete?: never;
|
|
104
|
+
options?: never;
|
|
105
|
+
head?: never;
|
|
106
|
+
patch?: never;
|
|
107
|
+
trace?: never;
|
|
108
|
+
};
|
|
75
109
|
"/auth/sign-up/telegram": {
|
|
76
110
|
parameters: {
|
|
77
111
|
query?: never;
|
|
@@ -937,6 +971,22 @@ export interface paths {
|
|
|
937
971
|
patch?: never;
|
|
938
972
|
trace?: never;
|
|
939
973
|
};
|
|
974
|
+
"/persona/inquiries/{wallet_id}/{inquiry_id}/resume": {
|
|
975
|
+
parameters: {
|
|
976
|
+
query?: never;
|
|
977
|
+
header?: never;
|
|
978
|
+
path?: never;
|
|
979
|
+
cookie?: never;
|
|
980
|
+
};
|
|
981
|
+
get?: never;
|
|
982
|
+
put?: never;
|
|
983
|
+
post: operations["PersonaController_resumeInquiry"];
|
|
984
|
+
delete?: never;
|
|
985
|
+
options?: never;
|
|
986
|
+
head?: never;
|
|
987
|
+
patch?: never;
|
|
988
|
+
trace?: never;
|
|
989
|
+
};
|
|
940
990
|
"/kyc/integration-persona-templates": {
|
|
941
991
|
parameters: {
|
|
942
992
|
query?: never;
|
|
@@ -970,6 +1020,23 @@ export interface paths {
|
|
|
970
1020
|
patch?: never;
|
|
971
1021
|
trace?: never;
|
|
972
1022
|
};
|
|
1023
|
+
"/bank-data": {
|
|
1024
|
+
parameters: {
|
|
1025
|
+
query?: never;
|
|
1026
|
+
header?: never;
|
|
1027
|
+
path?: never;
|
|
1028
|
+
cookie?: never;
|
|
1029
|
+
};
|
|
1030
|
+
/** Returns bank data by account number */
|
|
1031
|
+
get: operations["BankDataController_getBankDataByAccountNumber"];
|
|
1032
|
+
put?: never;
|
|
1033
|
+
post?: never;
|
|
1034
|
+
delete?: never;
|
|
1035
|
+
options?: never;
|
|
1036
|
+
head?: never;
|
|
1037
|
+
patch?: never;
|
|
1038
|
+
trace?: never;
|
|
1039
|
+
};
|
|
973
1040
|
}
|
|
974
1041
|
export type webhooks = Record<string, never>;
|
|
975
1042
|
export interface components {
|
|
@@ -999,6 +1066,18 @@ export interface components {
|
|
|
999
1066
|
RefreshTokenDto: {
|
|
1000
1067
|
refresh_token: string;
|
|
1001
1068
|
};
|
|
1069
|
+
SignInByTypeDto: {
|
|
1070
|
+
login: string;
|
|
1071
|
+
/** @enum {string} */
|
|
1072
|
+
type: "email" | "phone";
|
|
1073
|
+
};
|
|
1074
|
+
SignUpByTypeDto: {
|
|
1075
|
+
invite_code?: string;
|
|
1076
|
+
referrer?: string;
|
|
1077
|
+
/** @enum {string} */
|
|
1078
|
+
type: "email" | "phone";
|
|
1079
|
+
login: string;
|
|
1080
|
+
};
|
|
1002
1081
|
TelegramSignUpByPhoneDto: {
|
|
1003
1082
|
phone: string;
|
|
1004
1083
|
tg_id: string;
|
|
@@ -1810,6 +1889,7 @@ export interface components {
|
|
|
1810
1889
|
/** @enum {string} */
|
|
1811
1890
|
action: "verification";
|
|
1812
1891
|
type: string;
|
|
1892
|
+
full_name: string | null;
|
|
1813
1893
|
url: string;
|
|
1814
1894
|
};
|
|
1815
1895
|
WalletKycRailTermsAndConditionsDto: {
|
|
@@ -2086,6 +2166,10 @@ export interface components {
|
|
|
2086
2166
|
/** @example inq_E6U4KitBucNKpfrDMb997AaTkQTt */
|
|
2087
2167
|
inquiryId: string | null;
|
|
2088
2168
|
};
|
|
2169
|
+
ResumeInquiryResponseDto: {
|
|
2170
|
+
inquiryId: string;
|
|
2171
|
+
sessionId: string;
|
|
2172
|
+
};
|
|
2089
2173
|
IntegrationPersonaTemplateEntityDto: Record<string, never>;
|
|
2090
2174
|
FindAllIntegrationPersonaTemplatesResponseDto: {
|
|
2091
2175
|
/** @example 20 */
|
|
@@ -2099,6 +2183,71 @@ export interface components {
|
|
|
2099
2183
|
/** @description Hifibridge ID to load data to wallet */
|
|
2100
2184
|
hifibridge_id: string;
|
|
2101
2185
|
};
|
|
2186
|
+
CityDto: {
|
|
2187
|
+
id: string;
|
|
2188
|
+
country_id: string;
|
|
2189
|
+
name: string;
|
|
2190
|
+
};
|
|
2191
|
+
BankDto: {
|
|
2192
|
+
id: string;
|
|
2193
|
+
country_id: string;
|
|
2194
|
+
code: string;
|
|
2195
|
+
name: string;
|
|
2196
|
+
};
|
|
2197
|
+
SwiftDto: {
|
|
2198
|
+
id: string;
|
|
2199
|
+
address: string;
|
|
2200
|
+
postcode: string;
|
|
2201
|
+
branch_name: string;
|
|
2202
|
+
branch_code: string;
|
|
2203
|
+
country: components["schemas"]["CountryDto"];
|
|
2204
|
+
city: components["schemas"]["CityDto"];
|
|
2205
|
+
bank: components["schemas"]["BankDto"];
|
|
2206
|
+
};
|
|
2207
|
+
IbanDataDto: {
|
|
2208
|
+
id: string;
|
|
2209
|
+
account_number: string;
|
|
2210
|
+
national_bank_code: string;
|
|
2211
|
+
national_branch_code: string;
|
|
2212
|
+
swift: components["schemas"]["SwiftDto"];
|
|
2213
|
+
country: components["schemas"]["CountryDto"];
|
|
2214
|
+
};
|
|
2215
|
+
WireDto: {
|
|
2216
|
+
telegraphic_name: string;
|
|
2217
|
+
is_funds_transfer_allowed: boolean;
|
|
2218
|
+
is_settlement_only: boolean;
|
|
2219
|
+
is_securities_transfer_allowed: boolean;
|
|
2220
|
+
change_date: Record<string, never> | null;
|
|
2221
|
+
bank: components["schemas"]["BankDto"];
|
|
2222
|
+
city: components["schemas"]["CityDto"];
|
|
2223
|
+
};
|
|
2224
|
+
AchDto: {
|
|
2225
|
+
new_id: Record<string, never> | null;
|
|
2226
|
+
servicing_frb_id: string;
|
|
2227
|
+
address: string;
|
|
2228
|
+
postcode: string;
|
|
2229
|
+
phone: string;
|
|
2230
|
+
record_type_code: number;
|
|
2231
|
+
is_main_office: boolean;
|
|
2232
|
+
change_date: Record<string, never> | null;
|
|
2233
|
+
bank: components["schemas"]["BankDto"];
|
|
2234
|
+
city: components["schemas"]["CityDto"];
|
|
2235
|
+
};
|
|
2236
|
+
RtnDataDto: {
|
|
2237
|
+
id: string;
|
|
2238
|
+
wire: components["schemas"]["WireDto"];
|
|
2239
|
+
ach: components["schemas"]["AchDto"];
|
|
2240
|
+
};
|
|
2241
|
+
SwiftDataDto: {
|
|
2242
|
+
id: string;
|
|
2243
|
+
address: string;
|
|
2244
|
+
postcode: string;
|
|
2245
|
+
branch_name: string;
|
|
2246
|
+
branch_code: string;
|
|
2247
|
+
country: components["schemas"]["CountryDto"];
|
|
2248
|
+
city: components["schemas"]["CityDto"];
|
|
2249
|
+
bank: components["schemas"]["BankDto"];
|
|
2250
|
+
};
|
|
2102
2251
|
};
|
|
2103
2252
|
responses: never;
|
|
2104
2253
|
parameters: never;
|
|
@@ -2209,6 +2358,57 @@ export interface operations {
|
|
|
2209
2358
|
};
|
|
2210
2359
|
};
|
|
2211
2360
|
};
|
|
2361
|
+
AuthController_signIn: {
|
|
2362
|
+
parameters: {
|
|
2363
|
+
query?: never;
|
|
2364
|
+
header?: never;
|
|
2365
|
+
path?: never;
|
|
2366
|
+
cookie?: never;
|
|
2367
|
+
};
|
|
2368
|
+
requestBody: {
|
|
2369
|
+
content: {
|
|
2370
|
+
"application/json": components["schemas"]["SignInByTypeDto"];
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
responses: {
|
|
2374
|
+
/** @description Invalid tenant */
|
|
2375
|
+
401: {
|
|
2376
|
+
headers: {
|
|
2377
|
+
[name: string]: unknown;
|
|
2378
|
+
};
|
|
2379
|
+
content?: never;
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
AuthController_signUp: {
|
|
2384
|
+
parameters: {
|
|
2385
|
+
query?: never;
|
|
2386
|
+
header?: never;
|
|
2387
|
+
path?: never;
|
|
2388
|
+
cookie?: never;
|
|
2389
|
+
};
|
|
2390
|
+
requestBody: {
|
|
2391
|
+
content: {
|
|
2392
|
+
"application/json": components["schemas"]["SignUpByTypeDto"];
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
responses: {
|
|
2396
|
+
/** @description Invite code is required */
|
|
2397
|
+
400: {
|
|
2398
|
+
headers: {
|
|
2399
|
+
[name: string]: unknown;
|
|
2400
|
+
};
|
|
2401
|
+
content?: never;
|
|
2402
|
+
};
|
|
2403
|
+
/** @description Invalid tenant */
|
|
2404
|
+
401: {
|
|
2405
|
+
headers: {
|
|
2406
|
+
[name: string]: unknown;
|
|
2407
|
+
};
|
|
2408
|
+
content?: never;
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2212
2412
|
AuthTelegramController_signUp: {
|
|
2213
2413
|
parameters: {
|
|
2214
2414
|
query?: never;
|
|
@@ -4450,6 +4650,49 @@ export interface operations {
|
|
|
4450
4650
|
};
|
|
4451
4651
|
};
|
|
4452
4652
|
};
|
|
4653
|
+
PersonaController_resumeInquiry: {
|
|
4654
|
+
parameters: {
|
|
4655
|
+
query?: never;
|
|
4656
|
+
header?: never;
|
|
4657
|
+
path: {
|
|
4658
|
+
wallet_id: string;
|
|
4659
|
+
inquiry_id: string;
|
|
4660
|
+
};
|
|
4661
|
+
cookie?: never;
|
|
4662
|
+
};
|
|
4663
|
+
requestBody?: never;
|
|
4664
|
+
responses: {
|
|
4665
|
+
200: {
|
|
4666
|
+
headers: {
|
|
4667
|
+
[name: string]: unknown;
|
|
4668
|
+
};
|
|
4669
|
+
content: {
|
|
4670
|
+
"application/json": components["schemas"]["ResumeInquiryResponseDto"];
|
|
4671
|
+
};
|
|
4672
|
+
};
|
|
4673
|
+
/** @description Unauthorized */
|
|
4674
|
+
401: {
|
|
4675
|
+
headers: {
|
|
4676
|
+
[name: string]: unknown;
|
|
4677
|
+
};
|
|
4678
|
+
content?: never;
|
|
4679
|
+
};
|
|
4680
|
+
/** @description You don`t have access to current wallet */
|
|
4681
|
+
403: {
|
|
4682
|
+
headers: {
|
|
4683
|
+
[name: string]: unknown;
|
|
4684
|
+
};
|
|
4685
|
+
content?: never;
|
|
4686
|
+
};
|
|
4687
|
+
/** @description Persona reference or Inquiry not found */
|
|
4688
|
+
404: {
|
|
4689
|
+
headers: {
|
|
4690
|
+
[name: string]: unknown;
|
|
4691
|
+
};
|
|
4692
|
+
content?: never;
|
|
4693
|
+
};
|
|
4694
|
+
};
|
|
4695
|
+
};
|
|
4453
4696
|
IntegrationPersonaTemplateController_findAll: {
|
|
4454
4697
|
parameters: {
|
|
4455
4698
|
query?: never;
|
|
@@ -4503,4 +4746,34 @@ export interface operations {
|
|
|
4503
4746
|
};
|
|
4504
4747
|
};
|
|
4505
4748
|
};
|
|
4749
|
+
BankDataController_getBankDataByAccountNumber: {
|
|
4750
|
+
parameters: {
|
|
4751
|
+
query: {
|
|
4752
|
+
/** @description Account number string must be a valid IBAN, RTN or SWIFT code */
|
|
4753
|
+
account_number: string;
|
|
4754
|
+
};
|
|
4755
|
+
header?: never;
|
|
4756
|
+
path?: never;
|
|
4757
|
+
cookie?: never;
|
|
4758
|
+
};
|
|
4759
|
+
requestBody?: never;
|
|
4760
|
+
responses: {
|
|
4761
|
+
/** @description Bank data */
|
|
4762
|
+
200: {
|
|
4763
|
+
headers: {
|
|
4764
|
+
[name: string]: unknown;
|
|
4765
|
+
};
|
|
4766
|
+
content: {
|
|
4767
|
+
"application/json": components["schemas"]["IbanDataDto"] | components["schemas"]["RtnDataDto"] | components["schemas"]["SwiftDataDto"];
|
|
4768
|
+
};
|
|
4769
|
+
};
|
|
4770
|
+
/** @description Unauthorized */
|
|
4771
|
+
401: {
|
|
4772
|
+
headers: {
|
|
4773
|
+
[name: string]: unknown;
|
|
4774
|
+
};
|
|
4775
|
+
content?: never;
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4778
|
+
};
|
|
4506
4779
|
}
|
package/src/api/types/types.ts
CHANGED
|
@@ -55,29 +55,39 @@ export namespace API {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export namespace SignIn {
|
|
58
|
-
export namespace
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
export namespace ByType {
|
|
59
|
+
export type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace Omni {
|
|
63
|
+
export namespace Email {
|
|
64
|
+
export namespace OTP {
|
|
65
|
+
export interface Request {
|
|
66
|
+
email: string;
|
|
67
|
+
invite_code?: string;
|
|
68
|
+
referrer?: string;
|
|
69
|
+
redirect_url?: string;
|
|
70
|
+
}
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
|
-
}
|
|
68
73
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
export namespace Phone {
|
|
75
|
+
export namespace OTP {
|
|
76
|
+
export interface Request {
|
|
77
|
+
phone: string;
|
|
78
|
+
invite_code?: string;
|
|
79
|
+
referrer?: string;
|
|
80
|
+
}
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
export namespace SignUp {
|
|
87
|
+
export namespace ByType {
|
|
88
|
+
export type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
export namespace Password {
|
|
82
92
|
export interface Request {
|
|
83
93
|
email: string;
|
|
@@ -2445,6 +2455,16 @@ export namespace API {
|
|
|
2445
2455
|
data?: string;
|
|
2446
2456
|
};
|
|
2447
2457
|
}
|
|
2458
|
+
|
|
2459
|
+
export namespace Status {
|
|
2460
|
+
export type Response = {
|
|
2461
|
+
success?: boolean;
|
|
2462
|
+
error?: boolean;
|
|
2463
|
+
message?: string;
|
|
2464
|
+
details?: string;
|
|
2465
|
+
has_active_totp?: boolean;
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2448
2468
|
}
|
|
2449
2469
|
}
|
|
2450
2470
|
|