@drxsuperapp/sdk 1.1.494 → 1.1.495

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.
@@ -63,6 +63,8 @@ models/ApiAuthRegisterVerifyOtpPostRequest.ts
63
63
  models/ApiAuthSocialMobilePost200Response.ts
64
64
  models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
65
65
  models/ApiAuthSocialMobilePostRequest.ts
66
+ models/ApiBindCreateJwtGet200Response.ts
67
+ models/ApiBindCreateJwtGet200ResponseResponseObject.ts
66
68
  models/ApiBindDiscordGet200Response.ts
67
69
  models/ApiBindDiscordGet200ResponseResponseObject.ts
68
70
  models/ApiBindDiscordPreconnectGet200Response.ts
@@ -15,10 +15,13 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiBindCreateJwtGet200Response,
18
19
  ApiBindDiscordGet200Response,
19
20
  ApiBindDiscordPreconnectGet200Response,
20
21
  } from '../models/index';
21
22
  import {
23
+ ApiBindCreateJwtGet200ResponseFromJSON,
24
+ ApiBindCreateJwtGet200ResponseToJSON,
22
25
  ApiBindDiscordGet200ResponseFromJSON,
23
26
  ApiBindDiscordGet200ResponseToJSON,
24
27
  ApiBindDiscordPreconnectGet200ResponseFromJSON,
@@ -33,11 +36,65 @@ export interface ApiBindDiscordGetRequest {
33
36
  state: string;
34
37
  }
35
38
 
39
+ export interface ApiBindTelegramJwtGetRequest {
40
+ jwt: string;
41
+ }
42
+
43
+ export interface ApiBindTelegramPreconnectGetRequest {
44
+ state: string;
45
+ }
46
+
47
+ export interface ApiBindXGetRequest {
48
+ clientId: string;
49
+ redirectUri: string;
50
+ responseType: string;
51
+ scope: string;
52
+ state: string;
53
+ }
54
+
36
55
  /**
37
56
  *
38
57
  */
39
58
  export class SocialBindApi extends runtime.BaseAPI {
40
59
 
60
+ /**
61
+ * Get 5-Minute JWT Token
62
+ */
63
+ async apiBindCreateJwtGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindCreateJwtGet200Response>> {
64
+ const queryParameters: any = {};
65
+
66
+ const headerParameters: runtime.HTTPHeaders = {};
67
+
68
+ if (this.configuration && this.configuration.apiKey) {
69
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
70
+ }
71
+
72
+ if (this.configuration && this.configuration.accessToken) {
73
+ const token = this.configuration.accessToken;
74
+ const tokenString = await token("BearerAuth", []);
75
+
76
+ if (tokenString) {
77
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
78
+ }
79
+ }
80
+ const response = await this.request({
81
+ path: `/api/bind/create-jwt`,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ }, initOverrides);
86
+
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindCreateJwtGet200ResponseFromJSON(jsonValue));
88
+ }
89
+
90
+ /**
91
+ * Get 5-Minute JWT Token
92
+ */
93
+ async apiBindCreateJwtGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindCreateJwtGet200Response> {
94
+ const response = await this.apiBindCreateJwtGetRaw(initOverrides);
95
+ return await response.value();
96
+ }
97
+
41
98
  /**
42
99
  * A link where discord will callbacks to after finishes authorizing
43
100
  */
@@ -149,4 +206,217 @@ export class SocialBindApi extends runtime.BaseAPI {
149
206
  return await response.value();
150
207
  }
151
208
 
209
+ /**
210
+ * Telegram Connect Page after the user connected
211
+ * Telegram Connect
212
+ */
213
+ async apiBindTelegramJwtGetRaw(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
214
+ if (requestParameters['jwt'] == null) {
215
+ throw new runtime.RequiredError(
216
+ 'jwt',
217
+ 'Required parameter "jwt" was null or undefined when calling apiBindTelegramJwtGet().'
218
+ );
219
+ }
220
+
221
+ const queryParameters: any = {};
222
+
223
+ const headerParameters: runtime.HTTPHeaders = {};
224
+
225
+ if (this.configuration && this.configuration.apiKey) {
226
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
227
+ }
228
+
229
+ if (this.configuration && this.configuration.accessToken) {
230
+ const token = this.configuration.accessToken;
231
+ const tokenString = await token("BearerAuth", []);
232
+
233
+ if (tokenString) {
234
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
235
+ }
236
+ }
237
+ const response = await this.request({
238
+ path: `/api/bind/telegram/{jwt}`.replace(`{${"jwt"}}`, encodeURIComponent(String(requestParameters['jwt']))),
239
+ method: 'GET',
240
+ headers: headerParameters,
241
+ query: queryParameters,
242
+ }, initOverrides);
243
+
244
+ if (this.isJsonMime(response.headers.get('content-type'))) {
245
+ return new runtime.JSONApiResponse<string>(response);
246
+ } else {
247
+ return new runtime.TextApiResponse(response) as any;
248
+ }
249
+ }
250
+
251
+ /**
252
+ * Telegram Connect Page after the user connected
253
+ * Telegram Connect
254
+ */
255
+ async apiBindTelegramJwtGet(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
256
+ const response = await this.apiBindTelegramJwtGetRaw(requestParameters, initOverrides);
257
+ return await response.value();
258
+ }
259
+
260
+ /**
261
+ * Telegram Preconnect Page with Connect Telegram Button
262
+ * Telegram Preconnect
263
+ */
264
+ async apiBindTelegramPreconnectGetRaw(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
265
+ if (requestParameters['state'] == null) {
266
+ throw new runtime.RequiredError(
267
+ 'state',
268
+ 'Required parameter "state" was null or undefined when calling apiBindTelegramPreconnectGet().'
269
+ );
270
+ }
271
+
272
+ const queryParameters: any = {};
273
+
274
+ const headerParameters: runtime.HTTPHeaders = {};
275
+
276
+ if (this.configuration && this.configuration.apiKey) {
277
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
278
+ }
279
+
280
+ if (this.configuration && this.configuration.accessToken) {
281
+ const token = this.configuration.accessToken;
282
+ const tokenString = await token("BearerAuth", []);
283
+
284
+ if (tokenString) {
285
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
286
+ }
287
+ }
288
+ const response = await this.request({
289
+ path: `/api/bind/telegram-preconnect`.replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
290
+ method: 'GET',
291
+ headers: headerParameters,
292
+ query: queryParameters,
293
+ }, initOverrides);
294
+
295
+ if (this.isJsonMime(response.headers.get('content-type'))) {
296
+ return new runtime.JSONApiResponse<string>(response);
297
+ } else {
298
+ return new runtime.TextApiResponse(response) as any;
299
+ }
300
+ }
301
+
302
+ /**
303
+ * Telegram Preconnect Page with Connect Telegram Button
304
+ * Telegram Preconnect
305
+ */
306
+ async apiBindTelegramPreconnectGet(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
307
+ const response = await this.apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides);
308
+ return await response.value();
309
+ }
310
+
311
+ /**
312
+ * A link where x will callbacks to after finishes authorizing
313
+ */
314
+ async apiBindXGetRaw(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>> {
315
+ if (requestParameters['clientId'] == null) {
316
+ throw new runtime.RequiredError(
317
+ 'clientId',
318
+ 'Required parameter "clientId" was null or undefined when calling apiBindXGet().'
319
+ );
320
+ }
321
+
322
+ if (requestParameters['redirectUri'] == null) {
323
+ throw new runtime.RequiredError(
324
+ 'redirectUri',
325
+ 'Required parameter "redirectUri" was null or undefined when calling apiBindXGet().'
326
+ );
327
+ }
328
+
329
+ if (requestParameters['responseType'] == null) {
330
+ throw new runtime.RequiredError(
331
+ 'responseType',
332
+ 'Required parameter "responseType" was null or undefined when calling apiBindXGet().'
333
+ );
334
+ }
335
+
336
+ if (requestParameters['scope'] == null) {
337
+ throw new runtime.RequiredError(
338
+ 'scope',
339
+ 'Required parameter "scope" was null or undefined when calling apiBindXGet().'
340
+ );
341
+ }
342
+
343
+ if (requestParameters['state'] == null) {
344
+ throw new runtime.RequiredError(
345
+ 'state',
346
+ 'Required parameter "state" was null or undefined when calling apiBindXGet().'
347
+ );
348
+ }
349
+
350
+ const queryParameters: any = {};
351
+
352
+ const headerParameters: runtime.HTTPHeaders = {};
353
+
354
+ if (this.configuration && this.configuration.apiKey) {
355
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
356
+ }
357
+
358
+ if (this.configuration && this.configuration.accessToken) {
359
+ const token = this.configuration.accessToken;
360
+ const tokenString = await token("BearerAuth", []);
361
+
362
+ if (tokenString) {
363
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
364
+ }
365
+ }
366
+ const response = await this.request({
367
+ path: `/api/bind/x`.replace(`{${"client_id"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"redirect_uri"}}`, encodeURIComponent(String(requestParameters['redirectUri']))).replace(`{${"response_type"}}`, encodeURIComponent(String(requestParameters['responseType']))).replace(`{${"scope"}}`, encodeURIComponent(String(requestParameters['scope']))).replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
368
+ method: 'GET',
369
+ headers: headerParameters,
370
+ query: queryParameters,
371
+ }, initOverrides);
372
+
373
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
374
+ }
375
+
376
+ /**
377
+ * A link where x will callbacks to after finishes authorizing
378
+ */
379
+ async apiBindXGet(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response> {
380
+ const response = await this.apiBindXGetRaw(requestParameters, initOverrides);
381
+ return await response.value();
382
+ }
383
+
384
+ /**
385
+ * Generate X Authorization Link for specific user
386
+ */
387
+ async apiBindXPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>> {
388
+ const queryParameters: any = {};
389
+
390
+ const headerParameters: runtime.HTTPHeaders = {};
391
+
392
+ if (this.configuration && this.configuration.apiKey) {
393
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
394
+ }
395
+
396
+ if (this.configuration && this.configuration.accessToken) {
397
+ const token = this.configuration.accessToken;
398
+ const tokenString = await token("BearerAuth", []);
399
+
400
+ if (tokenString) {
401
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
402
+ }
403
+ }
404
+ const response = await this.request({
405
+ path: `/api/bind/x-preconnect`,
406
+ method: 'GET',
407
+ headers: headerParameters,
408
+ query: queryParameters,
409
+ }, initOverrides);
410
+
411
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
412
+ }
413
+
414
+ /**
415
+ * Generate X Authorization Link for specific user
416
+ */
417
+ async apiBindXPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response> {
418
+ const response = await this.apiBindXPreconnectGetRaw(initOverrides);
419
+ return await response.value();
420
+ }
421
+
152
422
  }
package/deploy.log CHANGED
@@ -338,6 +338,8 @@
338
338
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_preconnect_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_bind_discord_preconnect_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_preconnect_get_200_response=NewModel,ModelA=NewModelA in CLI).
339
339
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_bind_discord_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
340
340
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_bind_discord_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_get_200_response=NewModel,ModelA=NewModelA in CLI).
341
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_create_jwt_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_bind_create_jwt_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_create_jwt_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
342
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_create_jwt_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_bind_create_jwt_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_create_jwt_get_200_response=NewModel,ModelA=NewModelA in CLI).
341
343
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
342
344
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
343
345
  [main] INFO o.o.codegen.DefaultGenerator - Model _api_file_upload_post_request not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
