@dfns/sdk 0.1.0-beta.2 → 0.1.0-beta.3

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.
@@ -92,6 +92,25 @@ export type TransferLimitPrConf = {
92
92
  limit: Amount;
93
93
  currency: Currency;
94
94
  };
95
+ export type CreateOutgoingVelocityPrConf = {
96
+ kind: PolicyRuleKind.PaymentAmountOutgoingVelocity;
97
+ velocity: Amount;
98
+ assetSymbol: AssetSymbol;
99
+ intervalInMinutes: number;
100
+ shouldIgnoreAssetsWithoutMarketValue: boolean;
101
+ };
102
+ export type UpdateOutgoingVelocityPrConf = {
103
+ velocity?: Amount;
104
+ assetSymbol?: AssetSymbol;
105
+ intervalInMinutes: number;
106
+ shouldIgnoreAssetsWithoutMarketValue?: boolean;
107
+ };
108
+ export type OutgoingVelocityPrConf = {
109
+ velocity: Amount;
110
+ assetSymbol: AssetSymbol;
111
+ intervalInMinutes: number;
112
+ shouldIgnoreAssetsWithoutMarketValue: boolean;
113
+ };
95
114
  export type CreateRequestApprovalPcConf = {
96
115
  kind: PolicyControlKind.RequestApproval;
97
116
  approverUsernames?: string[];
@@ -119,6 +138,10 @@ export type PolicyManagementPreferences = {
119
138
  * Sets default `AssetSymbol` for the policy rules that use it, such as Limit, Velocity, Siphoning, and others.
120
139
  */
121
140
  policyRuleAssetSymbol?: boolean;
141
+ /**
142
+ * Sets default interval in minutes for policy rules that use intervals, such as Velocity and Siphoning. \n\nThis setting does not update existing rules. This will only impact rules that are created after this setting is set.
143
+ */
144
+ policyRuleVelocityIntervalInMinutes: number;
122
145
  };
123
146
  export type Create = {};
124
147
  export type EmptyConfiguration = {};
@@ -180,11 +203,11 @@ export type UpdatePolicyRuleInput = {
180
203
  name?: string;
181
204
  configuration: UpdatePolicyRuleConfiguration;
182
205
  };
183
- export type CreatePolicyRuleConfiguration = CreateAmountLimitPrConf | CreateTransferLimitPrConf | CreateAlwaysActivatedPrConf;
184
- export type UpdatePolicyRuleConfiguration = UpdateAmountLimitPrConf | UpdateTransferLimitPrConf | UpdateAlwaysActivatedPrConf;
206
+ export type CreatePolicyRuleConfiguration = CreateAmountLimitPrConf | CreateTransferLimitPrConf | CreateOutgoingVelocityPrConf | CreateAlwaysActivatedPrConf;
207
+ export type UpdatePolicyRuleConfiguration = UpdateAmountLimitPrConf | UpdateTransferLimitPrConf | UpdateOutgoingVelocityPrConf | UpdateAlwaysActivatedPrConf;
185
208
  export type UpdatePolicyControlConfiguration = UpdateRequestApprovalPcConf | UpdateNotifyAndAuditPcConf;
186
209
  export type CreatePolicyControlConfiguration = CreateRequestApprovalPcConf | CreateNotifyAndAuditPcConf;
187
- export type PolicyRuleConfiguration = AmountLimitPrConf | TransferLimitPrConf | EmptyConfiguration;
210
+ export type PolicyRuleConfiguration = AmountLimitPrConf | TransferLimitPrConf | OutgoingVelocityPrConf | EmptyConfiguration;
188
211
  export type PolicyControlConfiguration = NotifyAndAuditPcConf | RequestApprovalPcConf;
189
212
  export type PolicyObjectFilter = AssetAccountFilter | PublicKeyFilter | WalletFilter;
190
213
  export declare enum PolicyActivityKind {
@@ -212,6 +235,7 @@ export declare enum PolicyControlKind {
212
235
  export declare enum PolicyRuleKind {
213
236
  AlwaysActivated = "AlwaysActivated",
214
237
  PaymentAmountLimit = "PaymentAmountLimit",
238
+ PaymentAmountOutgoingVelocity = "PaymentAmountOutgoingVelocity",
215
239
  TransferAmountLimit = "TransferAmountLimit"
216
240
  }
217
241
  export declare enum Currency {
@@ -46,6 +46,8 @@ var PolicyRuleKind;
46
46
  PolicyRuleKind["AlwaysActivated"] = "AlwaysActivated";
47
47
  // FIXME: Missing documentation for PaymentAmountLimit
48
48
  PolicyRuleKind["PaymentAmountLimit"] = "PaymentAmountLimit";
49
+ // FIXME: Missing documentation for PaymentAmountOutgoingVelocity
50
+ PolicyRuleKind["PaymentAmountOutgoingVelocity"] = "PaymentAmountOutgoingVelocity";
49
51
  // FIXME: Missing documentation for TransferAmountLimit
50
52
  PolicyRuleKind["TransferAmountLimit"] = "TransferAmountLimit";
51
53
  })(PolicyRuleKind = exports.PolicyRuleKind || (exports.PolicyRuleKind = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6",