@dynamic-labs/sdk-api 0.0.1109 → 0.0.1111

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 (161) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +2 -0
  3. package/src/apis/AdminActionsApi.js +2 -0
  4. package/src/apis/AllowlistsApi.cjs +2 -0
  5. package/src/apis/AllowlistsApi.js +2 -0
  6. package/src/apis/AnalyticsApi.cjs +2 -0
  7. package/src/apis/AnalyticsApi.js +2 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +2 -0
  9. package/src/apis/AuthorizedClientsApi.js +2 -0
  10. package/src/apis/CaptchaApi.cjs +2 -0
  11. package/src/apis/CaptchaApi.js +2 -0
  12. package/src/apis/ChainalysisApi.cjs +2 -0
  13. package/src/apis/ChainalysisApi.js +2 -0
  14. package/src/apis/ChainsApi.cjs +2 -0
  15. package/src/apis/ChainsApi.js +2 -0
  16. package/src/apis/CheckoutApi.cjs +2 -0
  17. package/src/apis/CheckoutApi.js +2 -0
  18. package/src/apis/ClientGrantApi.cjs +2 -0
  19. package/src/apis/ClientGrantApi.js +2 -0
  20. package/src/apis/CustomFieldsApi.cjs +2 -0
  21. package/src/apis/CustomFieldsApi.js +2 -0
  22. package/src/apis/CustomHostnamesApi.cjs +2 -0
  23. package/src/apis/CustomHostnamesApi.js +2 -0
  24. package/src/apis/CustomNetworksApi.cjs +2 -0
  25. package/src/apis/CustomNetworksApi.js +2 -0
  26. package/src/apis/DeeplinkUrlsApi.cjs +2 -0
  27. package/src/apis/DeeplinkUrlsApi.js +2 -0
  28. package/src/apis/EnvironmentsApi.cjs +2 -0
  29. package/src/apis/EnvironmentsApi.js +2 -0
  30. package/src/apis/EventsApi.cjs +2 -0
  31. package/src/apis/EventsApi.js +2 -0
  32. package/src/apis/ExchangesApi.cjs +2 -0
  33. package/src/apis/ExchangesApi.js +2 -0
  34. package/src/apis/ExportsApi.cjs +2 -0
  35. package/src/apis/ExportsApi.js +2 -0
  36. package/src/apis/ExternalJwtApi.cjs +2 -0
  37. package/src/apis/ExternalJwtApi.js +2 -0
  38. package/src/apis/FlowAnalyticsApi.cjs +2 -0
  39. package/src/apis/FlowAnalyticsApi.js +2 -0
  40. package/src/apis/GaslessApi.cjs +2 -0
  41. package/src/apis/GaslessApi.js +2 -0
  42. package/src/apis/GatesApi.cjs +2 -0
  43. package/src/apis/GatesApi.js +2 -0
  44. package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
  45. package/src/apis/GlobalWalletAccessControlApi.js +2 -0
  46. package/src/apis/GlobalWalletConnectionsApi.cjs +2 -0
  47. package/src/apis/GlobalWalletConnectionsApi.js +2 -0
  48. package/src/apis/GlobalWalletsApi.cjs +2 -0
  49. package/src/apis/GlobalWalletsApi.js +2 -0
  50. package/src/apis/InvitesApi.cjs +2 -0
  51. package/src/apis/InvitesApi.js +2 -0
  52. package/src/apis/KybApi.cjs +325 -0
  53. package/src/apis/KybApi.d.ts +71 -0
  54. package/src/apis/KybApi.js +321 -0
  55. package/src/apis/MembersApi.cjs +2 -0
  56. package/src/apis/MembersApi.js +2 -0
  57. package/src/apis/MfaSettingsApi.cjs +2 -0
  58. package/src/apis/MfaSettingsApi.js +2 -0
  59. package/src/apis/NameServicesApi.cjs +2 -0
  60. package/src/apis/NameServicesApi.js +2 -0
  61. package/src/apis/OrganizationSettingsApi.cjs +2 -0
  62. package/src/apis/OrganizationSettingsApi.js +2 -0
  63. package/src/apis/OrganizationsApi.cjs +2 -0
  64. package/src/apis/OrganizationsApi.js +2 -0
  65. package/src/apis/OriginsApi.cjs +2 -0
  66. package/src/apis/OriginsApi.js +2 -0
  67. package/src/apis/ProjectsApi.cjs +2 -0
  68. package/src/apis/ProjectsApi.js +2 -0
  69. package/src/apis/ProvidersApi.cjs +2 -0
  70. package/src/apis/ProvidersApi.js +2 -0
  71. package/src/apis/SDKApi.cjs +10 -8
  72. package/src/apis/SDKApi.d.ts +7 -7
  73. package/src/apis/SDKApi.js +10 -8
  74. package/src/apis/SDKViewsApi.cjs +2 -0
  75. package/src/apis/SDKViewsApi.js +2 -0
  76. package/src/apis/ServerApi.cjs +2 -0
  77. package/src/apis/ServerApi.js +2 -0
  78. package/src/apis/SessionsApi.cjs +2 -0
  79. package/src/apis/SessionsApi.js +2 -0
  80. package/src/apis/TestAccountApi.cjs +2 -0
  81. package/src/apis/TestAccountApi.js +2 -0
  82. package/src/apis/TokensApi.cjs +2 -0
  83. package/src/apis/TokensApi.js +2 -0
  84. package/src/apis/UserApiTokensApi.cjs +2 -0
  85. package/src/apis/UserApiTokensApi.js +2 -0
  86. package/src/apis/UsersApi.cjs +2 -0
  87. package/src/apis/UsersApi.js +2 -0
  88. package/src/apis/VisitsApi.cjs +2 -0
  89. package/src/apis/VisitsApi.js +2 -0
  90. package/src/apis/WaasApi.cjs +6 -4
  91. package/src/apis/WaasApi.d.ts +4 -4
  92. package/src/apis/WaasApi.js +6 -4
  93. package/src/apis/WalletConnectApi.cjs +2 -0
  94. package/src/apis/WalletConnectApi.js +2 -0
  95. package/src/apis/WalletsApi.cjs +2 -0
  96. package/src/apis/WalletsApi.js +2 -0
  97. package/src/apis/WebhooksApi.cjs +2 -0
  98. package/src/apis/WebhooksApi.js +2 -0
  99. package/src/apis/ZendeskApi.cjs +2 -0
  100. package/src/apis/ZendeskApi.js +2 -0
  101. package/src/apis/index.d.ts +1 -0
  102. package/src/index.cjs +70 -0
  103. package/src/index.js +16 -0
  104. package/src/models/KybAdditionalInfoData.cjs +36 -0
  105. package/src/models/KybAdditionalInfoData.d.ts +34 -0
  106. package/src/models/KybAdditionalInfoData.js +30 -0
  107. package/src/models/KybAdditionalInfoFileData.cjs +45 -0
  108. package/src/models/KybAdditionalInfoFileData.d.ts +33 -0
  109. package/src/models/KybAdditionalInfoFileData.js +39 -0
  110. package/src/models/KybCompanyResult.cjs +44 -0
  111. package/src/models/KybCompanyResult.d.ts +58 -0
  112. package/src/models/KybCompanyResult.js +38 -0
  113. package/src/models/KybCompanyResultAddresses.cjs +39 -0
  114. package/src/models/KybCompanyResultAddresses.d.ts +45 -0
  115. package/src/models/KybCompanyResultAddresses.js +33 -0
  116. package/src/models/KybCompanySearchResponse.cjs +33 -0
  117. package/src/models/KybCompanySearchResponse.d.ts +28 -0
  118. package/src/models/KybCompanySearchResponse.js +27 -0
  119. package/src/models/KybStatusResponse.cjs +36 -0
  120. package/src/models/KybStatusResponse.d.ts +34 -0
  121. package/src/models/KybStatusResponse.js +30 -0
  122. package/src/models/KybTierStatus.cjs +38 -0
  123. package/src/models/KybTierStatus.d.ts +40 -0
  124. package/src/models/KybTierStatus.js +32 -0
  125. package/src/models/KybVerificationResultEnum.cjs +45 -0
  126. package/src/models/KybVerificationResultEnum.d.ts +28 -0
  127. package/src/models/KybVerificationResultEnum.js +39 -0
  128. package/src/models/KybVerifyRequest.cjs +39 -0
  129. package/src/models/KybVerifyRequest.d.ts +41 -0
  130. package/src/models/KybVerifyRequest.js +33 -0
  131. package/src/models/KybVerifyRequestAdditionalInfo.cjs +35 -0
  132. package/src/models/KybVerifyRequestAdditionalInfo.d.ts +34 -0
  133. package/src/models/KybVerifyRequestAdditionalInfo.js +29 -0
  134. package/src/models/KybVerifyRequestBusinessData.cjs +54 -0
  135. package/src/models/KybVerifyRequestBusinessData.d.ts +88 -0
  136. package/src/models/KybVerifyRequestBusinessData.js +48 -0
  137. package/src/models/KybVerifyRequestBusinessDataAddresses.cjs +43 -0
  138. package/src/models/KybVerifyRequestBusinessDataAddresses.d.ts +57 -0
  139. package/src/models/KybVerifyRequestBusinessDataAddresses.js +37 -0
  140. package/src/models/KybVerifyResponse.cjs +37 -0
  141. package/src/models/KybVerifyResponse.d.ts +40 -0
  142. package/src/models/KybVerifyResponse.js +31 -0
  143. package/src/models/WaasPolicyLayerResponseLayerContent.cjs +3 -3
  144. package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +3 -3
  145. package/src/models/WaasPolicyLayerResponseLayerContent.js +3 -3
  146. package/src/models/WaasPolicyLayerResponseRule.cjs +66 -0
  147. package/src/models/WaasPolicyLayerResponseRule.d.ts +116 -0
  148. package/src/models/WaasPolicyLayerResponseRule.js +60 -0
  149. package/src/models/WaasPolicyLayerRuleOperation.cjs +47 -0
  150. package/src/models/WaasPolicyLayerRuleOperation.d.ts +48 -0
  151. package/src/models/WaasPolicyLayerRuleOperation.js +41 -0
  152. package/src/models/WaasPolicyLayerUpdateRequest.cjs +4 -0
  153. package/src/models/WaasPolicyLayerUpdateRequest.d.ts +10 -2
  154. package/src/models/WaasPolicyLayerUpdateRequest.js +4 -0
  155. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +6 -2
  156. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +17 -4
  157. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +6 -2
  158. package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.cjs +2 -2
  159. package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.d.ts +7 -2
  160. package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.js +2 -2
  161. package/src/models/index.d.ts +15 -0
