@dynamic-labs/sdk-api 0.99.0 → 0.101.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/SignMessageApprovalQuorumIntent.cjs +3 -0
- package/src/models/SignMessageApprovalQuorumIntent.d.ts +7 -0
- package/src/models/SignMessageApprovalQuorumIntent.js +3 -0
- package/src/models/SignMessageApprovalQuorumIntentLifetime.cjs +52 -0
- package/src/models/SignMessageApprovalQuorumIntentLifetime.d.ts +35 -0
- package/src/models/SignMessageApprovalQuorumIntentLifetime.js +46 -0
- package/src/models/WaasPolicyDeclarativeRule.d.ts +1 -1
- package/src/models/WaasPolicyDeclarativeRuleInput.cjs +56 -0
- package/src/models/WaasPolicyDeclarativeRuleInput.d.ts +73 -0
- package/src/models/WaasPolicyDeclarativeRuleInput.js +50 -0
- package/src/models/WaasPolicyLayerRuleOperation.cjs +3 -0
- package/src/models/WaasPolicyLayerRuleOperation.d.ts +7 -0
- package/src/models/WaasPolicyLayerRuleOperation.js +3 -0
- package/src/models/WaasPolicyLayerUpdateRequest.cjs +3 -0
- package/src/models/WaasPolicyLayerUpdateRequest.d.ts +7 -0
- package/src/models/WaasPolicyLayerUpdateRequest.js +3 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +3 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +7 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js +3 -0
- package/src/models/index.d.ts +2 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var SignMessageApprovalQuorumIntentLifetime = require('./SignMessageApprovalQuorumIntentLifetime.cjs');
|
|
6
7
|
var SignMessageApprovalQuorumIntentLimits = require('./SignMessageApprovalQuorumIntentLimits.cjs');
|
|
7
8
|
var SignMessageApprovalQuorumIntentOperation = require('./SignMessageApprovalQuorumIntentOperation.cjs');
|
|
8
9
|
|
|
@@ -33,6 +34,7 @@ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator)
|
|
|
33
34
|
'completeBy': !runtime.exists(json, 'completeBy') ? undefined : json['completeBy'],
|
|
34
35
|
'operation': SignMessageApprovalQuorumIntentOperation.SignMessageApprovalQuorumIntentOperationFromJSON(json['operation']),
|
|
35
36
|
'limits': !runtime.exists(json, 'limits') ? undefined : SignMessageApprovalQuorumIntentLimits.SignMessageApprovalQuorumIntentLimitsFromJSON(json['limits']),
|
|
37
|
+
'lifetime': !runtime.exists(json, 'lifetime') ? undefined : SignMessageApprovalQuorumIntentLifetime.SignMessageApprovalQuorumIntentLifetimeFromJSON(json['lifetime']),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function SignMessageApprovalQuorumIntentToJSON(value) {
|
|
@@ -53,6 +55,7 @@ function SignMessageApprovalQuorumIntentToJSON(value) {
|
|
|
53
55
|
'completeBy': value.completeBy,
|
|
54
56
|
'operation': SignMessageApprovalQuorumIntentOperation.SignMessageApprovalQuorumIntentOperationToJSON(value.operation),
|
|
55
57
|
'limits': SignMessageApprovalQuorumIntentLimits.SignMessageApprovalQuorumIntentLimitsToJSON(value.limits),
|
|
58
|
+
'lifetime': SignMessageApprovalQuorumIntentLifetime.SignMessageApprovalQuorumIntentLifetimeToJSON(value.lifetime),
|
|
56
59
|
};
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { SignMessageApprovalQuorumIntentLifetime } from './SignMessageApprovalQuorumIntentLifetime';
|
|
12
13
|
import { SignMessageApprovalQuorumIntentLimits } from './SignMessageApprovalQuorumIntentLimits';
|
|
13
14
|
import { SignMessageApprovalQuorumIntentOperation } from './SignMessageApprovalQuorumIntentOperation';
|
|
14
15
|
/**
|
|
@@ -72,6 +73,12 @@ export interface SignMessageApprovalQuorumIntent {
|
|
|
72
73
|
* @memberof SignMessageApprovalQuorumIntent
|
|
73
74
|
*/
|
|
74
75
|
limits?: SignMessageApprovalQuorumIntentLimits;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {SignMessageApprovalQuorumIntentLifetime}
|
|
79
|
+
* @memberof SignMessageApprovalQuorumIntent
|
|
80
|
+
*/
|
|
81
|
+
lifetime?: SignMessageApprovalQuorumIntentLifetime;
|
|
75
82
|
}
|
|
76
83
|
/**
|
|
77
84
|
* @export
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { SignMessageApprovalQuorumIntentLifetimeFromJSON, SignMessageApprovalQuorumIntentLifetimeToJSON } from './SignMessageApprovalQuorumIntentLifetime.js';
|
|
2
3
|
import { SignMessageApprovalQuorumIntentLimitsFromJSON, SignMessageApprovalQuorumIntentLimitsToJSON } from './SignMessageApprovalQuorumIntentLimits.js';
|
|
3
4
|
import { SignMessageApprovalQuorumIntentOperationFromJSON, SignMessageApprovalQuorumIntentOperationToJSON } from './SignMessageApprovalQuorumIntentOperation.js';
|
|
4
5
|
|
|
@@ -29,6 +30,7 @@ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator)
|
|
|
29
30
|
'completeBy': !exists(json, 'completeBy') ? undefined : json['completeBy'],
|
|
30
31
|
'operation': SignMessageApprovalQuorumIntentOperationFromJSON(json['operation']),
|
|
31
32
|
'limits': !exists(json, 'limits') ? undefined : SignMessageApprovalQuorumIntentLimitsFromJSON(json['limits']),
|
|
33
|
+
'lifetime': !exists(json, 'lifetime') ? undefined : SignMessageApprovalQuorumIntentLifetimeFromJSON(json['lifetime']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
function SignMessageApprovalQuorumIntentToJSON(value) {
|
|
@@ -49,6 +51,7 @@ function SignMessageApprovalQuorumIntentToJSON(value) {
|
|
|
49
51
|
'completeBy': value.completeBy,
|
|
50
52
|
'operation': SignMessageApprovalQuorumIntentOperationToJSON(value.operation),
|
|
51
53
|
'limits': SignMessageApprovalQuorumIntentLimitsToJSON(value.limits),
|
|
54
|
+
'lifetime': SignMessageApprovalQuorumIntentLifetimeToJSON(value.lifetime),
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.SignMessageApprovalQuorumIntentLifetimeRefreshableEnum = void 0;
|
|
23
|
+
(function (SignMessageApprovalQuorumIntentLifetimeRefreshableEnum) {
|
|
24
|
+
SignMessageApprovalQuorumIntentLifetimeRefreshableEnum["Blockhash"] = "blockhash";
|
|
25
|
+
SignMessageApprovalQuorumIntentLifetimeRefreshableEnum["Nonce"] = "nonce";
|
|
26
|
+
})(exports.SignMessageApprovalQuorumIntentLifetimeRefreshableEnum || (exports.SignMessageApprovalQuorumIntentLifetimeRefreshableEnum = {}));
|
|
27
|
+
function SignMessageApprovalQuorumIntentLifetimeFromJSON(json) {
|
|
28
|
+
return SignMessageApprovalQuorumIntentLifetimeFromJSONTyped(json);
|
|
29
|
+
}
|
|
30
|
+
function SignMessageApprovalQuorumIntentLifetimeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'refreshable': json['refreshable'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function SignMessageApprovalQuorumIntentLifetimeToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'refreshable': value.refreshable,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
exports.SignMessageApprovalQuorumIntentLifetimeFromJSON = SignMessageApprovalQuorumIntentLifetimeFromJSON;
|
|
51
|
+
exports.SignMessageApprovalQuorumIntentLifetimeFromJSONTyped = SignMessageApprovalQuorumIntentLifetimeFromJSONTyped;
|
|
52
|
+
exports.SignMessageApprovalQuorumIntentLifetimeToJSON = SignMessageApprovalQuorumIntentLifetimeToJSON;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
* Which field a signed transaction's validity window is tied to, and so how it can be refreshed before broadcast. Solana transaction Intents require `blockhash`. EVM transaction Intents omit it or use `nonce`. Other Intent kinds have none. Wallet-service enforces this.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignMessageApprovalQuorumIntentLifetime
|
|
16
|
+
*/
|
|
17
|
+
export interface SignMessageApprovalQuorumIntentLifetime {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignMessageApprovalQuorumIntentLifetime
|
|
22
|
+
*/
|
|
23
|
+
refreshable: SignMessageApprovalQuorumIntentLifetimeRefreshableEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
* @enum {string}
|
|
28
|
+
*/
|
|
29
|
+
export declare enum SignMessageApprovalQuorumIntentLifetimeRefreshableEnum {
|
|
30
|
+
Blockhash = "blockhash",
|
|
31
|
+
Nonce = "nonce"
|
|
32
|
+
}
|
|
33
|
+
export declare function SignMessageApprovalQuorumIntentLifetimeFromJSON(json: any): SignMessageApprovalQuorumIntentLifetime;
|
|
34
|
+
export declare function SignMessageApprovalQuorumIntentLifetimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageApprovalQuorumIntentLifetime;
|
|
35
|
+
export declare function SignMessageApprovalQuorumIntentLifetimeToJSON(value?: SignMessageApprovalQuorumIntentLifetime | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
var SignMessageApprovalQuorumIntentLifetimeRefreshableEnum;
|
|
19
|
+
(function (SignMessageApprovalQuorumIntentLifetimeRefreshableEnum) {
|
|
20
|
+
SignMessageApprovalQuorumIntentLifetimeRefreshableEnum["Blockhash"] = "blockhash";
|
|
21
|
+
SignMessageApprovalQuorumIntentLifetimeRefreshableEnum["Nonce"] = "nonce";
|
|
22
|
+
})(SignMessageApprovalQuorumIntentLifetimeRefreshableEnum || (SignMessageApprovalQuorumIntentLifetimeRefreshableEnum = {}));
|
|
23
|
+
function SignMessageApprovalQuorumIntentLifetimeFromJSON(json) {
|
|
24
|
+
return SignMessageApprovalQuorumIntentLifetimeFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function SignMessageApprovalQuorumIntentLifetimeFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'refreshable': json['refreshable'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function SignMessageApprovalQuorumIntentLifetimeToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'refreshable': value.refreshable,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { SignMessageApprovalQuorumIntentLifetimeFromJSON, SignMessageApprovalQuorumIntentLifetimeFromJSONTyped, SignMessageApprovalQuorumIntentLifetimeRefreshableEnum, SignMessageApprovalQuorumIntentLifetimeToJSON };
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { WaasPolicyAction } from './WaasPolicyAction';
|
|
13
13
|
import { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* @export
|
|
17
17
|
* @interface WaasPolicyDeclarativeRule
|
|
18
18
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyAction = require('./WaasPolicyAction.cjs');
|
|
7
|
+
var WaasPolicyDeclarativeApprovalRequirement = require('./WaasPolicyDeclarativeApprovalRequirement.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
* @enum {string}
|
|
13
|
+
*/
|
|
14
|
+
exports.WaasPolicyDeclarativeRuleInputPhaseEnum = void 0;
|
|
15
|
+
(function (WaasPolicyDeclarativeRuleInputPhaseEnum) {
|
|
16
|
+
WaasPolicyDeclarativeRuleInputPhaseEnum["Transaction"] = "transaction";
|
|
17
|
+
WaasPolicyDeclarativeRuleInputPhaseEnum["Operation"] = "operation";
|
|
18
|
+
})(exports.WaasPolicyDeclarativeRuleInputPhaseEnum || (exports.WaasPolicyDeclarativeRuleInputPhaseEnum = {}));
|
|
19
|
+
function WaasPolicyDeclarativeRuleInputFromJSON(json) {
|
|
20
|
+
return WaasPolicyDeclarativeRuleInputFromJSONTyped(json);
|
|
21
|
+
}
|
|
22
|
+
function WaasPolicyDeclarativeRuleInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
28
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
29
|
+
'phase': json['phase'],
|
|
30
|
+
'when': json['when'],
|
|
31
|
+
'then': WaasPolicyAction.WaasPolicyActionFromJSON(json['then']),
|
|
32
|
+
'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementFromJSON)),
|
|
33
|
+
'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function WaasPolicyDeclarativeRuleInputToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'ruleId': value.ruleId,
|
|
45
|
+
'name': value.name,
|
|
46
|
+
'phase': value.phase,
|
|
47
|
+
'when': value.when,
|
|
48
|
+
'then': WaasPolicyAction.WaasPolicyActionToJSON(value.then),
|
|
49
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementToJSON)),
|
|
50
|
+
'modifiableBySigner': value.modifiableBySigner,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports.WaasPolicyDeclarativeRuleInputFromJSON = WaasPolicyDeclarativeRuleInputFromJSON;
|
|
55
|
+
exports.WaasPolicyDeclarativeRuleInputFromJSONTyped = WaasPolicyDeclarativeRuleInputFromJSONTyped;
|
|
56
|
+
exports.WaasPolicyDeclarativeRuleInputToJSON = WaasPolicyDeclarativeRuleInputToJSON;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { WaasPolicyAction } from './WaasPolicyAction';
|
|
13
|
+
import { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
|
|
14
|
+
/**
|
|
15
|
+
* A Rule authored in the policy rule language, evaluated by the engine as stored rather than compiled from WaasPolicyRule. Shares identity and authorship with a legacy Rule so the Layer machinery — deletion markers, authorship stamping, the edit guard — keys on the same fields and needs no second code path for anything but evaluation. A Layer holds one syntax or the other: a write that would leave both in one Layer is refused.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WaasPolicyDeclarativeRuleInput
|
|
18
|
+
*/
|
|
19
|
+
export interface WaasPolicyDeclarativeRuleInput {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
24
|
+
*/
|
|
25
|
+
ruleId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-readable name for the rule
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 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.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
36
|
+
*/
|
|
37
|
+
phase: WaasPolicyDeclarativeRuleInputPhaseEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Condition in the policy rule language, validated against the field catalog on write and again on read
|
|
40
|
+
* @type {object}
|
|
41
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
42
|
+
*/
|
|
43
|
+
when: object;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {WaasPolicyAction}
|
|
47
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
48
|
+
*/
|
|
49
|
+
then: WaasPolicyAction;
|
|
50
|
+
/**
|
|
51
|
+
* 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.
|
|
52
|
+
* @type {Array<WaasPolicyDeclarativeApprovalRequirement>}
|
|
53
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
54
|
+
*/
|
|
55
|
+
approvalRequirements?: Array<WaasPolicyDeclarativeApprovalRequirement>;
|
|
56
|
+
/**
|
|
57
|
+
* When true, a Signer may adjust this Rule within its recognised shape
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof WaasPolicyDeclarativeRuleInput
|
|
60
|
+
*/
|
|
61
|
+
modifiableBySigner?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
* @enum {string}
|
|
66
|
+
*/
|
|
67
|
+
export declare enum WaasPolicyDeclarativeRuleInputPhaseEnum {
|
|
68
|
+
Transaction = "transaction",
|
|
69
|
+
Operation = "operation"
|
|
70
|
+
}
|
|
71
|
+
export declare function WaasPolicyDeclarativeRuleInputFromJSON(json: any): WaasPolicyDeclarativeRuleInput;
|
|
72
|
+
export declare function WaasPolicyDeclarativeRuleInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyDeclarativeRuleInput;
|
|
73
|
+
export declare function WaasPolicyDeclarativeRuleInputToJSON(value?: WaasPolicyDeclarativeRuleInput | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyActionFromJSON, WaasPolicyActionToJSON } from './WaasPolicyAction.js';
|
|
3
|
+
import { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementToJSON } from './WaasPolicyDeclarativeApprovalRequirement.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @enum {string}
|
|
9
|
+
*/
|
|
10
|
+
var WaasPolicyDeclarativeRuleInputPhaseEnum;
|
|
11
|
+
(function (WaasPolicyDeclarativeRuleInputPhaseEnum) {
|
|
12
|
+
WaasPolicyDeclarativeRuleInputPhaseEnum["Transaction"] = "transaction";
|
|
13
|
+
WaasPolicyDeclarativeRuleInputPhaseEnum["Operation"] = "operation";
|
|
14
|
+
})(WaasPolicyDeclarativeRuleInputPhaseEnum || (WaasPolicyDeclarativeRuleInputPhaseEnum = {}));
|
|
15
|
+
function WaasPolicyDeclarativeRuleInputFromJSON(json) {
|
|
16
|
+
return WaasPolicyDeclarativeRuleInputFromJSONTyped(json);
|
|
17
|
+
}
|
|
18
|
+
function WaasPolicyDeclarativeRuleInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
24
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
25
|
+
'phase': json['phase'],
|
|
26
|
+
'when': json['when'],
|
|
27
|
+
'then': WaasPolicyActionFromJSON(json['then']),
|
|
28
|
+
'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirementFromJSON)),
|
|
29
|
+
'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function WaasPolicyDeclarativeRuleInputToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'ruleId': value.ruleId,
|
|
41
|
+
'name': value.name,
|
|
42
|
+
'phase': value.phase,
|
|
43
|
+
'when': value.when,
|
|
44
|
+
'then': WaasPolicyActionToJSON(value.then),
|
|
45
|
+
'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirementToJSON)),
|
|
46
|
+
'modifiableBySigner': value.modifiableBySigner,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputFromJSONTyped, WaasPolicyDeclarativeRuleInputPhaseEnum, WaasPolicyDeclarativeRuleInputToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
6
7
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -25,6 +26,7 @@ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'op': json['op'],
|
|
27
28
|
'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
|
|
29
|
+
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
28
30
|
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
29
31
|
};
|
|
30
32
|
}
|
|
@@ -38,6 +40,7 @@ function WaasPolicyLayerRuleOperationToJSON(value) {
|
|
|
38
40
|
return {
|
|
39
41
|
'op': value.op,
|
|
40
42
|
'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
|
|
43
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
41
44
|
'ruleId': value.ruleId,
|
|
42
45
|
};
|
|
43
46
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
12
13
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,12 @@ export interface WaasPolicyLayerRuleOperation {
|
|
|
28
29
|
* @memberof WaasPolicyLayerRuleOperation
|
|
29
30
|
*/
|
|
30
31
|
rule?: WaasPolicyRule;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WaasPolicyDeclarativeRuleInput}
|
|
35
|
+
* @memberof WaasPolicyLayerRuleOperation
|
|
36
|
+
*/
|
|
37
|
+
declarativeRule?: WaasPolicyDeclarativeRuleInput;
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
2
3
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -21,6 +22,7 @@ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
22
|
return {
|
|
22
23
|
'op': json['op'],
|
|
23
24
|
'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
|
|
25
|
+
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
24
26
|
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
25
27
|
};
|
|
26
28
|
}
|
|
@@ -34,6 +36,7 @@ function WaasPolicyLayerRuleOperationToJSON(value) {
|
|
|
34
36
|
return {
|
|
35
37
|
'op': value.op,
|
|
36
38
|
'rule': WaasPolicyRuleToJSON(value.rule),
|
|
39
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
37
40
|
'ruleId': value.ruleId,
|
|
38
41
|
};
|
|
39
42
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
6
7
|
var WaasPolicyLayerRule = require('./WaasPolicyLayerRule.cjs');
|
|
7
8
|
var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
|
|
8
9
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
@@ -29,6 +30,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
return {
|
|
30
31
|
'op': json['op'],
|
|
31
32
|
'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
|
|
33
|
+
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
32
34
|
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
33
35
|
'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
|
|
34
36
|
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRule.WaasPolicyLayerRuleFromJSON)),
|
|
@@ -44,6 +46,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
|
44
46
|
return {
|
|
45
47
|
'op': value.op,
|
|
46
48
|
'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
|
|
49
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
47
50
|
'ruleId': value.ruleId,
|
|
48
51
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
|
|
49
52
|
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRule.WaasPolicyLayerRuleToJSON)),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
12
13
|
import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
|
|
13
14
|
import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
|
|
14
15
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
@@ -30,6 +31,12 @@ export interface WaasPolicyLayerUpdateRequest {
|
|
|
30
31
|
* @memberof WaasPolicyLayerUpdateRequest
|
|
31
32
|
*/
|
|
32
33
|
rule?: WaasPolicyRule;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {WaasPolicyDeclarativeRuleInput}
|
|
37
|
+
* @memberof WaasPolicyLayerUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
declarativeRule?: WaasPolicyDeclarativeRuleInput;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
2
3
|
import { WaasPolicyLayerRuleFromJSON, WaasPolicyLayerRuleToJSON } from './WaasPolicyLayerRule.js';
|
|
3
4
|
import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
|
|
4
5
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
@@ -25,6 +26,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'op': json['op'],
|
|
27
28
|
'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
|
|
29
|
+
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
28
30
|
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
29
31
|
'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
|
|
30
32
|
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleFromJSON)),
|
|
@@ -40,6 +42,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
|
|
|
40
42
|
return {
|
|
41
43
|
'op': value.op,
|
|
42
44
|
'rule': WaasPolicyRuleToJSON(value.rule),
|
|
45
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
43
46
|
'ruleId': value.ruleId,
|
|
44
47
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
|
|
45
48
|
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleToJSON)),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
6
7
|
var WaasPolicyLayerRule = require('./WaasPolicyLayerRule.cjs');
|
|
7
8
|
var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
|
|
8
9
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
@@ -29,6 +30,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
29
30
|
return {
|
|
30
31
|
'op': json['op'],
|
|
31
32
|
'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
|
|
33
|
+
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
32
34
|
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
33
35
|
'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
|
|
34
36
|
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRule.WaasPolicyLayerRuleFromJSON)),
|
|
@@ -45,6 +47,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
|
|
|
45
47
|
return {
|
|
46
48
|
'op': value.op,
|
|
47
49
|
'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
|
|
50
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
48
51
|
'ruleId': value.ruleId,
|
|
49
52
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
|
|
50
53
|
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRule.WaasPolicyLayerRuleToJSON)),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
12
13
|
import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
|
|
13
14
|
import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
|
|
14
15
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
@@ -30,6 +31,12 @@ export interface WaasSignerPolicyLayerUpdateRequest {
|
|
|
30
31
|
* @memberof WaasSignerPolicyLayerUpdateRequest
|
|
31
32
|
*/
|
|
32
33
|
rule?: WaasPolicyRule;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {WaasPolicyDeclarativeRuleInput}
|
|
37
|
+
* @memberof WaasSignerPolicyLayerUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
declarativeRule?: WaasPolicyDeclarativeRuleInput;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
2
3
|
import { WaasPolicyLayerRuleFromJSON, WaasPolicyLayerRuleToJSON } from './WaasPolicyLayerRule.js';
|
|
3
4
|
import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
|
|
4
5
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
@@ -25,6 +26,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
25
26
|
return {
|
|
26
27
|
'op': json['op'],
|
|
27
28
|
'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
|
|
29
|
+
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
28
30
|
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
29
31
|
'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
|
|
30
32
|
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleFromJSON)),
|
|
@@ -41,6 +43,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
|
|
|
41
43
|
return {
|
|
42
44
|
'op': value.op,
|
|
43
45
|
'rule': WaasPolicyRuleToJSON(value.rule),
|
|
46
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
44
47
|
'ruleId': value.ruleId,
|
|
45
48
|
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
|
|
46
49
|
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleToJSON)),
|
package/src/models/index.d.ts
CHANGED
|
@@ -723,6 +723,7 @@ export * from './SignMessageApprovalQuorum';
|
|
|
723
723
|
export * from './SignMessageApprovalQuorumEip7702AuthOperation';
|
|
724
724
|
export * from './SignMessageApprovalQuorumEvmTransactionOperation';
|
|
725
725
|
export * from './SignMessageApprovalQuorumIntent';
|
|
726
|
+
export * from './SignMessageApprovalQuorumIntentLifetime';
|
|
726
727
|
export * from './SignMessageApprovalQuorumIntentLimits';
|
|
727
728
|
export * from './SignMessageApprovalQuorumIntentOperation';
|
|
728
729
|
export * from './SignMessageApprovalQuorumIntentOperationHeader';
|
|
@@ -905,6 +906,7 @@ export * from './WaasPolicyConstraintCondition';
|
|
|
905
906
|
export * from './WaasPolicyCreateRequest';
|
|
906
907
|
export * from './WaasPolicyDeclarativeApprovalRequirement';
|
|
907
908
|
export * from './WaasPolicyDeclarativeRule';
|
|
909
|
+
export * from './WaasPolicyDeclarativeRuleInput';
|
|
908
910
|
export * from './WaasPolicyDeleteRequest';
|
|
909
911
|
export * from './WaasPolicyLayerResponse';
|
|
910
912
|
export * from './WaasPolicyLayerResponseLayerContent';
|