@dynamic-labs/sdk-api 0.108.0 → 0.110.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 (121) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -0
  3. package/src/apis/AdminActionsApi.js +1 -0
  4. package/src/apis/AllowlistsApi.cjs +1 -0
  5. package/src/apis/AllowlistsApi.js +1 -0
  6. package/src/apis/AnalyticsApi.cjs +1 -0
  7. package/src/apis/AnalyticsApi.js +1 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -0
  9. package/src/apis/AuthorizedClientsApi.js +1 -0
  10. package/src/apis/BusinessAccountsApi.cjs +1 -0
  11. package/src/apis/BusinessAccountsApi.js +1 -0
  12. package/src/apis/CaptchaApi.cjs +1 -0
  13. package/src/apis/CaptchaApi.js +1 -0
  14. package/src/apis/ChainalysisApi.cjs +1 -0
  15. package/src/apis/ChainalysisApi.js +1 -0
  16. package/src/apis/ChainsApi.cjs +1 -0
  17. package/src/apis/ChainsApi.js +1 -0
  18. package/src/apis/CheckoutApi.cjs +1 -0
  19. package/src/apis/CheckoutApi.js +1 -0
  20. package/src/apis/ClientGrantApi.cjs +1 -0
  21. package/src/apis/ClientGrantApi.js +1 -0
  22. package/src/apis/CustomFieldsApi.cjs +1 -0
  23. package/src/apis/CustomFieldsApi.js +1 -0
  24. package/src/apis/CustomHostnamesApi.cjs +1 -0
  25. package/src/apis/CustomHostnamesApi.js +1 -0
  26. package/src/apis/CustomNetworksApi.cjs +1 -0
  27. package/src/apis/CustomNetworksApi.js +1 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  29. package/src/apis/DeeplinkUrlsApi.js +1 -0
  30. package/src/apis/EnvironmentsApi.cjs +1 -0
  31. package/src/apis/EnvironmentsApi.js +1 -0
  32. package/src/apis/EventsApi.cjs +1 -0
  33. package/src/apis/EventsApi.js +1 -0
  34. package/src/apis/ExchangesApi.cjs +1 -0
  35. package/src/apis/ExchangesApi.js +1 -0
  36. package/src/apis/ExportsApi.cjs +1 -0
  37. package/src/apis/ExportsApi.js +1 -0
  38. package/src/apis/ExternalJwtApi.cjs +1 -0
  39. package/src/apis/ExternalJwtApi.js +1 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +1 -0
  41. package/src/apis/FlowAnalyticsApi.js +1 -0
  42. package/src/apis/GaslessApi.cjs +1 -0
  43. package/src/apis/GaslessApi.js +1 -0
  44. package/src/apis/GatesApi.cjs +1 -0
  45. package/src/apis/GatesApi.js +1 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  50. package/src/apis/GlobalWalletsApi.cjs +1 -0
  51. package/src/apis/GlobalWalletsApi.js +1 -0
  52. package/src/apis/InvitesApi.cjs +1 -0
  53. package/src/apis/InvitesApi.js +1 -0
  54. package/src/apis/KybApi.cjs +1 -0
  55. package/src/apis/KybApi.js +1 -0
  56. package/src/apis/MembersApi.cjs +1 -0
  57. package/src/apis/MembersApi.js +1 -0
  58. package/src/apis/MfaSettingsApi.cjs +1 -0
  59. package/src/apis/MfaSettingsApi.js +1 -0
  60. package/src/apis/NameServicesApi.cjs +1 -0
  61. package/src/apis/NameServicesApi.js +1 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +1 -0
  63. package/src/apis/OrganizationSettingsApi.js +1 -0
  64. package/src/apis/OrganizationsApi.cjs +1 -0
  65. package/src/apis/OrganizationsApi.js +1 -0
  66. package/src/apis/OriginsApi.cjs +1 -0
  67. package/src/apis/OriginsApi.js +1 -0
  68. package/src/apis/ProjectsApi.cjs +1 -0
  69. package/src/apis/ProjectsApi.js +1 -0
  70. package/src/apis/ProvidersApi.cjs +1 -0
  71. package/src/apis/ProvidersApi.js +1 -0
  72. package/src/apis/SDKApi.cjs +1 -0
  73. package/src/apis/SDKApi.js +1 -0
  74. package/src/apis/SDKViewsApi.cjs +1 -0
  75. package/src/apis/SDKViewsApi.js +1 -0
  76. package/src/apis/ScreeningPoliciesApi.cjs +1 -0
  77. package/src/apis/ScreeningPoliciesApi.js +1 -0
  78. package/src/apis/ServerApi.cjs +1 -0
  79. package/src/apis/ServerApi.js +1 -0
  80. package/src/apis/SessionsApi.cjs +1 -0
  81. package/src/apis/SessionsApi.js +1 -0
  82. package/src/apis/TestAccountApi.cjs +1 -0
  83. package/src/apis/TestAccountApi.js +1 -0
  84. package/src/apis/TokensApi.cjs +1 -0
  85. package/src/apis/TokensApi.js +1 -0
  86. package/src/apis/UserApiTokensApi.cjs +1 -0
  87. package/src/apis/UserApiTokensApi.js +1 -0
  88. package/src/apis/UsersApi.cjs +1 -0
  89. package/src/apis/UsersApi.js +1 -0
  90. package/src/apis/VisitsApi.cjs +1 -0
  91. package/src/apis/VisitsApi.js +1 -0
  92. package/src/apis/WaasApi.cjs +1 -0
  93. package/src/apis/WaasApi.js +1 -0
  94. package/src/apis/WalletConnectApi.cjs +1 -0
  95. package/src/apis/WalletConnectApi.js +1 -0
  96. package/src/apis/WalletsApi.cjs +1 -0
  97. package/src/apis/WalletsApi.js +1 -0
  98. package/src/apis/WebhooksApi.cjs +1 -0
  99. package/src/apis/WebhooksApi.js +1 -0
  100. package/src/apis/YieldApi.cjs +1 -0
  101. package/src/apis/YieldApi.js +1 -0
  102. package/src/apis/ZendeskApi.cjs +1 -0
  103. package/src/apis/ZendeskApi.js +1 -0
  104. package/src/index.cjs +8 -0
  105. package/src/index.js +1 -0
  106. package/src/models/ExchangeKeyEnum.cjs +1 -0
  107. package/src/models/ExchangeKeyEnum.d.ts +2 -1
  108. package/src/models/ExchangeKeyEnum.js +1 -0
  109. package/src/models/ProviderEnum.cjs +1 -0
  110. package/src/models/ProviderEnum.d.ts +1 -0
  111. package/src/models/ProviderEnum.js +1 -0
  112. package/src/models/WaasPolicyLayerRuleInput.cjs +85 -0
  113. package/src/models/WaasPolicyLayerRuleInput.d.ts +150 -0
  114. package/src/models/WaasPolicyLayerRuleInput.js +79 -0
  115. package/src/models/WaasPolicyLayerUpdateRequest.cjs +3 -3
  116. package/src/models/WaasPolicyLayerUpdateRequest.d.ts +4 -4
  117. package/src/models/WaasPolicyLayerUpdateRequest.js +3 -3
  118. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +3 -3
  119. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +4 -4
  120. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +3 -3
  121. package/src/models/index.d.ts +1 -0
