squarefi-bff-api-module 1.32.3 → 1.32.5

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.
@@ -10,6 +10,6 @@ export declare const counterparties: {
10
10
  getById: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Detail.Request) => Promise<API.Counterparties.Destination.Detail.Response>;
11
11
  create: ({ wallet_id, counterparty_account_id, ...data }: API.Counterparties.Destination.Create.Request) => Promise<API.Counterparties.Destination.Create.Response>;
12
12
  update: ({ wallet_id, counterparty_account_id, counterparty_destination_id, ...data }: API.Counterparties.Destination.Update.Request) => Promise<API.Counterparties.Destination.Update.Response>;
13
- delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Delete.Request) => Promise<API.Counterparties.Destination.Delete.Response>;
13
+ delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Delete.Request) => Promise<void>;
14
14
  };
15
15
  };
@@ -10,14 +10,7 @@ export const counterparties = {
10
10
  destinations: {
11
11
  getAll: ({ wallet_id, counterparty_account_id, ...params }) => apiClientV2.getRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations`, { params }),
12
12
  getById: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }) => apiClientV2.getRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`),
13
- create: ({ wallet_id, counterparty_account_id,
14
- // 'verification-request-id': verificationRequestId, // TODO:verify request id not implemented yet on the backend
15
- ...data }) => apiClientV2.postRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations`, {
16
- data,
17
- // headers: { TODO:verify request id not implemented yet on the backend
18
- // 'verification-request-id': verificationRequestId,
19
- // },
20
- }),
13
+ create: ({ wallet_id, counterparty_account_id, ...data }) => apiClientV2.postRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations`, { data }),
21
14
  update: ({ wallet_id, counterparty_account_id, counterparty_destination_id, ...data }) => apiClientV2.patchRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`, { data }),
22
15
  delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }) => apiClientV2.deleteRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`),
23
16
  },
@@ -1813,7 +1813,14 @@ export interface components {
1813
1813
  primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
1814
1814
  business_jurisdictions?: string[] | null;
1815
1815
  funds_send_receive_jurisdictions?: string[] | null;
1816
+ engage_in_activities?: ("NONE" | "ADULT_ENTERTAINMENT" | "DRUGS" | "FIREARMS" | "GAMBLING" | "MARIJUANA" | "TUMBLING")[] | null;
1817
+ monthly_deposits?: string | null;
1818
+ /** @enum {string|null} */
1819
+ regulated_status?: "REGULATED" | "REGISTERED" | "LICENSED" | "NONE" | "NOT_REQUIRED" | null;
1820
+ total_assets?: string | null;
1821
+ vendors_and_counterparties?: ("SELF" | "MERCHANTS_SUPPLIERS" | "CUSTOMERS" | "EMPLOYEES" | "CONTRACTORS" | "FRIENDS" | "FAMILY")[] | null;
1816
1822
  address?: components["schemas"]["KycAddressDto"] | null;
1823
+ physical_address?: components["schemas"]["KycAddressDto"] | null;
1817
1824
  beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1818
1825
  };
