@dynamic-labs/sdk-api-core 0.44.0 → 0.46.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/SDKApi.cjs +3 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.js +3 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +3 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +3 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +28 -4
- package/src/index.cjs.map +1 -1
- package/src/index.js +4 -1
- package/src/index.js.map +1 -1
- package/src/models/SignMessageApprovalQuorum.cjs +0 -3
- package/src/models/SignMessageApprovalQuorum.cjs.map +1 -1
- package/src/models/SignMessageApprovalQuorum.d.ts +1 -8
- package/src/models/SignMessageApprovalQuorum.js +0 -3
- package/src/models/SignMessageApprovalQuorum.js.map +1 -1
- package/src/models/WaasEnvPolicyLayerUpdateRequest.cjs +33 -0
- package/src/models/WaasEnvPolicyLayerUpdateRequest.cjs.map +1 -0
- package/src/models/WaasEnvPolicyLayerUpdateRequest.d.ts +28 -0
- package/src/models/WaasEnvPolicyLayerUpdateRequest.js +27 -0
- package/src/models/WaasEnvPolicyLayerUpdateRequest.js.map +1 -0
- package/src/models/WaasPolicyAction.cjs +40 -0
- package/src/models/WaasPolicyAction.cjs.map +1 -0
- package/src/models/WaasPolicyAction.d.ts +23 -0
- package/src/models/WaasPolicyAction.js +34 -0
- package/src/models/WaasPolicyAction.js.map +1 -0
- package/src/models/WaasPolicyDeclarativeRule.cjs +53 -0
- package/src/models/WaasPolicyDeclarativeRule.cjs.map +1 -0
- package/src/models/WaasPolicyDeclarativeRule.d.ts +66 -0
- package/src/models/WaasPolicyDeclarativeRule.js +47 -0
- package/src/models/WaasPolicyDeclarativeRule.js.map +1 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.cjs +2 -3
- package/src/models/WaasPolicyLayerResponseLayerContent.cjs.map +1 -1
- package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +3 -4
- package/src/models/WaasPolicyLayerResponseLayerContent.js +2 -3
- package/src/models/WaasPolicyLayerResponseLayerContent.js.map +1 -1
- package/src/models/WaasPolicyLayerRule.cjs +85 -0
- package/src/models/WaasPolicyLayerRule.cjs.map +1 -0
- package/src/models/WaasPolicyLayerRule.d.ts +150 -0
- package/src/models/WaasPolicyLayerRule.js +79 -0
- package/src/models/WaasPolicyLayerRule.js.map +1 -0
- package/src/models/index.d.ts +4 -1
- package/src/models/SignMessageApprovalQuorumApproval.cjs +0 -45
- package/src/models/SignMessageApprovalQuorumApproval.cjs.map +0 -1
- package/src/models/SignMessageApprovalQuorumApproval.d.ts +0 -33
- package/src/models/SignMessageApprovalQuorumApproval.js +0 -39
- package/src/models/SignMessageApprovalQuorumApproval.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyActionFromJSON, WaasPolicyActionToJSON } from './WaasPolicyAction.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var WaasPolicyDeclarativeRulePhaseEnum;
|
|
10
|
+
(function (WaasPolicyDeclarativeRulePhaseEnum) {
|
|
11
|
+
WaasPolicyDeclarativeRulePhaseEnum["Transaction"] = "transaction";
|
|
12
|
+
WaasPolicyDeclarativeRulePhaseEnum["Operation"] = "operation";
|
|
13
|
+
})(WaasPolicyDeclarativeRulePhaseEnum || (WaasPolicyDeclarativeRulePhaseEnum = {}));
|
|
14
|
+
function WaasPolicyDeclarativeRuleFromJSON(json) {
|
|
15
|
+
return WaasPolicyDeclarativeRuleFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasPolicyDeclarativeRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'ruleId': json['ruleId'],
|
|
23
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
24
|
+
'phase': json['phase'],
|
|
25
|
+
'when': json['when'],
|
|
26
|
+
'then': WaasPolicyActionFromJSON(json['then']),
|
|
27
|
+
'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function WaasPolicyDeclarativeRuleToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'ruleId': value.ruleId,
|
|
39
|
+
'name': value.name,
|
|
40
|
+
'phase': value.phase,
|
|
41
|
+
'when': value.when,
|
|
42
|
+
'then': WaasPolicyActionToJSON(value.then),
|
|
43
|
+
'modifiableBySigner': value.modifiableBySigner,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { WaasPolicyDeclarativeRuleFromJSON, WaasPolicyDeclarativeRuleFromJSONTyped, WaasPolicyDeclarativeRulePhaseEnum, WaasPolicyDeclarativeRuleToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaasPolicyDeclarativeRule.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyDeclarativeRule.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAAA;AAkEA;;;AAGE;IACU,mCAGX;AAHD,CAAA,UAAY,kCAAkC,EAAA;AAC1C,IAAA,kCAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,kCAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AAC3B,CAAC,EAHW,kCAAkC,KAAlC,kCAAkC,GAG7C,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C;AACN;;;;"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
-
var WaasPolicyLayerResponseRule = require('./WaasPolicyLayerResponseRule.cjs');
|
|
7
6
|
|
|
8
7
|
/* tslint:disable */
|
|
9
8
|
function WaasPolicyLayerResponseLayerContentFromJSON(json) {
|
|
@@ -14,7 +13,7 @@ function WaasPolicyLayerResponseLayerContentFromJSONTyped(json, ignoreDiscrimina
|
|
|
14
13
|
return json;
|
|
15
14
|
}
|
|
16
15
|
return {
|
|
17
|
-
'rules': !runtime.exists(json, 'rules') ? undefined :
|
|
16
|
+
'rules': !runtime.exists(json, 'rules') ? undefined : json['rules'],
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
19
|
function WaasPolicyLayerResponseLayerContentToJSON(value) {
|
|
@@ -25,7 +24,7 @@ function WaasPolicyLayerResponseLayerContentToJSON(value) {
|
|
|
25
24
|
return null;
|
|
26
25
|
}
|
|
27
26
|
return {
|
|
28
|
-
'rules': value.rules
|
|
27
|
+
'rules': value.rules,
|
|
29
28
|
};
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaasPolicyLayerResponseLayerContent.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":["exists"
|
|
1
|
+
{"version":3,"file":"WaasPolicyLayerResponseLayerContent.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":["exists"],"mappings":";;;;;;AAAA;AA6BM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,OAAO,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN;;;;;;"}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { WaasPolicyLayerResponseRule } from './WaasPolicyLayerResponseRule';
|
|
13
12
|
/**
|
|
14
13
|
* The decrypted, mutated wallet-Layer document
|
|
15
14
|
* @export
|
|
@@ -17,11 +16,11 @@ import { WaasPolicyLayerResponseRule } from './WaasPolicyLayerResponseRule';
|
|
|
17
16
|
*/
|
|
18
17
|
export interface WaasPolicyLayerResponseLayerContent {
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<
|
|
19
|
+
* The Layer's Rules, in whichever syntax it holds — legacy (WaasPolicyLayerResponseRule) or the policy rule language (WaasPolicyDeclarativeRule). Free-form for the same reason the request side is: which syntax a Layer may hold, and that it holds only one, are the enclave's checks, not this contract's. Pinning the legacy shape here would make a successful write of a declarative Layer return a body that violates its own response schema.
|
|
20
|
+
* @type {Array<object>}
|
|
22
21
|
* @memberof WaasPolicyLayerResponseLayerContent
|
|
23
22
|
*/
|
|
24
|
-
rules?: Array<
|
|
23
|
+
rules?: Array<object>;
|
|
25
24
|
}
|
|
26
25
|
export declare function WaasPolicyLayerResponseLayerContentFromJSON(json: any): WaasPolicyLayerResponseLayerContent;
|
|
27
26
|
export declare function WaasPolicyLayerResponseLayerContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerResponseLayerContent;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
-
import { WaasPolicyLayerResponseRuleFromJSON, WaasPolicyLayerResponseRuleToJSON } from './WaasPolicyLayerResponseRule.js';
|
|
3
2
|
|
|
4
3
|
/* tslint:disable */
|
|
5
4
|
function WaasPolicyLayerResponseLayerContentFromJSON(json) {
|
|
@@ -10,7 +9,7 @@ function WaasPolicyLayerResponseLayerContentFromJSONTyped(json, ignoreDiscrimina
|
|
|
10
9
|
return json;
|
|
11
10
|
}
|
|
12
11
|
return {
|
|
13
|
-
'rules': !exists(json, 'rules') ? undefined :
|
|
12
|
+
'rules': !exists(json, 'rules') ? undefined : json['rules'],
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
function WaasPolicyLayerResponseLayerContentToJSON(value) {
|
|
@@ -21,7 +20,7 @@ function WaasPolicyLayerResponseLayerContentToJSON(value) {
|
|
|
21
20
|
return null;
|
|
22
21
|
}
|
|
23
22
|
return {
|
|
24
|
-
'rules': value.rules
|
|
23
|
+
'rules': value.rules,
|
|
25
24
|
};
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaasPolicyLayerResponseLayerContent.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WaasPolicyLayerResponseLayerContent.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AA6BM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN;;;;"}
|
|
@@ -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 WaasPolicyRuleApprovalRequirements = require('./WaasPolicyRuleApprovalRequirements.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.WaasPolicyLayerRulePhaseEnum = void 0;
|
|
20
|
+
(function (WaasPolicyLayerRulePhaseEnum) {
|
|
21
|
+
WaasPolicyLayerRulePhaseEnum["Transaction"] = "transaction";
|
|
22
|
+
WaasPolicyLayerRulePhaseEnum["Operation"] = "operation";
|
|
23
|
+
})(exports.WaasPolicyLayerRulePhaseEnum || (exports.WaasPolicyLayerRulePhaseEnum = {}));
|
|
24
|
+
function WaasPolicyLayerRuleFromJSON(json) {
|
|
25
|
+
return WaasPolicyLayerRuleFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function WaasPolicyLayerRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'ruleId': 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(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSON)),
|
|
48
|
+
'phase': json['phase'],
|
|
49
|
+
'when': json['when'],
|
|
50
|
+
'then': WaasPolicyAction.WaasPolicyActionFromJSON(json['then']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function WaasPolicyLayerRuleToJSON(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(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsToJSON)),
|
|
77
|
+
'phase': value.phase,
|
|
78
|
+
'when': value.when,
|
|
79
|
+
'then': WaasPolicyAction.WaasPolicyActionToJSON(value.then),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
exports.WaasPolicyLayerRuleFromJSON = WaasPolicyLayerRuleFromJSON;
|
|
84
|
+
exports.WaasPolicyLayerRuleFromJSONTyped = WaasPolicyLayerRuleFromJSONTyped;
|
|
85
|
+
exports.WaasPolicyLayerRuleToJSON = WaasPolicyLayerRuleToJSON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaasPolicyLayerRule.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerRule.ts"],"sourcesContent":null,"names":["WaasPolicyLayerRulePhaseEnum","WaasPolicyRuleTypeFromJSON","exists","WaasChainEnumFromJSON","WaasPolicyArgumentConstraintFromJSON","WaasPolicyRuleValueLimitFromJSON","WaasPolicyRuleOperationRestrictionsFromJSON","WaasPolicyRuleApprovalRequirementsFromJSON","WaasPolicyActionFromJSON","WaasPolicyRuleTypeToJSON","WaasChainEnumToJSON","WaasPolicyArgumentConstraintToJSON","WaasPolicyRuleValueLimitToJSON","WaasPolicyRuleOperationRestrictionsToJSON","WaasPolicyRuleApprovalRequirementsToJSON","WaasPolicyActionToJSON"],"mappings":";;;;;;;;;;;;;AAAA;AAgMA;;;AAGE;AACUA,8CAGX;AAHD,CAAA,UAAY,4BAA4B,EAAA;A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|
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 { WaasPolicyRuleApprovalRequirements } from './WaasPolicyRuleApprovalRequirements';
|
|
16
|
+
import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
|
|
17
|
+
import { WaasPolicyRuleType } from './WaasPolicyRuleType';
|
|
18
|
+
import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface WaasPolicyLayerRule
|
|
23
|
+
*/
|
|
24
|
+
export interface WaasPolicyLayerRule {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WaasPolicyLayerRule
|
|
29
|
+
*/
|
|
30
|
+
ruleId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable name for the rule
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WaasPolicyLayerRule
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {WaasPolicyRuleType}
|
|
40
|
+
* @memberof WaasPolicyLayerRule
|
|
41
|
+
*/
|
|
42
|
+
ruleType: WaasPolicyRuleType;
|
|
43
|
+
/**
|
|
44
|
+
* Target address EVM or SVM (legacy field)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WaasPolicyLayerRule
|
|
47
|
+
*/
|
|
48
|
+
address?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Target address(es) EVM or SVM
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof WaasPolicyLayerRule
|
|
53
|
+
*/
|
|
54
|
+
addresses?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {WaasChainEnum}
|
|
58
|
+
* @memberof WaasPolicyLayerRule
|
|
59
|
+
*/
|
|
60
|
+
chain: WaasChainEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Chain ID for the policy rule (legacy field)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof WaasPolicyLayerRule
|
|
65
|
+
*/
|
|
66
|
+
chainId?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Chain IDs for the policy rule
|
|
69
|
+
* @type {Array<number>}
|
|
70
|
+
* @memberof WaasPolicyLayerRule
|
|
71
|
+
*/
|
|
72
|
+
chainIds?: Array<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Contract ABI interface
|
|
75
|
+
* @type {Array<object>}
|
|
76
|
+
* @memberof WaasPolicyLayerRule
|
|
77
|
+
*/
|
|
78
|
+
contractAbi?: Array<object>;
|
|
79
|
+
/**
|
|
80
|
+
* Specific function name to permit/deny
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof WaasPolicyLayerRule
|
|
83
|
+
*/
|
|
84
|
+
functionName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Validation rules for function arguments
|
|
87
|
+
* @type {Array<WaasPolicyArgumentConstraint>}
|
|
88
|
+
* @memberof WaasPolicyLayerRule
|
|
89
|
+
*/
|
|
90
|
+
argumentConstraints?: Array<WaasPolicyArgumentConstraint>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {WaasPolicyRuleValueLimit}
|
|
94
|
+
* @memberof WaasPolicyLayerRule
|
|
95
|
+
*/
|
|
96
|
+
valueLimit?: WaasPolicyRuleValueLimit;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {WaasPolicyRuleOperationRestrictions}
|
|
100
|
+
* @memberof WaasPolicyLayerRule
|
|
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 WaasPolicyLayerRule
|
|
107
|
+
*/
|
|
108
|
+
disableBlockaidSecurityChecks?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* When true, a Signer may adjust this Rule within its recognised shape
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof WaasPolicyLayerRule
|
|
113
|
+
*/
|
|
114
|
+
modifiableBySigner?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Multi-party approval requirements for this Rule. Enforced only for accounts that support them; ignored for other accounts. when.initiatorRole and when.actionTypes are not yet resolved — until they are, a requirement that sets either field applies to all approvers, not just the named role.
|
|
117
|
+
* @type {Array<WaasPolicyRuleApprovalRequirements>}
|
|
118
|
+
* @memberof WaasPolicyLayerRule
|
|
119
|
+
*/
|
|
120
|
+
approvalRequirements?: Array<WaasPolicyRuleApprovalRequirements>;
|
|
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 WaasPolicyLayerRule
|
|
125
|
+
*/
|
|
126
|
+
phase: WaasPolicyLayerRulePhaseEnum;
|
|
127
|
+
/**
|
|
128
|
+
* Condition in the policy rule language, validated against the field catalog on write and again on read
|
|
129
|
+
* @type {object}
|
|
130
|
+
* @memberof WaasPolicyLayerRule
|
|
131
|
+
*/
|
|
132
|
+
when: object;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {WaasPolicyAction}
|
|
136
|
+
* @memberof WaasPolicyLayerRule
|
|
137
|
+
*/
|
|
138
|
+
then: WaasPolicyAction;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
* @enum {string}
|
|
143
|
+
*/
|
|
144
|
+
export declare enum WaasPolicyLayerRulePhaseEnum {
|
|
145
|
+
Transaction = "transaction",
|
|
146
|
+
Operation = "operation"
|
|
147
|
+
}
|
|
148
|
+
export declare function WaasPolicyLayerRuleFromJSON(json: any): WaasPolicyLayerRule;
|
|
149
|
+
export declare function WaasPolicyLayerRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerRule;
|
|
150
|
+
export declare function WaasPolicyLayerRuleToJSON(value?: WaasPolicyLayerRule | 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 { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsToJSON } from './WaasPolicyRuleApprovalRequirements.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 WaasPolicyLayerRulePhaseEnum;
|
|
16
|
+
(function (WaasPolicyLayerRulePhaseEnum) {
|
|
17
|
+
WaasPolicyLayerRulePhaseEnum["Transaction"] = "transaction";
|
|
18
|
+
WaasPolicyLayerRulePhaseEnum["Operation"] = "operation";
|
|
19
|
+
})(WaasPolicyLayerRulePhaseEnum || (WaasPolicyLayerRulePhaseEnum = {}));
|
|
20
|
+
function WaasPolicyLayerRuleFromJSON(json) {
|
|
21
|
+
return WaasPolicyLayerRuleFromJSONTyped(json);
|
|
22
|
+
}
|
|
23
|
+
function WaasPolicyLayerRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'ruleId': 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(WaasPolicyRuleApprovalRequirementsFromJSON)),
|
|
44
|
+
'phase': json['phase'],
|
|
45
|
+
'when': json['when'],
|
|
46
|
+
'then': WaasPolicyActionFromJSON(json['then']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WaasPolicyLayerRuleToJSON(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(WaasPolicyRuleApprovalRequirementsToJSON)),
|
|
73
|
+
'phase': value.phase,
|
|
74
|
+
'when': value.when,
|
|
75
|
+
'then': WaasPolicyActionToJSON(value.then),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { WaasPolicyLayerRuleFromJSON, WaasPolicyLayerRuleFromJSONTyped, WaasPolicyLayerRulePhaseEnum, WaasPolicyLayerRuleToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaasPolicyLayerRule.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerRule.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAAA;AAgMA;;;AAGE;IACU,6BAGX;AAHD,CAAA,UAAY,4BAA4B,EAAA;AACpC,IAAA,4BAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,4BAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AAC3B,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,GAGvC,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,2BAA2B,CAAC,IAAS,EAAA;AACjD,IAAA,OAAO,gCAAgC,CAAC,IAAW,CAAC,CAAC;AACzD,CAAC;AAEe,SAAA,gCAAgC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;AACxB,QAAA,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;AACpB,QAAA,UAAU,EAAE,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACxD,QAAA,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;AACjE,QAAA,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CA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,EAAE,KAAK,CAAC,kBAAkB;QAC9C,sBAAsB,EAAE,KAAK,CAAC,oBAAoB,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,oBAAmC,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QACzK,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;AAClB,QAAA,MAAM,EAAE,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;KAC7C,CAAC;AACN;;;;"}
|
package/src/models/index.d.ts
CHANGED
|
@@ -424,7 +424,6 @@ export * from './SettlementStrategyEnum';
|
|
|
424
424
|
export * from './SignAleoRequestWithWaasRequest';
|
|
425
425
|
export * from './SignInProviderEnum';
|
|
426
426
|
export * from './SignMessageApprovalQuorum';
|
|
427
|
-
export * from './SignMessageApprovalQuorumApproval';
|
|
428
427
|
export * from './SignMessageApprovalQuorumIntent';
|
|
429
428
|
export * from './SignMessageAuthorizationSignature';
|
|
430
429
|
export * from './SignMessageBtcTransaction';
|
|
@@ -539,11 +538,15 @@ export * from './VerifyUnlinkRequest';
|
|
|
539
538
|
export * from './WaasBackupOptionsEnum';
|
|
540
539
|
export * from './WaasChainEnum';
|
|
541
540
|
export * from './WaasDelegatedAccessEncryptionPublicKeyType';
|
|
541
|
+
export * from './WaasEnvPolicyLayerUpdateRequest';
|
|
542
|
+
export * from './WaasPolicyAction';
|
|
542
543
|
export * from './WaasPolicyArgumentConstraint';
|
|
543
544
|
export * from './WaasPolicyConstraintCondition';
|
|
545
|
+
export * from './WaasPolicyDeclarativeRule';
|
|
544
546
|
export * from './WaasPolicyLayerResponse';
|
|
545
547
|
export * from './WaasPolicyLayerResponseLayerContent';
|
|
546
548
|
export * from './WaasPolicyLayerResponseRule';
|
|
549
|
+
export * from './WaasPolicyLayerRule';
|
|
547
550
|
export * from './WaasPolicyLayerRuleOperation';
|
|
548
551
|
export * from './WaasPolicyLayerUpdateRequest';
|
|
549
552
|
export * from './WaasPolicyRule';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
|
-
function SignMessageApprovalQuorumApprovalFromJSON(json) {
|
|
19
|
-
return SignMessageApprovalQuorumApprovalFromJSONTyped(json);
|
|
20
|
-
}
|
|
21
|
-
function SignMessageApprovalQuorumApprovalFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'proof': json['proof'],
|
|
27
|
-
'signature': json['signature'],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function SignMessageApprovalQuorumApprovalToJSON(value) {
|
|
31
|
-
if (value === undefined) {
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
if (value === null) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'proof': value.proof,
|
|
39
|
-
'signature': value.signature,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.SignMessageApprovalQuorumApprovalFromJSON = SignMessageApprovalQuorumApprovalFromJSON;
|
|
44
|
-
exports.SignMessageApprovalQuorumApprovalFromJSONTyped = SignMessageApprovalQuorumApprovalFromJSONTyped;
|
|
45
|
-
exports.SignMessageApprovalQuorumApprovalToJSON = SignMessageApprovalQuorumApprovalToJSON;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignMessageApprovalQuorumApproval.cjs","sources":["../../../../../libs/sdk-api-core/src/models/SignMessageApprovalQuorumApproval.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAAA;AACA;AACA;;;;;;;;;;AAUG;AAuBG,SAAU,yCAAyC,CAAC,IAAS,EAAA;AAC/D,IAAA,OAAO,8CAA8C,CAAC,IAAW,CAAC,CAAC;AACvE,CAAC;AAEe,SAAA,8CAA8C,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAClG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;AACtB,QAAA,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAEK,SAAU,uCAAuC,CAAC,KAAgD,EAAA;AACpG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,WAAW,EAAE,KAAK,CAAC,SAAS;KAC/B,CAAC;AACN;;;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SignMessageApprovalQuorumApproval
|
|
16
|
-
*/
|
|
17
|
-
export interface SignMessageApprovalQuorumApproval {
|
|
18
|
-
/**
|
|
19
|
-
* An opaque consent proof for this approver, minted while their own session was still live.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SignMessageApprovalQuorumApproval
|
|
22
|
-
*/
|
|
23
|
-
proof: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* Signature over the canonical `{ approvedAt, intent }` (the same Intent the Initiator signed, plus this approver's own timestamp), made with this approver's own session key.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SignMessageApprovalQuorumApproval
|
|
28
|
-
*/
|
|
29
|
-
signature: string | null;
|
|
30
|
-
}
|
|
31
|
-
export declare function SignMessageApprovalQuorumApprovalFromJSON(json: any): SignMessageApprovalQuorumApproval;
|
|
32
|
-
export declare function SignMessageApprovalQuorumApprovalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageApprovalQuorumApproval;
|
|
33
|
-
export declare function SignMessageApprovalQuorumApprovalToJSON(value?: SignMessageApprovalQuorumApproval | null): any;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
function SignMessageApprovalQuorumApprovalFromJSON(json) {
|
|
15
|
-
return SignMessageApprovalQuorumApprovalFromJSONTyped(json);
|
|
16
|
-
}
|
|
17
|
-
function SignMessageApprovalQuorumApprovalFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if ((json === undefined) || (json === null)) {
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
'proof': json['proof'],
|
|
23
|
-
'signature': json['signature'],
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function SignMessageApprovalQuorumApprovalToJSON(value) {
|
|
27
|
-
if (value === undefined) {
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
if (value === null) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'proof': value.proof,
|
|
35
|
-
'signature': value.signature,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { SignMessageApprovalQuorumApprovalFromJSON, SignMessageApprovalQuorumApprovalFromJSONTyped, SignMessageApprovalQuorumApprovalToJSON };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignMessageApprovalQuorumApproval.js","sources":["../../../../../libs/sdk-api-core/src/models/SignMessageApprovalQuorumApproval.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAuBG,SAAU,yCAAyC,CAAC,IAAS,EAAA;AAC/D,IAAA,OAAO,8CAA8C,CAAC,IAAW,CAAC,CAAC;AACvE,CAAC;AAEe,SAAA,8CAA8C,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAClG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;AACtB,QAAA,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAEK,SAAU,uCAAuC,CAAC,KAAgD,EAAA;AACpG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,WAAW,EAAE,KAAK,CAAC,SAAS;KAC/B,CAAC;AACN;;;;"}
|