@drxsuperapp/sdk 1.1.494 → 1.1.496
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.
- package/.openapi-generator/FILES +2 -0
- package/apis/SocialBindApi.ts +280 -0
- package/deploy.log +18 -9
- package/dist/apis/SocialBindApi.d.ts +68 -1
- package/dist/apis/SocialBindApi.js +201 -1
- package/dist/models/ApiBindCreateJwtGet200Response.d.ts +51 -0
- package/dist/models/ApiBindCreateJwtGet200Response.js +54 -0
- package/dist/models/ApiBindCreateJwtGet200ResponseResponseObject.d.ts +32 -0
- package/dist/models/ApiBindCreateJwtGet200ResponseResponseObject.js +43 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/ApiBindCreateJwtGet200Response.ts +100 -0
- package/models/ApiBindCreateJwtGet200ResponseResponseObject.ts +66 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
package/apis/SocialBindApi.ts
CHANGED
|
@@ -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,13 +36,70 @@ 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
|
+
* Create JWT
|
|
63
|
+
*/
|
|
64
|
+
async apiBindCreateJwtGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindCreateJwtGet200Response>> {
|
|
65
|
+
const queryParameters: any = {};
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
const token = this.configuration.accessToken;
|
|
75
|
+
const tokenString = await token("BearerAuth", []);
|
|
76
|
+
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const response = await this.request({
|
|
82
|
+
path: `/api/bind/create-jwt`,
|
|
83
|
+
method: 'GET',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
}, initOverrides);
|
|
87
|
+
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindCreateJwtGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get 5-Minute JWT Token
|
|
93
|
+
* Create JWT
|
|
94
|
+
*/
|
|
95
|
+
async apiBindCreateJwtGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindCreateJwtGet200Response> {
|
|
96
|
+
const response = await this.apiBindCreateJwtGetRaw(initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
|
|
41
100
|
/**
|
|
42
101
|
* A link where discord will callbacks to after finishes authorizing
|
|
102
|
+
* Discord Connect
|
|
43
103
|
*/
|
|
44
104
|
async apiBindDiscordGetRaw(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>> {
|
|
45
105
|
if (requestParameters['clientId'] == null) {
|
|
@@ -105,6 +165,7 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
105
165
|
|
|
106
166
|
/**
|
|
107
167
|
* A link where discord will callbacks to after finishes authorizing
|
|
168
|
+
* Discord Connect
|
|
108
169
|
*/
|
|
109
170
|
async apiBindDiscordGet(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response> {
|
|
110
171
|
const response = await this.apiBindDiscordGetRaw(requestParameters, initOverrides);
|
|
@@ -113,6 +174,7 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
113
174
|
|
|
114
175
|
/**
|
|
115
176
|
* Generate Discord Authorization Link for specific user
|
|
177
|
+
* Discord Preconnect
|
|
116
178
|
*/
|
|
117
179
|
async apiBindDiscordPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>> {
|
|
118
180
|
const queryParameters: any = {};
|
|
@@ -143,10 +205,228 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
143
205
|
|
|
144
206
|
/**
|
|
145
207
|
* Generate Discord Authorization Link for specific user
|
|
208
|
+
* Discord Preconnect
|
|
146
209
|
*/
|
|
147
210
|
async apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response> {
|
|
148
211
|
const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
|
|
149
212
|
return await response.value();
|
|
150
213
|
}
|
|
151
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Telegram Connect Page after the user connected
|
|
217
|
+
* Telegram Connect
|
|
218
|
+
*/
|
|
219
|
+
async apiBindTelegramJwtGetRaw(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
220
|
+
if (requestParameters['jwt'] == null) {
|
|
221
|
+
throw new runtime.RequiredError(
|
|
222
|
+
'jwt',
|
|
223
|
+
'Required parameter "jwt" was null or undefined when calling apiBindTelegramJwtGet().'
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const queryParameters: any = {};
|
|
228
|
+
|
|
229
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
230
|
+
|
|
231
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
232
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
236
|
+
const token = this.configuration.accessToken;
|
|
237
|
+
const tokenString = await token("BearerAuth", []);
|
|
238
|
+
|
|
239
|
+
if (tokenString) {
|
|
240
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
const response = await this.request({
|
|
244
|
+
path: `/api/bind/telegram/{jwt}`.replace(`{${"jwt"}}`, encodeURIComponent(String(requestParameters['jwt']))),
|
|
245
|
+
method: 'GET',
|
|
246
|
+
headers: headerParameters,
|
|
247
|
+
query: queryParameters,
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
|
|
250
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
251
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
252
|
+
} else {
|
|
253
|
+
return new runtime.TextApiResponse(response) as any;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Telegram Connect Page after the user connected
|
|
259
|
+
* Telegram Connect
|
|
260
|
+
*/
|
|
261
|
+
async apiBindTelegramJwtGet(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
262
|
+
const response = await this.apiBindTelegramJwtGetRaw(requestParameters, initOverrides);
|
|
263
|
+
return await response.value();
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
268
|
+
* Telegram Preconnect
|
|
269
|
+
*/
|
|
270
|
+
async apiBindTelegramPreconnectGetRaw(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
271
|
+
if (requestParameters['state'] == null) {
|
|
272
|
+
throw new runtime.RequiredError(
|
|
273
|
+
'state',
|
|
274
|
+
'Required parameter "state" was null or undefined when calling apiBindTelegramPreconnectGet().'
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const queryParameters: any = {};
|
|
279
|
+
|
|
280
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
281
|
+
|
|
282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
+
const token = this.configuration.accessToken;
|
|
288
|
+
const tokenString = await token("BearerAuth", []);
|
|
289
|
+
|
|
290
|
+
if (tokenString) {
|
|
291
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
const response = await this.request({
|
|
295
|
+
path: `/api/bind/telegram-preconnect`.replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
|
|
296
|
+
method: 'GET',
|
|
297
|
+
headers: headerParameters,
|
|
298
|
+
query: queryParameters,
|
|
299
|
+
}, initOverrides);
|
|
300
|
+
|
|
301
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
302
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
303
|
+
} else {
|
|
304
|
+
return new runtime.TextApiResponse(response) as any;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
310
|
+
* Telegram Preconnect
|
|
311
|
+
*/
|
|
312
|
+
async apiBindTelegramPreconnectGet(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
313
|
+
const response = await this.apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides);
|
|
314
|
+
return await response.value();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* A link where x will callbacks to after finishes authorizing
|
|
319
|
+
* X Connect
|
|
320
|
+
*/
|
|
321
|
+
async apiBindXGetRaw(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>> {
|
|
322
|
+
if (requestParameters['clientId'] == null) {
|
|
323
|
+
throw new runtime.RequiredError(
|
|
324
|
+
'clientId',
|
|
325
|
+
'Required parameter "clientId" was null or undefined when calling apiBindXGet().'
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (requestParameters['redirectUri'] == null) {
|
|
330
|
+
throw new runtime.RequiredError(
|
|
331
|
+
'redirectUri',
|
|
332
|
+
'Required parameter "redirectUri" was null or undefined when calling apiBindXGet().'
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (requestParameters['responseType'] == null) {
|
|
337
|
+
throw new runtime.RequiredError(
|
|
338
|
+
'responseType',
|
|
339
|
+
'Required parameter "responseType" was null or undefined when calling apiBindXGet().'
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (requestParameters['scope'] == null) {
|
|
344
|
+
throw new runtime.RequiredError(
|
|
345
|
+
'scope',
|
|
346
|
+
'Required parameter "scope" was null or undefined when calling apiBindXGet().'
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (requestParameters['state'] == null) {
|
|
351
|
+
throw new runtime.RequiredError(
|
|
352
|
+
'state',
|
|
353
|
+
'Required parameter "state" was null or undefined when calling apiBindXGet().'
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const queryParameters: any = {};
|
|
358
|
+
|
|
359
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
360
|
+
|
|
361
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
362
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
366
|
+
const token = this.configuration.accessToken;
|
|
367
|
+
const tokenString = await token("BearerAuth", []);
|
|
368
|
+
|
|
369
|
+
if (tokenString) {
|
|
370
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
const response = await this.request({
|
|
374
|
+
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']))),
|
|
375
|
+
method: 'GET',
|
|
376
|
+
headers: headerParameters,
|
|
377
|
+
query: queryParameters,
|
|
378
|
+
}, initOverrides);
|
|
379
|
+
|
|
380
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* A link where x will callbacks to after finishes authorizing
|
|
385
|
+
* X Connect
|
|
386
|
+
*/
|
|
387
|
+
async apiBindXGet(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response> {
|
|
388
|
+
const response = await this.apiBindXGetRaw(requestParameters, initOverrides);
|
|
389
|
+
return await response.value();
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Generate X Authorization Link for specific user
|
|
394
|
+
* X Preconnect
|
|
395
|
+
*/
|
|
396
|
+
async apiBindXPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>> {
|
|
397
|
+
const queryParameters: any = {};
|
|
398
|
+
|
|
399
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
400
|
+
|
|
401
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
402
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
406
|
+
const token = this.configuration.accessToken;
|
|
407
|
+
const tokenString = await token("BearerAuth", []);
|
|
408
|
+
|
|
409
|
+
if (tokenString) {
|
|
410
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
const response = await this.request({
|
|
414
|
+
path: `/api/bind/x-preconnect`,
|
|
415
|
+
method: 'GET',
|
|
416
|
+
headers: headerParameters,
|
|
417
|
+
query: queryParameters,
|
|
418
|
+
}, initOverrides);
|
|
419
|
+
|
|
420
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Generate X Authorization Link for specific user
|
|
425
|
+
* X Preconnect
|
|
426
|
+
*/
|
|
427
|
+
async apiBindXPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response> {
|
|
428
|
+
const response = await this.apiBindXPreconnectGetRaw(initOverrides);
|
|
429
|
+
return await response.value();
|
|
430
|
+
}
|
|
431
|
+
|
|
152
432
|
}
|
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,20 @@
|
|
|
892
902
|
# https://opencollective.com/openapi_generator/donate #
|
|
893
903
|
################################################################################
|
|
894
904
|
✅ SDK generated
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
Everything up-to-date
|
|
905
|
+
[master bc0a3b9] VPS: Generated API SDK
|
|
906
|
+
1 file changed, 10 insertions(+)
|
|
907
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
908
|
+
f9db202..bc0a3b9 master -> master
|
|
900
909
|
✅ Changes committed and pushed
|
|
901
|
-
v1.1.
|
|
910
|
+
v1.1.496
|
|
902
911
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
903
|
-
|
|
912
|
+
bc0a3b9..81ac6a7 master -> master
|
|
904
913
|
✅ Version bumped
|
|
905
914
|
|
|
906
|
-
> @drxsuperapp/sdk@1.1.
|
|
915
|
+
> @drxsuperapp/sdk@1.1.496 prepublishOnly
|
|
907
916
|
> npm run build
|
|
908
917
|
|
|
909
918
|
|
|
910
|
-
> @drxsuperapp/sdk@1.1.
|
|
919
|
+
> @drxsuperapp/sdk@1.1.496 build
|
|
911
920
|
> tsc
|
|
912
921
|
|
|
@@ -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,24 +18,91 @@ 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
|
+
* Create JWT
|
|
41
|
+
*/
|
|
42
|
+
apiBindCreateJwtGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindCreateJwtGet200Response>>;
|
|
43
|
+
/**
|
|
44
|
+
* Get 5-Minute JWT Token
|
|
45
|
+
* Create JWT
|
|
46
|
+
*/
|
|
47
|
+
apiBindCreateJwtGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindCreateJwtGet200Response>;
|
|
25
48
|
/**
|
|
26
49
|
* A link where discord will callbacks to after finishes authorizing
|
|
50
|
+
* Discord Connect
|
|
27
51
|
*/
|
|
28
52
|
apiBindDiscordGetRaw(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>>;
|
|
29
53
|
/**
|
|
30
54
|
* A link where discord will callbacks to after finishes authorizing
|
|
55
|
+
* Discord Connect
|
|
31
56
|
*/
|
|
32
57
|
apiBindDiscordGet(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response>;
|
|
33
58
|
/**
|
|
34
59
|
* Generate Discord Authorization Link for specific user
|
|
60
|
+
* Discord Preconnect
|
|
35
61
|
*/
|
|
36
62
|
apiBindDiscordPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>>;
|
|
37
63
|
/**
|
|
38
64
|
* Generate Discord Authorization Link for specific user
|
|
65
|
+
* Discord Preconnect
|
|
39
66
|
*/
|
|
40
67
|
apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
|
|
68
|
+
/**
|
|
69
|
+
* Telegram Connect Page after the user connected
|
|
70
|
+
* Telegram Connect
|
|
71
|
+
*/
|
|
72
|
+
apiBindTelegramJwtGetRaw(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
73
|
+
/**
|
|
74
|
+
* Telegram Connect Page after the user connected
|
|
75
|
+
* Telegram Connect
|
|
76
|
+
*/
|
|
77
|
+
apiBindTelegramJwtGet(requestParameters: ApiBindTelegramJwtGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
80
|
+
* Telegram Preconnect
|
|
81
|
+
*/
|
|
82
|
+
apiBindTelegramPreconnectGetRaw(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
83
|
+
/**
|
|
84
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
85
|
+
* Telegram Preconnect
|
|
86
|
+
*/
|
|
87
|
+
apiBindTelegramPreconnectGet(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
88
|
+
/**
|
|
89
|
+
* A link where x will callbacks to after finishes authorizing
|
|
90
|
+
* X Connect
|
|
91
|
+
*/
|
|
92
|
+
apiBindXGetRaw(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>>;
|
|
93
|
+
/**
|
|
94
|
+
* A link where x will callbacks to after finishes authorizing
|
|
95
|
+
* X Connect
|
|
96
|
+
*/
|
|
97
|
+
apiBindXGet(requestParameters: ApiBindXGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response>;
|
|
98
|
+
/**
|
|
99
|
+
* Generate X Authorization Link for specific user
|
|
100
|
+
* X Preconnect
|
|
101
|
+
*/
|
|
102
|
+
apiBindXPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>>;
|
|
103
|
+
/**
|
|
104
|
+
* Generate X Authorization Link for specific user
|
|
105
|
+
* X Preconnect
|
|
106
|
+
*/
|
|
107
|
+
apiBindXPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
|
|
41
108
|
}
|
|
@@ -12,13 +12,47 @@
|
|
|
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
|
+
* Create JWT
|
|
23
|
+
*/
|
|
24
|
+
async apiBindCreateJwtGetRaw(initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
29
|
+
}
|
|
30
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
31
|
+
const token = this.configuration.accessToken;
|
|
32
|
+
const tokenString = await token("BearerAuth", []);
|
|
33
|
+
if (tokenString) {
|
|
34
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: `/api/bind/create-jwt`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindCreateJwtGet200ResponseFromJSON(jsonValue));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get 5-Minute JWT Token
|
|
47
|
+
* Create JWT
|
|
48
|
+
*/
|
|
49
|
+
async apiBindCreateJwtGet(initOverrides) {
|
|
50
|
+
const response = await this.apiBindCreateJwtGetRaw(initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
20
53
|
/**
|
|
21
54
|
* A link where discord will callbacks to after finishes authorizing
|
|
55
|
+
* Discord Connect
|
|
22
56
|
*/
|
|
23
57
|
async apiBindDiscordGetRaw(requestParameters, initOverrides) {
|
|
24
58
|
if (requestParameters['clientId'] == null) {
|
|
@@ -58,6 +92,7 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
58
92
|
}
|
|
59
93
|
/**
|
|
60
94
|
* A link where discord will callbacks to after finishes authorizing
|
|
95
|
+
* Discord Connect
|
|
61
96
|
*/
|
|
62
97
|
async apiBindDiscordGet(requestParameters, initOverrides) {
|
|
63
98
|
const response = await this.apiBindDiscordGetRaw(requestParameters, initOverrides);
|
|
@@ -65,6 +100,7 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
65
100
|
}
|
|
66
101
|
/**
|
|
67
102
|
* Generate Discord Authorization Link for specific user
|
|
103
|
+
* Discord Preconnect
|
|
68
104
|
*/
|
|
69
105
|
async apiBindDiscordPreconnectGetRaw(initOverrides) {
|
|
70
106
|
const queryParameters = {};
|
|
@@ -89,9 +125,173 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
89
125
|
}
|
|
90
126
|
/**
|
|
91
127
|
* Generate Discord Authorization Link for specific user
|
|
128
|
+
* Discord Preconnect
|
|
92
129
|
*/
|
|
93
130
|
async apiBindDiscordPreconnectGet(initOverrides) {
|
|
94
131
|
const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
|
|
95
132
|
return await response.value();
|
|
96
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Telegram Connect Page after the user connected
|
|
136
|
+
* Telegram Connect
|
|
137
|
+
*/
|
|
138
|
+
async apiBindTelegramJwtGetRaw(requestParameters, initOverrides) {
|
|
139
|
+
if (requestParameters['jwt'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('jwt', 'Required parameter "jwt" was null or undefined when calling apiBindTelegramJwtGet().');
|
|
141
|
+
}
|
|
142
|
+
const queryParameters = {};
|
|
143
|
+
const headerParameters = {};
|
|
144
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
146
|
+
}
|
|
147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148
|
+
const token = this.configuration.accessToken;
|
|
149
|
+
const tokenString = await token("BearerAuth", []);
|
|
150
|
+
if (tokenString) {
|
|
151
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/api/bind/telegram/{jwt}`.replace(`{${"jwt"}}`, encodeURIComponent(String(requestParameters['jwt']))),
|
|
156
|
+
method: 'GET',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
}, initOverrides);
|
|
160
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
161
|
+
return new runtime.JSONApiResponse(response);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
return new runtime.TextApiResponse(response);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Telegram Connect Page after the user connected
|
|
169
|
+
* Telegram Connect
|
|
170
|
+
*/
|
|
171
|
+
async apiBindTelegramJwtGet(requestParameters, initOverrides) {
|
|
172
|
+
const response = await this.apiBindTelegramJwtGetRaw(requestParameters, initOverrides);
|
|
173
|
+
return await response.value();
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
177
|
+
* Telegram Preconnect
|
|
178
|
+
*/
|
|
179
|
+
async apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides) {
|
|
180
|
+
if (requestParameters['state'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling apiBindTelegramPreconnectGet().');
|
|
182
|
+
}
|
|
183
|
+
const queryParameters = {};
|
|
184
|
+
const headerParameters = {};
|
|
185
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
187
|
+
}
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = await token("BearerAuth", []);
|
|
191
|
+
if (tokenString) {
|
|
192
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const response = await this.request({
|
|
196
|
+
path: `/api/bind/telegram-preconnect`.replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
|
|
197
|
+
method: 'GET',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
}, initOverrides);
|
|
201
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
202
|
+
return new runtime.JSONApiResponse(response);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
return new runtime.TextApiResponse(response);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Telegram Preconnect Page with Connect Telegram Button
|
|
210
|
+
* Telegram Preconnect
|
|
211
|
+
*/
|
|
212
|
+
async apiBindTelegramPreconnectGet(requestParameters, initOverrides) {
|
|
213
|
+
const response = await this.apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides);
|
|
214
|
+
return await response.value();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A link where x will callbacks to after finishes authorizing
|
|
218
|
+
* X Connect
|
|
219
|
+
*/
|
|
220
|
+
async apiBindXGetRaw(requestParameters, initOverrides) {
|
|
221
|
+
if (requestParameters['clientId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling apiBindXGet().');
|
|
223
|
+
}
|
|
224
|
+
if (requestParameters['redirectUri'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('redirectUri', 'Required parameter "redirectUri" was null or undefined when calling apiBindXGet().');
|
|
226
|
+
}
|
|
227
|
+
if (requestParameters['responseType'] == null) {
|
|
228
|
+
throw new runtime.RequiredError('responseType', 'Required parameter "responseType" was null or undefined when calling apiBindXGet().');
|
|
229
|
+
}
|
|
230
|
+
if (requestParameters['scope'] == null) {
|
|
231
|
+
throw new runtime.RequiredError('scope', 'Required parameter "scope" was null or undefined when calling apiBindXGet().');
|
|
232
|
+
}
|
|
233
|
+
if (requestParameters['state'] == null) {
|
|
234
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling apiBindXGet().');
|
|
235
|
+
}
|
|
236
|
+
const queryParameters = {};
|
|
237
|
+
const headerParameters = {};
|
|
238
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
239
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
240
|
+
}
|
|
241
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
242
|
+
const token = this.configuration.accessToken;
|
|
243
|
+
const tokenString = await token("BearerAuth", []);
|
|
244
|
+
if (tokenString) {
|
|
245
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
const response = await this.request({
|
|
249
|
+
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']))),
|
|
250
|
+
method: 'GET',
|
|
251
|
+
headers: headerParameters,
|
|
252
|
+
query: queryParameters,
|
|
253
|
+
}, initOverrides);
|
|
254
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* A link where x will callbacks to after finishes authorizing
|
|
258
|
+
* X Connect
|
|
259
|
+
*/
|
|
260
|
+
async apiBindXGet(requestParameters, initOverrides) {
|
|
261
|
+
const response = await this.apiBindXGetRaw(requestParameters, initOverrides);
|
|
262
|
+
return await response.value();
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Generate X Authorization Link for specific user
|
|
266
|
+
* X Preconnect
|
|
267
|
+
*/
|
|
268
|
+
async apiBindXPreconnectGetRaw(initOverrides) {
|
|
269
|
+
const queryParameters = {};
|
|
270
|
+
const headerParameters = {};
|
|
271
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
272
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
273
|
+
}
|
|
274
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
275
|
+
const token = this.configuration.accessToken;
|
|
276
|
+
const tokenString = await token("BearerAuth", []);
|
|
277
|
+
if (tokenString) {
|
|
278
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const response = await this.request({
|
|
282
|
+
path: `/api/bind/x-preconnect`,
|
|
283
|
+
method: 'GET',
|
|
284
|
+
headers: headerParameters,
|
|
285
|
+
query: queryParameters,
|
|
286
|
+
}, initOverrides);
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Generate X Authorization Link for specific user
|
|
291
|
+
* X Preconnect
|
|
292
|
+
*/
|
|
293
|
+
async apiBindXPreconnectGet(initOverrides) {
|
|
294
|
+
const response = await this.apiBindXPreconnectGetRaw(initOverrides);
|
|
295
|
+
return await response.value();
|
|
296
|
+
}
|
|
97
297
|
}
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
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';
|
|
@@ -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';
|