@@ -377,6 +379,8 @@
377
379
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
378
380
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
379
381
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
382
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindCreateJwtGet200Response.ts
383
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindCreateJwtGet200ResponseResponseObject.ts
380
384
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordGet200Response.ts
381
385
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordGet200ResponseResponseObject.ts
382
386
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordPreconnectGet200Response.ts
@@ -824,6 +828,12 @@
824
828
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin-notification. Renamed to auto-generated operationId: apiAdminNotificationGet
825
829
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/discord-preconnect. Renamed to auto-generated operationId: apiBindDiscordPreconnectGet
826
830
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/discord. Renamed to auto-generated operationId: apiBindDiscordGet
831
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/x-preconnect. Renamed to auto-generated operationId: apiBindXPreconnectGet
832
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/x. Renamed to auto-generated operationId: apiBindXGet
833
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/create-jwt. Renamed to auto-generated operationId: apiBindCreateJwtGet
834
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/telegram-preconnect. Renamed to auto-generated operationId: apiBindTelegramPreconnectGet
835
+ [main] WARN o.o.codegen.utils.ExamplesUtils - No application/json content media type found in response. Response examples can currently only be generated for application/json media type.
836
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/telegram/{jwt}. Renamed to auto-generated operationId: apiBindTelegramJwtGet
827
837
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
828
838
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
829
839
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
@@ -892,21 +902,22 @@
892
902
  # https://opencollective.com/openapi_generator/donate #
