@dynamic-labs/sdk-api 0.0.1086 → 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 +1 -1
- package/src/models/TokenScopes.cjs +1 -0
- package/src/models/TokenScopes.d.ts +2 -1
- package/src/models/TokenScopes.js +1 -0
- package/src/models/WaasVerifyApiKeyResponse.cjs +5 -12
- package/src/models/WaasVerifyApiKeyResponse.d.ts +7 -0
- package/src/models/WaasVerifyApiKeyResponse.js +5 -12
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ exports.TokenScopes = void 0;
|
|
|
40
40
|
TokenScopes["GaslessRead"] = "gasless.read";
|
|
41
41
|
TokenScopes["GaslessWrite"] = "gasless.write";
|
|
42
42
|
TokenScopes["FlowWrite"] = "flow.write";
|
|
43
|
+
TokenScopes["WaasPoliciesWrite"] = "waas.policies.write";
|
|
43
44
|
})(exports.TokenScopes || (exports.TokenScopes = {}));
|
|
44
45
|
function TokenScopesFromJSON(json) {
|
|
45
46
|
return TokenScopesFromJSONTyped(json);
|
|
@@ -32,7 +32,8 @@ export declare enum TokenScopes {
|
|
|
32
32
|
EnvironmentBalancesRead = "environment.balances.read",
|
|
33
33
|
GaslessRead = "gasless.read",
|
|
34
34
|
GaslessWrite = "gasless.write",
|
|
35
|
-
FlowWrite = "flow.write"
|
|
35
|
+
FlowWrite = "flow.write",
|
|
36
|
+
WaasPoliciesWrite = "waas.policies.write"
|
|
36
37
|
}
|
|
37
38
|
export declare function TokenScopesFromJSON(json: any): TokenScopes;
|
|
38
39
|
export declare function TokenScopesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScopes;
|
|
@@ -36,6 +36,7 @@ var TokenScopes;
|
|
|
36
36
|
TokenScopes["GaslessRead"] = "gasless.read";
|
|
37
37
|
TokenScopes["GaslessWrite"] = "gasless.write";
|
|
38
38
|
TokenScopes["FlowWrite"] = "flow.write";
|
|
39
|
+
TokenScopes["WaasPoliciesWrite"] = "waas.policies.write";
|
|
39
40
|
})(TokenScopes || (TokenScopes = {}));
|
|
40
41
|
function TokenScopesFromJSON(json) {
|
|
41
42
|
return TokenScopesFromJSONTyped(json);
|
|
@@ -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
|
|