squarefi-bff-api-module 1.31.5 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/package.json +10 -3
  2. package/src/api/types/autogen/apiV2.types.ts +117 -2
  3. package/src/utils/apiClientFactory.ts +0 -1
  4. package/tsconfig.json +2 -2
  5. package/dist/api/auth.d.ts +0 -29
  6. package/dist/api/auth.js +0 -76
  7. package/dist/api/bank-data.d.ts +0 -4
  8. package/dist/api/bank-data.js +0 -9
  9. package/dist/api/counterparties.d.ts +0 -14
  10. package/dist/api/counterparties.js +0 -48
  11. package/dist/api/developer.d.ts +0 -12
  12. package/dist/api/developer.js +0 -15
  13. package/dist/api/exchange.d.ts +0 -14
  14. package/dist/api/exchange.js +0 -23
  15. package/dist/api/frontend.d.ts +0 -11
  16. package/dist/api/frontend.js +0 -14
  17. package/dist/api/index.d.ts +0 -38
  18. package/dist/api/index.js +0 -39
  19. package/dist/api/issuing.d.ts +0 -64
  20. package/dist/api/issuing.js +0 -157
  21. package/dist/api/kyc.d.ts +0 -21
  22. package/dist/api/kyc.js +0 -24
  23. package/dist/api/list.d.ts +0 -16
  24. package/dist/api/list.js +0 -19
  25. package/dist/api/orders.d.ts +0 -49
  26. package/dist/api/orders.js +0 -107
  27. package/dist/api/persona.d.ts +0 -7
  28. package/dist/api/persona.js +0 -10
  29. package/dist/api/storage.d.ts +0 -8
  30. package/dist/api/storage.js +0 -19
  31. package/dist/api/tenants.d.ts +0 -6
  32. package/dist/api/tenants.js +0 -9
  33. package/dist/api/totp.d.ts +0 -17
  34. package/dist/api/totp.js +0 -48
  35. package/dist/api/types/autogen/apiV2.types.d.ts +0 -4729
  36. package/dist/api/types/autogen/apiV2.types.js +0 -6
  37. package/dist/api/types/types.d.ts +0 -2258
  38. package/dist/api/types/types.js +0 -2
  39. package/dist/api/user.d.ts +0 -18
  40. package/dist/api/user.js +0 -21
  41. package/dist/api/virtual-accounts.d.ts +0 -9
  42. package/dist/api/virtual-accounts.js +0 -26
  43. package/dist/api/wallets.d.ts +0 -24
  44. package/dist/api/wallets.js +0 -56
  45. package/dist/constants.d.ts +0 -303
  46. package/dist/constants.js +0 -335
  47. package/dist/hooks/index.d.ts +0 -3
  48. package/dist/hooks/index.js +0 -19
  49. package/dist/hooks/useCalc.d.ts +0 -25
  50. package/dist/hooks/useCalc.js +0 -129
  51. package/dist/hooks/useFileUpload.d.ts +0 -49
  52. package/dist/hooks/useFileUpload.js +0 -113
  53. package/dist/hooks/useSupabaseSubscription/config.d.ts +0 -2
  54. package/dist/hooks/useSupabaseSubscription/config.js +0 -9
  55. package/dist/hooks/useSupabaseSubscription/index.d.ts +0 -3
  56. package/dist/hooks/useSupabaseSubscription/index.js +0 -7
  57. package/dist/hooks/useSupabaseSubscription/specialized.d.ts +0 -5
  58. package/dist/hooks/useSupabaseSubscription/specialized.js +0 -21
  59. package/dist/hooks/useSupabaseSubscription/types.d.ts +0 -16
  60. package/dist/hooks/useSupabaseSubscription/types.js +0 -2
  61. package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +0 -5
  62. package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +0 -36
  63. package/dist/hooks/useUserFiles.d.ts +0 -49
  64. package/dist/hooks/useUserFiles.js +0 -118
  65. package/dist/index.d.ts +0 -7
  66. package/dist/index.js +0 -26
  67. package/dist/utils/apiClientFactory.d.ts +0 -31
  68. package/dist/utils/apiClientFactory.js +0 -155
  69. package/dist/utils/converters.d.ts +0 -1
  70. package/dist/utils/converters.js +0 -5
  71. package/dist/utils/encrypt.d.ts +0 -10
  72. package/dist/utils/encrypt.js +0 -95
  73. package/dist/utils/fileStorage.d.ts +0 -113
  74. package/dist/utils/fileStorage.js +0 -344
  75. package/dist/utils/storage.d.ts +0 -3
  76. package/dist/utils/storage.js +0 -30
  77. package/dist/utils/supabase.d.ts +0 -1
  78. package/dist/utils/supabase.js +0 -15
  79. package/dist/utils/tokensFactory.d.ts +0 -12
  80. package/dist/utils/tokensFactory.js +0 -60