893
903
  ################################################################################
894
904
  ✅ SDK generated
895
- On branch master
896
- Your branch is up to date with 'origin/master'.
897
-
898
- nothing to commit, working tree clean
899
- Everything up-to-date
905
+ [master a095bfc] VPS: Generated API SDK
906
+ 5 files changed, 440 insertions(+)
907
+ create mode 100644 models/ApiBindCreateJwtGet200Response.ts
908
+ create mode 100644 models/ApiBindCreateJwtGet200ResponseResponseObject.ts
909
+ To https://gitlab.com/drx-super/drx-sdk.git
910
+ fd086f1..a095bfc master -> master
900
911
  ✅ Changes committed and pushed
901
- v1.1.494
912
+ v1.1.495
902
913
  To https://gitlab.com/drx-super/drx-sdk.git
903
- c109337..fd086f1 master -> master
914
+ a095bfc..f9db202 master -> master
904
915
  ✅ Version bumped
905
916
 
906
- > @drxsuperapp/sdk@1.1.494 prepublishOnly
917
+ > @drxsuperapp/sdk@1.1.495 prepublishOnly
907
918
  > npm run build
908
919
 
909
920
 
910
- > @drxsuperapp/sdk@1.1.494 build
921
+ > @drxsuperapp/sdk@1.1.495 build
911
922
  > tsc
