@dynamic-labs/sdk-api 0.44.0 → 0.45.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.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -0
  3. package/src/apis/AdminActionsApi.js +3 -0
  4. package/src/apis/AllowlistsApi.cjs +3 -0
  5. package/src/apis/AllowlistsApi.js +3 -0
  6. package/src/apis/AnalyticsApi.cjs +3 -0
  7. package/src/apis/AnalyticsApi.js +3 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +3 -0
  9. package/src/apis/AuthorizedClientsApi.js +3 -0
  10. package/src/apis/BusinessAccountsApi.cjs +3 -0
  11. package/src/apis/BusinessAccountsApi.js +3 -0
  12. package/src/apis/CaptchaApi.cjs +3 -0
  13. package/src/apis/CaptchaApi.js +3 -0
  14. package/src/apis/ChainalysisApi.cjs +3 -0
  15. package/src/apis/ChainalysisApi.js +3 -0
  16. package/src/apis/ChainsApi.cjs +3 -0
  17. package/src/apis/ChainsApi.js +3 -0
  18. package/src/apis/CheckoutApi.cjs +3 -0
  19. package/src/apis/CheckoutApi.js +3 -0
  20. package/src/apis/ClientGrantApi.cjs +3 -0
  21. package/src/apis/ClientGrantApi.js +3 -0
  22. package/src/apis/CustomFieldsApi.cjs +3 -0
  23. package/src/apis/CustomFieldsApi.js +3 -0
  24. package/src/apis/CustomHostnamesApi.cjs +3 -0
  25. package/src/apis/CustomHostnamesApi.js +3 -0
  26. package/src/apis/CustomNetworksApi.cjs +3 -0
  27. package/src/apis/CustomNetworksApi.js +3 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +3 -0
  29. package/src/apis/DeeplinkUrlsApi.js +3 -0
  30. package/src/apis/EnvironmentsApi.cjs +3 -0
  31. package/src/apis/EnvironmentsApi.js +3 -0
  32. package/src/apis/EventsApi.cjs +3 -0
  33. package/src/apis/EventsApi.js +3 -0
  34. package/src/apis/ExchangesApi.cjs +3 -0
  35. package/src/apis/ExchangesApi.js +3 -0
  36. package/src/apis/ExportsApi.cjs +3 -0
  37. package/src/apis/ExportsApi.js +3 -0
  38. package/src/apis/ExternalJwtApi.cjs +3 -0
  39. package/src/apis/ExternalJwtApi.js +3 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +3 -0
  41. package/src/apis/FlowAnalyticsApi.js +3 -0
  42. package/src/apis/GaslessApi.cjs +3 -0
  43. package/src/apis/GaslessApi.js +3 -0
  44. package/src/apis/GatesApi.cjs +3 -0
  45. package/src/apis/GatesApi.js +3 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +3 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +3 -0
  50. package/src/apis/GlobalWalletsApi.cjs +3 -0
  51. package/src/apis/GlobalWalletsApi.js +3 -0
  52. package/src/apis/InvitesApi.cjs +3 -0
  53. package/src/apis/InvitesApi.js +3 -0
  54. package/src/apis/KybApi.cjs +3 -0
  55. package/src/apis/KybApi.js +3 -0
  56. package/src/apis/MembersApi.cjs +3 -0
  57. package/src/apis/MembersApi.js +3 -0
  58. package/src/apis/MfaSettingsApi.cjs +3 -0
  59. package/src/apis/MfaSettingsApi.js +3 -0
  60. package/src/apis/NameServicesApi.cjs +3 -0
  61. package/src/apis/NameServicesApi.js +3 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +3 -0
  63. package/src/apis/OrganizationSettingsApi.js +3 -0
  64. package/src/apis/OrganizationsApi.cjs +3 -0
  65. package/src/apis/OrganizationsApi.js +3 -0
  66. package/src/apis/OriginsApi.cjs +3 -0
  67. package/src/apis/OriginsApi.js +3 -0
  68. package/src/apis/ProjectsApi.cjs +3 -0
  69. package/src/apis/ProjectsApi.js +3 -0
  70. package/src/apis/ProvidersApi.cjs +3 -0
  71. package/src/apis/ProvidersApi.js +3 -0
  72. package/src/apis/SDKApi.cjs +3 -0
  73. package/src/apis/SDKApi.js +3 -0
  74. package/src/apis/SDKViewsApi.cjs +3 -0
  75. package/src/apis/SDKViewsApi.js +3 -0
  76. package/src/apis/ScreeningPoliciesApi.cjs +3 -0
  77. package/src/apis/ScreeningPoliciesApi.js +3 -0
  78. package/src/apis/ServerApi.cjs +3 -0
  79. package/src/apis/ServerApi.js +3 -0
  80. package/src/apis/SessionsApi.cjs +3 -0
  81. package/src/apis/SessionsApi.js +3 -0
  82. package/src/apis/TestAccountApi.cjs +3 -0
  83. package/src/apis/TestAccountApi.js +3 -0
  84. package/src/apis/TokensApi.cjs +3 -0
  85. package/src/apis/TokensApi.js +3 -0
  86. package/src/apis/UserApiTokensApi.cjs +3 -0
  87. package/src/apis/UserApiTokensApi.js +3 -0
  88. package/src/apis/UsersApi.cjs +3 -0
  89. package/src/apis/UsersApi.js +3 -0
  90. package/src/apis/VisitsApi.cjs +3 -0
  91. package/src/apis/VisitsApi.js +3 -0
  92. package/src/apis/WaasApi.cjs +61 -0
  93. package/src/apis/WaasApi.d.ts +28 -1
  94. package/src/apis/WaasApi.js +61 -0
  95. package/src/apis/WalletConnectApi.cjs +3 -0
  96. package/src/apis/WalletConnectApi.js +3 -0
  97. package/src/apis/WalletsApi.cjs +3 -0
  98. package/src/apis/WalletsApi.js +3 -0
  99. package/src/apis/WebhooksApi.cjs +3 -0
  100. package/src/apis/WebhooksApi.js +3 -0
  101. package/src/apis/YieldApi.cjs +3 -0
  102. package/src/apis/YieldApi.js +3 -0
  103. package/src/apis/ZendeskApi.cjs +3 -0
  104. package/src/apis/ZendeskApi.js +3 -0
  105. package/src/index.cjs +28 -4
  106. package/src/index.js +4 -1
  107. package/src/models/SignMessageApprovalQuorum.cjs +0 -3
  108. package/src/models/SignMessageApprovalQuorum.d.ts +1 -8
  109. package/src/models/SignMessageApprovalQuorum.js +0 -3
  110. package/src/models/WaasEnvPolicyLayerUpdateRequest.cjs +33 -0
  111. package/src/models/WaasEnvPolicyLayerUpdateRequest.d.ts +28 -0
  112. package/src/models/WaasEnvPolicyLayerUpdateRequest.js +27 -0
  113. package/src/models/WaasPolicyAction.cjs +40 -0
  114. package/src/models/WaasPolicyAction.d.ts +23 -0
  115. package/src/models/WaasPolicyAction.js +34 -0
  116. package/src/models/WaasPolicyDeclarativeRule.cjs +53 -0
  117. package/src/models/WaasPolicyDeclarativeRule.d.ts +66 -0
  118. package/src/models/WaasPolicyDeclarativeRule.js +47 -0
  119. package/src/models/WaasPolicyLayerResponseLayerContent.cjs +2 -3
  120. package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +3 -4
  121. package/src/models/WaasPolicyLayerResponseLayerContent.js +2 -3
  122. package/src/models/WaasPolicyLayerRule.cjs +85 -0
  123. package/src/models/WaasPolicyLayerRule.d.ts +150 -0
  124. package/src/models/WaasPolicyLayerRule.js +79 -0
  125. package/src/models/index.d.ts +4 -1
  126. package/src/models/SignMessageApprovalQuorumApproval.cjs +0 -45
  127. package/src/models/SignMessageApprovalQuorumApproval.d.ts +0 -33
  128. package/src/models/SignMessageApprovalQuorumApproval.js +0 -39
