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
@@ -1,20 +1,20 @@
1
- import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
2
- import { WalletType } from '../..';
3
- import { components, operations } from './autogen/apiV2.types';
1
+ import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from "../../constants";
2
+ import { WalletType } from "../..";
3
+ import { components, operations } from "./autogen/apiV2.types";
4
4
  export declare namespace API {
5
5
  namespace Auth {
6
6
  namespace RefreshToken {
7
- type Request = operations['AuthController_refreshToken']['requestBody']['content']['application/json'];
8
- type Response = operations['AuthController_refreshToken']['responses']['200']['content']['application/json'];
7
+ type Request = operations["AuthController_refreshToken"]["requestBody"]["content"]["application/json"];
8
+ type Response = operations["AuthController_refreshToken"]["responses"]["200"]["content"]["application/json"];
9
9
  }
10
10
  namespace Telegram {
11
11
  namespace Signin {
12
- type Request = operations['AuthTelegramController_signIn']['requestBody']['content']['application/json'];
13
- type Response = operations['AuthTelegramController_signIn']['responses']['200']['content']['application/json'];
12
+ type Request = operations["AuthTelegramController_signIn"]["requestBody"]["content"]["application/json"];
13
+ type Response = operations["AuthTelegramController_signIn"]["responses"]["200"]["content"]["application/json"];
14
14
  }
15
15
  namespace Signup {
16
- type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
17
- type Response = operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
16
+ type Request = operations["AuthTelegramController_signUp"]["requestBody"]["content"]["application/json"];
17
+ type Response = operations["AuthTelegramController_signUp"]["responses"]["200"]["content"]["application/json"];
18
18
  }
19
19
  }
20
20
  interface Tokens {
@@ -30,7 +30,7 @@ export declare namespace API {
30
30
  }
31
31
  namespace SignIn {
32
32
  namespace ByType {
33
- type Request = operations['AuthController_signIn']['requestBody']['content']['application/json'];
33
+ type Request = operations["AuthController_signIn"]["requestBody"]["content"]["application/json"];
34
34
  }
35
35
  namespace Omni {
36
36
  namespace Email {
@@ -56,7 +56,7 @@ export declare namespace API {
56
56
  }
57
57
  namespace SignUp {
58
58
  namespace ByType {
59
- type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
59
+ type Request = operations["AuthController_signUp"]["requestBody"]["content"]["application/json"];
60
60
  }
61
61
  namespace Password {
62
62
  interface Request {
@@ -77,8 +77,8 @@ export declare namespace API {
77
77
  }
78
78
  namespace BankData {
79
79
  namespace GetBankDataByAccountNumber {
80
- type Request = operations['BankDataController_getBankDataByAccountNumber']['parameters']['query'];
81
- type Response = operations['BankDataController_getBankDataByAccountNumber']['responses']['200']['content']['application/json'];
80
+ type Request = operations["BankDataController_getBankDataByAccountNumber"]["parameters"]["query"];
81
+ type Response = operations["BankDataController_getBankDataByAccountNumber"]["responses"]["200"]["content"]["application/json"];
82
82
  }
83
83
  }
84
84
  namespace Cards {
@@ -226,14 +226,14 @@ export declare namespace API {
226
226
  }
227
227
  namespace CardsList {
228
228
  namespace Request {
229
- type CardsListSortingFields = Partial<Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>>;
229
+ type CardsListSortingFields = Partial<Pick<IssuingCardListItem, "created_at" | "card_status" | "last4" | "nick_name" | "name_on_card" | "card_id">>;
230
230
  type CardsListFilteringFields = Partial<IssuingCardListItem>;
231
231
  type CardsListRequestCommonParams = API.Common.Pagination.Request & API.Common.Sorting.Request<CardsListSortingFields> & API.Common.Filtering.Request<CardsListFilteringFields>;
232
232
  interface ByWalletUuid extends CardsListRequestCommonParams {
233
233
  wallet_uuid: string;
234
234
  }
235
235
  interface BySubaccountAndWalletUuid extends ByWalletUuid {
236
- filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
236
+ filter?: Record<"fiat_account", Record<"type", SubAccountType>>;
237
237
  }
238
238
  type BySubAccountAndWalletId = ByWalletUuid & {
239
239
  fiat_account_id: string;
@@ -419,7 +419,7 @@ export declare namespace API {
419
419
  offset?: number;
420
420
  search?: string;
421
421
  type?: CounterpartyDestinationType | string;
422
- sort_by?: 'created_at' | 'nickname' | 'type';
422
+ sort_by?: "created_at" | "nickname" | "type";
423
423
  sort_order?: SortingDirection;
424
424
  filter?: {
425
425
  type?: CounterpartyDestinationType;
@@ -434,13 +434,15 @@ export declare namespace API {
434
434
  }
435
435
  namespace Detail {
436
436
  type DestinationDetailItemCommonFields = API.Counterparties.Destination.List.DestinationListItemCommonFields;
437
- interface DestinationDetailItemExternalBankingData extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
438
- address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
437
+ interface DestinationDetailItemExternalBankingData extends API.Counterparties.Destination.List
438
+ .DestinationListItemExternalBankingData {
439
+ address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData["address"] & {
439
440
  country?: API.Location.Countries.Country;
440
441
  state?: API.Location.States.State;
441
442
  };
442
443
  }
443
- interface DestinationDetailItemExternalCryptoData extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
444
+ interface DestinationDetailItemExternalCryptoData extends API.Counterparties.Destination.List
445
+ .DestinationListItemExternalCryptoData {
444
446
  currency: API.Currencies.Currency;
445
447
  }
446
448
  interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
@@ -475,7 +477,7 @@ export declare namespace API {
475
477
  type: CounterpartyDestinationType;
476
478
  nickname: string;
477
479
  external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
478
- external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
480
+ external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, "currency_id" | "address" | "memo">;
479
481
  }
480
482
  type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
481
483
  }
@@ -508,7 +510,7 @@ export declare namespace API {
508
510
  wallet_id: string;
509
511
  offset?: number;
510
512
  limit?: number;
511
- sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
513
+ sort_by?: "created_at" | "nickname" | "type" | "email" | "phone";
512
514
  sort_order?: SortingDirection;
513
515
  filter?: {
514
516
  type?: CounterpartyDestinationType;
@@ -523,13 +525,13 @@ export declare namespace API {
523
525
  };
524
526
  }
525
527
  namespace Create {
526
- type Request = Omit<Counterparty, 'id' | 'created_at'> & {
528
+ type Request = Omit<Counterparty, "id" | "created_at"> & {
527
529
  wallet_id: string;
528
530
  };
529
531
  type Response = Counterparty;
530
532
  }
531
533
  namespace Update {
532
- type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
534
+ type Request = Partial<Omit<Counterparty, "id" | "created_at">> & {
533
535
  wallet_id: string;
534
536
  counterparty_account_id: string;
535
537
  };
@@ -554,7 +556,7 @@ export declare namespace API {
554
556
  }
555
557
  export interface CryptoCurrency extends CommonCurrencyFields {
556
558
  is_crypto: true;
557
- meta: CommonCurrencyFields['meta'] & {
559
+ meta: CommonCurrencyFields["meta"] & {
558
560
  chain_id: number;
559
561
  contract: string;
560
562
  chain_name: string;
@@ -562,7 +564,7 @@ export declare namespace API {
562
564
  }
563
565
  export interface FiatCurrency extends CommonCurrencyFields {
564
566
  is_crypto: false;
565
- meta: CommonCurrencyFields['meta'] & {
567
+ meta: CommonCurrencyFields["meta"] & {
566
568
  code: string;
567
569
  iso_code: number;
568
570
  sign: string;
@@ -790,15 +792,15 @@ export declare namespace API {
790
792
  }
791
793
  }
792
794
  namespace Entity {
793
- type Entity = components['schemas']['KycEntityDto'];
795
+ type Entity = components["schemas"]["KycEntityDto"];
794
796
  namespace Get {
795
- type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
796
- type Response = operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
797
+ type Request = operations["KycEntitiesController_findOne"]["parameters"]["path"];
798
+ type Response = operations["KycEntitiesController_findOne"]["responses"]["200"]["content"]["application/json"];
797
799
  }
798
800
  }
799
801
  namespace Forms {
800
802
  namespace FormField {
801
- type FormFieldType = 'text' | 'email' | 'password' | 'radio' | 'select' | 'checkbox' | 'textarea' | 'number' | 'date' | 'switch' | 'file';
803
+ type FormFieldType = "text" | "email" | "password" | "radio" | "select" | "checkbox" | "textarea" | "number" | "date" | "switch" | "file";
802
804
  interface FormFieldValidation {
803
805
  pattern?: string;
804
806
  min?: number;
@@ -826,13 +828,13 @@ export declare namespace API {
826
828
  }
827
829
  }
828
830
  namespace FormGroup {
829
- type FormGroupFieldType = 'group' | 'field';
831
+ type FormGroupFieldType = "group" | "field";
830
832
  interface FormGroupFieldGroup {
831
- type: 'group';
833
+ type: "group";
832
834
  fields: API.KYC.Forms.FormGroup.FormGroup[];
833
835
  }
834
836
  interface FormGroupFieldField {
835
- type: 'field';
837
+ type: "field";
836
838
  field: API.KYC.Forms.FormField.FormField;
837
839
  }
838
840
  interface FormGroup {
@@ -844,33 +846,33 @@ export declare namespace API {
844
846
  }
845
847
  }
846
848
  namespace Rails {
847
- type RailStatus = components['schemas']['WalletKycRailDto']['status'];
848
- type WalletRail = components['schemas']['WalletKycRailDto'];
849
- type WalletRailExtraActions = components['schemas']['WalletKycRailExtraActionDto'];
850
- type WalletRailTermsAndConditions = components['schemas']['WalletKycRailTermsAndConditionsDto'];
849
+ type RailStatus = components["schemas"]["WalletKycRailDto"]["status"];
850
+ type WalletRail = components["schemas"]["WalletKycRailDto"];
851
+ type WalletRailExtraActions = components["schemas"]["WalletKycRailExtraActionDto"];
852
+ type WalletRailTermsAndConditions = components["schemas"]["WalletKycRailTermsAndConditionsDto"];
851
853
  namespace RailInfo {
852
- type RailInfo = components['schemas']['WalletKycRailTypeDto'];
854
+ type RailInfo = components["schemas"]["WalletKycRailTypeDto"];
853
855
  namespace SingleRail {
854
- type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
856
+ type Request = operations["WalletKycRailsController_findOne"]["parameters"]["path"];
855
857
  type Response = RailInfo;
856
858
  }
857
859
  namespace List {
858
860
  type Request = {
859
861
  wallet_id: string;
860
862
  };
861
- type Response = components['schemas']['GetWalletKycRailsResponseDto'];
863
+ type Response = components["schemas"]["GetWalletKycRailsResponseDto"];
862
864
  }
863
865
  }
864
866
  namespace Submit {
865
867
  namespace Single {
866
- type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
867
- type Response = components['schemas']['WalletKycRailTypeDto'];
868
+ type Request = operations["WalletKycRailsController_findOne"]["parameters"]["path"];
869
+ type Response = components["schemas"]["WalletKycRailTypeDto"];
868
870
  }
869
871
  }
870
872
  namespace Terms {
871
873
  namespace Confirm {
872
- type Request = operations['WalletKycRailsController_confirmTermsAndConditions']['parameters']['path'];
873
- type Response = components['schemas']['WalletKycRailTypeDto'];
874
+ type Request = operations["WalletKycRailsController_confirmTermsAndConditions"]["parameters"]["path"];
875
+ type Response = components["schemas"]["WalletKycRailTypeDto"];
874
876
  }
875
877
  }
876
878
  }
@@ -912,10 +914,10 @@ export declare namespace API {
912
914
  }
913
915
  }
914
916
  namespace States {
915
- type State = components['schemas']['StateDto'];
917
+ type State = components["schemas"]["StateDto"];
916
918
  namespace List {
917
- type Request = operations['SystemController_states']['parameters']['path'];
918
- type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
919
+ type Request = operations["SystemController_states"]["parameters"]["path"];
920
+ type Response = operations["SystemController_states"]["responses"]["200"]["content"]["application/json"];
919
921
  }
920
922
  }
921
923
  }
@@ -936,7 +938,7 @@ export declare namespace API {
936
938
  from_uuid: string;
937
939
  to_uuid: string;
938
940
  amount_from: number;
939
- order_type: 'EXCHANGE_CRYPTO_INTERNAL';
941
+ order_type: "EXCHANGE_CRYPTO_INTERNAL";
940
942
  status: OrderStatuses;
941
943
  amount_to: number;
942
944
  info: string;
@@ -967,7 +969,7 @@ export declare namespace API {
967
969
  from_uuid: string;
968
970
  to_uuid: string;
969
971
  amount_from: number;
970
- order_type: 'TRANSFER_CARD_PREPAID';
972
+ order_type: "TRANSFER_CARD_PREPAID";
971
973
  status: OrderStatuses;
972
974
  amount_to: number;
973
975
  info: string;
@@ -1001,7 +1003,7 @@ export declare namespace API {
1001
1003
  to_uuid: string;
1002
1004
  amount_from: number;
1003
1005
  amount_to: number;
1004
- order_type: 'HIFI_WIRE_ONRAMP';
1006
+ order_type: "HIFI_WIRE_ONRAMP";
1005
1007
  status: OrderStatuses;
1006
1008
  created_at: string;
1007
1009
  info: string;
@@ -1034,7 +1036,7 @@ export declare namespace API {
1034
1036
  to_uuid: string;
1035
1037
  amount_from: number;
1036
1038
  amount_to: number;
1037
- order_type: 'HIFI_ACH_ONRAMP';
1039
+ order_type: "HIFI_ACH_ONRAMP";
1038
1040
  status: OrderStatuses;
1039
1041
  created_at: string;
1040
1042
  info: string;
@@ -1067,7 +1069,7 @@ export declare namespace API {
1067
1069
  to_uuid: string;
1068
1070
  amount_from: number;
1069
1071
  amount_to: number;
1070
- order_type: 'HIFI_SEPA_ONRAMP';
1072
+ order_type: "HIFI_SEPA_ONRAMP";
1071
1073
  status: OrderStatuses;
1072
1074
  created_at: string;
1073
1075
  info: string;
@@ -1100,7 +1102,7 @@ export declare namespace API {
1100
1102
  to_uuid: string;
1101
1103
  amount_from: number;
1102
1104
  amount_to: number;
1103
- order_type: 'HIFI_WIRE_OFFRAMP';
1105
+ order_type: "HIFI_WIRE_OFFRAMP";
1104
1106
  status: OrderStatuses;
1105
1107
  created_at: string;
1106
1108
  info: string;
@@ -1133,7 +1135,7 @@ export declare namespace API {
1133
1135
  to_uuid: string;
1134
1136
  amount_from: number;
1135
1137
  amount_to: number;
1136
- order_type: 'HIFI_ACH_OFFRAMP';
1138
+ order_type: "HIFI_ACH_OFFRAMP";
1137
1139
  status: OrderStatuses;
1138
1140
  created_at: string;
1139
1141
  info: string;
@@ -1186,7 +1188,7 @@ export declare namespace API {
1186
1188
  from_uuid: string;
1187
1189
  to_uuid: string;
1188
1190
  amount_from: number;
1189
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1191
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
1190
1192
  status: OrderStatuses;
1191
1193
  amount_to: number;
1192
1194
  info: string;
@@ -1310,7 +1312,7 @@ export declare namespace API {
1310
1312
  network_fee: number;
1311
1313
  transaction_fee: number;
1312
1314
  rate: number;
1313
- direction: 'c2f' | 'f2c' | 'c2c';
1315
+ direction: "c2f" | "f2c" | "c2c";
1314
1316
  }
1315
1317
  export {};
1316
1318
  }
@@ -1323,7 +1325,7 @@ export declare namespace API {
1323
1325
  id: string;
1324
1326
  transaction_type: string;
1325
1327
  description: string | null;
1326
- direction: 'deposit' | 'withdrawal';
1328
+ direction: "deposit" | "withdrawal";
1327
1329
  is_internal: boolean;
1328
1330
  order_types_kyc_rails: OrderTypeKycRail[];
1329
1331
  payment_method: OrderType | string;
@@ -1379,7 +1381,7 @@ export declare namespace API {
1379
1381
  network_fee: number;
1380
1382
  transaction_fee: number;
1381
1383
  rate: number;
1382
- direction: 'c2f' | 'f2c' | 'c2c';
1384
+ direction: "c2f" | "f2c" | "c2c";
1383
1385
  }
1384
1386
  export {};
1385
1387
  }
@@ -1416,7 +1418,7 @@ export declare namespace API {
1416
1418
  to_uuid: string;
1417
1419
  amount_from: number;
1418
1420
  amount_to: number;
1419
- order_type: 'HIFI_WIRE_ONRAMP';
1421
+ order_type: "HIFI_WIRE_ONRAMP";
1420
1422
  status: OrderStatuses;
1421
1423
  created_at: string;
1422
1424
  info: string;
@@ -1452,7 +1454,7 @@ export declare namespace API {
1452
1454
  to_uuid: string;
1453
1455
  amount_from: number;
1454
1456
  amount_to: number;
1455
- order_type: 'HIFI_ACH_ONRAMP';
1457
+ order_type: "HIFI_ACH_ONRAMP";
1456
1458
  status: OrderStatuses;
1457
1459
  created_at: string;
1458
1460
  info: string;
@@ -1488,7 +1490,7 @@ export declare namespace API {
1488
1490
  to_uuid: string;
1489
1491
  amount_from: number;
1490
1492
  amount_to: number;
1491
- order_type: 'HIFI_SEPA_ONRAMP';
1493
+ order_type: "HIFI_SEPA_ONRAMP";
1492
1494
  status: OrderStatuses;
1493
1495
  created_at: string;
1494
1496
  info: string;
@@ -1526,7 +1528,7 @@ export declare namespace API {
1526
1528
  to_uuid: string;
1527
1529
  amount_from: number;
1528
1530
  amount_to: number;
1529
- order_type: 'HIFI_WIRE_OFFRAMP';
1531
+ order_type: "HIFI_WIRE_OFFRAMP";
1530
1532
  status: OrderStatuses;
1531
1533
  created_at: string;
1532
1534
  info: string;
@@ -1564,7 +1566,7 @@ export declare namespace API {
1564
1566
  to_uuid: string;
1565
1567
  amount_from: number;
1566
1568
  amount_to: number;
1567
- order_type: 'HIFI_ACH_OFFRAMP';
1569
+ order_type: "HIFI_ACH_OFFRAMP";
1568
1570
  status: OrderStatuses;
1569
1571
  created_at: string;
1570
1572
  info: string;
@@ -1602,7 +1604,7 @@ export declare namespace API {
1602
1604
  to_uuid: string;
1603
1605
  amount_from: number;
1604
1606
  amount_to: number;
1605
- order_type: 'HIFI_SEPA_OFFRAMP';
1607
+ order_type: "HIFI_SEPA_OFFRAMP";
1606
1608
  status: OrderStatuses;
1607
1609
  created_at: string;
1608
1610
  info: string;
@@ -1638,7 +1640,7 @@ export declare namespace API {
1638
1640
  to_uuid: string;
1639
1641
  amount_from: number;
1640
1642
  amount_to: number;
1641
- order_type: 'HIFI_SEPA_OFFRAMP';
1643
+ order_type: "HIFI_SEPA_OFFRAMP";
1642
1644
  status: OrderStatuses;
1643
1645
  created_at: string;
1644
1646
  info: string;
@@ -1675,7 +1677,7 @@ export declare namespace API {
1675
1677
  from_uuid: string;
1676
1678
  to_uuid: string;
1677
1679
  amount_from: number;
1678
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1680
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
1679
1681
  status: OrderStatuses;
1680
1682
  amount_to: number;
1681
1683
  info: string;
@@ -1714,7 +1716,7 @@ export declare namespace API {
1714
1716
  from_uuid: string;
1715
1717
  to_uuid: string;
1716
1718
  amount_from: number;
1717
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1719
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
1718
1720
  status: OrderStatuses;
1719
1721
  amount_to: number;
1720
1722
  info: string;
@@ -1753,7 +1755,7 @@ export declare namespace API {
1753
1755
  from_uuid: string;
1754
1756
  to_uuid: string;
1755
1757
  amount_from: number;
1756
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1758
+ order_type: "OMNIBUS_CRYPTO_WITHDRAWAL";
1757
1759
  status: OrderStatuses;
1758
1760
  amount_to: number;
1759
1761
  info: string;
@@ -1791,7 +1793,7 @@ export declare namespace API {
1791
1793
  to_uuid: string;
1792
1794
  amount_from: number;
1793
1795
  amount_to: number;
1794
- order_type: 'RN_CARDS_OFFRAMP';
1796
+ order_type: "RN_CARDS_OFFRAMP";
1795
1797
  status: OrderStatuses;
1796
1798
  created_at: string;
1797
1799
  info: string;
@@ -1818,7 +1820,7 @@ export declare namespace API {
1818
1820
  id: string;
1819
1821
  transaction_type: string;
1820
1822
  description: string | null;
1821
- direction: 'deposit' | 'withdrawal';
1823
+ direction: "deposit" | "withdrawal";
1822
1824
  is_internal: boolean;
1823
1825
  kyc_rails_id: string | null;
1824
1826
  payment_method: OrderType | string;
@@ -1831,21 +1833,21 @@ export declare namespace API {
1831
1833
  }
1832
1834
  namespace Persona {
1833
1835
  namespace Inquiries {
1834
- type InquiryType = operations['PersonaController_initInquiry']['parameters']['path']['type'];
1836
+ type InquiryType = operations["PersonaController_initInquiry"]["parameters"]["path"]["type"];
1835
1837
  namespace Init {
1836
- type Request = operations['PersonaController_initInquiry']['parameters']['path'];
1837
- type Response = operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
1838
+ type Request = operations["PersonaController_initInquiry"]["parameters"]["path"];
1839
+ type Response = operations["PersonaController_initInquiry"]["responses"]["200"]["content"]["application/json"];
1838
1840
  }
1839
1841
  namespace Resume {
1840
- type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
1841
- type Response = operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
1842
+ type Request = operations["PersonaController_resumeInquiry"]["parameters"]["path"];
1843
+ type Response = operations["PersonaController_resumeInquiry"]["responses"]["200"]["content"]["application/json"];
1842
1844
  }
1843
1845
  }
1844
1846
  }
1845
1847
  namespace TOTP {
1846
1848
  namespace OTPVerification {
1847
- type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
1848
- type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
1849
+ type OTPVerificationChannelType = "EMAIL" | "SMS" | "TOTP" | "APP" | "TG_TEST";
1850
+ type OTPVerificationStatus = "PENDING" | "APPROVED" | "DENIED";
1849
1851
  type OTPVerificationChannelInfo = {
1850
1852
  channel: OTPVerificationChannelType;
1851
1853
  validity: number;
@@ -1993,13 +1995,13 @@ export declare namespace API {
1993
1995
  wallet_id: string;
1994
1996
  va_programs_id: string;
1995
1997
  }
1996
- type Response = API.VirtualAccounts.VirtualAccount.VirtualAccount;
1998
+ type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
1997
1999
  }
1998
2000
  namespace GetByUuid {
1999
2001
  interface Request {
2000
2002
  uuid: string;
2001
2003
  }
2002
- type Response = API.VirtualAccounts.VirtualAccount.VirtualAccount;
2004
+ type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
2003
2005
  }
2004
2006
  namespace GetAll {
2005
2007
  interface Request {
@@ -2010,7 +2012,7 @@ export declare namespace API {
2010
2012
  type Response = {
2011
2013
  count: number;
2012
2014
  has_more: boolean;
2013
- data: API.VirtualAccounts.VirtualAccount.VirtualAccount[];
2015
+ data: API.VirtualAccounts.VirtualAccount.VirtualAccountListItem[];
2014
2016
  };
2015
2017
  }
2016
2018
  namespace VirtualAccount {
@@ -2081,7 +2083,7 @@ export declare namespace API {
2081
2083
  interface OrderType {
2082
2084
  order_type_id: string;
2083
2085
  }
2084
- interface VirtualAccount {
2086
+ interface VirtualAccountListItem {
2085
2087
  id: string;
2086
2088
  created_at: string;
2087
2089
  wallet_id: string;
@@ -2096,6 +2098,31 @@ export declare namespace API {
2096
2098
  account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
2097
2099
  virtual_accounts_program: API.VirtualAccounts.Programs.Program;
2098
2100
  }
2101
+ interface VirtualAccountDetailItem {
2102
+ account_currency: string;
2103
+ account_currency_details: API.Currencies.Currency;
2104
+ account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
2105
+ balance: number;
2106
+ crypto_deposit_details: {
2107
+ currency_id: string;
2108
+ deposit_address: string;
2109
+ chain_id: number;
2110
+ }[];
2111
+ created_at: string;
2112
+ destination_address: string;
2113
+ destination_currency: string;
2114
+ destination_currency_details: API.Currencies.Currency;
2115
+ id: string;
2116
+ integration_vendor_id: string;
2117
+ meta: API.VirtualAccounts.VirtualAccount.Meta.Meta;
2118
+ order_types: string[];
2119
+ status: string;
2120
+ total_balance: number;
2121
+ va_programs_id: string;
2122
+ vendor_account_id: string;
2123
+ virtual_accounts_program: API.VirtualAccounts.Programs.Program;
2124
+ wallet_id: string;
2125
+ }
2099
2126
  }
2100
2127
  namespace Programs {
2101
2128
  interface OrderType {
@@ -2154,38 +2181,38 @@ export declare namespace API {
2154
2181
  }
2155
2182
  }
2156
2183
  namespace User {
2157
- type User = components['schemas']['UserEntity'];
2184
+ type User = components["schemas"]["UserEntity"];
2158
2185
  namespace Get {
2159
- type Request = operations['UserController_getMe']['parameters']['query'];
2160
- type Response = operations['UserController_getMe']['responses']['200']['content']['application/json'];
2186
+ type Request = operations["UserController_getMe"]["parameters"]["query"];
2187
+ type Response = operations["UserController_getMe"]["responses"]["200"]["content"]["application/json"];
2161
2188
  }
2162
2189
  namespace UpdateUser {
2163
2190
  namespace Phone {
2164
2191
  namespace RequestOTP {
2165
- type Request = operations['AuthenticatedUserController_changePhone']['requestBody']['content']['application/json'];
2192
+ type Request = operations["AuthenticatedUserController_changePhone"]["requestBody"]["content"]["application/json"];
2166
2193
  }
2167
2194
  namespace Confirm {
2168
- type Request = operations['AuthenticatedUserController_changePhoneNumberConfirm']['requestBody']['content']['application/json'];
2195
+ type Request = operations["AuthenticatedUserController_changePhoneNumberConfirm"]["requestBody"]["content"]["application/json"];
2169
2196
  }
2170
2197
  }
2171
2198
  namespace Email {
2172
2199
  namespace RequestOTP {
2173
- type Request = operations['AuthenticatedUserController_changeEmail']['requestBody']['content']['application/json'];
2200
+ type Request = operations["AuthenticatedUserController_changeEmail"]["requestBody"]["content"]["application/json"];
2174
2201
  }
2175
2202
  namespace Confirm {
2176
- type Request = operations['AuthenticatedUserController_changeEmailConfirm']['requestBody']['content']['application/json'];
2203
+ type Request = operations["AuthenticatedUserController_changeEmailConfirm"]["requestBody"]["content"]["application/json"];
2177
2204
  }
2178
2205
  }
2179
2206
  }
2180
2207
  namespace UserData {
2181
- type UserData = components['schemas']['UserDataEntity'];
2208
+ type UserData = components["schemas"]["UserDataEntity"];
2182
2209
  namespace Get {
2183
- type Request = operations['UserController_getMyUserData']['parameters']['query'];
2184
- type Response = operations['UserController_getMyUserData']['responses']['200']['content']['application/json'];
2210
+ type Request = operations["UserController_getMyUserData"]["parameters"]["query"];
2211
+ type Response = operations["UserController_getMyUserData"]["responses"]["200"]["content"]["application/json"];
2185
2212
  }
2186
2213
  namespace Update {
2187
- type Request = operations['UserController_updateMyUserData']['requestBody']['content']['application/json'];
2188
- type Response = operations['UserController_updateMyUserData']['responses']['200']['content']['application/json'];
2214
+ type Request = operations["UserController_updateMyUserData"]["requestBody"]["content"]["application/json"];
2215
+ type Response = operations["UserController_updateMyUserData"]["responses"]["200"]["content"]["application/json"];
2189
2216
  }
2190
2217
  }
2191
2218
  }
@@ -2315,7 +2342,7 @@ export declare namespace API {
2315
2342
  wallet_uuid: string;
2316
2343
  limit: number;
2317
2344
  offset: number;
2318
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2345
+ filter?: Partial<components["schemas"]["TransactionsFilter"]>;
2319
2346
  };
2320
2347
  type Response = {
2321
2348
  total: number;
@@ -2324,7 +2351,7 @@ export declare namespace API {
2324
2351
  namespace ExportCsv {
2325
2352
  type Request = {
2326
2353
  wallet_uuid: string;
2327
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2354
+ filter?: Partial<components["schemas"]["TransactionsFilter"]>;
2328
2355
  };
2329
2356
  type Response = string;
2330
2357
  }
File without changes
File without changes
package/dist/api/types.js CHANGED
File without changes
File without changes
package/dist/api/user.js CHANGED
File without changes