@dynamic-labs/sdk-api 0.0.816 → 0.0.817
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/apis/WaasApi.cjs +38 -0
- package/src/apis/WaasApi.d.ts +14 -1
- package/src/apis/WaasApi.js +38 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/WaasVerifyApiKeyErrorResponse.cjs +45 -0
- package/src/models/WaasVerifyApiKeyErrorResponse.d.ts +33 -0
- package/src/models/WaasVerifyApiKeyErrorResponse.js +39 -0
- package/src/models/WaasVerifyApiKeyResponse.cjs +45 -0
- package/src/models/WaasVerifyApiKeyResponse.d.ts +33 -0
- package/src/models/WaasVerifyApiKeyResponse.js +39 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -102,6 +102,7 @@ var WaasPolicyDeleteRequest = require('../models/WaasPolicyDeleteRequest.cjs');
|
|
|
102
102
|
var WaasPolicyResponse = require('../models/WaasPolicyResponse.cjs');
|
|
103
103
|
require('../models/WaasPolicyRuleType.cjs');
|
|
104
104
|
var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
|
|
105
|
+
var WaasVerifyApiKeyResponse = require('../models/WaasVerifyApiKeyResponse.cjs');
|
|
105
106
|
var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
|
|
106
107
|
|
|
107
108
|
/* tslint:disable */
|
|
@@ -596,6 +597,43 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
596
597
|
return yield response.value();
|
|
597
598
|
});
|
|
598
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
602
|
+
* Verify if an API key is valid for a specific environment
|
|
603
|
+
*/
|
|
604
|
+
verifyApiKeyRaw(requestParameters, initOverrides) {
|
|
605
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
606
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
607
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling verifyApiKey.');
|
|
608
|
+
}
|
|
609
|
+
const queryParameters = {};
|
|
610
|
+
const headerParameters = {};
|
|
611
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
612
|
+
const token = this.configuration.accessToken;
|
|
613
|
+
const tokenString = yield token("bearerAuth", []);
|
|
614
|
+
if (tokenString) {
|
|
615
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
const response = yield this.request({
|
|
619
|
+
path: `/environments/{environmentId}/waas/verifyApiKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
620
|
+
method: 'POST',
|
|
621
|
+
headers: headerParameters,
|
|
622
|
+
query: queryParameters,
|
|
623
|
+
}, initOverrides);
|
|
624
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasVerifyApiKeyResponse.WaasVerifyApiKeyResponseFromJSON(jsonValue));
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
629
|
+
* Verify if an API key is valid for a specific environment
|
|
630
|
+
*/
|
|
631
|
+
verifyApiKey(requestParameters, initOverrides) {
|
|
632
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
const response = yield this.verifyApiKeyRaw(requestParameters, initOverrides);
|
|
634
|
+
return yield response.value();
|
|
635
|
+
});
|
|
636
|
+
}
|
|
599
637
|
}
|
|
600
638
|
|
|
601
639
|
exports.WaasApi = WaasApi;
|
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasWalletResponse } from '../models';
|
|
13
|
+
import { CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -68,6 +68,9 @@ export interface UpdateWaasPolicyRequest {
|
|
|
68
68
|
environmentId: string;
|
|
69
69
|
waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
|
|
70
70
|
}
|
|
71
|
+
export interface VerifyApiKeyRequest {
|
|
72
|
+
environmentId: string;
|
|
73
|
+
}
|
|
71
74
|
/**
|
|
72
75
|
*
|
|
73
76
|
*/
|
|
@@ -204,4 +207,14 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
204
207
|
* Update the WAAS policy for an environment by ruleId
|
|
205
208
|
*/
|
|
206
209
|
updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
212
|
+
* Verify if an API key is valid for a specific environment
|
|
213
|
+
*/
|
|
214
|
+
verifyApiKeyRaw(requestParameters: VerifyApiKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasVerifyApiKeyResponse>>;
|
|
215
|
+
/**
|
|
216
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
217
|
+
* Verify if an API key is valid for a specific environment
|
|
218
|
+
*/
|
|
219
|
+
verifyApiKey(requestParameters: VerifyApiKeyRequest, initOverrides?: RequestInit): Promise<WaasVerifyApiKeyResponse>;
|
|
207
220
|
}
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -98,6 +98,7 @@ import { WaasPolicyDeleteRequestToJSON } from '../models/WaasPolicyDeleteRequest
|
|
|
98
98
|
import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
|
|
99
99
|
import '../models/WaasPolicyRuleType.js';
|
|
100
100
|
import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
|
|
101
|
+
import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
|
|
101
102
|
import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
|
|
102
103
|
|
|
103
104
|
/* tslint:disable */
|
|
@@ -592,6 +593,43 @@ class WaasApi extends BaseAPI {
|
|
|
592
593
|
return yield response.value();
|
|
593
594
|
});
|
|
594
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
598
|
+
* Verify if an API key is valid for a specific environment
|
|
599
|
+
*/
|
|
600
|
+
verifyApiKeyRaw(requestParameters, initOverrides) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
603
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling verifyApiKey.');
|
|
604
|
+
}
|
|
605
|
+
const queryParameters = {};
|
|
606
|
+
const headerParameters = {};
|
|
607
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
608
|
+
const token = this.configuration.accessToken;
|
|
609
|
+
const tokenString = yield token("bearerAuth", []);
|
|
610
|
+
if (tokenString) {
|
|
611
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
const response = yield this.request({
|
|
615
|
+
path: `/environments/{environmentId}/waas/verifyApiKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
616
|
+
method: 'POST',
|
|
617
|
+
headers: headerParameters,
|
|
618
|
+
query: queryParameters,
|
|
619
|
+
}, initOverrides);
|
|
620
|
+
return new JSONApiResponse(response, (jsonValue) => WaasVerifyApiKeyResponseFromJSON(jsonValue));
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
625
|
+
* Verify if an API key is valid for a specific environment
|
|
626
|
+
*/
|
|
627
|
+
verifyApiKey(requestParameters, initOverrides) {
|
|
628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
629
|
+
const response = yield this.verifyApiKeyRaw(requestParameters, initOverrides);
|
|
630
|
+
return yield response.value();
|
|
631
|
+
});
|
|
632
|
+
}
|
|
595
633
|
}
|
|
596
634
|
|
|
597
635
|
export { WaasApi };
|
package/src/index.cjs
CHANGED
|
@@ -571,6 +571,8 @@ var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
|
|
|
571
571
|
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
572
572
|
var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
|
|
573
573
|
var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
|
|
574
|
+
var WaasVerifyApiKeyErrorResponse = require('./models/WaasVerifyApiKeyErrorResponse.cjs');
|
|
575
|
+
var WaasVerifyApiKeyResponse = require('./models/WaasVerifyApiKeyResponse.cjs');
|
|
574
576
|
var WaasWallet = require('./models/WaasWallet.cjs');
|
|
575
577
|
var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
576
578
|
var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
|
|
@@ -2575,6 +2577,12 @@ exports.WaasPolicyRuleValueLimitToJSON = WaasPolicyRuleValueLimit.WaasPolicyRule
|
|
|
2575
2577
|
exports.WaasPolicyUpdateRequestFromJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSON;
|
|
2576
2578
|
exports.WaasPolicyUpdateRequestFromJSONTyped = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSONTyped;
|
|
2577
2579
|
exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestToJSON;
|
|
2580
|
+
exports.WaasVerifyApiKeyErrorResponseFromJSON = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseFromJSON;
|
|
2581
|
+
exports.WaasVerifyApiKeyErrorResponseFromJSONTyped = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseFromJSONTyped;
|
|
2582
|
+
exports.WaasVerifyApiKeyErrorResponseToJSON = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseToJSON;
|
|
2583
|
+
exports.WaasVerifyApiKeyResponseFromJSON = WaasVerifyApiKeyResponse.WaasVerifyApiKeyResponseFromJSON;
|
|
2584
|
+
exports.WaasVerifyApiKeyResponseFromJSONTyped = WaasVerifyApiKeyResponse.WaasVerifyApiKeyResponseFromJSONTyped;
|
|
2585
|
+
exports.WaasVerifyApiKeyResponseToJSON = WaasVerifyApiKeyResponse.WaasVerifyApiKeyResponseToJSON;
|
|
2578
2586
|
exports.WaasWalletFromJSON = WaasWallet.WaasWalletFromJSON;
|
|
2579
2587
|
exports.WaasWalletFromJSONTyped = WaasWallet.WaasWalletFromJSONTyped;
|
|
2580
2588
|
exports.WaasWalletToJSON = WaasWallet.WaasWalletToJSON;
|
package/src/index.js
CHANGED
|
@@ -567,6 +567,8 @@ export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJS
|
|
|
567
567
|
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
568
568
|
export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
|
|
569
569
|
export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
|
|
570
|
+
export { WaasVerifyApiKeyErrorResponseFromJSON, WaasVerifyApiKeyErrorResponseFromJSONTyped, WaasVerifyApiKeyErrorResponseToJSON } from './models/WaasVerifyApiKeyErrorResponse.js';
|
|
571
|
+
export { WaasVerifyApiKeyResponseFromJSON, WaasVerifyApiKeyResponseFromJSONTyped, WaasVerifyApiKeyResponseToJSON } from './models/WaasVerifyApiKeyResponse.js';
|
|
570
572
|
export { WaasWalletFromJSON, WaasWalletFromJSONTyped, WaasWalletToJSON } from './models/WaasWallet.js';
|
|
571
573
|
export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
|
|
572
574
|
export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* 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
|
+
function WaasVerifyApiKeyErrorResponseFromJSON(json) {
|
|
19
|
+
return WaasVerifyApiKeyErrorResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasVerifyApiKeyErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'message': json['message'],
|
|
27
|
+
'verified': json['verified'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function WaasVerifyApiKeyErrorResponseToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'message': value.message,
|
|
39
|
+
'verified': value.verified,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.WaasVerifyApiKeyErrorResponseFromJSON = WaasVerifyApiKeyErrorResponseFromJSON;
|
|
44
|
+
exports.WaasVerifyApiKeyErrorResponseFromJSONTyped = WaasVerifyApiKeyErrorResponseFromJSONTyped;
|
|
45
|
+
exports.WaasVerifyApiKeyErrorResponseToJSON = WaasVerifyApiKeyErrorResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
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 WaasVerifyApiKeyErrorResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasVerifyApiKeyErrorResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Error message describing why verification failed
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WaasVerifyApiKeyErrorResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Always false for error responses
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WaasVerifyApiKeyErrorResponse
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function WaasVerifyApiKeyErrorResponseFromJSON(json: any): WaasVerifyApiKeyErrorResponse;
|
|
32
|
+
export declare function WaasVerifyApiKeyErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasVerifyApiKeyErrorResponse;
|
|
33
|
+
export declare function WaasVerifyApiKeyErrorResponseToJSON(value?: WaasVerifyApiKeyErrorResponse | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* 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
|
+
function WaasVerifyApiKeyErrorResponseFromJSON(json) {
|
|
15
|
+
return WaasVerifyApiKeyErrorResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasVerifyApiKeyErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'message': json['message'],
|
|
23
|
+
'verified': json['verified'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function WaasVerifyApiKeyErrorResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'message': value.message,
|
|
35
|
+
'verified': value.verified,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { WaasVerifyApiKeyErrorResponseFromJSON, WaasVerifyApiKeyErrorResponseFromJSONTyped, WaasVerifyApiKeyErrorResponseToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* 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
|
+
function WaasVerifyApiKeyResponseFromJSON(json) {
|
|
19
|
+
return WaasVerifyApiKeyResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasVerifyApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'environmentId': json['environmentId'],
|
|
27
|
+
'verified': json['verified'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function WaasVerifyApiKeyResponseToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'environmentId': value.environmentId,
|
|
39
|
+
'verified': value.verified,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.WaasVerifyApiKeyResponseFromJSON = WaasVerifyApiKeyResponseFromJSON;
|
|
44
|
+
exports.WaasVerifyApiKeyResponseFromJSONTyped = WaasVerifyApiKeyResponseFromJSONTyped;
|
|
45
|
+
exports.WaasVerifyApiKeyResponseToJSON = WaasVerifyApiKeyResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
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 WaasVerifyApiKeyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasVerifyApiKeyResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The environment ID for which the API key was verified
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WaasVerifyApiKeyResponse
|
|
22
|
+
*/
|
|
23
|
+
environmentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether the API key is valid and has access to the environment
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WaasVerifyApiKeyResponse
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function WaasVerifyApiKeyResponseFromJSON(json: any): WaasVerifyApiKeyResponse;
|
|
32
|
+
export declare function WaasVerifyApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasVerifyApiKeyResponse;
|
|
33
|
+
export declare function WaasVerifyApiKeyResponseToJSON(value?: WaasVerifyApiKeyResponse | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* 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
|
+
function WaasVerifyApiKeyResponseFromJSON(json) {
|
|
15
|
+
return WaasVerifyApiKeyResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasVerifyApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'environmentId': json['environmentId'],
|
|
23
|
+
'verified': json['verified'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function WaasVerifyApiKeyResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'environmentId': value.environmentId,
|
|
35
|
+
'verified': value.verified,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { WaasVerifyApiKeyResponseFromJSON, WaasVerifyApiKeyResponseFromJSONTyped, WaasVerifyApiKeyResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -530,6 +530,8 @@ export * from './WaasPolicyRule';
|
|
|
530
530
|
export * from './WaasPolicyRuleType';
|
|
531
531
|
export * from './WaasPolicyRuleValueLimit';
|
|
532
532
|
export * from './WaasPolicyUpdateRequest';
|
|
533
|
+
export * from './WaasVerifyApiKeyErrorResponse';
|
|
534
|
+
export * from './WaasVerifyApiKeyResponse';
|
|
533
535
|
export * from './WaasWallet';
|
|
534
536
|
export * from './WaasWalletProperties';
|
|
535
537
|
export * from './WaasWalletResponse';
|