squarefi-bff-api-module 1.36.5 → 1.36.7

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.
@@ -945,14 +945,23 @@ export interface paths {
945
945
  headers: {
946
946
  [name: string]: unknown;
947
947
  };
948
- content?: never;
948
+ content: {
949
+ "application/json": {
950
+ /** @example true */
951
+ success: boolean;
952
+ data: components["schemas"]["CounterpartyAccount"][];
953
+ pagination?: components["schemas"]["PaginationResponse"];
954
+ };
955
+ };
949
956
  };
950
957
  /** @description Access denied */
951
958
  403: {
952
959
  headers: {
953
960
  [name: string]: unknown;
954
961
  };
955
- content?: never;
962
+ content: {
963
+ "application/json": components["schemas"]["ErrorResponse"];
964
+ };
956
965
  };
957
966
  };
958
967
  };
@@ -989,14 +998,26 @@ export interface paths {
989
998
  headers: {
990
999
  [name: string]: unknown;
991
1000
  };
992
- content?: never;
1001
+ content: {
1002
+ "application/json": {
1003
+ /** @example true */
1004
+ success: boolean;
1005
+ data: {
1006
+ account: components["schemas"]["CounterpartyAccount"];
1007
+ /** @example Counterparty account created successfully */
1008
+ message: string;
1009
+ };
1010
+ };
1011
+ };
993
1012
  };
994
1013
  /** @description Access denied */
995
1014
  403: {
996
1015
  headers: {
997
1016
  [name: string]: unknown;
998
1017
  };
999
- content?: never;
1018
+ content: {
1019
+ "application/json": components["schemas"]["ErrorResponse"];
1020
+ };
1000
1021
  };
1001
1022
  };
1002
1023
  };
@@ -1030,21 +1051,33 @@ export interface paths {
1030
1051
  headers: {
1031
1052
  [name: string]: unknown;
1032
1053
  };
1033
- content?: never;
1054
+ content: {
1055
+ "application/json": {
1056
+ /** @example true */
1057
+ success: boolean;
1058
+ data: {
1059
+ account: components["schemas"]["CounterpartyAccountWithDestinations"];
1060
+ };
1061
+ };
1062
+ };
1034
1063
  };
1035
1064
  /** @description Access denied */
1036
1065
  403: {
1037
1066
  headers: {
1038
1067
  [name: string]: unknown;
1039
1068
  };
1040
- content?: never;
1069
+ content: {
1070
+ "application/json": components["schemas"]["ErrorResponse"];
1071
+ };
1041
1072
  };
1042
1073
  /** @description Not found */
1043
1074
  404: {
1044
1075
  headers: {
1045
1076
  [name: string]: unknown;
1046
1077
  };
1047
- content?: never;
1078
+ content: {
1079
+ "application/json": components["schemas"]["ErrorResponse"];
1080
+ };
1048
1081
  };
1049
1082
  };
1050
1083
  };
@@ -1067,21 +1100,34 @@ export interface paths {
1067
1100
  headers: {
1068
1101
  [name: string]: unknown;
1069
1102
  };
1070
- content?: never;
1103
+ content: {
1104
+ "application/json": {
1105
+ /** @example true */
1106
+ success: boolean;
1107
+ data: {
1108
+ /** @example Counterparty account deleted successfully */
1109
+ message: string;
1110
+ };
1111
+ };
1112
+ };
1071
1113
  };
1072
1114
  /** @description Access denied */
1073
1115
  403: {
1074
1116
  headers: {
1075
1117
  [name: string]: unknown;
1076
1118
  };
1077
- content?: never;
1119
+ content: {
1120
+ "application/json": components["schemas"]["ErrorResponse"];
1121
+ };
1078
1122
  };
1079
1123
  /** @description Not found */
1080
1124
  404: {
1081
1125
  headers: {
1082
1126
  [name: string]: unknown;
1083
1127
  };
1084
- content?: never;
1128
+ content: {
1129
+ "application/json": components["schemas"]["ErrorResponse"];
1130
+ };
1085
1131
  };
1086
1132
  };
1087
1133
  };