@@ -0,0 +1,66 @@
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
+ import { WaasPolicyAction } from './WaasPolicyAction';
13
+ /**
14
+ * A Rule authored in the policy rule language, evaluated by the engine as stored rather than compiled from WaasPolicyRule. Shares identity and authorship with a legacy Rule so the Layer machinery — deletion markers, authorship stamping, the edit guard — keys on the same fields and needs no second code path for anything but evaluation.
15
+ * @export
16
+ * @interface WaasPolicyDeclarativeRule
17
+ */
18
+ export interface WaasPolicyDeclarativeRule {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WaasPolicyDeclarativeRule
23
+ */
24
+ ruleId: string;
25
+ /**
26
+ * Human-readable name for the rule
27
+ * @type {string}
28
+ * @memberof WaasPolicyDeclarativeRule
29
+ */
30
+ name?: string;
31
+ /**
32
+ * 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.
33
+ * @type {string}
34
+ * @memberof WaasPolicyDeclarativeRule
35
+ */
36
+ phase: WaasPolicyDeclarativeRulePhaseEnum;
37
+ /**
38
+ * Condition in the policy rule language, validated against the field catalog on write and again on read
39
+ * @type {object}
40
+ * @memberof WaasPolicyDeclarativeRule
41
+ */
42
+ when: object;
43
+ /**
44
+ *
45
+ * @type {WaasPolicyAction}
46
+ * @memberof WaasPolicyDeclarativeRule
47
+ */
48
+ then: WaasPolicyAction;
49
+ /**
50
+ * When true, a Signer may adjust this Rule within its recognised shape
51
+ * @type {boolean}
52
+ * @memberof WaasPolicyDeclarativeRule
53
+ */
54
+ modifiableBySigner?: boolean;
55
+ }
56
+ /**
57
+ * @export
58
+ * @enum {string}
59
+ */
60
+ export declare enum WaasPolicyDeclarativeRulePhaseEnum {
61
+ Transaction = "transaction",
62
+ Operation = "operation"
63
+ }
64
+ export declare function WaasPolicyDeclarativeRuleFromJSON(json: any): WaasPolicyDeclarativeRule;
65
+ export declare function WaasPolicyDeclarativeRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyDeclarativeRule;
66
+ export declare function WaasPolicyDeclarativeRuleToJSON(value?: WaasPolicyDeclarativeRule | null): any;
@@ -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 };
@@ -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 : (json['rules'].map(WaasPolicyLayerResponseRule.WaasPolicyLayerResponseRuleFromJSON)),
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 === undefined ? undefined : (value.rules.map(WaasPolicyLayerResponseRule.WaasPolicyLayerResponseRuleToJSON)),
27
+ 'rules': value.rules,
29
28
  };
