squarefi-bff-api-module 1.35.2 → 1.35.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.
@@ -7143,7 +7143,7 @@ export interface paths {
7143
7143
  /** @description Include shared wallets (via wallets_users table) */
7144
7144
  include_shared?: boolean;
7145
7145
  /** @description Field to sort the merged owned + shared wallet list by */
7146
- sort_by?: "created_at" | "updated_at" | "name";
7146
+ sort_by?: "created_at" | "name";
7147
7147
  /** @description Sort direction (case-insensitive) */
7148
7148
  sort_order?: "ASC" | "DESC";
7149
7149
  };
@@ -7165,8 +7165,6 @@ export interface paths {
7165
7165
  data: {
7166
7166
  /** Format: uuid */
7167
7167
  uuid: string;
7168
- /** @description Deprecated field */
7169
- type?: string;
7170
7168
  /** @description Wallet display name (mirrors POST/PATCH responses) */
7171
7169
  name: string | null;
7172
7170
  /** @description Avatar URL for the wallet */
@@ -7272,8 +7270,6 @@ export interface paths {
7272
7270
  data: {
7273
7271
  /** Format: uuid */
7274
7272
  uuid: string;
7275
- /** @description Deprecated field */
7276
- type?: string;
7277
7273
  /** @example Golden Vault 42 */
7278
7274
  name: string | null;
7279
7275
  logo_url: string | null;
@@ -7542,8 +7538,6 @@ export interface paths {
7542
7538
  data: {
7543
7539
  /** Format: uuid */
7544
7540
  uuid: string;
7545
- /** @description Deprecated field */
7546
- type?: string;
7547
7541
  name: string | null;
7548
7542
  logo_url: string | null;
7549
7543
  /** Format: uuid */
@@ -7570,7 +7564,7 @@ export interface paths {
7570
7564
  decimal: number;
7571
7565
  amount: number;
7572
7566
  fiat_amount: number;
7573
- details: Record<string, never>[];
7567
+ details: components["schemas"]["AggregatedBalanceDetails"][];
7574
7568
  }[];
7575
7569
  fiat_accounts: Record<string, never>[];
7576
7570
  /** @description User's base currency */
@@ -7778,8 +7772,6 @@ export interface paths {
7778
7772
  data: {
7779
7773
  /** Format: uuid */
7780
7774
  uuid: string;
7781
- /** @description Deprecated field */
7782
- type?: string;
7783
7775
  /** Format: uuid */
7784
7776
  tenant_id: string;
7785
7777
  /** Format: date-time */
@@ -8205,29 +8197,9 @@ export interface paths {
8205
8197
  content: {
8206
8198
  "application/json": {
8207
8199
  /** @example true */
8208
- success?: boolean;
8209
- data?: {
8210
- id?: number;
8211
- /** Format: date-time */
8212
- created_at?: string;
8213
- type?: string;
8214
- status?: string;
8215
- amount?: number;
8216
- method?: string;
8217
- record_type?: string;
8218
- /** Format: uuid */
8219
- wallet_id?: string;
8220
- /** @description Currency information */
8221
- currency?: Record<string, never>;
8222
- /** @description Transaction metadata */
8223
- meta?: Record<string, never>;
8224
- }[];
8225
- pagination?: {
8226
- offset?: number;
8227
- limit?: number;
8228
- total?: number;
8229
- has_more?: boolean;
8230
- };
8200
+ success: boolean;
8201
+ data: components["schemas"]["Transaction"][];
8202
+ pagination: components["schemas"]["PaginationResponse"];
8231
8203
  };
8232
8204
  };
8233
8205
  };
@@ -8385,23 +8357,8 @@ export interface paths {
8385
8357
  content: {
8386
8358
  "application/json": {
8387
8359
  /** @example true */
8388
- success?: boolean;
8389
- data?: {
8390
- id?: number;
8391
- /** Format: date-time */
8392
- created_at?: string;
8393
- type?: string;
8394
- status?: string;
8395
- amount?: number;
8396
- method?: string;
8397
- record_type?: string;
8398
- /** Format: uuid */
8399
- wallet_id?: string;
8400
- /** @description Currency information */
8401
- currency?: Record<string, never>;
8402
- /** @description Transaction metadata */
8403
- meta?: Record<string, never>;
8404
- };
8360
+ success: boolean;
8361
+ data: components["schemas"]["Transaction"];
8405
8362
  };
8406
8363
  };
8407
8364
  };
@@ -9261,10 +9218,10 @@ export interface components {
9261
9218
  */
9262
9219
  OrderTypeId: "EXCHANGE_OMNI" | "EXCHANGE_OMNI_ONRAMP" | "EXCHANGE_OMNI_OFFRAMP" | "EXCHANGE_OMNI_CRYPTO" | "EXCHANGE_CRYPTO_INTERNAL" | "L2F_ACH_ONRAMP" | "L2F_ACH_OFFRAMP" | "L2F_SEPA_ONRAMP" | "L2F_SEPA_OFFRAMP" | "L2F_SWIFT_ONRAMP" | "L2F_SWIFT_OFFRAMP" | "L2F_WIRE_ONRAMP" | "L2F_WIRE_OFFRAMP" | "L2F_CHAPS_ONRAMP" | "L2F_CHAPS_OFFRAMP" | "L2F_FPS_ONRAMP" | "L2F_FPS_OFFRAMP" | "BRL_WIRE_ONRAMP" | "BRL_WIRE_OFFRAMP" | "BRL_ACH_ONRAMP" | "BRL_ACH_OFFRAMP" | "OMNIBUS_CRYPTO_TRANSFER" | "OMNIBUS_CRYPTO_WITHDRAWAL" | "OMNIBUS_INTERNAL_TRANSFER" | "SEGREGATED_CRYPTO_TRANSFER" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_PREPAID" | "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_WHOLESALE" | "WITHDRAW_CARD_PREPAID" | "WITHDRAW_CARD_SUBACCOUNT" | "REFUND_CARD_PREPAID" | "REFUND_CARD_SUBACCOUNT" | "RN_CARDS_OFFRAMP" | "CARD_ISSUING_FEE";
9263
9220
  PaginationResponse: {
9264
- offset?: number;
9265
- limit?: number;
9266
- total?: number;
9267
- has_more?: boolean;
9221
+ offset: number;
9222
+ limit: number;
9223
+ total: number;
9224
+ has_more: boolean;
9268
9225
  };
9269
9226
  ErrorResponse: {
9270
9227
  /** @example false */
@@ -9551,6 +9508,79 @@ export interface components {
9551
9508
  /** Format: date-time */
9552
9509
  created_at: string;
9553
9510
  };
9511
+ /** @description Unified currency record. `is_crypto: true` identifies a blockchain asset, `false` a fiat one. The joined `meta` JSONB blob carries currency-specific details (e.g. `chain_id`/contract for crypto, ISO code/country for fiat). */
9512
+ Currency: {
9513
+ id?: number;
9514
+ /** Format: uuid */
9515
+ uuid: string;
9516
+ icon?: string | null;
9517
+ name: string;
9518
+ symbol: string;
9519
+ is_crypto: boolean;
9520
+ decimal: number;
9521
+ /** @description Currency-specific metadata blob */
9522
+ meta: {
9523
+ [key: string]: unknown;
9524
+ };
9525
+ };
9526
+ /** @description Transaction metadata. All fields are optional — presence depends on the transaction type/method (crypto transfer, card spend, fiat off-ramp, internal exchange, etc.). Unknown keys may also appear and should be ignored by clients. */
9527
+ TransactionMeta: {
9528
+ billing_amount?: number;
9529
+ billing_amount_currency?: string;
9530
+ transaction_amount?: number;
9531
+ transaction_amount_currency?: string;
9532
+ fee?: number;
9533
+ fee_currency?: string;
9534
+ network_fee?: number;
9535
+ network_fee_currency?: string;
9536
+ exchange_rate?: number;
9537
+ from_address?: string;
9538
+ to_address?: string;
9539
+ /** Format: uuid */
9540
+ from_user_data?: string;
9541
+ /** Format: uuid */
9542
+ to_user_data?: string;
9543
+ to_card_id?: string;
9544
+ to_card_last4?: string;
9545
+ to_fiat_account_id?: string;
9546
+ to_vendor_id?: string;
9547
+ txid?: string;
9548
+ /** Format: uuid */
9549
+ order_id?: string;
9550
+ } & {
9551
+ [key: string]: unknown;
9552
+ };
9553
+ /** @description Wallet transaction record with embedded currency and metadata */
9554
+ Transaction: {
9555
+ id: number;
9556
+ /** Format: date-time */
9557
+ created_at: string;
9558
+ type: string;
9559
+ status: string;
9560
+ amount: number;
9561
+ method: string;
9562
+ record_type: string;
9563
+ /** Format: uuid */
9564
+ wallet_id: string;
9565
+ currency: components["schemas"]["Currency"];
9566
+ meta: components["schemas"]["TransactionMeta"];
9567
+ };
9568
+ /** @description A single underlying balance row contributing to an aggregated `balance[]` entry. The aggregated entry merges all rows that share the same symbol; each `details[]` item exposes the per-row breakdown so clients can show per-chain / per-account amounts. */
9569
+ AggregatedBalanceDetails: {
9570
+ /** Format: uuid */
9571
+ uuid: string;
9572
+ amount: number;
9573
+ fiat_amount: number;
9574
+ currency: components["schemas"]["Currency"];
9575
+ /** @description Snapshot of the underlying crypto record from this balance row */
9576
+ crypto?: {
9577
+ [key: string]: unknown;
9578
+ };
9579
+ /** Format: uuid */
9580
+ crypto_id?: string | null;
9581
+ /** Format: uuid */
9582
+ wallet_id?: string;
9583
+ };
9554
9584
  };
9555
9585
  responses: {
9556
9586
  /** @description Authentication credentials are missing or invalid */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.35.2",
3
+ "version": "1.35.3",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",