@dynamic-labs/sdk-api 0.0.907 → 0.0.908
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
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function OauthRequestFromJSON(json) {
|
|
@@ -19,6 +20,7 @@ function OauthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'captchaToken': !runtime.exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
20
21
|
'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
21
22
|
'ssoProviderId': !runtime.exists(json, 'ssoProviderId') ? undefined : json['ssoProviderId'],
|
|
23
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
function OauthRequestToJSON(value) {
|
|
@@ -35,6 +37,7 @@ function OauthRequestToJSON(value) {
|
|
|
35
37
|
'captchaToken': value.captchaToken,
|
|
36
38
|
'sessionPublicKey': value.sessionPublicKey,
|
|
37
39
|
'ssoProviderId': value.ssoProviderId,
|
|
40
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { TokenScope } from './TokenScope';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,12 @@ export interface OauthRequest {
|
|
|
51
52
|
* @memberof OauthRequest
|
|
52
53
|
*/
|
|
53
54
|
ssoProviderId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional list of scopes to include in the elevated access token.
|
|
57
|
+
* @type {Array<TokenScope>}
|
|
58
|
+
* @memberof OauthRequest
|
|
59
|
+
*/
|
|
60
|
+
requestedScopes?: Array<TokenScope>;
|
|
54
61
|
}
|
|
55
62
|
export declare function OauthRequestFromJSON(json: any): OauthRequest;
|
|
56
63
|
export declare function OauthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function OauthRequestFromJSON(json) {
|
|
@@ -15,6 +16,7 @@ function OauthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
16
|
'captchaToken': !exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
16
17
|
'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
17
18
|
'ssoProviderId': !exists(json, 'ssoProviderId') ? undefined : json['ssoProviderId'],
|
|
19
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function OauthRequestToJSON(value) {
|
|
@@ -31,6 +33,7 @@ function OauthRequestToJSON(value) {
|
|
|
31
33
|
'captchaToken': value.captchaToken,
|
|
32
34
|
'sessionPublicKey': value.sessionPublicKey,
|
|
33
35
|
'ssoProviderId': value.ssoProviderId,
|
|
36
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
|