squarefi-bff-api-module 1.34.1 → 1.34.3

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.
@@ -630,23 +630,6 @@ export interface paths {
630
630
  patch?: never;
631
631
  trace?: never;
632
632
  };
633
- "/issuing/programs": {
634
- parameters: {
635
- query?: never;
636
- header?: never;
637
- path?: never;
638
- cookie?: never;
639
- };
640
- /** Get issuing Programs */
641
- get: operations["ProgramsController_getPrograms"];
642
- put?: never;
643
- post?: never;
644
- delete?: never;
645
- options?: never;
646
- head?: never;
647
- patch?: never;
648
- trace?: never;
649
- };
650
633
  "/exchange/rates": {
651
634
  parameters: {
652
635
  query?: never;
@@ -667,58 +650,6 @@ export interface paths {
667
650
  patch?: never;
668
651
  trace?: never;
669
652
  };
670
- "/fiat-accounts/{wallet_id}": {
671
- parameters: {
672
- query?: never;
673
- header?: never;
674
- path?: never;
675
- cookie?: never;
676
- };
677
- /** List of fiat accounts by wallet id */
678
- get: operations["FiatAccountsController_findAllByWallet"];
679
- put?: never;
680
- /** Create a new fiat account */
681
- post: operations["FiatAccountsController_create"];
682
- delete?: never;
683
- options?: never;
684
- head?: never;
685
- patch?: never;
686
- trace?: never;
687
- };
688
- "/fiat-accounts/{wallet_id}/{id}": {
689
- parameters: {
690
- query?: never;
691
- header?: never;
692
- path?: never;
693
- cookie?: never;
694
- };
695
- /** Get a specific fiat account by ID */
696
- get: operations["FiatAccountsController_findOne"];
697
- put?: never;
698
- post?: never;
699
- delete?: never;
700
- options?: never;
701
- head?: never;
702
- patch?: never;
703
- trace?: never;
704
- };
705
- "/fiat-accounts/{wallet_id}/{id}/transactions": {
706
- parameters: {
707
- query?: never;
708
- header?: never;
709
- path?: never;
710
- cookie?: never;
711
- };
712
- /** Get transactions for a specific Fiat Account by ID */
713
- get: operations["TransactionsController_findAll"];
714
- put?: never;
715
- post?: never;
716
- delete?: never;
717
- options?: never;
718
- head?: never;
719
- patch?: never;
720
- trace?: never;
721
- };
722
653
  "/developer/accesses": {
723
654
  parameters: {
724
655
  query?: never;
@@ -1703,7 +1634,7 @@ export interface components {
1703
1634
  };
1704
1635
  CryptoCurrencyDto: {
1705
1636
  uuid: string;
1706
- decimal: number | null;
1637
+ decimal: number;
1707
1638
  render_decimal: number;
1708
1639
  is_stablecoin: boolean;
1709
1640
  is_memo: boolean;
@@ -1725,7 +1656,7 @@ export interface components {
1725
1656
  };
1726
1657
  FiatCurrencyDto: {
1727
1658
  uuid: string;
1728
- decimal: number | null;
1659
+ decimal: number;
1729
1660
  render_decimal: number;
1730
1661
  is_stablecoin: boolean;
1731
1662
  is_memo: boolean;
@@ -1740,33 +1671,6 @@ export interface components {
1740
1671
  total: number;
1741
1672
  data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
1742
1673
  };
1743
- KycRailTermsAndConditionsEntity: {
1744
- id: string;
1745
- description: string | null;
1746
- kyc_rail_id: string;
1747
- link: string;
1748
- title: string;
1749
- };
1750
- KycRailEntity: {
1751
- id: string;
1752
- code: string | null;
1753
- name: string;
1754
- /** @enum {string|null} */
1755
- type: "individual" | "business" | "universal" | null;
1756
- /** @description Current terms and conditions data */
1757
- terms_and_conditions?: components["schemas"]["KycRailTermsAndConditionsEntity"][];
1758
- };
1759
- IssuingProgramDto: {
1760
- id: string;
1761
- /** @enum {string|null} */
1762
- form_factor: "PHYSICAL" | "VIRTUAL" | null;
1763
- /** @enum {string|null} */
1764
- brand: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY" | null;
1765
- tokenizable: boolean;
1766
- /** @enum {string|null} */
1767
- type: "CREDIT" | "DEBIT" | null;
1768
- kyc_rail: components["schemas"]["KycRailEntity"] | null;
1769
- };
1770
1674
  ExchangeRateDto: {
1771
1675
  from: string;
1772
1676
  from_uuid: string | null;
@@ -1777,142 +1681,6 @@ export interface components {
1777
1681
  to: string;
1778
1682
  to_uuid: string | null;
1779
1683
  };
1780
- IssuingProgram: {
1781
- id: string;
1782
- /** @enum {string|null} */
1783
- form_factor: "PHYSICAL" | "VIRTUAL" | null;
1784
- /** @enum {string|null} */
1785
- brand: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY" | null;
1786
- tokenizable: boolean;
1787
- /** @enum {string|null} */
1788
- type: "CREDIT" | "DEBIT" | null;
1789
- kyc_rail: components["schemas"]["KycRailEntity"] | null;
1790
- };
1791
- FiatAccountIssuingCardDto: {
1792
- card_id: string;
1793
- program_id: string;
1794
- wallet_id: string;
1795
- nick_name: string;
1796
- name_on_card?: string;
1797
- /** @enum {string} */
1798
- card_status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
1799
- /** @enum {string} */
1800
- brand?: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY";
1801
- /** @enum {string} */
1802
- type?: "CREDIT" | "DEBIT";
1803
- /** @enum {string} */
1804
- form_factor: "PHYSICAL" | "VIRTUAL";
1805
- tokenizable: boolean;
1806
- request_id: string;
1807
- created_at: string;
1808
- last4?: string;
1809
- };
1810
- FiatAccountDto: {
1811
- id: string;
1812
- balance: number | null;
1813
- nick_name: string | null;
1814
- wallet_id: string;
1815
- created_at: string;
1816
- /** @enum {string} */
1817
- status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
1818
- issuing_program: components["schemas"]["IssuingProgram"] | null;
1819
- currency: components["schemas"]["FiatCurrencyDto"];
1820
- total_balance: number;
1821
- realtimeauth_balance: number;
1822
- fiat_balance: number;
1823
- cards_count: number;
1824
- cards?: components["schemas"]["FiatAccountIssuingCardDto"][];
1825
- };
1826
- CreateFiatAccountDto: {
1827
- program_id: string;
1828
- };
1829
- FiatAccountEntity: {
1830
- id: string;
1831
- balance: number | null;
1832
- nick_name: string | null;
1833
- wallet_id: string;
1834
- created_at: string;
1835
- account_currency: string;
1836
- /** @enum {string} */
1837
- type: "balance" | "prepaid";
1838
- program_id: string | null;
1839
- /** @enum {string} */
1840
- status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
1841
- issuing_program: components["schemas"]["IssuingProgram"] | null;
1842
- };
1843
- FiatAccountDetailsDto: {
1844
- iban: string;
1845
- bank_name: string;
1846
- swift_code: string;
1847
- bank_address: string;
1848
- receiver_name: string;
1849
- payment_details: string;
1850
- reference_number: string;
1851
- registration_number: string;
1852
- };
1853
- FiatAccountRealtimeauthEntity: {
1854
- id: string;
1855
- crypto_token: Record<string, never> | null;
1856
- priority: Record<string, never> | null;
1857
- fiat_account: Record<string, never> | null;
1858
- };
1859
- FiatAccountOrderTypeEntity: {
1860
- /** @enum {string|null} */
1861
- order_type: "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_PREPAID" | "WITHDRAWAL_CRYPTO" | "DEPOSIT_CRYPTO" | "DEPOSIT_FIAT_SEPA" | "DEPOSIT_FIAT_SWIFT" | "EXCHANGE_CRYPTO_INTERNAL" | "WITHDRAWAL_FIAT_SEPA" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_WHOLESALE" | "CARD_ISSUING_FEE" | null;
1862
- };
1863
- FiatAccountExtendedDto: {
1864
- id: string;
1865
- balance: number | null;
1866
- nick_name: string | null;
1867
- wallet_id: string;
1868
- created_at: string;
1869
- /** @enum {string} */
1870
- status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
1871
- issuing_program: components["schemas"]["IssuingProgram"] | null;
1872
- currency: components["schemas"]["FiatCurrencyDto"];
1873
- total_balance: number;
1874
- realtimeauth_balance: number;
1875
- fiat_balance: number;
1876
- cards_count: number;
1877
- cards?: components["schemas"]["FiatAccountIssuingCardDto"][];
1878
- account_details: components["schemas"]["FiatAccountDetailsDto"];
1879
- realtime_auth: components["schemas"]["FiatAccountRealtimeauthEntity"][];
1880
- payment_types: components["schemas"]["FiatAccountOrderTypeEntity"][];
1881
- };
1882
- MerchantDto: {
1883
- name: string;
1884
- category_code: string;
1885
- city: string;
1886
- country: string;
1887
- };
1888
- FiatAccountTransactionDto: {
1889
- vendor_transaction_id: string;
1890
- created_at: string;
1891
- cleared_at: string;
1892
- merchant: components["schemas"]["MerchantDto"];
1893
- last4: string;
1894
- title: string;
1895
- billing_amount: number;
1896
- billing_currency: string;
1897
- transaction_amount: number;
1898
- transaction_currency: string;
1899
- vendor_sub_account_id: string;
1900
- failure_reason: string;
1901
- status: string;
1902
- /** @enum {string} */
1903
- transaction_type: "AUTHORIZATION" | "CLEARING" | "REFUND" | "REVERSAL" | "ORIGINAL_CREDIT" | "FEE" | "DEPOSIT" | "WITHDRAWAL";
1904
- is_credit: boolean;
1905
- has_receipt: boolean;
1906
- adjustment_type: string;
1907
- review_status: string;
1908
- group: string;
1909
- total_amount: number;
1910
- };
1911
- FindAllFiatAccountTransactionsDto: {
1912
- has_more: boolean;
1913
- count: number;
1914
- data: components["schemas"]["FiatAccountTransactionDto"][];
1915
- };
1916
1684
  CreateDeveloperAccessDto: {
1917
1685
  name: string;
1918
1686
  /** @enum {string} */
@@ -2455,7 +2223,7 @@ export interface components {
2455
2223
  uuid: string;
2456
2224
  chain: string | null;
2457
2225
  symbol: string;
2458
- decimal: number | null;
2226
+ decimal: number;
2459
2227
  contract: string | null;
2460
2228
  render_decimal: number;
2461
2229
  meta: components["schemas"]["CryptoEntity"];
@@ -2534,6 +2302,7 @@ export interface components {
2534
2302
  enable_exchange: boolean;
2535
2303
  enable_auto_exchange: boolean;
2536
2304
  enable_crypto_withdrawal: boolean;
2305
+ enable_referral_program: boolean;
2537
2306
  readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
2538
2307
  base_currency: string;
2539
2308
  };
@@ -3937,34 +3706,6 @@ export interface operations {
3937
3706
  };
3938
3707
  };
3939
3708
  };
3940
- ProgramsController_getPrograms: {
3941
- parameters: {
3942
- query?: never;
3943
- header?: never;
3944
- path?: never;
3945
- cookie?: never;
3946
- };
3947
- requestBody?: never;
3948
- responses: {
3949
- 200: {
3950
- headers: {
3951
- [name: string]: unknown;
3952
- };
3953
- content: {
3954
- "application/json": components["schemas"]["PaginationResponseDto"] & {
3955
- data?: unknown;
3956
- };
3957
- };
3958
- };
3959
- /** @description Unauthorized */
3960
- 401: {
3961
- headers: {
3962
- [name: string]: unknown;
3963
- };
3964
- content?: never;
3965
- };
3966
- };
3967
- };
3968
3709
  ExchangeRatesController_findAll: {
3969
3710
  parameters: {
3970
3711
  query: {
@@ -3995,170 +3736,6 @@ export interface operations {
3995
3736
  };
3996
3737
  };
3997
3738
  };
3998
- FiatAccountsController_findAllByWallet: {
3999
- parameters: {
4000
- query?: {
4001
- /** @description Number of records to skip */
4002
- offset?: number;
4003
- /** @description Number of records to return */
4004
- limit?: number;
4005
- /** @description Show cards */
4006
- show_cards?: boolean;
4007
- };
4008
- header?: never;
4009
- path: {
4010
- /** @description UUID of the wallet */
4011
- wallet_id: string;
4012
- };
4013
- cookie?: never;
4014
- };
4015
- requestBody?: never;
4016
- responses: {
4017
- /** @description List of Fiat Accounts */
4018
- 200: {
4019
- headers: {
4020
- [name: string]: unknown;
4021
- };
4022
- content: {
4023
- "application/json": components["schemas"]["PaginationResponseDto"] & {
4024
- data?: unknown;
4025
- };
4026
- };
4027
- };
4028
- /** @description Unauthorized */
4029
- 401: {
4030
- headers: {
4031
- [name: string]: unknown;
4032
- };
4033
- content?: never;
4034
- };
4035
- /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4036
- 403: {
4037
- headers: {
4038
- [name: string]: unknown;
4039
- };
4040
- content?: never;
4041
- };
4042
- };
4043
- };
4044
- FiatAccountsController_create: {
4045
- parameters: {
4046
- query?: never;
4047
- header?: never;
4048
- path: {
4049
- /** @description UUID of the wallet */
4050
- wallet_id: string;
4051
- };
4052
- cookie?: never;
4053
- };
4054
- requestBody: {
4055
- content: {
4056
- "application/json": components["schemas"]["CreateFiatAccountDto"];
4057
- };
4058
- };
4059
- responses: {
4060
- 200: {
4061
- headers: {
4062
- [name: string]: unknown;
4063
- };
4064
- content: {
4065
- "application/json": components["schemas"]["FiatAccountEntity"];
4066
- };
4067
- };
4068
- /** @description Unauthorized */
4069
- 401: {
4070
- headers: {
4071
- [name: string]: unknown;
4072
- };
4073
- content?: never;
4074
- };
4075
- /** @description You don't have access to current wallet. Allowed roles: owner */
4076
- 403: {
4077
- headers: {
4078
- [name: string]: unknown;
4079
- };
4080
- content?: never;
4081
- };
4082
- };
4083
- };
4084
- FiatAccountsController_findOne: {
4085
- parameters: {
4086
- query?: never;
4087
- header?: never;
4088
- path: {
4089
- /** @description UUID of the wallet */
4090
- wallet_id: string;
4091
- /** @description Fiat Account ID */
4092
- id: string;
4093
- };
4094
- cookie?: never;
4095
- };
4096
- requestBody?: never;
4097
- responses: {
4098
- 200: {
4099
- headers: {
4100
- [name: string]: unknown;
4101
- };
4102
- content: {
4103
- "application/json": components["schemas"]["FiatAccountExtendedDto"];
4104
- };
4105
- };
4106
- /** @description Unauthorized */
4107
- 401: {
4108
- headers: {
4109
- [name: string]: unknown;
4110
- };
4111
- content?: never;
4112
- };
4113
- /** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
4114
- 403: {
4115
- headers: {
4116
- [name: string]: unknown;
4117
- };
4118
- content?: never;
4119
- };
4120
- };
4121
- };
4122
- TransactionsController_findAll: {
4123
- parameters: {
4124
- query?: {
4125
- offset?: number;
4126
- limit?: number;
4127
- };
4128
- header?: never;
4129
- path: {
4130
- wallet_id: string;
4131
- /** @description Fiat Account ID */
4132
- id: string;
4133
- };
4134
- cookie?: never;
4135
- };
4136
- requestBody?: never;
4137
- responses: {
4138
- 200: {
4139
- headers: {
4140
- [name: string]: unknown;
4141
- };
4142
- content: {
4143
- "application/json": components["schemas"]["FindAllFiatAccountTransactionsDto"];
4144
- };
4145
- };
4146
- /** @description Unauthorized */
4147
- 401: {
4148
- headers: {
4149
- [name: string]: unknown;
4150
- };
4151
- content?: never;
4152
- };
4153
- /** @description You don't have access to current wallet. Allowed roles: owner */
4154
- 403: {
4155
- headers: {
4156
- [name: string]: unknown;
4157
- };
4158
- content?: never;
4159
- };
4160
- };
4161
- };
4162
3739
  DeveloperAccessesController_findAll: {
4163
3740
  parameters: {
4164
3741
  query?: never;
@@ -119,7 +119,8 @@ export declare enum OrderType {
119
119
  OMNIBUS_CRYPTO_WITHDRAWAL = "OMNIBUS_CRYPTO_WITHDRAWAL",
120
120
  OMNIBUS_INTERNAL_TRANSFER = "OMNIBUS_INTERNAL_TRANSFER",
121
121
  WITHDRAW_CARD_PREPAID = "WITHDRAW_CARD_PREPAID",
122
- WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT"
122
+ WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT",
123
+ AUTO_CONVERT_CRYPTO = "AUTO_CONVERT_CRYPTO"
123
124
  }
124
125
  export declare enum WalletTransactionRecordType {
125
126
  CARD_PROVIDER_DEPOSIT = "CARD_PROVIDER_DEPOSIT",
@@ -187,7 +188,8 @@ export declare enum WalletTransactionRecordType {
187
188
  HIFI_SEPA_WITHDRAWAL = "HIFI_SEPA_WITHDRAWAL",
188
189
  HIFI_CRYPTO_TRANSFER = "HIFI_CRYPTO_TRANSFER",
189
190
  HIFI_CRYPTO_WITHDRAWAL = "HIFI_CRYPTO_WITHDRAWAL",
190
- HIFI_CRYPTO_DEPOSIT = "HIFI_CRYPTO_DEPOSIT"
191
+ HIFI_CRYPTO_DEPOSIT = "HIFI_CRYPTO_DEPOSIT",
192
+ AUTO_CONVERT_CRYPTO = "AUTO_CONVERT_CRYPTO"
191
193
  }
192
194
  export declare enum RequestStatus {
193
195
  NONE = "none",
package/dist/constants.js CHANGED
@@ -121,6 +121,7 @@ export var OrderType;
121
121
  OrderType["OMNIBUS_INTERNAL_TRANSFER"] = "OMNIBUS_INTERNAL_TRANSFER";
122
122
  OrderType["WITHDRAW_CARD_PREPAID"] = "WITHDRAW_CARD_PREPAID";
123
123
  OrderType["WITHDRAW_CARD_SUBACCOUNT"] = "WITHDRAW_CARD_SUBACCOUNT";
124
+ OrderType["AUTO_CONVERT_CRYPTO"] = "AUTO_CONVERT_CRYPTO";
124
125
  })(OrderType || (OrderType = {}));
125
126
  export var WalletTransactionRecordType;
126
127
  (function (WalletTransactionRecordType) {
@@ -190,6 +191,7 @@ export var WalletTransactionRecordType;
190
191
  WalletTransactionRecordType["HIFI_CRYPTO_TRANSFER"] = "HIFI_CRYPTO_TRANSFER";
191
192
  WalletTransactionRecordType["HIFI_CRYPTO_WITHDRAWAL"] = "HIFI_CRYPTO_WITHDRAWAL";
192
193
  WalletTransactionRecordType["HIFI_CRYPTO_DEPOSIT"] = "HIFI_CRYPTO_DEPOSIT";
194
+ WalletTransactionRecordType["AUTO_CONVERT_CRYPTO"] = "AUTO_CONVERT_CRYPTO";
193
195
  })(WalletTransactionRecordType || (WalletTransactionRecordType = {}));
194
196
  export var RequestStatus;
195
197
  (function (RequestStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.34.1",
3
+ "version": "1.34.3",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",