@dfns/sdk 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codegen/datamodel/Assets/types.d.ts +1 -7
- package/codegen/datamodel/Wallets/types.d.ts +152 -45
- package/codegen/datamodel/Wallets/types.js +34 -4
- package/dfnsApiClient.d.ts +2 -12
- package/dfnsApiClient.js +4 -18
- package/dfnsDelegatedApiClient.d.ts +2 -12
- package/dfnsDelegatedApiClient.js +4 -18
- package/generated/networks/client.d.ts +8 -0
- package/generated/networks/client.js +34 -0
- package/generated/networks/delegatedClient.d.ts +8 -0
- package/generated/networks/delegatedClient.js +34 -0
- package/generated/networks/index.d.ts +3 -0
- package/{codegen/datamodel/Orgs → generated/networks}/index.js +2 -1
- package/generated/networks/types.d.ts +37 -0
- package/generated/permissions/types.d.ts +49 -4
- package/generated/policies/types.d.ts +286 -30
- package/generated/wallets/types.d.ts +94 -33
- package/generated/webhooks/types.d.ts +10 -9
- package/package.json +1 -1
- package/types/networks.d.ts +1 -0
- package/{codegen/datamodel/BlockchainIndexing/index.js → types/networks.js} +1 -1
- package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/BlockchainsClient.js +0 -23
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
- package/codegen/Blockchains/index.d.ts +0 -3
- package/codegen/Blockchains/index.js +0 -19
- package/codegen/Blockchains/types.d.ts +0 -6
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
- package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
- package/codegen/PolicyExecution/index.d.ts +0 -3
- package/codegen/PolicyExecution/index.js +0 -19
- package/codegen/PolicyExecution/types.d.ts +0 -18
- package/codegen/PolicyExecution/types.js +0 -2
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
- package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
- package/codegen/PolicyManagement/index.d.ts +0 -3
- package/codegen/PolicyManagement/index.js +0 -19
- package/codegen/PolicyManagement/types.d.ts +0 -51
- package/codegen/PolicyManagement/types.js +0 -2
- package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
- package/codegen/Signers/DelegatedSignersClient.js +0 -22
- package/codegen/Signers/SignersClient.d.ts +0 -7
- package/codegen/Signers/SignersClient.js +0 -22
- package/codegen/Signers/index.d.ts +0 -3
- package/codegen/Signers/index.js +0 -19
- package/codegen/Signers/types.d.ts +0 -2
- package/codegen/Signers/types.js +0 -2
- package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
- package/codegen/datamodel/ApiKeys/errors.js +0 -15
- package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
- package/codegen/datamodel/ApiKeys/index.js +0 -19
- package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
- package/codegen/datamodel/ApiKeys/responses.js +0 -2
- package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
- package/codegen/datamodel/ApiKeys/types.js +0 -11
- package/codegen/datamodel/BlockchainIndexing/errors.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
- package/codegen/datamodel/BlockchainIndexing/responses.d.ts +0 -6
- package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
- package/codegen/datamodel/BlockchainIndexing/types.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
- package/codegen/datamodel/Blockchains/errors.d.ts +0 -0
- package/codegen/datamodel/Blockchains/errors.js +0 -1
- package/codegen/datamodel/Blockchains/index.d.ts +0 -2
- package/codegen/datamodel/Blockchains/index.js +0 -18
- package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
- package/codegen/datamodel/Blockchains/responses.js +0 -2
- package/codegen/datamodel/Blockchains/types.d.ts +0 -270
- package/codegen/datamodel/Blockchains/types.js +0 -53
- package/codegen/datamodel/Orgs/errors.d.ts +0 -0
- package/codegen/datamodel/Orgs/errors.js +0 -1
- package/codegen/datamodel/Orgs/index.d.ts +0 -2
- package/codegen/datamodel/Orgs/responses.d.ts +0 -45
- package/codegen/datamodel/Orgs/responses.js +0 -2
- package/codegen/datamodel/Orgs/types.d.ts +0 -240
- package/codegen/datamodel/Orgs/types.js +0 -39
- package/codegen/datamodel/Permissions/errors.d.ts +0 -0
- package/codegen/datamodel/Permissions/errors.js +0 -1
- package/codegen/datamodel/Permissions/index.d.ts +0 -2
- package/codegen/datamodel/Permissions/index.js +0 -18
- package/codegen/datamodel/Permissions/responses.d.ts +0 -75
- package/codegen/datamodel/Permissions/responses.js +0 -2
- package/codegen/datamodel/Permissions/types.d.ts +0 -93
- package/codegen/datamodel/Permissions/types.js +0 -43
- package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
- package/codegen/datamodel/PolicyExecution/errors.js +0 -17
- package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
- package/codegen/datamodel/PolicyExecution/index.js +0 -19
- package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
- package/codegen/datamodel/PolicyExecution/responses.js +0 -2
- package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
- package/codegen/datamodel/PolicyExecution/types.js +0 -17
- package/codegen/datamodel/PolicyManagement/errors.d.ts +0 -0
- package/codegen/datamodel/PolicyManagement/errors.js +0 -1
- package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
- package/codegen/datamodel/PolicyManagement/index.js +0 -18
- package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
- package/codegen/datamodel/PolicyManagement/responses.js +0 -2
- package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
- package/codegen/datamodel/PolicyManagement/types.js +0 -95
- package/codegen/datamodel/Signers/errors.d.ts +0 -0
- package/codegen/datamodel/Signers/errors.js +0 -1
- package/codegen/datamodel/Signers/index.d.ts +0 -2
- package/codegen/datamodel/Signers/index.js +0 -18
- package/codegen/datamodel/Signers/responses.d.ts +0 -27
- package/codegen/datamodel/Signers/responses.js +0 -2
- package/codegen/datamodel/Signers/types.d.ts +0 -21
- package/codegen/datamodel/Signers/types.js +0 -2
- /package/{codegen/Blockchains → generated/networks}/types.js +0 -0
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import { Amount, AssetSymbol, EntityId, IntegerPositiveStrict, IsoDatetime, Tag, Username } from '../Foundations';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use the new policy engine instead
|
|
4
|
-
*/
|
|
5
|
-
export type Policy = {
|
|
6
|
-
id: EntityId;
|
|
7
|
-
version: string;
|
|
8
|
-
activityKind: PolicyActivityKind;
|
|
9
|
-
tags?: Tag[];
|
|
10
|
-
dateCreated: IsoDatetime;
|
|
11
|
-
orgId: EntityId;
|
|
12
|
-
description?: string;
|
|
13
|
-
author: Username;
|
|
14
|
-
name?: string;
|
|
15
|
-
status: PolicyStatus;
|
|
16
|
-
controlIds: EntityId[];
|
|
17
|
-
ruleIds: EntityId[];
|
|
18
|
-
filter?: PolicyObjectFilter;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated use the new policy engine instead
|
|
22
|
-
*/
|
|
23
|
-
export type NotifyAndAuditPcConf = {
|
|
24
|
-
kind: PolicyControlKind.NotifyAndAudit;
|
|
25
|
-
usernames?: string[];
|
|
26
|
-
groups?: string[];
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated use the new policy engine instead
|
|
30
|
-
*/
|
|
31
|
-
export type RequestApprovalPcConf = {
|
|
32
|
-
kind: PolicyControlKind.RequestApproval;
|
|
33
|
-
approverGroups?: string[];
|
|
34
|
-
approverUsernames?: string[];
|
|
35
|
-
numApprovals: number;
|
|
36
|
-
timeoutInMinutes?: IntegerPositiveStrict;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated use the new policy engine instead
|
|
40
|
-
*/
|
|
41
|
-
export type PolicyRule = {
|
|
42
|
-
id: EntityId;
|
|
43
|
-
version: string;
|
|
44
|
-
kind: PolicyRuleKind;
|
|
45
|
-
tags?: Tag[];
|
|
46
|
-
dateCreated: IsoDatetime;
|
|
47
|
-
orgId: EntityId;
|
|
48
|
-
author: Username;
|
|
49
|
-
description?: string;
|
|
50
|
-
name?: string;
|
|
51
|
-
configuration: PolicyRuleConfiguration;
|
|
52
|
-
status: PolicyRuleStatus;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated use the new policy engine instead
|
|
56
|
-
*/
|
|
57
|
-
export type PolicyControl = {
|
|
58
|
-
id: EntityId;
|
|
59
|
-
version: string;
|
|
60
|
-
kind: PolicyControlKind;
|
|
61
|
-
tags?: Tag[];
|
|
62
|
-
dateCreated: IsoDatetime;
|
|
63
|
-
orgId: EntityId;
|
|
64
|
-
author: Username;
|
|
65
|
-
description?: string;
|
|
66
|
-
name?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Indicates whether control should merge with same one (compared by values).
|
|
69
|
-
* This property should not be set to true, unless outcomes are understood. For example: Let's say we have 3 policies:
|
|
70
|
-
*
|
|
71
|
-
* 1. policy to require approval for payments over €5000
|
|
72
|
-
* 1. policy to require approval for payments done out of office hours
|
|
73
|
-
* 1. policy to require approval for payments done out of Geofence.
|
|
74
|
-
*
|
|
75
|
-
* In this case policies will require 3 approvals combined, which might not be an intent, and only one approval is required.
|
|
76
|
-
*/
|
|
77
|
-
shouldMergeWithSameControl: boolean;
|
|
78
|
-
configuration: PolicyControlConfiguration;
|
|
79
|
-
status: PolicyControlStatus;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated use the new policy engine instead
|
|
83
|
-
*/
|
|
84
|
-
export type CreateAmountLimitPrConf = {
|
|
85
|
-
kind: PolicyRuleKind.PaymentAmountLimit;
|
|
86
|
-
limit: Amount;
|
|
87
|
-
assetSymbol: AssetSymbol;
|
|
88
|
-
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated use the new policy engine instead
|
|
92
|
-
*/
|
|
93
|
-
export type UpdateAmountLimitPrConf = {
|
|
94
|
-
limit?: Amount;
|
|
95
|
-
assetSymbol?: AssetSymbol;
|
|
96
|
-
shouldIgnoreAssetsWithoutMarketValue?: boolean;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @deprecated use the new policy engine instead
|
|
100
|
-
*/
|
|
101
|
-
export type AmountLimitPrConf = {
|
|
102
|
-
limit: Amount;
|
|
103
|
-
assetSymbol: AssetSymbol;
|
|
104
|
-
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated use the new policy engine instead
|
|
108
|
-
*/
|
|
109
|
-
export type CreateTransferLimitPrConf = {
|
|
110
|
-
kind: PolicyRuleKind.TransferAmountLimit;
|
|
111
|
-
limit: Amount;
|
|
112
|
-
currency: Currency;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated use the new policy engine instead
|
|
116
|
-
*/
|
|
117
|
-
export type UpdateTransferLimitPrConf = {
|
|
118
|
-
limit?: Amount;
|
|
119
|
-
currency?: Currency;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated use the new policy engine instead
|
|
123
|
-
*/
|
|
124
|
-
export type TransferLimitPrConf = {
|
|
125
|
-
limit: Amount;
|
|
126
|
-
currency: Currency;
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* @deprecated use the new policy engine instead
|
|
130
|
-
*/
|
|
131
|
-
export type CreateOutgoingVelocityPrConf = {
|
|
132
|
-
kind: PolicyRuleKind.PaymentAmountOutgoingVelocity;
|
|
133
|
-
velocity: Amount;
|
|
134
|
-
assetSymbol: AssetSymbol;
|
|
135
|
-
intervalInMinutes: number;
|
|
136
|
-
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* @deprecated use the new policy engine instead
|
|
140
|
-
*/
|
|
141
|
-
export type UpdateOutgoingVelocityPrConf = {
|
|
142
|
-
velocity?: Amount;
|
|
143
|
-
assetSymbol?: AssetSymbol;
|
|
144
|
-
intervalInMinutes: number;
|
|
145
|
-
shouldIgnoreAssetsWithoutMarketValue?: boolean;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* @deprecated use the new policy engine instead
|
|
149
|
-
*/
|
|
150
|
-
export type OutgoingVelocityPrConf = {
|
|
151
|
-
velocity: Amount;
|
|
152
|
-
assetSymbol: AssetSymbol;
|
|
153
|
-
intervalInMinutes: number;
|
|
154
|
-
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated use the new policy engine instead
|
|
158
|
-
*/
|
|
159
|
-
export type CreateRequestApprovalPcConf = {
|
|
160
|
-
kind: PolicyControlKind.RequestApproval;
|
|
161
|
-
approverUsernames?: string[];
|
|
162
|
-
approverGroups?: string[];
|
|
163
|
-
timeoutInMinutes?: IntegerPositiveStrict;
|
|
164
|
-
numApprovals: number;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated use the new policy engine instead
|
|
168
|
-
*/
|
|
169
|
-
export type UpdateRequestApprovalPcConf = {
|
|
170
|
-
approverUsernames?: string[];
|
|
171
|
-
approverGroups?: string[];
|
|
172
|
-
timeoutInMinutes?: number;
|
|
173
|
-
numApprovals?: number;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* @deprecated use the new policy engine instead
|
|
177
|
-
*/
|
|
178
|
-
export type CreateNotifyAndAuditPcConf = {
|
|
179
|
-
kind: PolicyControlKind.NotifyAndAudit;
|
|
180
|
-
usernames?: string[];
|
|
181
|
-
groups?: string[];
|
|
182
|
-
};
|
|
183
|
-
/**
|
|
184
|
-
* @deprecated use the new policy engine instead
|
|
185
|
-
*/
|
|
186
|
-
export type UpdateNotifyAndAuditPcConf = {
|
|
187
|
-
groups?: string[];
|
|
188
|
-
usernames?: string[];
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* @deprecated use the new policy engine instead
|
|
192
|
-
*/
|
|
193
|
-
export type PolicyManagementPreferences = {
|
|
194
|
-
/**
|
|
195
|
-
* Sets default `AssetSymbol` for the policy rules that use it, such as Limit, Velocity, Siphoning, and others.
|
|
196
|
-
*/
|
|
197
|
-
policyRuleAssetSymbol?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* 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.
|
|
200
|
-
*/
|
|
201
|
-
policyRuleVelocityIntervalInMinutes: number;
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* @deprecated use the new policy engine instead
|
|
205
|
-
*/
|
|
206
|
-
export type Create = {};
|
|
207
|
-
/**
|
|
208
|
-
* @deprecated use the new policy engine instead
|
|
209
|
-
*/
|
|
210
|
-
export type EmptyConfiguration = {};
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated use the new policy engine instead
|
|
213
|
-
*/
|
|
214
|
-
export type CreateAlwaysActivatedPrConf = {
|
|
215
|
-
kind: PolicyRuleKind.AlwaysActivated;
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* @deprecated use the new policy engine instead
|
|
219
|
-
*/
|
|
220
|
-
export type UpdateAlwaysActivatedPrConf = {};
|
|
221
|
-
/**
|
|
222
|
-
* @deprecated use the new policy engine instead
|
|
223
|
-
*/
|
|
224
|
-
export type AssetAccountFilter = {
|
|
225
|
-
kind: PolicyObjectFilterKind.AssetAccount;
|
|
226
|
-
assetAccountIds?: EntityId[];
|
|
227
|
-
tags?: Tag[];
|
|
228
|
-
assetSymbols?: string[];
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* @deprecated use the new policy engine instead
|
|
232
|
-
*/
|
|
233
|
-
export type PublicKeyFilter = {
|
|
234
|
-
kind: PolicyObjectFilterKind.PublicKey;
|
|
235
|
-
publicKeyIds?: EntityId[];
|
|
236
|
-
tags?: string[];
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* @deprecated use the new policy engine instead
|
|
240
|
-
*/
|
|
241
|
-
export type WalletFilter = {
|
|
242
|
-
kind: PolicyObjectFilterKind.Wallet;
|
|
243
|
-
walletIds?: EntityId[];
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* @deprecated use the new policy engine instead
|
|
247
|
-
*/
|
|
248
|
-
export type CreatePolicyInput = {
|
|
249
|
-
activityKind: PolicyActivityKind;
|
|
250
|
-
description: string;
|
|
251
|
-
name?: string;
|
|
252
|
-
controlIds: EntityId[];
|
|
253
|
-
ruleIds: EntityId[];
|
|
254
|
-
status: PolicyStatus;
|
|
255
|
-
filter?: PolicyObjectFilter;
|
|
256
|
-
isImmutable?: boolean;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* @deprecated use the new policy engine instead
|
|
260
|
-
*/
|
|
261
|
-
export type UpdatePolicyInput = {
|
|
262
|
-
description?: string;
|
|
263
|
-
controlIds?: EntityId[];
|
|
264
|
-
ruleIds?: EntityId[];
|
|
265
|
-
status?: PolicyStatus;
|
|
266
|
-
filter?: PolicyObjectFilter;
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* @deprecated use the new policy engine instead
|
|
270
|
-
*/
|
|
271
|
-
export type CreatePolicyControlInput = {
|
|
272
|
-
description?: string;
|
|
273
|
-
name?: string;
|
|
274
|
-
configuration: CreatePolicyControlConfiguration;
|
|
275
|
-
isImmutable?: boolean;
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* @deprecated use the new policy engine instead
|
|
279
|
-
*/
|
|
280
|
-
export type UpdatePolicyControlInput = {
|
|
281
|
-
description?: string;
|
|
282
|
-
name?: string;
|
|
283
|
-
configuration?: UpdatePolicyControlConfiguration;
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* @deprecated use the new policy engine instead
|
|
287
|
-
*/
|
|
288
|
-
export type CreatePolicyRuleInput = {
|
|
289
|
-
description?: string;
|
|
290
|
-
name?: string;
|
|
291
|
-
configuration: CreatePolicyRuleConfiguration;
|
|
292
|
-
isImmutable?: boolean;
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* @deprecated use the new policy engine instead
|
|
296
|
-
*/
|
|
297
|
-
export type UpdatePolicyRuleInput = {
|
|
298
|
-
description?: string;
|
|
299
|
-
name?: string;
|
|
300
|
-
configuration: UpdatePolicyRuleConfiguration;
|
|
301
|
-
};
|
|
302
|
-
/**
|
|
303
|
-
* @deprecated use the new policy engine instead
|
|
304
|
-
*/
|
|
305
|
-
export type CreatePolicyRuleConfiguration = CreateAmountLimitPrConf | CreateTransferLimitPrConf | CreateOutgoingVelocityPrConf | CreateAlwaysActivatedPrConf;
|
|
306
|
-
/**
|
|
307
|
-
* @deprecated use the new policy engine instead
|
|
308
|
-
*/
|
|
309
|
-
export type UpdatePolicyRuleConfiguration = UpdateAmountLimitPrConf | UpdateTransferLimitPrConf | UpdateOutgoingVelocityPrConf | UpdateAlwaysActivatedPrConf;
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated use the new policy engine instead
|
|
312
|
-
*/
|
|
313
|
-
export type UpdatePolicyControlConfiguration = UpdateRequestApprovalPcConf | UpdateNotifyAndAuditPcConf;
|
|
314
|
-
/**
|
|
315
|
-
* @deprecated use the new policy engine instead
|
|
316
|
-
*/
|
|
317
|
-
export type CreatePolicyControlConfiguration = CreateRequestApprovalPcConf | CreateNotifyAndAuditPcConf;
|
|
318
|
-
/**
|
|
319
|
-
* @deprecated use the new policy engine instead
|
|
320
|
-
*/
|
|
321
|
-
export type PolicyRuleConfiguration = AmountLimitPrConf | TransferLimitPrConf | OutgoingVelocityPrConf | EmptyConfiguration;
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated use the new policy engine instead
|
|
324
|
-
*/
|
|
325
|
-
export type PolicyControlConfiguration = NotifyAndAuditPcConf | RequestApprovalPcConf;
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated use the new policy engine instead
|
|
328
|
-
*/
|
|
329
|
-
export type PolicyObjectFilter = AssetAccountFilter | PublicKeyFilter | WalletFilter;
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated use the new policy engine instead
|
|
332
|
-
*/
|
|
333
|
-
export declare enum PolicyActivityKind {
|
|
334
|
-
CreatingSignature = "CreatingSignature",
|
|
335
|
-
TransactionInitiation = "TransactionInitiation",
|
|
336
|
-
PaymentInitiation = "PaymentInitiation",
|
|
337
|
-
WalletsTransferAsset = "WalletsTransferAsset"
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* @deprecated use the new policy engine instead
|
|
341
|
-
*/
|
|
342
|
-
export declare enum PolicyStatus {
|
|
343
|
-
Enabled = "Enabled",
|
|
344
|
-
Disabled = "Disabled",
|
|
345
|
-
Archived = "Archived"
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* @deprecated use the new policy engine instead
|
|
349
|
-
*/
|
|
350
|
-
export declare enum PolicyControlKind {
|
|
351
|
-
NotifyAndAudit = "NotifyAndAudit",
|
|
352
|
-
RequestApproval = "RequestApproval"
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated use the new policy engine instead
|
|
356
|
-
*/
|
|
357
|
-
export declare enum PolicyRuleKind {
|
|
358
|
-
AlwaysActivated = "AlwaysActivated",
|
|
359
|
-
PaymentAmountLimit = "PaymentAmountLimit",
|
|
360
|
-
PaymentAmountOutgoingVelocity = "PaymentAmountOutgoingVelocity",
|
|
361
|
-
TransferAmountLimit = "TransferAmountLimit"
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* @deprecated use the new policy engine instead
|
|
365
|
-
*/
|
|
366
|
-
export declare enum Currency {
|
|
367
|
-
EUR = "EUR",
|
|
368
|
-
USD = "USD"
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* @deprecated use the new policy engine instead
|
|
372
|
-
*/
|
|
373
|
-
export declare enum PolicyControlStatus {
|
|
374
|
-
Enabled = "Enabled",
|
|
375
|
-
Archived = "Archived"
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @deprecated use the new policy engine instead
|
|
379
|
-
*/
|
|
380
|
-
export declare enum PolicyRuleStatus {
|
|
381
|
-
Enabled = "Enabled",
|
|
382
|
-
Archived = "Archived"
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* @deprecated use the new policy engine instead
|
|
386
|
-
*/
|
|
387
|
-
export declare enum PolicyObjectFilterKind {
|
|
388
|
-
AssetAccount = "AssetAccount",
|
|
389
|
-
PublicKey = "PublicKey",
|
|
390
|
-
Wallet = "Wallet"
|
|
391
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolicyObjectFilterKind = exports.PolicyRuleStatus = exports.PolicyControlStatus = exports.Currency = exports.PolicyRuleKind = exports.PolicyControlKind = exports.PolicyStatus = exports.PolicyActivityKind = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use the new policy engine instead
|
|
6
|
-
*/
|
|
7
|
-
var PolicyActivityKind;
|
|
8
|
-
(function (PolicyActivityKind) {
|
|
9
|
-
// FIXME: Missing documentation for CreatingSignature
|
|
10
|
-
PolicyActivityKind["CreatingSignature"] = "CreatingSignature";
|
|
11
|
-
// FIXME: Missing documentation for TransactionInitiation
|
|
12
|
-
PolicyActivityKind["TransactionInitiation"] = "TransactionInitiation";
|
|
13
|
-
// FIXME: Missing documentation for PaymentInitiation
|
|
14
|
-
PolicyActivityKind["PaymentInitiation"] = "PaymentInitiation";
|
|
15
|
-
// FIXME: Missing documentation for WalletsTransferAsset
|
|
16
|
-
PolicyActivityKind["WalletsTransferAsset"] = "WalletsTransferAsset";
|
|
17
|
-
})(PolicyActivityKind || (exports.PolicyActivityKind = PolicyActivityKind = {}));
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use the new policy engine instead
|
|
20
|
-
*/
|
|
21
|
-
var PolicyStatus;
|
|
22
|
-
(function (PolicyStatus) {
|
|
23
|
-
// FIXME: Missing documentation for Enabled
|
|
24
|
-
PolicyStatus["Enabled"] = "Enabled";
|
|
25
|
-
// FIXME: Missing documentation for Disabled
|
|
26
|
-
PolicyStatus["Disabled"] = "Disabled";
|
|
27
|
-
// FIXME: Missing documentation for Archived
|
|
28
|
-
PolicyStatus["Archived"] = "Archived";
|
|
29
|
-
})(PolicyStatus || (exports.PolicyStatus = PolicyStatus = {}));
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated use the new policy engine instead
|
|
32
|
-
*/
|
|
33
|
-
var PolicyControlKind;
|
|
34
|
-
(function (PolicyControlKind) {
|
|
35
|
-
// FIXME: Missing documentation for NotifyAndAudit
|
|
36
|
-
PolicyControlKind["NotifyAndAudit"] = "NotifyAndAudit";
|
|
37
|
-
// FIXME: Missing documentation for RequestApproval
|
|
38
|
-
PolicyControlKind["RequestApproval"] = "RequestApproval";
|
|
39
|
-
})(PolicyControlKind || (exports.PolicyControlKind = PolicyControlKind = {}));
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use the new policy engine instead
|
|
42
|
-
*/
|
|
43
|
-
var PolicyRuleKind;
|
|
44
|
-
(function (PolicyRuleKind) {
|
|
45
|
-
// FIXME: Missing documentation for AlwaysActivated
|
|
46
|
-
PolicyRuleKind["AlwaysActivated"] = "AlwaysActivated";
|
|
47
|
-
// FIXME: Missing documentation for PaymentAmountLimit
|
|
48
|
-
PolicyRuleKind["PaymentAmountLimit"] = "PaymentAmountLimit";
|
|
49
|
-
// FIXME: Missing documentation for PaymentAmountOutgoingVelocity
|
|
50
|
-
PolicyRuleKind["PaymentAmountOutgoingVelocity"] = "PaymentAmountOutgoingVelocity";
|
|
51
|
-
// FIXME: Missing documentation for TransferAmountLimit
|
|
52
|
-
PolicyRuleKind["TransferAmountLimit"] = "TransferAmountLimit";
|
|
53
|
-
})(PolicyRuleKind || (exports.PolicyRuleKind = PolicyRuleKind = {}));
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated use the new policy engine instead
|
|
56
|
-
*/
|
|
57
|
-
var Currency;
|
|
58
|
-
(function (Currency) {
|
|
59
|
-
// FIXME: Missing documentation for EUR
|
|
60
|
-
Currency["EUR"] = "EUR";
|
|
61
|
-
// FIXME: Missing documentation for USD
|
|
62
|
-
Currency["USD"] = "USD";
|
|
63
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated use the new policy engine instead
|
|
66
|
-
*/
|
|
67
|
-
var PolicyControlStatus;
|
|
68
|
-
(function (PolicyControlStatus) {
|
|
69
|
-
// FIXME: Missing documentation for Enabled
|
|
70
|
-
PolicyControlStatus["Enabled"] = "Enabled";
|
|
71
|
-
// FIXME: Missing documentation for Archived
|
|
72
|
-
PolicyControlStatus["Archived"] = "Archived";
|
|
73
|
-
})(PolicyControlStatus || (exports.PolicyControlStatus = PolicyControlStatus = {}));
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated use the new policy engine instead
|
|
76
|
-
*/
|
|
77
|
-
var PolicyRuleStatus;
|
|
78
|
-
(function (PolicyRuleStatus) {
|
|
79
|
-
// FIXME: Missing documentation for Enabled
|
|
80
|
-
PolicyRuleStatus["Enabled"] = "Enabled";
|
|
81
|
-
// FIXME: Missing documentation for Archived
|
|
82
|
-
PolicyRuleStatus["Archived"] = "Archived";
|
|
83
|
-
})(PolicyRuleStatus || (exports.PolicyRuleStatus = PolicyRuleStatus = {}));
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use the new policy engine instead
|
|
86
|
-
*/
|
|
87
|
-
var PolicyObjectFilterKind;
|
|
88
|
-
(function (PolicyObjectFilterKind) {
|
|
89
|
-
// FIXME: Missing documentation for AssetAccount
|
|
90
|
-
PolicyObjectFilterKind["AssetAccount"] = "AssetAccount";
|
|
91
|
-
// FIXME: Missing documentation for PublicKey
|
|
92
|
-
PolicyObjectFilterKind["PublicKey"] = "PublicKey";
|
|
93
|
-
// FIXME: Missing documentation for Wallet
|
|
94
|
-
PolicyObjectFilterKind["Wallet"] = "Wallet";
|
|
95
|
-
})(PolicyObjectFilterKind || (exports.PolicyObjectFilterKind = PolicyObjectFilterKind = {}));
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./responses"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BadRequestError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
-
import { ClusterList } from './types';
|
|
3
|
-
export type ListSignersSuccess = ClusterList;
|
|
4
|
-
export type ListSignersError = {
|
|
5
|
-
error: ForbiddenError | UnauthorizedError | BadRequestError;
|
|
6
|
-
};
|
|
7
|
-
export type ListSignersResponse = ListSignersSuccess | ListSignersError;
|
|
8
|
-
export type GetLatestClusterHealthSuccess = String;
|
|
9
|
-
export type GetLatestClusterHealthError = {
|
|
10
|
-
error: ForbiddenError;
|
|
11
|
-
};
|
|
12
|
-
export type GetLatestClusterHealthResponse = GetLatestClusterHealthSuccess | GetLatestClusterHealthError;
|
|
13
|
-
export type ListClustersHealthSuccess = String;
|
|
14
|
-
export type ListClustersHealthError = {
|
|
15
|
-
error: ForbiddenError;
|
|
16
|
-
};
|
|
17
|
-
export type ListClustersHealthResponse = ListClustersHealthSuccess | ListClustersHealthError;
|
|
18
|
-
export type SetKeyMaxPresigsSuccess = String;
|
|
19
|
-
export type SetKeyMaxPresigsError = {
|
|
20
|
-
error: ForbiddenError;
|
|
21
|
-
};
|
|
22
|
-
export type SetKeyMaxPresigsResponse = SetKeyMaxPresigsSuccess | SetKeyMaxPresigsError;
|
|
23
|
-
export type TriggerClusterProvisioningSuccess = String;
|
|
24
|
-
export type TriggerClusterProvisioningError = {
|
|
25
|
-
error: ForbiddenError;
|
|
26
|
-
};
|
|
27
|
-
export type TriggerClusterProvisioningResponse = TriggerClusterProvisioningSuccess | TriggerClusterProvisioningError;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EntityId } from '../Foundations';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
4
|
-
*/
|
|
5
|
-
export type Cluster = {
|
|
6
|
-
clusterId: EntityId;
|
|
7
|
-
signers: Signer[];
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
11
|
-
*/
|
|
12
|
-
export type Signer = {
|
|
13
|
-
signerId: string;
|
|
14
|
-
encryptionKey: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
18
|
-
*/
|
|
19
|
-
export type ClusterList = {
|
|
20
|
-
clusters: Cluster[];
|
|
21
|
-
};
|
|
File without changes
|