@@ -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 { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
16
+ import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
17
+ import { WaasPolicyRuleType } from './WaasPolicyRuleType';
18
+ import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface WaasPolicyLayerRuleInput
23
+ */
24
+ export interface WaasPolicyLayerRuleInput {
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof WaasPolicyLayerRuleInput
29
+ */
30
+ ruleId?: string;
31
+ /**
32
+ * Human-readable name for the rule
33
+ * @type {string}
34
+ * @memberof WaasPolicyLayerRuleInput
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {WaasPolicyRuleType}
40
+ * @memberof WaasPolicyLayerRuleInput
41
+ */
42
+ ruleType: WaasPolicyRuleType;
43
+ /**
44
+ * Target address EVM or SVM (legacy field)
45
+ * @type {string}
46
+ * @memberof WaasPolicyLayerRuleInput
47
+ */
48
+ address?: string | null;
49
+ /**
50
+ * Target address(es) EVM or SVM
51
+ * @type {Array<string>}
52
+ * @memberof WaasPolicyLayerRuleInput
53
+ */
54
+ addresses?: Array<string>;
55
+ /**
56
+ *
57
+ * @type {WaasChainEnum}
58
+ * @memberof WaasPolicyLayerRuleInput
59
+ */
60
+ chain: WaasChainEnum;
61
+ /**
62
+ * Chain ID for the policy rule (legacy field)
63
+ * @type {number}
64
+ * @memberof WaasPolicyLayerRuleInput
65
+ */
66
+ chainId?: number;
67
+ /**
68
+ * Chain IDs for the policy rule
69
+ * @type {Array<number>}
70
+ * @memberof WaasPolicyLayerRuleInput
71
+ */
72
+ chainIds?: Array<number>;
73
+ /**
74
+ * Contract ABI interface
75
+ * @type {Array<object>}
76
+ * @memberof WaasPolicyLayerRuleInput
77
+ */
78
+ contractAbi?: Array<object>;
79
+ /**
80
+ * Specific function name to permit/deny
81
+ * @type {string}
82
+ * @memberof WaasPolicyLayerRuleInput
83
+ */
84
+ functionName?: string;
85
+ /**
86
+ * Validation rules for function arguments
87
+ * @type {Array<WaasPolicyArgumentConstraint>}
88
+ * @memberof WaasPolicyLayerRuleInput
89
+ */
90
+ argumentConstraints?: Array<WaasPolicyArgumentConstraint>;
91
+ /**
92
+ *
93
+ * @type {WaasPolicyRuleValueLimit}
94
+ * @memberof WaasPolicyLayerRuleInput
95
+ */
96
+ valueLimit?: WaasPolicyRuleValueLimit;
97
+ /**
98
+ *
99
+ * @type {WaasPolicyRuleOperationRestrictions}
100
+ * @memberof WaasPolicyLayerRuleInput
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 WaasPolicyLayerRuleInput
107
+ */
108
+ disableBlockaidSecurityChecks?: boolean;
109
+ /**
110
+ * When true, a Signer may adjust this Rule within its recognised shape
111
+ * @type {boolean}
112
+ * @memberof WaasPolicyLayerRuleInput
113
+ */
114
+ modifiableBySigner?: boolean;
115
+ /**
116
+ * The approvals a matching transaction needs. Required when then is REQUIRE_APPROVAL and refused on any other action. A deny in the same Layer wins first; otherwise every REQUIRE_APPROVAL Rule whose when holds, or cannot be decided, applies. A message or raw sign has no transaction to test, so every such Rule applies. Enforced only for business-account wallets. Valid on business-account, wallet and signer Layers and refused on the environment Layer. Only admins and business-account admins may author one. May not read spendWindows.
117
+ * @type {Array<WaasPolicyDeclarativeApprovalRequirement>}
118
+ * @memberof WaasPolicyLayerRuleInput
119
+ */
120
+ approvalRequirements?: Array<WaasPolicyDeclarativeApprovalRequirement>;
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 WaasPolicyLayerRuleInput
125
+ */
126
+ phase: WaasPolicyLayerRuleInputPhaseEnum;
127
+ /**
128
+ * Condition in the policy rule language, validated against the field catalog on write and again on read
129
+ * @type {object}
130
+ * @memberof WaasPolicyLayerRuleInput
131
+ */
132
+ when: object;
133
+ /**
134
+ *
135
+ * @type {WaasPolicyAction}
136
+ * @memberof WaasPolicyLayerRuleInput
137
+ */
138
+ then: WaasPolicyAction;
139
+ }
140
+ /**
141
+ * @export
142
+ * @enum {string}
143
+ */
144
+ export declare enum WaasPolicyLayerRuleInputPhaseEnum {
145
+ Transaction = "transaction",
146
+ Operation = "operation"
147
+ }
148
+ export declare function WaasPolicyLayerRuleInputFromJSON(json: any): WaasPolicyLayerRuleInput;
149
+ export declare function WaasPolicyLayerRuleInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerRuleInput;
150
+ export declare function WaasPolicyLayerRuleInputToJSON(value?: WaasPolicyLayerRuleInput | 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 { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementToJSON } from './WaasPolicyDeclarativeApprovalRequirement.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 WaasPolicyLayerRuleInputPhaseEnum;
16
+ (function (WaasPolicyLayerRuleInputPhaseEnum) {
17
+ WaasPolicyLayerRuleInputPhaseEnum["Transaction"] = "transaction";
18
+ WaasPolicyLayerRuleInputPhaseEnum["Operation"] = "operation";
19
+ })(WaasPolicyLayerRuleInputPhaseEnum || (WaasPolicyLayerRuleInputPhaseEnum = {}));
20
+ function WaasPolicyLayerRuleInputFromJSON(json) {
21
+ return WaasPolicyLayerRuleInputFromJSONTyped(json);
22
+ }
23
+ function WaasPolicyLayerRuleInputFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'ruleId': !exists(json, 'ruleId') ? undefined : 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(WaasPolicyDeclarativeApprovalRequirementFromJSON)),
44
+ 'phase': json['phase'],
45
+ 'when': json['when'],
46
+ 'then': WaasPolicyActionFromJSON(json['then']),
47
+ };
48
+ }
49
+ function WaasPolicyLayerRuleInputToJSON(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(WaasPolicyDeclarativeApprovalRequirementToJSON)),
73
+ 'phase': value.phase,
74
+ 'when': value.when,
75
+ 'then': WaasPolicyActionToJSON(value.then),
76
+ };
77
+ }
78
+
79
+ export { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputFromJSONTyped, WaasPolicyLayerRuleInputPhaseEnum, WaasPolicyLayerRuleInputToJSON };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
7
- var WaasPolicyLayerRule = require('./WaasPolicyLayerRule.cjs');
7
+ var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
8
8
  var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