912
923
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response } from '../models/index';
13
+ import type { ApiBindCreateJwtGet200Response, ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response } from '../models/index';
14
14
  export interface ApiBindDiscordGetRequest {
15
15
  clientId: string;
16
16
  redirectUri: string;
@@ -18,10 +18,31 @@ export interface ApiBindDiscordGetRequest {
18
18
  scope: string;
19
19
  state: string;
20
20
  }
21
+ export interface ApiBindTelegramJwtGetRequest {
22
+ jwt: string;
23
+ }
24
+ export interface ApiBindTelegramPreconnectGetRequest {
25
+ state: string;
26
+ }
27
+ export interface ApiBindXGetRequest {
28
+ clientId: string;
29
+ redirectUri: string;
30
+ responseType: string;
31
+ scope: string;
32
+ state: string;
33
+ }
21
34
  /**
22
35
  *
23
36
  */
24
37
  export declare class SocialBindApi extends runtime.BaseAPI {
38
+ /**
39
+ * Get 5-Minute JWT Token
40
+ */
41
+ apiBindCreateJwtGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindCreateJwtGet200Response>>;
42
+ /**
43
+ * Get 5-Minute JWT Token
44
+ */
45
+ apiBindCreateJwtGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindCreateJwtGet200Response>;
25
46
  /**
26
47
  * A link where discord will callbacks to after finishes authorizing
27
48
  */
@@ -38,4 +59,40 @@ export declare class SocialBindApi extends runtime.BaseAPI {
38
59
  * Generate Discord Authorization Link for specific user
39
60
  */
40
61
  apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
62
+ /**
63
+ * Telegram Connect Page after the user connected
64
+ * Telegram Connect
65
+ */
66
+ apiBindTelegramJwtGetRaw(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
67
+ /**
68
+ * Telegram Connect Page after the user connected
69
+ * Telegram Connect
70
+ */
71
+ apiBindTelegramJwtGet(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
72
+ /**
73
+ * Telegram Preconnect Page with Connect Telegram Button
74
+ * Telegram Preconnect
75
+ */
76
+ apiBindTelegramPreconnectGetRaw(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
77
+ /**
78
+ * Telegram Preconnect Page with Connect Telegram Button
79
+ * Telegram Preconnect
80
+ */
81
+ apiBindTelegramPreconnectGet(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
82
+ /**
83
+ * A link where x will callbacks to after finishes authorizing
84
+ */
85
+ apiBindXGetRaw(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>>;
86
+ /**
87
+ * A link where x will callbacks to after finishes authorizing
88
+ */
89
+ apiBindXGet(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response>;
90
+ /**
91
+ * Generate X Authorization Link for specific user
92
+ */
93
+ apiBindXPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>>;
94
+ /**
95
+ * Generate X Authorization Link for specific user
96
+ */
97
+ apiBindXPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
41
98
  }
@@ -12,11 +12,42 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiBindCreateJwtGet200ResponseFromJSON, ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
19
19
  export class SocialBindApi extends runtime.BaseAPI {
20
+ /**
21
+ * Get 5-Minute JWT Token
22
+ */
23
+ async apiBindCreateJwtGetRaw(initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ if (this.configuration && this.configuration.apiKey) {
27
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
28
+ }
29
+ if (this.configuration && this.configuration.accessToken) {
30
+ const token = this.configuration.accessToken;
31
+ const tokenString = await token("BearerAuth", []);
32
+ if (tokenString) {
33
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
34
+ }
35
+ }
36
+ const response = await this.request({
37
+ path: `/api/bind/create-jwt`,
38
+ method: 'GET',
39
+ headers: headerParameters,
40
+ query: queryParameters,
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindCreateJwtGet200ResponseFromJSON(jsonValue));
43
+ }
44
+ /**
45
+ * Get 5-Minute JWT Token
46
+ */
47
+ async apiBindCreateJwtGet(initOverrides) {
48
+ const response = await this.apiBindCreateJwtGetRaw(initOverrides);
49
+ return await response.value();
50
+ }
20
51
  /**
21
52
  * A link where discord will callbacks to after finishes authorizing
22
53
  */
@@ -94,4 +125,163 @@ export class SocialBindApi extends runtime.BaseAPI {
94
125
  const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
95
126
  return await response.value();
96
127
  }
128
+ /**
129
+ * Telegram Connect Page after the user connected
130
+ * Telegram Connect
131
+ */
132
+ async apiBindTelegramJwtGetRaw(requestParameters, initOverrides) {
133
+ if (requestParameters['jwt'] == null) {
134
+ throw new runtime.RequiredError('jwt', 'Required parameter "jwt" was null or undefined when calling apiBindTelegramJwtGet().');
135
+ }
136
+ const queryParameters = {};
137
+ const headerParameters = {};
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
140
+ }
141
+ if (this.configuration && this.configuration.accessToken) {
142
+ const token = this.configuration.accessToken;
143
+ const tokenString = await token("BearerAuth", []);
144
+ if (tokenString) {
145
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
146
+ }
147
+ }
148
+ const response = await this.request({
149
+ path: `/api/bind/telegram/{jwt}`.replace(`{${"jwt"}}`, encodeURIComponent(String(requestParameters['jwt']))),
150
+ method: 'GET',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides);
154
+ if (this.isJsonMime(response.headers.get('content-type'))) {
155
+ return new runtime.JSONApiResponse(response);
156
+ }
157
+ else {
158
+ return new runtime.TextApiResponse(response);
159
+ }
160
+ }
161
+ /**
162
+ * Telegram Connect Page after the user connected
163
+ * Telegram Connect
164
+ */
165
+ async apiBindTelegramJwtGet(requestParameters, initOverrides) {
166
+ const response = await this.apiBindTelegramJwtGetRaw(requestParameters, initOverrides);
167
+ return await response.value();
168
+ }
169
+ /**
170
+ * Telegram Preconnect Page with Connect Telegram Button
171
+ * Telegram Preconnect
172
+ */
173
+ async apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides) {
174
+ if (requestParameters['state'] == null) {
175
+ throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling apiBindTelegramPreconnectGet().');
176
+ }
177
+ const queryParameters = {};
178
+ const headerParameters = {};
179
+ if (this.configuration && this.configuration.apiKey) {
180
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
181
+ }
182
+ if (this.configuration && this.configuration.accessToken) {
183
+ const token = this.configuration.accessToken;
184
+ const tokenString = await token("BearerAuth", []);
185
+ if (tokenString) {
186
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
187
+ }
188
+ }
189
+ const response = await this.request({
190
+ path: `/api/bind/telegram-preconnect`.replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
191
+ method: 'GET',
192
+ headers: headerParameters,
193
+ query: queryParameters,
194
+ }, initOverrides);
195
+ if (this.isJsonMime(response.headers.get('content-type'))) {
196
+ return new runtime.JSONApiResponse(response);
197
+ }
198
+ else {
199
+ return new runtime.TextApiResponse(response);
200
+ }
201
+ }
202
+ /**
203
+ * Telegram Preconnect Page with Connect Telegram Button
204
+ * Telegram Preconnect
205
+ */
206
+ async apiBindTelegramPreconnectGet(requestParameters, initOverrides) {
207
+ const response = await this.apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides);
208
+ return await response.value();
209
+ }
210
+ /**
211
+ * A link where x will callbacks to after finishes authorizing
212
+ */
213
+ async apiBindXGetRaw(requestParameters, initOverrides) {
214
+ if (requestParameters['clientId'] == null) {
215
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling apiBindXGet().');
216
+ }
217
+ if (requestParameters['redirectUri'] == null) {
218
+ throw new runtime.RequiredError('redirectUri', 'Required parameter "redirectUri" was null or undefined when calling apiBindXGet().');
219
+ }
220
+ if (requestParameters['responseType'] == null) {
221
+ throw new runtime.RequiredError('responseType', 'Required parameter "responseType" was null or undefined when calling apiBindXGet().');
222
+ }
223
+ if (requestParameters['scope'] == null) {
224
+ throw new runtime.RequiredError('scope', 'Required parameter "scope" was null or undefined when calling apiBindXGet().');
225
+ }
226
+ if (requestParameters['state'] == null) {
227
+ throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling apiBindXGet().');
228
+ }
229
+ const queryParameters = {};
230
+ const headerParameters = {};
231
+ if (this.configuration && this.configuration.apiKey) {
232
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
233
+ }
234
+ if (this.configuration && this.configuration.accessToken) {
235
+ const token = this.configuration.accessToken;
236
+ const tokenString = await token("BearerAuth", []);
237
+ if (tokenString) {
238
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
239
+ }
240
+ }
241
+ const response = await this.request({
242
+ path: `/api/bind/x`.replace(`{${"client_id"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"redirect_uri"}}`, encodeURIComponent(String(requestParameters['redirectUri']))).replace(`{${"response_type"}}`, encodeURIComponent(String(requestParameters['responseType']))).replace(`{${"scope"}}`, encodeURIComponent(String(requestParameters['scope']))).replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
243
+ method: 'GET',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ }, initOverrides);
247
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
248
+ }
249
+ /**
250
+ * A link where x will callbacks to after finishes authorizing
251
+ */
252
+ async apiBindXGet(requestParameters, initOverrides) {
253
+ const response = await this.apiBindXGetRaw(requestParameters, initOverrides);
254
+ return await response.value();
255
+ }
256
+ /**
257
+ * Generate X Authorization Link for specific user
258
+ */
259
+ async apiBindXPreconnectGetRaw(initOverrides) {
260
+ const queryParameters = {};
261
+ const headerParameters = {};
262
+ if (this.configuration && this.configuration.apiKey) {
263
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
264
+ }
265
+ if (this.configuration && this.configuration.accessToken) {
266
+ const token = this.configuration.accessToken;
267
+ const tokenString = await token("BearerAuth", []);
268
+ if (tokenString) {
269
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
270
+ }
271
+ }
272
+ const response = await this.request({
273
+ path: `/api/bind/x-preconnect`,
274
+ method: 'GET',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ }, initOverrides);
278
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
279
+ }
280
+ /**
281
+ * Generate X Authorization Link for specific user
282
+ */
283
+ async apiBindXPreconnectGet(initOverrides) {
284
+ const response = await this.apiBindXPreconnectGetRaw(initOverrides);
285
+ return await response.value();
286
+ }
97
287
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiBindCreateJwtGet200ResponseResponseObject } from './ApiBindCreateJwtGet200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiBindCreateJwtGet200Response
17
+ */
18
+ export interface ApiBindCreateJwtGet200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiBindCreateJwtGet200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiBindCreateJwtGet200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiBindCreateJwtGet200ResponseResponseObject}
34
+ * @memberof ApiBindCreateJwtGet200Response
35
+ */
36
+ responseObject?: ApiBindCreateJwtGet200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiBindCreateJwtGet200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiBindCreateJwtGet200Response interface.
46
+ */
47
+ export declare function instanceOfApiBindCreateJwtGet200Response(value: object): value is ApiBindCreateJwtGet200Response;
48
+ export declare function ApiBindCreateJwtGet200ResponseFromJSON(json: any): ApiBindCreateJwtGet200Response;
49
+ export declare function ApiBindCreateJwtGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindCreateJwtGet200Response;
50
+ export declare function ApiBindCreateJwtGet200ResponseToJSON(json: any): ApiBindCreateJwtGet200Response;
51
+ export declare function ApiBindCreateJwtGet200ResponseToJSONTyped(value?: ApiBindCreateJwtGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApiBindCreateJwtGet200ResponseResponseObjectFromJSON, ApiBindCreateJwtGet200ResponseResponseObjectToJSON, } from './ApiBindCreateJwtGet200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiBindCreateJwtGet200Response interface.
17
+ */
18
+ export function instanceOfApiBindCreateJwtGet200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiBindCreateJwtGet200ResponseFromJSON(json) {
28
+ return ApiBindCreateJwtGet200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiBindCreateJwtGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiBindCreateJwtGet200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiBindCreateJwtGet200ResponseToJSON(json) {
42
+ return ApiBindCreateJwtGet200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiBindCreateJwtGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiBindCreateJwtGet200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiBindCreateJwtGet200ResponseResponseObject
16
+ */
17
+ export interface ApiBindCreateJwtGet200ResponseResponseObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiBindCreateJwtGet200ResponseResponseObject
22
+ */
23
+ state: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiBindCreateJwtGet200ResponseResponseObject interface.
27
+ */
28
+ export declare function instanceOfApiBindCreateJwtGet200ResponseResponseObject(value: object): value is ApiBindCreateJwtGet200ResponseResponseObject;
29
+ export declare function ApiBindCreateJwtGet200ResponseResponseObjectFromJSON(json: any): ApiBindCreateJwtGet200ResponseResponseObject;
30
+ export declare function ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindCreateJwtGet200ResponseResponseObject;
31
+ export declare function ApiBindCreateJwtGet200ResponseResponseObjectToJSON(json: any): ApiBindCreateJwtGet200ResponseResponseObject;
32
+ export declare function ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped(value?: ApiBindCreateJwtGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiBindCreateJwtGet200ResponseResponseObject interface.
16
+ */
17
+ export function instanceOfApiBindCreateJwtGet200ResponseResponseObject(value) {
18
+ if (!('state' in value) || value['state'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiBindCreateJwtGet200ResponseResponseObjectFromJSON(json) {
23
+ return ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped(json, false);
24
+ }
25
+ export function ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'state': json['state'],
31
+ };
32
+ }
33
+ export function ApiBindCreateJwtGet200ResponseResponseObjectToJSON(json) {
34
+ return ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped(json, false);
35
+ }
36
+ export function ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'state': value['state'],
42
+ };
43
+ }
@@ -34,6 +34,8 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
34
34
  export * from './ApiAuthSocialMobilePost200Response';
35
35
  export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
36
36
  export * from './ApiAuthSocialMobilePostRequest';
37
+ export * from './ApiBindCreateJwtGet200Response';
38
+ export * from './ApiBindCreateJwtGet200ResponseResponseObject';
37
39
  export * from './ApiBindDiscordGet200Response';
38
40
  export * from './ApiBindDiscordGet200ResponseResponseObject';
39
41
  export * from './ApiBindDiscordPreconnectGet200Response';
@@ -36,6 +36,8 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
36
36
  export * from './ApiAuthSocialMobilePost200Response';
37
37
  export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
38
38
  export * from './ApiAuthSocialMobilePostRequest';
39
+ export * from './ApiBindCreateJwtGet200Response';
40
+ export * from './ApiBindCreateJwtGet200ResponseResponseObject';
39
41
  export * from './ApiBindDiscordGet200Response';
40
42
  export * from './ApiBindDiscordGet200ResponseResponseObject';
41
43
  export * from './ApiBindDiscordPreconnectGet200Response';
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ApiBindCreateJwtGet200ResponseResponseObject } from './ApiBindCreateJwtGet200ResponseResponseObject';
17
+ import {
18
+ ApiBindCreateJwtGet200ResponseResponseObjectFromJSON,
19
+ ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiBindCreateJwtGet200ResponseResponseObjectToJSON,
21
+ ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiBindCreateJwtGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiBindCreateJwtGet200Response
28
+ */
29
+ export interface ApiBindCreateJwtGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiBindCreateJwtGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiBindCreateJwtGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiBindCreateJwtGet200ResponseResponseObject}
45
+ * @memberof ApiBindCreateJwtGet200Response
46
+ */
47
+ responseObject?: ApiBindCreateJwtGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiBindCreateJwtGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiBindCreateJwtGet200Response interface.
58
+ */
59
+ export function instanceOfApiBindCreateJwtGet200Response(value: object): value is ApiBindCreateJwtGet200Response {
60
+ if (!('success' in value) || value['success'] === undefined) return false;
61
+ if (!('message' in value) || value['message'] === undefined) return false;
62
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiBindCreateJwtGet200ResponseFromJSON(json: any): ApiBindCreateJwtGet200Response {
67
+ return ApiBindCreateJwtGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiBindCreateJwtGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindCreateJwtGet200Response {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'success': json['success'],
77
+ 'message': json['message'],
78
+ 'responseObject': json['responseObject'] == null ? undefined : ApiBindCreateJwtGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiBindCreateJwtGet200ResponseToJSON(json: any): ApiBindCreateJwtGet200Response {
84
+ return ApiBindCreateJwtGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiBindCreateJwtGet200ResponseToJSONTyped(value?: ApiBindCreateJwtGet200Response | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'success': value['success'],
95
+ 'message': value['message'],
96
+ 'responseObject': ApiBindCreateJwtGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiBindCreateJwtGet200ResponseResponseObject
20
+ */
21
+ export interface ApiBindCreateJwtGet200ResponseResponseObject {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiBindCreateJwtGet200ResponseResponseObject
26
+ */
27
+ state: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiBindCreateJwtGet200ResponseResponseObject interface.
32
+ */
33
+ export function instanceOfApiBindCreateJwtGet200ResponseResponseObject(value: object): value is ApiBindCreateJwtGet200ResponseResponseObject {
34
+ if (!('state' in value) || value['state'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiBindCreateJwtGet200ResponseResponseObjectFromJSON(json: any): ApiBindCreateJwtGet200ResponseResponseObject {
39
+ return ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiBindCreateJwtGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindCreateJwtGet200ResponseResponseObject {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'state': json['state'],
49
+ };
50
+ }
51
+
52
+ export function ApiBindCreateJwtGet200ResponseResponseObjectToJSON(json: any): ApiBindCreateJwtGet200ResponseResponseObject {
53
+ return ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiBindCreateJwtGet200ResponseResponseObjectToJSONTyped(value?: ApiBindCreateJwtGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'state': value['state'],
64
+ };
65
+ }
66
+
package/models/index.ts CHANGED
@@ -36,6 +36,8 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
36
36
  export * from './ApiAuthSocialMobilePost200Response';
37
37
  export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
38
38
  export * from './ApiAuthSocialMobilePostRequest';
39
+ export * from './ApiBindCreateJwtGet200Response';
40
+ export * from './ApiBindCreateJwtGet200ResponseResponseObject';
39
41
  export * from './ApiBindDiscordGet200Response';
40
42
  export * from './ApiBindDiscordGet200ResponseResponseObject';
41
43
  export * from './ApiBindDiscordPreconnectGet200Response';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.494",
3
+ "version": "1.1.495",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {