@dynamic-labs/sdk-api 0.0.747 → 0.0.748
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/models/WaasPolicyCreateRequest.cjs +0 -3
- package/src/models/WaasPolicyCreateRequest.d.ts +0 -7
- package/src/models/WaasPolicyCreateRequest.js +0 -3
- package/src/models/WaasPolicyRule.cjs +5 -0
- package/src/models/WaasPolicyRule.d.ts +13 -0
- package/src/models/WaasPolicyRule.js +5 -0
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
5
|
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
7
6
|
|
|
8
7
|
/* tslint:disable */
|
|
@@ -15,7 +14,6 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
14
|
}
|
|
16
15
|
return {
|
|
17
16
|
'policyName': json['policyName'],
|
|
18
|
-
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
19
17
|
'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
20
18
|
};
|
|
21
19
|
}
|
|
@@ -28,7 +26,6 @@ function WaasPolicyCreateRequestToJSON(value) {
|
|
|
28
26
|
}
|
|
29
27
|
return {
|
|
30
28
|
'policyName': value.policyName,
|
|
31
|
-
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
32
29
|
'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
33
30
|
};
|
|
34
31
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ChainEnum } from './ChainEnum';
|
|
13
12
|
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -23,12 +22,6 @@ export interface WaasPolicyCreateRequest {
|
|
|
23
22
|
* @memberof WaasPolicyCreateRequest
|
|
24
23
|
*/
|
|
25
24
|
policyName: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {ChainEnum}
|
|
29
|
-
* @memberof WaasPolicyCreateRequest
|
|
30
|
-
*/
|
|
31
|
-
chain: ChainEnum;
|
|
32
25
|
/**
|
|
33
26
|
* Array of rules defining the policy permissions
|
|
34
27
|
* @type {Array<WaasPolicyRule>}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
1
|
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
3
2
|
|
|
4
3
|
/* tslint:disable */
|
|
@@ -11,7 +10,6 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
10
|
}
|
|
12
11
|
return {
|
|
13
12
|
'policyName': json['policyName'],
|
|
14
|
-
'chain': ChainEnumFromJSON(json['chain']),
|
|
15
13
|
'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
|
|
16
14
|
};
|
|
17
15
|
}
|
|
@@ -24,7 +22,6 @@ function WaasPolicyCreateRequestToJSON(value) {
|
|
|
24
22
|
}
|
|
25
23
|
return {
|
|
26
24
|
'policyName': value.policyName,
|
|
27
|
-
'chain': ChainEnumToJSON(value.chain),
|
|
28
25
|
'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
|
|
29
26
|
};
|
|
30
27
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasChainEnum = require('./WaasChainEnum.cjs');
|
|
6
7
|
var WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
|
|
7
8
|
var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
|
|
8
9
|
var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
|
|
@@ -18,6 +19,8 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
return {
|
|
19
20
|
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
20
21
|
'address': json['address'],
|
|
22
|
+
'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
|
|
23
|
+
'chainId': json['chainId'],
|
|
21
24
|
'contractAbi': !runtime.exists(json, 'contractAbi') ? undefined : json['contractAbi'],
|
|
22
25
|
'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
|
|
23
26
|
'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
|
|
@@ -34,6 +37,8 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
34
37
|
return {
|
|
35
38
|
'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
36
39
|
'address': value.address,
|
|
40
|
+
'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
|
|
41
|
+
'chainId': value.chainId,
|
|
37
42
|
'contractAbi': value.contractAbi,
|
|
38
43
|
'functionName': value.functionName,
|
|
39
44
|
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { WaasChainEnum } from './WaasChainEnum';
|
|
12
13
|
import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
|
|
13
14
|
import { WaasPolicyRuleType } from './WaasPolicyRuleType';
|
|
14
15
|
import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
|
|
@@ -30,6 +31,18 @@ export interface WaasPolicyRule {
|
|
|
30
31
|
* @memberof WaasPolicyRule
|
|
31
32
|
*/
|
|
32
33
|
address: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {WaasChainEnum}
|
|
37
|
+
* @memberof WaasPolicyRule
|
|
38
|
+
*/
|
|
39
|
+
chain: WaasChainEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Chain ID for the policy rule
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof WaasPolicyRule
|
|
44
|
+
*/
|
|
45
|
+
chainId: number;
|
|
33
46
|
/**
|
|
34
47
|
* Contract ABI interface
|
|
35
48
|
* @type {Array<object>}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
2
3
|
import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
|
|
3
4
|
import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
|
|
4
5
|
import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
|
|
@@ -14,6 +15,8 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
return {
|
|
15
16
|
'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
|
|
16
17
|
'address': json['address'],
|
|
18
|
+
'chain': WaasChainEnumFromJSON(json['chain']),
|
|
19
|
+
'chainId': json['chainId'],
|
|
17
20
|
'contractAbi': !exists(json, 'contractAbi') ? undefined : json['contractAbi'],
|
|
18
21
|
'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
|
|
19
22
|
'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
|
|
@@ -30,6 +33,8 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
30
33
|
return {
|
|
31
34
|
'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
|
|
32
35
|
'address': value.address,
|
|
36
|
+
'chain': WaasChainEnumToJSON(value.chain),
|
|
37
|
+
'chainId': value.chainId,
|
|
33
38
|
'contractAbi': value.contractAbi,
|
|
34
39
|
'functionName': value.functionName,
|
|
35
40
|
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),
|