@dynamic-labs/sdk-api 0.0.730 → 0.0.731
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/AllowlistsApi.cjs +2 -0
- package/src/apis/AllowlistsApi.js +2 -0
- package/src/apis/AnalyticsApi.cjs +2 -0
- package/src/apis/AnalyticsApi.js +2 -0
- package/src/apis/ChainalysisApi.cjs +2 -0
- package/src/apis/ChainalysisApi.js +2 -0
- package/src/apis/ChainsApi.cjs +2 -0
- package/src/apis/ChainsApi.js +2 -0
- package/src/apis/CustomFieldsApi.cjs +2 -0
- package/src/apis/CustomFieldsApi.js +2 -0
- package/src/apis/CustomHostnamesApi.cjs +2 -0
- package/src/apis/CustomHostnamesApi.js +2 -0
- package/src/apis/CustomNetworksApi.cjs +2 -0
- package/src/apis/CustomNetworksApi.js +2 -0
- package/src/apis/DeeplinkUrlsApi.cjs +2 -0
- package/src/apis/DeeplinkUrlsApi.js +2 -0
- package/src/apis/EnvironmentsApi.cjs +2 -0
- package/src/apis/EnvironmentsApi.js +2 -0
- package/src/apis/EventsApi.cjs +2 -0
- package/src/apis/EventsApi.js +2 -0
- package/src/apis/ExportsApi.cjs +2 -0
- package/src/apis/ExportsApi.js +2 -0
- package/src/apis/ExternalJwtApi.cjs +2 -0
- package/src/apis/ExternalJwtApi.js +2 -0
- package/src/apis/GatesApi.cjs +2 -0
- package/src/apis/GatesApi.js +2 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
- package/src/apis/GlobalWalletAccessControlApi.js +2 -0
- package/src/apis/GlobalWalletsApi.cjs +2 -0
- package/src/apis/GlobalWalletsApi.js +2 -0
- package/src/apis/InvitesApi.cjs +2 -0
- package/src/apis/InvitesApi.js +2 -0
- package/src/apis/MembersApi.cjs +2 -0
- package/src/apis/MembersApi.js +2 -0
- package/src/apis/MfaSettingsApi.cjs +2 -0
- package/src/apis/MfaSettingsApi.js +2 -0
- package/src/apis/NameServicesApi.cjs +2 -0
- package/src/apis/NameServicesApi.js +2 -0
- package/src/apis/OrganizationsApi.cjs +2 -0
- package/src/apis/OrganizationsApi.js +2 -0
- package/src/apis/OriginsApi.cjs +2 -0
- package/src/apis/OriginsApi.js +2 -0
- package/src/apis/ProjectsApi.cjs +2 -0
- package/src/apis/ProjectsApi.js +2 -0
- package/src/apis/SDKApi.cjs +2 -0
- package/src/apis/SDKApi.js +2 -0
- package/src/apis/SDKViewsApi.cjs +2 -0
- package/src/apis/SDKViewsApi.js +2 -0
- package/src/apis/SessionsApi.cjs +2 -0
- package/src/apis/SessionsApi.js +2 -0
- package/src/apis/SettingsApi.cjs +2 -0
- package/src/apis/SettingsApi.js +2 -0
- package/src/apis/TestAccountApi.cjs +2 -0
- package/src/apis/TestAccountApi.js +2 -0
- package/src/apis/TokensApi.cjs +2 -0
- package/src/apis/TokensApi.js +2 -0
- package/src/apis/UserApiTokensApi.cjs +2 -0
- package/src/apis/UserApiTokensApi.js +2 -0
- package/src/apis/UsersApi.cjs +2 -0
- package/src/apis/UsersApi.js +2 -0
- package/src/apis/VisitsApi.cjs +2 -0
- package/src/apis/VisitsApi.js +2 -0
- package/src/apis/WaasApi.cjs +37 -0
- package/src/apis/WaasApi.d.ts +13 -1
- package/src/apis/WaasApi.js +37 -0
- package/src/apis/WalletsApi.cjs +2 -0
- package/src/apis/WalletsApi.js +2 -0
- package/src/apis/WebhooksApi.cjs +2 -0
- package/src/apis/WebhooksApi.js +2 -0
- package/src/index.cjs +36 -0
- package/src/index.js +7 -0
- package/src/models/WaasPolicyArgumentConstraint.cjs +37 -0
- package/src/models/WaasPolicyArgumentConstraint.d.ts +40 -0
- package/src/models/WaasPolicyArgumentConstraint.js +31 -0
- package/src/models/WaasPolicyConstraintCondition.cjs +44 -0
- package/src/models/WaasPolicyConstraintCondition.d.ts +27 -0
- package/src/models/WaasPolicyConstraintCondition.js +38 -0
- package/src/models/WaasPolicyCreateRequest.cjs +38 -0
- package/src/models/WaasPolicyCreateRequest.d.ts +41 -0
- package/src/models/WaasPolicyCreateRequest.js +32 -0
- package/src/models/WaasPolicyResponse.cjs +33 -0
- package/src/models/WaasPolicyResponse.d.ts +27 -0
- package/src/models/WaasPolicyResponse.js +27 -0
- package/src/models/WaasPolicyRule.cjs +46 -0
- package/src/models/WaasPolicyRule.d.ts +60 -0
- package/src/models/WaasPolicyRule.js +40 -0
- package/src/models/WaasPolicyRuleType.cjs +40 -0
- package/src/models/WaasPolicyRuleType.d.ts +23 -0
- package/src/models/WaasPolicyRuleType.js +34 -0
- package/src/models/WaasPolicyRuleValueLimit.cjs +37 -0
- package/src/models/WaasPolicyRuleValueLimit.d.ts +39 -0
- package/src/models/WaasPolicyRuleValueLimit.js +31 -0
- package/src/models/index.d.ts +7 -0
package/src/apis/VisitsApi.cjs
CHANGED
|
@@ -79,6 +79,8 @@ require('../models/UserFieldsCheckEnum.cjs');
|
|
|
79
79
|
require('../models/UserFilterableFieldsEnum.cjs');
|
|
80
80
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
81
81
|
var VisitorsResponse = require('../models/VisitorsResponse.cjs');
|
|
82
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
83
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
82
84
|
|
|
83
85
|
/* tslint:disable */
|
|
84
86
|
/**
|
package/src/apis/VisitsApi.js
CHANGED
|
@@ -75,6 +75,8 @@ import '../models/UserFieldsCheckEnum.js';
|
|
|
75
75
|
import '../models/UserFilterableFieldsEnum.js';
|
|
76
76
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
77
77
|
import { VisitorsResponseFromJSON } from '../models/VisitorsResponse.js';
|
|
78
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
79
|
+
import '../models/WaasPolicyRuleType.js';
|
|
78
80
|
|
|
79
81
|
/* tslint:disable */
|
|
80
82
|
/**
|
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -81,6 +81,10 @@ require('../models/UserFilterableFieldsEnum.cjs');
|
|
|
81
81
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
82
82
|
var WaasAuthenticateResponse = require('../models/WaasAuthenticateResponse.cjs');
|
|
83
83
|
var WaasDelegateSignMessageRequest = require('../models/WaasDelegateSignMessageRequest.cjs');
|
|
84
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
85
|
+
var WaasPolicyCreateRequest = require('../models/WaasPolicyCreateRequest.cjs');
|
|
86
|
+
var WaasPolicyResponse = require('../models/WaasPolicyResponse.cjs');
|
|
87
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
84
88
|
|
|
85
89
|
/* tslint:disable */
|
|
86
90
|
/**
|
|
@@ -122,6 +126,39 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
122
126
|
return yield response.value();
|
|
123
127
|
});
|
|
124
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Create a new WAAS policy for an environment
|
|
131
|
+
*/
|
|
132
|
+
createWaasPolicyRaw(requestParameters, initOverrides) {
|
|
133
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
135
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasPolicy.');
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters.waasPolicyCreateRequest === null || requestParameters.waasPolicyCreateRequest === undefined) {
|
|
138
|
+
throw new runtime.RequiredError('waasPolicyCreateRequest', 'Required parameter requestParameters.waasPolicyCreateRequest was null or undefined when calling createWaasPolicy.');
|
|
139
|
+
}
|
|
140
|
+
const queryParameters = {};
|
|
141
|
+
const headerParameters = {};
|
|
142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
143
|
+
const response = yield this.request({
|
|
144
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: WaasPolicyCreateRequest.WaasPolicyCreateRequestToJSON(requestParameters.waasPolicyCreateRequest),
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyResponse.WaasPolicyResponseFromJSON(jsonValue));
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Create a new WAAS policy for an environment
|
|
155
|
+
*/
|
|
156
|
+
createWaasPolicy(requestParameters, initOverrides) {
|
|
157
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
const response = yield this.createWaasPolicyRaw(requestParameters, initOverrides);
|
|
159
|
+
return yield response.value();
|
|
160
|
+
});
|
|
161
|
+
}
|
|
125
162
|
/**
|
|
126
163
|
* Sign a message with a delegated waas account
|
|
127
164
|
*/
|
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest } from '../models';
|
|
13
|
+
import { OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyResponse } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface CreateWaasPolicyRequest {
|
|
18
|
+
environmentId: string;
|
|
19
|
+
waasPolicyCreateRequest: WaasPolicyCreateRequest;
|
|
20
|
+
}
|
|
17
21
|
export interface DelegatedSignMessageRequest {
|
|
18
22
|
environmentId: string;
|
|
19
23
|
walletId: string;
|
|
@@ -31,6 +35,14 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
31
35
|
* Authenticate for WAAS using api key
|
|
32
36
|
*/
|
|
33
37
|
authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<WaasAuthenticateResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a new WAAS policy for an environment
|
|
40
|
+
*/
|
|
41
|
+
createWaasPolicyRaw(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyResponse>>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a new WAAS policy for an environment
|
|
44
|
+
*/
|
|
45
|
+
createWaasPolicy(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
34
46
|
/**
|
|
35
47
|
* Sign a message with a delegated waas account
|
|
36
48
|
*/
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -77,6 +77,10 @@ import '../models/UserFilterableFieldsEnum.js';
|
|
|
77
77
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
78
78
|
import { WaasAuthenticateResponseFromJSON } from '../models/WaasAuthenticateResponse.js';
|
|
79
79
|
import { WaasDelegateSignMessageRequestToJSON } from '../models/WaasDelegateSignMessageRequest.js';
|
|
80
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
81
|
+
import { WaasPolicyCreateRequestToJSON } from '../models/WaasPolicyCreateRequest.js';
|
|
82
|
+
import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
|
|
83
|
+
import '../models/WaasPolicyRuleType.js';
|
|
80
84
|
|
|
81
85
|
/* tslint:disable */
|
|
82
86
|
/**
|
|
@@ -118,6 +122,39 @@ class WaasApi extends BaseAPI {
|
|
|
118
122
|
return yield response.value();
|
|
119
123
|
});
|
|
120
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Create a new WAAS policy for an environment
|
|
127
|
+
*/
|
|
128
|
+
createWaasPolicyRaw(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
131
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasPolicy.');
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters.waasPolicyCreateRequest === null || requestParameters.waasPolicyCreateRequest === undefined) {
|
|
134
|
+
throw new RequiredError('waasPolicyCreateRequest', 'Required parameter requestParameters.waasPolicyCreateRequest was null or undefined when calling createWaasPolicy.');
|
|
135
|
+
}
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
const response = yield this.request({
|
|
140
|
+
path: `/environments/{environmentId}/waas/policies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: WaasPolicyCreateRequestToJSON(requestParameters.waasPolicyCreateRequest),
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyResponseFromJSON(jsonValue));
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Create a new WAAS policy for an environment
|
|
151
|
+
*/
|
|
152
|
+
createWaasPolicy(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const response = yield this.createWaasPolicyRaw(requestParameters, initOverrides);
|
|
155
|
+
return yield response.value();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
121
158
|
/**
|
|
122
159
|
* Sign a message with a delegated waas account
|
|
123
160
|
*/
|
package/src/apis/WalletsApi.cjs
CHANGED
|
@@ -84,6 +84,8 @@ require('../models/UserIdentifierTypeEnum.cjs');
|
|
|
84
84
|
var UserResponse = require('../models/UserResponse.cjs');
|
|
85
85
|
var UserWalletsResponse = require('../models/UserWalletsResponse.cjs');
|
|
86
86
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
87
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
88
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
87
89
|
|
|
88
90
|
/* tslint:disable */
|
|
89
91
|
/**
|
package/src/apis/WalletsApi.js
CHANGED
|
@@ -80,6 +80,8 @@ import '../models/UserIdentifierTypeEnum.js';
|
|
|
80
80
|
import { UserResponseFromJSON } from '../models/UserResponse.js';
|
|
81
81
|
import { UserWalletsResponseFromJSON } from '../models/UserWalletsResponse.js';
|
|
82
82
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
83
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
84
|
+
import '../models/WaasPolicyRuleType.js';
|
|
83
85
|
|
|
84
86
|
/* tslint:disable */
|
|
85
87
|
/**
|
package/src/apis/WebhooksApi.cjs
CHANGED
|
@@ -78,6 +78,8 @@ require('../models/SubscriptionFreeScopeEnum.cjs');
|
|
|
78
78
|
require('../models/UserFieldsCheckEnum.cjs');
|
|
79
79
|
require('../models/UserFilterableFieldsEnum.cjs');
|
|
80
80
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
81
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
82
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
81
83
|
var Webhook = require('../models/Webhook.cjs');
|
|
82
84
|
var WebhookCreateRequest = require('../models/WebhookCreateRequest.cjs');
|
|
83
85
|
var WebhookMessageRedeliveryResponse = require('../models/WebhookMessageRedeliveryResponse.cjs');
|
package/src/apis/WebhooksApi.js
CHANGED
|
@@ -74,6 +74,8 @@ import '../models/SubscriptionFreeScopeEnum.js';
|
|
|
74
74
|
import '../models/UserFieldsCheckEnum.js';
|
|
75
75
|
import '../models/UserFilterableFieldsEnum.js';
|
|
76
76
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
77
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
78
|
+
import '../models/WaasPolicyRuleType.js';
|
|
77
79
|
import { WebhookFromJSON } from '../models/Webhook.js';
|
|
78
80
|
import { WebhookCreateRequestToJSON } from '../models/WebhookCreateRequest.js';
|
|
79
81
|
import { WebhookMessageRedeliveryResponseFromJSON } from '../models/WebhookMessageRedeliveryResponse.js';
|
package/src/index.cjs
CHANGED
|
@@ -507,6 +507,13 @@ var WaasAuthenticateResponseEncodedJwts = require('./models/WaasAuthenticateResp
|
|
|
507
507
|
var WaasBackupOptionsEnum = require('./models/WaasBackupOptionsEnum.cjs');
|
|
508
508
|
var WaasChainEnum = require('./models/WaasChainEnum.cjs');
|
|
509
509
|
var WaasDelegateSignMessageRequest = require('./models/WaasDelegateSignMessageRequest.cjs');
|
|
510
|
+
var WaasPolicyArgumentConstraint = require('./models/WaasPolicyArgumentConstraint.cjs');
|
|
511
|
+
var WaasPolicyConstraintCondition = require('./models/WaasPolicyConstraintCondition.cjs');
|
|
512
|
+
var WaasPolicyCreateRequest = require('./models/WaasPolicyCreateRequest.cjs');
|
|
513
|
+
var WaasPolicyResponse = require('./models/WaasPolicyResponse.cjs');
|
|
514
|
+
var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
|
|
515
|
+
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
516
|
+
var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
|
|
510
517
|
var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
511
518
|
var Wallet = require('./models/Wallet.cjs');
|
|
512
519
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
@@ -2268,6 +2275,35 @@ exports.WaasChainEnumToJSON = WaasChainEnum.WaasChainEnumToJSON;
|
|
|
2268
2275
|
exports.WaasDelegateSignMessageRequestFromJSON = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestFromJSON;
|
|
2269
2276
|
exports.WaasDelegateSignMessageRequestFromJSONTyped = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestFromJSONTyped;
|
|
2270
2277
|
exports.WaasDelegateSignMessageRequestToJSON = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestToJSON;
|
|
2278
|
+
exports.WaasPolicyArgumentConstraintFromJSON = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON;
|
|
2279
|
+
exports.WaasPolicyArgumentConstraintFromJSONTyped = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSONTyped;
|
|
2280
|
+
exports.WaasPolicyArgumentConstraintToJSON = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON;
|
|
2281
|
+
Object.defineProperty(exports, 'WaasPolicyConstraintCondition', {
|
|
2282
|
+
enumerable: true,
|
|
2283
|
+
get: function () { return WaasPolicyConstraintCondition.WaasPolicyConstraintCondition; }
|
|
2284
|
+
});
|
|
2285
|
+
exports.WaasPolicyConstraintConditionFromJSON = WaasPolicyConstraintCondition.WaasPolicyConstraintConditionFromJSON;
|
|
2286
|
+
exports.WaasPolicyConstraintConditionFromJSONTyped = WaasPolicyConstraintCondition.WaasPolicyConstraintConditionFromJSONTyped;
|
|
2287
|
+
exports.WaasPolicyConstraintConditionToJSON = WaasPolicyConstraintCondition.WaasPolicyConstraintConditionToJSON;
|
|
2288
|
+
exports.WaasPolicyCreateRequestFromJSON = WaasPolicyCreateRequest.WaasPolicyCreateRequestFromJSON;
|
|
2289
|
+
exports.WaasPolicyCreateRequestFromJSONTyped = WaasPolicyCreateRequest.WaasPolicyCreateRequestFromJSONTyped;
|
|
2290
|
+
exports.WaasPolicyCreateRequestToJSON = WaasPolicyCreateRequest.WaasPolicyCreateRequestToJSON;
|
|
2291
|
+
exports.WaasPolicyResponseFromJSON = WaasPolicyResponse.WaasPolicyResponseFromJSON;
|
|
2292
|
+
exports.WaasPolicyResponseFromJSONTyped = WaasPolicyResponse.WaasPolicyResponseFromJSONTyped;
|
|
2293
|
+
exports.WaasPolicyResponseToJSON = WaasPolicyResponse.WaasPolicyResponseToJSON;
|
|
2294
|
+
exports.WaasPolicyRuleFromJSON = WaasPolicyRule.WaasPolicyRuleFromJSON;
|
|
2295
|
+
exports.WaasPolicyRuleFromJSONTyped = WaasPolicyRule.WaasPolicyRuleFromJSONTyped;
|
|
2296
|
+
exports.WaasPolicyRuleToJSON = WaasPolicyRule.WaasPolicyRuleToJSON;
|
|
2297
|
+
Object.defineProperty(exports, 'WaasPolicyRuleType', {
|
|
2298
|
+
enumerable: true,
|
|
2299
|
+
get: function () { return WaasPolicyRuleType.WaasPolicyRuleType; }
|
|
2300
|
+
});
|
|
2301
|
+
exports.WaasPolicyRuleTypeFromJSON = WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON;
|
|
2302
|
+
exports.WaasPolicyRuleTypeFromJSONTyped = WaasPolicyRuleType.WaasPolicyRuleTypeFromJSONTyped;
|
|
2303
|
+
exports.WaasPolicyRuleTypeToJSON = WaasPolicyRuleType.WaasPolicyRuleTypeToJSON;
|
|
2304
|
+
exports.WaasPolicyRuleValueLimitFromJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON;
|
|
2305
|
+
exports.WaasPolicyRuleValueLimitFromJSONTyped = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSONTyped;
|
|
2306
|
+
exports.WaasPolicyRuleValueLimitToJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON;
|
|
2271
2307
|
exports.WaasWalletPropertiesFromJSON = WaasWalletProperties.WaasWalletPropertiesFromJSON;
|
|
2272
2308
|
exports.WaasWalletPropertiesFromJSONTyped = WaasWalletProperties.WaasWalletPropertiesFromJSONTyped;
|
|
2273
2309
|
exports.WaasWalletPropertiesToJSON = WaasWalletProperties.WaasWalletPropertiesToJSON;
|
package/src/index.js
CHANGED
|
@@ -503,6 +503,13 @@ export { WaasAuthenticateResponseEncodedJwtsFromJSON, WaasAuthenticateResponseEn
|
|
|
503
503
|
export { WaasBackupOptionsEnum, WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumFromJSONTyped, WaasBackupOptionsEnumToJSON } from './models/WaasBackupOptionsEnum.js';
|
|
504
504
|
export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
|
|
505
505
|
export { WaasDelegateSignMessageRequestFromJSON, WaasDelegateSignMessageRequestFromJSONTyped, WaasDelegateSignMessageRequestToJSON } from './models/WaasDelegateSignMessageRequest.js';
|
|
506
|
+
export { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintFromJSONTyped, WaasPolicyArgumentConstraintToJSON } from './models/WaasPolicyArgumentConstraint.js';
|
|
507
|
+
export { WaasPolicyConstraintCondition, WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionFromJSONTyped, WaasPolicyConstraintConditionToJSON } from './models/WaasPolicyConstraintCondition.js';
|
|
508
|
+
export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped, WaasPolicyCreateRequestToJSON } from './models/WaasPolicyCreateRequest.js';
|
|
509
|
+
export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicyResponseToJSON } from './models/WaasPolicyResponse.js';
|
|
510
|
+
export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJSON } from './models/WaasPolicyRule.js';
|
|
511
|
+
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
512
|
+
export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
|
|
506
513
|
export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
|
|
507
514
|
export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
|
|
508
515
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WaasPolicyConstraintCondition = require('./WaasPolicyConstraintCondition.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasPolicyArgumentConstraintFromJSON(json) {
|
|
9
|
+
return WaasPolicyArgumentConstraintFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasPolicyArgumentConstraintFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'operator': WaasPolicyConstraintCondition.WaasPolicyConstraintConditionFromJSON(json['operator']),
|
|
17
|
+
'value': json['value'],
|
|
18
|
+
'index': json['index'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WaasPolicyArgumentConstraintToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'operator': WaasPolicyConstraintCondition.WaasPolicyConstraintConditionToJSON(value.operator),
|
|
30
|
+
'value': value.value,
|
|
31
|
+
'index': value.index,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.WaasPolicyArgumentConstraintFromJSON = WaasPolicyArgumentConstraintFromJSON;
|
|
36
|
+
exports.WaasPolicyArgumentConstraintFromJSONTyped = WaasPolicyArgumentConstraintFromJSONTyped;
|
|
37
|
+
exports.WaasPolicyArgumentConstraintToJSON = WaasPolicyArgumentConstraintToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { WaasPolicyConstraintCondition } from './WaasPolicyConstraintCondition';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasPolicyArgumentConstraint
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasPolicyArgumentConstraint {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {WaasPolicyConstraintCondition}
|
|
22
|
+
* @memberof WaasPolicyArgumentConstraint
|
|
23
|
+
*/
|
|
24
|
+
operator: WaasPolicyConstraintCondition;
|
|
25
|
+
/**
|
|
26
|
+
* Reference value for comparison
|
|
27
|
+
* @type {any}
|
|
28
|
+
* @memberof WaasPolicyArgumentConstraint
|
|
29
|
+
*/
|
|
30
|
+
value: any | null;
|
|
31
|
+
/**
|
|
32
|
+
* Index of the function argument to validate
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof WaasPolicyArgumentConstraint
|
|
35
|
+
*/
|
|
36
|
+
index: number;
|
|
37
|
+
}
|
|
38
|
+
export declare function WaasPolicyArgumentConstraintFromJSON(json: any): WaasPolicyArgumentConstraint;
|
|
39
|
+
export declare function WaasPolicyArgumentConstraintFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyArgumentConstraint;
|
|
40
|
+
export declare function WaasPolicyArgumentConstraintToJSON(value?: WaasPolicyArgumentConstraint | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionToJSON } from './WaasPolicyConstraintCondition.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WaasPolicyArgumentConstraintFromJSON(json) {
|
|
5
|
+
return WaasPolicyArgumentConstraintFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WaasPolicyArgumentConstraintFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'operator': WaasPolicyConstraintConditionFromJSON(json['operator']),
|
|
13
|
+
'value': json['value'],
|
|
14
|
+
'index': json['index'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function WaasPolicyArgumentConstraintToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'operator': WaasPolicyConstraintConditionToJSON(value.operator),
|
|
26
|
+
'value': value.value,
|
|
27
|
+
'index': value.index,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintFromJSONTyped, WaasPolicyArgumentConstraintToJSON };
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* Comparison operator for argument validation
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.WaasPolicyConstraintCondition = void 0;
|
|
24
|
+
(function (WaasPolicyConstraintCondition) {
|
|
25
|
+
WaasPolicyConstraintCondition["Equal"] = "equal";
|
|
26
|
+
WaasPolicyConstraintCondition["Greater"] = "greater";
|
|
27
|
+
WaasPolicyConstraintCondition["Less"] = "less";
|
|
28
|
+
WaasPolicyConstraintCondition["GreaterEqual"] = "greaterEqual";
|
|
29
|
+
WaasPolicyConstraintCondition["LessEqual"] = "lessEqual";
|
|
30
|
+
WaasPolicyConstraintCondition["NotEqual"] = "notEqual";
|
|
31
|
+
})(exports.WaasPolicyConstraintCondition || (exports.WaasPolicyConstraintCondition = {}));
|
|
32
|
+
function WaasPolicyConstraintConditionFromJSON(json) {
|
|
33
|
+
return WaasPolicyConstraintConditionFromJSONTyped(json);
|
|
34
|
+
}
|
|
35
|
+
function WaasPolicyConstraintConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
function WaasPolicyConstraintConditionToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.WaasPolicyConstraintConditionFromJSON = WaasPolicyConstraintConditionFromJSON;
|
|
43
|
+
exports.WaasPolicyConstraintConditionFromJSONTyped = WaasPolicyConstraintConditionFromJSONTyped;
|
|
44
|
+
exports.WaasPolicyConstraintConditionToJSON = WaasPolicyConstraintConditionToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Comparison operator for argument validation
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum WaasPolicyConstraintCondition {
|
|
18
|
+
Equal = "equal",
|
|
19
|
+
Greater = "greater",
|
|
20
|
+
Less = "less",
|
|
21
|
+
GreaterEqual = "greaterEqual",
|
|
22
|
+
LessEqual = "lessEqual",
|
|
23
|
+
NotEqual = "notEqual"
|
|
24
|
+
}
|
|
25
|
+
export declare function WaasPolicyConstraintConditionFromJSON(json: any): WaasPolicyConstraintCondition;
|
|
26
|
+
export declare function WaasPolicyConstraintConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyConstraintCondition;
|
|
27
|
+
export declare function WaasPolicyConstraintConditionToJSON(value?: WaasPolicyConstraintCondition | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Comparison operator for argument validation
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var WaasPolicyConstraintCondition;
|
|
20
|
+
(function (WaasPolicyConstraintCondition) {
|
|
21
|
+
WaasPolicyConstraintCondition["Equal"] = "equal";
|
|
22
|
+
WaasPolicyConstraintCondition["Greater"] = "greater";
|
|
23
|
+
WaasPolicyConstraintCondition["Less"] = "less";
|
|
24
|
+
WaasPolicyConstraintCondition["GreaterEqual"] = "greaterEqual";
|
|
25
|
+
WaasPolicyConstraintCondition["LessEqual"] = "lessEqual";
|
|
26
|
+
WaasPolicyConstraintCondition["NotEqual"] = "notEqual";
|
|
27
|
+
})(WaasPolicyConstraintCondition || (WaasPolicyConstraintCondition = {}));
|
|
28
|
+
function WaasPolicyConstraintConditionFromJSON(json) {
|
|
29
|
+
return WaasPolicyConstraintConditionFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function WaasPolicyConstraintConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function WaasPolicyConstraintConditionToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { WaasPolicyConstraintCondition, WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionFromJSONTyped, WaasPolicyConstraintConditionToJSON };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasPolicyCreateRequestFromJSON(json) {
|
|
10
|
+
return WaasPolicyCreateRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'policyName': json['policyName'],
|
|
18
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
19
|
+
'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasPolicyCreateRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'policyName': value.policyName,
|
|
31
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
32
|
+
'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.WaasPolicyCreateRequestFromJSON = WaasPolicyCreateRequestFromJSON;
|
|
37
|
+
exports.WaasPolicyCreateRequestFromJSONTyped = WaasPolicyCreateRequestFromJSONTyped;
|
|
38
|
+
exports.WaasPolicyCreateRequestToJSON = WaasPolicyCreateRequestToJSON;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WaasPolicyCreateRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface WaasPolicyCreateRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable name for the policy
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WaasPolicyCreateRequest
|
|
24
|
+
*/
|
|
25
|
+
policyName: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ChainEnum}
|
|
29
|
+
* @memberof WaasPolicyCreateRequest
|
|
30
|
+
*/
|
|
31
|
+
chain: ChainEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Array of rules defining the policy permissions
|
|
34
|
+
* @type {Array<WaasPolicyRule>}
|
|
35
|
+
* @memberof WaasPolicyCreateRequest
|
|
36
|
+
*/
|
|
37
|
+
policyContent: Array<WaasPolicyRule>;
|
|
38
|
+
}
|
|
39
|
+
export declare function WaasPolicyCreateRequestFromJSON(json: any): WaasPolicyCreateRequest;
|
|
40
|
+
export declare function WaasPolicyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyCreateRequest;
|
|
41
|
+
export declare function WaasPolicyCreateRequestToJSON(value?: WaasPolicyCreateRequest | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasPolicyCreateRequestFromJSON(json) {
|
|
6
|
+
return WaasPolicyCreateRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'policyName': json['policyName'],
|
|
14
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
15
|
+
'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasPolicyCreateRequestToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'policyName': value.policyName,
|
|
27
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
28
|
+
'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped, WaasPolicyCreateRequestToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasPolicyResponseFromJSON(json) {
|
|
9
|
+
return WaasPolicyResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'policyId': !runtime.exists(json, 'policyId') ? undefined : json['policyId'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WaasPolicyResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'policyId': value.policyId,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.WaasPolicyResponseFromJSON = WaasPolicyResponseFromJSON;
|
|
32
|
+
exports.WaasPolicyResponseFromJSONTyped = WaasPolicyResponseFromJSONTyped;
|
|
33
|
+
exports.WaasPolicyResponseToJSON = WaasPolicyResponseToJSON;
|