@@ -1,5 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
- import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
2
+ import { WaasPolicyLayerResponseRuleFromJSON, WaasPolicyLayerResponseRuleToJSON } from './WaasPolicyLayerResponseRule.js';
3
3
 
4
4
  /* tslint:disable */
5
5
  function WaasPolicyLayerResponseLayerContentFromJSON(json) {
@@ -10,7 +10,7 @@ function WaasPolicyLayerResponseLayerContentFromJSONTyped(json, ignoreDiscrimina
10
10
  return json;
11
11
  }
12
12
  return {
13
- 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyRuleFromJSON)),
13
+ 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerResponseRuleFromJSON)),
14
14
  };
15
15
  }
16
16
  function WaasPolicyLayerResponseLayerContentToJSON(value) {
@@ -21,7 +21,7 @@ function WaasPolicyLayerResponseLayerContentToJSON(value) {
21
21
  return null;
22
22
  }
23
23
  return {
24
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyRuleToJSON)),
24
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerResponseRuleToJSON)),
25
25
  };
26
26
  }
27
27
 
@@ -0,0 +1,66 @@
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 WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
8
+ var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
9
+ var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
10
+ var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
11
+
12
+ /* tslint:disable */
13
+ function WaasPolicyLayerResponseRuleFromJSON(json) {
14
+ return WaasPolicyLayerResponseRuleFromJSONTyped(json);
15
+ }
16
+ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
17
+ if ((json === undefined) || (json === null)) {
18
+ return json;
19
+ }
20
+ return {
21
+ 'ruleId': json['ruleId'],
22
+ 'name': json['name'],
23
+ 'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
24
+ 'address': !runtime.exists(json, 'address') ? undefined : json['address'],
25
+ 'addresses': !runtime.exists(json, 'addresses') ? undefined : json['addresses'],
26
+ 'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
27
+ 'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
28
+ 'chainIds': !runtime.exists(json, 'chainIds') ? undefined : json['chainIds'],
29
+ 'contractAbi': !runtime.exists(json, 'contractAbi') ? undefined : json['contractAbi'],
30
+ 'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
31
+ 'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
32
+ 'valueLimit': !runtime.exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
33
+ 'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
34
+ 'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
35
+ 'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
36
+ };
37
+ }
38
+ function WaasPolicyLayerResponseRuleToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'ruleId': value.ruleId,
47
+ 'name': value.name,
48
+ 'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
49
+ 'address': value.address,
50
+ 'addresses': value.addresses,
51
+ 'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
52
+ 'chainId': value.chainId,
53
+ 'chainIds': value.chainIds,
54
+ 'contractAbi': value.contractAbi,
55
+ 'functionName': value.functionName,
56
+ 'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
57
+ 'valueLimit': WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON(value.valueLimit),
58
+ 'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
59
+ 'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
60
+ 'modifiableBySigner': value.modifiableBySigner,
61
+ };
62
+ }
63
+
64
+ exports.WaasPolicyLayerResponseRuleFromJSON = WaasPolicyLayerResponseRuleFromJSON;
65
+ exports.WaasPolicyLayerResponseRuleFromJSONTyped = WaasPolicyLayerResponseRuleFromJSONTyped;
66
+ exports.WaasPolicyLayerResponseRuleToJSON = WaasPolicyLayerResponseRuleToJSON;
@@ -0,0 +1,116 @@
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 { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
14
+ import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
15
+ import { WaasPolicyRuleType } from './WaasPolicyRuleType';
16
+ import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface WaasPolicyLayerResponseRule
21
+ */
22
+ export interface WaasPolicyLayerResponseRule {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof WaasPolicyLayerResponseRule
27
+ */
28
+ ruleId: string;
29
+ /**
30
+ * Human-readable name for the rule
31
+ * @type {string}
32
+ * @memberof WaasPolicyLayerResponseRule
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {WaasPolicyRuleType}
38
+ * @memberof WaasPolicyLayerResponseRule
39
+ */
40
+ ruleType: WaasPolicyRuleType;
41
+ /**
42
+ * Target address EVM or SVM (legacy field)
43
+ * @type {string}
44
+ * @memberof WaasPolicyLayerResponseRule
45
+ */
46
+ address?: string | null;
47
+ /**
48
+ * Target address(es) EVM or SVM
49
+ * @type {Array<string>}
50
+ * @memberof WaasPolicyLayerResponseRule
51
+ */
52
+ addresses?: Array<string>;
53
+ /**
54
+ *
55
+ * @type {WaasChainEnum}
56
+ * @memberof WaasPolicyLayerResponseRule
57
+ */
58
+ chain: WaasChainEnum;
59
+ /**
60
+ * Chain ID for the policy rule (legacy field)
61
+ * @type {number}
62
+ * @memberof WaasPolicyLayerResponseRule
63
+ */
64
+ chainId?: number;
65
+ /**
66
+ * Chain IDs for the policy rule
67
+ * @type {Array<number>}
68
+ * @memberof WaasPolicyLayerResponseRule
69
+ */
70
+ chainIds?: Array<number>;
71
+ /**
72
+ * Contract ABI interface
73
+ * @type {Array<object>}
74
+ * @memberof WaasPolicyLayerResponseRule
75
+ */
76
+ contractAbi?: Array<object>;
77
+ /**
78
+ * Specific function name to permit/deny
79
+ * @type {string}
80
+ * @memberof WaasPolicyLayerResponseRule
81
+ */
82
+ functionName?: string;
83
+ /**
84
+ * Validation rules for function arguments
85
+ * @type {Array<WaasPolicyArgumentConstraint>}
86
+ * @memberof WaasPolicyLayerResponseRule
87
+ */
88
+ argumentConstraints?: Array<WaasPolicyArgumentConstraint>;
89
+ /**
90
+ *
91
+ * @type {WaasPolicyRuleValueLimit}
92
+ * @memberof WaasPolicyLayerResponseRule
93
+ */
94
+ valueLimit?: WaasPolicyRuleValueLimit;
95
+ /**
96
+ *
97
+ * @type {WaasPolicyRuleOperationRestrictions}
98
+ * @memberof WaasPolicyLayerResponseRule
99
+ */
100
+ operationRestrictions?: WaasPolicyRuleOperationRestrictions;
101
+ /**
102
+ * 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.
103
+ * @type {boolean}
104
+ * @memberof WaasPolicyLayerResponseRule
105
+ */
106
+ disableBlockaidSecurityChecks?: boolean;
107
+ /**
108
+ * When true, a Signer is permitted to modify this Rule. Cannot be combined with operationRestrictions or disableBlockaidSecurityChecks on the same Rule.
109
+ * @type {boolean}
110
+ * @memberof WaasPolicyLayerResponseRule
111
+ */
112
+ modifiableBySigner?: boolean;
113
+ }
114
+ export declare function WaasPolicyLayerResponseRuleFromJSON(json: any): WaasPolicyLayerResponseRule;
115
+ export declare function WaasPolicyLayerResponseRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerResponseRule;
116
+ export declare function WaasPolicyLayerResponseRuleToJSON(value?: WaasPolicyLayerResponseRule | null): any;
@@ -0,0 +1,60 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
3
+ import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
4
+ import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
5
+ import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
6
+ import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
7
+
8
+ /* tslint:disable */
9
+ function WaasPolicyLayerResponseRuleFromJSON(json) {
10
+ return WaasPolicyLayerResponseRuleFromJSONTyped(json);
11
+ }
12
+ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'ruleId': json['ruleId'],
18
+ 'name': json['name'],
19
+ 'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
20
+ 'address': !exists(json, 'address') ? undefined : json['address'],
21
+ 'addresses': !exists(json, 'addresses') ? undefined : json['addresses'],
22
+ 'chain': WaasChainEnumFromJSON(json['chain']),
23
+ 'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
24
+ 'chainIds': !exists(json, 'chainIds') ? undefined : json['chainIds'],
25
+ 'contractAbi': !exists(json, 'contractAbi') ? undefined : json['contractAbi'],
26
+ 'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
27
+ 'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
28
+ 'valueLimit': !exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
29
+ 'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
30
+ 'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
31
+ 'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
32
+ };
33
+ }
34
+ function WaasPolicyLayerResponseRuleToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'ruleId': value.ruleId,
43
+ 'name': value.name,
44
+ 'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
45
+ 'address': value.address,
46
+ 'addresses': value.addresses,
47
+ 'chain': WaasChainEnumToJSON(value.chain),
48
+ 'chainId': value.chainId,
49
+ 'chainIds': value.chainIds,
50
+ 'contractAbi': value.contractAbi,
51
+ 'functionName': value.functionName,
52
+ 'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),
53
+ 'valueLimit': WaasPolicyRuleValueLimitToJSON(value.valueLimit),
54
+ 'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
55
+ 'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
56
+ 'modifiableBySigner': value.modifiableBySigner,
57
+ };
58
+ }
59
+
60
+ export { WaasPolicyLayerResponseRuleFromJSON, WaasPolicyLayerResponseRuleFromJSONTyped, WaasPolicyLayerResponseRuleToJSON };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
+
8
+ /* tslint:disable */
9
+ /**
10
+ * @export
11
+ * @enum {string}
12
+ */
13
+ exports.WaasPolicyLayerRuleOperationOpEnum = void 0;
14
+ (function (WaasPolicyLayerRuleOperationOpEnum) {
15
+ WaasPolicyLayerRuleOperationOpEnum["Upsert"] = "upsert";
16
+ WaasPolicyLayerRuleOperationOpEnum["Remove"] = "remove";
17
+ })(exports.WaasPolicyLayerRuleOperationOpEnum || (exports.WaasPolicyLayerRuleOperationOpEnum = {}));
18
+ function WaasPolicyLayerRuleOperationFromJSON(json) {
19
+ return WaasPolicyLayerRuleOperationFromJSONTyped(json);
20
+ }
21
+ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'op': json['op'],
27
+ 'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
28
+ 'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
29
+ };
30
+ }
31
+ function WaasPolicyLayerRuleOperationToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'op': value.op,
40
+ 'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
41
+ 'ruleId': value.ruleId,
42
+ };
43
+ }
44
+
45
+ exports.WaasPolicyLayerRuleOperationFromJSON = WaasPolicyLayerRuleOperationFromJSON;
46
+ exports.WaasPolicyLayerRuleOperationFromJSONTyped = WaasPolicyLayerRuleOperationFromJSONTyped;
47
+ exports.WaasPolicyLayerRuleOperationToJSON = WaasPolicyLayerRuleOperationToJSON;
@@ -0,0 +1,48 @@
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 { WaasPolicyRule } from './WaasPolicyRule';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasPolicyLayerRuleOperation
17
+ */
18
+ export interface WaasPolicyLayerRuleOperation {
19
+ /**
20
+ * The per-Rule operation to apply within a batch
21
+ * @type {string}
22
+ * @memberof WaasPolicyLayerRuleOperation
23
+ */
24
+ op: WaasPolicyLayerRuleOperationOpEnum;
25
+ /**
26
+ *
27
+ * @type {WaasPolicyRule}
28
+ * @memberof WaasPolicyLayerRuleOperation
29
+ */
30
+ rule?: WaasPolicyRule;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof WaasPolicyLayerRuleOperation
35
+ */
36
+ ruleId?: string;
37
+ }
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export declare enum WaasPolicyLayerRuleOperationOpEnum {
43
+ Upsert = "upsert",
44
+ Remove = "remove"
45
+ }
46
+ export declare function WaasPolicyLayerRuleOperationFromJSON(json: any): WaasPolicyLayerRuleOperation;
47
+ export declare function WaasPolicyLayerRuleOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerRuleOperation;
48
+ export declare function WaasPolicyLayerRuleOperationToJSON(value?: WaasPolicyLayerRuleOperation | null): any;
@@ -0,0 +1,41 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
+
4
+ /* tslint:disable */
5
+ /**
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var WaasPolicyLayerRuleOperationOpEnum;
10
+ (function (WaasPolicyLayerRuleOperationOpEnum) {
11
+ WaasPolicyLayerRuleOperationOpEnum["Upsert"] = "upsert";
12
+ WaasPolicyLayerRuleOperationOpEnum["Remove"] = "remove";
13
+ })(WaasPolicyLayerRuleOperationOpEnum || (WaasPolicyLayerRuleOperationOpEnum = {}));
14
+ function WaasPolicyLayerRuleOperationFromJSON(json) {
15
+ return WaasPolicyLayerRuleOperationFromJSONTyped(json);
16
+ }
17
+ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'op': json['op'],
23
+ 'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
24
+ 'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
25
+ };
26
+ }
27
+ function WaasPolicyLayerRuleOperationToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'op': value.op,
36
+ 'rule': WaasPolicyRuleToJSON(value.rule),
37
+ 'ruleId': value.ruleId,
38
+ };
39
+ }
40
+
41
+ export { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationFromJSONTyped, WaasPolicyLayerRuleOperationOpEnum, WaasPolicyLayerRuleOperationToJSON };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
6
7
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
8
 
8
9
  /* tslint:disable */
