@dynamic-labs/sdk-api 0.0.765 → 0.0.766

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.765",
3
+ "version": "0.0.766",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -20,9 +20,11 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
21
21
  'name': json['name'],
22
22
  'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
23
- 'address': json['address'],
23
+ 'address': !runtime.exists(json, 'address') ? undefined : json['address'],
24
+ 'addresses': !runtime.exists(json, 'addresses') ? undefined : json['addresses'],
24
25
  'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
25
- 'chainId': json['chainId'],
26
+ 'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
27
+ 'chainIds': !runtime.exists(json, 'chainIds') ? undefined : json['chainIds'],
26
28
  'contractAbi': !runtime.exists(json, 'contractAbi') ? undefined : json['contractAbi'],
27
29
  'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
28
30
  'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
@@ -41,8 +43,10 @@ function WaasPolicyRuleToJSON(value) {
41
43
  'name': value.name,
42
44
  'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
43
45
  'address': value.address,
46
+ 'addresses': value.addresses,
44
47
  'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
45
48
  'chainId': value.chainId,
49
+ 'chainIds': value.chainIds,
46
50
  'contractAbi': value.contractAbi,
47
51
  'functionName': value.functionName,
48
52
  'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
@@ -38,11 +38,17 @@ export interface WaasPolicyRule {
38
38
  */
39
39
  ruleType: WaasPolicyRuleType;
40
40
  /**
41
- * Target address EVM or SVM
41
+ * Target address EVM or SVM (legacy field)
42
42
  * @type {string}
43
43
  * @memberof WaasPolicyRule
44
44
  */
45
- address: string | null;
45
+ address?: string | null;
46
+ /**
47
+ * Target address(es) EVM or SVM
48
+ * @type {Array<string>}
49
+ * @memberof WaasPolicyRule
50
+ */
51
+ addresses?: Array<string>;
46
52
  /**
47
53
  *
48
54
  * @type {WaasChainEnum}
@@ -50,11 +56,17 @@ export interface WaasPolicyRule {
50
56
  */
51
57
  chain: WaasChainEnum;
52
58
  /**
53
- * Chain ID for the policy rule
59
+ * Chain ID for the policy rule (legacy field)
54
60
  * @type {number}
55
61
  * @memberof WaasPolicyRule
56
62
  */
57
- chainId: number;
63
+ chainId?: number;
64
+ /**
65
+ * Chain IDs for the policy rule
66
+ * @type {Array<number>}
67
+ * @memberof WaasPolicyRule
68
+ */
69
+ chainIds?: Array<number>;
58
70
  /**
59
71
  * Contract ABI interface
60
72
  * @type {Array<object>}
@@ -16,9 +16,11 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
17
17
  'name': json['name'],
18
18
  'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
19
- 'address': json['address'],
19
+ 'address': !exists(json, 'address') ? undefined : json['address'],
20
+ 'addresses': !exists(json, 'addresses') ? undefined : json['addresses'],
20
21
  'chain': WaasChainEnumFromJSON(json['chain']),
21
- 'chainId': json['chainId'],
22
+ 'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
23
+ 'chainIds': !exists(json, 'chainIds') ? undefined : json['chainIds'],
22
24
  'contractAbi': !exists(json, 'contractAbi') ? undefined : json['contractAbi'],
23
25
  'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
24
26
  'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
@@ -37,8 +39,10 @@ function WaasPolicyRuleToJSON(value) {
37
39
  'name': value.name,
38
40
  'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
39
41
  'address': value.address,
42
+ 'addresses': value.addresses,
40
43
  'chain': WaasChainEnumToJSON(value.chain),
41
44
  'chainId': value.chainId,
45
+ 'chainIds': value.chainIds,
42
46
  'contractAbi': value.contractAbi,
43
47
  'functionName': value.functionName,
44
48
  'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),