@dynamic-labs/sdk-api 0.0.1087 → 0.0.1088
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
|
@@ -2,19 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var TokenScopes = require('./TokenScopes.cjs');
|
|
7
|
+
|
|
5
8
|
/* 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
9
|
function WaasVerifyApiKeyResponseFromJSON(json) {
|
|
19
10
|
return WaasVerifyApiKeyResponseFromJSONTyped(json);
|
|
20
11
|
}
|
|
@@ -25,6 +16,7 @@ function WaasVerifyApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
16
|
return {
|
|
26
17
|
'environmentId': json['environmentId'],
|
|
27
18
|
'verified': json['verified'],
|
|
19
|
+
'scopes': !runtime.exists(json, 'scopes') ? undefined : (json['scopes'].map(TokenScopes.TokenScopesFromJSON)),
|
|
28
20
|
};
|
|
29
21
|
}
|
|
30
22
|
function WaasVerifyApiKeyResponseToJSON(value) {
|
|
@@ -37,6 +29,7 @@ function WaasVerifyApiKeyResponseToJSON(value) {
|
|
|
37
29
|
return {
|
|
38
30
|
'environmentId': value.environmentId,
|
|
39
31
|
'verified': value.verified,
|
|
32
|
+
'scopes': value.scopes === undefined ? undefined : (value.scopes.map(TokenScopes.TokenScopesToJSON)),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
35
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { TokenScopes } from './TokenScopes';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface WaasVerifyApiKeyResponse {
|
|
|
27
28
|
* @memberof WaasVerifyApiKeyResponse
|
|
28
29
|
*/
|
|
29
30
|
verified: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Scopes granted to the verified API token
|
|
33
|
+
* @type {Array<TokenScopes>}
|
|
34
|
+
* @memberof WaasVerifyApiKeyResponse
|
|
35
|
+
*/
|
|
36
|
+
scopes?: Array<TokenScopes>;
|
|
30
37
|
}
|
|
31
38
|
export declare function WaasVerifyApiKeyResponseFromJSON(json: any): WaasVerifyApiKeyResponse;
|
|
32
39
|
export declare function WaasVerifyApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasVerifyApiKeyResponse;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { TokenScopesFromJSON, TokenScopesToJSON } from './TokenScopes.js';
|
|
3
|
+
|
|
1
4
|
/* 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
5
|
function WaasVerifyApiKeyResponseFromJSON(json) {
|
|
15
6
|
return WaasVerifyApiKeyResponseFromJSONTyped(json);
|
|
16
7
|
}
|
|
@@ -21,6 +12,7 @@ function WaasVerifyApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
12
|
return {
|
|
22
13
|
'environmentId': json['environmentId'],
|
|
23
14
|
'verified': json['verified'],
|
|
15
|
+
'scopes': !exists(json, 'scopes') ? undefined : (json['scopes'].map(TokenScopesFromJSON)),
|
|
24
16
|
};
|
|
25
17
|
}
|
|
26
18
|
function WaasVerifyApiKeyResponseToJSON(value) {
|
|
@@ -33,6 +25,7 @@ function WaasVerifyApiKeyResponseToJSON(value) {
|
|
|
33
25
|
return {
|
|
34
26
|
'environmentId': value.environmentId,
|
|
35
27
|
'verified': value.verified,
|
|
28
|
+
'scopes': value.scopes === undefined ? undefined : (value.scopes.map(TokenScopesToJSON)),
|
|
36
29
|
};
|
|
37
30
|
}
|
|
38
31
|
|