@@ -14,6 +15,7 @@ exports.WaasPolicyLayerUpdateRequestOpEnum = void 0;
14
15
  (function (WaasPolicyLayerUpdateRequestOpEnum) {
15
16
  WaasPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
16
17
  WaasPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
18
+ WaasPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
17
19
  })(exports.WaasPolicyLayerUpdateRequestOpEnum || (exports.WaasPolicyLayerUpdateRequestOpEnum = {}));
18
20
  function WaasPolicyLayerUpdateRequestFromJSON(json) {
19
21
  return WaasPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -26,6 +28,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
26
28
  'op': json['op'],
27
29
  'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
28
30
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
31
+ 'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
29
32
  };
30
33
  }
31
34
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -39,6 +42,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
39
42
  'op': value.op,
40
43
  'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
41
44
  'ruleId': value.ruleId,
45
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
42
46
  };
43
47
  }
44
48
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
12
13
  import { WaasPolicyRule } from './WaasPolicyRule';
13
14
  /**
14
15
  *
@@ -17,7 +18,7 @@ import { WaasPolicyRule } from './WaasPolicyRule';
17
18
  */
18
19
  export interface WaasPolicyLayerUpdateRequest {
19
20
  /**
20
- * The per-Rule operation to apply to the wallet-Layer
21
+ * The per-Rule operation to apply to the wallet-Layer, or batch to apply multiple operations atomically in one enclave cycle
21
22
  * @type {string}
22
23
  * @memberof WaasPolicyLayerUpdateRequest
23
24
  */
@@ -34,6 +35,12 @@ export interface WaasPolicyLayerUpdateRequest {
34
35
  * @memberof WaasPolicyLayerUpdateRequest
35
36
  */
36
37
  ruleId?: string;
38
+ /**
39
+ * Only used when op is batch — applied atomically in one enclave cycle
40
+ * @type {Array<WaasPolicyLayerRuleOperation>}
41
+ * @memberof WaasPolicyLayerUpdateRequest
42
+ */
43
+ operations?: Array<WaasPolicyLayerRuleOperation>;
37
44
  }
38
45
  /**
39
46
  * @export
@@ -41,7 +48,8 @@ export interface WaasPolicyLayerUpdateRequest {
41
48
  */
42
49
  export declare enum WaasPolicyLayerUpdateRequestOpEnum {
43
50
  Upsert = "upsert",
44
- Remove = "remove"
51
+ Remove = "remove",
52
+ Batch = "batch"
45
53
  }
46
54
  export declare function WaasPolicyLayerUpdateRequestFromJSON(json: any): WaasPolicyLayerUpdateRequest;
47
55
  export declare function WaasPolicyLayerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerUpdateRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
2
3
  import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
4
 
4
5
  /* tslint:disable */
@@ -10,6 +11,7 @@ var WaasPolicyLayerUpdateRequestOpEnum;
10
11
  (function (WaasPolicyLayerUpdateRequestOpEnum) {
11
12
  WaasPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
12
13
  WaasPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
14
+ WaasPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
13
15
  })(WaasPolicyLayerUpdateRequestOpEnum || (WaasPolicyLayerUpdateRequestOpEnum = {}));
14
16
  function WaasPolicyLayerUpdateRequestFromJSON(json) {
15
17
  return WaasPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -22,6 +24,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
22
24
  'op': json['op'],
23
25
  'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
24
26
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
27
+ 'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
25
28
  };
26
29
  }
