@dynamic-labs/sdk-api 0.0.751 → 0.0.753

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.751",
3
+ "version": "0.0.753",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -13,8 +13,8 @@ function SignMessageEvmTransactionFromJSONTyped(json, ignoreDiscriminator) {
13
13
  return json;
14
14
  }
15
15
  return {
16
- 'to': !runtime.exists(json, 'to') ? undefined : json['to'],
17
- 'chain': !runtime.exists(json, 'chain') ? undefined : json['chain'],
16
+ 'to': json['to'],
17
+ 'chainId': json['chainId'],
18
18
  'data': !runtime.exists(json, 'data') ? undefined : json['data'],
19
19
  'gas': !runtime.exists(json, 'gas') ? undefined : json['gas'],
20
20
  'gasPrice': !runtime.exists(json, 'gasPrice') ? undefined : json['gasPrice'],
@@ -33,7 +33,7 @@ function SignMessageEvmTransactionToJSON(value) {
33
33
  }
34
34
  return {
35
35
  'to': value.to,
36
- 'chain': value.chain,
36
+ 'chainId': value.chainId,
37
37
  'data': value.data,
38
38
  'gas': value.gas,
39
39
  'gasPrice': value.gasPrice,
@@ -20,13 +20,13 @@ export interface SignMessageEvmTransaction {
20
20
  * @type {string}
21
21
  * @memberof SignMessageEvmTransaction
22
22
  */
23
- to?: string;
23
+ to: string;
24
24
  /**
25
- * Chain identifier
26
- * @type {string}
25
+ * Chain ID
26
+ * @type {number}
27
27
  * @memberof SignMessageEvmTransaction
28
28
  */
29
- chain?: string;
29
+ chainId: number;
30
30
  /**
31
31
  * Transaction data as hex string
32
32
  * @type {string}
@@ -9,8 +9,8 @@ function SignMessageEvmTransactionFromJSONTyped(json, ignoreDiscriminator) {
9
9
  return json;
10
10
  }
11
11
  return {
12
- 'to': !exists(json, 'to') ? undefined : json['to'],
13
- 'chain': !exists(json, 'chain') ? undefined : json['chain'],
12
+ 'to': json['to'],
13
+ 'chainId': json['chainId'],
14
14
  'data': !exists(json, 'data') ? undefined : json['data'],
15
15
  'gas': !exists(json, 'gas') ? undefined : json['gas'],
16
16
  'gasPrice': !exists(json, 'gasPrice') ? undefined : json['gasPrice'],
@@ -29,7 +29,7 @@ function SignMessageEvmTransactionToJSON(value) {
29
29
  }
30
30
  return {
31
31
  'to': value.to,
32
- 'chain': value.chain,
32
+ 'chainId': value.chainId,
33
33
  'data': value.data,
34
34
  'gas': value.gas,
35
35
  'gasPrice': value.gasPrice,
@@ -13,7 +13,6 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
13
13
  return json;
14
14
  }
15
15
  return {
16
- 'policyName': json['policyName'],
17
16
  'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
18
17
  };
19
18
  }
@@ -25,7 +24,6 @@ function WaasPolicyCreateRequestToJSON(value) {
25
24
  return null;
26
25
  }
27
26
  return {
28
- 'policyName': value.policyName,
29
27
  'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
30
28
  };
31
29
  }
@@ -16,12 +16,6 @@ import { WaasPolicyRule } from './WaasPolicyRule';
16
16
  * @interface WaasPolicyCreateRequest
17
17
  */
18
18
  export interface WaasPolicyCreateRequest {
19
- /**
20
- * Human-readable name for the policy
21
- * @type {string}
22
- * @memberof WaasPolicyCreateRequest
23
- */
24
- policyName: string;
25
19
  /**
26
20
  * Array of rules defining the policy permissions
27
21
  * @type {Array<WaasPolicyRule>}
@@ -9,7 +9,6 @@ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
9
9
  return json;
10
10
  }
11
11
  return {
12
- 'policyName': json['policyName'],
13
12
  'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
14
13
  };
15
14
  }
@@ -21,7 +20,6 @@ function WaasPolicyCreateRequestToJSON(value) {
21
20
  return null;
22
21
  }
23
22
  return {
24
- 'policyName': value.policyName,
25
23
  'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
26
24
  };
27
25
  }
@@ -14,7 +14,6 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
14
14
  }
15
15
  return {
16
16
  'policyId': json['policyId'],
17
- 'policyName': json['policyName'],
18
17
  'projectEnvironmentId': json['projectEnvironmentId'],
19
18
  'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
20
19
  'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
@@ -29,7 +28,6 @@ function WaasPolicyResponseToJSON(value) {
29
28
  }
30
29
  return {
31
30
  'policyId': value.policyId,
32
- 'policyName': value.policyName,
33
31
  'projectEnvironmentId': value.projectEnvironmentId,
34
32
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
35
33
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
@@ -21,12 +21,6 @@ export interface WaasPolicyResponse {
21
21
  * @memberof WaasPolicyResponse
22
22
  */
23
23
  policyId: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof WaasPolicyResponse
28
- */
29
- policyName: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -10,7 +10,6 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
10
10
  }
11
11
  return {
12
12
  'policyId': json['policyId'],
13
- 'policyName': json['policyName'],
14
13
  'projectEnvironmentId': json['projectEnvironmentId'],
15
14
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
16
15
  'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
@@ -25,7 +24,6 @@ function WaasPolicyResponseToJSON(value) {
25
24
  }
26
25
  return {
27
26
  'policyId': value.policyId,
28
- 'policyName': value.policyName,
29
27
  'projectEnvironmentId': value.projectEnvironmentId,
30
28
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
31
29
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
@@ -17,6 +17,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
17
17
  return json;
18
18
  }
19
19
  return {
20
+ 'name': json['name'],
20
21
  'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
21
22
  'address': json['address'],
22
23
  'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
@@ -35,6 +36,7 @@ function WaasPolicyRuleToJSON(value) {
35
36
  return null;
36
37
  }
37
38
  return {
39
+ 'name': value.name,
38
40
  'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
39
41
  'address': value.address,
40
42
  'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
@@ -19,6 +19,12 @@ import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
19
19
  * @interface WaasPolicyRule
20
20
  */
21
21
  export interface WaasPolicyRule {
22
+ /**
23
+ * Human-readable name for the rule
24
+ * @type {string}
25
+ * @memberof WaasPolicyRule
26
+ */
27
+ name: string;
22
28
  /**
23
29
  *
24
30
  * @type {WaasPolicyRuleType}
@@ -13,6 +13,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
13
13
  return json;
14
14
  }
15
15
  return {
16
+ 'name': json['name'],
16
17
  'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
17
18
  'address': json['address'],
18
19
  'chain': WaasChainEnumFromJSON(json['chain']),
@@ -31,6 +32,7 @@ function WaasPolicyRuleToJSON(value) {
31
32
  return null;
32
33
  }
33
34
  return {
35
+ 'name': value.name,
34
36
  'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
35
37
  'address': value.address,
36
38
  'chain': WaasChainEnumToJSON(value.chain),
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../runtime.cjs');
6
5
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
6
 
8
7
  /* tslint:disable */
@@ -14,7 +13,6 @@ function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
14
13
  return json;
15
14
  }
16
15
  return {
17
- 'policyName': !runtime.exists(json, 'policyName') ? undefined : json['policyName'],
18
16
  'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
19
17
  };
20
18
  }
@@ -26,7 +24,6 @@ function WaasPolicyUpdateRequestToJSON(value) {
26
24
  return null;
27
25
  }
28
26
  return {
29
- 'policyName': value.policyName,
30
27
  'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
31
28
  };
32
29
  }
@@ -16,12 +16,6 @@ import { WaasPolicyRule } from './WaasPolicyRule';
16
16
  * @interface WaasPolicyUpdateRequest
17
17
  */
18
18
  export interface WaasPolicyUpdateRequest {
19
- /**
20
- * Human-readable name for the policy
21
- * @type {string}
22
- * @memberof WaasPolicyUpdateRequest
23
- */
24
- policyName?: string;
25
19
  /**
26
20
  * Array of rules defining the policy permissions
27
21
  * @type {Array<WaasPolicyRule>}
@@ -1,4 +1,3 @@
1
- import { exists } from '../runtime.js';
2
1
  import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
2
 
4
3
  /* tslint:disable */
@@ -10,7 +9,6 @@ function WaasPolicyUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
10
9
  return json;
11
10
  }
12
11
  return {
13
- 'policyName': !exists(json, 'policyName') ? undefined : json['policyName'],
14
12
  'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
15
13
  };
16
14
  }
@@ -22,7 +20,6 @@ function WaasPolicyUpdateRequestToJSON(value) {
22
20
  return null;
23
21
  }
24
22
  return {
25
- 'policyName': value.policyName,
26
23
  'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
27
24
  };
28
25
  }