@@ -1,2258 +0,0 @@
1
- import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderPaymentMethod, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
2
- import { WalletType } from '../..';
3
- import { components, operations } from './autogen/apiV2.types';
4
- export declare namespace API {
5
- namespace Auth {
6
- namespace RefreshToken {
7
- type Request = operations['AuthController_refreshToken']['requestBody']['content']['application/json'];
8
- type Response = operations['AuthController_refreshToken']['responses']['200']['content']['application/json'];
9
- }
10
- namespace Telegram {
11
- namespace Signin {
12
- type Request = operations['AuthTelegramController_signIn']['requestBody']['content']['application/json'];
13
- type Response = operations['AuthTelegramController_signIn']['responses']['200']['content']['application/json'];
14
- }
15
- namespace Signup {
16
- type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
17
- type Response = operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
18
- }
19
- }
20
- interface Tokens {
21
- access_token: string;
22
- refresh_token: string;
23
- }
24
- namespace Update {
25
- namespace Phone {
26
- interface Request {
27
- phone: string;
28
- }
29
- }
30
- }
31
- namespace SignIn {
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
- }
44
- }
45
- }
46
- namespace Phone {
47
- namespace OTP {
48
- interface Request {
49
- phone: string;
50
- invite_code?: string;
51
- referrer?: string;
52
- }
53
- }
54
- }
55
- }
56
- }
57
- namespace SignUp {
58
- namespace ByType {
59
- type Request = operations['AuthController_signUp']['requestBody']['content']['application/json'];
60
- }
61
- namespace Password {
62
- interface Request {
63
- email: string;
64
- password: string;
65
- invite_code?: string;
66
- referrer?: string;
67
- }
68
- }
69
- }
70
- namespace VerifyOtp {
71
- type Response = {
72
- access_token: string;
73
- refresh_token: string;
74
- error?: string;
75
- };
76
- }
77
- }
78
- namespace BankData {
79
- namespace GetBankDataByAccountNumber {
80
- type Request = operations['BankDataController_getBankDataByCode']['parameters']['query'];
81
- type Response = operations['BankDataController_getBankDataByCode']['responses']['200']['content']['application/json'];
82
- }
83
- }
84
- namespace Cards {
85
- namespace Config {
86
- type IssuingProgramOrderType = {
87
- id: string;
88
- order_types_id: OrderType | string;
89
- issuing_programs_id: string;
90
- };
91
- interface Program {
92
- id: string;
93
- account_currency: string;
94
- brand: string;
95
- form_factor: CardFormFactor | string;
96
- consent_text: string | null;
97
- name: string;
98
- max_cards: number;
99
- realtime_auth: boolean;
100
- tokenizable: boolean;
101
- kyc_rails_id: string;
102
- integration_vendor_id: string;
103
- vendor_id: string;
104
- type: CardType | string;
105
- order_types: IssuingProgramOrderType[];
106
- sub_account_type: SubAccountType | string;
107
- description: string | null;
108
- icon: string | null;
109
- card_issuing_fee: number | null;
110
- card_monthly_fee: number | null;
111
- initial_topup: number | null;
112
- status?: IssuingProgramStatus | string;
113
- }
114
- }
115
- interface User {
116
- email: string;
117
- whitelabel: string;
118
- id: string;
119
- nickname: string;
120
- role: string;
121
- status: string;
122
- user_type: string;
123
- invite_accept: boolean;
124
- is_new_client: boolean;
125
- account: {
126
- first_name: string;
127
- middle_name: string;
128
- last_name: string;
129
- date_of_birth: string;
130
- phone: string;
131
- type: string;
132
- id: string;
133
- user_id: number;
134
- tg_account: string;
135
- company: {
136
- name: string;
137
- registration_number: string;
138
- phone: string;
139
- primary_contact_email: string;
140
- id: string;
141
- };
142
- };
143
- }
144
- namespace Limits {
145
- interface Limits {
146
- all_time_enabled: boolean;
147
- all_time_cap: number;
148
- all_time_spent: number;
149
- daily_enabled: boolean;
150
- daily_cap: number;
151
- daily_spent: number;
152
- weekly_enabled: boolean;
153
- weekly_cap: number;
154
- weekly_spent: number;
155
- monthly_enabled: boolean;
156
- monthly_cap: number;
157
- monthly_spent: number;
158
- yearly_enabled: boolean;
159
- yearly_cap: number;
160
- yearly_spent: number;
161
- per_transaction_enabled: boolean;
162
- per_transaction_cap: number;
163
- per_transaction_spent: number;
164
- }
165
- interface UpdateRequest {
166
- all_time_cap?: number;
167
- daily_cap?: number;
168
- weekly_cap?: number;
169
- monthly_cap?: number;
170
- yearly_cap?: number;
171
- per_transaction_cap?: number;
172
- }
173
- }
174
- interface IssuingCardListItem {
175
- brand: string;
176
- card_id: string;
177
- card_status: string;
178
- created_at: string;
179
- nick_name: string | null;
180
- wallet_id: string;
181
- program_id: string;
182
- limits?: API.Cards.Limits.Limits;
183
- fiat_account: API.Issuing.SubAccounts.SubAccount;
184
- last4: string;
185
- request_id: string;
186
- name_on_card: string | null;
187
- type: CardType | string;
188
- form_factor: CardFormFactor | string;
189
- tokenizable: boolean;
190
- }
191
- interface IssuingCardDetailItem {
192
- id: string;
193
- brand: string;
194
- card_id: string;
195
- fiat_account: API.Issuing.SubAccounts.SubAccount;
196
- last4: string;
197
- card_status: string;
198
- form_factor: string;
199
- name_on_card: string | null;
200
- nick_name: string;
201
- wallet_id: string;
202
- type: string;
203
- tokenizable: boolean;
204
- issuing_programs: API.Cards.Config.Program;
205
- limits?: API.Cards.Limits.Limits;
206
- }
207
- interface SubAccountCardListItem {
208
- type: string;
209
- brand: string;
210
- last4: string;
211
- card_id: string;
212
- nick_name: string;
213
- vendor_id: string;
214
- wallet_id: string;
215
- created_at: string;
216
- program_id: string;
217
- request_id: string;
218
- card_number: string;
219
- card_status: string;
220
- expiry_year: number;
221
- form_factor: string;
222
- tokenizable: boolean;
223
- expiry_month: number;
224
- fiat_account: string;
225
- name_on_card: string;
226
- }
227
- namespace CardsList {
228
- namespace Request {
229
- type CardsListSortingFields = Partial<Pick<IssuingCardListItem, 'created_at' | 'card_status' | 'last4' | 'nick_name' | 'name_on_card' | 'card_id'>>;
230
- type CardsListFilteringFields = Partial<IssuingCardListItem>;
231
- type CardsListRequestCommonParams = API.Common.Pagination.Request & API.Common.Sorting.Request<CardsListSortingFields> & API.Common.Filtering.Request<CardsListFilteringFields>;
232
- interface ByWalletUuid extends CardsListRequestCommonParams {
233
- wallet_uuid: string;
234
- }
235
- interface BySubaccountAndWalletUuid extends ByWalletUuid {
236
- filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
237
- }
238
- type BySubAccountAndWalletId = ByWalletUuid & {
239
- fiat_account_id: string;
240
- };
241
- }
242
- type Response = {
243
- count: number;
244
- data: IssuingCardListItem[];
245
- };
246
- }
247
- interface TransactionItem {
248
- vendor_transaction_id: string;
249
- created_at: string;
250
- cleared_at: string;
251
- merchant: {
252
- name: string;
253
- category_code: string;
254
- city: string;
255
- country: string;
256
- };
257
- last4: string;
258
- title: string;
259
- billing_amount: number;
260
- billing_currency: string;
261
- transaction_amount: number;
262
- transaction_currency: string;
263
- vendor_sub_account_id: string;
264
- failure_reason: string;
265
- status: string;
266
- transaction_type: CardTransactionType | string;
267
- is_credit: boolean;
268
- has_receipt: boolean;
269
- adjustment_type: string;
270
- review_status: string;
271
- group: string;
272
- total_amount: number;
273
- }
274
- interface TransactionsList {
275
- data: TransactionItem[];
276
- has_more: boolean;
277
- count: number;
278
- }
279
- interface SensitiveData {
280
- card_number: string;
281
- cvv: string;
282
- expiry_month: number;
283
- expiry_year: number;
284
- security_code?: string;
285
- }
286
- interface OTP {
287
- created_at: number;
288
- internal_card_id: string;
289
- otp: string;
290
- valid_to: number;
291
- }
292
- type AuthorizationControls = {
293
- allowed_merchant_categories: string[];
294
- allowed_transaction_count: string;
295
- };
296
- type TransactionLimit = {
297
- amount: number;
298
- interval: string;
299
- };
300
- namespace Create {
301
- interface CommonRequest {
302
- program_id: string;
303
- request_id: string;
304
- nick_name: string;
305
- wallet_id: string;
306
- initial_topup?: number;
307
- currency_id?: string;
308
- user_data_id: string;
309
- }
310
- type StandAloneRequest = CommonRequest;
311
- interface SubAccountRequest extends CommonRequest {
312
- sub_account_id: string;
313
- }
314
- type StandAloneResponse = IssuingCardDetailItem;
315
- type SubAccountResponse = {
316
- card_id: string;
317
- status: string;
318
- };
319
- type ExtendedSubAccountResponse = SubAccountResponse & {
320
- sub_account_id: string;
321
- };
322
- }
323
- }
324
- namespace Chains {
325
- interface Chain {
326
- id: number;
327
- name: string;
328
- symbol: string;
329
- is_beta: boolean | null;
330
- }
331
- type ChainList = {
332
- count: number;
333
- data: Chain[];
334
- };
335
- }
336
- namespace Common {
337
- namespace Pagination {
338
- interface Request {
339
- limit: number;
340
- offset: number;
341
- }
342
- }
343
- namespace Sorting {
344
- interface Request<T> {
345
- sort_by?: keyof Partial<T>;
346
- sort_order?: SortingDirection;
347
- }
348
- }
349
- namespace Filtering {
350
- interface Request<T> {
351
- filter?: Partial<Record<keyof T, any>>;
352
- }
353
- }
354
- namespace Encrypted {
355
- interface Request {
356
- encrypted_key: string;
357
- }
358
- interface Response {
359
- data: string;
360
- success: boolean;
361
- encrypted: boolean;
362
- iv: string;
363
- }
364
- }
365
- }
366
- namespace Counterparties {
367
- interface Counterparty {
368
- id: string;
369
- email: string;
370
- phone: string;
371
- name: string;
372
- nickname?: string | null;
373
- type: CounterpartyType | string;
374
- created_at: string;
375
- }
376
- namespace Destination {
377
- namespace List {
378
- interface DestinationListItemCommonFields {
379
- id: string;
380
- nickname: string;
381
- type: CounterpartyDestinationType | string;
382
- created_at: string;
383
- }
384
- interface DestinationListItemExternalBankingData {
385
- account_number?: string;
386
- routing_number?: string;
387
- bank_name: string;
388
- note: string;
389
- swift_bic?: string;
390
- address: {
391
- city: string;
392
- country_id: number;
393
- state_id: number;
394
- postcode: string;
395
- street1: string;
396
- street2?: string;
397
- };
398
- }
399
- interface DestinationListItemExternalCryptoData {
400
- address: string;
401
- currency_id: string;
402
- memo?: string;
403
- }
404
- interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
405
- type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
406
- external_banking_data: DestinationListItemExternalBankingData;
407
- external_crypto_data?: never;
408
- }
409
- interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
410
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
411
- external_banking_data?: never;
412
- external_crypto_data: DestinationListItemExternalCryptoData;
413
- }
414
- type CounterpartyDestinationListItem = DestinationListItemWithExternalBankingData | DestinationListItemWithExternalCryptoData;
415
- interface Request {
416
- wallet_id: string;
417
- counterparty_account_id: string;
418
- limit?: number;
419
- offset?: number;
420
- search?: string;
421
- type?: CounterpartyDestinationType | string;
422
- sort_by?: 'created_at' | 'nickname' | 'type';
423
- sort_order?: SortingDirection;
424
- filter?: {
425
- type?: CounterpartyDestinationType;
426
- nickname?: string;
427
- created_at?: string;
428
- };
429
- }
430
- type Response = {
431
- total: number;
432
- data: CounterpartyDestinationListItem[];
433
- };
434
- }
435
- namespace Detail {
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'] & {
439
- country?: API.Location.Countries.Country;
440
- state?: API.Location.States.State;
441
- };
442
- }
443
- interface DestinationDetailItemExternalCryptoData extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
444
- currency: API.Currencies.Currency;
445
- }
446
- interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
447
- type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
448
- external_banking_data: DestinationDetailItemExternalBankingData;
449
- external_crypto_data?: never;
450
- }
451
- interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
452
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
453
- external_banking_data?: never;
454
- external_crypto_data: DestinationDetailItemExternalCryptoData;
455
- }
456
- type DestinationDetailItem = DestinationDetailItemWithExternalBankingData | DestinationDetailItemWithExternalCryptoData;
457
- interface Request {
458
- wallet_id: string;
459
- counterparty_account_id: string;
460
- counterparty_destination_id: string;
461
- }
462
- type Response = DestinationDetailItem;
463
- }
464
- namespace Create {
465
- interface ExternalBankingData {
466
- account_number: string;
467
- routing_number: string;
468
- bank_name: string;
469
- note: string;
470
- swift_bic: string;
471
- }
472
- interface Request {
473
- wallet_id: string;
474
- counterparty_account_id: string;
475
- type: CounterpartyDestinationType;
476
- nickname: string;
477
- external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
478
- external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
479
- }
480
- type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
481
- }
482
- namespace Delete {
483
- interface Request {
484
- wallet_id: string;
485
- counterparty_account_id: string;
486
- counterparty_destination_id: string;
487
- }
488
- }
489
- namespace Update {
490
- interface Request {
491
- wallet_id: string;
492
- counterparty_account_id: string;
493
- counterparty_destination_id: string;
494
- nickname: string;
495
- }
496
- type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
497
- }
498
- }
499
- namespace GetById {
500
- interface Request {
501
- wallet_id: string;
502
- counterparty_account_id: string;
503
- }
504
- type Response = Counterparty;
505
- }
506
- namespace List {
507
- interface Request {
508
- wallet_id: string;
509
- offset?: number;
510
- limit?: number;
511
- sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
512
- sort_order?: SortingDirection;
513
- filter?: {
514
- type?: CounterpartyDestinationType;
515
- nickname?: string;
516
- created_at?: string;
517
- search?: string;
518
- };
519
- }
520
- type Response = {
521
- total: number;
522
- data: Counterparty[];
523
- };
524
- }
525
- namespace Create {
526
- type Request = Omit<Counterparty, 'id' | 'created_at'> & {
527
- wallet_id: string;
528
- };
529
- type Response = Counterparty;
530
- }
531
- namespace Update {
532
- type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
533
- wallet_id: string;
534
- counterparty_account_id: string;
535
- };
536
- type Response = Counterparty;
537
- }
538
- }
539
- namespace Currencies {
540
- interface CommonCurrencyFields {
541
- uuid: string;
542
- decimal: number | null;
543
- is_memo: boolean | null;
544
- is_stablecoin: boolean;
545
- is_enabled: boolean;
546
- render_decimal: number;
547
- meta: {
548
- icon: string;
549
- name: string;
550
- symbol: string;
551
- description: string;
552
- };
553
- type: CurrencyType;
554
- }
555
- export interface CryptoCurrency extends CommonCurrencyFields {
556
- is_crypto: true;
557
- meta: CommonCurrencyFields['meta'] & {
558
- chain_id: number;
559
- contract: string;
560
- chain_name: string;
561
- };
562
- }
563
- export interface FiatCurrency extends CommonCurrencyFields {
564
- is_crypto: false;
565
- meta: CommonCurrencyFields['meta'] & {
566
- code: string;
567
- iso_code: number;
568
- sign: string;
569
- };
570
- }
571
- export type Currency = CryptoCurrency | FiatCurrency;
572
- export type CurrencyList = {
573
- count: number;
574
- data: Currency[];
575
- };
576
- export interface SimplifiedCurrency {
577
- icon?: string | null;
578
- name: string;
579
- uuid: string;
580
- symbol: string;
581
- decimal: number;
582
- }
583
- export {};
584
- }
585
- namespace Developer {
586
- namespace ApiCode {
587
- interface ApiCode {
588
- role: APIKeyRole | string;
589
- name: string;
590
- id: string;
591
- created_at: string;
592
- updated_at: string;
593
- }
594
- namespace Create {
595
- interface Request {
596
- name: string;
597
- role: APIKeyRole;
598
- }
599
- interface Response extends ApiCode {
600
- apiKey: string;
601
- key_hash: string;
602
- }
603
- }
604
- namespace Update {
605
- interface Request {
606
- uuid: string;
607
- role: APIKeyRole;
608
- }
609
- }
610
- namespace Rotate {
611
- interface Request {
612
- uuid: string;
613
- }
614
- interface Response {
615
- apiKey: string;
616
- }
617
- }
618
- }
619
- namespace Vendors {
620
- interface Vendor {
621
- id: string;
622
- name: string;
623
- type: string;
624
- currency: string;
625
- currency_id: string;
626
- }
627
- }
628
- }
629
- namespace Exchange {
630
- interface Exchange {
631
- updated_at: string;
632
- from: string;
633
- to: string;
634
- rate: number;
635
- inverted_rate: number;
636
- rate_source: string;
637
- from_uuid: string;
638
- to_uuid: string;
639
- min_amount: string;
640
- offramp_enabled: boolean;
641
- onramp_enabled: boolean;
642
- }
643
- }
644
- namespace Frontend {
645
- namespace Access {
646
- namespace Keys {
647
- interface Key {
648
- id: string;
649
- name: string;
650
- role: APIKeyRole;
651
- wallet_id: string;
652
- created_at: string;
653
- is_enabled: boolean;
654
- }
655
- interface ExtendedKey extends Key {
656
- key: string;
657
- }
658
- namespace Create {
659
- type Request = {
660
- name: string;
661
- role: APIKeyRole;
662
- wallet_id: string;
663
- };
664
- type Response = {
665
- success: boolean;
666
- data: API.Frontend.Access.Keys.ExtendedKey;
667
- };
668
- }
669
- namespace List {
670
- type Response = {
671
- success: boolean;
672
- data: API.Frontend.Access.Keys.Key[];
673
- };
674
- }
675
- namespace Regenerate {
676
- type Response = {
677
- success: boolean;
678
- data: API.Frontend.Access.Keys.ExtendedKey;
679
- };
680
- }
681
- namespace Revoke {
682
- type Response = {
683
- success: boolean;
684
- data: {
685
- id: string;
686
- revoked_at: string;
687
- };
688
- };
689
- }
690
- }
691
- }
692
- }
693
- namespace Issuing {
694
- namespace Programs {
695
- type Request = {
696
- wallet_id: string;
697
- };
698
- type Response = {
699
- count: number;
700
- data: API.Cards.Config.Program[];
701
- };
702
- }
703
- namespace SubAccounts {
704
- type Transaction = API.Cards.TransactionItem;
705
- type SubAccountDetails = {
706
- iban: string;
707
- bank_name: string;
708
- swift_code: string;
709
- bank_address: string;
710
- receiver_name: string;
711
- payment_details: string;
712
- reference_number: string;
713
- registration_number: string;
714
- };
715
- type SubAccountCryptoDetails = {
716
- currency_id: string;
717
- deposit_address: string;
718
- chain_id: number;
719
- memo?: string;
720
- };
721
- namespace TransactionList {
722
- interface Request {
723
- sub_account_id: string;
724
- limit: number;
725
- offset: number;
726
- card_id?: string;
727
- from_timestamp?: string;
728
- to_timestamp?: string;
729
- status?: string;
730
- }
731
- interface Response {
732
- count: number;
733
- data: Transaction[];
734
- has_more: boolean;
735
- }
736
- }
737
- interface SubAccount {
738
- balance: number;
739
- cards_count: number;
740
- created_at: string;
741
- currency: API.Currencies.FiatCurrency;
742
- fiat_balance: number;
743
- type: SubAccountType | string;
744
- id: string;
745
- issuing_program: API.Cards.Config.Program;
746
- nick_name: string;
747
- program_id: string;
748
- realtime_auth: [
749
- {
750
- crypto_token: string;
751
- fiat_account: string;
752
- id: string;
753
- priority: number;
754
- }
755
- ];
756
- realtimeauth_balance: number;
757
- status: string;
758
- total_balance: number;
759
- wallet_id: string;
760
- account_details?: SubAccountDetails;
761
- crypto_details?: SubAccountCryptoDetails[];
762
- }
763
- namespace WithCards {
764
- interface SubAccountWithCards extends SubAccount {
765
- cards: API.Cards.IssuingCardListItem[];
766
- }
767
- interface Response {
768
- count: number;
769
- data: SubAccountWithCards[];
770
- has_more: boolean;
771
- }
772
- }
773
- namespace WithoutCards {
774
- interface Request {
775
- wallet_uuid: string;
776
- limit: number;
777
- offset: number;
778
- type?: SubAccountType;
779
- }
780
- interface Response {
781
- count: number;
782
- data: SubAccount[];
783
- has_more: boolean;
784
- }
785
- }
786
- }
787
- }
788
- namespace KYC {
789
- namespace Sumsub {
790
- namespace GenerateToken {
791
- interface Request {
792
- user_data_id: number;
793
- }
794
- interface Response extends Request {
795
- token: string;
796
- }
797
- }
798
- }
799
- namespace Entity {
800
- type Entity = components['schemas']['KycEntityDto'];
801
- namespace Get {
802
- type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
803
- type Response = operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
804
- }
805
- }
806
- namespace Forms {
807
- namespace FormField {
808
- type FormFieldType = 'text' | 'email' | 'password' | 'radio' | 'select' | 'checkbox' | 'textarea' | 'number' | 'date' | 'switch' | 'file';
809
- interface FormFieldValidation {
810
- pattern?: string;
811
- min?: number;
812
- max?: number;
813
- min_length?: number;
814
- max_length?: number;
815
- message?: string;
816
- }
817
- interface FormFieldOption {
818
- label: string;
819
- value: string;
820
- }
821
- interface FormField {
822
- name: string;
823
- type: FormFieldType;
824
- label: string;
825
- placeholder?: string;
826
- required?: boolean;
827
- order?: number;
828
- options?: FormFieldOption[];
829
- rows?: number;
830
- value?: string;
831
- accept?: string;
832
- validation?: FormFieldValidation;
833
- }
834
- }
835
- namespace FormGroup {
836
- type FormGroupFieldType = 'group' | 'field';
837
- interface FormGroupFieldGroup {
838
- type: 'group';
839
- fields: API.KYC.Forms.FormGroup.FormGroup[];
840
- }
841
- interface FormGroupFieldField {
842
- type: 'field';
843
- field: API.KYC.Forms.FormField.FormField;
844
- }
845
- interface FormGroup {
846
- name?: string;
847
- isArray?: boolean;
848
- label: string;
849
- fields: Array<FormGroupFieldGroup | FormGroupFieldField>;
850
- }
851
- }
852
- }
853
- namespace Rails {
854
- type RailStatus = components['schemas']['WalletKycRailDto']['status'];
855
- type WalletRail = components['schemas']['WalletKycRailDto'];
856
- type WalletRailExtraActions = components['schemas']['WalletKycRailExtraActionDto'];
857
- type WalletRailTermsAndConditions = components['schemas']['WalletKycRailTermsAndConditionsDto'];
858
- namespace RailInfo {
859
- type RailInfo = components['schemas']['WalletKycRailTypeDto'];
860
- namespace SingleRail {
861
- type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
862
- type Response = RailInfo;
863
- }
864
- namespace List {
865
- type Request = {
866
- wallet_id: string;
867
- };
868
- type Response = components['schemas']['GetWalletKycRailsResponseDto'];
869
- }
870
- }
871
- namespace Submit {
872
- namespace Single {
873
- type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
874
- type Response = components['schemas']['WalletKycRailTypeDto'];
875
- }
876
- }
877
- namespace Terms {
878
- namespace Confirm {
879
- type Request = operations['WalletKycRailsController_confirmTermsAndConditions']['parameters']['path'];
880
- type Response = components['schemas']['WalletKycRailTypeDto'];
881
- }
882
- }
883
- }
884
- }
885
- namespace Location {
886
- namespace Countries {
887
- interface Country {
888
- id: number;
889
- capital: string;
890
- currency: string;
891
- currency_name: string;
892
- currency_symbol: string;
893
- emoji: string;
894
- emojiU: string;
895
- flag: number;
896
- iso2: string;
897
- iso3: string;
898
- latitude: number;
899
- longitude: number;
900
- name: string;
901
- nationality: string;
902
- native: string;
903
- numeric_code: string;
904
- phonecode: string;
905
- region: string;
906
- region_id: number;
907
- subregion: string;
908
- subregion_id: number;
909
- timezones: object[];
910
- tld: string;
911
- translations: object[];
912
- wikiDataId: string;
913
- }
914
- namespace List {
915
- type Response = {
916
- total: number;
917
- data: Country[];
918
- };
919
- }
920
- }
921
- namespace States {
922
- type State = components['schemas']['StateDto'];
923
- namespace List {
924
- type Request = operations['SystemController_states']['parameters']['path'];
925
- type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
926
- }
927
- }
928
- }
929
- namespace Orders {
930
- namespace Create {
931
- namespace ByOrderType {
932
- namespace INTERNAL_TRANSFER {
933
- interface Request {
934
- amount: number;
935
- wallet_uuid: string;
936
- from_uuid: string;
937
- to_uuid: string;
938
- }
939
- interface Response {
940
- created_at: string;
941
- order_uuid: string;
942
- wallet_uuid: string;
943
- from_uuid: string;
944
- to_uuid: string;
945
- amount_from: number;
946
- order_type: 'EXCHANGE_CRYPTO_INTERNAL';
947
- status: OrderStatuses;
948
- amount_to: number;
949
- info: string;
950
- meta: {
951
- fee: number;
952
- order_uuid: string;
953
- to_address: string;
954
- fee_currency: string;
955
- billing_amount: number;
956
- transaction_amount: number;
957
- billing_amount_currency: string;
958
- transaction_amount_currency: string;
959
- network_fee: number;
960
- };
961
- id: string;
962
- }
963
- }
964
- namespace TRANSFER_CARD_PREPAID {
965
- interface Request {
966
- amount: number;
967
- wallet_uuid: string;
968
- card_id: string;
969
- }
970
- interface Response {
971
- created_at: string;
972
- order_uuid: string;
973
- wallet_uuid: string;
974
- from_uuid: string;
975
- to_uuid: string;
976
- amount_from: number;
977
- order_type: 'TRANSFER_CARD_PREPAID';
978
- status: OrderStatuses;
979
- amount_to: number;
980
- info: string;
981
- meta: {
982
- fee: number;
983
- order_uuid: string;
984
- fee_currency: string;
985
- exchange_rate: number;
986
- billing_amount: number;
987
- vendor_id: string;
988
- transaction_amount: number;
989
- billing_currency: string;
990
- transaction_currency: string;
991
- network_fee: number;
992
- };
993
- id: string;
994
- }
995
- }
996
- namespace OMNIBUS_CRYPTO_WITHDRAWAL {
997
- interface Request {
998
- idempotency_key: string;
999
- counterparty_account_id: string;
1000
- amount: number;
1001
- wallet_uuid: string;
1002
- currency_id: string;
1003
- memo?: string;
1004
- note?: string;
1005
- }
1006
- interface Response {
1007
- created_at: string;
1008
- order_uuid: string;
1009
- wallet_uuid: string;
1010
- from_uuid: string;
1011
- to_uuid: string;
1012
- amount_from: number;
1013
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1014
- status: OrderStatuses;
1015
- amount_to: number;
1016
- info: string;
1017
- meta: {
1018
- fee: number;
1019
- order_uuid: string;
1020
- to_address: string;
1021
- fee_currency: string;
1022
- idempotency_key: string;
1023
- counterparty_account_id: string;
1024
- billing_amount: number;
1025
- billing_currency: string;
1026
- transaction_amount: number;
1027
- transaction_currency: string;
1028
- network_fee: number;
1029
- };
1030
- id: string;
1031
- }
1032
- }
1033
- namespace TRANSFER_CARD_SUBACCOUNT {
1034
- type Request = {
1035
- amount: number;
1036
- wallet_uuid: string;
1037
- from_uuid: string;
1038
- sub_account_id: string;
1039
- };
1040
- type Response = {
1041
- id: number;
1042
- created_at: string;
1043
- order_uuid: string;
1044
- wallet_uuid: string;
1045
- fiat_uuid: string;
1046
- crypto_uuid: string;
1047
- amount_fiat: number;
1048
- payment_method: string;
1049
- redirect_url: string;
1050
- status: string;
1051
- provider_uuid: string;
1052
- };
1053
- }
1054
- namespace WITHDRAWAL_CRYPTO {
1055
- type Request = {
1056
- amount: number;
1057
- is_subsctract: boolean;
1058
- wallet_uuid: string;
1059
- crypto_uuid: string;
1060
- to_address: string;
1061
- memo?: string;
1062
- };
1063
- type Response = {
1064
- id: number;
1065
- created_at: string;
1066
- order_uuid: string;
1067
- wallet_uuid: string;
1068
- crypto_uuid: string;
1069
- amount: number;
1070
- status: string;
1071
- network: string;
1072
- to_address: string;
1073
- txid: string;
1074
- };
1075
- }
1076
- namespace EXCHANGE_CRYPTO_INTERNAL {
1077
- type Request = {
1078
- amount: number;
1079
- wallet_uuid: string;
1080
- from_uuid: string;
1081
- to_uuid: string;
1082
- };
1083
- type Response = {
1084
- id: number;
1085
- };
1086
- }
1087
- namespace EXCHANGE_OMNI {
1088
- type Request = {
1089
- amount: number;
1090
- wallet_uuid: string;
1091
- from_uuid: string;
1092
- to_uuid: string;
1093
- };
1094
- type Response = {
1095
- created_at: string;
1096
- order_uuid: string;
1097
- wallet_uuid: string;
1098
- from_uuid: string;
1099
- to_uuid: string;
1100
- amount_from: number;
1101
- order_type: 'EXCHANGE_OMNI';
1102
- status: OrderStatuses;
1103
- amount_to: number;
1104
- info: string;
1105
- meta: {
1106
- fee: number;
1107
- order_uuid: string;
1108
- to_address: string;
1109
- fee_currency: string;
1110
- billing_amount: number;
1111
- transaction_amount: number;
1112
- billing_amount_currency: string;
1113
- transaction_amount_currency: string;
1114
- network_fee: number;
1115
- };
1116
- id: string;
1117
- };
1118
- }
1119
- namespace TRANSFER_CARD_WHOLESALE {
1120
- type Request = {
1121
- amount: number;
1122
- wallet_id: string;
1123
- currency_id: string;
1124
- vendor_id: string;
1125
- };
1126
- type Response = null;
1127
- }
1128
- namespace TBD_SWIFT_WITHDRAWAL {
1129
- type Request = {
1130
- amount: number;
1131
- wallet_uuid: string;
1132
- currency_id: string;
1133
- };
1134
- type Response = null;
1135
- }
1136
- namespace WITHDRAW_CARD_PREPAID {
1137
- type Request = {
1138
- amount: number;
1139
- wallet_uuid: string;
1140
- card_id: string;
1141
- };
1142
- type Response = null;
1143
- }
1144
- namespace WITHDRAW_CARD_SUBACCOUNT {
1145
- type Request = {
1146
- amount: number;
1147
- wallet_uuid: string;
1148
- sub_account_id: string;
1149
- };
1150
- type Response = null;
1151
- }
1152
- }
1153
- }
1154
- namespace Calc {
1155
- interface CommonRequestParams {
1156
- from_currency: string;
1157
- to_currency: string;
1158
- amount: number;
1159
- is_reverse?: boolean;
1160
- signal?: AbortSignal;
1161
- }
1162
- export interface WithdrawCryptoRequest extends CommonRequestParams {
1163
- order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1164
- to_address?: string;
1165
- }
1166
- export interface NonWithdrawCryptoRequest extends CommonRequestParams {
1167
- order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
1168
- to_address?: never;
1169
- }
1170
- export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
1171
- export interface Response {
1172
- from_currency: string;
1173
- to_currency: string;
1174
- from_symbol: string;
1175
- to_symbol: string;
1176
- from_amount: number;
1177
- net_amount: number;
1178
- result_amount: number;
1179
- fees: number;
1180
- comission: number;
1181
- base_markup: number;
1182
- network_fee: number;
1183
- transaction_fee: number;
1184
- rate: number;
1185
- direction: 'c2f' | 'f2c' | 'c2c';
1186
- }
1187
- export {};
1188
- }
1189
- namespace OrderTypes {
1190
- type OrderTypeKycRail = {
1191
- id: string;
1192
- kyc_rail_id: string;
1193
- };
1194
- interface OrderInfo {
1195
- id: string;
1196
- transaction_type: string;
1197
- description: string | null;
1198
- direction: 'deposit' | 'withdrawal';
1199
- is_internal: boolean;
1200
- order_types_kyc_rails: OrderTypeKycRail[];
1201
- payment_method: OrderType | string;
1202
- }
1203
- namespace List {
1204
- type Response = OrderInfo[];
1205
- }
1206
- }
1207
- namespace Status {
1208
- interface Response {
1209
- id: number;
1210
- created_at: string;
1211
- order_uuid: string;
1212
- wallet_uuid: string;
1213
- crypto_uuid: string;
1214
- status: OrderStatuses | string;
1215
- amount: number;
1216
- comission: number;
1217
- net_amount: number;
1218
- type: OrderType | string;
1219
- }
1220
- }
1221
- namespace V2 {
1222
- interface Document {
1223
- url: string;
1224
- description: string;
1225
- }
1226
- namespace Calc {
1227
- interface CommonRequestParams {
1228
- from_currency_id: string;
1229
- to_currency_id: string;
1230
- amount: number;
1231
- is_reverse: boolean;
1232
- is_subtract: boolean;
1233
- signal?: AbortSignal;
1234
- }
1235
- export interface WithdrawCryptoRequest extends CommonRequestParams {
1236
- order_type: OrderType.WITHDRAWAL_CRYPTO | OrderType.TRANSFER_INTERNAL | OrderType.OMNIBUS_CRYPTO_TRANSFER | OrderType.SEGREGATED_CRYPTO_TRANSFER;
1237
- to_address?: string;
1238
- }
1239
- export interface NonWithdrawCryptoRequest extends CommonRequestParams {
1240
- order_type: Exclude<OrderType, OrderType.WITHDRAWAL_CRYPTO>;
1241
- to_address?: never;
1242
- }
1243
- export type Request = NonWithdrawCryptoRequest | WithdrawCryptoRequest;
1244
- export interface Response {
1245
- from_currency: string;
1246
- to_currency: string;
1247
- from_symbol: string;
1248
- to_symbol: string;
1249
- from_amount: number;
1250
- net_amount: number;
1251
- result_amount: number;
1252
- fees: number;
1253
- comission: number;
1254
- base_markup: number;
1255
- network_fee: number;
1256
- transaction_fee: number;
1257
- rate: number;
1258
- direction: 'c2f' | 'f2c' | 'c2c';
1259
- }
1260
- export {};
1261
- }
1262
- namespace Create {
1263
- namespace Common {
1264
- namespace Request {
1265
- interface BaseOrderParams {
1266
- request_id: string;
1267
- amount: number;
1268
- wallet_id: string;
1269
- from_currency_id: string;
1270
- to_currency_id: string;
1271
- is_subtract: boolean;
1272
- is_reverse: boolean;
1273
- reference?: string;
1274
- note?: string;
1275
- documents?: Document[];
1276
- }
1277
- interface OrderWithCounterpartyParams extends BaseOrderParams {
1278
- counterparty_destination_id: string;
1279
- }
1280
- interface OrderWithWalletAccountParams extends BaseOrderParams {
1281
- wallet_account_id: string;
1282
- }
1283
- interface OrderWithVirtualAccountParams extends BaseOrderParams {
1284
- virtual_account_id: string;
1285
- }
1286
- interface OrderWithSubAccountParams extends BaseOrderParams {
1287
- sub_account_id: string;
1288
- }
1289
- }
1290
- namespace Response {
1291
- interface BaseOrderResponse {
1292
- order_uuid: string;
1293
- wallet_uuid: string;
1294
- from_uuid: string;
1295
- to_uuid: string;
1296
- amount_from: number;
1297
- amount_to: number;
1298
- status: OrderStatuses;
1299
- created_at: string;
1300
- info: string;
1301
- id: string;
1302
- }
1303
- interface HifiOrderResponse extends BaseOrderResponse {
1304
- order_type: string;
1305
- meta: {
1306
- request_id: string;
1307
- counterparty_account_id: string;
1308
- fee: number;
1309
- fee_currency: string;
1310
- billing_amount: number;
1311
- billing_currency: string;
1312
- transaction_amount: number;
1313
- transaction_currency: string;
1314
- order_uuid: string;
1315
- };
1316
- }
1317
- interface CryptoTransferResponse extends BaseOrderResponse {
1318
- order_type: 'OMNIBUS_CRYPTO_WITHDRAWAL';
1319
- meta: {
1320
- fee: number;
1321
- order_uuid: string;
1322
- to_address: string;
1323
- fee_currency: string;
1324
- request_id: string;
1325
- counterparty_account_id: string;
1326
- billing_amount: number;
1327
- billing_currency: string;
1328
- transaction_amount: number;
1329
- transaction_currency: string;
1330
- network_fee: number;
1331
- };
1332
- }
1333
- interface RnCardsResponse extends BaseOrderResponse {
1334
- order_type: 'RN_CARDS_OFFRAMP';
1335
- meta: {
1336
- request_id: string;
1337
- sub_account_id: string;
1338
- to_address: string;
1339
- deposit_chain_id: number;
1340
- fee: number;
1341
- fee_currency: string;
1342
- billing_amount: number;
1343
- billing_currency: string;
1344
- transaction_amount: number;
1345
- transaction_currency: string;
1346
- order_uuid: string;
1347
- };
1348
- }
1349
- interface L2FResponse extends BaseOrderResponse {
1350
- order_type: 'L2F_SEPA_OFFRAMP' | 'L2F_SWIFT_OFFRAMP' | 'L2F_ACH_OFFRAMP' | 'L2F_WIRE_OFFRAMP';
1351
- meta: {
1352
- request_id: string;
1353
- virtual_account_id: string;
1354
- };
1355
- }
1356
- }
1357
- }
1358
- namespace ByOrderType {
1359
- namespace INTERNAL_TRANSFER {
1360
- interface Request {
1361
- wallet_id: string;
1362
- from_crypto_uuid: string;
1363
- to_wallet_id: string;
1364
- to_wallet_uuid: string;
1365
- amount: number;
1366
- request_id: string;
1367
- is_subtract: boolean;
1368
- is_reverse: boolean;
1369
- }
1370
- type Response = null;
1371
- }
1372
- namespace HIFI_WIRE_ONRAMP {
1373
- type Request = Common.Request.OrderWithCounterpartyParams;
1374
- type Response = Common.Response.HifiOrderResponse & {
1375
- order_type: 'HIFI_WIRE_ONRAMP';
1376
- };
1377
- }
1378
- namespace HIFI_ACH_ONRAMP {
1379
- type Request = Common.Request.OrderWithCounterpartyParams;
1380
- type Response = Common.Response.HifiOrderResponse & {
1381
- order_type: 'HIFI_ACH_ONRAMP';
1382
- };
1383
- }
1384
- namespace HIFI_SEPA_ONRAMP {
1385
- type Request = Common.Request.OrderWithCounterpartyParams;
1386
- type Response = Common.Response.HifiOrderResponse & {
1387
- order_type: 'HIFI_SEPA_ONRAMP';
1388
- };
1389
- }
1390
- namespace HIFI_WIRE_OFFRAMP {
1391
- type Request = Common.Request.OrderWithCounterpartyParams;
1392
- type Response = Common.Response.HifiOrderResponse & {
1393
- order_type: 'HIFI_WIRE_OFFRAMP';
1394
- };
1395
- }
1396
- namespace HIFI_ACH_OFFRAMP {
1397
- type Request = Common.Request.OrderWithCounterpartyParams;
1398
- type Response = Common.Response.HifiOrderResponse & {
1399
- order_type: 'HIFI_ACH_OFFRAMP';
1400
- };
1401
- }
1402
- namespace HIFI_SEPA_OFFRAMP {
1403
- type Request = Common.Request.OrderWithCounterpartyParams;
1404
- type Response = Common.Response.HifiOrderResponse & {
1405
- order_type: 'HIFI_SEPA_OFFRAMP';
1406
- };
1407
- }
1408
- namespace TBD_SWIFT_WITHDRAWAL {
1409
- type Request = Common.Request.OrderWithCounterpartyParams;
1410
- type Response = Common.Response.HifiOrderResponse & {
1411
- order_type: 'HIFI_SEPA_OFFRAMP';
1412
- };
1413
- }
1414
- namespace OMNIBUS_CRYPTO_TRANSFER {
1415
- type Request = Omit<Common.Request.OrderWithWalletAccountParams, 'to_currency_id'> & Omit<Common.Request.OrderWithCounterpartyParams, 'to_currency_id'>;
1416
- type Response = Common.Response.CryptoTransferResponse;
1417
- }
1418
- namespace SEGREGATED_CRYPTO_TRANSFER {
1419
- type Request = Omit<Common.Request.OrderWithWalletAccountParams, 'to_currency_id'> & Omit<Common.Request.OrderWithCounterpartyParams, 'to_currency_id'>;
1420
- type Response = Common.Response.CryptoTransferResponse;
1421
- }
1422
- namespace RN_CARDS_OFFRAMP {
1423
- type Request = Common.Request.OrderWithSubAccountParams;
1424
- type Response = Common.Response.RnCardsResponse;
1425
- }
1426
- namespace L2F_SEPA_OFFRAMP {
1427
- type Request = Common.Request.OrderWithVirtualAccountParams & Common.Request.OrderWithCounterpartyParams;
1428
- type Response = Common.Response.L2FResponse & {
1429
- order_type: 'L2F_SEPA_OFFRAMP';
1430
- };
1431
- }
1432
- namespace L2F_SWIFT_OFFRAMP {
1433
- type Request = Common.Request.OrderWithVirtualAccountParams & Common.Request.OrderWithCounterpartyParams;
1434
- type Response = Common.Response.L2FResponse & {
1435
- order_type: 'L2F_SWIFT_OFFRAMP';
1436
- };
1437
- }
1438
- namespace L2F_ACH_OFFRAMP {
1439
- type Request = Common.Request.OrderWithVirtualAccountParams & Common.Request.OrderWithCounterpartyParams;
1440
- type Response = Common.Response.L2FResponse & {
1441
- order_type: 'L2F_ACH_OFFRAMP';
1442
- };
1443
- }
1444
- namespace L2F_WIRE_OFFRAMP {
1445
- type Request = Common.Request.OrderWithVirtualAccountParams & Common.Request.OrderWithCounterpartyParams;
1446
- type Response = Common.Response.L2FResponse & {
1447
- order_type: 'L2F_WIRE_OFFRAMP';
1448
- };
1449
- }
1450
- }
1451
- }
1452
- namespace OrderTypes {
1453
- type OrderTypeKycRail = {
1454
- id: string;
1455
- kyc_rail_id: string;
1456
- };
1457
- interface OrderInfo {
1458
- id: OrderType | string;
1459
- transaction_type: string;
1460
- description: string | null;
1461
- direction: string | null;
1462
- is_internal: boolean;
1463
- payment_method: OrderPaymentMethod | string;
1464
- is_trusted: boolean;
1465
- order_types_kyc_rails: OrderTypeKycRail[];
1466
- }
1467
- namespace List {
1468
- type Response = OrderInfo[];
1469
- }
1470
- }
1471
- namespace List {
1472
- namespace ByWallet {
1473
- interface Request {
1474
- wallet_uuid: string;
1475
- offset?: number;
1476
- limit?: number;
1477
- sort_by?: string;
1478
- sort_order?: 'asc' | 'desc';
1479
- filter: {
1480
- from_created_at?: string;
1481
- to_created_at?: string;
1482
- status?: OrderStatuses;
1483
- order_type?: OrderType;
1484
- from_currency_id?: string;
1485
- to_currency_id?: string;
1486
- };
1487
- }
1488
- interface PaymentOriginatorAddress {
1489
- address_line1?: string | null;
1490
- city?: string | null;
1491
- state?: string | null;
1492
- postal_code?: string | null;
1493
- country?: string | null;
1494
- }
1495
- interface PaymentOriginatorProfile {
1496
- name: string;
1497
- address?: PaymentOriginatorAddress;
1498
- }
1499
- interface PaymentOriginatorAccountInfo {
1500
- account_number: string;
1501
- routing_number?: string | null;
1502
- swift_bic?: string | null;
1503
- institution_name?: string | null;
1504
- }
1505
- interface PaymentOriginator {
1506
- profile: PaymentOriginatorProfile;
1507
- account_information: PaymentOriginatorAccountInfo;
1508
- reference?: string | null;
1509
- memo?: string | null;
1510
- }
1511
- interface OrderMeta {
1512
- order_uuid: string;
1513
- request_id?: string | null;
1514
- billing_amount?: number;
1515
- billing_currency?: string;
1516
- transaction_amount?: number;
1517
- transaction_currency?: string;
1518
- network_fee?: number | null;
1519
- network_fee_currency?: string | null;
1520
- exchange_rate?: number;
1521
- fee?: number;
1522
- fee_currency?: string;
1523
- from_currency_id?: string;
1524
- from_crypto_address?: string | null;
1525
- to_currency_id?: string;
1526
- chain_id?: number | null;
1527
- counterparty_destination_id?: string | null;
1528
- counterparty_account_id?: string | null;
1529
- counterparty_account_name?: string | null;
1530
- counterparty_account_nickname?: string | null;
1531
- virtual_account_id?: string | null;
1532
- virtual_account_name?: string | null;
1533
- to_crypto_address?: string | null;
1534
- reference?: string | null;
1535
- note?: string | null;
1536
- order_id?: string | null;
1537
- originator?: PaymentOriginator | null;
1538
- sub_account_id?: string | null;
1539
- to_address?: string | null;
1540
- sub_account_currency?: string | null;
1541
- crypto_transaction_hash?: string | null;
1542
- workflow_type?: string;
1543
- processing_type?: string;
1544
- workflow_status?: string;
1545
- qstash_message_id?: string;
1546
- vendor_account_id?: string;
1547
- processing_started_at?: string;
1548
- workflow_status_updated_at?: string;
1549
- card_id?: string;
1550
- vendor_id?: string;
1551
- fiat_account_id?: string;
1552
- }
1553
- interface OrderItem {
1554
- id: string;
1555
- order_uuid: string;
1556
- request_id?: string | null;
1557
- wallet_uuid: string;
1558
- from_uuid: string;
1559
- to_uuid: string;
1560
- amount_from: number;
1561
- amount_to: number;
1562
- order_type: string;
1563
- status: 'PENDING' | 'PROCESSING' | 'COMPLETE' | 'FAILED' | 'CANCELED';
1564
- created_at: string;
1565
- updated_at?: string | null;
1566
- sub_account_id?: string | null;
1567
- meta: OrderMeta;
1568
- info?: string | null;
1569
- }
1570
- type Response = OrderItem[];
1571
- }
1572
- }
1573
- namespace GetById {
1574
- interface Request {
1575
- order_uuid: string;
1576
- }
1577
- interface CounterpartyAccount {
1578
- id: string;
1579
- name: string;
1580
- type: string;
1581
- email?: string | null;
1582
- phone?: string | null;
1583
- wallet_id: string;
1584
- }
1585
- interface ExternalBankingData {
1586
- id: string;
1587
- account_number: string;
1588
- routing_number?: string | null;
1589
- bank_name: string;
1590
- swift_bic?: string | null;
1591
- iban?: string | null;
1592
- note?: string | null;
1593
- address_id?: string | null;
1594
- }
1595
- interface ExternalCryptoData {
1596
- id: string;
1597
- address: string;
1598
- currency_id: string;
1599
- memo?: string | null;
1600
- }
1601
- interface CounterpartyDestination {
1602
- id: string;
1603
- counterparty_account_id: string;
1604
- nickname?: string | null;
1605
- type: string;
1606
- external_banking_data_id?: string | null;
1607
- external_crypto_data_id?: string | null;
1608
- created_at: string;
1609
- updated_at: string;
1610
- deleted_at?: string | null;
1611
- is_deleted?: boolean | null;
1612
- counterparty_account: CounterpartyAccount;
1613
- external_banking_data?: ExternalBankingData | null;
1614
- external_crypto_data?: ExternalCryptoData | null;
1615
- }
1616
- interface IntegrationVendorExtended extends API.VirtualAccounts.Programs.IntegrationVendor {
1617
- type: string;
1618
- }
1619
- interface DepositInstructionAddress {
1620
- address_line1: string;
1621
- city: string;
1622
- state: string;
1623
- postal_code: string;
1624
- country_code: string;
1625
- }
1626
- interface VirtualAccountAccountDetails {
1627
- rail_account_id: string;
1628
- rail_asset_type: string;
1629
- rail_product_id: string;
1630
- rail_customer_id: string;
1631
- }
1632
- interface VirtualAccountDetails {
1633
- id: string;
1634
- created_at: string;
1635
- wallet_id: string;
1636
- status: string;
1637
- account_currency: string;
1638
- destination_currency: string;
1639
- destination_address?: string | null;
1640
- va_programs_id: string;
1641
- integration_vendor_id: string;
1642
- vendor_account_id: string;
1643
- vendor_status: string;
1644
- current_balance: number;
1645
- available_balance: number;
1646
- customer_name: string;
1647
- asset_type_id: string;
1648
- deposit_type: string;
1649
- meta?: Record<string, unknown>;
1650
- account_details: VirtualAccountAccountDetails;
1651
- deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
1652
- account_currency_details: API.Currencies.SimplifiedCurrency;
1653
- destination_currency_details: API.Currencies.SimplifiedCurrency;
1654
- integration_vendor: IntegrationVendorExtended;
1655
- }
1656
- type OrderDetails = API.Orders.V2.List.ByWallet.OrderItem & {
1657
- request_id: string;
1658
- updated_at: string;
1659
- wallet: API.Wallets.SimplifiedWallet;
1660
- from_currency: API.Currencies.SimplifiedCurrency;
1661
- to_currency: API.Currencies.SimplifiedCurrency;
1662
- virtual_account?: VirtualAccountDetails | null;
1663
- counterparty_destination?: CounterpartyDestination | null;
1664
- };
1665
- type Response = OrderDetails;
1666
- }
1667
- }
1668
- }
1669
- namespace Persona {
1670
- namespace Inquiries {
1671
- type InquiryType = operations['PersonaController_initInquiry']['parameters']['path']['type'];
1672
- namespace Init {
1673
- type Request = operations['PersonaController_initInquiry']['parameters']['path'];
1674
- type Response = operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
1675
- }
1676
- namespace Resume {
1677
- type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
1678
- type Response = operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
1679
- }
1680
- }
1681
- }
1682
- namespace Tenant {
1683
- type Config = components['schemas']['SystemConfigDto'];
1684
- }
1685
- namespace TOTP {
1686
- namespace OTPVerification {
1687
- type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
1688
- type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
1689
- type OTPVerificationChannelInfo = {
1690
- channel: OTPVerificationChannelType;
1691
- validity: number;
1692
- max_requests: number;
1693
- };
1694
- type OTPVerificationInfo = {
1695
- request_id: string;
1696
- status: OTPVerificationStatus;
1697
- created_at: string;
1698
- updated_at: string;
1699
- };
1700
- namespace Create {
1701
- type Request = {
1702
- request_id: string;
1703
- amount: number;
1704
- order_type: string;
1705
- wallet_id: string;
1706
- meta?: {
1707
- currency?: string;
1708
- description?: string;
1709
- counterparty_account_id?: string;
1710
- from_currency_id?: string;
1711
- to_currency_id?: string;
1712
- note?: string;
1713
- refference?: string;
1714
- };
1715
- };
1716
- type Response = {
1717
- request_id: string;
1718
- status: OTPVerificationStatus;
1719
- channels: OTPVerificationChannelInfo[];
1720
- };
1721
- }
1722
- namespace RequestOtp {
1723
- type Request = {
1724
- request_id: string;
1725
- channel: OTPVerificationChannelType;
1726
- };
1727
- type Response = {
1728
- success?: boolean;
1729
- error?: boolean;
1730
- message?: string;
1731
- details?: string;
1732
- validity?: number;
1733
- requests_made?: number;
1734
- max_requests?: number;
1735
- };
1736
- }
1737
- namespace Verify {
1738
- type Request = {
1739
- request_id: string;
1740
- channel: OTPVerificationChannelType;
1741
- otp: string;
1742
- };
1743
- type Response = {
1744
- success?: boolean;
1745
- error?: boolean;
1746
- message?: string;
1747
- details?: string;
1748
- };
1749
- }
1750
- }
1751
- namespace TOTP {
1752
- namespace Generate {
1753
- type Request = {
1754
- user_name: string;
1755
- service_name: string;
1756
- };
1757
- type Response = {
1758
- success?: boolean;
1759
- error?: boolean;
1760
- message?: string;
1761
- data?: {
1762
- id: string;
1763
- qrCode: string;
1764
- secret: string;
1765
- };
1766
- };
1767
- }
1768
- namespace Verify {
1769
- type Request = {
1770
- token: string;
1771
- otp: string;
1772
- };
1773
- type Response = {
1774
- success?: boolean;
1775
- error?: boolean;
1776
- message?: string;
1777
- details?: string;
1778
- };
1779
- }
1780
- namespace Revoke {
1781
- type Request = {
1782
- token: string;
1783
- };
1784
- type Response = {
1785
- success?: boolean;
1786
- error?: boolean;
1787
- message?: string;
1788
- details?: string;
1789
- };
1790
- }
1791
- namespace Activate {
1792
- type Request = {
1793
- token: string;
1794
- };
1795
- type Response = {
1796
- success?: boolean;
1797
- error?: boolean;
1798
- message?: string;
1799
- details?: string;
1800
- data?: {
1801
- activated: boolean;
1802
- };
1803
- };
1804
- }
1805
- namespace GenerateEncrypted {
1806
- type Request = {
1807
- user_name: string;
1808
- service_name: string;
1809
- public_key: string;
1810
- };
1811
- type Response = {
1812
- success?: boolean;
1813
- error?: boolean;
1814
- message?: string;
1815
- details?: string;
1816
- data?: string;
1817
- };
1818
- }
1819
- namespace Status {
1820
- type Response = {
1821
- success?: boolean;
1822
- error?: boolean;
1823
- message?: string;
1824
- details?: string;
1825
- has_active_totp?: boolean;
1826
- };
1827
- }
1828
- }
1829
- }
1830
- namespace VirtualAccounts {
1831
- namespace Create {
1832
- interface Request {
1833
- wallet_id: string;
1834
- va_programs_id: string;
1835
- }
1836
- type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
1837
- }
1838
- namespace GetByUuid {
1839
- interface Request {
1840
- uuid: string;
1841
- }
1842
- type Response = API.VirtualAccounts.VirtualAccount.VirtualAccountDetailItem;
1843
- }
1844
- namespace GetAll {
1845
- interface Request {
1846
- wallet_uuid: string;
1847
- limit: number;
1848
- offset: number;
1849
- }
1850
- type Response = {
1851
- count: number;
1852
- has_more: boolean;
1853
- data: API.VirtualAccounts.VirtualAccount.VirtualAccountListItem[];
1854
- };
1855
- }
1856
- namespace VirtualAccount {
1857
- interface Beneficiary {
1858
- name: string;
1859
- address: string;
1860
- }
1861
- interface AccountDetails {
1862
- bankName: string;
1863
- bankAddress: string;
1864
- beneficiary: API.VirtualAccounts.VirtualAccount.Beneficiary;
1865
- swiftCode: string;
1866
- ach?: {
1867
- accountNumber: string;
1868
- routingNumber: string;
1869
- };
1870
- rtp?: {
1871
- accountNumber: string;
1872
- routingNumber: string;
1873
- };
1874
- wire?: {
1875
- accountNumber: string;
1876
- routingNumber: string;
1877
- };
1878
- swift?: {
1879
- accountNumber: string;
1880
- routingNumber: string;
1881
- };
1882
- }
1883
- interface PaymentRail {
1884
- currency: string;
1885
- paymentRail: string[];
1886
- }
1887
- interface Destination {
1888
- chain: string;
1889
- currency: string;
1890
- walletAddress: string;
1891
- }
1892
- namespace DepositInstruction {
1893
- type InstructionType = 'ACH' | 'FEDWIRE' | 'SWIFT' | 'SEPA_CT' | 'CHAPS' | 'FPS';
1894
- interface Address {
1895
- city: string;
1896
- state: string;
1897
- postal_code: string;
1898
- country_code: string;
1899
- address_line1: string;
1900
- address_line2: string;
1901
- }
1902
- interface Common {
1903
- memo: string;
1904
- asset_type_id: string;
1905
- account_number: string;
1906
- institution_name: string;
1907
- instruction_type: InstructionType;
1908
- account_holder_address?: Address;
1909
- institution_address?: Address;
1910
- account_holder_name?: string;
1911
- account_routing_number?: string;
1912
- swift_bic?: string;
1913
- iban?: string;
1914
- sort_code?: string;
1915
- }
1916
- interface ACH extends Common {
1917
- instruction_type: 'ACH';
1918
- }
1919
- interface FEDWIRE extends Common {
1920
- instruction_type: 'FEDWIRE';
1921
- account_holder_name: string;
1922
- account_routing_number: string;
1923
- institution_address: Address;
1924
- account_holder_address: Address;
1925
- }
1926
- interface SWIFT extends Common {
1927
- instruction_type: 'SWIFT';
1928
- swift_bic: string;
1929
- institution_address: Address;
1930
- account_holder_address: Address;
1931
- }
1932
- interface SEPA extends Common {
1933
- instruction_type: 'SEPA_CT';
1934
- iban: string;
1935
- swift_bic: string;
1936
- institution_address: Address;
1937
- account_holder_address: Address;
1938
- }
1939
- interface CHAPS extends Common {
1940
- instruction_type: 'CHAPS';
1941
- account_holder_name: string;
1942
- sort_code: string;
1943
- account_holder_address: Address;
1944
- institution_address: Address;
1945
- }
1946
- interface FPS extends Common {
1947
- instruction_type: 'FPS';
1948
- account_holder_name: string;
1949
- sort_code: string;
1950
- account_holder_address: Address;
1951
- institution_address: Address;
1952
- }
1953
- type DepositInstruction = ACH | FEDWIRE | SWIFT | SEPA | CHAPS | FPS | Common;
1954
- }
1955
- interface OrderType {
1956
- order_type_id: string;
1957
- }
1958
- interface VirtualAccountListItem {
1959
- id: string;
1960
- created_at: string;
1961
- wallet_id: string;
1962
- status: string;
1963
- balance: number;
1964
- total_balance: number;
1965
- account_currency: API.Currencies.Currency;
1966
- va_programs_id: string;
1967
- destination_currency: API.Currencies.Currency;
1968
- destination_address: string;
1969
- integration_vendor_id: string;
1970
- vendor_account_id: string;
1971
- account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
1972
- virtual_accounts_program: API.VirtualAccounts.Programs.Program;
1973
- deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
1974
- }
1975
- interface VirtualAccountDetailItem {
1976
- account_currency: string;
1977
- account_currency_details: API.Currencies.Currency;
1978
- account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
1979
- balance: number;
1980
- crypto_deposit_details: {
1981
- currency_id: string;
1982
- deposit_address: string;
1983
- chain_id: number;
1984
- }[];
1985
- created_at: string;
1986
- destination_address: string;
1987
- destination_currency: string;
1988
- destination_currency_details: API.Currencies.Currency;
1989
- deposit_instructions?: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
1990
- id: string;
1991
- integration_vendor_id: string;
1992
- order_types: string[];
1993
- status: string;
1994
- total_balance: number;
1995
- va_programs_id: string;
1996
- vendor_account_id: string;
1997
- virtual_accounts_program: API.VirtualAccounts.Programs.Program;
1998
- wallet_id: string;
1999
- }
2000
- }
2001
- namespace Programs {
2002
- interface OrderType {
2003
- id: string;
2004
- description: string | null;
2005
- }
2006
- interface OrderTypeListItem {
2007
- order_type: API.VirtualAccounts.Programs.OrderType;
2008
- order_type_id: string;
2009
- }
2010
- interface CurrencyItem {
2011
- icon: string | null;
2012
- name: string;
2013
- type: string;
2014
- uuid: string;
2015
- symbol: string;
2016
- }
2017
- interface IntegrationVendor {
2018
- id: string;
2019
- code: string;
2020
- name: string;
2021
- }
2022
- interface Program {
2023
- id: string;
2024
- name: string;
2025
- vendor_id: string | null;
2026
- tenant_id: string;
2027
- status: string;
2028
- account_currency_id: string;
2029
- description: string;
2030
- icon: string | null;
2031
- code: string;
2032
- kyc_rails_id: string;
2033
- consent_text: string | null;
2034
- integration_vendors_id: string;
2035
- is_hidden: boolean;
2036
- destination_currency_id: string;
2037
- integration_vendor: API.VirtualAccounts.Programs.IntegrationVendor;
2038
- account_currency_details: API.VirtualAccounts.Programs.CurrencyItem;
2039
- destination_currency_details: API.VirtualAccounts.Programs.CurrencyItem;
2040
- virtual_accounts_programs_order_types: API.VirtualAccounts.Programs.OrderTypeListItem[];
2041
- }
2042
- namespace List {
2043
- interface Request {
2044
- offset: number;
2045
- limit: number;
2046
- pagination?: boolean;
2047
- wallet_id: string;
2048
- }
2049
- interface Response {
2050
- data: Program[];
2051
- count: number;
2052
- has_more: boolean;
2053
- }
2054
- }
2055
- }
2056
- }
2057
- namespace User {
2058
- type User = components['schemas']['UserEntity'];
2059
- namespace Get {
2060
- type Request = operations['UserController_getMe']['parameters']['query'];
2061
- type Response = operations['UserController_getMe']['responses']['200']['content']['application/json'];
2062
- }
2063
- namespace UpdateUser {
2064
- namespace Phone {
2065
- namespace RequestOTP {
2066
- type Request = operations['AuthenticatedUserController_changePhone']['requestBody']['content']['application/json'];
2067
- }
2068
- namespace Confirm {
2069
- type Request = operations['AuthenticatedUserController_changePhoneNumberConfirm']['requestBody']['content']['application/json'];
2070
- }
2071
- }
2072
- namespace Email {
2073
- namespace RequestOTP {
2074
- type Request = operations['AuthenticatedUserController_changeEmail']['requestBody']['content']['application/json'];
2075
- }
2076
- namespace Confirm {
2077
- type Request = operations['AuthenticatedUserController_changeEmailConfirm']['requestBody']['content']['application/json'];
2078
- }
2079
- }
2080
- }
2081
- namespace UserData {
2082
- type UserData = components['schemas']['UserDataEntity'];
2083
- namespace Get {
2084
- type Request = operations['UserController_getMyUserData']['parameters']['query'];
2085
- type Response = operations['UserController_getMyUserData']['responses']['200']['content']['application/json'];
2086
- }
2087
- namespace Update {
2088
- type Request = operations['UserController_updateMyUserData']['requestBody']['content']['application/json'];
2089
- type Response = operations['UserController_updateMyUserData']['responses']['200']['content']['application/json'];
2090
- }
2091
- }
2092
- }
2093
- namespace Wallets {
2094
- interface SimplifiedWallet {
2095
- uuid: string;
2096
- user_id: string;
2097
- tenant_id: string;
2098
- }
2099
- interface WallletBalanceCryptoDetails {
2100
- uuid: string;
2101
- amount: number;
2102
- fiat_amount: number;
2103
- currency: API.Currencies.Currency;
2104
- }
2105
- interface WalletBalanceItem {
2106
- symbol: string;
2107
- icon: string;
2108
- name: string;
2109
- is_crypto: boolean;
2110
- decimal?: number | null;
2111
- amount: number;
2112
- fiat_amount: number;
2113
- details: WallletBalanceCryptoDetails[];
2114
- }
2115
- type WalletBalance = WalletBalanceItem[];
2116
- namespace WalletChain {
2117
- interface WalletChain {
2118
- uuid: string;
2119
- created_ad: string;
2120
- address: string;
2121
- wallet_uuid: string;
2122
- chain: number;
2123
- }
2124
- namespace Create {
2125
- interface Request {
2126
- wallet_uuid: string;
2127
- chain: number;
2128
- label: string;
2129
- }
2130
- type Response = WalletChain;
2131
- }
2132
- }
2133
- interface Wallet {
2134
- uuid: string;
2135
- type: WalletType | string;
2136
- created_at: string;
2137
- fiat_total: number;
2138
- crypto_total: number;
2139
- total_amount: number;
2140
- balance: WalletBalance;
2141
- }
2142
- namespace WalletsList {
2143
- interface WalletsListItem {
2144
- type: WalletType | string;
2145
- uuid: string;
2146
- created_at: string;
2147
- }
2148
- type Request = operations['WalletsController_all']['parameters']['query'];
2149
- type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
2150
- }
2151
- namespace WalletTransactions {
2152
- interface WalletTransactionMeta {
2153
- transaction_hash?: string;
2154
- fee?: number;
2155
- order_id?: string;
2156
- from_address?: string;
2157
- to_address?: string;
2158
- network_fee?: number;
2159
- network_fee_currency?: string;
2160
- fee_currency?: string;
2161
- billing_amount?: number;
2162
- utila_transaction?: string;
2163
- transcation_amount?: number;
2164
- transaction_amount?: number;
2165
- billing_amount_currency?: string;
2166
- transcation_amount_currency?: string;
2167
- transaction_amount_currency?: string;
2168
- exchange_rate?: number;
2169
- fiat_account_id?: string;
2170
- txid?: string;
2171
- chain_id?: number;
2172
- from_user_data?: number;
2173
- to_user_data?: number;
2174
- to_card_id?: string;
2175
- to_card_last4?: string;
2176
- to_fiat_account_id?: string;
2177
- to_vendor_id?: string;
2178
- }
2179
- interface Transaction {
2180
- id: number;
2181
- created_at: string;
2182
- type: WalletTransactionType | string;
2183
- method: WalletTransactionMethod | string;
2184
- status: WalletTransactionStatus | string;
2185
- amount: number;
2186
- from: string | null;
2187
- to: string | null;
2188
- wallet_id: string;
2189
- txid: string;
2190
- info: string;
2191
- currency: API.Currencies.Currency;
2192
- record_type: WalletTransactionRecordType | string;
2193
- meta?: WalletTransactionMeta;
2194
- }
2195
- interface DetailedTransaction {
2196
- id: number;
2197
- amount: number;
2198
- created_at: string;
2199
- from: string;
2200
- info: string;
2201
- status: WalletTransactionStatus | string;
2202
- to: string;
2203
- txid: string;
2204
- type: WalletTransactionType | string;
2205
- wallet_id: string;
2206
- method: WalletTransactionMethod | string;
2207
- meta: WalletTransactionMeta;
2208
- record_type: WalletTransactionRecordType | string;
2209
- currency: API.Currencies.Currency;
2210
- }
2211
- namespace GetByUuid {
2212
- type Request = {
2213
- wallet_uuid: string;
2214
- uuid: string;
2215
- };
2216
- }
2217
- namespace TransactionList {
2218
- type Request = {
2219
- wallet_uuid: string;
2220
- limit: number;
2221
- offset: number;
2222
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2223
- };
2224
- type Response = {
2225
- total: number;
2226
- data: Transaction[];
2227
- };
2228
- namespace ExportCsv {
2229
- type Request = {
2230
- wallet_uuid: string;
2231
- filter?: Partial<components['schemas']['TransactionsFilter']>;
2232
- };
2233
- type Response = string;
2234
- }
2235
- }
2236
- }
2237
- }
2238
- namespace Storage {
2239
- namespace KYC {
2240
- namespace Upload {
2241
- type Response = operations['StorageController_uploadKycFile']['responses']['201']['content']['application/json'];
2242
- }
2243
- namespace GetFileUrl {
2244
- type Request = {
2245
- path: string;
2246
- };
2247
- type Response = operations['StorageController_getFileUrl']['responses']['200']['content']['application/octet-stream'];
2248
- }
2249
- namespace GetFileById {
2250
- interface Request {
2251
- folderId: string;
2252
- fileId: string;
2253
- }
2254
- type Response = operations['StorageController_getKycFile']['responses']['200']['content']['application/octet-stream'];
2255
- }
2256
- }
2257
- }
2258
- }