@dynamic-labs/sdk-api 0.107.0 → 0.109.0
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/AdminActionsApi.cjs +2 -0
- package/src/apis/AdminActionsApi.js +2 -0
- 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/AuthorizedClientsApi.cjs +2 -0
- package/src/apis/AuthorizedClientsApi.js +2 -0
- package/src/apis/BusinessAccountsApi.cjs +2 -0
- package/src/apis/BusinessAccountsApi.js +2 -0
- package/src/apis/CaptchaApi.cjs +2 -0
- package/src/apis/CaptchaApi.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/CheckoutApi.cjs +2 -0
- package/src/apis/CheckoutApi.js +2 -0
- package/src/apis/ClientGrantApi.cjs +2 -0
- package/src/apis/ClientGrantApi.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/ExchangesApi.cjs +2 -0
- package/src/apis/ExchangesApi.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/FlowAnalyticsApi.cjs +2 -0
- package/src/apis/FlowAnalyticsApi.js +2 -0
- package/src/apis/GaslessApi.cjs +2 -0
- package/src/apis/GaslessApi.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/GlobalWalletConnectionsApi.cjs +2 -0
- package/src/apis/GlobalWalletConnectionsApi.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/KybApi.cjs +2 -0
- package/src/apis/KybApi.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/OrganizationSettingsApi.cjs +2 -0
- package/src/apis/OrganizationSettingsApi.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/ProvidersApi.cjs +2 -0
- package/src/apis/ProvidersApi.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/ScreeningPoliciesApi.cjs +2 -0
- package/src/apis/ScreeningPoliciesApi.js +2 -0
- package/src/apis/ServerApi.cjs +2 -0
- package/src/apis/ServerApi.js +2 -0
- package/src/apis/SessionsApi.cjs +2 -0
- package/src/apis/SessionsApi.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 +2 -0
- package/src/apis/WaasApi.js +2 -0
- package/src/apis/WalletConnectApi.cjs +2 -0
- package/src/apis/WalletConnectApi.js +2 -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/apis/YieldApi.cjs +2 -0
- package/src/apis/YieldApi.js +2 -0
- package/src/apis/ZendeskApi.cjs +2 -0
- package/src/apis/ZendeskApi.js +2 -0
- package/src/index.cjs +16 -0
- package/src/index.js +2 -0
- package/src/models/BillingSubscription.cjs +3 -2
- package/src/models/BillingSubscription.d.ts +4 -3
- package/src/models/BillingSubscription.js +3 -2
- package/src/models/BillingSubscriptionVersionEnum.cjs +42 -0
- package/src/models/BillingSubscriptionVersionEnum.d.ts +25 -0
- package/src/models/BillingSubscriptionVersionEnum.js +36 -0
- package/src/models/WaasPolicyLayerRuleInput.cjs +85 -0
- package/src/models/WaasPolicyLayerRuleInput.d.ts +150 -0
- package/src/models/WaasPolicyLayerRuleInput.js +79 -0
- package/src/models/WaasPolicyLayerUpdateRequest.cjs +3 -3
- package/src/models/WaasPolicyLayerUpdateRequest.d.ts +4 -4
- package/src/models/WaasPolicyLayerUpdateRequest.js +3 -3
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +3 -3
- package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +4 -4
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js +3 -3
- package/src/models/index.d.ts +2 -0
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { BillingSubscriptionCoupon } from './BillingSubscriptionCoupon';
|
|
13
13
|
import { BillingSubscriptionPeriod } from './BillingSubscriptionPeriod';
|
|
14
14
|
import { BillingSubscriptionPlanTypeEnum } from './BillingSubscriptionPlanTypeEnum';
|
|
15
|
+
import { BillingSubscriptionVersionEnum } from './BillingSubscriptionVersionEnum';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -85,11 +86,11 @@ export interface BillingSubscription {
|
|
|
85
86
|
*/
|
|
86
87
|
currentBillingPeriod?: BillingSubscriptionPeriod;
|
|
87
88
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {
|
|
89
|
+
*
|
|
90
|
+
* @type {BillingSubscriptionVersionEnum}
|
|
90
91
|
* @memberof BillingSubscription
|
|
91
92
|
*/
|
|
92
|
-
version:
|
|
93
|
+
version: BillingSubscriptionVersionEnum;
|
|
93
94
|
/**
|
|
94
95
|
* When true, the user cannot switch between live and sandbox until payment is added
|
|
95
96
|
* @type {boolean}
|
|
@@ -2,6 +2,7 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { BillingSubscriptionCouponFromJSON, BillingSubscriptionCouponToJSON } from './BillingSubscriptionCoupon.js';
|
|
3
3
|
import { BillingSubscriptionPeriodFromJSON, BillingSubscriptionPeriodToJSON } from './BillingSubscriptionPeriod.js';
|
|
4
4
|
import { BillingSubscriptionPlanTypeEnumFromJSON, BillingSubscriptionPlanTypeEnumToJSON } from './BillingSubscriptionPlanTypeEnum.js';
|
|
5
|
+
import { BillingSubscriptionVersionEnumFromJSON, BillingSubscriptionVersionEnumToJSON } from './BillingSubscriptionVersionEnum.js';
|
|
5
6
|
|
|
6
7
|
/* tslint:disable */
|
|
7
8
|
function BillingSubscriptionFromJSON(json) {
|
|
@@ -23,7 +24,7 @@ function BillingSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
'trialEnd': !exists(json, 'trialEnd') ? undefined : (new Date(json['trialEnd'])),
|
|
24
25
|
'trialDaysLeft': !exists(json, 'trialDaysLeft') ? undefined : json['trialDaysLeft'],
|
|
25
26
|
'currentBillingPeriod': !exists(json, 'currentBillingPeriod') ? undefined : BillingSubscriptionPeriodFromJSON(json['currentBillingPeriod']),
|
|
26
|
-
'version': json['version'],
|
|
27
|
+
'version': BillingSubscriptionVersionEnumFromJSON(json['version']),
|
|
27
28
|
'shouldLockEnvironmentSwitch': !exists(json, 'shouldLockEnvironmentSwitch') ? undefined : json['shouldLockEnvironmentSwitch'],
|
|
28
29
|
'requiresKybBeforeLive': !exists(json, 'requiresKybBeforeLive') ? undefined : json['requiresKybBeforeLive'],
|
|
29
30
|
'coupons': !exists(json, 'coupons') ? undefined : (json['coupons'].map(BillingSubscriptionCouponFromJSON)),
|
|
@@ -48,7 +49,7 @@ function BillingSubscriptionToJSON(value) {
|
|
|
48
49
|
'trialEnd': value.trialEnd === undefined ? undefined : (value.trialEnd.toISOString()),
|
|
49
50
|
'trialDaysLeft': value.trialDaysLeft,
|
|
50
51
|
'currentBillingPeriod': BillingSubscriptionPeriodToJSON(value.currentBillingPeriod),
|
|
51
|
-
'version': value.version,
|
|
52
|
+
'version': BillingSubscriptionVersionEnumToJSON(value.version),
|
|
52
53
|
'shouldLockEnvironmentSwitch': value.shouldLockEnvironmentSwitch,
|
|
53
54
|
'requiresKybBeforeLive': value.requiresKybBeforeLive,
|
|
54
55
|
'coupons': value.coupons === undefined ? undefined : (value.coupons.map(BillingSubscriptionCouponToJSON)),
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Billing plan version identifier
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.BillingSubscriptionVersionEnum = void 0;
|
|
24
|
+
(function (BillingSubscriptionVersionEnum) {
|
|
25
|
+
BillingSubscriptionVersionEnum["V1"] = "1";
|
|
26
|
+
BillingSubscriptionVersionEnum["V2"] = "2";
|
|
27
|
+
BillingSubscriptionVersionEnum["V3"] = "3";
|
|
28
|
+
BillingSubscriptionVersionEnum["V4"] = "4";
|
|
29
|
+
})(exports.BillingSubscriptionVersionEnum || (exports.BillingSubscriptionVersionEnum = {}));
|
|
30
|
+
function BillingSubscriptionVersionEnumFromJSON(json) {
|
|
31
|
+
return BillingSubscriptionVersionEnumFromJSONTyped(json);
|
|
32
|
+
}
|
|
33
|
+
function BillingSubscriptionVersionEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
function BillingSubscriptionVersionEnumToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.BillingSubscriptionVersionEnumFromJSON = BillingSubscriptionVersionEnumFromJSON;
|
|
41
|
+
exports.BillingSubscriptionVersionEnumFromJSONTyped = BillingSubscriptionVersionEnumFromJSONTyped;
|
|
42
|
+
exports.BillingSubscriptionVersionEnumToJSON = BillingSubscriptionVersionEnumToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Billing plan version identifier
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum BillingSubscriptionVersionEnum {
|
|
18
|
+
V1 = "1",
|
|
19
|
+
V2 = "2",
|
|
20
|
+
V3 = "3",
|
|
21
|
+
V4 = "4"
|
|
22
|
+
}
|
|
23
|
+
export declare function BillingSubscriptionVersionEnumFromJSON(json: any): BillingSubscriptionVersionEnum;
|
|
24
|
+
export declare function BillingSubscriptionVersionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSubscriptionVersionEnum;
|
|
25
|
+
export declare function BillingSubscriptionVersionEnumToJSON(value?: BillingSubscriptionVersionEnum | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Billing plan version identifier
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var BillingSubscriptionVersionEnum;
|
|
20
|
+
(function (BillingSubscriptionVersionEnum) {
|
|
21
|
+
BillingSubscriptionVersionEnum["V1"] = "1";
|
|
22
|
+
BillingSubscriptionVersionEnum["V2"] = "2";
|
|
23
|
+
BillingSubscriptionVersionEnum["V3"] = "3";
|
|
24
|
+
BillingSubscriptionVersionEnum["V4"] = "4";
|
|
25
|
+
})(BillingSubscriptionVersionEnum || (BillingSubscriptionVersionEnum = {}));
|
|
26
|
+
function BillingSubscriptionVersionEnumFromJSON(json) {
|
|
27
|
+
return BillingSubscriptionVersionEnumFromJSONTyped(json);
|
|
28
|
+
}
|
|
29
|
+
function BillingSubscriptionVersionEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
function BillingSubscriptionVersionEnumToJSON(value) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { BillingSubscriptionVersionEnum, BillingSubscriptionVersionEnumFromJSON, BillingSubscriptionVersionEnumFromJSONTyped, BillingSubscriptionVersionEnumToJSON };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasChainEnum = require('./WaasChainEnum.cjs');
|
|
7
|
+
var WaasPolicyAction = require('./WaasPolicyAction.cjs');
|
|
8
|
+
var WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
|
|
9
|
+
var WaasPolicyDeclarativeApprovalRequirement = require('./WaasPolicyDeclarativeApprovalRequirement.cjs');
|
|
10
|
+
var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
|
|
11
|
+
var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
|
|
12
|
+
var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
|
|
13
|
+
|
|
14
|
+
/* tslint:disable */
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
exports.WaasPolicyLayerRuleInputPhaseEnum = void 0;
|
|
20
|
+
(function (WaasPolicyLayerRuleInputPhaseEnum) {
|
|
21
|
+
WaasPolicyLayerRuleInputPhaseEnum["Transaction"] = "transaction";
|
|
22
|
+
WaasPolicyLayerRuleInputPhaseEnum["Operation"] = "operation";
|
|
23
|
+
})(exports.WaasPolicyLayerRuleInputPhaseEnum || (exports.WaasPolicyLayerRuleInputPhaseEnum = {}));
|
|
24
|
+
function WaasPolicyLayerRuleInputFromJSON(json) {
|
|
25
|
+
return WaasPolicyLayerRuleInputFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function WaasPolicyLayerRuleInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
35
|
+
'address': !runtime.exists(json, 'address') ? undefined : json['address'],
|
|
36
|
+
'addresses': !runtime.exists(json, 'addresses') ? undefined : json['addresses'],
|
|
37
|
+
'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
|
|
38
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
39
|
+
'chainIds': !runtime.exists(json, 'chainIds') ? undefined : json['chainIds'],
|
|
40
|
+
'contractAbi': !runtime.exists(json, 'contractAbi') ? undefined : json['contractAbi'],
|
|
41
|
+
'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
|
|
42
|
+
'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
|
|
43
|
+
'valueLimit': !runtime.exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
|
|
44
|
+
'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
|
|
45
|
+
'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
|
|
46
|
+
'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
|
|
47
|
+
'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementFromJSON)),
|
|
48
|
+
'phase': json['phase'],
|
|
49
|
+
'when': json['when'],
|
|
50
|
+
'then': WaasPolicyAction.WaasPolicyActionFromJSON(json['then']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function WaasPolicyLayerRuleInputToJSON(value) {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'ruleId': value.ruleId,
|
|
62
|
+
'name': value.name,
|
|
63
|
+
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
64
|
+
'address': value.address,
|
|
65
|
+
'addresses': value.addresses,
|
|
66
|
+
'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
|
|
67
|
+
'chainId': value.chainId,
|
|
68
|
+
'chainIds': value.chainIds,
|
|
69
|
+
'contractAbi': value.contractAbi,
|
|
70
|
+
'functionName': value.functionName,
|
|
71
|
+
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
|
|
72
|
+
'valueLimit': WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON(value.valueLimit),
|
|
73
|
+
'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
|
|
74
|
+
'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
|
|
75
|
+
'modifiableBySigner': value.modifiableBySigner,
|
|
76
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementToJSON)),
|
|
77
|
+
'phase': value.phase,
|
|
78
|
+
'when': value.when,
|
|
79
|
+
'then': WaasPolicyAction.WaasPolicyActionToJSON(value.then),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
exports.WaasPolicyLayerRuleInputFromJSON = WaasPolicyLayerRuleInputFromJSON;
|
|
84
|
+
exports.WaasPolicyLayerRuleInputFromJSONTyped = WaasPolicyLayerRuleInputFromJSONTyped;
|
|
85
|
+
exports.WaasPolicyLayerRuleInputToJSON = WaasPolicyLayerRuleInputToJSON;
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { WaasChainEnum } from './WaasChainEnum';
|
|
13
|
+
import { WaasPolicyAction } from './WaasPolicyAction';
|
|
14
|
+
import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
|
|
15
|
+
import { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
|
|
16
|
+
import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
|
|
17
|
+
import { WaasPolicyRuleType } from './WaasPolicyRuleType';
|
|
18
|
+
import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface WaasPolicyLayerRuleInput
|
|
23
|
+
*/
|
|
24
|
+
export interface WaasPolicyLayerRuleInput {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
29
|
+
*/
|
|
30
|
+
ruleId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable name for the rule
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {WaasPolicyRuleType}
|
|
40
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
41
|
+
*/
|
|
42
|
+
ruleType: WaasPolicyRuleType;
|
|
43
|
+
/**
|
|
44
|
+
* Target address EVM or SVM (legacy field)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
47
|
+
*/
|
|
48
|
+
address?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Target address(es) EVM or SVM
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
53
|
+
*/
|
|
54
|
+
addresses?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {WaasChainEnum}
|
|
58
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
59
|
+
*/
|
|
60
|
+
chain: WaasChainEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Chain ID for the policy rule (legacy field)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
65
|
+
*/
|
|
66
|
+
chainId?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Chain IDs for the policy rule
|
|
69
|
+
* @type {Array<number>}
|
|
70
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
71
|
+
*/
|
|
72
|
+
chainIds?: Array<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Contract ABI interface
|
|
75
|
+
* @type {Array<object>}
|
|
76
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
77
|
+
*/
|
|
78
|
+
contractAbi?: Array<object>;
|
|
79
|
+
/**
|
|
80
|
+
* Specific function name to permit/deny
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
83
|
+
*/
|
|
84
|
+
functionName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Validation rules for function arguments
|
|
87
|
+
* @type {Array<WaasPolicyArgumentConstraint>}
|
|
88
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
89
|
+
*/
|
|
90
|
+
argumentConstraints?: Array<WaasPolicyArgumentConstraint>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {WaasPolicyRuleValueLimit}
|
|
94
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
95
|
+
*/
|
|
96
|
+
valueLimit?: WaasPolicyRuleValueLimit;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {WaasPolicyRuleOperationRestrictions}
|
|
100
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
101
|
+
*/
|
|
102
|
+
operationRestrictions?: WaasPolicyRuleOperationRestrictions;
|
|
103
|
+
/**
|
|
104
|
+
* When true, disables Blockaid security enforcement for this rule. Blockaid simulation will still run for policy evaluation, but security verdicts (e.g., malicious transactions) will not block execution. Transaction approval will be determined solely by customer-defined policy rules. Use with caution as this bypasses automated security protections.
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
107
|
+
*/
|
|
108
|
+
disableBlockaidSecurityChecks?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* When true, a Signer may adjust this Rule within its recognised shape
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
113
|
+
*/
|
|
114
|
+
modifiableBySigner?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The approvals a matching transaction needs. Required when then is REQUIRE_APPROVAL and refused on any other action. A deny in the same Layer wins first; otherwise every REQUIRE_APPROVAL Rule whose when holds, or cannot be decided, applies. A message or raw sign has no transaction to test, so every such Rule applies. Enforced only for business-account wallets. Valid on business-account, wallet and signer Layers and refused on the environment Layer. Only admins and business-account admins may author one. May not read spendWindows.
|
|
117
|
+
* @type {Array<WaasPolicyDeclarativeApprovalRequirement>}
|
|
118
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
119
|
+
*/
|
|
120
|
+
approvalRequirements?: Array<WaasPolicyDeclarativeApprovalRequirement>;
|
|
121
|
+
/**
|
|
122
|
+
* Which question this Rule answers. A Layer is one flat list, so the phase travels on the Rule rather than being implied by its position.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
125
|
+
*/
|
|
126
|
+
phase: WaasPolicyLayerRuleInputPhaseEnum;
|
|
127
|
+
/**
|
|
128
|
+
* Condition in the policy rule language, validated against the field catalog on write and again on read
|
|
129
|
+
* @type {object}
|
|
130
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
131
|
+
*/
|
|
132
|
+
when: object;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {WaasPolicyAction}
|
|
136
|
+
* @memberof WaasPolicyLayerRuleInput
|
|
137
|
+
*/
|
|
138
|
+
then: WaasPolicyAction;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
* @enum {string}
|
|
143
|
+
*/
|
|
144
|
+
export declare enum WaasPolicyLayerRuleInputPhaseEnum {
|
|
145
|
+
Transaction = "transaction",
|
|
146
|
+
Operation = "operation"
|
|
147
|
+
}
|
|
148
|
+
export declare function WaasPolicyLayerRuleInputFromJSON(json: any): WaasPolicyLayerRuleInput;
|
|
149
|
+
export declare function WaasPolicyLayerRuleInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerRuleInput;
|
|
150
|
+
export declare function WaasPolicyLayerRuleInputToJSON(value?: WaasPolicyLayerRuleInput | null): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
3
|
+
import { WaasPolicyActionFromJSON, WaasPolicyActionToJSON } from './WaasPolicyAction.js';
|
|
4
|
+
import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
|
|
5
|
+
import { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementToJSON } from './WaasPolicyDeclarativeApprovalRequirement.js';
|
|
6
|
+
import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
|
|
7
|
+
import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
|
|
8
|
+
import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
* @enum {string}
|
|
14
|
+
*/
|
|
15
|
+
var WaasPolicyLayerRuleInputPhaseEnum;
|
|
16
|
+
(function (WaasPolicyLayerRuleInputPhaseEnum) {
|
|
17
|
+
WaasPolicyLayerRuleInputPhaseEnum["Transaction"] = "transaction";
|
|
18
|
+
WaasPolicyLayerRuleInputPhaseEnum["Operation"] = "operation";
|
|
19
|
+
})(WaasPolicyLayerRuleInputPhaseEnum || (WaasPolicyLayerRuleInputPhaseEnum = {}));
|
|
20
|
+
function WaasPolicyLayerRuleInputFromJSON(json) {
|
|
21
|
+
return WaasPolicyLayerRuleInputFromJSONTyped(json);
|
|
22
|
+
}
|
|
23
|
+
function WaasPolicyLayerRuleInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
29
|
+
'name': json['name'],
|
|
30
|
+
'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
31
|
+
'address': !exists(json, 'address') ? undefined : json['address'],
|
|
32
|
+
'addresses': !exists(json, 'addresses') ? undefined : json['addresses'],
|
|
33
|
+
'chain': WaasChainEnumFromJSON(json['chain']),
|
|
34
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
35
|
+
'chainIds': !exists(json, 'chainIds') ? undefined : json['chainIds'],
|
|
36
|
+
'contractAbi': !exists(json, 'contractAbi') ? undefined : json['contractAbi'],
|
|
37
|
+
'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
|
|
38
|
+
'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
|
|
39
|
+
'valueLimit': !exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
|
|
40
|
+
'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
|
|
41
|
+
'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
|
|
42
|
+
'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
|
|
43
|
+
'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirementFromJSON)),
|
|
44
|
+
'phase': json['phase'],
|
|
45
|
+
'when': json['when'],
|
|
46
|
+
'then': WaasPolicyActionFromJSON(json['then']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WaasPolicyLayerRuleInputToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ruleId': value.ruleId,
|
|
58
|
+
'name': value.name,
|
|
59
|
+
'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
60
|
+
'address': value.address,
|
|
61
|
+
'addresses': value.addresses,
|
|
62
|
+
'chain': WaasChainEnumToJSON(value.chain),
|
|
63
|
+
'chainId': value.chainId,
|
|
64
|
+
'chainIds': value.chainIds,
|
|
65
|
+
'contractAbi': value.contractAbi,
|
|
66
|
+
'functionName': value.functionName,
|
|
67
|
+
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),
|
|
68
|
+
'valueLimit': WaasPolicyRuleValueLimitToJSON(value.valueLimit),
|
|
69
|
+
'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
|
|
70
|
+
'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
|
|
71
|
+
'modifiableBySigner': value.modifiableBySigner,
|
|
72
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirementToJSON)),
|
|
73
|
+
'phase': value.phase,
|
|
74
|
+
'when': value.when,
|
|
75
|
+
'then': WaasPolicyActionToJSON(value.then),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputFromJSONTyped, WaasPolicyLayerRuleInputPhaseEnum, WaasPolicyLayerRuleInputToJSON };
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
7
|
-
var
|
|
7
|
+
var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
|
|
8
8
|
var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
|
|
9
9
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
10
10
|
|
|
@@ -33,7 +33,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
34
34
|
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
35
35
|
'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
|
|
36
|
-
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(
|
|
36
|
+
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
@@ -49,7 +49,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
|
49
49
|
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
50
50
|
'ruleId': value.ruleId,
|
|
51
51
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
|
|
52
|
-
'rules': value.rules === undefined ? undefined : (value.rules.map(
|
|
52
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
13
|
-
import {
|
|
13
|
+
import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
|
|
14
14
|
import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
|
|
15
15
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
16
16
|
/**
|
|
@@ -50,11 +50,11 @@ export interface WaasPolicyLayerUpdateRequest {
|
|
|
50
50
|
*/
|
|
51
51
|
operations?: Array<WaasPolicyLayerRuleOperation>;
|
|
52
52
|
/**
|
|
53
|
-
* Only used when op is replace — the Layer's full Rule list, in either syntax. Only admins and business-account admins may replace.
|
|
54
|
-
* @type {Array<
|
|
53
|
+
* Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
|
|
54
|
+
* @type {Array<WaasPolicyLayerRuleInput>}
|
|
55
55
|
* @memberof WaasPolicyLayerUpdateRequest
|
|
56
56
|
*/
|
|
57
|
-
rules?: Array<
|
|
57
|
+
rules?: Array<WaasPolicyLayerRuleInput>;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* @export
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
3
|
-
import {
|
|
3
|
+
import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
|
|
4
4
|
import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
|
|
5
5
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
30
30
|
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
31
31
|
'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
|
|
32
|
-
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(
|
|
32
|
+
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
@@ -45,7 +45,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
|
45
45
|
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
46
46
|
'ruleId': value.ruleId,
|
|
47
47
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
|
|
48
|
-
'rules': value.rules === undefined ? undefined : (value.rules.map(
|
|
48
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
7
|
-
var
|
|
7
|
+
var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
|
|
8
8
|
var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
|
|
9
9
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
10
10
|
|
|
@@ -33,7 +33,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
33
33
|
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
34
34
|
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
35
35
|
'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
|
|
36
|
-
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(
|
|
36
|
+
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
|
|
37
37
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -50,7 +50,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
|
|
|
50
50
|
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
51
51
|
'ruleId': value.ruleId,
|
|
52
52
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
|
|
53
|
-
'rules': value.rules === undefined ? undefined : (value.rules.map(
|
|
53
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
|
|
54
54
|
'shareSetId': value.shareSetId,
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
13
|
-
import {
|
|
13
|
+
import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
|
|
14
14
|
import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
|
|
15
15
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
16
16
|
/**
|
|
@@ -50,11 +50,11 @@ export interface WaasSignerPolicyLayerUpdateRequest {
|
|
|
50
50
|
*/
|
|
51
51
|
operations?: Array<WaasPolicyLayerRuleOperation>;
|
|
52
52
|
/**
|
|
53
|
-
* Only used when op is replace — the Layer's full Rule list, in either syntax. Only admins and business-account admins may replace.
|
|
54
|
-
* @type {Array<
|
|
53
|
+
* Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
|
|
54
|
+
* @type {Array<WaasPolicyLayerRuleInput>}
|
|
55
55
|
* @memberof WaasSignerPolicyLayerUpdateRequest
|
|
56
56
|
*/
|
|
57
|
-
rules?: Array<
|
|
57
|
+
rules?: Array<WaasPolicyLayerRuleInput>;
|
|
58
58
|
/**
|
|
59
59
|
* Targets a share set other than the caller's own, as returned in
|
|
60
60
|
* the wallet's shareSetId or otherShareSets. Omit to target the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
3
|
-
import {
|
|
3
|
+
import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
|
|
4
4
|
import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
|
|
5
5
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
29
29
|
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
30
30
|
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
31
31
|
'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
|
|
32
|
-
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(
|
|
32
|
+
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
|
|
33
33
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -46,7 +46,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
|
|
|
46
46
|
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
47
47
|
'ruleId': value.ruleId,
|
|
48
48
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
|
|
49
|
-
'rules': value.rules === undefined ? undefined : (value.rules.map(
|
|
49
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
|
|
50
50
|
'shareSetId': value.shareSetId,
|
|
51
51
|
};
|
|
52
52
|
}
|
package/src/models/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export * from './BillingSubscription';
|
|
|
84
84
|
export * from './BillingSubscriptionCoupon';
|
|
85
85
|
export * from './BillingSubscriptionPeriod';
|
|
86
86
|
export * from './BillingSubscriptionPlanTypeEnum';
|
|
87
|
+
export * from './BillingSubscriptionVersionEnum';
|
|
87
88
|
export * from './BlockaidValidation';
|
|
88
89
|
export * from './BulkUserCreateResponse';
|
|
89
90
|
export * from './BulkUserCreateResponseFailed';
|
|
@@ -913,6 +914,7 @@ export * from './WaasPolicyLayerResponse';
|
|
|
913
914
|
export * from './WaasPolicyLayerResponseLayerContent';
|
|
914
915
|
export * from './WaasPolicyLayerResponseRule';
|
|
915
916
|
export * from './WaasPolicyLayerRule';
|
|
917
|
+
export * from './WaasPolicyLayerRuleInput';
|
|
916
918
|
export * from './WaasPolicyLayerRuleOperation';
|
|
917
919
|
export * from './WaasPolicyLayerUpdateRequest';
|
|
918
920
|
export * from './WaasPolicyResponse';
|