@@ -1111,21 +1157,33 @@ export interface paths {
1111
1157
  headers: {
1112
1158
  [name: string]: unknown;
1113
1159
  };
1114
- content?: never;
1160
+ content: {
1161
+ "application/json": {
1162
+ /** @example true */
1163
+ success: boolean;
1164
+ data: {
1165
+ account: components["schemas"]["CounterpartyAccount"];
1166
+ };
1167
+ };
1168
+ };
1115
1169
  };
1116
1170
  /** @description Access denied */
1117
1171
  403: {
1118
1172
  headers: {
1119
1173
  [name: string]: unknown;
1120
1174
  };
1121
- content?: never;
1175
+ content: {
1176
+ "application/json": components["schemas"]["ErrorResponse"];
1177
+ };
1122
1178
  };
1123
1179
  /** @description Not found */
1124
1180
  404: {
1125
1181
  headers: {
1126
1182
  [name: string]: unknown;
1127
1183
  };
1128
- content?: never;
1184
+ content: {
1185
+ "application/json": components["schemas"]["ErrorResponse"];
1186
+ };
1129
1187
  };
1130
1188
  };
1131
1189
  };
@@ -1163,14 +1221,23 @@ export interface paths {
1163
1221
  headers: {
1164
1222
  [name: string]: unknown;
1165
1223
  };
1166
- content?: never;
1224
+ content: {
1225
+ "application/json": {
1226
+ /** @example true */
1227
+ success: boolean;
1228
+ data: components["schemas"]["CounterpartyDestination"][];
1229
+ pagination?: components["schemas"]["PaginationResponse"];
1230
+ };
1231
+ };
1167
1232
  };
1168
1233
  /** @description Access denied */
1169
1234
  403: {
1170
1235
  headers: {
1171
1236
  [name: string]: unknown;
1172
1237
  };
1173
- content?: never;
1238
+ content: {
1239
+ "application/json": components["schemas"]["ErrorResponse"];
1240
+ };
1174
1241
  };
1175
1242
  };
1176
1243
  };
@@ -1206,21 +1273,33 @@ export interface paths {
1206
1273
  headers: {
1207
1274
  [name: string]: unknown;
1208
1275
  };
1209
- content?: never;
1276
+ content: {
1277
+ "application/json": {
1278
+ /** @example true */
1279
+ success: boolean;
1280
+ data: {
1281
+ destination: components["schemas"]["CounterpartyDestination"];
1282
+ };
1283
+ };
1284
+ };
1210
1285
  };
1211
1286
  /** @description Access denied */
1212
1287
  403: {
1213
1288
  headers: {
1214
1289
  [name: string]: unknown;
1215
1290
  };
1216
- content?: never;
1291
+ content: {
1292
+ "application/json": components["schemas"]["ErrorResponse"];
1293
+ };
1217
1294
  };
1218
1295
  /** @description Not found */
1219
1296
  404: {
1220
1297
  headers: {
1221
1298
  [name: string]: unknown;
1222
1299
  };
1223
- content?: never;
1300
+ content: {
1301
+ "application/json": components["schemas"]["ErrorResponse"];
1302
+ };
1224
1303
  };
1225
1304
  };
1226
1305
  };
@@ -1246,21 +1325,34 @@ export interface paths {
1246
1325
  headers: {
1247
1326
  [name: string]: unknown;
1248
1327
  };
1249
- content?: never;
1328
+ content: {
1329
+ "application/json": {
1330
+ /** @example true */
1331
+ success: boolean;
1332
+ data: {
1333
+ /** @example Destination deleted successfully */
1334
+ message: string;
1335
+ };
1336
+ };
1337
+ };
1250
1338
  };
1251
1339
  /** @description Access denied or verification failed */
1252
1340
  403: {
1253
1341
  headers: {
1254
1342
  [name: string]: unknown;
1255
1343
  };
1256
- content?: never;
1344
+ content: {
1345
+ "application/json": components["schemas"]["ErrorResponse"];
1346
+ };
1257
1347
  };
1258
1348
  /** @description Not found */
1259
1349
  404: {
1260
1350
  headers: {
1261
1351
  [name: string]: unknown;
1262
1352
  };
1263
- content?: never;
1353
+ content: {
1354
+ "application/json": components["schemas"]["ErrorResponse"];
1355
+ };
1264
1356
  };
