squarefi-bff-api-module 1.36.8 → 1.36.10

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.
@@ -43,7 +43,7 @@ export const orders = {
43
43
  },
44
44
  create: {
45
45
  byOrderType: {
46
- [OrderType.TRANSFER_INTERNAL]: (data) => apiClientV1.postRequest('/v2/orders/TRA', {
46
+ [OrderType.TRANSFER_INTERNAL]: (data) => apiClientV1.postRequest('/v2/orders/TRANSFER_INTERNAL', {
47
47
  data,
48
48
  }),
49
49
  [OrderType.HIFI_WIRE_ONRAMP]: (data) => apiClientV1.postRequest('/v2/orders/HIFI_WIRE_ONRAMP', {
@@ -571,6 +571,10 @@ export interface paths {
571
571
  page?: number;
572
572
  type?: "BUSINESS" | "INDIVIDUAL";
573
573
  search?: string;
574
+ /** @description Field to sort by. When omitted, defaults to pinned accounts first, then newest. */
575
+ sort_by?: "created_at" | "type" | "name" | "nickname" | "email" | "phone";
576
+ /** @description Sort direction (defaults to ASC). Ignored without `sort_by`. */
577
+ sort_order?: "ASC" | "DESC";
574
578
  };
575
579
  header?: never;
576
580
  path?: never;
@@ -6897,17 +6901,17 @@ export interface components {
6897
6901
  * Format: uuid
6898
6902
  * @description Unique account identifier
6899
6903
  */
6900
- id?: string;
6904
+ id: string;
6901
6905
  /**
6902
6906
  * @description Account holder name
6903
6907
  * @example Acme Corp
6904
6908
  */
6905
- name?: string;
6909
+ name: string;
6906
6910
  /**
6907
6911
  * @description Account type
6908
6912
  * @enum {string}
6909
6913
  */
6910
- type?: "BUSINESS" | "INDIVIDUAL";
6914
+ type: "BUSINESS" | "INDIVIDUAL";
6911
6915
  /**
6912
6916
  * Format: uuid
6913
6917
  * @description Associated wallet ID
@@ -6920,17 +6924,19 @@ export interface components {
6920
6924
  /** @description Contact phone */
6921
6925
  phone?: string | null;
6922
6926
  /** @description Whether account is pinned/favorite */
6923
- is_pinned?: boolean;
6927
+ is_pinned: boolean;
6924
6928
  /** @description Whether this is a self-owned account */
6925
- is_self?: boolean;
6929
+ is_self: boolean;
6930
+ /**
6931
+ * @description Whether the account has at least one active INTERNAL destination (on-platform receiver). Always present; computed on list and get-by-id, false on create/update.
6932
+ * @default false
6933
+ */
6934
+ has_internal_destination: boolean;
6926
6935
  /** Format: date-time */
6927
- created_at?: string;
6936
+ created_at: string;
6928
6937
  /** Format: date-time */
6929
6938
  updated_at?: string;
6930
- is_deleted?: boolean | null;
6931
- /** Format: date-time */
6932
- deleted_at?: string | null;
6933
- /** @description Number of active destinations */
6939
+ /** @description Number of destinations */
6934
6940
  destinations_count?: number;
6935
6941
  };
6936
6942
  /** @description Bank/beneficiary postal address */
@@ -931,6 +931,10 @@ export interface paths {
931
931
  limit?: number;
932
932
  type?: "BUSINESS" | "INDIVIDUAL";
933
933
  search?: string;
934
+ /** @description Field to sort by. When omitted, defaults to pinned accounts first, then newest. */
935
+ sort_by?: "created_at" | "type" | "name" | "nickname" | "email" | "phone";
936
+ /** @description Sort direction (defaults to ASC). Ignored without `sort_by`. */
937
+ sort_order?: "ASC" | "DESC";
934
938
  };
935
939
  header?: never;
936
940
  path: {
@@ -6204,8 +6208,11 @@ export interface paths {
6204
6208
  wallet_id: string;
6205
6209
  /** Format: uuid */
6206
6210
  from_currency_id: string;
6207
- /** Format: uuid */
6208
- to_wallet_id: string;
6211
+ /**
6212
+ * Format: uuid
6213
+ * @description Receiver — a counterparty destination of type INTERNAL (points at the target wallet)
6214
+ */
6215
+ counterparty_destination_id: string;
6209
6216
  amount: number;
6210
6217
  request_id: string;
6211
6218
  };
@@ -9945,6 +9952,11 @@ export interface components {
9945
9952
  is_pinned: boolean;
9946
9953
  /** @description Whether this is the wallet owner’s own (self) account */
9947
9954
  is_self: boolean;
9955
+ /**
9956
+ * @description Whether the account has at least one active INTERNAL destination (on-platform receiver). Always present; computed on list and get-by-id, false on create/update.
9957
+ * @default false
9958
+ */
9959
+ has_internal_destination: boolean;
9948
9960
  /** Format: date-time */
9949
9961
  created_at: string;
9950
9962
  };
@@ -5943,6 +5943,9 @@ export interface paths {
5943
5943
  * Two transactions are created atomically: `WITHDRAWAL_CRYPTO_INTERNAL` (sender) and `DEPOSIT_CRYPTO_INTERNAL` (receiver).
5944
5944
  * Fee and network_fee are always 0.
5945
5945
  *
5946
+ * The receiver is addressed by `counterparty_destination_id` — a counterparty
5947
+ * destination of type `INTERNAL` that points at the target wallet.
5948
+ *
5946
5949
  */
5947
5950
  post: {
5948
5951
  parameters: {
@@ -5966,9 +5969,11 @@ export interface paths {
5966
5969
  from_currency_id: string;
5967
5970
  /**
5968
5971
  * Format: uuid
5969
- * @description Destination wallet ID
5972
+ * @description Receiver, addressed by a counterparty destination of type `INTERNAL`
5973
+ * (points at the target wallet).
5974
+ *
5970
5975
  */
5971
- to_wallet_id: string;
5976
+ counterparty_destination_id: string;
5972
5977
  /** @description Amount to transfer */
5973
5978
  amount: number;
5974
5979
  /**
@@ -7516,25 +7516,27 @@ export interface components {
7516
7516
  };
7517
7517
  CounterpartyAccount: {
7518
7518
  /** Format: uuid */
7519
- id?: string;
7520
- name?: string;
7519
+ id: string;
7520
+ name: string;
7521
7521
  /** @enum {string} */
7522
- type?: "BUSINESS" | "INDIVIDUAL";
7522
+ type: "BUSINESS" | "INDIVIDUAL";
7523
7523
  /** Format: uuid */
7524
7524
  wallet_id?: string;
7525
7525
  nickname?: string | null;
7526
7526
  email?: string | null;
7527
7527
  phone?: string | null;
7528
- is_pinned?: boolean;
7529
- is_self?: boolean;
7528
+ is_pinned: boolean;
7529
+ is_self: boolean;
7530
+ /**
7531
+ * @description Whether the account has at least one active INTERNAL destination (on-platform receiver). Always present; computed on list and get-by-id, false on create/update.
7532
+ * @default false
7533
+ */
7534
+ has_internal_destination: boolean;
7530
7535
  /** Format: date-time */
7531
- created_at?: string;
7536
+ created_at: string;
7532
7537
  /** Format: date-time */
7533
7538
  updated_at?: string;
7534
- is_deleted?: boolean | null;
7535
- /** Format: date-time */
7536
- deleted_at?: string | null;
7537
- /** @description Number of active destinations */
7539
+ /** @description Number of destinations */
7538
7540
  destinations_count?: number;
7539
7541
  };
7540
7542
  BankingData: {
@@ -1861,6 +1861,10 @@ export interface components {
1861
1861
  stablecoin_primary_purpose?: string[] | null;
1862
1862
  stablecoin_primary_purpose_other?: string | null;
1863
1863
  pep_declaration?: boolean | null;
1864
+ pep_full_name?: string | null;
1865
+ pep_relationship?: string | null;
1866
+ pep_country?: string | null;
1867
+ terms_and_conditions?: boolean | null;
1864
1868
  expected_monthly_transactions_count?: number | null;
1865
1869
  outgoing_payment_purposes?: string[] | null;
1866
1870
  incoming_payment_purposes?: string[] | null;
@@ -1992,6 +1996,10 @@ export interface components {
1992
1996
  stablecoin_primary_purpose?: string[] | null;
1993
1997
  stablecoin_primary_purpose_other?: string | null;
1994
1998
  pep_declaration?: boolean | null;
1999
+ pep_full_name?: string | null;
2000
+ pep_relationship?: string | null;
2001
+ pep_country?: string | null;
2002
+ terms_and_conditions?: boolean | null;
1995
2003
  expected_monthly_transactions_count?: number | null;
1996
2004
  outgoing_payment_purposes?: string[] | null;
1997
2005
  incoming_payment_purposes?: string[] | null;
@@ -442,9 +442,9 @@ export declare namespace API {
442
442
  counterparty_account_id: string;
443
443
  type: CounterpartyDestinationType;
444
444
  nickname?: string;
445
- external_banking_data?: List.DestinationListItemExternalBankingData;
445
+ external_banking_data?: Pick<List.DestinationListItemExternalBankingData, 'account_number' | 'routing_number' | 'bank_name' | 'swift_bic' | 'iban' | 'sort_code' | 'note' | 'address'>;
446
446
  external_crypto_data?: Pick<List.DestinationListItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
447
- internal_data?: List.DestinationInternalData;
447
+ internal_data?: Pick<List.DestinationInternalData, 'wallet_id' | 'description'>;
448
448
  }
449
449
  type Response = Detail.DestinationDetailItem;
450
450
  }
@@ -1365,17 +1365,8 @@ export declare namespace API {
1365
1365
  }
1366
1366
  namespace ByOrderType {
1367
1367
  namespace INTERNAL_TRANSFER {
1368
- interface Request {
1369
- wallet_id: string;
1370
- from_crypto_uuid: string;
1371
- to_wallet_id: string;
1372
- to_wallet_uuid: string;
1373
- amount: number;
1374
- request_id: string;
1375
- is_subtract: boolean;
1376
- is_reverse: boolean;
1377
- }
1378
- type Response = null;
1368
+ type Request = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['requestBody']['content']['application/json'];
1369
+ type Response = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['responses']['200']['content']['application/json'];
1379
1370
  }
1380
1371
  namespace HIFI_WIRE_ONRAMP {
1381
1372
  type Request = Common.Request.OrderWithCounterpartyParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.8",
3
+ "version": "1.36.10",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",