@dynamic-labs/sdk-api 0.0.765 → 0.0.767
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/ProjectSettingsSdkWaasDelegatedAccess.cjs +4 -0
- package/src/models/ProjectSettingsSdkWaasDelegatedAccess.d.ts +12 -0
- package/src/models/ProjectSettingsSdkWaasDelegatedAccess.js +4 -0
- package/src/models/WaasPolicyRule.cjs +6 -2
- package/src/models/WaasPolicyRule.d.ts +16 -4
- package/src/models/WaasPolicyRule.js +6 -2
package/package.json
CHANGED
|
@@ -14,6 +14,8 @@ function ProjectSettingsSdkWaasDelegatedAccessFromJSONTyped(json, ignoreDiscrimi
|
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
'enabled': !runtime.exists(json, 'enabled') ? undefined : json['enabled'],
|
|
17
|
+
'promptUsersOnSignIn': !runtime.exists(json, 'promptUsersOnSignIn') ? undefined : json['promptUsersOnSignIn'],
|
|
18
|
+
'requiresDelegation': !runtime.exists(json, 'requiresDelegation') ? undefined : json['requiresDelegation'],
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function ProjectSettingsSdkWaasDelegatedAccessToJSON(value) {
|
|
@@ -25,6 +27,8 @@ function ProjectSettingsSdkWaasDelegatedAccessToJSON(value) {
|
|
|
25
27
|
}
|
|
26
28
|
return {
|
|
27
29
|
'enabled': value.enabled,
|
|
30
|
+
'promptUsersOnSignIn': value.promptUsersOnSignIn,
|
|
31
|
+
'requiresDelegation': value.requiresDelegation,
|
|
28
32
|
};
|
|
29
33
|
}
|
|
30
34
|
|
|
@@ -21,6 +21,18 @@ export interface ProjectSettingsSdkWaasDelegatedAccess {
|
|
|
21
21
|
* @memberof ProjectSettingsSdkWaasDelegatedAccess
|
|
22
22
|
*/
|
|
23
23
|
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Prompt for delegated access when user logs in.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ProjectSettingsSdkWaasDelegatedAccess
|
|
28
|
+
*/
|
|
29
|
+
promptUsersOnSignIn?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If enabled, users will be required to delegate access.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ProjectSettingsSdkWaasDelegatedAccess
|
|
34
|
+
*/
|
|
35
|
+
requiresDelegation?: boolean;
|
|
24
36
|
}
|
|
25
37
|
export declare function ProjectSettingsSdkWaasDelegatedAccessFromJSON(json: any): ProjectSettingsSdkWaasDelegatedAccess;
|
|
26
38
|
export declare function ProjectSettingsSdkWaasDelegatedAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSdkWaasDelegatedAccess;
|
|
@@ -10,6 +10,8 @@ function ProjectSettingsSdkWaasDelegatedAccessFromJSONTyped(json, ignoreDiscrimi
|
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
13
|
+
'promptUsersOnSignIn': !exists(json, 'promptUsersOnSignIn') ? undefined : json['promptUsersOnSignIn'],
|
|
14
|
+
'requiresDelegation': !exists(json, 'requiresDelegation') ? undefined : json['requiresDelegation'],
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
function ProjectSettingsSdkWaasDelegatedAccessToJSON(value) {
|
|
@@ -21,6 +23,8 @@ function ProjectSettingsSdkWaasDelegatedAccessToJSON(value) {
|
|
|
21
23
|
}
|
|
22
24
|
return {
|
|
23
25
|
'enabled': value.enabled,
|
|
26
|
+
'promptUsersOnSignIn': value.promptUsersOnSignIn,
|
|
27
|
+
'requiresDelegation': value.requiresDelegation,
|
|
24
28
|
};
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -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
|
|
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
|
|
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)),
|