squarefi-bff-api-module 1.36.76 → 1.36.78

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.
@@ -571,113 +571,7 @@ export interface paths {
571
571
  };
572
572
  };
573
573
  put?: never;
574
- /**
575
- * Create destination
576
- * @description counterparty_account_id is required in the body.
577
- *
578
- * **Banking types** (ACH, SWIFT, SEPA, CHAPS, FPS, FEDWIRE):
579
- * banking_data: { account_number, routing_number, bank_name, swift_bic, iban, sort_code, note, address }
580
- *
581
- * **Crypto types** (CRYPTO_EXTERNAL, CRYPTO_INTERNAL):
582
- * crypto_data: { address, currency_id, memo }
583
- *
584
- * **Internal type** (INTERNAL):
585
- * internal_data: { wallet_id, description? } — receiver wallet on the same platform
586
- *
587
- */
588
- post: {
589
- parameters: {
590
- query?: never;
591
- header?: never;
592
- path?: never;
593
- cookie?: never;
594
- };
595
- requestBody: {
596
- content: {
597
- "application/json": {
598
- /** Format: uuid */
599
- counterparty_account_id: string;
600
- /** @enum {string} */
601
- type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE" | "INTERNAL";
602
- nickname?: string;
603
- banking_data?: {
604
- account_number?: string;
605
- routing_number?: string;
606
- bank_name?: string;
607
- swift_bic?: string;
608
- iban?: string;
609
- /** @description Sort code (6 digits, UK banking) */
610
- sort_code?: string;
611
- note?: string;
612
- address?: {
613
- country_id?: number;
614
- city?: string;
615
- postcode?: string;
616
- street1?: string;
617
- street2?: string;
618
- /** @description Required when the selected country has states; countries without states may omit it */
619
- state_id?: number | null;
620
- };
621
- };
622
- crypto_data?: {
623
- address?: string;
624
- /** Format: uuid */
625
- currency_id?: string;
626
- memo?: string;
627
- /**
628
- * @description Hosting classification of the address
629
- * @default unknown
630
- * @enum {string}
631
- */
632
- wallet_custody_type?: "custodial" | "selfhosted" | "unknown";
633
- };
634
- /** @description Required for type INTERNAL — points at the receiver wallet on the same platform. */
635
- internal_data?: {
636
- /**
637
- * Format: uuid
638
- * @description Target (receiver) wallet uuid on the same platform.
639
- */
640
- wallet_id: string;
641
- /** @description Optional, reserved for future use. */
642
- description?: string;
643
- };
644
- };
645
- };
646
- };
647
- responses: {
648
- /** @description Counterparty destination created */
649
- 201: {
650
- headers: {
651
- [name: string]: unknown;
652
- };
653
- content: {
654
- "application/json": {
655
- /** @example true */
656
- success?: boolean;
657
- data?: {
658
- destination?: components["schemas"]["CounterpartyDestination"];
659
- /** @example Counterparty destination created successfully */
660
- message?: string;
661
- };
662
- };
663
- };
664
- };
665
- /** @description Validation error */
666
- 400: {
667
- headers: {
668
- [name: string]: unknown;
669
- };
670
- content?: never;
671
- };
672
- /** @description Account not found */
673
- 404: {
674
- headers: {
675
- [name: string]: unknown;
676
- };
677
- content?: never;
678
- };
679
- };
680
- };
574
+ post?: never;
681
575
  delete?: never;
682
576
  options?: never;
683
577
  head?: never;
@@ -1661,6 +1661,52 @@ export declare namespace API {
1661
1661
  }
1662
1662
  export {};
1663
1663
  }