27
30
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -35,6 +38,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
35
38
  'op': value.op,
36
39
  'rule': WaasPolicyRuleToJSON(value.rule),
37
40
  'ruleId': value.ruleId,
41
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
38
42
  };
39
43
  }
40
44
 
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
6
7
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
8
 
8
9
  /* tslint:disable */
@@ -14,6 +15,7 @@ exports.WaasSignerPolicyLayerUpdateRequestOpEnum = void 0;
14
15
  (function (WaasSignerPolicyLayerUpdateRequestOpEnum) {
15
16
  WaasSignerPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
16
17
  WaasSignerPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
18
+ WaasSignerPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
17
19
  })(exports.WaasSignerPolicyLayerUpdateRequestOpEnum || (exports.WaasSignerPolicyLayerUpdateRequestOpEnum = {}));
18
20
  function WaasSignerPolicyLayerUpdateRequestFromJSON(json) {
19
21
  return WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -26,7 +28,8 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
26
28
  'op': json['op'],
27
29
  'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
28
30
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
29
- 'signerId': !runtime.exists(json, 'signerId') ? undefined : json['signerId'],
31
+ 'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
32
+ 'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
30
33
  };
31
34
  }
32
35
  function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
@@ -40,7 +43,8 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
40
43
  'op': value.op,
