@dfns/sdk 0.3.3 → 0.4.0-alpha.1
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/Auth/types.d.ts +1 -0
- package/generated/networks/types.d.ts +3 -3
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +557 -328
- package/generated/wallets/types.d.ts +31 -31
- package/package.json +1 -1
- package/utils/base64.d.ts +2 -0
- package/utils/base64.js +19 -8
- package/utils/bigint.d.ts +1 -0
- package/utils/bigint.js +17 -0
- package/utils/crypto.d.ts +2 -0
- package/utils/crypto.js +33 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.js +12 -0
- package/utils/string.d.ts +2 -0
- package/utils/string.js +23 -0
|
@@ -3,16 +3,21 @@ export type ArchivePolicyParams = {
|
|
|
3
3
|
};
|
|
4
4
|
export type ArchivePolicyResponse = ({
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
action: {
|
|
7
|
+
kind: "RequestApproval";
|
|
8
|
+
approvalGroups: {
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
quorum: number;
|
|
11
|
+
approvers: {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: string[];
|
|
14
|
+
};
|
|
12
15
|
};
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
}[];
|
|
17
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "Block";
|
|
20
|
+
};
|
|
16
21
|
activityKind: "Permissions:Assign";
|
|
17
22
|
rule: {
|
|
18
23
|
kind: "AlwaysRequireApproval";
|
|
@@ -25,16 +30,21 @@ export type ArchivePolicyResponse = ({
|
|
|
25
30
|
} | undefined;
|
|
26
31
|
} | {
|
|
27
32
|
name: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
action: {
|
|
34
|
+
kind: "RequestApproval";
|
|
35
|
+
approvalGroups: {
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
quorum: number;
|
|
38
|
+
approvers: {
|
|
39
|
+
[x: string]: {
|
|
40
|
+
[x: string]: string[];
|
|
41
|
+
};
|
|
34
42
|
};
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
}[];
|
|
44
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "Block";
|
|
47
|
+
};
|
|
38
48
|
activityKind: "Permissions:Modify";
|
|
39
49
|
rule: {
|
|
40
50
|
kind: "AlwaysRequireApproval";
|
|
@@ -47,16 +57,21 @@ export type ArchivePolicyResponse = ({
|
|
|
47
57
|
} | undefined;
|
|
48
58
|
} | {
|
|
49
59
|
name: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
action: {
|
|
61
|
+
kind: "RequestApproval";
|
|
62
|
+
approvalGroups: {
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
quorum: number;
|
|
65
|
+
approvers: {
|
|
66
|
+
[x: string]: {
|
|
67
|
+
[x: string]: string[];
|
|
68
|
+
};
|
|
56
69
|
};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
}[];
|
|
71
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
72
|
+
} | {
|
|
73
|
+
kind: "Block";
|
|
74
|
+
};
|
|
60
75
|
activityKind: "Policies:Modify";
|
|
61
76
|
rule: {
|
|
62
77
|
kind: "AlwaysRequireApproval";
|
|
@@ -69,20 +84,30 @@ export type ArchivePolicyResponse = ({
|
|
|
69
84
|
} | undefined;
|
|
70
85
|
} | {
|
|
71
86
|
name: string;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
action: {
|
|
88
|
+
kind: "RequestApproval";
|
|
89
|
+
approvalGroups: {
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
quorum: number;
|
|
92
|
+
approvers: {
|
|
93
|
+
[x: string]: {
|
|
94
|
+
[x: string]: string[];
|
|
95
|
+
};
|
|
78
96
|
};
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
}[];
|
|
98
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
99
|
+
} | {
|
|
100
|
+
kind: "Block";
|
|
101
|
+
};
|
|
82
102
|
activityKind: "Wallets:Sign";
|
|
83
103
|
rule: {
|
|
84
104
|
kind: "AlwaysRequireApproval";
|
|
85
105
|
configuration: {};
|
|
106
|
+
} | {
|
|
107
|
+
kind: "TransactionRecipientWhitelist";
|
|
108
|
+
configuration: {
|
|
109
|
+
addresses: string[];
|
|
110
|
+
};
|
|
86
111
|
} | {
|
|
87
112
|
kind: "TransactionAmountLimit";
|
|
88
113
|
configuration: {
|
|
@@ -119,6 +144,9 @@ export type CreateApprovalDecisionBody = {
|
|
|
119
144
|
value: "Approved" | "Denied";
|
|
120
145
|
reason?: string | undefined;
|
|
121
146
|
};
|
|
147
|
+
export type CreateApprovalDecisionParams = {
|
|
148
|
+
approvalId: string;
|
|
149
|
+
};
|
|
122
150
|
export type CreateApprovalDecisionResponse = {
|
|
123
151
|
id: string;
|
|
124
152
|
initiatorId: string;
|
|
@@ -127,7 +155,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
127
155
|
activity: {
|
|
128
156
|
[x: string]: unknown;
|
|
129
157
|
};
|
|
130
|
-
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired";
|
|
158
|
+
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired";
|
|
131
159
|
expirationDate?: string | undefined;
|
|
132
160
|
dateCreated?: string | undefined;
|
|
133
161
|
dateUpdated: string;
|
|
@@ -144,21 +172,26 @@ export type CreateApprovalDecisionResponse = {
|
|
|
144
172
|
value: "Approved" | "Denied";
|
|
145
173
|
}[];
|
|
146
174
|
};
|
|
147
|
-
export type CreateApprovalDecisionRequest = {
|
|
175
|
+
export type CreateApprovalDecisionRequest = CreateApprovalDecisionParams & {
|
|
148
176
|
body: CreateApprovalDecisionBody;
|
|
149
177
|
};
|
|
150
178
|
export type CreatePolicyBody = {
|
|
151
179
|
name: string;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
180
|
+
action: {
|
|
181
|
+
kind: "RequestApproval";
|
|
182
|
+
approvalGroups: {
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
quorum: number;
|
|
185
|
+
approvers: {
|
|
186
|
+
[x: string]: {
|
|
187
|
+
[x: string]: string[];
|
|
188
|
+
};
|
|
158
189
|
};
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
|
|
190
|
+
}[];
|
|
191
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
192
|
+
} | {
|
|
193
|
+
kind: "Block";
|
|
194
|
+
};
|
|
162
195
|
activityKind: "Permissions:Assign";
|
|
163
196
|
rule: {
|
|
164
197
|
kind: "AlwaysRequireApproval";
|
|
@@ -171,16 +204,21 @@ export type CreatePolicyBody = {
|
|
|
171
204
|
} | undefined;
|
|
172
205
|
} | {
|
|
173
206
|
name: string;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
207
|
+
action: {
|
|
208
|
+
kind: "RequestApproval";
|
|
209
|
+
approvalGroups: {
|
|
210
|
+
name?: string | undefined;
|
|
211
|
+
quorum: number;
|
|
212
|
+
approvers: {
|
|
213
|
+
[x: string]: {
|
|
214
|
+
[x: string]: string[];
|
|
215
|
+
};
|
|
180
216
|
};
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
|
|
217
|
+
}[];
|
|
218
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
219
|
+
} | {
|
|
220
|
+
kind: "Block";
|
|
221
|
+
};
|
|
184
222
|
activityKind: "Permissions:Modify";
|
|
185
223
|
rule: {
|
|
186
224
|
kind: "AlwaysRequireApproval";
|
|
@@ -193,16 +231,21 @@ export type CreatePolicyBody = {
|
|
|
193
231
|
} | undefined;
|
|
194
232
|
} | {
|
|
195
233
|
name: string;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
234
|
+
action: {
|
|
235
|
+
kind: "RequestApproval";
|
|
236
|
+
approvalGroups: {
|
|
237
|
+
name?: string | undefined;
|
|
238
|
+
quorum: number;
|
|
239
|
+
approvers: {
|
|
240
|
+
[x: string]: {
|
|
241
|
+
[x: string]: string[];
|
|
242
|
+
};
|
|
202
243
|
};
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
|
|
244
|
+
}[];
|
|
245
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
246
|
+
} | {
|
|
247
|
+
kind: "Block";
|
|
248
|
+
};
|
|
206
249
|
activityKind: "Policies:Modify";
|
|
207
250
|
rule: {
|
|
208
251
|
kind: "AlwaysRequireApproval";
|
|
@@ -215,20 +258,30 @@ export type CreatePolicyBody = {
|
|
|
215
258
|
} | undefined;
|
|
216
259
|
} | {
|
|
217
260
|
name: string;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
261
|
+
action: {
|
|
262
|
+
kind: "RequestApproval";
|
|
263
|
+
approvalGroups: {
|
|
264
|
+
name?: string | undefined;
|
|
265
|
+
quorum: number;
|
|
266
|
+
approvers: {
|
|
267
|
+
[x: string]: {
|
|
268
|
+
[x: string]: string[];
|
|
269
|
+
};
|
|
224
270
|
};
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
|
|
271
|
+
}[];
|
|
272
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
273
|
+
} | {
|
|
274
|
+
kind: "Block";
|
|
275
|
+
};
|
|
228
276
|
activityKind: "Wallets:Sign";
|
|
229
277
|
rule: {
|
|
230
278
|
kind: "AlwaysRequireApproval";
|
|
231
279
|
configuration: {};
|
|
280
|
+
} | {
|
|
281
|
+
kind: "TransactionRecipientWhitelist";
|
|
282
|
+
configuration: {
|
|
283
|
+
addresses: string[];
|
|
284
|
+
};
|
|
232
285
|
} | {
|
|
233
286
|
kind: "TransactionAmountLimit";
|
|
234
287
|
configuration: {
|
|
@@ -257,16 +310,21 @@ export type CreatePolicyBody = {
|
|
|
257
310
|
};
|
|
258
311
|
export type CreatePolicyResponse = ({
|
|
259
312
|
name: string;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
313
|
+
action: {
|
|
314
|
+
kind: "RequestApproval";
|
|
315
|
+
approvalGroups: {
|
|
316
|
+
name?: string | undefined;
|
|
317
|
+
quorum: number;
|
|
318
|
+
approvers: {
|
|
319
|
+
[x: string]: {
|
|
320
|
+
[x: string]: string[];
|
|
321
|
+
};
|
|
266
322
|
};
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
|
|
323
|
+
}[];
|
|
324
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
325
|
+
} | {
|
|
326
|
+
kind: "Block";
|
|
327
|
+
};
|
|
270
328
|
activityKind: "Permissions:Assign";
|
|
271
329
|
rule: {
|
|
272
330
|
kind: "AlwaysRequireApproval";
|
|
@@ -279,16 +337,21 @@ export type CreatePolicyResponse = ({
|
|
|
279
337
|
} | undefined;
|
|
280
338
|
} | {
|
|
281
339
|
name: string;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
340
|
+
action: {
|
|
341
|
+
kind: "RequestApproval";
|
|
342
|
+
approvalGroups: {
|
|
343
|
+
name?: string | undefined;
|
|
344
|
+
quorum: number;
|
|
345
|
+
approvers: {
|
|
346
|
+
[x: string]: {
|
|
347
|
+
[x: string]: string[];
|
|
348
|
+
};
|
|
288
349
|
};
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
|
|
350
|
+
}[];
|
|
351
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
352
|
+
} | {
|
|
353
|
+
kind: "Block";
|
|
354
|
+
};
|
|
292
355
|
activityKind: "Permissions:Modify";
|
|
293
356
|
rule: {
|
|
294
357
|
kind: "AlwaysRequireApproval";
|
|
@@ -301,16 +364,21 @@ export type CreatePolicyResponse = ({
|
|
|
301
364
|
} | undefined;
|
|
302
365
|
} | {
|
|
303
366
|
name: string;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
367
|
+
action: {
|
|
368
|
+
kind: "RequestApproval";
|
|
369
|
+
approvalGroups: {
|
|
370
|
+
name?: string | undefined;
|
|
371
|
+
quorum: number;
|
|
372
|
+
approvers: {
|
|
373
|
+
[x: string]: {
|
|
374
|
+
[x: string]: string[];
|
|
375
|
+
};
|
|
310
376
|
};
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
|
|
377
|
+
}[];
|
|
378
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
379
|
+
} | {
|
|
380
|
+
kind: "Block";
|
|
381
|
+
};
|
|
314
382
|
activityKind: "Policies:Modify";
|
|
315
383
|
rule: {
|
|
316
384
|
kind: "AlwaysRequireApproval";
|
|
@@ -323,20 +391,30 @@ export type CreatePolicyResponse = ({
|
|
|
323
391
|
} | undefined;
|
|
324
392
|
} | {
|
|
325
393
|
name: string;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
394
|
+
action: {
|
|
395
|
+
kind: "RequestApproval";
|
|
396
|
+
approvalGroups: {
|
|
397
|
+
name?: string | undefined;
|
|
398
|
+
quorum: number;
|
|
399
|
+
approvers: {
|
|
400
|
+
[x: string]: {
|
|
401
|
+
[x: string]: string[];
|
|
402
|
+
};
|
|
332
403
|
};
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
|
|
404
|
+
}[];
|
|
405
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
406
|
+
} | {
|
|
407
|
+
kind: "Block";
|
|
408
|
+
};
|
|
336
409
|
activityKind: "Wallets:Sign";
|
|
337
410
|
rule: {
|
|
338
411
|
kind: "AlwaysRequireApproval";
|
|
339
412
|
configuration: {};
|
|
413
|
+
} | {
|
|
414
|
+
kind: "TransactionRecipientWhitelist";
|
|
415
|
+
configuration: {
|
|
416
|
+
addresses: string[];
|
|
417
|
+
};
|
|
340
418
|
} | {
|
|
341
419
|
kind: "TransactionAmountLimit";
|
|
342
420
|
configuration: {
|
|
@@ -376,16 +454,21 @@ export type GetPolicyParams = {
|
|
|
376
454
|
};
|
|
377
455
|
export type GetPolicyResponse = (({
|
|
378
456
|
name: string;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
457
|
+
action: {
|
|
458
|
+
kind: "RequestApproval";
|
|
459
|
+
approvalGroups: {
|
|
460
|
+
name?: string | undefined;
|
|
461
|
+
quorum: number;
|
|
462
|
+
approvers: {
|
|
463
|
+
[x: string]: {
|
|
464
|
+
[x: string]: string[];
|
|
465
|
+
};
|
|
385
466
|
};
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
|
|
467
|
+
}[];
|
|
468
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
469
|
+
} | {
|
|
470
|
+
kind: "Block";
|
|
471
|
+
};
|
|
389
472
|
activityKind: "Permissions:Assign";
|
|
390
473
|
rule: {
|
|
391
474
|
kind: "AlwaysRequireApproval";
|
|
@@ -398,16 +481,21 @@ export type GetPolicyResponse = (({
|
|
|
398
481
|
} | undefined;
|
|
399
482
|
} | {
|
|
400
483
|
name: string;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
484
|
+
action: {
|
|
485
|
+
kind: "RequestApproval";
|
|
486
|
+
approvalGroups: {
|
|
487
|
+
name?: string | undefined;
|
|
488
|
+
quorum: number;
|
|
489
|
+
approvers: {
|
|
490
|
+
[x: string]: {
|
|
491
|
+
[x: string]: string[];
|
|
492
|
+
};
|
|
407
493
|
};
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
|
|
494
|
+
}[];
|
|
495
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
496
|
+
} | {
|
|
497
|
+
kind: "Block";
|
|
498
|
+
};
|
|
411
499
|
activityKind: "Permissions:Modify";
|
|
412
500
|
rule: {
|
|
413
501
|
kind: "AlwaysRequireApproval";
|
|
@@ -420,16 +508,21 @@ export type GetPolicyResponse = (({
|
|
|
420
508
|
} | undefined;
|
|
421
509
|
} | {
|
|
422
510
|
name: string;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
511
|
+
action: {
|
|
512
|
+
kind: "RequestApproval";
|
|
513
|
+
approvalGroups: {
|
|
514
|
+
name?: string | undefined;
|
|
515
|
+
quorum: number;
|
|
516
|
+
approvers: {
|
|
517
|
+
[x: string]: {
|
|
518
|
+
[x: string]: string[];
|
|
519
|
+
};
|
|
429
520
|
};
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
|
|
521
|
+
}[];
|
|
522
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
523
|
+
} | {
|
|
524
|
+
kind: "Block";
|
|
525
|
+
};
|
|
433
526
|
activityKind: "Policies:Modify";
|
|
434
527
|
rule: {
|
|
435
528
|
kind: "AlwaysRequireApproval";
|
|
@@ -442,20 +535,30 @@ export type GetPolicyResponse = (({
|
|
|
442
535
|
} | undefined;
|
|
443
536
|
} | {
|
|
444
537
|
name: string;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
538
|
+
action: {
|
|
539
|
+
kind: "RequestApproval";
|
|
540
|
+
approvalGroups: {
|
|
541
|
+
name?: string | undefined;
|
|
542
|
+
quorum: number;
|
|
543
|
+
approvers: {
|
|
544
|
+
[x: string]: {
|
|
545
|
+
[x: string]: string[];
|
|
546
|
+
};
|
|
451
547
|
};
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
|
|
548
|
+
}[];
|
|
549
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
550
|
+
} | {
|
|
551
|
+
kind: "Block";
|
|
552
|
+
};
|
|
455
553
|
activityKind: "Wallets:Sign";
|
|
456
554
|
rule: {
|
|
457
555
|
kind: "AlwaysRequireApproval";
|
|
458
556
|
configuration: {};
|
|
557
|
+
} | {
|
|
558
|
+
kind: "TransactionRecipientWhitelist";
|
|
559
|
+
configuration: {
|
|
560
|
+
addresses: string[];
|
|
561
|
+
};
|
|
459
562
|
} | {
|
|
460
563
|
kind: "TransactionAmountLimit";
|
|
461
564
|
configuration: {
|
|
@@ -500,16 +603,21 @@ export type GetPolicyResponse = (({
|
|
|
500
603
|
entityId: string;
|
|
501
604
|
body: ({
|
|
502
605
|
name: string;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
606
|
+
action: {
|
|
607
|
+
kind: "RequestApproval";
|
|
608
|
+
approvalGroups: {
|
|
609
|
+
name?: string | undefined;
|
|
610
|
+
quorum: number;
|
|
611
|
+
approvers: {
|
|
612
|
+
[x: string]: {
|
|
613
|
+
[x: string]: string[];
|
|
614
|
+
};
|
|
509
615
|
};
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
|
|
616
|
+
}[];
|
|
617
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
618
|
+
} | {
|
|
619
|
+
kind: "Block";
|
|
620
|
+
};
|
|
513
621
|
activityKind: "Permissions:Assign";
|
|
514
622
|
rule: {
|
|
515
623
|
kind: "AlwaysRequireApproval";
|
|
@@ -522,16 +630,21 @@ export type GetPolicyResponse = (({
|
|
|
522
630
|
} | undefined;
|
|
523
631
|
} | {
|
|
524
632
|
name: string;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
633
|
+
action: {
|
|
634
|
+
kind: "RequestApproval";
|
|
635
|
+
approvalGroups: {
|
|
636
|
+
name?: string | undefined;
|
|
637
|
+
quorum: number;
|
|
638
|
+
approvers: {
|
|
639
|
+
[x: string]: {
|
|
640
|
+
[x: string]: string[];
|
|
641
|
+
};
|
|
531
642
|
};
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
|
|
643
|
+
}[];
|
|
644
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
645
|
+
} | {
|
|
646
|
+
kind: "Block";
|
|
647
|
+
};
|
|
535
648
|
activityKind: "Permissions:Modify";
|
|
536
649
|
rule: {
|
|
537
650
|
kind: "AlwaysRequireApproval";
|
|
@@ -544,16 +657,21 @@ export type GetPolicyResponse = (({
|
|
|
544
657
|
} | undefined;
|
|
545
658
|
} | {
|
|
546
659
|
name: string;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
660
|
+
action: {
|
|
661
|
+
kind: "RequestApproval";
|
|
662
|
+
approvalGroups: {
|
|
663
|
+
name?: string | undefined;
|
|
664
|
+
quorum: number;
|
|
665
|
+
approvers: {
|
|
666
|
+
[x: string]: {
|
|
667
|
+
[x: string]: string[];
|
|
668
|
+
};
|
|
553
669
|
};
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
|
|
670
|
+
}[];
|
|
671
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
672
|
+
} | {
|
|
673
|
+
kind: "Block";
|
|
674
|
+
};
|
|
557
675
|
activityKind: "Policies:Modify";
|
|
558
676
|
rule: {
|
|
559
677
|
kind: "AlwaysRequireApproval";
|
|
@@ -566,20 +684,30 @@ export type GetPolicyResponse = (({
|
|
|
566
684
|
} | undefined;
|
|
567
685
|
} | {
|
|
568
686
|
name: string;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
687
|
+
action: {
|
|
688
|
+
kind: "RequestApproval";
|
|
689
|
+
approvalGroups: {
|
|
690
|
+
name?: string | undefined;
|
|
691
|
+
quorum: number;
|
|
692
|
+
approvers: {
|
|
693
|
+
[x: string]: {
|
|
694
|
+
[x: string]: string[];
|
|
695
|
+
};
|
|
575
696
|
};
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
|
|
697
|
+
}[];
|
|
698
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
699
|
+
} | {
|
|
700
|
+
kind: "Block";
|
|
701
|
+
};
|
|
579
702
|
activityKind: "Wallets:Sign";
|
|
580
703
|
rule: {
|
|
581
704
|
kind: "AlwaysRequireApproval";
|
|
582
705
|
configuration: {};
|
|
706
|
+
} | {
|
|
707
|
+
kind: "TransactionRecipientWhitelist";
|
|
708
|
+
configuration: {
|
|
709
|
+
addresses: string[];
|
|
710
|
+
};
|
|
583
711
|
} | {
|
|
584
712
|
kind: "TransactionAmountLimit";
|
|
585
713
|
configuration: {
|
|
@@ -619,7 +747,7 @@ export type GetPolicyRequest = GetPolicyParams;
|
|
|
619
747
|
export type ListApprovalsQuery = {
|
|
620
748
|
limit?: string | undefined;
|
|
621
749
|
paginationToken?: string | undefined;
|
|
622
|
-
status?: ("Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired") | undefined;
|
|
750
|
+
status?: ("Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired") | undefined;
|
|
623
751
|
triggerStatus?: ("Triggered" | "Skipped") | undefined;
|
|
624
752
|
initiatorId?: string | undefined;
|
|
625
753
|
approverId?: string | undefined;
|
|
@@ -633,7 +761,7 @@ export type ListApprovalsResponse = {
|
|
|
633
761
|
activity: {
|
|
634
762
|
[x: string]: unknown;
|
|
635
763
|
};
|
|
636
|
-
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired";
|
|
764
|
+
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired";
|
|
637
765
|
expirationDate?: string | undefined;
|
|
638
766
|
dateCreated?: string | undefined;
|
|
639
767
|
dateUpdated: string;
|
|
@@ -658,20 +786,26 @@ export type ListApprovalsRequest = {
|
|
|
658
786
|
export type ListPoliciesQuery = {
|
|
659
787
|
limit?: string | undefined;
|
|
660
788
|
paginationToken?: string | undefined;
|
|
789
|
+
status?: ("Active" | "Archived") | undefined;
|
|
661
790
|
};
|
|
662
791
|
export type ListPoliciesResponse = {
|
|
663
792
|
items: ((({
|
|
664
793
|
name: string;
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
794
|
+
action: {
|
|
795
|
+
kind: "RequestApproval";
|
|
796
|
+
approvalGroups: {
|
|
797
|
+
name?: string | undefined;
|
|
798
|
+
quorum: number;
|
|
799
|
+
approvers: {
|
|
800
|
+
[x: string]: {
|
|
801
|
+
[x: string]: string[];
|
|
802
|
+
};
|
|
671
803
|
};
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
|
|
804
|
+
}[];
|
|
805
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
806
|
+
} | {
|
|
807
|
+
kind: "Block";
|
|
808
|
+
};
|
|
675
809
|
activityKind: "Permissions:Assign";
|
|
676
810
|
rule: {
|
|
677
811
|
kind: "AlwaysRequireApproval";
|
|
@@ -684,16 +818,21 @@ export type ListPoliciesResponse = {
|
|
|
684
818
|
} | undefined;
|
|
685
819
|
} | {
|
|
686
820
|
name: string;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
821
|
+
action: {
|
|
822
|
+
kind: "RequestApproval";
|
|
823
|
+
approvalGroups: {
|
|
824
|
+
name?: string | undefined;
|
|
825
|
+
quorum: number;
|
|
826
|
+
approvers: {
|
|
827
|
+
[x: string]: {
|
|
828
|
+
[x: string]: string[];
|
|
829
|
+
};
|
|
693
830
|
};
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
|
|
831
|
+
}[];
|
|
832
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
833
|
+
} | {
|
|
834
|
+
kind: "Block";
|
|
835
|
+
};
|
|
697
836
|
activityKind: "Permissions:Modify";
|
|
698
837
|
rule: {
|
|
699
838
|
kind: "AlwaysRequireApproval";
|
|
@@ -706,16 +845,21 @@ export type ListPoliciesResponse = {
|
|
|
706
845
|
} | undefined;
|
|
707
846
|
} | {
|
|
708
847
|
name: string;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
848
|
+
action: {
|
|
849
|
+
kind: "RequestApproval";
|
|
850
|
+
approvalGroups: {
|
|
851
|
+
name?: string | undefined;
|
|
852
|
+
quorum: number;
|
|
853
|
+
approvers: {
|
|
854
|
+
[x: string]: {
|
|
855
|
+
[x: string]: string[];
|
|
856
|
+
};
|
|
715
857
|
};
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
|
|
858
|
+
}[];
|
|
859
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
860
|
+
} | {
|
|
861
|
+
kind: "Block";
|
|
862
|
+
};
|
|
719
863
|
activityKind: "Policies:Modify";
|
|
720
864
|
rule: {
|
|
721
865
|
kind: "AlwaysRequireApproval";
|
|
@@ -728,20 +872,30 @@ export type ListPoliciesResponse = {
|
|
|
728
872
|
} | undefined;
|
|
729
873
|
} | {
|
|
730
874
|
name: string;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
875
|
+
action: {
|
|
876
|
+
kind: "RequestApproval";
|
|
877
|
+
approvalGroups: {
|
|
878
|
+
name?: string | undefined;
|
|
879
|
+
quorum: number;
|
|
880
|
+
approvers: {
|
|
881
|
+
[x: string]: {
|
|
882
|
+
[x: string]: string[];
|
|
883
|
+
};
|
|
737
884
|
};
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
|
|
885
|
+
}[];
|
|
886
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
887
|
+
} | {
|
|
888
|
+
kind: "Block";
|
|
889
|
+
};
|
|
741
890
|
activityKind: "Wallets:Sign";
|
|
742
891
|
rule: {
|
|
743
892
|
kind: "AlwaysRequireApproval";
|
|
744
893
|
configuration: {};
|
|
894
|
+
} | {
|
|
895
|
+
kind: "TransactionRecipientWhitelist";
|
|
896
|
+
configuration: {
|
|
897
|
+
addresses: string[];
|
|
898
|
+
};
|
|
745
899
|
} | {
|
|
746
900
|
kind: "TransactionAmountLimit";
|
|
747
901
|
configuration: {
|
|
@@ -786,16 +940,21 @@ export type ListPoliciesResponse = {
|
|
|
786
940
|
entityId: string;
|
|
787
941
|
body: ({
|
|
788
942
|
name: string;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
943
|
+
action: {
|
|
944
|
+
kind: "RequestApproval";
|
|
945
|
+
approvalGroups: {
|
|
946
|
+
name?: string | undefined;
|
|
947
|
+
quorum: number;
|
|
948
|
+
approvers: {
|
|
949
|
+
[x: string]: {
|
|
950
|
+
[x: string]: string[];
|
|
951
|
+
};
|
|
795
952
|
};
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
|
|
953
|
+
}[];
|
|
954
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
955
|
+
} | {
|
|
956
|
+
kind: "Block";
|
|
957
|
+
};
|
|
799
958
|
activityKind: "Permissions:Assign";
|
|
800
959
|
rule: {
|
|
801
960
|
kind: "AlwaysRequireApproval";
|
|
@@ -808,16 +967,21 @@ export type ListPoliciesResponse = {
|
|
|
808
967
|
} | undefined;
|
|
809
968
|
} | {
|
|
810
969
|
name: string;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
970
|
+
action: {
|
|
971
|
+
kind: "RequestApproval";
|
|
972
|
+
approvalGroups: {
|
|
973
|
+
name?: string | undefined;
|
|
974
|
+
quorum: number;
|
|
975
|
+
approvers: {
|
|
976
|
+
[x: string]: {
|
|
977
|
+
[x: string]: string[];
|
|
978
|
+
};
|
|
817
979
|
};
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
|
|
980
|
+
}[];
|
|
981
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
982
|
+
} | {
|
|
983
|
+
kind: "Block";
|
|
984
|
+
};
|
|
821
985
|
activityKind: "Permissions:Modify";
|
|
822
986
|
rule: {
|
|
823
987
|
kind: "AlwaysRequireApproval";
|
|
@@ -830,16 +994,21 @@ export type ListPoliciesResponse = {
|
|
|
830
994
|
} | undefined;
|
|
831
995
|
} | {
|
|
832
996
|
name: string;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
997
|
+
action: {
|
|
998
|
+
kind: "RequestApproval";
|
|
999
|
+
approvalGroups: {
|
|
1000
|
+
name?: string | undefined;
|
|
1001
|
+
quorum: number;
|
|
1002
|
+
approvers: {
|
|
1003
|
+
[x: string]: {
|
|
1004
|
+
[x: string]: string[];
|
|
1005
|
+
};
|
|
839
1006
|
};
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
|
|
1007
|
+
}[];
|
|
1008
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1009
|
+
} | {
|
|
1010
|
+
kind: "Block";
|
|
1011
|
+
};
|
|
843
1012
|
activityKind: "Policies:Modify";
|
|
844
1013
|
rule: {
|
|
845
1014
|
kind: "AlwaysRequireApproval";
|
|
@@ -852,20 +1021,30 @@ export type ListPoliciesResponse = {
|
|
|
852
1021
|
} | undefined;
|
|
853
1022
|
} | {
|
|
854
1023
|
name: string;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
1024
|
+
action: {
|
|
1025
|
+
kind: "RequestApproval";
|
|
1026
|
+
approvalGroups: {
|
|
1027
|
+
name?: string | undefined;
|
|
1028
|
+
quorum: number;
|
|
1029
|
+
approvers: {
|
|
1030
|
+
[x: string]: {
|
|
1031
|
+
[x: string]: string[];
|
|
1032
|
+
};
|
|
861
1033
|
};
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
|
|
1034
|
+
}[];
|
|
1035
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1036
|
+
} | {
|
|
1037
|
+
kind: "Block";
|
|
1038
|
+
};
|
|
865
1039
|
activityKind: "Wallets:Sign";
|
|
866
1040
|
rule: {
|
|
867
1041
|
kind: "AlwaysRequireApproval";
|
|
868
1042
|
configuration: {};
|
|
1043
|
+
} | {
|
|
1044
|
+
kind: "TransactionRecipientWhitelist";
|
|
1045
|
+
configuration: {
|
|
1046
|
+
addresses: string[];
|
|
1047
|
+
};
|
|
869
1048
|
} | {
|
|
870
1049
|
kind: "TransactionAmountLimit";
|
|
871
1050
|
configuration: {
|
|
@@ -908,16 +1087,21 @@ export type ListPoliciesRequest = {
|
|
|
908
1087
|
};
|
|
909
1088
|
export type UpdatePolicyBody = {
|
|
910
1089
|
name: string;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
1090
|
+
action: {
|
|
1091
|
+
kind: "RequestApproval";
|
|
1092
|
+
approvalGroups: {
|
|
1093
|
+
name?: string | undefined;
|
|
1094
|
+
quorum: number;
|
|
1095
|
+
approvers: {
|
|
1096
|
+
[x: string]: {
|
|
1097
|
+
[x: string]: string[];
|
|
1098
|
+
};
|
|
917
1099
|
};
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
|
|
1100
|
+
}[];
|
|
1101
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1102
|
+
} | {
|
|
1103
|
+
kind: "Block";
|
|
1104
|
+
};
|
|
921
1105
|
activityKind: "Permissions:Assign";
|
|
922
1106
|
rule: {
|
|
923
1107
|
kind: "AlwaysRequireApproval";
|
|
@@ -930,16 +1114,21 @@ export type UpdatePolicyBody = {
|
|
|
930
1114
|
} | undefined;
|
|
931
1115
|
} | {
|
|
932
1116
|
name: string;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
1117
|
+
action: {
|
|
1118
|
+
kind: "RequestApproval";
|
|
1119
|
+
approvalGroups: {
|
|
1120
|
+
name?: string | undefined;
|
|
1121
|
+
quorum: number;
|
|
1122
|
+
approvers: {
|
|
1123
|
+
[x: string]: {
|
|
1124
|
+
[x: string]: string[];
|
|
1125
|
+
};
|
|
939
1126
|
};
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
|
|
1127
|
+
}[];
|
|
1128
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1129
|
+
} | {
|
|
1130
|
+
kind: "Block";
|
|
1131
|
+
};
|
|
943
1132
|
activityKind: "Permissions:Modify";
|
|
944
1133
|
rule: {
|
|
945
1134
|
kind: "AlwaysRequireApproval";
|
|
@@ -952,16 +1141,21 @@ export type UpdatePolicyBody = {
|
|
|
952
1141
|
} | undefined;
|
|
953
1142
|
} | {
|
|
954
1143
|
name: string;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
1144
|
+
action: {
|
|
1145
|
+
kind: "RequestApproval";
|
|
1146
|
+
approvalGroups: {
|
|
1147
|
+
name?: string | undefined;
|
|
1148
|
+
quorum: number;
|
|
1149
|
+
approvers: {
|
|
1150
|
+
[x: string]: {
|
|
1151
|
+
[x: string]: string[];
|
|
1152
|
+
};
|
|
961
1153
|
};
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
|
|
1154
|
+
}[];
|
|
1155
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1156
|
+
} | {
|
|
1157
|
+
kind: "Block";
|
|
1158
|
+
};
|
|
965
1159
|
activityKind: "Policies:Modify";
|
|
966
1160
|
rule: {
|
|
967
1161
|
kind: "AlwaysRequireApproval";
|
|
@@ -974,20 +1168,30 @@ export type UpdatePolicyBody = {
|
|
|
974
1168
|
} | undefined;
|
|
975
1169
|
} | {
|
|
976
1170
|
name: string;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1171
|
+
action: {
|
|
1172
|
+
kind: "RequestApproval";
|
|
1173
|
+
approvalGroups: {
|
|
1174
|
+
name?: string | undefined;
|
|
1175
|
+
quorum: number;
|
|
1176
|
+
approvers: {
|
|
1177
|
+
[x: string]: {
|
|
1178
|
+
[x: string]: string[];
|
|
1179
|
+
};
|
|
983
1180
|
};
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
|
|
1181
|
+
}[];
|
|
1182
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1183
|
+
} | {
|
|
1184
|
+
kind: "Block";
|
|
1185
|
+
};
|
|
987
1186
|
activityKind: "Wallets:Sign";
|
|
988
1187
|
rule: {
|
|
989
1188
|
kind: "AlwaysRequireApproval";
|
|
990
1189
|
configuration: {};
|
|
1190
|
+
} | {
|
|
1191
|
+
kind: "TransactionRecipientWhitelist";
|
|
1192
|
+
configuration: {
|
|
1193
|
+
addresses: string[];
|
|
1194
|
+
};
|
|
991
1195
|
} | {
|
|
992
1196
|
kind: "TransactionAmountLimit";
|
|
993
1197
|
configuration: {
|
|
@@ -1019,16 +1223,21 @@ export type UpdatePolicyParams = {
|
|
|
1019
1223
|
};
|
|
1020
1224
|
export type UpdatePolicyResponse = ({
|
|
1021
1225
|
name: string;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1226
|
+
action: {
|
|
1227
|
+
kind: "RequestApproval";
|
|
1228
|
+
approvalGroups: {
|
|
1229
|
+
name?: string | undefined;
|
|
1230
|
+
quorum: number;
|
|
1231
|
+
approvers: {
|
|
1232
|
+
[x: string]: {
|
|
1233
|
+
[x: string]: string[];
|
|
1234
|
+
};
|
|
1028
1235
|
};
|
|
1029
|
-
};
|
|
1030
|
-
|
|
1031
|
-
|
|
1236
|
+
}[];
|
|
1237
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1238
|
+
} | {
|
|
1239
|
+
kind: "Block";
|
|
1240
|
+
};
|
|
1032
1241
|
activityKind: "Permissions:Assign";
|
|
1033
1242
|
rule: {
|
|
1034
1243
|
kind: "AlwaysRequireApproval";
|
|
@@ -1041,16 +1250,21 @@ export type UpdatePolicyResponse = ({
|
|
|
1041
1250
|
} | undefined;
|
|
1042
1251
|
} | {
|
|
1043
1252
|
name: string;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1253
|
+
action: {
|
|
1254
|
+
kind: "RequestApproval";
|
|
1255
|
+
approvalGroups: {
|
|
1256
|
+
name?: string | undefined;
|
|
1257
|
+
quorum: number;
|
|
1258
|
+
approvers: {
|
|
1259
|
+
[x: string]: {
|
|
1260
|
+
[x: string]: string[];
|
|
1261
|
+
};
|
|
1050
1262
|
};
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1263
|
+
}[];
|
|
1264
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1265
|
+
} | {
|
|
1266
|
+
kind: "Block";
|
|
1267
|
+
};
|
|
1054
1268
|
activityKind: "Permissions:Modify";
|
|
1055
1269
|
rule: {
|
|
1056
1270
|
kind: "AlwaysRequireApproval";
|
|
@@ -1063,16 +1277,21 @@ export type UpdatePolicyResponse = ({
|
|
|
1063
1277
|
} | undefined;
|
|
1064
1278
|
} | {
|
|
1065
1279
|
name: string;
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1280
|
+
action: {
|
|
1281
|
+
kind: "RequestApproval";
|
|
1282
|
+
approvalGroups: {
|
|
1283
|
+
name?: string | undefined;
|
|
1284
|
+
quorum: number;
|
|
1285
|
+
approvers: {
|
|
1286
|
+
[x: string]: {
|
|
1287
|
+
[x: string]: string[];
|
|
1288
|
+
};
|
|
1072
1289
|
};
|
|
1073
|
-
};
|
|
1074
|
-
|
|
1075
|
-
|
|
1290
|
+
}[];
|
|
1291
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1292
|
+
} | {
|
|
1293
|
+
kind: "Block";
|
|
1294
|
+
};
|
|
1076
1295
|
activityKind: "Policies:Modify";
|
|
1077
1296
|
rule: {
|
|
1078
1297
|
kind: "AlwaysRequireApproval";
|
|
@@ -1085,20 +1304,30 @@ export type UpdatePolicyResponse = ({
|
|
|
1085
1304
|
} | undefined;
|
|
1086
1305
|
} | {
|
|
1087
1306
|
name: string;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1307
|
+
action: {
|
|
1308
|
+
kind: "RequestApproval";
|
|
1309
|
+
approvalGroups: {
|
|
1310
|
+
name?: string | undefined;
|
|
1311
|
+
quorum: number;
|
|
1312
|
+
approvers: {
|
|
1313
|
+
[x: string]: {
|
|
1314
|
+
[x: string]: string[];
|
|
1315
|
+
};
|
|
1094
1316
|
};
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
|
|
1317
|
+
}[];
|
|
1318
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1319
|
+
} | {
|
|
1320
|
+
kind: "Block";
|
|
1321
|
+
};
|
|
1098
1322
|
activityKind: "Wallets:Sign";
|
|
1099
1323
|
rule: {
|
|
1100
1324
|
kind: "AlwaysRequireApproval";
|
|
1101
1325
|
configuration: {};
|
|
1326
|
+
} | {
|
|
1327
|
+
kind: "TransactionRecipientWhitelist";
|
|
1328
|
+
configuration: {
|
|
1329
|
+
addresses: string[];
|
|
1330
|
+
};
|
|
1102
1331
|
} | {
|
|
1103
1332
|
kind: "TransactionAmountLimit";
|
|
1104
1333
|
configuration: {
|