@coffre/client 0.9.0 → 0.10.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/dist/credential.d.ts +1 -1
- package/dist/{index-hImoxb74.d.ts → index-D86fJBDd.d.ts} +495 -60
- package/dist/index.d.ts +2 -2
- package/dist/index.js +63 -2
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +6 -0
- package/package.json +1 -1
- package/src/api.ts +357 -42
- package/src/credential.ts +1 -1
- package/src/index.ts +74 -3
- package/src/routes.ts +6 -0
package/src/api.ts
CHANGED
|
@@ -50,14 +50,14 @@ export type Api = {
|
|
|
50
50
|
label: string;
|
|
51
51
|
expiresAt: string;
|
|
52
52
|
scope: {
|
|
53
|
-
[key: string]:
|
|
53
|
+
[key: string]: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
credentialExpiresAt: string | null;
|
|
57
57
|
environments: {
|
|
58
58
|
project: string;
|
|
59
59
|
environment: string;
|
|
60
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
60
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
61
61
|
}[];
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -69,12 +69,13 @@ export type Api = {
|
|
|
69
69
|
name: string;
|
|
70
70
|
archivedAt: string | null;
|
|
71
71
|
folder: string | null;
|
|
72
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
72
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
73
73
|
environments: {
|
|
74
74
|
slug: string;
|
|
75
75
|
name: string;
|
|
76
76
|
accessible: boolean;
|
|
77
77
|
parent: string | null;
|
|
78
|
+
protected: boolean;
|
|
78
79
|
personal: boolean;
|
|
79
80
|
details: null | {
|
|
80
81
|
archivedAt: string | null;
|
|
@@ -149,6 +150,7 @@ export type Api = {
|
|
|
149
150
|
slug: string;
|
|
150
151
|
name: string;
|
|
151
152
|
archivedAt: string | null;
|
|
153
|
+
protected: boolean;
|
|
152
154
|
};
|
|
153
155
|
created: boolean;
|
|
154
156
|
forked: null | {
|
|
@@ -165,12 +167,14 @@ export type Api = {
|
|
|
165
167
|
name?: string;
|
|
166
168
|
archived?: boolean;
|
|
167
169
|
slug?: string;
|
|
170
|
+
protected?: boolean;
|
|
168
171
|
};
|
|
169
172
|
output: {
|
|
170
173
|
environment: {
|
|
171
174
|
slug: string;
|
|
172
175
|
name: string;
|
|
173
176
|
archivedAt: string | null;
|
|
177
|
+
protected: boolean;
|
|
174
178
|
};
|
|
175
179
|
};
|
|
176
180
|
};
|
|
@@ -228,7 +232,7 @@ export type Api = {
|
|
|
228
232
|
"GET /secrets/:project/:environment": {
|
|
229
233
|
input: undefined;
|
|
230
234
|
output: {
|
|
231
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
235
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
232
236
|
keys: {
|
|
233
237
|
key: string;
|
|
234
238
|
reference: null | {
|
|
@@ -257,6 +261,8 @@ export type Api = {
|
|
|
257
261
|
};
|
|
258
262
|
};
|
|
259
263
|
value: string | null;
|
|
264
|
+
sensitivity: "plain" | "secret" | "sensitive" | null;
|
|
265
|
+
readable: boolean;
|
|
260
266
|
parent: null | {
|
|
261
267
|
from: string;
|
|
262
268
|
state: "inherited" | "overridden" | "removed";
|
|
@@ -270,6 +276,7 @@ export type Api = {
|
|
|
270
276
|
of: string;
|
|
271
277
|
fallback: boolean;
|
|
272
278
|
};
|
|
279
|
+
protected: boolean;
|
|
273
280
|
rotateAfterDays: number | null;
|
|
274
281
|
};
|
|
275
282
|
};
|
|
@@ -285,10 +292,17 @@ export type Api = {
|
|
|
285
292
|
};
|
|
286
293
|
};
|
|
287
294
|
replaces?: string;
|
|
295
|
+
sensitivity?: "secret" | "sensitive";
|
|
288
296
|
} | {
|
|
289
297
|
value: string;
|
|
290
298
|
plain: true;
|
|
291
299
|
replaces?: string;
|
|
300
|
+
} | {
|
|
301
|
+
value: string;
|
|
302
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
303
|
+
replaces?: string;
|
|
304
|
+
} | {
|
|
305
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
292
306
|
} | {
|
|
293
307
|
ref: string;
|
|
294
308
|
};
|
|
@@ -298,6 +312,7 @@ export type Api = {
|
|
|
298
312
|
keys: {
|
|
299
313
|
[key: string]: {
|
|
300
314
|
version: number;
|
|
315
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
301
316
|
} | {
|
|
302
317
|
archived: true;
|
|
303
318
|
} | {
|
|
@@ -337,6 +352,7 @@ export type Api = {
|
|
|
337
352
|
kek: string;
|
|
338
353
|
recipe: string | null;
|
|
339
354
|
plain: boolean;
|
|
355
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
340
356
|
}[];
|
|
341
357
|
};
|
|
342
358
|
};
|
|
@@ -427,6 +443,7 @@ export type Api = {
|
|
|
427
443
|
values: {
|
|
428
444
|
[key: string]: string;
|
|
429
445
|
};
|
|
446
|
+
sensitive: string[];
|
|
430
447
|
version: string | null;
|
|
431
448
|
};
|
|
432
449
|
};
|
|
@@ -460,9 +477,9 @@ export type Api = {
|
|
|
460
477
|
id: string;
|
|
461
478
|
project: string;
|
|
462
479
|
environment: string | null;
|
|
463
|
-
role:
|
|
480
|
+
role: string;
|
|
464
481
|
roleName: string;
|
|
465
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
482
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
466
483
|
expiresAt: string | null;
|
|
467
484
|
}[];
|
|
468
485
|
}[];
|
|
@@ -519,7 +536,7 @@ export type Api = {
|
|
|
519
536
|
expiresAt: string;
|
|
520
537
|
lastUsedAt: string | null;
|
|
521
538
|
scope: null | {
|
|
522
|
-
[key: string]:
|
|
539
|
+
[key: string]: string;
|
|
523
540
|
};
|
|
524
541
|
}[];
|
|
525
542
|
apps: {
|
|
@@ -543,7 +560,7 @@ export type Api = {
|
|
|
543
560
|
lastUsedAt: string | null;
|
|
544
561
|
lastUsedIp: string | null;
|
|
545
562
|
scope: null | {
|
|
546
|
-
[key: string]:
|
|
563
|
+
[key: string]: string;
|
|
547
564
|
};
|
|
548
565
|
}[];
|
|
549
566
|
references: {
|
|
@@ -580,8 +597,8 @@ export type Api = {
|
|
|
580
597
|
};
|
|
581
598
|
};
|
|
582
599
|
access?: {
|
|
583
|
-
[key: string]:
|
|
584
|
-
role:
|
|
600
|
+
[key: string]: string | null | {
|
|
601
|
+
role: string;
|
|
585
602
|
until: string | null;
|
|
586
603
|
};
|
|
587
604
|
};
|
|
@@ -661,7 +678,7 @@ export type Api = {
|
|
|
661
678
|
expiresAt: string;
|
|
662
679
|
lastUsedAt: string | null;
|
|
663
680
|
scope: null | {
|
|
664
|
-
[key: string]:
|
|
681
|
+
[key: string]: string;
|
|
665
682
|
};
|
|
666
683
|
}[];
|
|
667
684
|
apps: {
|
|
@@ -685,7 +702,7 @@ export type Api = {
|
|
|
685
702
|
lastUsedAt: string | null;
|
|
686
703
|
lastUsedIp: string | null;
|
|
687
704
|
scope: null | {
|
|
688
|
-
[key: string]:
|
|
705
|
+
[key: string]: string;
|
|
689
706
|
};
|
|
690
707
|
}[];
|
|
691
708
|
references: {
|
|
@@ -720,7 +737,7 @@ export type Api = {
|
|
|
720
737
|
lastUsedAt: string | null;
|
|
721
738
|
lastUsedIp: string | null;
|
|
722
739
|
scope: null | {
|
|
723
|
-
[key: string]:
|
|
740
|
+
[key: string]: string;
|
|
724
741
|
};
|
|
725
742
|
}[];
|
|
726
743
|
};
|
|
@@ -731,7 +748,7 @@ export type Api = {
|
|
|
731
748
|
expiresInDays?: number;
|
|
732
749
|
expiresInMinutes?: number;
|
|
733
750
|
scope?: {
|
|
734
|
-
[key: string]:
|
|
751
|
+
[key: string]: string;
|
|
735
752
|
};
|
|
736
753
|
};
|
|
737
754
|
output: {
|
|
@@ -739,11 +756,11 @@ export type Api = {
|
|
|
739
756
|
token: string;
|
|
740
757
|
expiresAt: string;
|
|
741
758
|
scope: {
|
|
742
|
-
[key: string]:
|
|
759
|
+
[key: string]: string;
|
|
743
760
|
};
|
|
744
761
|
} | {
|
|
745
762
|
scope: {
|
|
746
|
-
[key: string]:
|
|
763
|
+
[key: string]: string;
|
|
747
764
|
};
|
|
748
765
|
};
|
|
749
766
|
};
|
|
@@ -770,7 +787,7 @@ export type Api = {
|
|
|
770
787
|
[key: string]: string | string[];
|
|
771
788
|
};
|
|
772
789
|
scope: null | {
|
|
773
|
-
[key: string]:
|
|
790
|
+
[key: string]: string;
|
|
774
791
|
};
|
|
775
792
|
label: string | null;
|
|
776
793
|
createdAt: string;
|
|
@@ -787,7 +804,7 @@ export type Api = {
|
|
|
787
804
|
};
|
|
788
805
|
issuer?: string | null;
|
|
789
806
|
scope?: {
|
|
790
|
-
[key: string]:
|
|
807
|
+
[key: string]: string;
|
|
791
808
|
};
|
|
792
809
|
label?: string | null;
|
|
793
810
|
replaces?: string[];
|
|
@@ -810,7 +827,7 @@ export type Api = {
|
|
|
810
827
|
[key: string]: string | string[];
|
|
811
828
|
};
|
|
812
829
|
scope: {
|
|
813
|
-
[key: string]:
|
|
830
|
+
[key: string]: string;
|
|
814
831
|
};
|
|
815
832
|
replaces: {
|
|
816
833
|
id: string;
|
|
@@ -831,7 +848,7 @@ export type Api = {
|
|
|
831
848
|
[key: string]: string | string[];
|
|
832
849
|
};
|
|
833
850
|
scope: null | {
|
|
834
|
-
[key: string]:
|
|
851
|
+
[key: string]: string;
|
|
835
852
|
};
|
|
836
853
|
label: string | null;
|
|
837
854
|
createdAt: string;
|
|
@@ -868,8 +885,8 @@ export type Api = {
|
|
|
868
885
|
};
|
|
869
886
|
"PATCH /access/:member": {
|
|
870
887
|
input: {
|
|
871
|
-
[key: string]:
|
|
872
|
-
role:
|
|
888
|
+
[key: string]: string | null | {
|
|
889
|
+
role: string;
|
|
873
890
|
until: string | null;
|
|
874
891
|
};
|
|
875
892
|
};
|
|
@@ -1086,11 +1103,16 @@ export type Api = {
|
|
|
1086
1103
|
};
|
|
1087
1104
|
};
|
|
1088
1105
|
"GET /audit/verification": {
|
|
1089
|
-
input:
|
|
1106
|
+
input: {
|
|
1107
|
+
from?: string;
|
|
1108
|
+
};
|
|
1090
1109
|
output: {
|
|
1091
1110
|
ok: true;
|
|
1092
1111
|
through: number | null;
|
|
1093
1112
|
entries: number;
|
|
1113
|
+
from: number;
|
|
1114
|
+
remaining: number;
|
|
1115
|
+
next?: string | null;
|
|
1094
1116
|
checkpoint: null | {
|
|
1095
1117
|
seq: number;
|
|
1096
1118
|
signedAt: string;
|
|
@@ -1218,9 +1240,9 @@ export type Api = {
|
|
|
1218
1240
|
id: string;
|
|
1219
1241
|
project: string;
|
|
1220
1242
|
environment: string | null;
|
|
1221
|
-
role:
|
|
1243
|
+
role: string;
|
|
1222
1244
|
roleName: string;
|
|
1223
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1245
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1224
1246
|
expiresAt: string | null;
|
|
1225
1247
|
}[];
|
|
1226
1248
|
};
|
|
@@ -1330,7 +1352,7 @@ export type Api = {
|
|
|
1330
1352
|
[key: string]: string | string[];
|
|
1331
1353
|
};
|
|
1332
1354
|
scope: null | {
|
|
1333
|
-
[key: string]:
|
|
1355
|
+
[key: string]: string;
|
|
1334
1356
|
};
|
|
1335
1357
|
label: string | null;
|
|
1336
1358
|
createdAt: string;
|
|
@@ -1364,14 +1386,210 @@ export type Api = {
|
|
|
1364
1386
|
token: string;
|
|
1365
1387
|
expiresAt: string;
|
|
1366
1388
|
scope: {
|
|
1367
|
-
[key: string]:
|
|
1389
|
+
[key: string]: string;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
"GET /roles": {
|
|
1394
|
+
input: undefined;
|
|
1395
|
+
output: {
|
|
1396
|
+
roles: {
|
|
1397
|
+
name: string;
|
|
1398
|
+
description: string;
|
|
1399
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1400
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1401
|
+
id: string;
|
|
1402
|
+
builtin: boolean;
|
|
1403
|
+
edited: boolean;
|
|
1404
|
+
fixed: boolean;
|
|
1405
|
+
default: null | {
|
|
1406
|
+
name: string;
|
|
1407
|
+
description: string;
|
|
1408
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1409
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1410
|
+
};
|
|
1411
|
+
assignableToEnvironment: boolean;
|
|
1412
|
+
grants: number;
|
|
1413
|
+
}[];
|
|
1414
|
+
instanceRoles: {
|
|
1415
|
+
name: string;
|
|
1416
|
+
description: string;
|
|
1417
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1418
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1419
|
+
id: string;
|
|
1420
|
+
builtin: boolean;
|
|
1421
|
+
edited: boolean;
|
|
1422
|
+
fixed: boolean;
|
|
1423
|
+
default: null | {
|
|
1424
|
+
name: string;
|
|
1425
|
+
description: string;
|
|
1426
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1427
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1428
|
+
};
|
|
1429
|
+
assignableToEnvironment: boolean;
|
|
1430
|
+
grants: number;
|
|
1431
|
+
}[];
|
|
1432
|
+
editable: boolean;
|
|
1433
|
+
};
|
|
1434
|
+
};
|
|
1435
|
+
"PUT /roles/:role": {
|
|
1436
|
+
input: {
|
|
1437
|
+
name: string;
|
|
1438
|
+
description: string;
|
|
1439
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1440
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1441
|
+
};
|
|
1442
|
+
output: {
|
|
1443
|
+
impact: {
|
|
1444
|
+
change: "narrows" | "widens";
|
|
1445
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1446
|
+
protected: boolean;
|
|
1447
|
+
people: number;
|
|
1448
|
+
services: number;
|
|
1449
|
+
environments: number;
|
|
1450
|
+
projects: number;
|
|
1451
|
+
examples: string[];
|
|
1452
|
+
}[];
|
|
1453
|
+
sentence: string;
|
|
1454
|
+
revision: string;
|
|
1455
|
+
} | {
|
|
1456
|
+
role: null | {
|
|
1457
|
+
name: string;
|
|
1458
|
+
description: string;
|
|
1459
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1460
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1461
|
+
id: string;
|
|
1462
|
+
builtin: boolean;
|
|
1463
|
+
edited: boolean;
|
|
1464
|
+
fixed: boolean;
|
|
1465
|
+
default: null | {
|
|
1466
|
+
name: string;
|
|
1467
|
+
description: string;
|
|
1468
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1469
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1470
|
+
};
|
|
1471
|
+
assignableToEnvironment: boolean;
|
|
1472
|
+
grants: number;
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
"DELETE /roles/:role": {
|
|
1477
|
+
input: undefined;
|
|
1478
|
+
output: {
|
|
1479
|
+
impact: {
|
|
1480
|
+
change: "narrows" | "widens";
|
|
1481
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1482
|
+
protected: boolean;
|
|
1483
|
+
people: number;
|
|
1484
|
+
services: number;
|
|
1485
|
+
environments: number;
|
|
1486
|
+
projects: number;
|
|
1487
|
+
examples: string[];
|
|
1488
|
+
}[];
|
|
1489
|
+
sentence: string;
|
|
1490
|
+
revision: string;
|
|
1491
|
+
} | {
|
|
1492
|
+
role: null | {
|
|
1493
|
+
name: string;
|
|
1494
|
+
description: string;
|
|
1495
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1496
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1497
|
+
id: string;
|
|
1498
|
+
builtin: boolean;
|
|
1499
|
+
edited: boolean;
|
|
1500
|
+
fixed: boolean;
|
|
1501
|
+
default: null | {
|
|
1502
|
+
name: string;
|
|
1503
|
+
description: string;
|
|
1504
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1505
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1506
|
+
};
|
|
1507
|
+
assignableToEnvironment: boolean;
|
|
1508
|
+
grants: number;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
"PUT /instance-roles/:role": {
|
|
1513
|
+
input: {
|
|
1514
|
+
name: string;
|
|
1515
|
+
description: string;
|
|
1516
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1517
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1518
|
+
};
|
|
1519
|
+
output: {
|
|
1520
|
+
impact: {
|
|
1521
|
+
change: "narrows" | "widens";
|
|
1522
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1523
|
+
protected: boolean;
|
|
1524
|
+
people: number;
|
|
1525
|
+
services: number;
|
|
1526
|
+
environments: number;
|
|
1527
|
+
projects: number;
|
|
1528
|
+
examples: string[];
|
|
1529
|
+
}[];
|
|
1530
|
+
sentence: string;
|
|
1531
|
+
revision: string;
|
|
1532
|
+
} | {
|
|
1533
|
+
role: null | {
|
|
1534
|
+
name: string;
|
|
1535
|
+
description: string;
|
|
1536
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1537
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1538
|
+
id: string;
|
|
1539
|
+
builtin: boolean;
|
|
1540
|
+
edited: boolean;
|
|
1541
|
+
fixed: boolean;
|
|
1542
|
+
default: null | {
|
|
1543
|
+
name: string;
|
|
1544
|
+
description: string;
|
|
1545
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1546
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1547
|
+
};
|
|
1548
|
+
assignableToEnvironment: boolean;
|
|
1549
|
+
grants: number;
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
"DELETE /instance-roles/:role": {
|
|
1554
|
+
input: undefined;
|
|
1555
|
+
output: {
|
|
1556
|
+
impact: {
|
|
1557
|
+
change: "narrows" | "widens";
|
|
1558
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1559
|
+
protected: boolean;
|
|
1560
|
+
people: number;
|
|
1561
|
+
services: number;
|
|
1562
|
+
environments: number;
|
|
1563
|
+
projects: number;
|
|
1564
|
+
examples: string[];
|
|
1565
|
+
}[];
|
|
1566
|
+
sentence: string;
|
|
1567
|
+
revision: string;
|
|
1568
|
+
} | {
|
|
1569
|
+
role: null | {
|
|
1570
|
+
name: string;
|
|
1571
|
+
description: string;
|
|
1572
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1573
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1574
|
+
id: string;
|
|
1575
|
+
builtin: boolean;
|
|
1576
|
+
edited: boolean;
|
|
1577
|
+
fixed: boolean;
|
|
1578
|
+
default: null | {
|
|
1579
|
+
name: string;
|
|
1580
|
+
description: string;
|
|
1581
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1582
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1583
|
+
};
|
|
1584
|
+
assignableToEnvironment: boolean;
|
|
1585
|
+
grants: number;
|
|
1368
1586
|
};
|
|
1369
1587
|
};
|
|
1370
1588
|
};
|
|
1371
1589
|
};
|
|
1372
1590
|
|
|
1373
|
-
export type AccessValue =
|
|
1374
|
-
role:
|
|
1591
|
+
export type AccessValue = string | null | {
|
|
1592
|
+
role: string;
|
|
1375
1593
|
until: string | null;
|
|
1376
1594
|
};
|
|
1377
1595
|
|
|
@@ -1501,7 +1719,7 @@ export type BindingPlan = {
|
|
|
1501
1719
|
[key: string]: string | string[];
|
|
1502
1720
|
};
|
|
1503
1721
|
scope: {
|
|
1504
|
-
[key: string]:
|
|
1722
|
+
[key: string]: string;
|
|
1505
1723
|
};
|
|
1506
1724
|
replaces: {
|
|
1507
1725
|
id: string;
|
|
@@ -1523,7 +1741,7 @@ export type BindingView = {
|
|
|
1523
1741
|
[key: string]: string | string[];
|
|
1524
1742
|
};
|
|
1525
1743
|
scope: null | {
|
|
1526
|
-
[key: string]:
|
|
1744
|
+
[key: string]: string;
|
|
1527
1745
|
};
|
|
1528
1746
|
label: string | null;
|
|
1529
1747
|
createdAt: string;
|
|
@@ -1700,14 +1918,14 @@ export type Me = {
|
|
|
1700
1918
|
label: string;
|
|
1701
1919
|
expiresAt: string;
|
|
1702
1920
|
scope: {
|
|
1703
|
-
[key: string]:
|
|
1921
|
+
[key: string]: string;
|
|
1704
1922
|
};
|
|
1705
1923
|
};
|
|
1706
1924
|
credentialExpiresAt: string | null;
|
|
1707
1925
|
environments: {
|
|
1708
1926
|
project: string;
|
|
1709
1927
|
environment: string;
|
|
1710
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1928
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1711
1929
|
}[];
|
|
1712
1930
|
};
|
|
1713
1931
|
|
|
@@ -1736,9 +1954,9 @@ export type Member = {
|
|
|
1736
1954
|
id: string;
|
|
1737
1955
|
project: string;
|
|
1738
1956
|
environment: string | null;
|
|
1739
|
-
role:
|
|
1957
|
+
role: string;
|
|
1740
1958
|
roleName: string;
|
|
1741
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1959
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1742
1960
|
expiresAt: string | null;
|
|
1743
1961
|
}[];
|
|
1744
1962
|
};
|
|
@@ -1766,9 +1984,9 @@ export type MemberAccess = {
|
|
|
1766
1984
|
id: string;
|
|
1767
1985
|
project: string;
|
|
1768
1986
|
environment: string | null;
|
|
1769
|
-
role:
|
|
1987
|
+
role: string;
|
|
1770
1988
|
roleName: string;
|
|
1771
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1989
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1772
1990
|
expiresAt: string | null;
|
|
1773
1991
|
}[];
|
|
1774
1992
|
};
|
|
@@ -1838,7 +2056,7 @@ export type OffboardingReport = {
|
|
|
1838
2056
|
expiresAt: string;
|
|
1839
2057
|
lastUsedAt: string | null;
|
|
1840
2058
|
scope: null | {
|
|
1841
|
-
[key: string]:
|
|
2059
|
+
[key: string]: string;
|
|
1842
2060
|
};
|
|
1843
2061
|
}[];
|
|
1844
2062
|
apps: {
|
|
@@ -1862,7 +2080,7 @@ export type OffboardingReport = {
|
|
|
1862
2080
|
lastUsedAt: string | null;
|
|
1863
2081
|
lastUsedIp: string | null;
|
|
1864
2082
|
scope: null | {
|
|
1865
|
-
[key: string]:
|
|
2083
|
+
[key: string]: string;
|
|
1866
2084
|
};
|
|
1867
2085
|
}[];
|
|
1868
2086
|
references: {
|
|
@@ -1912,12 +2130,13 @@ export type ProjectSummary = {
|
|
|
1912
2130
|
name: string;
|
|
1913
2131
|
archivedAt: string | null;
|
|
1914
2132
|
folder: string | null;
|
|
1915
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
2133
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1916
2134
|
environments: {
|
|
1917
2135
|
slug: string;
|
|
1918
2136
|
name: string;
|
|
1919
2137
|
accessible: boolean;
|
|
1920
2138
|
parent: string | null;
|
|
2139
|
+
protected: boolean;
|
|
1921
2140
|
personal: boolean;
|
|
1922
2141
|
details: null | {
|
|
1923
2142
|
archivedAt: string | null;
|
|
@@ -1945,6 +2164,98 @@ export type RemovedMember = {
|
|
|
1945
2164
|
toRotate: number;
|
|
1946
2165
|
};
|
|
1947
2166
|
|
|
2167
|
+
export type ImpactLine = {
|
|
2168
|
+
change: "narrows" | "widens";
|
|
2169
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
2170
|
+
protected: boolean;
|
|
2171
|
+
people: number;
|
|
2172
|
+
services: number;
|
|
2173
|
+
environments: number;
|
|
2174
|
+
projects: number;
|
|
2175
|
+
examples: string[];
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
export type RoleImpact = {
|
|
2179
|
+
impact: {
|
|
2180
|
+
change: "narrows" | "widens";
|
|
2181
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
2182
|
+
protected: boolean;
|
|
2183
|
+
people: number;
|
|
2184
|
+
services: number;
|
|
2185
|
+
environments: number;
|
|
2186
|
+
projects: number;
|
|
2187
|
+
examples: string[];
|
|
2188
|
+
}[];
|
|
2189
|
+
sentence: string;
|
|
2190
|
+
revision: string;
|
|
2191
|
+
};
|
|
2192
|
+
|
|
2193
|
+
export type RoleView = {
|
|
2194
|
+
name: string;
|
|
2195
|
+
description: string;
|
|
2196
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2197
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2198
|
+
id: string;
|
|
2199
|
+
builtin: boolean;
|
|
2200
|
+
edited: boolean;
|
|
2201
|
+
fixed: boolean;
|
|
2202
|
+
default: null | {
|
|
2203
|
+
name: string;
|
|
2204
|
+
description: string;
|
|
2205
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2206
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2207
|
+
};
|
|
2208
|
+
assignableToEnvironment: boolean;
|
|
2209
|
+
grants: number;
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
export type RolesView = {
|
|
2213
|
+
roles: {
|
|
2214
|
+
name: string;
|
|
2215
|
+
description: string;
|
|
2216
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2217
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2218
|
+
id: string;
|
|
2219
|
+
builtin: boolean;
|
|
2220
|
+
edited: boolean;
|
|
2221
|
+
fixed: boolean;
|
|
2222
|
+
default: null | {
|
|
2223
|
+
name: string;
|
|
2224
|
+
description: string;
|
|
2225
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2226
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2227
|
+
};
|
|
2228
|
+
assignableToEnvironment: boolean;
|
|
2229
|
+
grants: number;
|
|
2230
|
+
}[];
|
|
2231
|
+
instanceRoles: {
|
|
2232
|
+
name: string;
|
|
2233
|
+
description: string;
|
|
2234
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2235
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2236
|
+
id: string;
|
|
2237
|
+
builtin: boolean;
|
|
2238
|
+
edited: boolean;
|
|
2239
|
+
fixed: boolean;
|
|
2240
|
+
default: null | {
|
|
2241
|
+
name: string;
|
|
2242
|
+
description: string;
|
|
2243
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2244
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2245
|
+
};
|
|
2246
|
+
assignableToEnvironment: boolean;
|
|
2247
|
+
grants: number;
|
|
2248
|
+
}[];
|
|
2249
|
+
editable: boolean;
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
export type EnvironmentView = {
|
|
2253
|
+
slug: string;
|
|
2254
|
+
name: string;
|
|
2255
|
+
archivedAt: string | null;
|
|
2256
|
+
protected: boolean;
|
|
2257
|
+
};
|
|
2258
|
+
|
|
1948
2259
|
export type SecretKey = {
|
|
1949
2260
|
key: string;
|
|
1950
2261
|
reference: null | {
|
|
@@ -1973,6 +2284,8 @@ export type SecretKey = {
|
|
|
1973
2284
|
};
|
|
1974
2285
|
};
|
|
1975
2286
|
value: string | null;
|
|
2287
|
+
sensitivity: "plain" | "secret" | "sensitive" | null;
|
|
2288
|
+
readable: boolean;
|
|
1976
2289
|
parent: null | {
|
|
1977
2290
|
from: string;
|
|
1978
2291
|
state: "inherited" | "overridden" | "removed";
|
|
@@ -1990,6 +2303,7 @@ export type SecretVersion = {
|
|
|
1990
2303
|
kek: string;
|
|
1991
2304
|
recipe: string | null;
|
|
1992
2305
|
plain: boolean;
|
|
2306
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
1993
2307
|
};
|
|
1994
2308
|
|
|
1995
2309
|
export type SessionRow = {
|
|
@@ -2010,6 +2324,7 @@ export type SetResult = {
|
|
|
2010
2324
|
keys: {
|
|
2011
2325
|
[key: string]: {
|
|
2012
2326
|
version: number;
|
|
2327
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
2013
2328
|
} | {
|
|
2014
2329
|
archived: true;
|
|
2015
2330
|
} | {
|
|
@@ -2020,7 +2335,7 @@ export type SetResult = {
|
|
|
2020
2335
|
|
|
2021
2336
|
export type TokenPlan = {
|
|
2022
2337
|
scope: {
|
|
2023
|
-
[key: string]:
|
|
2338
|
+
[key: string]: string;
|
|
2024
2339
|
};
|
|
2025
2340
|
};
|
|
2026
2341
|
|
|
@@ -2034,6 +2349,6 @@ export type TokenRow = {
|
|
|
2034
2349
|
lastUsedAt: string | null;
|
|
2035
2350
|
lastUsedIp: string | null;
|
|
2036
2351
|
scope: null | {
|
|
2037
|
-
[key: string]:
|
|
2352
|
+
[key: string]: string;
|
|
2038
2353
|
};
|
|
2039
2354
|
};
|