@dynamic-labs/sdk-api 0.0.749 → 0.0.751
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 +62 -0
- package/src/apis/WaasApi.d.ts +24 -1
- package/src/apis/WaasApi.js +62 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/DynamicJwt.cjs +2 -0
- package/src/models/DynamicJwt.d.ts +6 -0
- package/src/models/DynamicJwt.js +2 -0
- package/src/models/MinifiedDynamicJwt.cjs +2 -0
- package/src/models/MinifiedDynamicJwt.d.ts +6 -0
- package/src/models/MinifiedDynamicJwt.js +2 -0
- package/src/models/WaasPolicyResponse.cjs +9 -1
- package/src/models/WaasPolicyResponse.d.ts +25 -1
- package/src/models/WaasPolicyResponse.js +9 -1
- package/src/models/WaasPolicyUpdateRequest.cjs +36 -0
- package/src/models/WaasPolicyUpdateRequest.d.ts +34 -0
- package/src/models/WaasPolicyUpdateRequest.js +30 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -86,6 +86,7 @@ require('../models/WaasPolicyConstraintCondition.cjs');
|
|
|
86
86
|
var WaasPolicyCreateRequest = require('../models/WaasPolicyCreateRequest.cjs');
|
|
87
87
|
var WaasPolicyResponse = require('../models/WaasPolicyResponse.cjs');
|
|
88
88
|
require('../models/WaasPolicyRuleType.cjs');
|
|
89
|
+
var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
|
|
89
90
|
|
|
90
91
|
/* tslint:disable */
|
|
91
92
|
/**
|
|
@@ -196,6 +197,67 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
196
197
|
return yield response.value();
|
|
197
198
|
});
|
|
198
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Get the WAAS policy for an environment
|
|
202
|
+
*/
|
|
203
|
+
getWaasPolicyRaw(requestParameters, initOverrides) {
|
|
204
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
206
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasPolicy.');
|
|
207
|
+
}
|
|
208
|
+
const queryParameters = {};
|
|
209
|
+
const headerParameters = {};
|
|
210
|
+
const response = yield this.request({
|
|
211
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
212
|
+
method: 'GET',
|
|
213
|
+
headers: headerParameters,
|
|
214
|
+
query: queryParameters,
|
|
215
|
+
}, initOverrides);
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyResponse.WaasPolicyResponseFromJSON(jsonValue));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get the WAAS policy for an environment
|
|
221
|
+
*/
|
|
222
|
+
getWaasPolicy(requestParameters, initOverrides) {
|
|
223
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
const response = yield this.getWaasPolicyRaw(requestParameters, initOverrides);
|
|
225
|
+
return yield response.value();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Update the WAAS policy for an environment
|
|
230
|
+
*/
|
|
231
|
+
updateWaasPolicyRaw(requestParameters, initOverrides) {
|
|
232
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
234
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasPolicy.');
|
|
235
|
+
}
|
|
236
|
+
if (requestParameters.waasPolicyUpdateRequest === null || requestParameters.waasPolicyUpdateRequest === undefined) {
|
|
237
|
+
throw new runtime.RequiredError('waasPolicyUpdateRequest', 'Required parameter requestParameters.waasPolicyUpdateRequest was null or undefined when calling updateWaasPolicy.');
|
|
238
|
+
}
|
|
239
|
+
const queryParameters = {};
|
|
240
|
+
const headerParameters = {};
|
|
241
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
242
|
+
const response = yield this.request({
|
|
243
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
244
|
+
method: 'PUT',
|
|
245
|
+
headers: headerParameters,
|
|
246
|
+
query: queryParameters,
|
|
247
|
+
body: WaasPolicyUpdateRequest.WaasPolicyUpdateRequestToJSON(requestParameters.waasPolicyUpdateRequest),
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyResponse.WaasPolicyResponseFromJSON(jsonValue));
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Update the WAAS policy for an environment
|
|
254
|
+
*/
|
|
255
|
+
updateWaasPolicy(requestParameters, initOverrides) {
|
|
256
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const response = yield this.updateWaasPolicyRaw(requestParameters, initOverrides);
|
|
258
|
+
return yield response.value();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
199
261
|
}
|
|
200
262
|
|
|
201
263
|
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 { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyResponse } from '../models';
|
|
13
|
+
import { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -23,6 +23,13 @@ export interface DelegatedSignMessageRequest {
|
|
|
23
23
|
walletId: string;
|
|
24
24
|
waasDelegateSignMessageRequest: WaasDelegateSignMessageRequest;
|
|
25
25
|
}
|
|
26
|
+
export interface GetWaasPolicyRequest {
|
|
27
|
+
environmentId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateWaasPolicyRequest {
|
|
30
|
+
environmentId: string;
|
|
31
|
+
waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
|
|
32
|
+
}
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
*/
|
|
@@ -51,4 +58,20 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
51
58
|
* Sign a message with a delegated waas account
|
|
52
59
|
*/
|
|
53
60
|
delegatedSignMessage(requestParameters: DelegatedSignMessageRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Get the WAAS policy for an environment
|
|
63
|
+
*/
|
|
64
|
+
getWaasPolicyRaw(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the WAAS policy for an environment
|
|
67
|
+
*/
|
|
68
|
+
getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Update the WAAS policy for an environment
|
|
71
|
+
*/
|
|
72
|
+
updateWaasPolicyRaw(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
* Update the WAAS policy for an environment
|
|
75
|
+
*/
|
|
76
|
+
updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
54
77
|
}
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -82,6 +82,7 @@ import '../models/WaasPolicyConstraintCondition.js';
|
|
|
82
82
|
import { WaasPolicyCreateRequestToJSON } from '../models/WaasPolicyCreateRequest.js';
|
|
83
83
|
import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
|
|
84
84
|
import '../models/WaasPolicyRuleType.js';
|
|
85
|
+
import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
|
|
85
86
|
|
|
86
87
|
/* tslint:disable */
|
|
87
88
|
/**
|
|
@@ -192,6 +193,67 @@ class WaasApi extends BaseAPI {
|
|
|
192
193
|
return yield response.value();
|
|
193
194
|
});
|
|
194
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Get the WAAS policy for an environment
|
|
198
|
+
*/
|
|
199
|
+
getWaasPolicyRaw(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
202
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasPolicy.');
|
|
203
|
+
}
|
|
204
|
+
const queryParameters = {};
|
|
205
|
+
const headerParameters = {};
|
|
206
|
+
const response = yield this.request({
|
|
207
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
208
|
+
method: 'GET',
|
|
209
|
+
headers: headerParameters,
|
|
210
|
+
query: queryParameters,
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyResponseFromJSON(jsonValue));
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Get the WAAS policy for an environment
|
|
217
|
+
*/
|
|
218
|
+
getWaasPolicy(requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
const response = yield this.getWaasPolicyRaw(requestParameters, initOverrides);
|
|
221
|
+
return yield response.value();
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Update the WAAS policy for an environment
|
|
226
|
+
*/
|
|
227
|
+
updateWaasPolicyRaw(requestParameters, initOverrides) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
230
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasPolicy.');
|
|
231
|
+
}
|
|
232
|
+
if (requestParameters.waasPolicyUpdateRequest === null || requestParameters.waasPolicyUpdateRequest === undefined) {
|
|
233
|
+
throw new RequiredError('waasPolicyUpdateRequest', 'Required parameter requestParameters.waasPolicyUpdateRequest was null or undefined when calling updateWaasPolicy.');
|
|
234
|
+
}
|
|
235
|
+
const queryParameters = {};
|
|
236
|
+
const headerParameters = {};
|
|
237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
const response = yield this.request({
|
|
239
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
240
|
+
method: 'PUT',
|
|
241
|
+
headers: headerParameters,
|
|
242
|
+
query: queryParameters,
|
|
243
|
+
body: WaasPolicyUpdateRequestToJSON(requestParameters.waasPolicyUpdateRequest),
|
|
244
|
+
}, initOverrides);
|
|
245
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyResponseFromJSON(jsonValue));
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Update the WAAS policy for an environment
|
|
250
|
+
*/
|
|
251
|
+
updateWaasPolicy(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
const response = yield this.updateWaasPolicyRaw(requestParameters, initOverrides);
|
|
254
|
+
return yield response.value();
|
|
255
|
+
});
|
|
256
|
+
}
|
|
195
257
|
}
|
|
196
258
|
|
|
197
259
|
export { WaasApi };
|
package/src/index.cjs
CHANGED
|
@@ -527,6 +527,7 @@ var WaasPolicyResponse = require('./models/WaasPolicyResponse.cjs');
|
|
|
527
527
|
var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
|
|
528
528
|
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
529
529
|
var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
|
|
530
|
+
var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
|
|
530
531
|
var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
531
532
|
var Wallet = require('./models/Wallet.cjs');
|
|
532
533
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
@@ -2362,6 +2363,9 @@ exports.WaasPolicyRuleTypeToJSON = WaasPolicyRuleType.WaasPolicyRuleTypeToJSON;
|
|
|
2362
2363
|
exports.WaasPolicyRuleValueLimitFromJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON;
|
|
2363
2364
|
exports.WaasPolicyRuleValueLimitFromJSONTyped = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSONTyped;
|
|
2364
2365
|
exports.WaasPolicyRuleValueLimitToJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON;
|
|
2366
|
+
exports.WaasPolicyUpdateRequestFromJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSON;
|
|
2367
|
+
exports.WaasPolicyUpdateRequestFromJSONTyped = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSONTyped;
|
|
2368
|
+
exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestToJSON;
|
|
2365
2369
|
exports.WaasWalletPropertiesFromJSON = WaasWalletProperties.WaasWalletPropertiesFromJSON;
|
|
2366
2370
|
exports.WaasWalletPropertiesFromJSONTyped = WaasWalletProperties.WaasWalletPropertiesFromJSONTyped;
|
|
2367
2371
|
exports.WaasWalletPropertiesToJSON = WaasWalletProperties.WaasWalletPropertiesToJSON;
|
package/src/index.js
CHANGED
|
@@ -523,6 +523,7 @@ export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicy
|
|
|
523
523
|
export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJSON } from './models/WaasPolicyRule.js';
|
|
524
524
|
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
525
525
|
export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
|
|
526
|
+
export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
|
|
526
527
|
export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
|
|
527
528
|
export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
|
|
528
529
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
@@ -61,6 +61,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
62
62
|
'verifiedCredentialsHashes': !runtime.exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
|
|
63
63
|
'info': !runtime.exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoFromJSON(json['info']),
|
|
64
|
+
'serverAuth': !runtime.exists(json, 'server_auth') ? undefined : json['server_auth'],
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
function DynamicJwtToJSON(value) {
|
|
@@ -114,6 +115,7 @@ function DynamicJwtToJSON(value) {
|
|
|
114
115
|
'metadata': value.metadata,
|
|
115
116
|
'verifiedCredentialsHashes': JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
|
|
116
117
|
'info': JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoToJSON(value.info),
|
|
118
|
+
'server_auth': value.serverAuth,
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -278,6 +278,12 @@ export interface DynamicJwt {
|
|
|
278
278
|
* @memberof DynamicJwt
|
|
279
279
|
*/
|
|
280
280
|
info?: JwtPayloadDeprecatedInfo;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {boolean}
|
|
284
|
+
* @memberof DynamicJwt
|
|
285
|
+
*/
|
|
286
|
+
serverAuth?: boolean;
|
|
281
287
|
}
|
|
282
288
|
export declare function DynamicJwtFromJSON(json: any): DynamicJwt;
|
|
283
289
|
export declare function DynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): DynamicJwt;
|
package/src/models/DynamicJwt.js
CHANGED
|
@@ -57,6 +57,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
58
58
|
'verifiedCredentialsHashes': !exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
|
|
59
59
|
'info': !exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfoFromJSON(json['info']),
|
|
60
|
+
'serverAuth': !exists(json, 'server_auth') ? undefined : json['server_auth'],
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
function DynamicJwtToJSON(value) {
|
|
@@ -110,6 +111,7 @@ function DynamicJwtToJSON(value) {
|
|
|
110
111
|
'metadata': value.metadata,
|
|
111
112
|
'verifiedCredentialsHashes': JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
|
|
112
113
|
'info': JwtPayloadDeprecatedInfoToJSON(value.info),
|
|
114
|
+
'server_auth': value.serverAuth,
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
117
|
|
|
@@ -28,6 +28,7 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'verifiedCredentialsHashes': !runtime.exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
|
|
29
29
|
'email': !runtime.exists(json, 'email') ? undefined : json['email'],
|
|
30
30
|
'username': !runtime.exists(json, 'username') ? undefined : json['username'],
|
|
31
|
+
'serverAuth': !runtime.exists(json, 'server_auth') ? undefined : json['server_auth'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
function MinifiedDynamicJwtToJSON(value) {
|
|
@@ -52,6 +53,7 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
52
53
|
'verifiedCredentialsHashes': JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
|
|
53
54
|
'email': value.email,
|
|
54
55
|
'username': value.username,
|
|
56
|
+
'server_auth': value.serverAuth,
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -100,6 +100,12 @@ export interface MinifiedDynamicJwt {
|
|
|
100
100
|
* @memberof MinifiedDynamicJwt
|
|
101
101
|
*/
|
|
102
102
|
username?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof MinifiedDynamicJwt
|
|
107
|
+
*/
|
|
108
|
+
serverAuth?: boolean;
|
|
103
109
|
}
|
|
104
110
|
export declare function MinifiedDynamicJwtFromJSON(json: any): MinifiedDynamicJwt;
|
|
105
111
|
export declare function MinifiedDynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinifiedDynamicJwt;
|
|
@@ -24,6 +24,7 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
'verifiedCredentialsHashes': !exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
|
|
25
25
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
26
26
|
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
27
|
+
'serverAuth': !exists(json, 'server_auth') ? undefined : json['server_auth'],
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
function MinifiedDynamicJwtToJSON(value) {
|
|
@@ -48,6 +49,7 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
48
49
|
'verifiedCredentialsHashes': JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
|
|
49
50
|
'email': value.email,
|
|
50
51
|
'username': value.username,
|
|
52
|
+
'server_auth': value.serverAuth,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -13,7 +13,11 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'policyId':
|
|
16
|
+
'policyId': json['policyId'],
|
|
17
|
+
'policyName': json['policyName'],
|
|
18
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
19
|
+
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
20
|
+
'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
17
21
|
};
|
|
18
22
|
}
|
|
19
23
|
function WaasPolicyResponseToJSON(value) {
|
|
@@ -25,6 +29,10 @@ function WaasPolicyResponseToJSON(value) {
|
|
|
25
29
|
}
|
|
26
30
|
return {
|
|
27
31
|
'policyId': value.policyId,
|
|
32
|
+
'policyName': value.policyName,
|
|
33
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
34
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
35
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
28
36
|
};
|
|
29
37
|
}
|
|
30
38
|
|
|
@@ -20,7 +20,31 @@ export interface WaasPolicyResponse {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof WaasPolicyResponse
|
|
22
22
|
*/
|
|
23
|
-
policyId
|
|
23
|
+
policyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WaasPolicyResponse
|
|
28
|
+
*/
|
|
29
|
+
policyName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WaasPolicyResponse
|
|
34
|
+
*/
|
|
35
|
+
projectEnvironmentId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof WaasPolicyResponse
|
|
40
|
+
*/
|
|
41
|
+
createdAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof WaasPolicyResponse
|
|
46
|
+
*/
|
|
47
|
+
updatedAt?: Date;
|
|
24
48
|
}
|
|
25
49
|
export declare function WaasPolicyResponseFromJSON(json: any): WaasPolicyResponse;
|
|
26
50
|
export declare function WaasPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyResponse;
|
|
@@ -9,7 +9,11 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'policyId':
|
|
12
|
+
'policyId': json['policyId'],
|
|
13
|
+
'policyName': json['policyName'],
|
|
14
|
+
'projectEnvironmentId': json['projectEnvironmentId'],
|
|
15
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
16
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
13
17
|
};
|
|
14
18
|
}
|
|
15
19
|
function WaasPolicyResponseToJSON(value) {
|
|
@@ -21,6 +25,10 @@ function WaasPolicyResponseToJSON(value) {
|
|
|
21
25
|
}
|
|
22
26
|
return {
|
|
23
27
|
'policyId': value.policyId,
|
|
28
|
+
'policyName': value.policyName,
|
|
29
|
+
'projectEnvironmentId': value.projectEnvironmentId,
|
|
30
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
31
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
34
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasPolicyUpdateRequestFromJSON(json) {
|
|
10
|
+
return WaasPolicyUpdateRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'policyName': !runtime.exists(json, 'policyName') ? undefined : json['policyName'],
|
|
18
|
+
'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WaasPolicyUpdateRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'policyName': value.policyName,
|
|
30
|
+
'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.WaasPolicyUpdateRequestFromJSON = WaasPolicyUpdateRequestFromJSON;
|
|
35
|
+
exports.WaasPolicyUpdateRequestFromJSONTyped = WaasPolicyUpdateRequestFromJSONTyped;
|
|
36
|
+
exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequestToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasPolicyUpdateRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasPolicyUpdateRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Human-readable name for the policy
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WaasPolicyUpdateRequest
|
|
23
|
+
*/
|
|
24
|
+
policyName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Array of rules defining the policy permissions
|
|
27
|
+
* @type {Array<WaasPolicyRule>}
|
|
28
|
+
* @memberof WaasPolicyUpdateRequest
|
|
29
|
+
*/
|
|
30
|
+
policyContent: Array<WaasPolicyRule>;
|
|
31
|
+
}
|
|
32
|
+
export declare function WaasPolicyUpdateRequestFromJSON(json: any): WaasPolicyUpdateRequest;
|
|
33
|
+
export declare function WaasPolicyUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyUpdateRequest;
|
|
34
|
+
export declare function WaasPolicyUpdateRequestToJSON(value?: WaasPolicyUpdateRequest | null): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasPolicyUpdateRequestFromJSON(json) {
|
|
6
|
+
return WaasPolicyUpdateRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'policyName': !exists(json, 'policyName') ? undefined : json['policyName'],
|
|
14
|
+
'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function WaasPolicyUpdateRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'policyName': value.policyName,
|
|
26
|
+
'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -486,6 +486,7 @@ export * from './WaasPolicyResponse';
|
|
|
486
486
|
export * from './WaasPolicyRule';
|
|
487
487
|
export * from './WaasPolicyRuleType';
|
|
488
488
|
export * from './WaasPolicyRuleValueLimit';
|
|
489
|
+
export * from './WaasPolicyUpdateRequest';
|
|
489
490
|
export * from './WaasWalletProperties';
|
|
490
491
|
export * from './Wallet';
|
|
491
492
|
export * from './WalletAdditionalAddress';
|