1265
1357
  };
1266
1358
  };
@@ -1289,21 +1381,33 @@ export interface paths {
1289
1381
  headers: {
1290
1382
  [name: string]: unknown;
1291
1383
  };
1292
- content?: never;
1384
+ content: {
1385
+ "application/json": {
1386
+ /** @example true */
1387
+ success: boolean;
1388
+ data: {
1389
+ destination: components["schemas"]["CounterpartyDestination"];
1390
+ };
1391
+ };
1392
+ };
1293
1393
  };
1294
1394
  /** @description Access denied */
1295
1395
  403: {
1296
1396
  headers: {
1297
1397
  [name: string]: unknown;
1298
1398
  };
1299
- content?: never;
1399
+ content: {
1400
+ "application/json": components["schemas"]["ErrorResponse"];
1401
+ };
1300
1402
  };
1301
1403
  /** @description Not found */
1302
1404
  404: {
1303
1405
  headers: {
1304
1406
  [name: string]: unknown;
1305
1407
  };
1306
- content?: never;
1408
+ content: {
1409
+ "application/json": components["schemas"]["ErrorResponse"];
1410
+ };
1307
1411
  };
1308
1412
  };
1309
1413
  };
@@ -1324,6 +1428,7 @@ export interface paths {
1324
1428
  *
1325
1429
  * **Banking types**: banking_data required
1326
1430
  * **Crypto types**: crypto_data required
1431
+ * **Internal type**: internal_data required (target wallet on the same platform)
1327
1432
  *
1328
1433
  */
1329
1434
  post: {
@@ -1339,10 +1444,20 @@ export interface paths {
1339
1444
  /** Format: uuid */
1340
1445
  counterparty_account_id: string;
1341
1446
  /** @enum {string} */
1342
- type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
1447
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE" | "INTERNAL";
1343
1448
  nickname?: string;
1344
1449
  banking_data?: Record<string, never>;
1345
1450
  crypto_data?: Record<string, never>;
1451
+ /** @description Required for type INTERNAL — points at the receiver wallet. */
1452
+ internal_data?: {
1453
+ /**
1454
+ * Format: uuid
1455
+ * @description Target (receiver) wallet uuid on the same platform.
1456
+ */
1457
+ wallet_id: string;
1458
+ /** @description Optional, reserved for future use. */
1459
+ description?: string;
1460
+ };
1346
1461
  };
1347
1462
  };
1348
1463
  };
@@ -1352,21 +1467,35 @@ export interface paths {
1352
1467
  headers: {
1353
1468
  [name: string]: unknown;
1354
1469
  };
1355
- content?: never;
1470
+ content: {
1471
+ "application/json": {
1472
+ /** @example true */
1473
+ success: boolean;
1474
+ data: {
1475
+ destination: components["schemas"]["CounterpartyDestination"];
1476
+ /** @example Destination created successfully */
1477
+ message: string;
1478
+ };
1479
+ };
1480
+ };
1356
1481
  };
1357
1482
  /** @description Access denied */
1358
1483
  403: {
1359
1484
  headers: {
1360
1485
  [name: string]: unknown;
1361
1486
  };
1362
- content?: never;
1487
+ content: {
1488
+ "application/json": components["schemas"]["ErrorResponse"];
1489
+ };
1363
1490
  };
1364
1491
  /** @description Account not found */
1365
1492
  404: {
1366
1493
  headers: {
1367
1494
  [name: string]: unknown;
1368
1495
  };
1369
- content?: never;
1496
+ content: {
1497
+ "application/json": components["schemas"]["ErrorResponse"];
1498
+ };
1370
1499
  };
1371
1500
  };
1372
1501
  };
