squarefi-bff-api-module 1.36.64 → 1.36.65

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.
@@ -2538,6 +2538,10 @@ export interface paths {
2538
2538
  sub_account_type?: "prepaid" | "balance";
2539
2539
  /** @description Filter cards by status.
2540
2540
  * Accepts a single value or a comma-separated list, e.g. `status=ACTIVE,CANCELED`.
2541
+ *
2542
+ * Cards whose creation was refused — FAILED with no card behind them — are left
2543
+ * out of the listing: they carry no number, no balance and nothing to act on.
2544
+ * Pass `status=FAILED` to get them back.
2541
2545
  * */
2542
2546
  status?: ("ACTIVE" | "INACTIVE" | "SUSPENDED" | "CANCELED")[];
2543
2547
  /** @description Filter cards by last 4 digits of the card number (partial, case-insensitive match) */
@@ -2696,6 +2696,10 @@ export interface paths {
2696
2696
  sub_account_type?: "prepaid" | "balance";
2697
2697
  /** @description Filter cards by status (matches issuing_cards.card_status).
2698
2698
  * Accepts a single value or a comma-separated list, e.g. `status=ACTIVE,FROZEN`.
2699
+ *
2700
+ * Cards whose creation the vendor refused — FAILED with no card behind them —
2701
+ * are left out of the listing: they carry no number, no balance and nothing the
2702
+ * client can act on. Pass `status=FAILED` to get them back.
2699
2703
  * */
2700
2704
  status?: ("ACTIVE" | "INACTIVE" | "FROZEN" | "CANCELED" | "CLOSED" | "BLOCKED" | "FAILED" | "PENDING")[];
2701
2705
  /** @description Filter cards by last 4 digits of the card number (partial, case-insensitive match) */
@@ -11661,9 +11665,14 @@ export interface paths {
11661
11665
  *
11662
11666
  * **Authentication**: Bearer token with x-tenant-id header required
11663
11667
  *
11664
- * **Access Control**: Any active wallet member. The scoped `user` role receives a shell-only
11665
- * response (`uuid`, `name`, `display_name`, `tenant_id`, `kyc_info`, `created_at` + the role fields) —
11666
- * `logo_url`, `balance`, `fiat_accounts` and the totals are omitted for that role.
11668
+ * **Access Control**: Any active wallet member. The response shape depends on the caller's role and
11669
+ * is told apart by `access_role`:
11670
+ * - `owner` / `admin` / `auditor` the full wallet (`WalletDetails`): identity, KYC, `balance`,
11671
+ * `fiat_accounts`, `base_currency` and the totals.
11672
+ * - `user` — a shell-only wallet (`WalletDetailsScopedUser`): `uuid`, `id`, `name`, `display_name`,
11673
+ * `tenant_id`, `kyc_info`, `created_at` + the role fields. `logo_url`, `balance`, `fiat_accounts`,
11674
+ * `base_currency`, `fiat_total`, `crypto_total`, `pending_balance` and `total_amount` are absent
11675
+ * (not null) for that role — check `access_role` before reading them.
11667
11676
  *
11668
11677
  */
11669
11678
  get: {
@@ -11692,62 +11701,7 @@ export interface paths {
11692
11701
  "application/json": {
11693
11702
  /** @example true */
11694
11703
  success: boolean;
11695
- data: {
11696
- /** Format: uuid */
11697
- uuid: string;
11698
- name: string | null;
11699
- /**
11700
- * @description Computed label — wallet name, else KYC-derived (business_name / first+last), else "New account". Always present.
11701
- * @example Acme LLC
11702
- */
11703
- display_name?: string;
11704
- logo_url: string | null;
11705
- /** Format: uuid */
11706
- tenant_id: string;
11707
- /** Format: date-time */
11708
- created_at: string;
11709
- kyc_info: {
11710
- type: string;
11711
- status: string;
11712
- business_name: string | null;
11713
- first_name: string | null;
11714
- last_name: string | null;
11715
- email: string | null;
11716
- phone: string | null;
11717
- } | null;
11718
- /** @description Aggregated crypto balances */
11719
- balance: {
11720
- symbol: string;
11721
- icon?: string | null;
11722
- name: string;
11723
- is_crypto: boolean;
11724
- decimal: number;
11725
- amount: number;
11726
- fiat_amount: number;
11727
- details: components["schemas"]["AggregatedBalanceDetails"][];
11728
- }[];
11729
- fiat_accounts: Record<string, never>[];
11730
- /** @description User's base currency */
11731
- base_currency: string | null;
11732
- fiat_total: number;
11733
- crypto_total: number;
11734
- pending_balance: number;
11735
- total_amount: number;
11736
- /**
11737
- * @description Legacy alias of `access_role`. Always equals `access_role` when
11738
- * present. Kept for backward compatibility — prefer `access_role`.
11739
- * Only present when called via member access.
11740
- *
11741
- * @enum {string}
11742
- */
11743
- role?: "owner" | "admin" | "user" | "auditor";
11744
- /**
11745
- * @description User's role for this wallet (only present when called via member access)
11746
- * @enum {string}
11747
- */
11748
- access_role?: "owner" | "admin" | "user" | "auditor";
11749
- is_owner?: boolean;
11750
- };
11704
+ data: components["schemas"]["WalletDetails"] | components["schemas"]["WalletDetailsScopedUser"];
11751
11705
  };
11752
11706
  };
11753
11707
  };
@@ -15137,6 +15091,103 @@ export interface components {
15137
15091
  /** Format: date-time */
15138
15092
  created_at: string;
15139
15093
  };
15094
+ /** @description KYC entity attached to the wallet. `null` when the wallet has no KYC entity yet. */
15095
+ WalletKycInfo: {
15096
+ type: string;
15097
+ status: string;
15098
+ business_name: string | null;
15099
+ first_name: string | null;
15100
+ last_name: string | null;
15101
+ email: string | null;
15102
+ phone: string | null;
15103
+ };
15104
+ /** @description One aggregated crypto balance of the wallet: every balance row sharing the same symbol is merged into a single entry, and `details[]` keeps the per-row breakdown. */
15105
+ WalletBalanceEntry: {
15106
+ symbol: string;
15107
+ icon?: string | null;
15108
+ name: string;
15109
+ is_crypto: boolean;
15110
+ decimal: number;
15111
+ amount: number;
15112
+ /** @description Amount converted to `base_currency` */
15113
+ fiat_amount: number;
15114
+ details: components["schemas"]["AggregatedBalanceDetails"][];
15115
+ };
15116
+ /** @description Full wallet read for the `owner`, `admin` and `auditor` roles: identity, KYC, aggregated balances, fiat accounts and the totals. The scoped `user` role never receives this shape — see `WalletDetailsScopedUser`; the two are told apart by `access_role`. */
15117
+ WalletDetails: {
15118
+ /** Format: uuid */
15119
+ uuid: string;
15120
+ /** @description Legacy wallet identifier. Address the wallet by `uuid`; `id` is informational only. */
15121
+ id: string | null;
15122
+ name: string | null;
15123
+ /**
15124
+ * @description Computed label — wallet name, else KYC-derived (business_name / first+last), else "New account". Always present.
15125
+ * @example Acme LLC
15126
+ */
15127
+ display_name: string;
15128
+ logo_url: string | null;
15129
+ /** Format: uuid */
15130
+ tenant_id: string;
15131
+ /** Format: date-time */
15132
+ created_at: string;
15133
+ kyc_info: components["schemas"]["WalletKycInfo"] | null;
15134
+ /** @description Aggregated crypto balances */
15135
+ balance: components["schemas"]["WalletBalanceEntry"][];
15136
+ fiat_accounts: {
15137
+ [key: string]: unknown;
15138
+ }[];
15139
+ /** @description The caller's base currency; every `fiat_amount` and total is expressed in it. `null` when the caller has none. */
15140
+ base_currency: string | null;
15141
+ fiat_total: number;
15142
+ crypto_total: number;
15143
+ pending_balance: number;
15144
+ total_amount: number;
15145
+ /**
15146
+ * @description The caller's role for this wallet. Never `user` on this shape. (enum property replaced by openapi-typescript)
15147
+ * @enum {string}
15148
+ */
15149
+ access_role: "owner" | "admin" | "auditor";
15150
+ /**
15151
+ * @description Legacy alias of `access_role`. Always equals `access_role`. Kept for backward compatibility — prefer `access_role`.
15152
+ * @enum {string}
15153
+ */
15154
+ role: "owner" | "admin" | "auditor";
15155
+ /** @description `true` exactly when `access_role` is `owner`. */
15156
+ is_owner: boolean;
15157
+ };
15158
+ /** @description Shell-only wallet read for the scoped `user` role: identity, KYC and display name. No main-account financials are ever included — `logo_url`, `balance`, `fiat_accounts`, `base_currency`, `fiat_total`, `crypto_total`, `pending_balance` and `total_amount` are absent, not null. Check `access_role` before reading balances. */
15159
+ WalletDetailsScopedUser: {
15160
+ /** Format: uuid */
15161
+ uuid: string;
15162
+ /** @description Legacy wallet identifier. Address the wallet by `uuid`; `id` is informational only. */
15163
+ id: string | null;
15164
+ name: string | null;
15165
+ /**
15166
+ * @description Computed label — wallet name, else KYC-derived (business_name / first+last), else "New account". Always present.
15167
+ * @example Acme LLC
15168
+ */
15169
+ display_name: string;
15170
+ /** Format: uuid */
15171
+ tenant_id: string;
15172
+ /** Format: date-time */
15173
+ created_at: string;
15174
+ kyc_info: components["schemas"]["WalletKycInfo"] | null;
15175
+ /**
15176
+ * @description Always `user` on this shape. (enum property replaced by openapi-typescript)
15177
+ * @enum {string}
15178
+ */
15179
+ access_role: "user";
15180
+ /**
15181
+ * @description Legacy alias of `access_role`. Always equals `access_role`. Kept for backward compatibility — prefer `access_role`.
15182
+ * @enum {string}
15183
+ */
15184
+ role: "user";
15185
+ /**
15186
+ * @description Always `false` on this shape.
15187
+ * @example false
15188
+ */
15189
+ is_owner: boolean;
15190
+ };
15140
15191
  /** @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). */
15141
15192
  Currency: {
15142
15193
  id?: number;
@@ -1121,7 +1121,9 @@ export interface paths {
1121
1121
  *
1122
1122
  * Common filter fields:
1123
1123
  * - `last4`: Filter by last 4 digits of card (partial, case-insensitive match)
1124
- * - `card_status`: Filter by status (ACTIVE, INACTIVE, CANCELED)
1124
+ * - `card_status`: Filter by status (ACTIVE, INACTIVE, CANCELED). Cards whose
1125
+ * creation the vendor refused (FAILED with no card behind them) are left out
1126
+ * of the listing unless you ask for them with `card_status=FAILED`.
1125
1127
  * - `fiat_account.type`: Filter by account type (prepaid, balance)
1126
1128
  * - `from_created_at`: Filter cards created on or after this date (ISO 8601 format)
1127
1129
  * - `to_created_at`: Filter cards created on or before this date (ISO 8601 format)
@@ -2009,6 +2009,12 @@ export interface components {
2009
2009
  MailingDataEntity: {
2010
2010
  readonly support_email?: string | null;
2011
2011
  };
2012
+ AppLinksEntity: {
2013
+ readonly terms_of_use_url?: string | null;
2014
+ readonly privacy_policy_url?: string | null;
2015
+ readonly fraud_and_security_url?: string | null;
2016
+ readonly consumer_protection_url?: string | null;
2017
+ };
2012
2018
  SupportedLocalesEntity: {
2013
2019
  default: string;
2014
2020
  supported: string[];
@@ -2051,6 +2057,7 @@ export interface components {
2051
2057
  readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
2052
2058
  readonly statement_branding?: components["schemas"]["StatementBrandingEntity"] | null;
2053
2059
  readonly mailing_data?: components["schemas"]["MailingDataEntity"] | null;
2060
+ readonly app_links?: components["schemas"]["AppLinksEntity"] | null;
2054
2061
  /** @enum {string} */
2055
2062
  kyc_data_provider: "persona" | "sumsub";
2056
2063
  readonly supported_locales?: components["schemas"]["SupportedLocalesEntity"] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.64",
3
+ "version": "1.36.65",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",