30
29
  }
31
30
 
@@ -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<WaasPolicyLayerResponseRule>}
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<WaasPolicyLayerResponseRule>;
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 : (json['rules'].map(WaasPolicyLayerResponseRuleFromJSON)),
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 === undefined ? undefined : (value.rules.map(WaasPolicyLayerResponseRuleToJSON)),
23
+ 'rules': value.rules,
25
24
  };
26
25
  }
27
26
 
@@ -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,150 @@
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
+ 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 };
@@ -695,7 +695,6 @@ export * from './SettlementStrategyEnum';
695
695
  export * from './SignAleoRequestWithWaasRequest';
696
696
  export * from './SignInProviderEnum';
697
697
  export * from './SignMessageApprovalQuorum';
698
- export * from './SignMessageApprovalQuorumApproval';
699
698
  export * from './SignMessageApprovalQuorumIntent';
700
699
  export * from './SignMessageAuthorizationSignature';
701
700
  export * from './SignMessageBtcTransaction';
@@ -852,13 +851,17 @@ export * from './WaasDelegateSignMessageRequest';
852
851
  export * from './WaasDelegatedAccessEncryptionPublicKeyType';
853
852
  export * from './WaasDelegationCredentialsRequest';
854
853
  export * from './WaasDelegationCredentialsResponse';
854
+ export * from './WaasEnvPolicyLayerUpdateRequest';
855
+ export * from './WaasPolicyAction';
855
856
  export * from './WaasPolicyArgumentConstraint';
856
857
  export * from './WaasPolicyConstraintCondition';
857
858
  export * from './WaasPolicyCreateRequest';
859
+ export * from './WaasPolicyDeclarativeRule';
858
860
  export * from './WaasPolicyDeleteRequest';
859
861
  export * from './WaasPolicyLayerResponse';
860
862
  export * from './WaasPolicyLayerResponseLayerContent';
861
863
  export * from './WaasPolicyLayerResponseRule';
864
+ export * from './WaasPolicyLayerRule';
862
865
  export * from './WaasPolicyLayerRuleOperation';
863
866
  export * from './WaasPolicyLayerUpdateRequest';
864
867
  export * from './WaasPolicyResponse';
@@ -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,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 };