squarefi-bff-api-module 1.26.9 → 1.26.11

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.
Files changed (81) hide show
  1. package/dist/api/auth.d.ts +0 -0
  2. package/dist/api/auth.js +0 -0
  3. package/dist/api/config.d.ts +0 -0
  4. package/dist/api/config.js +0 -0
  5. package/dist/api/counterparties.d.ts +0 -0
  6. package/dist/api/counterparties.js +0 -0
  7. package/dist/api/developer.d.ts +0 -0
  8. package/dist/api/developer.js +0 -0
  9. package/dist/api/exchange.d.ts +0 -0
  10. package/dist/api/exchange.js +0 -0
  11. package/dist/api/fetch_api.d.ts +0 -0
  12. package/dist/api/fetch_api.js +0 -0
  13. package/dist/api/fiat_accounts.d.ts +0 -0
  14. package/dist/api/fiat_accounts.js +0 -0
  15. package/dist/api/frontend.d.ts +0 -0
  16. package/dist/api/frontend.js +0 -0
  17. package/dist/api/index.d.ts +0 -0
  18. package/dist/api/index.js +0 -0
  19. package/dist/api/issuing.d.ts +0 -0
  20. package/dist/api/issuing.js +0 -0
  21. package/dist/api/kyc.d.ts +0 -0
  22. package/dist/api/kyc.js +0 -0
  23. package/dist/api/list.d.ts +0 -0
  24. package/dist/api/list.js +0 -0
  25. package/dist/api/location.d.ts +0 -0
  26. package/dist/api/location.js +0 -0
  27. package/dist/api/orders.d.ts +0 -0
  28. package/dist/api/orders.js +0 -0
  29. package/dist/api/persona.d.ts +0 -0
  30. package/dist/api/persona.js +0 -0
  31. package/dist/api/tenants.d.ts +0 -0
  32. package/dist/api/tenants.js +0 -0
  33. package/dist/api/totp.d.ts +0 -0
  34. package/dist/api/totp.js +0 -0
  35. package/dist/api/types/autogen/apiV2.types.d.ts +60 -0
  36. package/dist/api/types/autogen/apiV2.types.js +0 -0
  37. package/dist/api/types/types.d.ts +121 -94
  38. package/dist/api/types/types.js +0 -0
  39. package/dist/api/types.d.ts +0 -0
  40. package/dist/api/types.js +0 -0
  41. package/dist/api/user.d.ts +0 -0
  42. package/dist/api/user.js +0 -0
  43. package/dist/api/virtual-accounts.d.ts +2 -2
  44. package/dist/api/virtual-accounts.js +0 -0
  45. package/dist/api/wallets.d.ts +0 -0
  46. package/dist/api/wallets.js +0 -0
  47. package/dist/constants.d.ts +0 -0
  48. package/dist/constants.js +0 -0
  49. package/dist/hooks/index.d.ts +0 -0
  50. package/dist/hooks/index.js +0 -0
  51. package/dist/hooks/useCalc.d.ts +0 -0
  52. package/dist/hooks/useCalc.js +0 -0
  53. package/dist/hooks/useSupabaseSubscription/config.d.ts +0 -0
  54. package/dist/hooks/useSupabaseSubscription/config.js +0 -0
  55. package/dist/hooks/useSupabaseSubscription/index.d.ts +0 -0
  56. package/dist/hooks/useSupabaseSubscription/index.js +0 -0
  57. package/dist/hooks/useSupabaseSubscription/specialized.d.ts +0 -0
  58. package/dist/hooks/useSupabaseSubscription/specialized.js +0 -0
  59. package/dist/hooks/useSupabaseSubscription/types.d.ts +0 -0
  60. package/dist/hooks/useSupabaseSubscription/types.js +0 -0
  61. package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +0 -0
  62. package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +0 -0
  63. package/dist/index.d.ts +0 -0
  64. package/dist/index.js +0 -0
  65. package/dist/utils/apiClientFactory.d.ts +0 -0
  66. package/dist/utils/apiClientFactory.js +0 -0
  67. package/dist/utils/common.d.ts +0 -0
  68. package/dist/utils/common.js +0 -0
  69. package/dist/utils/converters.d.ts +0 -0
  70. package/dist/utils/converters.js +0 -0
  71. package/dist/utils/encrypt.d.ts +0 -0
  72. package/dist/utils/encrypt.js +0 -0
  73. package/dist/utils/storage.d.ts +0 -0
  74. package/dist/utils/storage.js +0 -0
  75. package/dist/utils/supabase.d.ts +0 -0
  76. package/dist/utils/supabase.js +0 -0
  77. package/dist/utils/tokensFactory.d.ts +0 -0
  78. package/dist/utils/tokensFactory.js +0 -0
  79. package/package.json +1 -1
  80. package/src/api/types/autogen/apiV2.types.ts +60 -0
  81. package/src/api/types/types.ts +211 -132
@@ -17,27 +17,30 @@ import {
17
17
  WalletTransactionRecordType,
18
18
  WalletTransactionStatus,
19
19
  WalletTransactionType,
20
- } from '../../constants';
21
- import { WalletType } from '../..';
22
- import { components, operations } from './autogen/apiV2.types';
20
+ } from "../../constants";
21
+ import { WalletType } from "../..";
22
+ import { components, operations } from "./autogen/apiV2.types";
23
23
 