9
9
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
10
10
 
@@ -33,7 +33,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
34
34
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
35
35
  'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
36
- 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRule.WaasPolicyLayerRuleFromJSON)),
36
+ 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
37
37
  };
38
38
  }
39
39
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -49,7 +49,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
49
49
  'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
50
50
  'ruleId': value.ruleId,
51
51
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
52
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRule.WaasPolicyLayerRuleToJSON)),
52
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
53
53
  };
54
54
  }
55
55
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
13
- import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
13
+ import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
14
14
  import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
15
15
  import { WaasPolicyRule } from './WaasPolicyRule';
16
16
  /**
@@ -50,11 +50,11 @@ export interface WaasPolicyLayerUpdateRequest {
50
50
  */
51
51
  operations?: Array<WaasPolicyLayerRuleOperation>;
52
52
  /**
53
- * Only used when op is replace — the Layer's full Rule list, in either syntax. Only admins and business-account admins may replace.
54
- * @type {Array<WaasPolicyLayerRule>}
53
+ * Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
54
+ * @type {Array<WaasPolicyLayerRuleInput>}
55
55
  * @memberof WaasPolicyLayerUpdateRequest
56
56
  */
57
- rules?: Array<WaasPolicyLayerRule>;
57
+ rules?: Array<WaasPolicyLayerRuleInput>;
58
58
  }