@@ -1734,8 +1863,10 @@ export interface paths {
1734
1863
  program_id?: string;
1735
1864
  /** @description Filter cards by program sub-account type (prepaid or balance) */
1736
1865
  sub_account_type?: "prepaid" | "balance";
1737
- /** @description Filter cards by status (matches issuing_cards.card_status) */
1738
- status?: "ACTIVE" | "INACTIVE" | "FROZEN" | "CANCELED" | "CLOSED" | "BLOCKED" | "FAILED" | "PENDING";
1866
+ /** @description Filter cards by status (matches issuing_cards.card_status).
1867
+ * Accepts a single value or a comma-separated list, e.g. `status=ACTIVE,FROZEN`.
1868
+ * */
1869
+ status?: ("ACTIVE" | "INACTIVE" | "FROZEN" | "CANCELED" | "CLOSED" | "BLOCKED" | "FAILED" | "PENDING")[];
1739
1870
  /** @description Filter cards by last 4 digits of the card number (partial, case-insensitive match) */
1740
1871
  last4?: string;
1741
1872
  /** @description Number of items to skip */
@@ -4124,6 +4255,258 @@ export interface paths {
4124
4255
  };
4125
4256
  trace?: never;
4126
4257
  };
4258
+ "/frontend/kyc_persona/{wallet_id}/init": {
4259
+ parameters: {
4260
+ query?: never;
4261
+ header?: never;
4262
+ path?: never;
4263
+ cookie?: never;
4264
+ };
4265
+ /**
4266
+ * Initialize Persona KYC session for a wallet
4267
+ * @description Creates a Persona inquiry via the Auth API for the specified wallet and
4268
+ * returns the hosted Persona URL. The caller's Bearer token is forwarded to
4269
+ * the Auth API; access requires the caller to be a member of the wallet
4270
+ * (ownership/membership is enforced by the standard wallet-access check).
4271
+ *
4272
+ * **Authentication**: Bearer token with x-tenant-id header required
4273
+ *
4274
+ * **Access Control**: Any user with access to the wallet (scoped card-users excluded)
4275
+ *
4276
+ */
4277
+ get: {
4278
+ parameters: {
4279
+ query: {
4280
+ type: "individual" | "business";
4281
+ };
4282
+ header?: never;
4283
+ path: {
4284
+ /** @description Wallet UUID */
4285
+ wallet_id: string;
4286
+ };
4287
+ cookie?: never;
4288
+ };
4289
+ requestBody?: never;
4290
+ responses: {
4291
+ /** @description Persona link generated successfully */
4292
+ 200: {
4293
+ headers: {
4294
+ [name: string]: unknown;
4295
+ };
4296
+ content: {
4297
+ "application/json": {
4298
+ /** @example true */
4299
+ success: boolean;
4300
+ data: {
4301
+ /**
4302
+ * Format: uuid
4303
+ * @description Echo of the wallet from the path
4304
+ * @example eaf37846-3669-4b4a-9555-b27f75e023c1
4305
+ */
4306
+ wallet_id: string;
4307
+ /**
4308
+ * @description Persona inquiry ID returned by the Auth API
4309
+ * @example inq_ABDNxhp9ZzD3yehivCbMVvmjwh5g5r
4310
+ */
4311
+ inquiry_id: string;
4312
+ /**
4313
+ * @description Persona session token, when upstream returns one — otherwise null
4314
+ * @example null
4315
+ */
4316
+ session_id: string | null;
4317
+ /**
4318
+ * Format: uri
4319
+ * @description Hosted Persona URL with `inquiry-id` (and `session-token` if `session_id` is present).
4320
+ * Base host: `PERSONA_HOSTED_FLOW_URL` env, default `https://withpersona.com/verify`.
4321
+ *
4322
+ * @example https://withpersona.com/verify?inquiry-id=inq_ABDNxhp9ZzD3yehivCbMVvmjwh5g5r
4323
+ */
4324
+ url: string;
4325
+ };
4326
+ };
4327
+ };
4328
+ };
4329
+ /** @description Validation error (`type` missing or not in [individual, business]) */
4330
+ 400: {
4331
+ headers: {
4332
+ [name: string]: unknown;
4333
+ };
4334
+ content: {
4335
+ "application/json": components["schemas"]["ErrorResponse"];
4336
+ };
4337
+ };
4338
+ /** @description Missing or invalid Bearer token */
4339
+ 401: {
4340
+ headers: {
4341
+ [name: string]: unknown;
4342
+ };
4343
+ content: {
4344
+ "application/json": components["schemas"]["ErrorResponse"];
4345
+ };
4346
+ };
4347
+ /** @description Caller has no access to this wallet */
4348
+ 403: {
4349
+ headers: {
4350
+ [name: string]: unknown;
4351
+ };
4352
+ content: {
4353
+ "application/json": components["schemas"]["ErrorResponse"];
4354
+ };
4355
+ };
4356
+ /** @description Auth API responded 404 (wallet not found upstream) */
4357
+ 404: {
4358
+ headers: {
4359
+ [name: string]: unknown;
4360
+ };
4361
+ content: {
4362
+ "application/json": components["schemas"]["ErrorResponse"];
4363
+ };
4364
+ };
4365
+ /** @description Auth API unavailable, timed out, or returned malformed payload */
4366
+ 502: {
4367
+ headers: {
4368
+ [name: string]: unknown;
4369
+ };
4370
+ content: {
4371
+ "application/json": components["schemas"]["ErrorResponse"];
4372
+ };
4373
+ };
4374
+ };
4375
+ };
4376
+ put?: never;
4377
+ post?: never;
4378
+ delete?: never;
4379
+ options?: never;
4380
+ head?: never;
4381
+ patch?: never;
4382
+ trace?: never;
4383
+ };
4384
+ "/frontend/kyc_persona/{wallet_id}/resume": {
4385
+ parameters: {
4386
+ query?: never;
4387
+ header?: never;
4388
+ path?: never;
4389
+ cookie?: never;
4390
+ };
4391
+ /**
4392
+ * Resume Persona KYC session for a wallet
4393
+ * @description Resumes an existing Persona inquiry via the Auth API for the specified
4394
+ * wallet and returns the hosted Persona URL. The caller's Bearer token is
4395
+ * forwarded to the Auth API; access requires the caller to be a member of
4396
+ * the wallet (ownership/membership is enforced by the standard wallet-access check).
4397
+ *
4398
+ * **Authentication**: Bearer token with x-tenant-id header required
4399
+ *
4400
+ * **Access Control**: Any user with access to the wallet (scoped card-users excluded)
4401
+ *
4402
+ */
4403
+ get: {
4404
+ parameters: {
4405
+ query: {
4406
+ inquiry_id: string;
4407
+ };
4408
+ header?: never;
4409
+ path: {
4410
+ /** @description Wallet UUID */
4411
+ wallet_id: string;
4412
+ };
4413
+ cookie?: never;
4414
+ };
4415
+ requestBody?: never;
4416
+ responses: {
4417
+ /** @description Persona link generated successfully */
4418
+ 200: {
4419
+ headers: {
4420
+ [name: string]: unknown;
4421
+ };
4422
+ content: {
4423
+ "application/json": {
4424
+ /** @example true */
4425
+ success: boolean;
4426
+ data: {
4427
+ /**
4428
+ * Format: uuid
4429
+ * @description Echo of the wallet from the path
4430
+ * @example eaf37846-3669-4b4a-9555-b27f75e023c1
4431
+ */
4432
+ wallet_id: string;
4433
+ /**
4434
+ * @description Persona inquiry ID returned by the Auth API (same as the one being resumed)
4435
+ * @example inq_ABDNxhp9ZzD3yehivCbMVvmjwh5g5r
4436
+ */
4437
+ inquiry_id: string;
4438
+ /**
4439
+ * @description Persona session token, when upstream returns one — otherwise null
4440
+ * @example null
4441
+ */
4442
+ session_id: string | null;
4443
+ /**
4444
+ * Format: uri
4445
+ * @description Hosted Persona URL with `inquiry-id` (and `session-token` if `session_id` is present).
4446
+ * Base host: `PERSONA_HOSTED_FLOW_URL` env, default `https://withpersona.com/verify`.
4447
+ *
4448
+ * @example https://withpersona.com/verify?inquiry-id=inq_ABDNxhp9ZzD3yehivCbMVvmjwh5g5r
4449
+ */
4450
+ url: string;
4451
+ };
4452
+ };
4453
+ };
4454
+ };
4455
+ /** @description Validation error (`inquiry_id` missing or empty) */
4456
+ 400: {
4457
+ headers: {
4458
+ [name: string]: unknown;
4459
+ };
4460
+ content: {
4461
+ "application/json": components["schemas"]["ErrorResponse"];
4462
+ };
4463
+ };
4464
+ /** @description Missing or invalid Bearer token */
4465
+ 401: {
4466
+ headers: {
4467
+ [name: string]: unknown;
4468
+ };
4469
+ content: {
4470
+ "application/json": components["schemas"]["ErrorResponse"];
4471
+ };
4472
+ };
4473
+ /** @description Caller has no access to this wallet */
4474
+ 403: {
4475
+ headers: {
4476
+ [name: string]: unknown;
4477
+ };
4478
+ content: {
4479
+ "application/json": components["schemas"]["ErrorResponse"];
4480
+ };
4481
+ };
4482
+ /** @description Auth API responded 404 (no such inquiry to resume) */
4483
+ 404: {
4484
+ headers: {
4485
+ [name: string]: unknown;
4486
+ };
4487
+ content: {
4488
+ "application/json": components["schemas"]["ErrorResponse"];
4489
+ };
4490
+ };
4491
+ /** @description Auth API unavailable, timed out, or returned malformed payload */
4492
+ 502: {
4493
+ headers: {
4494
+ [name: string]: unknown;
4495
+ };
4496
+ content: {
4497
+ "application/json": components["schemas"]["ErrorResponse"];
4498
+ };
4499
+ };
4500
+ };
4501
+ };
4502
+ put?: never;
4503
+ post?: never;
4504
+ delete?: never;
4505
+ options?: never;
4506
+ head?: never;
4507
+ patch?: never;
4508
+ trace?: never;
4509
+ };
4127
4510
  "/frontend/orders/deposit/ach": {
4128
4511
  parameters: {
4129
4512
  query?: never;
@@ -4484,8 +4867,11 @@ export interface paths {
4484
4867
  wallet_id: string;
4485
4868
  /** Format: uuid */
4486
4869
  from_currency_id: string;
4487
- /** Format: uuid */
4488
- to_wallet_id: string;
4870
+ /**
4871
+ * Format: uuid
4872
+ * @description Counterparty destination of type INTERNAL (points at the receiver wallet).
4873
+ */
4874
+ counterparty_destination_id: string;
4489
4875
  amount: number;
4490
4876
  /** @description Idempotency key (UUID) */
4491
4877
  request_id: string;
@@ -9452,7 +9838,7 @@ export interface components {
9452
9838
  * @example EXCHANGE_OMNI
9453
9839
  * @enum {string}
9454
9840
  */
9455
- 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";
9841
+ 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" | "BRL_RTP_OFFRAMP" | "DLS_WIRE_ONRAMP" | "DLS_WIRE_OFFRAMP" | "DLS_ACH_ONRAMP" | "DLS_ACH_OFFRAMP" | "DLS_SEPA_ONRAMP" | "DLS_SEPA_OFFRAMP" | "DLS_SWIFT_ONRAMP" | "DLS_SWIFT_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";
9456
9842
  PaginationResponse: {
9457
9843
  offset: number;
9458
9844
  limit: number;
@@ -9467,6 +9853,106 @@ export interface components {
9467
9853
  message?: string;
9468
9854
  };
9469
9855
  };
9856
+ /** @description Counterparty account (beneficiary). Wallet-scoped. */
9857
+ CounterpartyAccount: {
9858
+ /** Format: uuid */
9859
+ id: string;
9860
+ /** @description Account holder name */
9861
+ name: string;
9862
+ /** @enum {string} */
9863
+ type: "BUSINESS" | "INDIVIDUAL";
9864
+ /** @description User-friendly alias */
9865
+ nickname?: string | null;
9866
+ /** @description Optional contact email */
9867
+ email?: string | null;
9868
+ /** @description Optional contact phone (E.164) */
9869
+ phone?: string | null;
9870
+ /** @description Pinned/favorite flag */
9871
+ is_pinned: boolean;
9872
+ /** @description Whether this is the wallet owner’s own (self) account */
9873
+ is_self: boolean;
9874
+ /** Format: date-time */
9875
+ created_at: string;
9876
+ };
9877
+ /** @description A counterparty account with its embedded active destinations (returned by GET account by id). */
9878
+ CounterpartyAccountWithDestinations: components["schemas"]["CounterpartyAccount"] & {
9879
+ /** @description Active destinations belonging to this account. */
9880
+ destinations: components["schemas"]["CounterpartyDestination"][];
9881
+ };
9882
+ /** @description Bank / beneficiary postal address. */
9883
+ CounterpartyBankingAddress: {
9884
+ city?: string | null;
9885
+ postcode?: string | null;
9886
+ street1?: string | null;
9887
+ street2?: string | null;
9888
+ /** @description Country id reference */
9889
+ country_id?: number | null;
9890
+ /** @description State id reference */
9891
+ state_id?: number | null;
9892
+ description?: string | null;
9893
+ } | null;
9894
+ /** @description Banking destination payload. Populated when `type` is ACH, SWIFT, SEPA, CHAPS, FPS or FEDWIRE; null otherwise. */
9895
+ CounterpartyBankingData: {
9896
+ account_number?: string | null;
9897
+ /** @description ABA routing number (9 digits) */
9898
+ routing_number?: string | null;
9899
+ bank_name?: string | null;
9900
+ /** @description SWIFT/BIC (ISO 9362) */
9901
+ swift_bic?: string | null;
9902
+ /** @description IBAN (ISO 13616) */
9903
+ iban?: string | null;
9904
+ /** @description Sort code (6 digits, UK banking) */
9905
+ sort_code?: string | null;
9906
+ note?: string | null;
9907
+ address?: components["schemas"]["CounterpartyBankingAddress"] | null;
9908
+ } | null;
9909
+ /** @description Currency reference for a crypto destination (subset of the `crypto` table row). */
9910
+ CounterpartyCurrencyRef: {
9911
+ /** Format: uuid */
9912
+ uuid?: string;
9913
+ name?: string;
9914
+ symbol?: string;
9915
+ icon?: string | null;
9916
+ /** @enum {string|null} */
9917
+ type?: "token" | "native" | null;
9918
+ };
9919
+ /** @description Crypto destination payload. Populated when `type` is CRYPTO_EXTERNAL or CRYPTO_INTERNAL; null otherwise. */
9920
+ CounterpartyCryptoData: {
9921
+ /** @description Blockchain address */
9922
+ address?: string;
9923
+ /** @description Memo/tag (XRP, XLM, …) */
9924
+ memo?: string | null;
9925
+ /** Format: uuid */
9926
+ currency_id?: string;
9927
+ currency?: components["schemas"]["CounterpartyCurrencyRef"] | null;
9928
+ } | null;
9929
+ /** @description Internal destination payload — the receiver wallet on the same platform. Populated when `type` is INTERNAL; null otherwise. */
9930
+ CounterpartyInternalData: {
9931
+ /**
9932
+ * Format: uuid
9933
+ * @description Target (receiver) wallet uuid
9934
+ */
9935
+ wallet_id?: string;
9936
+ /** @description Optional, reserved for future use */
9937
+ description?: string | null;
9938
+ } | null;
9939
+ /** @description Counterparty payment destination. Exactly one of `banking_data` / `crypto_data` / `internal_data` is populated, matching `type`; the other two are null. */
9940
+ CounterpartyDestination: {
9941
+ /** Format: uuid */
9942
+ id: string;
9943
+ /**
9944
+ * @description Destination / payment rail type
9945
+ * @enum {string}
9946
+ */
9947
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE" | "INTERNAL";
9948
+ /** @description User-friendly alias */
9949
+ nickname?: string | null;
9950
+ /** Format: date-time */
9951
+ created_at: string;
9952
+ banking_data?: components["schemas"]["CounterpartyBankingData"] | null;
9953
+ crypto_data?: components["schemas"]["CounterpartyCryptoData"] | null;
9954
+ internal_data?: components["schemas"]["CounterpartyInternalData"] | null;
9955
+ };
9470
9956
  /** @description Bank / rail account coordinates for a sub-account. Rail-dependent — some rails return only a subset of these. */
9471
9957
  BankAccountDetails: {
9472
9958
  swift?: string;