squarefi-bff-api-module 1.36.2 → 1.36.4

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.
@@ -4363,7 +4363,7 @@ export interface paths {
4363
4363
  put?: never;
4364
4364
  /**
4365
4365
  * Cancel order
4366
- * @description Cancels an order. Orders in PENDING or PROCESSING status can be canceled.
4366
+ * @description Cancels an order. Orders in PENDING or FAILED status can be canceled.
4367
4367
  * Optionally provide a cancellation reason.
4368
4368
  *
4369
4369
  */
@@ -1734,8 +1734,8 @@ export interface paths {
1734
1734
  program_id?: string;
1735
1735
  /** @description Filter cards by program sub-account type (prepaid or balance) */
1736
1736
  sub_account_type?: "prepaid" | "balance";
1737
- /** @description Filter cards by status */
1738
- status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "CANCELED";
1737
+ /** @description Filter cards by status (matches issuing_cards.card_status) */
1738
+ status?: "ACTIVE" | "INACTIVE" | "FROZEN" | "CANCELED" | "CLOSED" | "BLOCKED" | "FAILED" | "PENDING";
1739
1739
  /** @description Filter cards by last 4 digits of the card number (partial, case-insensitive match) */
1740
1740
  last4?: string;
1741
1741
  /** @description Number of items to skip */
@@ -1758,7 +1758,7 @@ export interface paths {
1758
1758
  "application/json": {
1759
1759
  /** @example true */
1760
1760
  success?: boolean;
1761
- data?: Record<string, never>[];
1761
+ data?: components["schemas"]["IssuingCard"][];
1762
1762
  pagination?: {
1763
1763
  offset?: number;
1764
1764
  limit?: number;
@@ -1892,8 +1892,7 @@ export interface paths {
1892
1892
  "application/json": {
1893
1893
  /** @example true */
1894
1894
  success?: boolean;
1895
- /** @description Created card details */
1896
- data?: Record<string, never>;
1895
+ data?: components["schemas"]["IssuingCard"];
1897
1896
  /** @example Card created successfully */
1898
1897
  message?: string;
1899
1898
  };
@@ -2007,8 +2006,7 @@ export interface paths {
2007
2006
  "application/json": {
2008
2007
  /** @example true */
2009
2008
  success?: boolean;
2010
- /** @description Card details */
2011
- data?: Record<string, never>;
2009
+ data?: components["schemas"]["IssuingCard"];
2012
2010
  };
2013
2011
  };
2014
2012
  };
@@ -2128,8 +2126,7 @@ export interface paths {
2128
2126
  "application/json": {
2129
2127
  /** @example true */
2130
2128
  success?: boolean;
2131
- /** @description Updated card details */
2132
- data?: Record<string, never>;
2129
+ data?: components["schemas"]["IssuingCard"];
2133
2130
  };
2134
2131
  };
2135
2132
  };
@@ -2409,7 +2406,7 @@ export interface paths {
2409
2406
  "application/json": {
2410
2407
  /** @example true */
2411
2408
  success?: boolean;
2412
- data?: Record<string, never>[];
2409
+ data?: components["schemas"]["IssuingTransaction"][];
2413
2410
  pagination?: {
2414
2411
  offset?: number;
2415
2412
  limit?: number;
@@ -2508,8 +2505,7 @@ export interface paths {
2508
2505
  "application/json": {
2509
2506
  /** @example true */
2510
2507
  success?: boolean;
2511
- /** @description Updated limits */
2512
- data?: Record<string, never>;
2508
+ data?: components["schemas"]["IssuingCardLimits"];
2513
2509
  };
2514
2510
  };
2515
2511
  };
@@ -2796,7 +2792,7 @@ export interface paths {
2796
2792
  "application/json": {
2797
2793
  /** @example true */
2798
2794
  success?: boolean;
2799
- data?: Record<string, never>[];
2795
+ data?: components["schemas"]["IssuingSubAccount"][];
2800
2796
  pagination?: {
2801
2797
  offset?: number;
2802
2798
  limit?: number;
@@ -2884,8 +2880,7 @@ export interface paths {
2884
2880
  "application/json": {
2885
2881
  /** @example true */
2886
2882
  success?: boolean;
2887
- /** @description Created sub-account details */
2888
- data?: Record<string, never>;
2883
+ data?: components["schemas"]["IssuingSubAccountResource"];
2889
2884
  };
2890
2885
  };
2891
2886
  };
@@ -2994,8 +2989,7 @@ export interface paths {
2994
2989
  "application/json": {
2995
2990
  /** @example true */
2996
2991
  success?: boolean;
2997
- /** @description Sub-account details */
2998
- data?: Record<string, never>;
2992
+ data?: components["schemas"]["IssuingSubAccountResource"];
2999
2993
  };
3000
2994
  };
3001
2995
  };
@@ -3060,8 +3054,7 @@ export interface paths {
3060
3054
  "application/json": {
3061
3055
  /** @example true */
3062
3056
  success?: boolean;
3063
- /** @description Updated sub-account details */
3064
- data?: Record<string, never>;
3057
+ data?: components["schemas"]["IssuingSubAccountResource"];
3065
3058
  /** @example Sub-account updated successfully */
3066
3059
  message?: string;
3067
3060
  };
@@ -3140,7 +3133,7 @@ export interface paths {
3140
3133
  "application/json": {
3141
3134
  /** @example true */
3142
3135
  success?: boolean;
3143
- data?: Record<string, never>[];
3136
+ data?: components["schemas"]["IssuingTransaction"][];
3144
3137
  pagination?: {
3145
3138
  offset?: number;
3146
3139
  limit?: number;
@@ -3734,7 +3727,7 @@ export interface paths {
3734
3727
  "application/json": {
3735
3728
  /** @example true */
3736
3729
  success?: boolean;
3737
- data?: Record<string, never>[];
3730
+ data?: components["schemas"]["IssuingCardholder"][];
3738
3731
  pagination?: {
3739
3732
  offset?: number;
3740
3733
  limit?: number;
@@ -3864,8 +3857,7 @@ export interface paths {
3864
3857
  "application/json": {
3865
3858
  /** @example true */
3866
3859
  success?: boolean;
3867
- /** @description Created cardholder with vendor fields */
3868
- data?: Record<string, never>;
3860
+ data?: components["schemas"]["IssuingCardholder"];
3869
3861
  /** @example Cardholder created successfully */
3870
3862
  message?: string;
3871
3863
  };
@@ -3954,8 +3946,7 @@ export interface paths {
3954
3946
  "application/json": {
3955
3947
  /** @example true */
3956
3948
  success?: boolean;
3957
- /** @description Cardholder details */
3958
- data?: Record<string, never>;
3949
+ data?: components["schemas"]["IssuingCardholder"];
3959
3950
  };
3960
3951
  };
3961
3952
  };
@@ -4102,8 +4093,7 @@ export interface paths {
4102
4093
  "application/json": {
4103
4094
  /** @example true */
4104
4095
  success?: boolean;
4105
- /** @description Updated cardholder details */
4106
- data?: Record<string, never>;
4096
+ data?: components["schemas"]["IssuingCardholder"];
4107
4097
  /** @example Cardholder updated successfully */
4108
4098
  message?: string;
4109
4099
  };
@@ -9195,7 +9185,7 @@ export interface paths {
9195
9185
  * List wallet invites
9196
9186
  * @description Returns a paginated list of invites for the wallet.
9197
9187
  *
9198
- * **Access Control**: Owner only (invites expose the invite code and invitee email)
9188
+ * **Access Control**: Owner or admin (invites expose the invite code and invitee email)
9199
9189
  *
9200
9190
  */
9201
9191
  get: {
@@ -9205,6 +9195,8 @@ export interface paths {
9205
9195
  limit?: number;
9206
9196
  /** @description When true — only used invites; when false — only pending; omit for all. */
9207
9197
  is_completed?: boolean;
9198
+ /** @description When true — only expired invites (expires_at in the past); when false — only non-expired; omit for all. */
9199
+ is_expired?: boolean;
9208
9200
  role?: "auditor" | "user" | "admin";
9209
9201
  /** @description Case-insensitive search by email */
9210
9202
  search?: string;
@@ -9253,7 +9245,7 @@ export interface paths {
9253
9245
  * @description Creates a wallet invite that can be redeemed by a user matching the specified email.
9254
9246
  *
9255
9247
  * **Rules:**
9256
- * - Only the wallet **owner** can create invites
9248
+ * - The wallet **owner** or an **admin** can create invites
9257
9249
  * - `role` must be one of: `auditor`, `user`, `admin` (owner cannot be assigned via invite)
9258
9250
  * - If an active (not used, not expired) invite for the same email already exists,
9259
9251
  * it is superseded (expired) and replaced with a new one
@@ -9313,7 +9305,7 @@ export interface paths {
9313
9305
  };
9314
9306
  content?: never;
9315
9307
  };
9316
- /** @description Access denied (not the owner) */
9308
+ /** @description Access denied (insufficient wallet role) */
9317
9309
  403: {
9318
9310
  headers: {
9319
9311
  [name: string]: unknown;
@@ -9344,7 +9336,7 @@ export interface paths {
9344
9336
  };
9345
9337
  /**
9346
9338
  * Get wallet invite by id
9347
- * @description **Access Control**: Owner only (invites expose the invite code and invitee email)
9339
+ * @description **Access Control**: Owner or admin (invites expose the invite code and invitee email)
9348
9340
  *
9349
9341
  */
9350
9342
  get: {
@@ -9394,7 +9386,7 @@ export interface paths {
9394
9386
  * Cancel wallet invite
9395
9387
  * @description Cancels (deletes) a pending invite. Already used invites cannot be cancelled.
9396
9388
  *
9397
- * **Access Control**: Owner only
9389
+ * **Access Control**: Owner or admin
9398
9390
  *
9399
9391
  */
9400
9392
  delete: {
@@ -9430,7 +9422,7 @@ export interface paths {
9430
9422
  };
9431
9423
  content?: never;
9432
9424
  };
9433
- /** @description Access denied (not the owner) */
9425
+ /** @description Access denied (insufficient wallet role) */
9434
9426
  403: {
9435
9427
  headers: {
9436
9428
  [name: string]: unknown;
@@ -9475,6 +9467,317 @@ export interface components {
9475
9467
  message?: string;
9476
9468
  };
9477
9469
  };
9470
+ /** @description Bank / rail account coordinates for a sub-account. Rail-dependent — some rails return only a subset of these. */
9471
+ BankAccountDetails: {
9472
+ swift?: string;
9473
+ bank_name?: string;
9474
+ bank_address?: string;
9475
+ account_number?: string;
9476
+ reference_number?: string;
9477
+ };
9478
+ /** @description Account currency record (from the `crypto` table). */
9479
+ CurrencyRef: {
9480
+ /** Format: uuid */
9481
+ uuid: string;
9482
+ is_crypto: boolean;
9483
+ enabled: boolean;
9484
+ /** @description Number of minor-unit decimals */
9485
+ decimal: number;
9486
+ /** @description Currency metadata; shape depends on the currency. Fiat: { code, name, symbol, sign, icon, iso_code, description, type:"fiat" }. Crypto: { name, symbol, icon, type, chain_id, chain_name, contract, description }. */
9487
+ meta?: {
9488
+ [key: string]: unknown;
9489
+ } | null;
9490
+ };
9491
+ /** @description Sub-account funding a card — the subset of `fiat_accounts` columns joined onto each card. */
9492
+ IssuingCardSubAccount: {
9493
+ /** Format: uuid */
9494
+ id: string;
9495
+ nick_name?: string | null;
9496
+ balance?: number | null;
9497
+ /** @enum {string} */
9498
+ type: "balance" | "prepaid";
9499
+ /**
9500
+ * @description Sub-account (fiat_account) status — only these 4 of the card_status enum are used for fiat_accounts
9501
+ * @enum {string}
9502
+ */
9503
+ status: "ACTIVE" | "CLOSED" | "BLOCKED" | "CANCELED";
9504
+ /**
9505
+ * Format: uuid
9506
+ * @description crypto.uuid of the account currency
9507
+ */
9508
+ account_currency: string;
9509
+ /** Format: uuid */
9510
+ program_id?: string | null;
9511
+ /** Format: uuid */
9512
+ wallet_id: string;
9513
+ vendor_sub_account_id?: string | null;
9514
+ vendor_id?: string | null;
9515
+ /** Format: date-time */
9516
+ created_at: string;
9517
+ };
9518
+ /** @description Issuing program configuration (`issuing_programs` row). When joined it also carries nested `order_types`, `kyc_rails` and `integration_vendors` (hence additionalProperties). */
9519
+ IssuingProgram: {
9520
+ /** Format: uuid */
9521
+ id: string;
9522
+ name?: string | null;
9523
+ /** @enum {string} */
9524
+ status: "DRAFT" | "ACTIVE" | "ARCHIVED";
9525
+ /** @enum {string} */
9526
+ sub_account_type: "balance" | "prepaid";
9527
+ /** @enum {string|null} */
9528
+ type?: "CREDIT" | "DEBIT" | null;
9529
+ /** @enum {string|null} */
9530
+ brand?: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY" | null;
9531
+ /** @enum {string|null} */
9532
+ form_factor?: "PHYSICAL" | "VIRTUAL" | null;
9533
+ tokenizable: boolean;
9534
+ /** Format: uuid */
9535
+ account_currency: string;
9536
+ card_limit: number;
9537
+ vendor_id?: string | null;
9538
+ realtime_auth?: boolean | null;
9539
+ /** Format: uuid */
9540
+ tenant_id?: string | null;
9541
+ description?: string | null;
9542
+ icon?: string | null;
9543
+ code?: string | null;
9544
+ card_issuing_fee?: number | null;
9545
+ card_monthly_fee?: number | null;
9546
+ initial_topup?: number | null;
9547
+ card_design?: {
9548
+ [key: string]: unknown;
9549
+ } | null;
9550
+ /** Format: uuid */
9551
+ kyc_rails_id?: string | null;
9552
+ /** Format: uuid */
9553
+ integration_vendors_id?: string | null;
9554
+ is_hidden?: boolean | null;
9555
+ max_cards: number;
9556
+ } & {
9557
+ [key: string]: unknown;
9558
+ };
9559
+ /** @description Merchant of a card transaction. */
9560
+ TransactionMerchant: {
9561
+ name?: string;
9562
+ category_code?: string;
9563
+ city?: string;
9564
+ country?: string;
9565
+ };
9566
+ /** @description Per-period card spend limits. Each period has `_enabled` (bool), `_cap` (number) and `_spent` (number). Vendor-provided; periods may be omitted when the card has no limits configured. */
9567
+ IssuingCardLimits: {
9568
+ all_time_enabled?: boolean;
9569
+ all_time_cap?: number;
9570
+ all_time_spent?: number;
9571
+ daily_enabled?: boolean;
9572
+ daily_cap?: number;
9573
+ daily_spent?: number;
9574
+ weekly_enabled?: boolean;
9575
+ weekly_cap?: number;
9576
+ weekly_spent?: number;
9577
+ monthly_enabled?: boolean;
9578
+ monthly_cap?: number;
9579
+ monthly_spent?: number;
9580
+ yearly_enabled?: boolean;
9581
+ yearly_cap?: number;
9582
+ yearly_spent?: number;
9583
+ per_transaction_enabled?: boolean;
9584
+ per_transaction_cap?: number;
9585
+ per_transaction_spent?: number;
9586
+ };
9587
+ /** @description Issuing card. GET /cards (list) and GET /cards/{card_id} (single) share this shape. Most scalar fields pass through from the issuing vendor; only `sub_account`, `sub_account_id` and `user_data_id` are added/normalized by CORE. `required` documents the normal (vendor-enriched) contract. NOTE: if the vendor API is unavailable, the list endpoint degrades to a reduced local-only shape (omits `sub_account` and most vendor fields); this is an error-mode anomaly, not part of the contract. */
9588
+ IssuingCard: {
9589
+ /**
9590
+ * Format: uuid
9591
+ * @description Card id (also the vendor card id)
9592
+ */
9593
+ id: string;
9594
+ /** @description Internal card title */
9595
+ title?: string;
9596
+ /** @description Cardholder name on the card */
9597
+ card_name?: string;
9598
+ /** @description Last 4 PAN digits */
9599
+ last4?: string;
9600
+ /**
9601
+ * @description Card network
9602
+ * @example VISA
9603
+ */
9604
+ brand?: string;
9605
+ /** @description Funding model — true: prepaid (dedicated sub-account), false: balance (shared sub-account). Sourced from issuing_cards.is_prepaid (reliable); present for CORE-issued cards. Replaces the removed vendor `type` field. */
9606
+ is_prepaid: boolean;
9607
+ /** @enum {string} */
9608
+ form_factor?: "VIRTUAL" | "PHYSICAL";
9609
+ /**
9610
+ * @description Vendor card status
9611
+ * @enum {string}
9612
+ */
9613
+ status?: "ACTIVE" | "INACTIVE" | "FROZEN" | "CANCELED" | "CLOSED" | "BLOCKED" | "FAILED" | "PENDING";
9614
+ /** @example USD */
9615
+ currency?: string;
9616
+ /** Format: date-time */
9617
+ expiration_date?: string;
9618
+ /**
9619
+ * @description MM/YY
9620
+ * @example 06/29
9621
+ */
9622
+ expiration_date_short?: string;
9623
+ tokenizable?: boolean;
9624
+ spend_cap?: number;
9625
+ spent_amount?: number;
9626
+ /** Format: uuid */
9627
+ wallet_id?: string;
9628
+ /** Format: uuid */
9629
+ program_id?: string;
9630
+ /**
9631
+ * Format: uuid
9632
+ * @description Sub-account funding this card (backfilled from issuing_cards.fiat_account for prepaid)
9633
+ */
9634
+ sub_account_id?: string;
9635
+ vendor_sub_account_id?: string;
9636
+ /** @description Card id in the external issuing vendor */
9637
+ vendor_card_id?: string;
9638
+ /** Format: uuid */
9639
+ cardholder_id?: string | null;
9640
+ /** @description Cardholder record, or null */
9641
+ cardholder?: components["schemas"]["IssuingCardholder"] | null;
9642
+ /** @description user_data.id the card is assigned to; omitted (absent) when the card is not assigned to a member */
9643
+ user_data_id?: number;
9644
+ /** @description Embedded sub-account summary, or null when no sub-account is linked. Present on the normal (vendor-enriched) response; omitted only in the degraded local-only error mode. */
9645
+ sub_account: components["schemas"]["IssuingCardSubAccount"] | null;
9646
+ limits?: components["schemas"]["IssuingCardLimits"] | null;
9647
+ /** Format: date-time */
9648
+ created_at?: string;
9649
+ /** Format: date-time */
9650
+ updated_at?: string;
9651
+ };
9652
+ /** @description Sub-account as returned by GET /sub-accounts (list): a `fiat_accounts` row enriched with computed balances, currency, program and (when available) external bank details. */
9653
+ IssuingSubAccount: {
9654
+ /** Format: uuid */
9655
+ id: string;
9656
+ nick_name?: string | null;
9657
+ /** @enum {string} */
9658
+ type: "balance" | "prepaid";
9659
+ /**
9660
+ * @description Sub-account (fiat_account) status — only these 4 of the card_status enum are used for fiat_accounts
9661
+ * @enum {string}
9662
+ */
9663
+ status: "ACTIVE" | "CLOSED" | "BLOCKED" | "CANCELED";
9664
+ /** @description Effective balance (external balance for `balance` type, else DB balance; defaults to 0) */
9665
+ balance: number;
9666
+ fiat_balance: number;
9667
+ total_balance: number;
9668
+ realtimeauth_balance: number;
9669
+ /**
9670
+ * Format: uuid
9671
+ * @description crypto.uuid of the account currency
9672
+ */
9673
+ account_currency: string;
9674
+ /** Format: uuid */
9675
+ wallet_id: string;
9676
+ /** Format: uuid */
9677
+ program_id?: string | null;
9678
+ vendor_sub_account_id?: string | null;
9679
+ vendor_id?: string | null;
9680
+ /** @description Number of issuing_cards linked to this sub-account */
9681
+ cards_count: number;
9682
+ currency: components["schemas"]["CurrencyRef"];
9683
+ /** @description Program embed; null when program_id is null */
9684
+ issuing_program?: components["schemas"]["IssuingProgram"] | null;
9685
+ /** @description Bank details persisted on fiat_accounts; null when absent */
9686
+ bank_account_details?: components["schemas"]["BankAccountDetails"] | null;
9687
+ /** @description Bank details from the external API meta; empty string `""` when none are available. */
9688
+ account_details: components["schemas"]["BankAccountDetails"] | "";
9689
+ /** Format: date-time */
9690
+ created_at: string;
9691
+ /** Format: date-time */
9692
+ updated_at?: string | null;
9693
+ };
9694
+ /** @description Single sub-account (GET /sub-accounts/{sub_account_id}) — the raw vendor resource shape. Scalar fields below pass through from the issuing vendor. */
9695
+ IssuingSubAccountResource: {
9696
+ /** Format: uuid */
9697
+ id: string;
9698
+ title?: string;
9699
+ /** @example ACTIVE */
9700
+ status?: string;
9701
+ /** @example active */
9702
+ task_status?: string;
9703
+ /** @example USD */
9704
+ currency?: string;
9705
+ total_allocated?: number;
9706
+ total_available?: number;
9707
+ /** Format: uuid */
9708
+ wallet_id?: string;
9709
+ /** Format: uuid */
9710
+ program_id?: string;
9711
+ vendor_sub_account_id?: string;
9712
+ vendor_id?: string;
9713
+ /** Format: uuid */
9714
+ api_access_id?: string;
9715
+ /** Format: uuid */
9716
+ user_id?: string | null;
9717
+ vendor_user_id?: string | null;
9718
+ vendor_business_id?: string | null;
9719
+ /** @description Vendor meta. */
9720
+ meta?: ({
9721
+ bank_account_details?: components["schemas"]["BankAccountDetails"];
9722
+ } & {
9723
+ [key: string]: unknown;
9724
+ }) | null;
9725
+ internal_meta?: {
9726
+ [key: string]: unknown;
9727
+ } | null;
9728
+ /** Format: date-time */
9729
+ created_at?: string;
9730
+ /** Format: date-time */
9731
+ updated_at?: string;
9732
+ };
9733
+ /** @description Card / sub-account transaction (GET /cards/{card_id}/transactions and GET /sub-accounts/{sub_account_id}/transactions). Fields pass through from the issuing vendor. */
9734
+ IssuingTransaction: {
9735
+ /** @description Transaction id in the issuing vendor */
9736
+ vendor_transaction_id?: string;
9737
+ title?: string;
9738
+ last4?: string;
9739
+ /** @example APPROVED */
9740
+ status?: string;
9741
+ /** @example PURCHASE */
9742
+ transaction_type?: string;
9743
+ /** @example Purchase */
9744
+ group?: string;
9745
+ is_credit?: boolean;
9746
+ billing_amount?: number;
9747
+ /** @example USD */
9748
+ billing_currency?: string;
9749
+ transaction_amount?: number;
9750
+ /** @example USD */
9751
+ transaction_currency?: string;
9752
+ total_amount?: number;
9753
+ conversion_rate?: number;
9754
+ failure_reason?: string;
9755
+ adjustment_type?: string | null;
9756
+ review_status?: string | null;
9757
+ has_receipt?: boolean;
9758
+ merchant?: components["schemas"]["TransactionMerchant"];
9759
+ /** Format: date-time */
9760
+ created_at?: string;
9761
+ /** Format: date-time */
9762
+ cleared_at?: string | null;
9763
+ };
9764
+ /** @description Cardholder — the consumed subset (mirrors the frontend CardCardholder). The live vendor-proxied endpoint may return additional fields; only the supported subset is documented here. */
9765
+ IssuingCardholder: {
9766
+ /** Format: uuid */
9767
+ id: string;
9768
+ first_name: string;
9769
+ last_name: string;
9770
+ /** Format: email */
9771
+ email?: string | null;
9772
+ phone?: string | null;
9773
+ /** @description Date of birth */
9774
+ birth_date?: string | null;
9775
+ /**
9776
+ * @description ISO 3166 alpha-3
9777
+ * @example ESP
9778
+ */
9779
+ nationality?: string | null;
9780
+ };
9478
9781
  /** @description Crypto wallet with nested addresses */
9479
9782
  CryptoWallet: {
9480
9783
  /**
@@ -3328,7 +3328,7 @@ export interface paths {
3328
3328
  put?: never;
3329
3329
  /**
3330
3330
  * Cancel order
3331
- * @description Cancels an order. Orders in PENDING or PROCESSING status can be canceled.
3331
+ * @description Cancels an order. Orders in PENDING or FAILED status can be canceled.
3332
3332
  * Optionally provide a cancellation reason.
3333
3333
  *
3334
3334
  */
@@ -1447,7 +1447,7 @@ export interface components {
1447
1447
  /** @description Is main wallet for user */
1448
1448
  is_main: boolean;
1449
1449
  /** @enum {string} */
1450
- role: "owner" | "admin" | "user";
1450
+ role: "owner" | "admin" | "user" | "auditor";
1451
1451
  readonly kyc_info?: components["schemas"]["WalletKycInfoDto"];
1452
1452
  };
1453
1453
  WalletsFilter: Record<string, never>;
@@ -1478,7 +1478,7 @@ export interface components {
1478
1478
  /** @description Is main wallet for user */
1479
1479
  is_main: boolean;
1480
1480
  /** @enum {string} */
1481
- role: "owner" | "admin" | "user";
1481
+ role: "owner" | "admin" | "user" | "auditor";
1482
1482
  readonly kyc_info?: components["schemas"]["WalletKycInfoDto"];
1483
1483
  fiat_total: number;
1484
1484
  crypto_total: number;
@@ -1597,6 +1597,7 @@ export interface components {
1597
1597
  InitKycDataCollectionResponseDto: {
1598
1598
  providerType: string;
1599
1599
  verificationId: string;
1600
+ verificationToken?: string;
1600
1601
  };
1601
1602
  ResumeKycDataCollectionResponseDto: {
1602
1603
  providerType: string;
@@ -2298,6 +2299,8 @@ export interface components {
2298
2299
  enable_referral_program: boolean;
2299
2300
  readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
2300
2301
  readonly statement_branding?: components["schemas"]["StatementBrandingEntity"] | null;
2302
+ /** @enum {string} */
2303
+ kyc_data_provider: "persona" | "sumsub";
2301
2304
  base_currency: string;
2302
2305
  };
2303
2306
  SystemChainsResponseDto: {
@@ -2359,19 +2362,19 @@ export interface components {
2359
2362
  };
2360
2363
  WalletUserDto: {
2361
2364
  /** @enum {string} */
2362
- readonly role: "owner" | "admin" | "user";
2365
+ readonly role: "owner" | "admin" | "user" | "auditor";
2363
2366
  is_active: boolean;
2364
2367
  user_info?: components["schemas"]["WalletUserInfoDto"][];
2365
2368
  };
2366
2369
  WalletUsersFilterDto: {
2367
2370
  is_active?: boolean;
2368
2371
  /** @enum {string} */
2369
- role?: "owner" | "admin" | "user";
2372
+ role?: "owner" | "admin" | "user" | "auditor";
2370
2373
  search?: string;
2371
2374
  };
2372
2375
  UpdateWalletUserRoleDto: {
2373
2376
  /** @enum {string} */
2374
- role: "user";
2377
+ role: "user" | "auditor";
2375
2378
  };
2376
2379
  };
2377
2380
  responses: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.2",
3
+ "version": "1.36.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,7 +0,0 @@
1
- import { API } from './types/types';
2
- export declare const persona: {
3
- inquiries: {
4
- init: ({ wallet_id, type }: API.Persona.Inquiries.Init.Request) => Promise<API.Persona.Inquiries.Init.Response>;
5
- resume: ({ wallet_id, inquiry_id, }: API.Persona.Inquiries.Resume.Request) => Promise<API.Persona.Inquiries.Resume.Response>;
6
- };
7
- };
@@ -1,7 +0,0 @@
1
- import { apiClientV2 } from '../utils/apiClientFactory';
2
- export const persona = {
3
- inquiries: {
4
- init: ({ wallet_id, type }) => apiClientV2.postRequest(`/persona/inquiries/init/${wallet_id}/${type}`),
5
- resume: ({ wallet_id, inquiry_id, }) => apiClientV2.postRequest(`/persona/inquiries/${wallet_id}/${inquiry_id}/resume`),
6
- },
7
- };