1664
+ /**
1665
+ * Requests for information (RFI, SFI-2280): compliance's questions about an account or its
1666
+ * transactions, answered by the account's team with text and files.
1667
+ *
1668
+ * Every path is scoped by `wallet_id`, so each Request carries it. Responses are the frontend
1669
+ * `{ success, data }` envelope as the spec declares it. Every `Rfi*` field is optional for now
1670
+ * because the spec declares no `required`; the types tighten on the regeneration that adds it.
1671
+ */
1672
+ namespace Rfi {
1673
+ type CasesRoot = pathsV1Frontend['/frontend/rfi/{wallet_id}'];
1674
+ type CaseRoot = pathsV1Frontend['/frontend/rfi/{wallet_id}/{case_id}'];
1675
+ type CaseMessagesRoot = pathsV1Frontend['/frontend/rfi/{wallet_id}/{case_id}/messages'];
1676
+ type CaseAttachmentRoot = pathsV1Frontend['/frontend/rfi/{wallet_id}/{case_id}/attachments/{attachment_id}'];
1677
+ export type Case = componentsV1Frontend['schemas']['RfiCase'];
1678
+ export type CaseDetail = componentsV1Frontend['schemas']['RfiCaseDetail'];
1679
+ export type Message = componentsV1Frontend['schemas']['RfiMessage'];
1680
+ export type Attachment = componentsV1Frontend['schemas']['RfiAttachment'];
1681
+ export type Transaction = componentsV1Frontend['schemas']['RfiTransaction'];
1682
+ export type CaseStatus = NonNullable<Case['status']>;
1683
+ export type CaseType = NonNullable<Case['type']>;
1684
+ export type MessageAuthor = NonNullable<Message['author']>;
1685
+ /** The list's `status` filter. `open` = `action_required` + `awaiting_compliance`; no case has it. */
1686
+ export type ListStatus = NonNullable<List.Request['status']>;
1687
+ export type Summary = NonNullable<NonNullable<List.Response['data']>['summary']>;
1688
+ export namespace List {
1689
+ type Request = CasesRoot['get']['parameters']['path'] & NonNullable<CasesRoot['get']['parameters']['query']>;
1690
+ type Response = CasesRoot['get']['responses']['200']['content']['application/json'];
1691
+ }
1692
+ export namespace GetById {
1693
+ type Request = CaseRoot['get']['parameters']['path'];
1694
+ type Response = CaseRoot['get']['responses']['200']['content']['application/json'];
1695
+ }
1696
+ export namespace Reply {
1697
+ type Request = CaseMessagesRoot['post']['parameters']['path'] & Omit<CaseMessagesRoot['post']['requestBody']['content']['multipart/form-data'], 'files'> & {
1698
+ files?: File[];
1699
+ signal?: AbortSignal;
1700
+ timeout?: number;
1701
+ };
1702
+ type Response = CaseMessagesRoot['post']['responses']['201']['content']['application/json'];
1703
+ }
1704
+ export namespace GetAttachmentLink {
1705
+ type Request = CaseAttachmentRoot['get']['parameters']['path'];
1706
+ type Response = CaseAttachmentRoot['get']['responses']['200']['content']['application/json'];
1707
+ }
1708
+ export {};
1709
+ }
1664
1710
  namespace Orders {
1665
1711
  namespace Create {
1666
1712
  namespace ByOrderType {
@@ -2130,8 +2176,43 @@ export declare namespace API {
2130
2176
  }
2131
2177
  namespace ByOrderType {
2132
2178
  namespace INTERNAL_TRANSFER {
2133
- type Request = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['requestBody']['content']['application/json'];
2134
- type Response = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['responses']['200']['content']['application/json'];
2179
+ type Request = {
2180
+ wallet_id: string;
2181
+ from_currency_id: string;
2182
+ /** A counterparty destination of type `INTERNAL`, pointing at the receiving wallet. */
2183
+ counterparty_destination_id: string;
2184
+ amount: number;
2185
+ request_id: string;
2186
+ is_reverse?: boolean;
2187
+ documents?: {
2188
+ url: string;
2189
+ description?: string | null;
2190
+ }[];
2191
+ };
2192
+ type Response = {
2193
+ id?: string;
2194
+ order_uuid?: string;
2195
+ wallet_uuid?: string;
2196
+ from_uuid?: string;
2197
+ to_uuid?: string;
2198
+ amount_from?: number;
2199
+ amount_to?: number;
2200
+ order_type?: string;
2201
+ status?: string;
2202
+ created_at?: string;
2203
+ meta?: {
2204
+ meta_type?: string;
2205
+ from_wallet_uuid?: string;
2206
+ to_wallet_uuid?: string;
2207
+ transaction_amount?: number;
2208
+ transaction_amount_currency?: string;
2209
+ billing_amount?: number;
2210
+ billing_amount_currency?: string;
2211
+ exchange_rate?: number;
2212
+ network_fee?: number;
2213
+ network_fee_currency?: string | null;
2214
+ };
2215
+ };
2135
2216
  }
2136
2217
  namespace HIFI_WIRE_ONRAMP {
2137
2218
  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.76",
3
+ "version": "1.36.78",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",