24
24
  export namespace API {
25
25
  export namespace Auth {
26
26
  export namespace RefreshToken {
27
- export type Request = operations['AuthController_refreshToken']['requestBody']['content']['application/json'];
27
+ export type Request =
28
+ operations["AuthController_refreshToken"]["requestBody"]["content"]["application/json"];
28
29
  export type Response =
29
- operations['AuthController_refreshToken']['responses']['200']['content']['application/json'];
30
+ operations["AuthController_refreshToken"]["responses"]["200"]["content"]["application/json"];
30
31
  }
31
32
  export namespace Telegram {
32
33
  export namespace Signin {
33
- export type Request = operations['AuthTelegramController_signIn']['requestBody']['content']['application/json'];
34
+ export type Request =
35
+ operations["AuthTelegramController_signIn"]["requestBody"]["content"]["application/json"];
34
36
  export type Response =
35
- operations['AuthTelegramController_signIn']['responses']['200']['content']['application/json'];
37
+ operations["AuthTelegramController_signIn"]["responses"]["200"]["content"]["application/json"];
36
38
  }
37
39
  export namespace Signup {
38
- export type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
40
+ export type Request =
41
+ operations["AuthTelegramController_signUp"]["requestBody"]["content"]["application/json"];
39
42
  export type Response =
40
- operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
43
+ operations["AuthTelegramController_signUp"]["responses"]["200"]["content"]["application/json"];
41
44
  }
42
45
  }
43
46
 
@@ -56,7 +59,8 @@ export namespace API {
56
59
 
57
60
  export namespace SignIn {
58
61
  export namespace ByType {
59
- export type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
62
+ export type Request =
63
+ operations["AuthController_signIn"]["requestBody"]["content"]["application/json"];
60
64
  }
61
65
 
62
66
  export namespace Omni {
@@ -85,7 +89,8 @@ export namespace API {
85
89
 
86
90
  export namespace SignUp {
87
91
  export namespace ByType {
88
- export type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
92
+ export type Request =
93
+ operations["AuthController_signUp"]["requestBody"]["content"]["application/json"];
89
94
  }
90
95
 
91
96
  export namespace Password {
@@ -104,14 +109,19 @@ export namespace API {
104
109
  // }
105
110
 
106
111
  export namespace VerifyOtp {
107
- export type Response = { access_token: string; refresh_token: string; error?: string };
112
+ export type Response = {
113
+ access_token: string;
114
+ refresh_token: string;
115
+ error?: string;
116
+ };
108
117
  }
109
118
  }
110
119
  export namespace BankData {
111
120
  export namespace GetBankDataByAccountNumber {
112
- export type Request = operations['BankDataController_getBankDataByAccountNumber']['parameters']['query'];
121
+ export type Request =
122
+ operations["BankDataController_getBankDataByAccountNumber"]["parameters"]["query"];
113
123
  export type Response =
114
- operations['BankDataController_getBankDataByAccountNumber']['responses']['200']['content']['application/json'];
124
+ operations["BankDataController_getBankDataByAccountNumber"]["responses"]["200"]["content"]["application/json"];
115
125
  }
116
126
  }
117
127
 
@@ -267,20 +277,29 @@ export namespace API {
267
277
  export namespace CardsList {
268
278
  export namespace Request {
269
279
  export type CardsListSortingFields = Partial<
270
- Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>
280
+ Pick<
281
+ IssuingCardListItem,
282
+ | "created_at"
283
+ | "card_status"
284
+ | "last4"
285
+ | "nick_name"
286
+ | "name_on_card"
287
+ | "card_id"
288
+ >
271
289
  >;
272
290
  export type CardsListFilteringFields = Partial<IssuingCardListItem>;
273
291
 
274
- export type CardsListRequestCommonParams = API.Common.Pagination.Request &
275
- API.Common.Sorting.Request<CardsListSortingFields> &
276
- API.Common.Filtering.Request<CardsListFilteringFields>;
292
+ export type CardsListRequestCommonParams =
293
+ API.Common.Pagination.Request &
294
+ API.Common.Sorting.Request<CardsListSortingFields> &
295
+ API.Common.Filtering.Request<CardsListFilteringFields>;
277
296
 
278
297
  export interface ByWalletUuid extends CardsListRequestCommonParams {
279
298
  wallet_uuid: string;
280
299
  }
281
300
 
282
301
  export interface BySubaccountAndWalletUuid extends ByWalletUuid {
283
- filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
302
+ filter?: Record<"fiat_account", Record<"type", SubAccountType>>;
284
303
  }
285
304
 
286
305
  export type BySubAccountAndWalletId = ByWalletUuid & {
@@ -470,18 +489,22 @@ export namespace API {
470
489
  memo?: string;
471
490
  }
472
491
 
473
- export interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
492
+ export interface DestinationListItemWithExternalBankingData
493
+ extends DestinationListItemCommonFields {
474
494
  type:
475
- | CounterpartyDestinationType.DOMESTIC_WIRE
476
- | CounterpartyDestinationType.ACH
477
- | CounterpartyDestinationType.SWIFT
478
- | CounterpartyDestinationType.SEPA;
495
+ | CounterpartyDestinationType.DOMESTIC_WIRE
496
+ | CounterpartyDestinationType.ACH
497
+ | CounterpartyDestinationType.SWIFT
498
+ | CounterpartyDestinationType.SEPA;
479
499
  external_banking_data: DestinationListItemExternalBankingData;
480
500
  external_crypto_data?: never;
481
501
  }
482
502
 
483
- export interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
484
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
503
+ export interface DestinationListItemWithExternalCryptoData
504
+ extends DestinationListItemCommonFields {
505
+ type:
506
+ | CounterpartyDestinationType.CRYPTO_EXTERNAL
507
+ | CounterpartyDestinationType.CRYPTO_INTERNAL;
485
508
  external_banking_data?: never;
486
509
  external_crypto_data: DestinationListItemExternalCryptoData;
487
510
  }
@@ -497,7 +520,7 @@ export namespace API {
497
520
  offset?: number;
498
521
  search?: string;
499
522
  type?: CounterpartyDestinationType | string;
500
- sort_by?: 'created_at' | 'nickname' | 'type';
523
+ sort_by?: "created_at" | "nickname" | "type";
501
524
  sort_order?: SortingDirection;
502
525
  filter?: {
503
526
  type?: CounterpartyDestinationType;
@@ -517,30 +540,36 @@ export namespace API {
517
540
  API.Counterparties.Destination.List.DestinationListItemCommonFields;
518
541
 
519
542
  export interface DestinationDetailItemExternalBankingData
520
- extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
521
- address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
543
+ extends API.Counterparties.Destination.List
544
+ .DestinationListItemExternalBankingData {
545
+ address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData["address"] & {
522
546
  country?: API.Location.Countries.Country;
523
547
  state?: API.Location.States.State;
524
548
  };
525
549
  }
526
550
 
527
551
  export interface DestinationDetailItemExternalCryptoData
528
- extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
552
+ extends API.Counterparties.Destination.List
553
+ .DestinationListItemExternalCryptoData {
529
554
  currency: API.Currencies.Currency;
530
555
  }
531
556
 
532
- export interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
557
+ export interface DestinationDetailItemWithExternalBankingData
558
+ extends DestinationDetailItemCommonFields {
533
559
  type:
534
- | CounterpartyDestinationType.DOMESTIC_WIRE
535
- | CounterpartyDestinationType.ACH
536
- | CounterpartyDestinationType.SWIFT
537
- | CounterpartyDestinationType.SEPA;
560
+ | CounterpartyDestinationType.DOMESTIC_WIRE
561
+ | CounterpartyDestinationType.ACH
562
+ | CounterpartyDestinationType.SWIFT
563
+ | CounterpartyDestinationType.SEPA;
538
564
  external_banking_data: DestinationDetailItemExternalBankingData;
539
565
  external_crypto_data?: never;
540
566
  }
541
567
 
542
- export interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
543
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
568
+ export interface DestinationDetailItemWithExternalCryptoData
569
+ extends DestinationDetailItemCommonFields {
570
+ type:
571
+ | CounterpartyDestinationType.CRYPTO_EXTERNAL
572
+ | CounterpartyDestinationType.CRYPTO_INTERNAL;
544
573
  external_banking_data?: never;
545
574
  external_crypto_data: DestinationDetailItemExternalCryptoData;
546
575
  }
@@ -574,11 +603,12 @@ export namespace API {
574
603
 
575
604
  external_crypto_data?: Pick<
576
605
  API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData,
577
- 'currency_id' | 'address' | 'memo'
606
+ "currency_id" | "address" | "memo"
578
607
  >;
579
608
  }
580
609
 
581
- export type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
610
+ export type Response =
611
+ API.Counterparties.Destination.Detail.DestinationDetailItem;
582
612
  }
583
613
 
584
614
  export namespace Delete {
@@ -597,7 +627,8 @@ export namespace API {
597
627
  nickname: string;
598
628
  }
599
629
 
600
- export type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
630
+ export type Response =
631
+ API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
601
632
  }
602
633
  }
603
634
 
@@ -615,7 +646,7 @@ export namespace API {
615
646
  wallet_id: string;
616
647
  offset?: number;
617
648
  limit?: number;
618
- sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
649
+ sort_by?: "created_at" | "nickname" | "type" | "email" | "phone";
619
650
  sort_order?: SortingDirection;
620
651
  filter?: {
621
652
  type?: CounterpartyDestinationType;
@@ -632,7 +663,7 @@ export namespace API {
632
663
  }
633
664
 
634
665
  export namespace Create {
635
- export type Request = Omit<Counterparty, 'id' | 'created_at'> & {
666
+ export type Request = Omit<Counterparty, "id" | "created_at"> & {
636
667
  wallet_id: string;
637
668
  };
638
669
 
@@ -640,7 +671,7 @@ export namespace API {
640
671
  }
641
672
 
642
673
  export namespace Update {
643
- export type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
674
+ export type Request = Partial<Omit<Counterparty, "id" | "created_at">> & {
644
675
  wallet_id: string;
645
676
  counterparty_account_id: string;
646
677
  };
@@ -667,7 +698,7 @@ export namespace API {
667
698
  }
668
699
  export interface CryptoCurrency extends CommonCurrencyFields {
669
700
  is_crypto: true;
670
- meta: CommonCurrencyFields['meta'] & {
701
+ meta: CommonCurrencyFields["meta"] & {
671
702
  chain_id: number;
672
703
  contract: string;
673
704
  chain_name: string;
@@ -675,7 +706,7 @@ export namespace API {
675
706
  }
676
707
  export interface FiatCurrency extends CommonCurrencyFields {
677
708
  is_crypto: false;
678
- meta: CommonCurrencyFields['meta'] & {
709
+ meta: CommonCurrencyFields["meta"] & {
679
710
  code: string;
680
711
  iso_code: number;
681
712
  sign: string;
@@ -1090,27 +1121,28 @@ export namespace API {
1090
1121
  }
1091
1122
 
1092
1123
  export namespace Entity {
1093
- export type Entity = components['schemas']['KycEntityDto'];
1124
+ export type Entity = components["schemas"]["KycEntityDto"];
1094
1125
  export namespace Get {
1095
- export type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
1126
+ export type Request =
1127
+ operations["KycEntitiesController_findOne"]["parameters"]["path"];
1096
1128
  export type Response =
1097
- operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
1129
+ operations["KycEntitiesController_findOne"]["responses"]["200"]["content"]["application/json"];
1098
1130
  }
1099
1131
  }
1100
1132
  export namespace Forms {
1101
1133
  export namespace FormField {
1102
1134
  export type FormFieldType =
1103
- | 'text'
1104
- | 'email'
1105
- | 'password'
1106
- | 'radio'
1107
- | 'select'
1108
- | 'checkbox'
1109
- | 'textarea'
1110
- | 'number'
1111
- | 'date'
1112
- | 'switch'
1113
- | 'file';
1135
+ | "text"
1136
+ | "email"
1137
+ | "password"
1138
+ | "radio"
1139
+ | "select"
1140
+ | "checkbox"
1141
+ | "textarea"
1142
+ | "number"
1143
+ | "date"
1144
+ | "switch"
1145
+ | "file";
1114
1146
 
1115
1147
  export interface FormFieldValidation {
1116
1148
  pattern?: string;
@@ -1141,13 +1173,13 @@ export namespace API {
1141
1173
  }
1142
1174
 
1143
1175
  export namespace FormGroup {
1144
- export type FormGroupFieldType = 'group' | 'field';
1176
+ export type FormGroupFieldType = "group" | "field";
1145
1177
  export interface FormGroupFieldGroup {
1146
- type: 'group';
1178
+ type: "group";
1147
1179
  fields: API.KYC.Forms.FormGroup.FormGroup[];
1148
1180
  }
1149
1181
  export interface FormGroupFieldField {
1150
- type: 'field';
1182
+ type: "field";
1151
1183
  field: API.KYC.Forms.FormField.FormField;
1152
1184
  }
1153
1185
  export interface FormGroup {
@@ -1160,18 +1192,22 @@ export namespace API {
1160
1192
  }
1161
1193
 
1162
1194
  export namespace Rails {
1163
- export type RailStatus = components['schemas']['WalletKycRailDto']['status'];
1195
+ export type RailStatus =
1196
+ components["schemas"]["WalletKycRailDto"]["status"];
1164
1197
 
1165
- export type WalletRail = components['schemas']['WalletKycRailDto'];
1166
- export type WalletRailExtraActions = components['schemas']['WalletKycRailExtraActionDto'];
1198
+ export type WalletRail = components["schemas"]["WalletKycRailDto"];
1199
+ export type WalletRailExtraActions =
1200
+ components["schemas"]["WalletKycRailExtraActionDto"];
1167
1201
 
1168
- export type WalletRailTermsAndConditions = components['schemas']['WalletKycRailTermsAndConditionsDto'];
1202
+ export type WalletRailTermsAndConditions =
1203
+ components["schemas"]["WalletKycRailTermsAndConditionsDto"];
1169
1204
 
1170
1205
  export namespace RailInfo {
1171
- export type RailInfo = components['schemas']['WalletKycRailTypeDto'];
1206
+ export type RailInfo = components["schemas"]["WalletKycRailTypeDto"];
1172
1207
 
1173
1208
  export namespace SingleRail {
1174
- export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
1209
+ export type Request =
1210
+ operations["WalletKycRailsController_findOne"]["parameters"]["path"];
1175
1211
  export type Response = RailInfo;
1176
1212
  }
1177
1213
 
@@ -1179,21 +1215,24 @@ export namespace API {
1179
1215
  export type Request = {
1180
1216
  wallet_id: string;
1181
1217
  };
1182
- export type Response = components['schemas']['GetWalletKycRailsResponseDto'];
1218
+ export type Response =
1219
+ components["schemas"]["GetWalletKycRailsResponseDto"];
1183
1220
  }
1184
1221
  }
1185
1222
 
1186
1223
  export namespace Submit {
1187
1224
  export namespace Single {
1188
- export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
1189
- export type Response = components['schemas']['WalletKycRailTypeDto'];
1225
+ export type Request =
1226
+ operations["WalletKycRailsController_findOne"]["parameters"]["path"];
1227
+ export type Response = components["schemas"]["WalletKycRailTypeDto"];
1190
1228
  }
1191
1229
  }
1192
1230
 
1193
1231
  export namespace Terms {
1194
1232
  export namespace Confirm {
1195
- export type Request = operations['WalletKycRailsController_confirmTermsAndConditions']['parameters']['path'];
1196
- export type Response = components['schemas']['WalletKycRailTypeDto'];
1233
+ export type Request =
1234
+ operations["WalletKycRailsController_confirmTermsAndConditions"]["parameters"]["path"];
1235
+ export type Response = components["schemas"]["WalletKycRailTypeDto"];
1197
1236
  }
1198
1237
  }
1199
1238
  }
@@ -1237,10 +1276,12 @@ export namespace API {
1237
1276
  }
1238
1277
  }
1239
1278
  export namespace States {
1240
- export type State = components['schemas']['StateDto'];
1279
+ export type State = components["schemas"]["StateDto"];
1241
1280
  export namespace List {
1242
- export type Request = operations['SystemController_states']['parameters']['path'];
1243
- export type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
1281
+ export type Request =
1282
+ operations["SystemController_states"]["parameters"]["path"];
1283
+ export type Response =
1284
+ operations["SystemController_states"]["responses"]["200"]["content"]["application/json"];
1244
1285
  }
1245
1286
  }
1246
1287
  }
@@ -1262,7 +1303,7 @@ export namespace API {
1262
1303
  from_uuid: string;
1263
1304
  to_uuid: string;
1264
1305
  amount_from: number;
1265
- order_type: 'EXCHANGE_CRYPTO_INTERNAL';
1306
+ order_type: "EXCHANGE_CRYPTO_INTERNAL";
1266
1307
  status: OrderStatuses;
1267
1308
  amount_to: number;
1268
1309
  info: string;
@@ -1296,7 +1337,7 @@ export namespace API {
1296
1337
  from_uuid: string;
1297
1338
  to_uuid: string;
1298
1339
  amount_from: number;
1299
- order_type: 'TRANSFER_CARD_PREPAID';
1340
+ order_type: "TRANSFER_CARD_PREPAID";
1300
1341
  status: OrderStatuses;
1301
1342
  amount_to: number;
1302
1343
  info: string;
@@ -1332,7 +1373,7 @@ export namespace API {
1332
1373
  to_uuid: string;
1333
1374
  amount_from: number;
1334
1375
  amount_to: number;
1335
- order_type: 'HIFI_WIRE_ONRAMP';
1376
+ order_type: "HIFI_WIRE_ONRAMP";
1336
1377
  status: OrderStatuses;
1337
1378
  created_at: string;
1338
1379
  info: string;
@@ -1367,7 +1408,7 @@ export namespace API {
1367
1408
  to_uuid: string;
1368
1409
  amount_from: number;
1369
1410
  amount_to: number;
1370
- order_type: 'HIFI_ACH_ONRAMP';
1411
+ order_type: "HIFI_ACH_ONRAMP";
1371
1412
  status: OrderStatuses;
1372
1413
  created_at: string;
1373
1414
  info: string;
@@ -1402,7 +1443,7 @@ export namespace API {
1402
1443
  to_uuid: string;
1403
1444
  amount_from: number;
1404
1445
  amount_to: number;
1405
- order_type: 'HIFI_SEPA_ONRAMP';
1446
+ order_type: "HIFI_SEPA_ONRAMP";
1406
1447
  status: OrderStatuses;
1407
1448
  created_at: string;
1408
1449
  info: string;
@@ -1437,7 +1478,7 @@ export namespace API {
1437
1478
  to_uuid: string;
1438
1479
  amount_from: number;
1439
1480
  amount_to: number;
1440
- order_type: 'HIFI_WIRE_OFFRAMP';
1481
+ order_type: "HIFI_WIRE_OFFRAMP";
1441
1482
  status: OrderStatuses;
1442
1483
  created_at: string;
1443
1484
  info: string;
@@ -1472,7 +1513,7 @@ export namespace API {
1472
1513
  to_uuid: string;
1473
1514
  amount_from: number;
1474
1515
  amount_to: number;
1475
- order_type: 'HIFI_ACH_OFFRAMP';
1516
+ order_type: "HIFI_ACH_OFFRAMP";
1476
1517
  status: OrderStatuses;
1477
1518
  created_at: string;
1478
1519
  info: string;
@@ -1529,7 +1570,7 @@ export namespace API {
1529
1570
  from_uuid: string;
1530
1571
  to_uuid: string;
1531
1572
  amount_from: number;
1532
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1573
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
1533
1574
  status: OrderStatuses;
1534
1575
  amount_to: number;
1535
1576
  info: string;
@@ -1639,10 +1680,10 @@ export namespace API {
1639
1680
 
1640
1681
  export interface WithdrawCryptoRequest extends CommonRequestParams {
1641
1682
  order_type:
1642
- | OrderType.WITHDRAWAL_CRYPTO
1643
- | OrderType.TRANSFER_INTERNAL
1644
- | OrderType.OMNIBUS_CRYPTO_TRANSFER
1645
- | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1683
+ | OrderType.WITHDRAWAL_CRYPTO
1684
+ | OrderType.TRANSFER_INTERNAL
1685
+ | OrderType.OMNIBUS_CRYPTO_TRANSFER
1686
+ | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1646
1687
  to_address?: string;
1647
1688
  }
1648
1689
 
@@ -1666,7 +1707,7 @@ export namespace API {
1666
1707
  network_fee: number;
1667
1708
  transaction_fee: number;
1668
1709
  rate: number;
1669
- direction: 'c2f' | 'f2c' | 'c2c';
1710
+ direction: "c2f" | "f2c" | "c2c";
1670
1711
  }
1671
1712
  }
1672
1713
 
@@ -1679,7 +1720,7 @@ export namespace API {
1679
1720
  id: string;
1680
1721
  transaction_type: string;
1681
1722
  description: string | null;
1682
- direction: 'deposit' | 'withdrawal';
1723
+ direction: "deposit" | "withdrawal";
1683
1724
  is_internal: boolean;
1684
1725
  // kyc_rails_id: string | null; // deprecated use order_types_kyc_rails instead
1685
1726
  order_types_kyc_rails: OrderTypeKycRail[];
@@ -1803,10 +1844,10 @@ export namespace API {
1803
1844
 
1804
1845
  export interface WithdrawCryptoRequest extends CommonRequestParams {
1805
1846
  order_type:
1806
- | OrderType.WITHDRAWAL_CRYPTO
1807
- | OrderType.TRANSFER_INTERNAL
1808
- | OrderType.OMNIBUS_CRYPTO_TRANSFER
1809
- | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1847
+ | OrderType.WITHDRAWAL_CRYPTO
1848
+ | OrderType.TRANSFER_INTERNAL
1849
+ | OrderType.OMNIBUS_CRYPTO_TRANSFER
1850
+ | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1810
1851
  to_address?: string;
1811
1852
  }
1812
1853
 
@@ -1830,7 +1871,7 @@ export namespace API {
1830
1871
  network_fee: number;
1831
1872
  transaction_fee: number;
1832
1873
  rate: number;
1833
- direction: 'c2f' | 'f2c' | 'c2c';
1874
+ direction: "c2f" | "f2c" | "c2c";
1834
1875
  }
1835
1876
  }
1836
1877
 
@@ -1870,7 +1911,7 @@ export namespace API {
1870
1911
  to_uuid: string;
1871
1912
  amount_from: number;
1872
1913
  amount_to: number;
1873
- order_type: 'HIFI_WIRE_ONRAMP';
1914
+ order_type: "HIFI_WIRE_ONRAMP";
1874
1915
  status: OrderStatuses;
1875
1916
  created_at: string;
1876
1917
  info: string;
@@ -1909,7 +1950,7 @@ export namespace API {
1909
1950
  to_uuid: string;
1910
1951
  amount_from: number;
1911
1952
  amount_to: number;
1912
- order_type: 'HIFI_ACH_ONRAMP';
1953
+ order_type: "HIFI_ACH_ONRAMP";
1913
1954
  status: OrderStatuses;
1914
1955
  created_at: string;
1915
1956
  info: string;
@@ -1948,7 +1989,7 @@ export namespace API {
1948
1989
  to_uuid: string;
1949
1990
  amount_from: number;
1950
1991
  amount_to: number;
1951
- order_type: 'HIFI_SEPA_ONRAMP';
1992
+ order_type: "HIFI_SEPA_ONRAMP";
1952
1993
  status: OrderStatuses;
1953
1994
  created_at: string;
1954
1995
  info: string;
@@ -1988,7 +2029,7 @@ export namespace API {
1988
2029
  to_uuid: string;
1989
2030
  amount_from: number;
1990
2031
  amount_to: number;
1991
- order_type: 'HIFI_WIRE_OFFRAMP';
2032
+ order_type: "HIFI_WIRE_OFFRAMP";
1992
2033
  status: OrderStatuses;
1993
2034
  created_at: string;
1994
2035
  info: string;
@@ -2028,7 +2069,7 @@ export namespace API {
2028
2069
  to_uuid: string;
2029
2070
  amount_from: number;
2030
2071
  amount_to: number;
2031
- order_type: 'HIFI_ACH_OFFRAMP';
2072
+ order_type: "HIFI_ACH_OFFRAMP";
2032
2073
  status: OrderStatuses;
2033
2074
  created_at: string;
2034
2075
  info: string;
@@ -2068,7 +2109,7 @@ export namespace API {
2068
2109
  to_uuid: string;
2069
2110
  amount_from: number;
2070
2111
  amount_to: number;
2071
- order_type: 'HIFI_SEPA_OFFRAMP';
2112
+ order_type: "HIFI_SEPA_OFFRAMP";
2072
2113
  status: OrderStatuses;
2073
2114
  created_at: string;
2074
2115
  info: string;
@@ -2105,7 +2146,7 @@ export namespace API {
2105
2146
  to_uuid: string;
2106
2147
  amount_from: number;
2107
2148
  amount_to: number;
2108
- order_type: 'HIFI_SEPA_OFFRAMP';
2149
+ order_type: "HIFI_SEPA_OFFRAMP";
2109
2150
  status: OrderStatuses;
2110
2151
  created_at: string;
2111
2152
  info: string;
@@ -2144,7 +2185,7 @@ export namespace API {
2144
2185
  from_uuid: string;
2145
2186
  to_uuid: string;
2146
2187
  amount_from: number;
2147
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
2188
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
2148
2189
  status: OrderStatuses;
2149
2190
  amount_to: number;
2150
2191
  info: string;
@@ -2184,7 +2225,7 @@ export namespace API {
2184
2225
  from_uuid: string;
2185
2226
  to_uuid: string;
2186
2227
  amount_from: number;
2187
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
2228
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
2188
2229
  status: OrderStatuses;
2189
2230
  amount_to: number;
2190
2231
  info: string;
@@ -2224,7 +2265,7 @@ export namespace API {
2224
2265
  from_uuid: string;
2225
2266
  to_uuid: string;
2226
2267
  amount_from: number;
2227
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
2268
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
2228
2269
  status: OrderStatuses;
2229
2270
  amount_to: number;
2230
2271
  info: string;
@@ -2263,7 +2304,7 @@ export namespace API {
2263
2304
  to_uuid: string;
2264
2305
  amount_from: number;
2265
2306
  amount_to: number;
2266
- order_type: 'RN_CARDS_OFFRAMP';
2307
+ order_type: "RN_CARDS_OFFRAMP";
2267
2308
  status: OrderStatuses;
2268
2309
  created_at: string;
2269
2310
  info: string;
@@ -2291,7 +2332,7 @@ export namespace API {
2291
2332
  id: string;
2292
2333
  transaction_type: string;
2293
2334
  description: string | null;
2294
- direction: 'deposit' | 'withdrawal';
2335
+ direction: "deposit" | "withdrawal";
2295
2336
  is_internal: boolean;
2296
2337
  kyc_rails_id: string | null;
2297
2338
  payment_method: OrderType | string;
@@ -2306,24 +2347,32 @@ export namespace API {
2306
2347
 
2307
2348
  export namespace Persona {
2308
2349
  export namespace Inquiries {
2309
- export type InquiryType = operations['PersonaController_initInquiry']['parameters']['path']['type'];
2350
+ export type InquiryType =
2351
+ operations["PersonaController_initInquiry"]["parameters"]["path"]["type"];
2310
2352
  export namespace Init {
2311
- export type Request = operations['PersonaController_initInquiry']['parameters']['path'];
2353
+ export type Request =
2354
+ operations["PersonaController_initInquiry"]["parameters"]["path"];
2312
2355
  export type Response =
2313
- operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
2356
+ operations["PersonaController_initInquiry"]["responses"]["200"]["content"]["application/json"];
2314
2357
  }
2315
2358
  export namespace Resume {
2316
- export type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
2359
+ export type Request =
2360
+ operations["PersonaController_resumeInquiry"]["parameters"]["path"];
2317
2361
  export type Response =
2318
- operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
2362
+ operations["PersonaController_resumeInquiry"]["responses"]["200"]["content"]["application/json"];
2319
2363
  }
2320
2364
  }
2321
2365
  }
2322
2366
 
2323
2367
  export namespace TOTP {
2324
2368
  export namespace OTPVerification {
2325
- export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
2326
- export type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
2369
+ export type OTPVerificationChannelType =
2370
+ | "EMAIL"
2371
+ | "SMS"
2372
+ | "TOTP"
2373
+ | "APP"
2374
+ | "TG_TEST";
2375
+ export type OTPVerificationStatus = "PENDING" | "APPROVED" | "DENIED";
2327
2376
  export type OTPVerificationChannelInfo = {
2328
2377
  channel: OTPVerificationChannelType;
2329
2378
  validity: number;
@@ -2489,7 +2538,8 @@ export namespace API {
2489
2538
  va_programs_id: string;
2490
2539
  }
2491
2540
 
2492
- export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccount;
2541
+ export type Response =
2542
+ API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
2493
2543
  }
2494
2544
 
2495
2545
  export namespace GetByUuid {
@@ -2497,7 +2547,8 @@ export namespace API {
2497
2547
  uuid: string;
2498
2548
  }
2499
2549
 
2500
- export type Response = API.VirtualAccounts.VirtualAccount.VirtualAccount;
2550
+ export type Response =
2551
+ API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
2501
2552
  }
2502
2553
 
2503
2554
  export namespace GetAll {
@@ -2510,7 +2561,7 @@ export namespace API {
2510
2561
  export type Response = {
2511
2562
  count: number;
2512
2563
  has_more: boolean;
2513
- data: API.VirtualAccounts.VirtualAccount.VirtualAccount[];
2564
+ data: API.VirtualAccounts.VirtualAccount.VirtualAccountListItem[];
2514
2565
  };
2515
2566
  }
2516
2567
 
@@ -2591,7 +2642,7 @@ export namespace API {
2591
2642
  order_type_id: string;
2592
2643
  }
2593
2644
 
2594
- export interface VirtualAccount {
2645
+ export interface VirtualAccountListItem {
2595
2646
  id: string;
2596
2647
  created_at: string;
2597
2648
  wallet_id: string;
@@ -2606,6 +2657,31 @@ export namespace API {
2606
2657
  account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
2607
2658
  virtual_accounts_program: API.VirtualAccounts.Programs.Program;
2608
2659
  }
2660
+ export interface VirtualAccountDetailItem {
2661
+ account_currency: string;
2662
+ account_currency_details: API.Currencies.Currency;
2663
+ account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
2664
+ balance: number;
2665
+ crypto_deposit_details: {
2666
+ currency_id: string;
2667
+ deposit_address: string;
2668
+ chain_id: number;
2669
+ }[];
2670
+ created_at: string;
2671
+ destination_address: string;
2672
+ destination_currency: string;
2673
+ destination_currency_details: API.Currencies.Currency;
2674
+ id: string;
2675
+ integration_vendor_id: string;
2676
+ meta: API.VirtualAccounts.VirtualAccount.Meta.Meta;
2677
+ order_types: string[];
2678
+ status: string;
2679
+ total_balance: number;
2680
+ va_programs_id: string;
2681
+ vendor_account_id: string;
2682
+ virtual_accounts_program: API.VirtualAccounts.Programs.Program;
2683
+ wallet_id: string;
2684
+ }
2609
2685
  }
2610
2686
  export namespace Programs {
2611
2687
  export interface OrderType {
@@ -2669,53 +2745,56 @@ export namespace API {
2669
2745
  }
2670
2746
 
2671
2747
  export namespace User {
2672
- export type User = components['schemas']['UserEntity'];
2748
+ export type User = components["schemas"]["UserEntity"];
2673
2749
 
2674
2750
  export namespace Get {
2675
- export type Request = operations['UserController_getMe']['parameters']['query'];
2676
- export type Response = operations['UserController_getMe']['responses']['200']['content']['application/json'];
2751
+ export type Request =
2752
+ operations["UserController_getMe"]["parameters"]["query"];
2753
+ export type Response =
2754
+ operations["UserController_getMe"]["responses"]["200"]["content"]["application/json"];
2677
2755
  }
2678
2756
 
2679
2757
  export namespace UpdateUser {
2680
2758
  export namespace Phone {
2681
2759
  export namespace RequestOTP {
2682
2760
  export type Request =
2683
- operations['AuthenticatedUserController_changePhone']['requestBody']['content']['application/json'];
2761
+ operations["AuthenticatedUserController_changePhone"]["requestBody"]["content"]["application/json"];
2684
2762
  }
2685
2763
  export namespace Confirm {
2686
2764
  export type Request =
2687
- operations['AuthenticatedUserController_changePhoneNumberConfirm']['requestBody']['content']['application/json'];
2765
+ operations["AuthenticatedUserController_changePhoneNumberConfirm"]["requestBody"]["content"]["application/json"];
2688
2766
  }
2689
2767
  }
2690
2768
 
2691
2769
  export namespace Email {
2692
2770
  export namespace RequestOTP {
2693
2771
  export type Request =
2694
- operations['AuthenticatedUserController_changeEmail']['requestBody']['content']['application/json'];
2772
+ operations["AuthenticatedUserController_changeEmail"]["requestBody"]["content"]["application/json"];
2695
2773
  }
2696
2774
 
2697
2775
  export namespace Confirm {
2698
2776
  export type Request =
2699
- operations['AuthenticatedUserController_changeEmailConfirm']['requestBody']['content']['application/json'];
2777
+ operations["AuthenticatedUserController_changeEmailConfirm"]["requestBody"]["content"]["application/json"];
2700
2778
  }
2701
2779
  }
2702
2780
  }
2703
2781
 
2704
2782
  export namespace UserData {
2705
- export type UserData = components['schemas']['UserDataEntity'];
2783
+ export type UserData = components["schemas"]["UserDataEntity"];
2706
2784
 
2707
2785
  export namespace Get {
2708
- export type Request = operations['UserController_getMyUserData']['parameters']['query'];
2786
+ export type Request =
2787
+ operations["UserController_getMyUserData"]["parameters"]["query"];
2709
2788
  export type Response =
2710
- operations['UserController_getMyUserData']['responses']['200']['content']['application/json'];
2789
+ operations["UserController_getMyUserData"]["responses"]["200"]["content"]["application/json"];
2711
2790
  }
2712
2791
 
2713
2792
  export namespace Update {
2714
2793
  export type Request =
2715
- operations['UserController_updateMyUserData']['requestBody']['content']['application/json'];
2794
+ operations["UserController_updateMyUserData"]["requestBody"]["content"]["application/json"];
2716
2795
 
2717
2796
  export type Response =
2718
- operations['UserController_updateMyUserData']['responses']['200']['content']['application/json'];
2797
+ operations["UserController_updateMyUserData"]["responses"]["200"]["content"]["application/json"];
2719
2798
  }
2720
2799
  }
2721
2800
  }
@@ -2856,7 +2935,7 @@ export namespace API {
2856
2935
  wallet_uuid: string;
2857
2936
  limit: number;
2858
2937
  offset: number;
2859
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2938
+ filter?: Partial<components["schemas"]["TransactionsFilter"]>;
2860
2939
  };
2861
2940
  export type Response = {
2862
2941
  total: number;
@@ -2866,7 +2945,7 @@ export namespace API {
2866
2945
  export namespace ExportCsv {
2867
2946
  export type Request = {
2868
2947
  wallet_uuid: string;
2869
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2948
+ filter?: Partial<components["schemas"]["TransactionsFilter"]>;
2870
2949
  };
2871
2950
  export type Response = string;
2872
2951
  }