@dynamic-labs/sdk-api-core 0.0.525 → 0.0.527
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/package.json +1 -1
- package/src/models/OauthResultRequest.cjs +3 -1
- package/src/models/OauthResultRequest.d.ts +7 -1
- package/src/models/OauthResultRequest.js +3 -1
- package/src/models/RegisterSessionKeyRequest.cjs +4 -12
- package/src/models/RegisterSessionKeyRequest.d.ts +6 -0
- package/src/models/RegisterSessionKeyRequest.js +4 -12
package/package.json
CHANGED
|
@@ -13,7 +13,8 @@ function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'state': json['state'],
|
|
16
|
+
'state': !runtime.exists(json, 'state') ? undefined : json['state'],
|
|
17
|
+
'telegramAuthToken': !runtime.exists(json, 'telegramAuthToken') ? undefined : json['telegramAuthToken'],
|
|
17
18
|
'code': !runtime.exists(json, 'code') ? undefined : json['code'],
|
|
18
19
|
'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
19
20
|
};
|
|
@@ -27,6 +28,7 @@ function OauthResultRequestToJSON(value) {
|
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
30
|
'state': value.state,
|
|
31
|
+
'telegramAuthToken': value.telegramAuthToken,
|
|
30
32
|
'code': value.code,
|
|
31
33
|
'sessionPublicKey': value.sessionPublicKey,
|
|
32
34
|
};
|
|
@@ -20,7 +20,13 @@ export interface OauthResultRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof OauthResultRequest
|
|
22
22
|
*/
|
|
23
|
-
state
|
|
23
|
+
state?: string;
|
|
24
|
+
/**
|
|
25
|
+
* JWT Auth Token coming from Telegram Bot containing user information
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OauthResultRequest
|
|
28
|
+
*/
|
|
29
|
+
telegramAuthToken?: string;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -9,7 +9,8 @@ function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'state': json['state'],
|
|
12
|
+
'state': !exists(json, 'state') ? undefined : json['state'],
|
|
13
|
+
'telegramAuthToken': !exists(json, 'telegramAuthToken') ? undefined : json['telegramAuthToken'],
|
|
13
14
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
14
15
|
'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
15
16
|
};
|
|
@@ -23,6 +24,7 @@ function OauthResultRequestToJSON(value) {
|
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
'state': value.state,
|
|
27
|
+
'telegramAuthToken': value.telegramAuthToken,
|
|
26
28
|
'code': value.code,
|
|
27
29
|
'sessionPublicKey': value.sessionPublicKey,
|
|
28
30
|
};
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
8
|
function RegisterSessionKeyRequestFromJSON(json) {
|
|
19
9
|
return RegisterSessionKeyRequestFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,6 +14,7 @@ function RegisterSessionKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'publicKey': json['publicKey'],
|
|
17
|
+
'prevSessionKeySignature': !runtime.exists(json, 'prevSessionKeySignature') ? undefined : json['prevSessionKeySignature'],
|
|
27
18
|
};
|
|
28
19
|
}
|
|
29
20
|
function RegisterSessionKeyRequestToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function RegisterSessionKeyRequestToJSON(value) {
|
|
|
35
26
|
}
|
|
36
27
|
return {
|
|
37
28
|
'publicKey': value.publicKey,
|
|
29
|
+
'prevSessionKeySignature': value.prevSessionKeySignature,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|
|
@@ -21,6 +21,12 @@ export interface RegisterSessionKeyRequest {
|
|
|
21
21
|
* @memberof RegisterSessionKeyRequest
|
|
22
22
|
*/
|
|
23
23
|
publicKey: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegisterSessionKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
prevSessionKeySignature?: string;
|
|
24
30
|
}
|
|
25
31
|
export declare function RegisterSessionKeyRequestFromJSON(json: any): RegisterSessionKeyRequest;
|
|
26
32
|
export declare function RegisterSessionKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterSessionKeyRequest;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
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
4
|
function RegisterSessionKeyRequestFromJSON(json) {
|
|
15
5
|
return RegisterSessionKeyRequestFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -20,6 +10,7 @@ function RegisterSessionKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
12
|
'publicKey': json['publicKey'],
|
|
13
|
+
'prevSessionKeySignature': !exists(json, 'prevSessionKeySignature') ? undefined : json['prevSessionKeySignature'],
|
|
23
14
|
};
|
|
24
15
|
}
|
|
25
16
|
function RegisterSessionKeyRequestToJSON(value) {
|
|
@@ -31,6 +22,7 @@ function RegisterSessionKeyRequestToJSON(value) {
|
|
|
31
22
|
}
|
|
32
23
|
return {
|
|
33
24
|
'publicKey': value.publicKey,
|
|
25
|
+
'prevSessionKeySignature': value.prevSessionKeySignature,
|
|
34
26
|
};
|
|
35
27
|
}
|
|
36
28
|
|