@drxsuperapp/sdk 2.0.2 → 2.0.3
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/.ai/mcp/mcp.json +0 -0
- package/.idea/vcs.xml +6 -0
- package/.openapi-generator/FILES +2 -0
- package/apis/AuthenticationApi.ts +98 -0
- package/dist/apis/AuthenticationApi.d.ts +24 -1
- package/dist/apis/AuthenticationApi.js +73 -1
- package/dist/models/ApiAuthOneTimeLoginCodePost200Response.d.ts +51 -0
- package/dist/models/{ApiWalletUnbindPost200Response.js → ApiAuthOneTimeLoginCodePost200Response.js} +11 -11
- package/dist/models/ApiAuthOneTimeLoginCodePost200ResponseResponseObject.d.ts +38 -0
- package/dist/models/ApiAuthOneTimeLoginCodePost200ResponseResponseObject.js +47 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/ApiAdminPointDropsPost200ResponseResponseObject.ts +101 -101
- package/models/ApiAdminPointDropsPost200ResponseResponseObjectCreatedAt.ts +46 -46
- package/models/ApiAuthOneTimeLoginCodePost200Response.ts +100 -0
- package/models/ApiAuthOneTimeLoginCodePost200ResponseResponseObject.ts +75 -0
- package/models/ApiPwaTournamentPostRequestAdminInner.ts +46 -46
- package/models/index.ts +2 -0
- package/package.json +1 -1
- package/workflow.sh +88 -88
- package/dist/models/ApiWalletUnbindPost200Response.d.ts +0 -51
- package/dist/models/ApiWalletUnbindPost200ResponseResponseObject.d.ts +0 -32
- package/dist/models/ApiWalletUnbindPost200ResponseResponseObject.js +0 -43
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObjectData.d.ts +0 -69
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObjectData.js +0 -68
package/.ai/mcp/mcp.json
ADDED
|
File without changes
|
package/.idea/vcs.xml
ADDED
package/.openapi-generator/FILES
CHANGED
|
@@ -65,6 +65,8 @@ models/ApiAuthLoginPost200Response.ts
|
|
|
65
65
|
models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
66
66
|
models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
67
67
|
models/ApiAuthLoginPostRequest.ts
|
|
68
|
+
models/ApiAuthOneTimeLoginCodePost200Response.ts
|
|
69
|
+
models/ApiAuthOneTimeLoginCodePost200ResponseResponseObject.ts
|
|
68
70
|
models/ApiAuthRefreshPost200Response.ts
|
|
69
71
|
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
70
72
|
models/ApiAuthRegisterCompletePost200Response.ts
|
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
ApiAuthForgotPasswordVerifyOtpPost200Response,
|
|
23
23
|
ApiAuthLoginPost200Response,
|
|
24
24
|
ApiAuthLoginPostRequest,
|
|
25
|
+
ApiAuthOneTimeLoginCodePost200Response,
|
|
25
26
|
ApiAuthRefreshPost200Response,
|
|
26
27
|
ApiAuthRegisterCompletePost200Response,
|
|
27
28
|
ApiAuthRegisterCompletePostRequest,
|
|
@@ -48,6 +49,8 @@ import {
|
|
|
48
49
|
ApiAuthLoginPost200ResponseToJSON,
|
|
49
50
|
ApiAuthLoginPostRequestFromJSON,
|
|
50
51
|
ApiAuthLoginPostRequestToJSON,
|
|
52
|
+
ApiAuthOneTimeLoginCodePost200ResponseFromJSON,
|
|
53
|
+
ApiAuthOneTimeLoginCodePost200ResponseToJSON,
|
|
51
54
|
ApiAuthRefreshPost200ResponseFromJSON,
|
|
52
55
|
ApiAuthRefreshPost200ResponseToJSON,
|
|
53
56
|
ApiAuthRegisterCompletePost200ResponseFromJSON,
|
|
@@ -90,6 +93,10 @@ export interface ApiAuthLoginPostOperationRequest {
|
|
|
90
93
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
91
94
|
}
|
|
92
95
|
|
|
96
|
+
export interface ApiAuthOneTimeLoginCodeGetRequest {
|
|
97
|
+
code: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
93
100
|
export interface ApiAuthRegisterCompletePostOperationRequest {
|
|
94
101
|
apiAuthRegisterCompletePostRequest?: ApiAuthRegisterCompletePostRequest;
|
|
95
102
|
}
|
|
@@ -326,6 +333,97 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
326
333
|
return await response.value();
|
|
327
334
|
}
|
|
328
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Verify one-time login code and return JWT tokens
|
|
338
|
+
* Verify One-Time Login Code
|
|
339
|
+
*/
|
|
340
|
+
async apiAuthOneTimeLoginCodeGetRaw(requestParameters: ApiAuthOneTimeLoginCodeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>> {
|
|
341
|
+
if (requestParameters['code'] == null) {
|
|
342
|
+
throw new runtime.RequiredError(
|
|
343
|
+
'code',
|
|
344
|
+
'Required parameter "code" was null or undefined when calling apiAuthOneTimeLoginCodeGet().'
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
const queryParameters: any = {};
|
|
349
|
+
|
|
350
|
+
if (requestParameters['code'] != null) {
|
|
351
|
+
queryParameters['code'] = requestParameters['code'];
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
355
|
+
|
|
356
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
357
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
361
|
+
const token = this.configuration.accessToken;
|
|
362
|
+
const tokenString = await token("BearerAuth", []);
|
|
363
|
+
|
|
364
|
+
if (tokenString) {
|
|
365
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const response = await this.request({
|
|
369
|
+
path: `/api/auth/one-time-login-code`,
|
|
370
|
+
method: 'GET',
|
|
371
|
+
headers: headerParameters,
|
|
372
|
+
query: queryParameters,
|
|
373
|
+
}, initOverrides);
|
|
374
|
+
|
|
375
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Verify one-time login code and return JWT tokens
|
|
380
|
+
* Verify One-Time Login Code
|
|
381
|
+
*/
|
|
382
|
+
async apiAuthOneTimeLoginCodeGet(requestParameters: ApiAuthOneTimeLoginCodeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response> {
|
|
383
|
+
const response = await this.apiAuthOneTimeLoginCodeGetRaw(requestParameters, initOverrides);
|
|
384
|
+
return await response.value();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
389
|
+
* Generate One-Time Login Code
|
|
390
|
+
*/
|
|
391
|
+
async apiAuthOneTimeLoginCodePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthOneTimeLoginCodePost200Response>> {
|
|
392
|
+
const queryParameters: any = {};
|
|
393
|
+
|
|
394
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
395
|
+
|
|
396
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
397
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
401
|
+
const token = this.configuration.accessToken;
|
|
402
|
+
const tokenString = await token("BearerAuth", []);
|
|
403
|
+
|
|
404
|
+
if (tokenString) {
|
|
405
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
const response = await this.request({
|
|
409
|
+
path: `/api/auth/one-time-login-code`,
|
|
410
|
+
method: 'POST',
|
|
411
|
+
headers: headerParameters,
|
|
412
|
+
query: queryParameters,
|
|
413
|
+
}, initOverrides);
|
|
414
|
+
|
|
415
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthOneTimeLoginCodePost200ResponseFromJSON(jsonValue));
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
420
|
+
* Generate One-Time Login Code
|
|
421
|
+
*/
|
|
422
|
+
async apiAuthOneTimeLoginCodePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthOneTimeLoginCodePost200Response> {
|
|
423
|
+
const response = await this.apiAuthOneTimeLoginCodePostRaw(initOverrides);
|
|
424
|
+
return await response.value();
|
|
425
|
+
}
|
|
426
|
+
|
|
329
427
|
/**
|
|
330
428
|
* Generate new access and refresh tokens using Authorization header
|
|
331
429
|
* Refresh Access Token
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthChangePasswordPostRequest, ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiAuthValidateGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiAuthChangePasswordPostRequest, ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthOneTimeLoginCodePost200Response, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiAuthValidateGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiAuthChangePasswordPostOperationRequest {
|
|
15
15
|
apiAuthChangePasswordPostRequest?: ApiAuthChangePasswordPostRequest;
|
|
16
16
|
}
|
|
@@ -26,6 +26,9 @@ export interface ApiAuthForgotPasswordVerifyOtpPostRequest {
|
|
|
26
26
|
export interface ApiAuthLoginPostOperationRequest {
|
|
27
27
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
28
28
|
}
|
|
29
|
+
export interface ApiAuthOneTimeLoginCodeGetRequest {
|
|
30
|
+
code: string;
|
|
31
|
+
}
|
|
29
32
|
export interface ApiAuthRegisterCompletePostOperationRequest {
|
|
30
33
|
apiAuthRegisterCompletePostRequest?: ApiAuthRegisterCompletePostRequest;
|
|
31
34
|
}
|
|
@@ -92,6 +95,26 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
92
95
|
* User Login
|
|
93
96
|
*/
|
|
94
97
|
apiAuthLoginPost(requestParameters?: ApiAuthLoginPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response>;
|
|
98
|
+
/**
|
|
99
|
+
* Verify one-time login code and return JWT tokens
|
|
100
|
+
* Verify One-Time Login Code
|
|
101
|
+
*/
|
|
102
|
+
apiAuthOneTimeLoginCodeGetRaw(requestParameters: ApiAuthOneTimeLoginCodeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>>;
|
|
103
|
+
/**
|
|
104
|
+
* Verify one-time login code and return JWT tokens
|
|
105
|
+
* Verify One-Time Login Code
|
|
106
|
+
*/
|
|
107
|
+
apiAuthOneTimeLoginCodeGet(requestParameters: ApiAuthOneTimeLoginCodeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response>;
|
|
108
|
+
/**
|
|
109
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
110
|
+
* Generate One-Time Login Code
|
|
111
|
+
*/
|
|
112
|
+
apiAuthOneTimeLoginCodePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthOneTimeLoginCodePost200Response>>;
|
|
113
|
+
/**
|
|
114
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
115
|
+
* Generate One-Time Login Code
|
|
116
|
+
*/
|
|
117
|
+
apiAuthOneTimeLoginCodePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthOneTimeLoginCodePost200Response>;
|
|
95
118
|
/**
|
|
96
119
|
* Generate new access and refresh tokens using Authorization header
|
|
97
120
|
* Refresh Access Token
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAuthChangePasswordPostRequestToJSON, ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiAuthValidateGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiAuthChangePasswordPostRequestToJSON, ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthOneTimeLoginCodePost200ResponseFromJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiAuthValidateGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -192,6 +192,78 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
192
192
|
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
|
193
193
|
return await response.value();
|
|
194
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* Verify one-time login code and return JWT tokens
|
|
197
|
+
* Verify One-Time Login Code
|
|
198
|
+
*/
|
|
199
|
+
async apiAuthOneTimeLoginCodeGetRaw(requestParameters, initOverrides) {
|
|
200
|
+
if (requestParameters['code'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling apiAuthOneTimeLoginCodeGet().');
|
|
202
|
+
}
|
|
203
|
+
const queryParameters = {};
|
|
204
|
+
if (requestParameters['code'] != null) {
|
|
205
|
+
queryParameters['code'] = requestParameters['code'];
|
|
206
|
+
}
|
|
207
|
+
const headerParameters = {};
|
|
208
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
209
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
210
|
+
}
|
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
212
|
+
const token = this.configuration.accessToken;
|
|
213
|
+
const tokenString = await token("BearerAuth", []);
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: `/api/auth/one-time-login-code`,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides);
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Verify one-time login code and return JWT tokens
|
|
228
|
+
* Verify One-Time Login Code
|
|
229
|
+
*/
|
|
230
|
+
async apiAuthOneTimeLoginCodeGet(requestParameters, initOverrides) {
|
|
231
|
+
const response = await this.apiAuthOneTimeLoginCodeGetRaw(requestParameters, initOverrides);
|
|
232
|
+
return await response.value();
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
236
|
+
* Generate One-Time Login Code
|
|
237
|
+
*/
|
|
238
|
+
async apiAuthOneTimeLoginCodePostRaw(initOverrides) {
|
|
239
|
+
const queryParameters = {};
|
|
240
|
+
const headerParameters = {};
|
|
241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
242
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
243
|
+
}
|
|
244
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
245
|
+
const token = this.configuration.accessToken;
|
|
246
|
+
const tokenString = await token("BearerAuth", []);
|
|
247
|
+
if (tokenString) {
|
|
248
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
const response = await this.request({
|
|
252
|
+
path: `/api/auth/one-time-login-code`,
|
|
253
|
+
method: 'POST',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
}, initOverrides);
|
|
257
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthOneTimeLoginCodePost200ResponseFromJSON(jsonValue));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Generate a one-time login code for authenticated user (expires in 1 minute)
|
|
261
|
+
* Generate One-Time Login Code
|
|
262
|
+
*/
|
|
263
|
+
async apiAuthOneTimeLoginCodePost(initOverrides) {
|
|
264
|
+
const response = await this.apiAuthOneTimeLoginCodePostRaw(initOverrides);
|
|
265
|
+
return await response.value();
|
|
266
|
+
}
|
|
195
267
|
/**
|
|
196
268
|
* Generate new access and refresh tokens using Authorization header
|
|
197
269
|
* Refresh Access Token
|
|
@@ -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 { ApiAuthOneTimeLoginCodePost200ResponseResponseObject } from './ApiAuthOneTimeLoginCodePost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthOneTimeLoginCodePost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthOneTimeLoginCodePost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiAuthOneTimeLoginCodePost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthOneTimeLoginCodePost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiAuthOneTimeLoginCodePost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiAuthOneTimeLoginCodePost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiAuthOneTimeLoginCodePost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiAuthOneTimeLoginCodePost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthOneTimeLoginCodePost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthOneTimeLoginCodePost200Response(value: object): value is ApiAuthOneTimeLoginCodePost200Response;
|
|
48
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseFromJSON(json: any): ApiAuthOneTimeLoginCodePost200Response;
|
|
49
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthOneTimeLoginCodePost200Response;
|
|
50
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseToJSON(json: any): ApiAuthOneTimeLoginCodePost200Response;
|
|
51
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseToJSONTyped(value?: ApiAuthOneTimeLoginCodePost200Response | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{ApiWalletUnbindPost200Response.js → ApiAuthOneTimeLoginCodePost200Response.js}
RENAMED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSON, ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSON, } from './ApiAuthOneTimeLoginCodePost200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiAuthOneTimeLoginCodePost200Response interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiAuthOneTimeLoginCodePost200Response(value) {
|
|
19
19
|
if (!('success' in value) || value['success'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('message' in value) || value['message'] === undefined)
|
|
@@ -24,31 +24,31 @@ export function instanceOfApiWalletUnbindPost200Response(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
28
|
-
return
|
|
27
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiAuthOneTimeLoginCodePost200ResponseFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
30
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'],
|
|
36
36
|
'message': json['message'],
|
|
37
|
-
'responseObject': json['responseObject'] == null ? undefined :
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
42
|
-
return
|
|
41
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseToJSON(json) {
|
|
42
|
+
return ApiAuthOneTimeLoginCodePost200ResponseToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
export function
|
|
44
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ApiAuthOneTimeLoginCodePost200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthOneTimeLoginCodePost200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthOneTimeLoginCodePost200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthOneTimeLoginCodePost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
expiredAt: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiAuthOneTimeLoginCodePost200ResponseResponseObject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiAuthOneTimeLoginCodePost200ResponseResponseObject(value: object): value is ApiAuthOneTimeLoginCodePost200ResponseResponseObject;
|
|
35
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSON(json: any): ApiAuthOneTimeLoginCodePost200ResponseResponseObject;
|
|
36
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthOneTimeLoginCodePost200ResponseResponseObject;
|
|
37
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSON(json: any): ApiAuthOneTimeLoginCodePost200ResponseResponseObject;
|
|
38
|
+
export declare function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthOneTimeLoginCodePost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 ApiAuthOneTimeLoginCodePost200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiAuthOneTimeLoginCodePost200ResponseResponseObject(value) {
|
|
18
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('expiredAt' in value) || value['expiredAt'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSON(json) {
|
|
25
|
+
return ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'code': json['code'],
|
|
33
|
+
'expiredAt': json['expiredAt'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSON(json) {
|
|
37
|
+
return ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ApiAuthOneTimeLoginCodePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'code': value['code'],
|
|
45
|
+
'expiredAt': value['expiredAt'],
|
|
46
|
+
};
|
|
47
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './ApiAuthLoginPost200Response';
|
|
|
31
31
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
32
32
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
33
33
|
export * from './ApiAuthLoginPostRequest';
|
|
34
|
+
export * from './ApiAuthOneTimeLoginCodePost200Response';
|
|
35
|
+
export * from './ApiAuthOneTimeLoginCodePost200ResponseResponseObject';
|
|
34
36
|
export * from './ApiAuthRefreshPost200Response';
|
|
35
37
|
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
36
38
|
export * from './ApiAuthRegisterCompletePost200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,8 @@ export * from './ApiAuthLoginPost200Response';
|
|
|
33
33
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
34
34
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
35
35
|
export * from './ApiAuthLoginPostRequest';
|
|
36
|
+
export * from './ApiAuthOneTimeLoginCodePost200Response';
|
|
37
|
+
export * from './ApiAuthOneTimeLoginCodePost200ResponseResponseObject';
|
|
36
38
|
export * from './ApiAuthRefreshPost200Response';
|
|
37
39
|
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
38
40
|
export * from './ApiAuthRegisterCompletePost200Response';
|