squarefi-bff-api-module 1.35.3 → 1.36.1
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.
- package/dist/api/issuing.d.ts +5 -5
- package/dist/api/issuing.js +10 -10
- package/dist/api/types/autogen/apiV1External.types.d.ts +95 -3
- package/dist/api/types/autogen/apiV1Frontend.types.d.ts +245 -8
- package/dist/api/types/autogen/apiV1Legacy.types.d.ts +82 -110
- package/dist/api/types/autogen/apiV1Tenant.types.d.ts +71 -2
- package/dist/api/types/autogen/apiV2.types.d.ts +139 -341
- package/dist/api/types/types.d.ts +30 -9
- package/package.json +1 -1
|
@@ -1260,13 +1260,18 @@ export interface paths {
|
|
|
1260
1260
|
sort_by?: "card_id" | "nick_name" | "name_on_card" | "last4" | "card_status" | "created_at";
|
|
1261
1261
|
/** @description Sort direction */
|
|
1262
1262
|
sort_order?: "ASC" | "DESC";
|
|
1263
|
+
/**
|
|
1264
|
+
* @description Filter cards by last 4 digits of the card number (partial, case-insensitive match against `issuing_cards.last4`).
|
|
1265
|
+
* @example 1234
|
|
1266
|
+
*/
|
|
1267
|
+
"filter[last4]"?: string;
|
|
1263
1268
|
/** @description Filter by specific card properties. Can be provided in three ways:
|
|
1264
1269
|
* 1. As JSON object: `filter={"last4":"1234"}`
|
|
1265
1270
|
* 2. As query params: `filter[last4]=1234`
|
|
1266
1271
|
* 3. For nested filtering: `filter[fiat_account][type]=prepaid`
|
|
1267
1272
|
*
|
|
1268
1273
|
* Common filter fields:
|
|
1269
|
-
* - `last4`: Filter by last 4 digits of card
|
|
1274
|
+
* - `last4`: Filter by last 4 digits of card (partial, case-insensitive match)
|
|
1270
1275
|
* - `card_status`: Filter by status (ACTIVE, INACTIVE, CANCELED)
|
|
1271
1276
|
* - `fiat_account.type`: Filter by account type (prepaid, balance)
|
|
1272
1277
|
* - `from_created_at`: Filter cards created on or after this date (ISO 8601 format)
|
|
@@ -2284,10 +2289,12 @@ export interface paths {
|
|
|
2284
2289
|
new_scheme?: boolean;
|
|
2285
2290
|
/** @description Filter by transaction type */
|
|
2286
2291
|
transaction_type?: string;
|
|
2287
|
-
/** @description Filter by start date */
|
|
2292
|
+
/** @description Filter by start date (ISO 8601). Sent to external provider as `from_timestamp` and post-filtered against `cleared_at`/`created_at`. */
|
|
2288
2293
|
from?: string;
|
|
2289
|
-
/** @description Filter by end date */
|
|
2294
|
+
/** @description Filter by end date (ISO 8601). Sent to external provider as `to_timestamp` and post-filtered against `cleared_at`/`created_at`. */
|
|
2290
2295
|
to?: string;
|
|
2296
|
+
/** @description Filter by transaction status. Forwarded to external provider and applied as a post-filter on the combined result. */
|
|
2297
|
+
status?: "PENDING" | "APPROVED" | "DECLINED" | "CANCELED";
|
|
2291
2298
|
};
|
|
2292
2299
|
header?: never;
|
|
2293
2300
|
path?: never;
|
|
@@ -3176,25 +3183,7 @@ export interface paths {
|
|
|
3176
3183
|
[name: string]: unknown;
|
|
3177
3184
|
};
|
|
3178
3185
|
content: {
|
|
3179
|
-
"application/json":
|
|
3180
|
-
id?: string;
|
|
3181
|
-
name?: string;
|
|
3182
|
-
description?: string;
|
|
3183
|
-
is_active?: boolean;
|
|
3184
|
-
/** @description Associated KYC rails for this order type */
|
|
3185
|
-
order_types_kyc_rails?: {
|
|
3186
|
-
/**
|
|
3187
|
-
* Format: uuid
|
|
3188
|
-
* @description Unique identifier of the association
|
|
3189
|
-
*/
|
|
3190
|
-
id?: string;
|
|
3191
|
-
/**
|
|
3192
|
-
* Format: uuid
|
|
3193
|
-
* @description ID of the associated KYC rail
|
|
3194
|
-
*/
|
|
3195
|
-
kyc_rail_id?: string;
|
|
3196
|
-
}[];
|
|
3197
|
-
}[];
|
|
3186
|
+
"application/json": components["schemas"]["OrderType"][];
|
|
3198
3187
|
};
|
|
3199
3188
|
};
|
|
3200
3189
|
/** @description Server error */
|
|
@@ -3247,28 +3236,7 @@ export interface paths {
|
|
|
3247
3236
|
[name: string]: unknown;
|
|
3248
3237
|
};
|
|
3249
3238
|
content: {
|
|
3250
|
-
"application/json":
|
|
3251
|
-
id?: string;
|
|
3252
|
-
name?: string;
|
|
3253
|
-
description?: string;
|
|
3254
|
-
is_active?: boolean;
|
|
3255
|
-
direction?: string;
|
|
3256
|
-
is_internal?: boolean;
|
|
3257
|
-
payment_method?: string;
|
|
3258
|
-
/** @description Associated KYC rails for this order type */
|
|
3259
|
-
order_types_kyc_rails?: {
|
|
3260
|
-
/**
|
|
3261
|
-
* Format: uuid
|
|
3262
|
-
* @description Unique identifier of the association
|
|
3263
|
-
*/
|
|
3264
|
-
id?: string;
|
|
3265
|
-
/**
|
|
3266
|
-
* Format: uuid
|
|
3267
|
-
* @description ID of the associated KYC rail
|
|
3268
|
-
*/
|
|
3269
|
-
kyc_rail_id?: string;
|
|
3270
|
-
}[];
|
|
3271
|
-
};
|
|
3239
|
+
"application/json": components["schemas"]["OrderType"];
|
|
3272
3240
|
};
|
|
3273
3241
|
};
|
|
3274
3242
|
/** @description Order type not found */
|
|
@@ -4776,39 +4744,7 @@ export interface paths {
|
|
|
4776
4744
|
[name: string]: unknown;
|
|
4777
4745
|
};
|
|
4778
4746
|
content: {
|
|
4779
|
-
"application/json":
|
|
4780
|
-
/** @description Order type identifier (e.g., EXCHANGE, WITHDRAWAL_CRYPTO) */
|
|
4781
|
-
id?: string;
|
|
4782
|
-
/** @description Human-readable description of the order type */
|
|
4783
|
-
description?: string;
|
|
4784
|
-
/** @description Direction of the order type (in/out) */
|
|
4785
|
-
direction?: string;
|
|
4786
|
-
/** @description Whether this is an internal order type */
|
|
4787
|
-
is_internal?: boolean;
|
|
4788
|
-
/**
|
|
4789
|
-
* Format: uuid
|
|
4790
|
-
* @description Associated KYC rail configuration ID
|
|
4791
|
-
*/
|
|
4792
|
-
kyc_rails_id?: string | null;
|
|
4793
|
-
/**
|
|
4794
|
-
* @description Payment method associated with this order type
|
|
4795
|
-
* @enum {string|null}
|
|
4796
|
-
*/
|
|
4797
|
-
payment_method?: "FEDWIRE" | "ACH" | "SWIFT" | "SEPA" | "CHAPS" | "FPS" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | null;
|
|
4798
|
-
/** @description Associated KYC rails for this order type */
|
|
4799
|
-
order_types_kyc_rails?: {
|
|
4800
|
-
/**
|
|
4801
|
-
* Format: uuid
|
|
4802
|
-
* @description Unique identifier of the association
|
|
4803
|
-
*/
|
|
4804
|
-
id?: string;
|
|
4805
|
-
/**
|
|
4806
|
-
* Format: uuid
|
|
4807
|
-
* @description ID of the associated KYC rail
|
|
4808
|
-
*/
|
|
4809
|
-
kyc_rail_id?: string;
|
|
4810
|
-
}[];
|
|
4811
|
-
}[];
|
|
4747
|
+
"application/json": components["schemas"]["OrderType"][];
|
|
4812
4748
|
};
|
|
4813
4749
|
};
|
|
4814
4750
|
/** @description Server error */
|
|
@@ -4861,39 +4797,7 @@ export interface paths {
|
|
|
4861
4797
|
[name: string]: unknown;
|
|
4862
4798
|
};
|
|
4863
4799
|
content: {
|
|
4864
|
-
"application/json":
|
|
4865
|
-
/** @description Order type identifier (e.g., EXCHANGE, WITHDRAWAL_CRYPTO) */
|
|
4866
|
-
id?: string;
|
|
4867
|
-
/** @description Human-readable description of the order type */
|
|
4868
|
-
description?: string;
|
|
4869
|
-
/** @description Direction of the order type (in/out) */
|
|
4870
|
-
direction?: string;
|
|
4871
|
-
/** @description Whether this is an internal order type */
|
|
4872
|
-
is_internal?: boolean;
|
|
4873
|
-
/**
|
|
4874
|
-
* Format: uuid
|
|
4875
|
-
* @description Associated KYC rail configuration ID
|
|
4876
|
-
*/
|
|
4877
|
-
kyc_rails_id?: string | null;
|
|
4878
|
-
/**
|
|
4879
|
-
* @description Payment method associated with this order type
|
|
4880
|
-
* @enum {string|null}
|
|
4881
|
-
*/
|
|
4882
|
-
payment_method?: "FEDWIRE" | "ACH" | "SWIFT" | "SEPA" | "CHAPS" | "FPS" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | null;
|
|
4883
|
-
/** @description Associated KYC rails for this order type */
|
|
4884
|
-
order_types_kyc_rails?: {
|
|
4885
|
-
/**
|
|
4886
|
-
* Format: uuid
|
|
4887
|
-
* @description Unique identifier of the association
|
|
4888
|
-
*/
|
|
4889
|
-
id?: string;
|
|
4890
|
-
/**
|
|
4891
|
-
* Format: uuid
|
|
4892
|
-
* @description ID of the associated KYC rail
|
|
4893
|
-
*/
|
|
4894
|
-
kyc_rail_id?: string;
|
|
4895
|
-
}[];
|
|
4896
|
-
};
|
|
4800
|
+
"application/json": components["schemas"]["OrderType"];
|
|
4897
4801
|
};
|
|
4898
4802
|
};
|
|
4899
4803
|
/** @description Order type not found */
|
|
@@ -8383,6 +8287,74 @@ export interface components {
|
|
|
8383
8287
|
* @enum {string}
|
|
8384
8288
|
*/
|
|
8385
8289
|
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";
|
|
8290
|
+
/** @description Order type reference with optional product guardrails, associated KYC rails and tenant billing rates */
|
|
8291
|
+
OrderType: {
|
|
8292
|
+
/** @description Order type identifier (e.g. EXCHANGE, WITHDRAWAL_CRYPTO) */
|
|
8293
|
+
id?: string;
|
|
8294
|
+
/** @description Human-readable name of the order type */
|
|
8295
|
+
name?: string | null;
|
|
8296
|
+
/** @description Human-readable description of the order type */
|
|
8297
|
+
description?: string;
|
|
8298
|
+
/** @description Direction of the order type (in/out) */
|
|
8299
|
+
direction?: string | null;
|
|
8300
|
+
/** @description Whether this is an internal order type */
|
|
8301
|
+
is_internal?: boolean;
|
|
8302
|
+
/** @description Whether this order type is trusted */
|
|
8303
|
+
is_trusted?: boolean;
|
|
8304
|
+
/**
|
|
8305
|
+
* @description Payment method associated with this order type
|
|
8306
|
+
* @enum {string|null}
|
|
8307
|
+
*/
|
|
8308
|
+
payment_method?: "DOMESTIC_WIRE" | "FEDWIRE" | "ACH" | "SWIFT" | "SEPA" | "CHAPS" | "FPS" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | null;
|
|
8309
|
+
/**
|
|
8310
|
+
* Format: uuid
|
|
8311
|
+
* @description Associated KYC rail configuration ID
|
|
8312
|
+
*/
|
|
8313
|
+
kyc_rails_id?: string | null;
|
|
8314
|
+
/**
|
|
8315
|
+
* @description Optional minimum amount the product should allow for this order type
|
|
8316
|
+
* @example 100
|
|
8317
|
+
*/
|
|
8318
|
+
min_amount?: number | null;
|
|
8319
|
+
/**
|
|
8320
|
+
* @description Optional maximum amount the product should allow for this order type
|
|
8321
|
+
* @example 50000
|
|
8322
|
+
*/
|
|
8323
|
+
max_amount?: number | null;
|
|
8324
|
+
/** @description Whether payouts for this order type are limited to the wallet owner's own account */
|
|
8325
|
+
first_party_only?: boolean;
|
|
8326
|
+
/** @description Associated KYC rails for this order type */
|
|
8327
|
+
order_types_kyc_rails?: {
|
|
8328
|
+
/**
|
|
8329
|
+
* Format: uuid
|
|
8330
|
+
* @description Unique identifier of the association
|
|
8331
|
+
*/
|
|
8332
|
+
id?: string;
|
|
8333
|
+
/**
|
|
8334
|
+
* Format: uuid
|
|
8335
|
+
* @description ID of the associated KYC rail
|
|
8336
|
+
*/
|
|
8337
|
+
kyc_rail_id?: string;
|
|
8338
|
+
}[];
|
|
8339
|
+
/** @description Tenant-specific billing rates (present when tenant context is available) */
|
|
8340
|
+
tenant_rates?: {
|
|
8341
|
+
/**
|
|
8342
|
+
* @description Percentage markup on order volume
|
|
8343
|
+
* @example 1.8
|
|
8344
|
+
*/
|
|
8345
|
+
markup_percent?: number;
|
|
8346
|
+
/**
|
|
8347
|
+
* @description Fixed fee per order (USD)
|
|
8348
|
+
* @example 0
|
|
8349
|
+
*/
|
|
8350
|
+
markup_fixed?: number;
|
|
8351
|
+
/**
|
|
8352
|
+
* @description Minimum monthly payment (USD)
|
|
8353
|
+
* @example 0
|
|
8354
|
+
*/
|
|
8355
|
+
mon_min_usd?: number;
|
|
8356
|
+
} | null;
|
|
8357
|
+
};
|
|
8386
8358
|
SubAccount: {
|
|
8387
8359
|
/**
|
|
8388
8360
|
* @description Unique identifier for the sub-account
|
|
@@ -3761,7 +3761,9 @@ export interface paths {
|
|
|
3761
3761
|
* - When the request is scoped to a tenant (via `x-tenant-id` header or session),
|
|
3762
3762
|
* the list is **filtered** to order types enabled for that tenant —
|
|
3763
3763
|
* i.e. those having a row in `tenant_order_type_rates`. Each returned item is
|
|
3764
|
-
* enriched with `tenant_rates` (`markup_percent`, `markup_fixed`, `mon_min_usd`)
|
|
3764
|
+
* enriched with `tenant_rates` (`markup_percent`, `markup_fixed`, `mon_min_usd`)
|
|
3765
|
+
* and may expose product-facing guardrails such as `min_amount`,
|
|
3766
|
+
* `max_amount`, and `first_party_only`.
|
|
3765
3767
|
* - Without a tenant scope (admin global view), the full catalogue is returned
|
|
3766
3768
|
* and `tenant_rates` is omitted.
|
|
3767
3769
|
*
|
|
@@ -6490,7 +6492,60 @@ export interface paths {
|
|
|
6490
6492
|
delete?: never;
|
|
6491
6493
|
options?: never;
|
|
6492
6494
|
head?: never;
|
|
6493
|
-
|
|
6495
|
+
/**
|
|
6496
|
+
* Update sub-account
|
|
6497
|
+
* @description Updates editable fields of a sub-account. Currently only the `nick_name` can be changed.
|
|
6498
|
+
*/
|
|
6499
|
+
patch: {
|
|
6500
|
+
parameters: {
|
|
6501
|
+
query?: never;
|
|
6502
|
+
header?: never;
|
|
6503
|
+
path: {
|
|
6504
|
+
sub_account_id: string;
|
|
6505
|
+
};
|
|
6506
|
+
cookie?: never;
|
|
6507
|
+
};
|
|
6508
|
+
requestBody: {
|
|
6509
|
+
content: {
|
|
6510
|
+
"application/json": {
|
|
6511
|
+
nick_name: string;
|
|
6512
|
+
};
|
|
6513
|
+
};
|
|
6514
|
+
};
|
|
6515
|
+
responses: {
|
|
6516
|
+
/** @description Sub-account updated */
|
|
6517
|
+
200: {
|
|
6518
|
+
headers: {
|
|
6519
|
+
[name: string]: unknown;
|
|
6520
|
+
};
|
|
6521
|
+
content: {
|
|
6522
|
+
"application/json": {
|
|
6523
|
+
/** @example true */
|
|
6524
|
+
success?: boolean;
|
|
6525
|
+
data?: components["schemas"]["IssuingSubAccount"];
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6528
|
+
};
|
|
6529
|
+
/** @description Bad Request — nick_name is required */
|
|
6530
|
+
400: {
|
|
6531
|
+
headers: {
|
|
6532
|
+
[name: string]: unknown;
|
|
6533
|
+
};
|
|
6534
|
+
content: {
|
|
6535
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6536
|
+
};
|
|
6537
|
+
};
|
|
6538
|
+
/** @description Sub-account not found */
|
|
6539
|
+
404: {
|
|
6540
|
+
headers: {
|
|
6541
|
+
[name: string]: unknown;
|
|
6542
|
+
};
|
|
6543
|
+
content: {
|
|
6544
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6545
|
+
};
|
|
6546
|
+
};
|
|
6547
|
+
};
|
|
6548
|
+
};
|
|
6494
6549
|
trace?: never;
|
|
6495
6550
|
};
|
|
6496
6551
|
"/admin/issuing/sub-accounts/{sub_account_id}/transactions": {
|
|
@@ -7556,6 +7611,18 @@ export interface components {
|
|
|
7556
7611
|
is_internal?: boolean;
|
|
7557
7612
|
payment_method?: string | null;
|
|
7558
7613
|
is_trusted?: boolean;
|
|
7614
|
+
/**
|
|
7615
|
+
* @description Optional minimum amount the product should allow for this order type
|
|
7616
|
+
* @example 100
|
|
7617
|
+
*/
|
|
7618
|
+
min_amount?: number | null;
|
|
7619
|
+
/**
|
|
7620
|
+
* @description Optional maximum amount the product should allow for this order type
|
|
7621
|
+
* @example 50000
|
|
7622
|
+
*/
|
|
7623
|
+
max_amount?: number | null;
|
|
7624
|
+
/** @description Whether payouts for this order type are limited to the wallet owner's own account */
|
|
7625
|
+
first_party_only?: boolean;
|
|
7559
7626
|
kyc_rails?: {
|
|
7560
7627
|
/** Format: uuid */
|
|
7561
7628
|
id?: string;
|
|
@@ -7669,6 +7736,8 @@ export interface components {
|
|
|
7669
7736
|
account_currency?: string;
|
|
7670
7737
|
/** Format: uuid */
|
|
7671
7738
|
destination_currency?: string;
|
|
7739
|
+
/** @description Whether deposits are enabled for this account. When false, public (Frontend/Developer) responses suppress deposit_instructions/account_details; admin responses still expose them. */
|
|
7740
|
+
is_deposit_enabled?: boolean;
|
|
7672
7741
|
/** @description Bank deposit instructions grouped by instruction type (ACH, FEDWIRE, SWIFT) */
|
|
7673
7742
|
deposit_instructions?: {
|
|
7674
7743
|
/**
|