41
44
  'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
42
45
  'ruleId': value.ruleId,
43
- 'signerId': value.signerId,
46
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
47
+ 'shareSetId': value.shareSetId,
44
48
  };
45
49
  }
46
50
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
12
13
  import { WaasPolicyRule } from './WaasPolicyRule';
13
14
  /**
14
15
  *
@@ -17,7 +18,7 @@ import { WaasPolicyRule } from './WaasPolicyRule';
17
18
  */
18
19
  export interface WaasSignerPolicyLayerUpdateRequest {
19
20
  /**
20
- * The per-Rule operation to apply to the wallet-Layer
21
+ * The per-Rule operation to apply to the wallet-Layer, or batch to apply multiple operations atomically in one enclave cycle
21
22
  * @type {string}
22
23
  * @memberof WaasSignerPolicyLayerUpdateRequest
23
24
  */
@@ -35,11 +36,22 @@ export interface WaasSignerPolicyLayerUpdateRequest {
35
36
  */
36
37
  ruleId?: string;
37
38
  /**
38
- *
39
+ * Only used when op is batch — applied atomically in one enclave cycle
40
+ * @type {Array<WaasPolicyLayerRuleOperation>}
41
+ * @memberof WaasSignerPolicyLayerUpdateRequest
42
+ */
43
+ operations?: Array<WaasPolicyLayerRuleOperation>;
44
+ /**
45
+ * Targets a share set other than the caller's own, as returned in
46
+ * the wallet's shareSetId or otherShareSets. Omit to target the
47
+ * caller's own active share set. A share set's id changes when the
48
+ * wallet's shares are refreshed or reshared; Rules are unaffected by
49
+ * that rotation, so re-read the wallet's share sets to get the
50
+ * current id.
39
51
  * @type {string}
40
52
  * @memberof WaasSignerPolicyLayerUpdateRequest
41
53
  */
42
- signerId?: string | null;
54
+ shareSetId?: string | null;
43
55
  }
44
56
  /**
45
57
  * @export
@@ -47,7 +59,8 @@ export interface WaasSignerPolicyLayerUpdateRequest {
47
59
  */
48
60
  export declare enum WaasSignerPolicyLayerUpdateRequestOpEnum {
49
61
  Upsert = "upsert",
50
- Remove = "remove"
62
+ Remove = "remove",
63
+ Batch = "batch"
51
64
  }
52
65
  export declare function WaasSignerPolicyLayerUpdateRequestFromJSON(json: any): WaasSignerPolicyLayerUpdateRequest;
53
66
  export declare function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignerPolicyLayerUpdateRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
2
3
  import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
4
 
4
5
  /* tslint:disable */
@@ -10,6 +11,7 @@ var WaasSignerPolicyLayerUpdateRequestOpEnum;
10
11
  (function (WaasSignerPolicyLayerUpdateRequestOpEnum) {
11
12
  WaasSignerPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
12
13
  WaasSignerPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
14
+ WaasSignerPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
13
15
  })(WaasSignerPolicyLayerUpdateRequestOpEnum || (WaasSignerPolicyLayerUpdateRequestOpEnum = {}));
14
16
  function WaasSignerPolicyLayerUpdateRequestFromJSON(json) {
15
17
  return WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -22,7 +24,8 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
22
24
  'op': json['op'],
23
25
  'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
24
26
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
25
- 'signerId': !exists(json, 'signerId') ? undefined : json['signerId'],
27
+ 'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
28
+ 'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
26
29
  };
27
30
  }
28
31
  function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
@@ -36,7 +39,8 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
36
39
  'op': value.op,
37
40
  'rule': WaasPolicyRuleToJSON(value.rule),
38
41
  'ruleId': value.ruleId,
39
- 'signerId': value.signerId,
42
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
43
+ 'shareSetId': value.shareSetId,
40
44
  };
41
45
  }
42
46
 
@@ -13,7 +13,7 @@ function WaasSignerPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscri
13
13
  return json;
14
14
  }
15
15
  return {
16
- 'signerId': !runtime.exists(json, 'signerId') ? undefined : json['signerId'],
16
+ 'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
17
17
  };
18
18
  }
19
19
  function WaasSignerPolicyLayerUpdateRequestAllOfToJSON(value) {
@@ -24,7 +24,7 @@ function WaasSignerPolicyLayerUpdateRequestAllOfToJSON(value) {
24
24
  return null;
25
25
  }
26
26
  return {
27
- 'signerId': value.signerId,
27
+ 'shareSetId': value.shareSetId,
28
28
  };
29
29
  }
30
30