squarefi-bff-api-module 1.36.65 → 1.36.66
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.
|
@@ -11257,7 +11257,7 @@ export interface paths {
|
|
|
11257
11257
|
* Each wallet includes `access_role` (owner/admin/user/auditor) and `is_owner` boolean.
|
|
11258
11258
|
*
|
|
11259
11259
|
* Wallets where the caller holds the scoped `user` role are returned as a reduced shell
|
|
11260
|
-
* (`uuid`, `name`, `display_name`, `tenant_id`, `kyc_info`, `created_at` + the role fields) — no `logo_url`.
|
|
11260
|
+
* (`uuid`, `name`, `display_name`, `tenant_id`, `kyc_entity_id`, `kyc_info`, `created_at` + the role fields) — no `logo_url`.
|
|
11261
11261
|
*
|
|
11262
11262
|
* **Authentication**: Bearer token with x-tenant-id header required
|
|
11263
11263
|
*
|
|
@@ -11323,20 +11323,18 @@ export interface paths {
|
|
|
11323
11323
|
access_role: "owner" | "admin" | "user" | "auditor";
|
|
11324
11324
|
/** @description True if user is the wallet owner */
|
|
11325
11325
|
is_owner: boolean;
|
|
11326
|
+
/**
|
|
11327
|
+
* Format: uuid
|
|
11328
|
+
* @description KYC entity the wallet was opened for (`GET /kyc/entities`) — group the
|
|
11329
|
+
* list by it to see which accounts an entity already has. `null` for a
|
|
11330
|
+
* wallet created without one.
|
|
11331
|
+
*
|
|
11332
|
+
*/
|
|
11333
|
+
kyc_entity_id: string | null;
|
|
11326
11334
|
/** @description KYC entity attached to the wallet (joined from `kyc_entity`).
|
|
11327
11335
|
* `null` when the wallet has no KYC entity yet.
|
|
11328
11336
|
* */
|
|
11329
|
-
kyc_info:
|
|
11330
|
-
/** @description KYC entity type (e.g. INDIVIDUAL, BUSINESS) */
|
|
11331
|
-
type: string;
|
|
11332
|
-
/** @description KYC verification status (e.g. UNVERIFIED, PENDING, APPROVED, REJECTED) */
|
|
11333
|
-
status: string;
|
|
11334
|
-
business_name: string | null;
|
|
11335
|
-
first_name: string | null;
|
|
11336
|
-
last_name: string | null;
|
|
11337
|
-
email: string | null;
|
|
11338
|
-
phone: string | null;
|
|
11339
|
-
} | null;
|
|
11337
|
+
kyc_info: components["schemas"]["WalletKycInfo"] | null;
|
|
11340
11338
|
}[];
|
|
11341
11339
|
pagination: {
|
|
11342
11340
|
offset: number;
|
|
@@ -11373,6 +11371,10 @@ export interface paths {
|
|
|
11373
11371
|
* - `empty_name: false` or omitted (default) → a random placeholder name
|
|
11374
11372
|
* is generated (e.g., "Golden Vault 42").
|
|
11375
11373
|
* - `empty_name: true` → the wallet is created with `name: null`.
|
|
11374
|
+
* - **purpose** — what the account is opened for, one of the listed codes.
|
|
11375
|
+
* `other` needs a free-text **purpose_other**; any other code refuses it.
|
|
11376
|
+
* Stored once with the wallet: it cannot be changed later and no
|
|
11377
|
+
* endpoint returns it.
|
|
11376
11378
|
*
|
|
11377
11379
|
* **Authentication**: Bearer token with x-tenant-id header required
|
|
11378
11380
|
*
|
|
@@ -11410,6 +11412,21 @@ export interface paths {
|
|
|
11410
11412
|
*
|
|
11411
11413
|
*/
|
|
11412
11414
|
kyc_entity_id?: string;
|
|
11415
|
+
/**
|
|
11416
|
+
* @description What the account is opened for. Only the code travels — labels
|
|
11417
|
+
* are the client's. Write-once and never returned.
|
|
11418
|
+
*
|
|
11419
|
+
* @example payroll
|
|
11420
|
+
* @enum {string}
|
|
11421
|
+
*/
|
|
11422
|
+
purpose?: "payroll" | "client_or_project_funds" | "treasury_or_reserves" | "separate_by_team" | "separate_by_currency_or_region" | "other";
|
|
11423
|
+
/**
|
|
11424
|
+
* @description Free-text purpose. Required when `purpose` is `other`, refused
|
|
11425
|
+
* with any other `purpose` (a blank value counts as absent).
|
|
11426
|
+
*
|
|
11427
|
+
* @example Contractor payouts
|
|
11428
|
+
*/
|
|
11429
|
+
purpose_other?: string | null;
|
|
11413
11430
|
};
|
|
11414
11431
|
};
|
|
11415
11432
|
};
|
|
@@ -11438,25 +11455,22 @@ export interface paths {
|
|
|
11438
11455
|
tenant_id: string;
|
|
11439
11456
|
/** Format: date-time */
|
|
11440
11457
|
created_at: string;
|
|
11458
|
+
/**
|
|
11459
|
+
* Format: uuid
|
|
11460
|
+
* @description KYC entity the wallet was opened for. `null` for a wallet created without one.
|
|
11461
|
+
*/
|
|
11462
|
+
kyc_entity_id: string | null;
|
|
11441
11463
|
/** @description Mirrors the GET-wallet shape. `null` when the wallet was created
|
|
11442
11464
|
* without `kyc_entity_id`; populated with the linked entity otherwise.
|
|
11443
11465
|
* */
|
|
11444
|
-
kyc_info:
|
|
11445
|
-
type: string;
|
|
11446
|
-
status: string;
|
|
11447
|
-
business_name: string | null;
|
|
11448
|
-
first_name: string | null;
|
|
11449
|
-
last_name: string | null;
|
|
11450
|
-
email: string | null;
|
|
11451
|
-
phone: string | null;
|
|
11452
|
-
} | null;
|
|
11466
|
+
kyc_info: components["schemas"]["WalletKycInfo"] | null;
|
|
11453
11467
|
};
|
|
11454
11468
|
/** @example Wallet created successfully */
|
|
11455
11469
|
message: string;
|
|
11456
11470
|
};
|
|
11457
11471
|
};
|
|
11458
11472
|
};
|
|
11459
|
-
/** @description Bad request — invalid name
|
|
11473
|
+
/** @description Bad request — invalid name; `kyc_entity_id` is malformed / not an entity of the current user / belongs to another tenant; `purpose` is not a listed code; `purpose_other` is missing for `other`, longer than 255 characters or sent with another `purpose` */
|
|
11460
11474
|
400: {
|
|
11461
11475
|
headers: {
|
|
11462
11476
|
[name: string]: unknown;
|
|
@@ -11670,7 +11684,7 @@ export interface paths {
|
|
|
11670
11684
|
* - `owner` / `admin` / `auditor` — the full wallet (`WalletDetails`): identity, KYC, `balance`,
|
|
11671
11685
|
* `fiat_accounts`, `base_currency` and the totals.
|
|
11672
11686
|
* - `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`,
|
|
11687
|
+
* `tenant_id`, `kyc_entity_id`, `kyc_info`, `created_at` + the role fields. `logo_url`, `balance`, `fiat_accounts`,
|
|
11674
11688
|
* `base_currency`, `fiat_total`, `crypto_total`, `pending_balance` and `total_amount` are absent
|
|
11675
11689
|
* (not null) for that role — check `access_role` before reading them.
|
|
11676
11690
|
*
|
|
@@ -11788,18 +11802,15 @@ export interface paths {
|
|
|
11788
11802
|
tenant_id: string;
|
|
11789
11803
|
/** Format: date-time */
|
|
11790
11804
|
created_at: string;
|
|
11805
|
+
/**
|
|
11806
|
+
* Format: uuid
|
|
11807
|
+
* @description KYC entity the wallet was opened for. `null` for a wallet created without one.
|
|
11808
|
+
*/
|
|
11809
|
+
kyc_entity_id: string | null;
|
|
11791
11810
|
/** @description KYC entity attached to the wallet (joined from `kyc_entity`).
|
|
11792
11811
|
* `null` when the wallet has no KYC entity yet.
|
|
11793
11812
|
* */
|
|
11794
|
-
kyc_info:
|
|
11795
|
-
type: string;
|
|
11796
|
-
status: string;
|
|
11797
|
-
business_name: string | null;
|
|
11798
|
-
first_name: string | null;
|
|
11799
|
-
last_name: string | null;
|
|
11800
|
-
email: string | null;
|
|
11801
|
-
phone: string | null;
|
|
11802
|
-
} | null;
|
|
11813
|
+
kyc_info: components["schemas"]["WalletKycInfo"] | null;
|
|
11803
11814
|
};
|
|
11804
11815
|
/** @example Wallet updated successfully */
|
|
11805
11816
|
message: string;
|
|
@@ -15093,8 +15104,16 @@ export interface components {
|
|
|
15093
15104
|
};
|
|
15094
15105
|
/** @description KYC entity attached to the wallet. `null` when the wallet has no KYC entity yet. */
|
|
15095
15106
|
WalletKycInfo: {
|
|
15096
|
-
|
|
15097
|
-
|
|
15107
|
+
/**
|
|
15108
|
+
* @description KYC entity type, lower-case.
|
|
15109
|
+
* @enum {string}
|
|
15110
|
+
*/
|
|
15111
|
+
type: "individual" | "business" | "universal";
|
|
15112
|
+
/**
|
|
15113
|
+
* @description KYC verification status. A refusal is one of three values: `DECLINED`, `REJECT` or `SOFT_REJECT`. Only `APPROVED` (full access) and `HOLD` (read-only) open the wallet.
|
|
15114
|
+
* @enum {string}
|
|
15115
|
+
*/
|
|
15116
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "PROCESSING" | "HOLD" | "NEEDS_ATTENTION" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
15098
15117
|
business_name: string | null;
|
|
15099
15118
|
first_name: string | null;
|
|
15100
15119
|
last_name: string | null;
|
|
@@ -15130,6 +15149,11 @@ export interface components {
|
|
|
15130
15149
|
tenant_id: string;
|
|
15131
15150
|
/** Format: date-time */
|
|
15132
15151
|
created_at: string;
|
|
15152
|
+
/**
|
|
15153
|
+
* Format: uuid
|
|
15154
|
+
* @description KYC entity the wallet was opened for (`GET /kyc/entities`). `null` for a wallet created without one.
|
|
15155
|
+
*/
|
|
15156
|
+
kyc_entity_id: string | null;
|
|
15133
15157
|
kyc_info: components["schemas"]["WalletKycInfo"] | null;
|
|
15134
15158
|
/** @description Aggregated crypto balances */
|
|
15135
15159
|
balance: components["schemas"]["WalletBalanceEntry"][];
|
|
@@ -15171,6 +15195,11 @@ export interface components {
|
|
|
15171
15195
|
tenant_id: string;
|
|
15172
15196
|
/** Format: date-time */
|
|
15173
15197
|
created_at: string;
|
|
15198
|
+
/**
|
|
15199
|
+
* Format: uuid
|
|
15200
|
+
* @description KYC entity the wallet was opened for (`GET /kyc/entities`). `null` for a wallet created without one.
|
|
15201
|
+
*/
|
|
15202
|
+
kyc_entity_id: string | null;
|
|
15174
15203
|
kyc_info: components["schemas"]["WalletKycInfo"] | null;
|
|
15175
15204
|
/**
|
|
15176
15205
|
* @description Always `user` on this shape. (enum property replaced by openapi-typescript)
|