59
59
  /**
60
60
  * @export
@@ -1,6 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
3
- import { WaasPolicyLayerRuleFromJSON, WaasPolicyLayerRuleToJSON } from './WaasPolicyLayerRule.js';
3
+ import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
4
4
  import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
5
5
  import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
6
6
 
@@ -29,7 +29,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
30
30
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
31
31
  'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
32
- 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleFromJSON)),
32
+ 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
33
33
  };
34
34
  }
35
35
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -45,7 +45,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
45
45
  'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
46
46
  'ruleId': value.ruleId,
47
47
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
48
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleToJSON)),
48
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
49
49
  };
50
50
  }
51
51
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
7
- var WaasPolicyLayerRule = require('./WaasPolicyLayerRule.cjs');
7
+ var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
8
8
  var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
9
9
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
10
10
 
@@ -33,7 +33,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
33
33
  'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
34
34
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
35
35
  'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
36
- 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRule.WaasPolicyLayerRuleFromJSON)),
36
+ 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
37
37
  'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
38
38
  };
39
39
  }
@@ -50,7 +50,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
50
50
  'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
51
51
  'ruleId': value.ruleId,
52
52
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
53
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRule.WaasPolicyLayerRuleToJSON)),
53
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
54
54
  'shareSetId': value.shareSetId,
55
55
  };
56
56
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
13
- import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
13
+ import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
14
14
  import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
15
15
  import { WaasPolicyRule } from './WaasPolicyRule';
16
16
  /**
@@ -50,11 +50,11 @@ export interface WaasSignerPolicyLayerUpdateRequest {
50
50
  */
51
51
  operations?: Array<WaasPolicyLayerRuleOperation>;
52
52
  /**
53
- * Only used when op is replace — the Layer's full Rule list, in either syntax. Only admins and business-account admins may replace.
54
- * @type {Array<WaasPolicyLayerRule>}
53
+ * Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
54
+ * @type {Array<WaasPolicyLayerRuleInput>}
55
55
  * @memberof WaasSignerPolicyLayerUpdateRequest
56
56
  */
57
- rules?: Array<WaasPolicyLayerRule>;
57
+ rules?: Array<WaasPolicyLayerRuleInput>;
58
58
  /**
59
59
  * Targets a share set other than the caller's own, as returned in
60
60
  * the wallet's shareSetId or otherShareSets. Omit to target the
@@ -1,6 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
3
- import { WaasPolicyLayerRuleFromJSON, WaasPolicyLayerRuleToJSON } from './WaasPolicyLayerRule.js';
3
+ import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
4
4
  import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
5
5
  import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
6
6
 
@@ -29,7 +29,7 @@ function WaasSignerPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminat
29
29
  'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
30
30
  'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
31
31
  'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
32
- 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleFromJSON)),
32
+ 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
33
33
  'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
34
34
  };
35
35
  }
@@ -46,7 +46,7 @@ function WaasSignerPolicyLayerUpdateRequestToJSON(value) {
46
46
  'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
47
47
  'ruleId': value.ruleId,
48
48
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
49
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleToJSON)),
49
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
50
50
  'shareSetId': value.shareSetId,
51
51
  };
52
52
  }
@@ -914,6 +914,7 @@ export * from './WaasPolicyLayerResponse';
914
914
  export * from './WaasPolicyLayerResponseLayerContent';
915
915
  export * from './WaasPolicyLayerResponseRule';
916
916
  export * from './WaasPolicyLayerRule';
917
+ export * from './WaasPolicyLayerRuleInput';
917
918
  export * from './WaasPolicyLayerRuleOperation';
918
919
  export * from './WaasPolicyLayerUpdateRequest';
919
920
  export * from './WaasPolicyResponse';