@coffre/client 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credential.d.ts +1 -1
- package/dist/{index-hImoxb74.d.ts → index-PXC2jUur.d.ts} +456 -58
- package/dist/index.d.ts +2 -2
- package/dist/index.js +44 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +6 -0
- package/package.json +1 -1
- package/src/api.ts +351 -41
- package/src/credential.ts +1 -1
- package/src/index.ts +55 -2
- 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
|
};
|
|
@@ -1218,9 +1235,9 @@ export type Api = {
|
|
|
1218
1235
|
id: string;
|
|
1219
1236
|
project: string;
|
|
1220
1237
|
environment: string | null;
|
|
1221
|
-
role:
|
|
1238
|
+
role: string;
|
|
1222
1239
|
roleName: string;
|
|
1223
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1240
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1224
1241
|
expiresAt: string | null;
|
|
1225
1242
|
}[];
|
|
1226
1243
|
};
|
|
@@ -1330,7 +1347,7 @@ export type Api = {
|
|
|
1330
1347
|
[key: string]: string | string[];
|
|
1331
1348
|
};
|
|
1332
1349
|
scope: null | {
|
|
1333
|
-
[key: string]:
|
|
1350
|
+
[key: string]: string;
|
|
1334
1351
|
};
|
|
1335
1352
|
label: string | null;
|
|
1336
1353
|
createdAt: string;
|
|
@@ -1364,14 +1381,210 @@ export type Api = {
|
|
|
1364
1381
|
token: string;
|
|
1365
1382
|
expiresAt: string;
|
|
1366
1383
|
scope: {
|
|
1367
|
-
[key: string]:
|
|
1384
|
+
[key: string]: string;
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
"GET /roles": {
|
|
1389
|
+
input: undefined;
|
|
1390
|
+
output: {
|
|
1391
|
+
roles: {
|
|
1392
|
+
name: string;
|
|
1393
|
+
description: string;
|
|
1394
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1395
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1396
|
+
id: string;
|
|
1397
|
+
builtin: boolean;
|
|
1398
|
+
edited: boolean;
|
|
1399
|
+
fixed: boolean;
|
|
1400
|
+
default: null | {
|
|
1401
|
+
name: string;
|
|
1402
|
+
description: string;
|
|
1403
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1404
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1405
|
+
};
|
|
1406
|
+
assignableToEnvironment: boolean;
|
|
1407
|
+
grants: number;
|
|
1408
|
+
}[];
|
|
1409
|
+
instanceRoles: {
|
|
1410
|
+
name: string;
|
|
1411
|
+
description: string;
|
|
1412
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1413
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1414
|
+
id: string;
|
|
1415
|
+
builtin: boolean;
|
|
1416
|
+
edited: boolean;
|
|
1417
|
+
fixed: boolean;
|
|
1418
|
+
default: null | {
|
|
1419
|
+
name: string;
|
|
1420
|
+
description: string;
|
|
1421
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1422
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1423
|
+
};
|
|
1424
|
+
assignableToEnvironment: boolean;
|
|
1425
|
+
grants: number;
|
|
1426
|
+
}[];
|
|
1427
|
+
editable: boolean;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
"PUT /roles/:role": {
|
|
1431
|
+
input: {
|
|
1432
|
+
name: string;
|
|
1433
|
+
description: string;
|
|
1434
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1435
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1436
|
+
};
|
|
1437
|
+
output: {
|
|
1438
|
+
impact: {
|
|
1439
|
+
change: "narrows" | "widens";
|
|
1440
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1441
|
+
protected: boolean;
|
|
1442
|
+
people: number;
|
|
1443
|
+
services: number;
|
|
1444
|
+
environments: number;
|
|
1445
|
+
projects: number;
|
|
1446
|
+
examples: string[];
|
|
1447
|
+
}[];
|
|
1448
|
+
sentence: string;
|
|
1449
|
+
revision: string;
|
|
1450
|
+
} | {
|
|
1451
|
+
role: null | {
|
|
1452
|
+
name: string;
|
|
1453
|
+
description: string;
|
|
1454
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1455
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1456
|
+
id: string;
|
|
1457
|
+
builtin: boolean;
|
|
1458
|
+
edited: boolean;
|
|
1459
|
+
fixed: boolean;
|
|
1460
|
+
default: null | {
|
|
1461
|
+
name: string;
|
|
1462
|
+
description: string;
|
|
1463
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1464
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1465
|
+
};
|
|
1466
|
+
assignableToEnvironment: boolean;
|
|
1467
|
+
grants: number;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
"DELETE /roles/:role": {
|
|
1472
|
+
input: undefined;
|
|
1473
|
+
output: {
|
|
1474
|
+
impact: {
|
|
1475
|
+
change: "narrows" | "widens";
|
|
1476
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1477
|
+
protected: boolean;
|
|
1478
|
+
people: number;
|
|
1479
|
+
services: number;
|
|
1480
|
+
environments: number;
|
|
1481
|
+
projects: number;
|
|
1482
|
+
examples: string[];
|
|
1483
|
+
}[];
|
|
1484
|
+
sentence: string;
|
|
1485
|
+
revision: string;
|
|
1486
|
+
} | {
|
|
1487
|
+
role: null | {
|
|
1488
|
+
name: string;
|
|
1489
|
+
description: string;
|
|
1490
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1491
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1492
|
+
id: string;
|
|
1493
|
+
builtin: boolean;
|
|
1494
|
+
edited: boolean;
|
|
1495
|
+
fixed: boolean;
|
|
1496
|
+
default: null | {
|
|
1497
|
+
name: string;
|
|
1498
|
+
description: string;
|
|
1499
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1500
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1501
|
+
};
|
|
1502
|
+
assignableToEnvironment: boolean;
|
|
1503
|
+
grants: number;
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
"PUT /instance-roles/:role": {
|
|
1508
|
+
input: {
|
|
1509
|
+
name: string;
|
|
1510
|
+
description: string;
|
|
1511
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1512
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1513
|
+
};
|
|
1514
|
+
output: {
|
|
1515
|
+
impact: {
|
|
1516
|
+
change: "narrows" | "widens";
|
|
1517
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1518
|
+
protected: boolean;
|
|
1519
|
+
people: number;
|
|
1520
|
+
services: number;
|
|
1521
|
+
environments: number;
|
|
1522
|
+
projects: number;
|
|
1523
|
+
examples: string[];
|
|
1524
|
+
}[];
|
|
1525
|
+
sentence: string;
|
|
1526
|
+
revision: string;
|
|
1527
|
+
} | {
|
|
1528
|
+
role: null | {
|
|
1529
|
+
name: string;
|
|
1530
|
+
description: string;
|
|
1531
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1532
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1533
|
+
id: string;
|
|
1534
|
+
builtin: boolean;
|
|
1535
|
+
edited: boolean;
|
|
1536
|
+
fixed: boolean;
|
|
1537
|
+
default: null | {
|
|
1538
|
+
name: string;
|
|
1539
|
+
description: string;
|
|
1540
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1541
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1542
|
+
};
|
|
1543
|
+
assignableToEnvironment: boolean;
|
|
1544
|
+
grants: number;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
"DELETE /instance-roles/:role": {
|
|
1549
|
+
input: undefined;
|
|
1550
|
+
output: {
|
|
1551
|
+
impact: {
|
|
1552
|
+
change: "narrows" | "widens";
|
|
1553
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1554
|
+
protected: boolean;
|
|
1555
|
+
people: number;
|
|
1556
|
+
services: number;
|
|
1557
|
+
environments: number;
|
|
1558
|
+
projects: number;
|
|
1559
|
+
examples: string[];
|
|
1560
|
+
}[];
|
|
1561
|
+
sentence: string;
|
|
1562
|
+
revision: string;
|
|
1563
|
+
} | {
|
|
1564
|
+
role: null | {
|
|
1565
|
+
name: string;
|
|
1566
|
+
description: string;
|
|
1567
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1568
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1569
|
+
id: string;
|
|
1570
|
+
builtin: boolean;
|
|
1571
|
+
edited: boolean;
|
|
1572
|
+
fixed: boolean;
|
|
1573
|
+
default: null | {
|
|
1574
|
+
name: string;
|
|
1575
|
+
description: string;
|
|
1576
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1577
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1578
|
+
};
|
|
1579
|
+
assignableToEnvironment: boolean;
|
|
1580
|
+
grants: number;
|
|
1368
1581
|
};
|
|
1369
1582
|
};
|
|
1370
1583
|
};
|
|
1371
1584
|
};
|
|
1372
1585
|
|
|
1373
|
-
export type AccessValue =
|
|
1374
|
-
role:
|
|
1586
|
+
export type AccessValue = string | null | {
|
|
1587
|
+
role: string;
|
|
1375
1588
|
until: string | null;
|
|
1376
1589
|
};
|
|
1377
1590
|
|
|
@@ -1501,7 +1714,7 @@ export type BindingPlan = {
|
|
|
1501
1714
|
[key: string]: string | string[];
|
|
1502
1715
|
};
|
|
1503
1716
|
scope: {
|
|
1504
|
-
[key: string]:
|
|
1717
|
+
[key: string]: string;
|
|
1505
1718
|
};
|
|
1506
1719
|
replaces: {
|
|
1507
1720
|
id: string;
|
|
@@ -1523,7 +1736,7 @@ export type BindingView = {
|
|
|
1523
1736
|
[key: string]: string | string[];
|
|
1524
1737
|
};
|
|
1525
1738
|
scope: null | {
|
|
1526
|
-
[key: string]:
|
|
1739
|
+
[key: string]: string;
|
|
1527
1740
|
};
|
|
1528
1741
|
label: string | null;
|
|
1529
1742
|
createdAt: string;
|
|
@@ -1700,14 +1913,14 @@ export type Me = {
|
|
|
1700
1913
|
label: string;
|
|
1701
1914
|
expiresAt: string;
|
|
1702
1915
|
scope: {
|
|
1703
|
-
[key: string]:
|
|
1916
|
+
[key: string]: string;
|
|
1704
1917
|
};
|
|
1705
1918
|
};
|
|
1706
1919
|
credentialExpiresAt: string | null;
|
|
1707
1920
|
environments: {
|
|
1708
1921
|
project: string;
|
|
1709
1922
|
environment: string;
|
|
1710
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1923
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1711
1924
|
}[];
|
|
1712
1925
|
};
|
|
1713
1926
|
|
|
@@ -1736,9 +1949,9 @@ export type Member = {
|
|
|
1736
1949
|
id: string;
|
|
1737
1950
|
project: string;
|
|
1738
1951
|
environment: string | null;
|
|
1739
|
-
role:
|
|
1952
|
+
role: string;
|
|
1740
1953
|
roleName: string;
|
|
1741
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1954
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1742
1955
|
expiresAt: string | null;
|
|
1743
1956
|
}[];
|
|
1744
1957
|
};
|
|
@@ -1766,9 +1979,9 @@ export type MemberAccess = {
|
|
|
1766
1979
|
id: string;
|
|
1767
1980
|
project: string;
|
|
1768
1981
|
environment: string | null;
|
|
1769
|
-
role:
|
|
1982
|
+
role: string;
|
|
1770
1983
|
roleName: string;
|
|
1771
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
1984
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1772
1985
|
expiresAt: string | null;
|
|
1773
1986
|
}[];
|
|
1774
1987
|
};
|
|
@@ -1838,7 +2051,7 @@ export type OffboardingReport = {
|
|
|
1838
2051
|
expiresAt: string;
|
|
1839
2052
|
lastUsedAt: string | null;
|
|
1840
2053
|
scope: null | {
|
|
1841
|
-
[key: string]:
|
|
2054
|
+
[key: string]: string;
|
|
1842
2055
|
};
|
|
1843
2056
|
}[];
|
|
1844
2057
|
apps: {
|
|
@@ -1862,7 +2075,7 @@ export type OffboardingReport = {
|
|
|
1862
2075
|
lastUsedAt: string | null;
|
|
1863
2076
|
lastUsedIp: string | null;
|
|
1864
2077
|
scope: null | {
|
|
1865
|
-
[key: string]:
|
|
2078
|
+
[key: string]: string;
|
|
1866
2079
|
};
|
|
1867
2080
|
}[];
|
|
1868
2081
|
references: {
|
|
@@ -1912,12 +2125,13 @@ export type ProjectSummary = {
|
|
|
1912
2125
|
name: string;
|
|
1913
2126
|
archivedAt: string | null;
|
|
1914
2127
|
folder: string | null;
|
|
1915
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
2128
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1916
2129
|
environments: {
|
|
1917
2130
|
slug: string;
|
|
1918
2131
|
name: string;
|
|
1919
2132
|
accessible: boolean;
|
|
1920
2133
|
parent: string | null;
|
|
2134
|
+
protected: boolean;
|
|
1921
2135
|
personal: boolean;
|
|
1922
2136
|
details: null | {
|
|
1923
2137
|
archivedAt: string | null;
|
|
@@ -1945,6 +2159,98 @@ export type RemovedMember = {
|
|
|
1945
2159
|
toRotate: number;
|
|
1946
2160
|
};
|
|
1947
2161
|
|
|
2162
|
+
export type ImpactLine = {
|
|
2163
|
+
change: "narrows" | "widens";
|
|
2164
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
2165
|
+
protected: boolean;
|
|
2166
|
+
people: number;
|
|
2167
|
+
services: number;
|
|
2168
|
+
environments: number;
|
|
2169
|
+
projects: number;
|
|
2170
|
+
examples: string[];
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
export type RoleImpact = {
|
|
2174
|
+
impact: {
|
|
2175
|
+
change: "narrows" | "widens";
|
|
2176
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
2177
|
+
protected: boolean;
|
|
2178
|
+
people: number;
|
|
2179
|
+
services: number;
|
|
2180
|
+
environments: number;
|
|
2181
|
+
projects: number;
|
|
2182
|
+
examples: string[];
|
|
2183
|
+
}[];
|
|
2184
|
+
sentence: string;
|
|
2185
|
+
revision: string;
|
|
2186
|
+
};
|
|
2187
|
+
|
|
2188
|
+
export type RoleView = {
|
|
2189
|
+
name: string;
|
|
2190
|
+
description: string;
|
|
2191
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2192
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2193
|
+
id: string;
|
|
2194
|
+
builtin: boolean;
|
|
2195
|
+
edited: boolean;
|
|
2196
|
+
fixed: boolean;
|
|
2197
|
+
default: null | {
|
|
2198
|
+
name: string;
|
|
2199
|
+
description: string;
|
|
2200
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2201
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2202
|
+
};
|
|
2203
|
+
assignableToEnvironment: boolean;
|
|
2204
|
+
grants: number;
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
export type RolesView = {
|
|
2208
|
+
roles: {
|
|
2209
|
+
name: string;
|
|
2210
|
+
description: string;
|
|
2211
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2212
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2213
|
+
id: string;
|
|
2214
|
+
builtin: boolean;
|
|
2215
|
+
edited: boolean;
|
|
2216
|
+
fixed: boolean;
|
|
2217
|
+
default: null | {
|
|
2218
|
+
name: string;
|
|
2219
|
+
description: string;
|
|
2220
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2221
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2222
|
+
};
|
|
2223
|
+
assignableToEnvironment: boolean;
|
|
2224
|
+
grants: number;
|
|
2225
|
+
}[];
|
|
2226
|
+
instanceRoles: {
|
|
2227
|
+
name: string;
|
|
2228
|
+
description: string;
|
|
2229
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2230
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2231
|
+
id: string;
|
|
2232
|
+
builtin: boolean;
|
|
2233
|
+
edited: boolean;
|
|
2234
|
+
fixed: boolean;
|
|
2235
|
+
default: null | {
|
|
2236
|
+
name: string;
|
|
2237
|
+
description: string;
|
|
2238
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2239
|
+
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
2240
|
+
};
|
|
2241
|
+
assignableToEnvironment: boolean;
|
|
2242
|
+
grants: number;
|
|
2243
|
+
}[];
|
|
2244
|
+
editable: boolean;
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
export type EnvironmentView = {
|
|
2248
|
+
slug: string;
|
|
2249
|
+
name: string;
|
|
2250
|
+
archivedAt: string | null;
|
|
2251
|
+
protected: boolean;
|
|
2252
|
+
};
|
|
2253
|
+
|
|
1948
2254
|
export type SecretKey = {
|
|
1949
2255
|
key: string;
|
|
1950
2256
|
reference: null | {
|
|
@@ -1973,6 +2279,8 @@ export type SecretKey = {
|
|
|
1973
2279
|
};
|
|
1974
2280
|
};
|
|
1975
2281
|
value: string | null;
|
|
2282
|
+
sensitivity: "plain" | "secret" | "sensitive" | null;
|
|
2283
|
+
readable: boolean;
|
|
1976
2284
|
parent: null | {
|
|
1977
2285
|
from: string;
|
|
1978
2286
|
state: "inherited" | "overridden" | "removed";
|
|
@@ -1990,6 +2298,7 @@ export type SecretVersion = {
|
|
|
1990
2298
|
kek: string;
|
|
1991
2299
|
recipe: string | null;
|
|
1992
2300
|
plain: boolean;
|
|
2301
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
1993
2302
|
};
|
|
1994
2303
|
|
|
1995
2304
|
export type SessionRow = {
|
|
@@ -2010,6 +2319,7 @@ export type SetResult = {
|
|
|
2010
2319
|
keys: {
|
|
2011
2320
|
[key: string]: {
|
|
2012
2321
|
version: number;
|
|
2322
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
2013
2323
|
} | {
|
|
2014
2324
|
archived: true;
|
|
2015
2325
|
} | {
|
|
@@ -2020,7 +2330,7 @@ export type SetResult = {
|
|
|
2020
2330
|
|
|
2021
2331
|
export type TokenPlan = {
|
|
2022
2332
|
scope: {
|
|
2023
|
-
[key: string]:
|
|
2333
|
+
[key: string]: string;
|
|
2024
2334
|
};
|
|
2025
2335
|
};
|
|
2026
2336
|
|
|
@@ -2034,6 +2344,6 @@ export type TokenRow = {
|
|
|
2034
2344
|
lastUsedAt: string | null;
|
|
2035
2345
|
lastUsedIp: string | null;
|
|
2036
2346
|
scope: null | {
|
|
2037
|
-
[key: string]:
|
|
2347
|
+
[key: string]: string;
|
|
2038
2348
|
};
|
|
2039
2349
|
};
|