squarefi-bff-api-module 1.34.10 → 1.34.12

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.
@@ -24,9 +24,6 @@ export declare const auth: {
24
24
  password: (email: string, password: string, captcha: string) => Promise<API.Auth.Tokens>;
25
25
  telegram: (data: API.Auth.Telegram.Signup.Request) => Promise<API.Auth.Telegram.Signup.Response>;
26
26
  };
27
- telegram: {
28
- link: (data: API.Auth.Telegram.Link.Request) => Promise<void>;
29
- };
30
27
  refresh: {
31
28
  refresh_token: (data: API.Auth.RefreshToken.Request) => Promise<API.Auth.RefreshToken.Response>;
32
29
  };
package/dist/api/auth.js CHANGED
@@ -62,9 +62,6 @@ export const auth = {
62
62
  }),
63
63
  telegram: (data) => apiClientV2.postRequest(telegramSignUpPath, { data }),
64
64
  },
65
- telegram: {
66
- link: (data) => apiClientV2.postRequest(telegramLinkPath, { data }),
67
- },
68
65
  refresh: {
69
66
  refresh_token: (data) => apiClientV2.postRequest(refreshTokenPath, { data }),
70
67
  },
@@ -139,23 +139,6 @@ export interface paths {
139
139
  patch?: never;
140
140
  trace?: never;
141
141
  };
142
- "/auth/telegram/link": {
143
- parameters: {
144
- query?: never;
145
- header?: never;
146
- path?: never;
147
- cookie?: never;
148
- };
149
- get?: never;
150
- put?: never;
151
- /** Link Telegram account to existing user via OTP-verified phone */
152
- post: operations["AuthTelegramController_linkTelegramAccount"];
153
- delete?: never;
154
- options?: never;
155
- head?: never;
156
- patch?: never;
157
- trace?: never;
158
- };
159
142
  "/auth/sign-in/telegram": {
160
143
  parameters: {
161
144
  query?: never;
@@ -1288,10 +1271,16 @@ export interface components {
1288
1271
  */
1289
1272
  readonly scope: "global" | "local" | "others";
1290
1273
  };
1274
+ TelegramContactDto: {
1275
+ user_id: number;
1276
+ phone_number: string;
1277
+ first_name: string;
1278
+ last_name?: string;
1279
+ };
1291
1280
  TelegramSignUpByPhoneDto: {
1292
- phone: string;
1281
+ contact: components["schemas"]["TelegramContactDto"];
1282
+ auth_date: string;
1293
1283
  hash: string;
1294
- init_data_raw: string;
1295
1284
  invite_code?: string;
1296
1285
  referrer?: string;
1297
1286
  };
@@ -1304,10 +1293,6 @@ export interface components {
1304
1293
  token_type: string;
1305
1294
  refresh_token?: string | null;
1306
1295
  };
1307
- TelegramLinkDto: {
1308
- init_data_raw: string;
1309
- hash: string;
1310
- };
1311
1296
  TelegramSignInByTgIdDto: {
1312
1297
  hash: string;
1313
1298
  init_data_raw: string;
@@ -1661,7 +1646,7 @@ export interface components {
1661
1646
  meta: components["schemas"]["CryptoCurrencyMetaDto"];
1662
1647
  is_enabled: boolean;
1663
1648
  /** @example true */
1664
- is_crypto: boolean;
1649
+ is_crypto: Record<string, never>;
1665
1650
  };
1666
1651
  FiatCurrencyMetaDto: {
1667
1652
  icon: string;
@@ -1683,7 +1668,7 @@ export interface components {
1683
1668
  meta: components["schemas"]["FiatCurrencyMetaDto"];
1684
1669
  is_enabled: boolean;
1685
1670
  /** @example false */
1686
- is_crypto: boolean;
1671
+ is_crypto: Record<string, never>;
1687
1672
  };
1688
1673
  AllCurrenciesResponseDto: {
1689
1674
  total: number;
@@ -1907,7 +1892,8 @@ export interface components {
1907
1892
  registration_number?: string | null;
1908
1893
  share_structure_url?: string | null;
1909
1894
  sof_eu_questionnaire?: components["schemas"]["KycEntitySofEuQuestionnaireEntity"] | null;
1910
- source_of_funds?: string | null;
1895
+ /** @enum {string|null} */
1896
+ source_of_funds?: "employment" | "savings" | "winnings" | "marital" | "real_estate" | "trust" | "investment" | "other" | "sales_of_goods_and_services" | "owners_capital" | "business_loans" | "private_capital" | "grant" | null;
1911
1897
  supplementary_info?: string | null;
1912
1898
  supplementary_url?: string | null;
1913
1899
  tax_identification_number?: string | null;
@@ -2024,7 +2010,8 @@ export interface components {
2024
2010
  registration_number?: string | null;
2025
2011
  share_structure_url?: string | null;
2026
2012
  sof_eu_questionnaire?: components["schemas"]["KycEntitySofEuQuestionnaireEntity"] | null;
2027
- source_of_funds?: string | null;
2013
+ /** @enum {string|null} */
2014
+ source_of_funds?: "employment" | "savings" | "winnings" | "marital" | "real_estate" | "trust" | "investment" | "other" | "sales_of_goods_and_services" | "owners_capital" | "business_loans" | "private_capital" | "grant" | null;
2028
2015
  supplementary_info?: string | null;
2029
2016
  supplementary_url?: string | null;
2030
2017
  tax_identification_number?: string | null;
@@ -2667,28 +2654,6 @@ export interface operations {
2667
2654
  };
2668
2655
  };
2669
2656
  };
2670
- AuthTelegramController_linkTelegramAccount: {
2671
- parameters: {
2672
- query?: never;
2673
- header?: never;
2674
- path?: never;
2675
- cookie?: never;
2676
- };
2677
- requestBody: {
2678
- content: {
2679
- "application/json": components["schemas"]["TelegramLinkDto"];
2680
- };
2681
- };
2682
- responses: {
2683
- /** @description Unauthorized */
2684
- 401: {
2685
- headers: {
2686
- [name: string]: unknown;
2687
- };
2688
- content?: never;
2689
- };
2690
- };
2691
- };
2692
2657
  AuthTelegramController_signIn: {
2693
2658
  parameters: {
2694
2659
  query?: never;
@@ -15,9 +15,6 @@ export declare namespace API {
15
15
  type Request = operations['AuthTelegramController_signUp']['requestBody']['content']['application/json'];
16
16
  type Response = operations['AuthTelegramController_signUp']['responses']['200']['content']['application/json'];
17
17
  }
18
- namespace Link {
19
- type Request = operations['AuthTelegramController_linkTelegramAccount']['requestBody']['content']['application/json'];
20
- }
21
18
  }
22
19
  interface Tokens {
23
20
  access_token: string;
@@ -2244,6 +2241,7 @@ export declare namespace API {
2244
2241
  from_date?: string;
2245
2242
  to_date?: string;
2246
2243
  crypto_id?: string;
2244
+ logo?: string;
2247
2245
  };
2248
2246
  type Response = string;
2249
2247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.34.10",
3
+ "version": "1.34.12",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",