1819
1826
  CreateOrUpdateKycEntityDto: {
@@ -1917,7 +1924,14 @@ export interface components {
1917
1924
  primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
1918
1925
  business_jurisdictions?: string[] | null;
1919
1926
  funds_send_receive_jurisdictions?: string[] | null;
1927
+ engage_in_activities?: ("NONE" | "ADULT_ENTERTAINMENT" | "DRUGS" | "FIREARMS" | "GAMBLING" | "MARIJUANA" | "TUMBLING")[] | null;
1928
+ monthly_deposits?: string | null;
1929
+ /** @enum {string|null} */
1930
+ regulated_status?: "REGULATED" | "REGISTERED" | "LICENSED" | "NONE" | "NOT_REQUIRED" | null;
1931
+ total_assets?: string | null;
1932
+ vendors_and_counterparties?: ("SELF" | "MERCHANTS_SUPPLIERS" | "CUSTOMERS" | "EMPLOYEES" | "CONTRACTORS" | "FRIENDS" | "FAMILY")[] | null;
1920
1933
  address?: components["schemas"]["KycAddressDto"] | null;
1934
+ physical_address?: components["schemas"]["KycAddressDto"] | null;
1921
1935
  beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1922
1936
  };
1923
1937
  WalletKycRailExtraActionDto: {
@@ -2048,7 +2062,7 @@ export interface components {
2048
2062
  CounterpartyDestinationsFilter: {
2049
2063
  nickname?: string | null;
2050
2064
  /** @enum {string} */
2051
- type?: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2065
+ type?: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2052
2066
  created_at?: string;
2053
2067
  };
2054
2068
  StateEntity: {
@@ -2116,7 +2130,7 @@ export interface components {
2116
2130
  id: string;
2117
2131
  nickname: string | null;
2118
2132
  /** @enum {string} */
2119
- type: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2133
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2120
2134
  created_at: string;
2121
2135
  external_banking_data?: components["schemas"]["CounterpartyExternalBankingDataDto"];
2122
2136
  external_crypto_data?: components["schemas"]["CounterpartyExternalCryptoDataDto"];
@@ -2155,7 +2169,7 @@ export interface components {
2155
2169
  CreateCounterpartyDestinationDto: {
2156
2170
  nickname: string | null;
2157
2171
  /** @enum {string} */
2158
- type: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2172
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2159
2173
  external_banking_data: components["schemas"]["CreateCounterpartyExternalBankingDataDto"];
2160
2174
  external_crypto_data: components["schemas"]["CreateCounterpartyExternalCryptoDataDto"];
2161
2175
  };
@@ -4322,10 +4336,7 @@ export interface operations {
4322
4336
  CounterpartyDestinationsController_create: {
4323
4337
  parameters: {
4324
4338
  query?: never;
4325
- header: {
4326
- /** @description Verification request ID */
4327
- "verification-request-id": string;
4328
- };
4339
+ header?: never;
4329
4340
  path: {
4330
4341
  counterparty_account_id: string;
4331
4342
  wallet_id: unknown;
@@ -4346,13 +4357,6 @@ export interface operations {
4346
4357
  "application/json": components["schemas"]["CounterpartyDestinationDto"];
4347
4358
  };
4348
4359
  };
4349
- /** @description Verification request ID is required */
4350
- 400: {
4351
- headers: {
4352
- [name: string]: unknown;
4353
- };
4354
- content?: never;
4355
- };
4356
4360
  /** @description Unauthorized */
4357
4361
  401: {
4358
4362
  headers: {
@@ -364,65 +364,135 @@ export declare namespace API {
364
364
  }
365
365
  }
366
366
  namespace Counterparties {
367
+ type CounterpartyType = components['schemas']['CounterpartyAccountDto']['type'];
367
368
  type Counterparty = components['schemas']['CounterpartyAccountDto'];
368
- namespace List {
369
- type Request = {
370
- wallet_id: string;
371
- } & operations['CounterpartyAccountsController_findAll']['parameters']['query'];
372
- type Response = operations['CounterpartyAccountsController_findAll']['responses']['200']['content']['application/json'];
373
- }
374
- namespace GetById {
375
- type Request = operations['CounterpartyAccountsController_findOne']['parameters']['path'];
376
- type Response = operations['CounterpartyAccountsController_findOne']['responses']['200']['content']['application/json'];
377
- }
378
- namespace Create {
379
- type Request = {
380
- wallet_id: string;
381
- } & operations['CounterpartyAccountsController_create']['requestBody']['content']['application/json'];
382
- type Response = operations['CounterpartyAccountsController_create']['responses']['200']['content']['application/json'];
383
- }
384
- namespace Update {
385
- type Request = {
386
- wallet_id: string;
387
- counterparty_account_id: string;
388
- } & operations['CounterpartyAccountsController_update']['requestBody']['content']['application/json'];
389
- type Response = operations['CounterpartyAccountsController_update']['responses']['200']['content']['application/json'];
390
- }
391
- namespace Delete {
392
- type Request = operations['CounterpartyAccountsController_delete']['parameters']['path'];
393
- type Response = operations['CounterpartyAccountsController_delete']['responses']['200']['content']['application/json'];
394
- }
395
369
  namespace Destination {
370
+ type CounterpartyDestinationType = components['schemas']['CounterpartyDestinationDto']['type'];
371
+ type BankingDestinationType = Extract<CounterpartyDestinationType, 'FEDWIRE'> | Extract<CounterpartyDestinationType, 'ACH'> | Extract<CounterpartyDestinationType, 'SWIFT'> | Extract<CounterpartyDestinationType, 'SEPA'> | Extract<CounterpartyDestinationType, 'CHAPS'> | Extract<CounterpartyDestinationType, 'FPS'>;
372
+ type CryptoDestinationType = Extract<CounterpartyDestinationType, 'CRYPTO_EXTERNAL'> | Extract<CounterpartyDestinationType, 'CRYPTO_INTERNAL'>;
373
+ type DestinationType = BankingDestinationType | CryptoDestinationType;
396
374
  namespace List {
397
- type Request = {
398
- wallet_id: string;
399
- counterparty_account_id: string;
400
- } & operations['CounterpartyDestinationsController_findAll']['parameters']['query'];
401
- type Response = operations['CounterpartyDestinationsController_findAll']['responses']['200']['content']['application/json'];
375
+ interface DestinationListItemCommonFields {
376
+ id: string;
377
+ nickname: string;
378
+ type: CounterpartyDestinationType;
379
+ created_at: string;
380
+ }
381
+ interface DestinationListItemExternalBankingData {
382
+ account_number?: string;
383
+ routing_number?: string;
384
+ bank_name: string;
385
+ note: string;
386
+ swift_bic?: string;
387
+ address: {
388
+ city: string;
389
+ country_id: number;
390
+ state_id: number;
391
+ postcode: string;
392
+ street1: string;
393
+ street2?: string;
394
+ };
395
+ }
396
+ interface DestinationListItemExternalCryptoData {
397
+ address: string;
398
+ currency_id: string;
399
+ memo?: string;
400
+ }
401
+ interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
402
+ type: BankingDestinationType;
403
+ external_banking_data: DestinationListItemExternalBankingData;
404
+ external_crypto_data?: never;
405
+ }
406
+ interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
407
+ type: CryptoDestinationType;
408
+ external_banking_data?: never;
409
+ external_crypto_data: DestinationListItemExternalCryptoData;
410
+ }
411
+ type CounterpartyDestinationListItem = DestinationListItemWithExternalBankingData | DestinationListItemWithExternalCryptoData;
412
+ type Request = operations['CounterpartyDestinationsController_findAll']['parameters']['query'] & operations['CounterpartyDestinationsController_findAll']['parameters']['path'];
413
+ type Response = {
414
+ total: number;
415
+ data: CounterpartyDestinationListItem[];
416
+ };
402
417
  }
403
418
  namespace Detail {
404
- type Request = operations['CounterpartyDestinationsController_findOne']['parameters']['path'];
405
- type Response = operations['CounterpartyDestinationsController_findOne']['responses']['200']['content']['application/json'];
406
- }
407
- namespace Create {
408
- type Request = {
419
+ type DestinationDetailItemCommonFields = API.Counterparties.Destination.List.DestinationListItemCommonFields;
420
+ interface DestinationDetailItemExternalBankingData extends API.Counterparties.Destination.List.DestinationListItemExternalBankingData {
421
+ address: API.Counterparties.Destination.List.DestinationListItemExternalBankingData['address'] & {
422
+ country?: API.Location.Countries.Country;
423
+ state?: API.Location.States.State;
424
+ };
425
+ }
426
+ interface DestinationDetailItemExternalCryptoData extends API.Counterparties.Destination.List.DestinationListItemExternalCryptoData {
427
+ currency: API.Currencies.Currency;
428
+ }
429
+ interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
430
+ type: BankingDestinationType;
431
+ external_banking_data: DestinationDetailItemExternalBankingData;
432
+ external_crypto_data?: never;
433
+ }
434
+ interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
435
+ type: CryptoDestinationType;
436
+ external_banking_data?: never;
437
+ external_crypto_data: DestinationDetailItemExternalCryptoData;
438
+ }
439
+ type DestinationDetailItem = DestinationDetailItemWithExternalBankingData | DestinationDetailItemWithExternalCryptoData;
440
+ type Request = operations['CounterpartyDestinationsController_findOne']['parameters']['path'] & {
409
441
  wallet_id: string;
410
- counterparty_account_id: string;
411
- } & operations['CounterpartyDestinationsController_create']['requestBody']['content']['application/json'];
412
- type Response = operations['CounterpartyDestinationsController_create']['responses']['200']['content']['application/json'];
442
+ };
443
+ type Response = DestinationDetailItem;
413
444
  }
414
- namespace Update {
415
- type Request = {
445
+ namespace Create {
446
+ interface ExternalBankingData {
447
+ account_number: string;
448
+ routing_number: string;
449
+ bank_name: string;
450
+ note: string;
451
+ swift_bic: string;
452
+ }
453
+ interface Request {
416
454
  wallet_id: string;
417
455
  counterparty_account_id: string;
418
- counterparty_destination_id: string;
419
- } & operations['CounterpartyDestinationsController_update']['requestBody']['content']['application/json'];
420
- type Response = operations['CounterpartyDestinationsController_update']['responses']['200']['content']['application/json'];
456
+ type: CounterpartyDestinationType;
457
+ nickname: string;
458
+ external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
459
+ external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
460
+ }
461
+ type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
421
462
  }
422
463
  namespace Delete {
423
464
  type Request = operations['CounterpartyDestinationsController_delete']['parameters']['path'];
424
- type Response = operations['CounterpartyDestinationsController_delete']['responses']['200']['content']['application/json'];
425
465
  }
466
+ namespace Update {
467
+ type Request = operations['CounterpartyDestinationsController_update']['requestBody']['content']['application/json'] & operations['CounterpartyDestinationsController_update']['parameters']['path'];
468
+ type Response = components['schemas']['CounterpartyDestinationDto'];
469
+ }
470
+ }
471
+ namespace GetById {
472
+ interface Request {
473
+ wallet_id: string;
474
+ counterparty_account_id: string;
475
+ }
476
+ type Response = components['schemas']['CounterpartyAccountDto'];
477
+ }
478
+ namespace List {
479
+ type Request = operations['CounterpartyAccountsController_findAll']['parameters']['query'] & operations['CounterpartyAccountsController_findAll']['parameters']['path'];
480
+ type Response = {
481
+ total: number;
482
+ data: Counterparty[];
483
+ };
484
+ }
485
+ namespace Create {
486
+ type Request = operations['CounterpartyAccountsController_create']['requestBody']['content']['application/json'] & operations['CounterpartyAccountsController_create']['parameters']['path'];
487
+ type Response = Counterparty;
488
+ }
489
+ namespace Update {
490
+ type Request = operations['CounterpartyAccountsController_update']['requestBody']['content']['application/json'] & operations['CounterpartyAccountsController_update']['parameters']['path'];
491
+ type Response = Counterparty;
492
+ }
493
+ namespace Delete {
494
+ type Request = operations['CounterpartyAccountsController_delete']['parameters']['path'];
495
+ type Response = Counterparty;
426
496
  }
427
497
  }
428
498
  namespace Currencies {
@@ -675,6 +745,7 @@ export declare namespace API {
675
745
  }
676
746
  }
677
747
  namespace KYC {
748
+ type KYCStatus = components['schemas']['KycEntityDto']['status'];
678
749
  namespace Sumsub {
679
750
  namespace GenerateToken {
680
751
  interface Request {
@@ -1,3 +1,5 @@
1
+ import { API } from '.';
2
+ import { IsEnumEqualToUnion, EnumUnionMismatch } from './utils/types';
1
3
  export type ValueWithLabel = {
2
4
  value: string;
3
5
  label: string;
@@ -230,8 +232,12 @@ export declare enum KYCStatuses {
230
232
  DOUBLE = "DOUBLE",
231
233
  SOFT_REJECT = "SOFT_REJECT",
232
234
  REJECT = "REJECT",
233
- UNVERIFIED = "UNVERIFIED"
235
+ UNVERIFIED = "UNVERIFIED",
236
+ WAITING_ON_UBOS = "WAITING_ON_UBOS",
237
+ WAITING_ON_REVIEW = "WAITING_ON_REVIEW"
234
238
  }
239
+ export declare const KYCStatusCheck: IsEnumEqualToUnion<KYCStatuses, API.KYC.KYCStatus>;
240
+ export type KYCStatusMismatch = EnumUnionMismatch<KYCStatuses, API.KYC.KYCStatus>;
235
241
  export declare enum OrderStatuses {
236
242
  NEW = "NEW",
237
243
  PENDING = "PENDING",
@@ -281,14 +287,21 @@ export declare enum CounterpartyType {
281
287
  INDIVIDUAL = "INDIVIDUAL",
282
288
  BUSINESS = "BUSINESS"
283
289
  }
290
+ export declare const counterpartyTypeCheck: IsEnumEqualToUnion<CounterpartyType, API.Counterparties.CounterpartyType>;
284
291
  export declare enum CounterpartyDestinationType {
285
- DOMESTIC_WIRE = "DOMESTIC_WIRE",
292
+ FEDWIRE = "FEDWIRE",
286
293
  ACH = "ACH",
287
294
  SWIFT = "SWIFT",
288
295
  SEPA = "SEPA",
289
296
  CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
290
- CRYPTO_INTERNAL = "CRYPTO_INTERNAL"
297
+ CRYPTO_INTERNAL = "CRYPTO_INTERNAL",
298
+ CHAPS = "CHAPS",
299
+ FPS = "FPS"
291
300
  }
301
+ export declare const counterpartyBankingAndCryptoDestinationTypeCheck: IsEnumEqualToUnion<API.Counterparties.Destination.CounterpartyDestinationType, API.Counterparties.Destination.DestinationType>;
302
+ export type CounterpartyBankingAndCryptoDestinationTypeMismatch = EnumUnionMismatch<API.Counterparties.Destination.CounterpartyDestinationType, API.Counterparties.Destination.DestinationType>;
303
+ export declare const counterpartyDestinationTypeCheck: IsEnumEqualToUnion<CounterpartyDestinationType, API.Counterparties.Destination.CounterpartyDestinationType>;
304
+ export type CounterpartyDestinationTypeMismatch = EnumUnionMismatch<CounterpartyDestinationType, API.Counterparties.Destination.CounterpartyDestinationType>;
292
305
  export declare enum CardTransactionStatus {
293
306
  APPROVED = "APPROVED",
294
307
  CLEARED = "CLEARED",
package/dist/constants.js CHANGED
@@ -249,7 +249,10 @@ export var KYCStatuses;
249
249
  KYCStatuses["SOFT_REJECT"] = "SOFT_REJECT";
250
250
  KYCStatuses["REJECT"] = "REJECT";
251
251
  KYCStatuses["UNVERIFIED"] = "UNVERIFIED";
252
+ KYCStatuses["WAITING_ON_UBOS"] = "WAITING_ON_UBOS";
253
+ KYCStatuses["WAITING_ON_REVIEW"] = "WAITING_ON_REVIEW";
252
254
  })(KYCStatuses || (KYCStatuses = {}));
255
+ export const KYCStatusCheck = true;
253
256
  export var OrderStatuses;
254
257
  (function (OrderStatuses) {
255
258
  OrderStatuses["NEW"] = "NEW";
@@ -308,15 +311,20 @@ export var CounterpartyType;
308
311
  CounterpartyType["INDIVIDUAL"] = "INDIVIDUAL";
309
312
  CounterpartyType["BUSINESS"] = "BUSINESS";
310
313
  })(CounterpartyType || (CounterpartyType = {}));
314
+ export const counterpartyTypeCheck = true;
311
315
  export var CounterpartyDestinationType;
312
316
  (function (CounterpartyDestinationType) {
313
- CounterpartyDestinationType["DOMESTIC_WIRE"] = "DOMESTIC_WIRE";
317
+ CounterpartyDestinationType["FEDWIRE"] = "FEDWIRE";
314
318
  CounterpartyDestinationType["ACH"] = "ACH";
315
319
  CounterpartyDestinationType["SWIFT"] = "SWIFT";
316
320
  CounterpartyDestinationType["SEPA"] = "SEPA";
317
321
  CounterpartyDestinationType["CRYPTO_EXTERNAL"] = "CRYPTO_EXTERNAL";
318
322
  CounterpartyDestinationType["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
323
+ CounterpartyDestinationType["CHAPS"] = "CHAPS";
324
+ CounterpartyDestinationType["FPS"] = "FPS";
319
325
  })(CounterpartyDestinationType || (CounterpartyDestinationType = {}));
326
+ export const counterpartyBankingAndCryptoDestinationTypeCheck = true;
327
+ export const counterpartyDestinationTypeCheck = true;
320
328
  export var CardTransactionStatus;
321
329
  (function (CardTransactionStatus) {
322
330
  CardTransactionStatus["APPROVED"] = "APPROVED";
@@ -0,0 +1,9 @@
1
+ export type EnumValues<T> = `${T & string}` extends `${infer V}` ? V : never;
2
+ export type EnumValuesMissingInUnion<E, U> = Exclude<EnumValues<E>, U>;
3
+ export type UnionValuesMissingInEnum<E, U> = Exclude<U, EnumValues<E>>;
4
+ export type EnumUnionMismatch<E, U> = {
5
+ enumMissingInUnion: EnumValuesMissingInUnion<E, U>;
6
+ unionMissingInEnum: UnionValuesMissingInEnum<E, U>;
7
+ hasMismatch: [EnumValuesMissingInUnion<E, U>, UnionValuesMissingInEnum<E, U>] extends [never, never] ? false : true;
8
+ };
9
+ export type IsEnumEqualToUnion<E, U> = [EnumValues<E>] extends [U] ? [U] extends [EnumValues<E>] ? true : false : false;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.3",
3
+ "version": "1.32.5",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",