@coffre/client 0.6.1 → 0.7.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/{index-BHK1QCh7.d.ts → index-D802ZJF6.d.ts} +401 -19
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -3
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +5 -0
- package/package.json +1 -1
- package/src/api.ts +281 -17
- package/src/index.ts +35 -4
- package/src/routes.ts +5 -0
|
@@ -42,6 +42,15 @@ type Api = {
|
|
|
42
42
|
mcp: string | null;
|
|
43
43
|
workloads: boolean;
|
|
44
44
|
};
|
|
45
|
+
personalToken: null | {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
expiresAt: string;
|
|
49
|
+
scope: {
|
|
50
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
credentialExpiresAt: string | null;
|
|
45
54
|
environments: {
|
|
46
55
|
project: string;
|
|
47
56
|
environment: string;
|
|
@@ -62,6 +71,8 @@ type Api = {
|
|
|
62
71
|
slug: string;
|
|
63
72
|
name: string;
|
|
64
73
|
accessible: boolean;
|
|
74
|
+
parent: string | null;
|
|
75
|
+
personal: boolean;
|
|
65
76
|
details: null | {
|
|
66
77
|
archivedAt: string | null;
|
|
67
78
|
secretCount: number | null;
|
|
@@ -73,7 +84,7 @@ type Api = {
|
|
|
73
84
|
};
|
|
74
85
|
"PUT /projects/:project": {
|
|
75
86
|
input: {
|
|
76
|
-
name
|
|
87
|
+
name?: string;
|
|
77
88
|
};
|
|
78
89
|
output: {
|
|
79
90
|
project: {
|
|
@@ -125,9 +136,10 @@ type Api = {
|
|
|
125
136
|
};
|
|
126
137
|
"PUT /projects/:project/:environment": {
|
|
127
138
|
input: {
|
|
128
|
-
name
|
|
139
|
+
name?: string;
|
|
129
140
|
from?: string;
|
|
130
141
|
references?: boolean;
|
|
142
|
+
inherit?: boolean;
|
|
131
143
|
};
|
|
132
144
|
output: {
|
|
133
145
|
environment: {
|
|
@@ -141,6 +153,7 @@ type Api = {
|
|
|
141
153
|
keys: number;
|
|
142
154
|
references: number;
|
|
143
155
|
copied: string[];
|
|
156
|
+
inherits: boolean;
|
|
144
157
|
};
|
|
145
158
|
};
|
|
146
159
|
};
|
|
@@ -232,13 +245,43 @@ type Api = {
|
|
|
232
245
|
version: number | null;
|
|
233
246
|
updatedAt: string | null;
|
|
234
247
|
updatedBy: string | null;
|
|
248
|
+
versionId: string | null;
|
|
249
|
+
generated: null | {
|
|
250
|
+
recipe: string;
|
|
251
|
+
pair?: {
|
|
252
|
+
private: string;
|
|
253
|
+
public: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
parent: null | {
|
|
257
|
+
from: string;
|
|
258
|
+
state: "inherited" | "overridden" | "removed";
|
|
259
|
+
changed: boolean;
|
|
260
|
+
reset: boolean;
|
|
261
|
+
held: boolean;
|
|
262
|
+
};
|
|
235
263
|
}[];
|
|
264
|
+
parents: string[];
|
|
265
|
+
personal: null | {
|
|
266
|
+
of: string;
|
|
267
|
+
fallback: boolean;
|
|
268
|
+
};
|
|
236
269
|
rotateAfterDays: number | null;
|
|
237
270
|
};
|
|
238
271
|
};
|
|
239
272
|
"PATCH /secrets/:project/:environment": {
|
|
240
273
|
input: {
|
|
241
274
|
[key: string]: string | null | {
|
|
275
|
+
value: string;
|
|
276
|
+
generated: {
|
|
277
|
+
recipe: string;
|
|
278
|
+
pair?: {
|
|
279
|
+
private: string;
|
|
280
|
+
public: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
replaces?: string;
|
|
284
|
+
} | {
|
|
242
285
|
ref: string;
|
|
243
286
|
};
|
|
244
287
|
};
|
|
@@ -265,6 +308,7 @@ type Api = {
|
|
|
265
308
|
key?: string;
|
|
266
309
|
archived?: boolean;
|
|
267
310
|
folder?: string | null;
|
|
311
|
+
inherit?: boolean;
|
|
268
312
|
};
|
|
269
313
|
output: {
|
|
270
314
|
key: string;
|
|
@@ -283,6 +327,7 @@ type Api = {
|
|
|
283
327
|
createdBy: string;
|
|
284
328
|
current: boolean;
|
|
285
329
|
kek: string;
|
|
330
|
+
recipe: string | null;
|
|
286
331
|
}[];
|
|
287
332
|
};
|
|
288
333
|
};
|
|
@@ -373,6 +418,7 @@ type Api = {
|
|
|
373
418
|
values: {
|
|
374
419
|
[key: string]: string;
|
|
375
420
|
};
|
|
421
|
+
version: string | null;
|
|
376
422
|
};
|
|
377
423
|
};
|
|
378
424
|
"GET /members": {
|
|
@@ -478,6 +524,19 @@ type Api = {
|
|
|
478
524
|
lastUsedIp: string | null;
|
|
479
525
|
expiresAt: string;
|
|
480
526
|
}[];
|
|
527
|
+
personalTokens: {
|
|
528
|
+
id: string;
|
|
529
|
+
label: string | null;
|
|
530
|
+
hint: string;
|
|
531
|
+
createdAt: string;
|
|
532
|
+
createdBy: string;
|
|
533
|
+
expiresAt: string;
|
|
534
|
+
lastUsedAt: string | null;
|
|
535
|
+
lastUsedIp: string | null;
|
|
536
|
+
scope: null | {
|
|
537
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
538
|
+
};
|
|
539
|
+
}[];
|
|
481
540
|
references: {
|
|
482
541
|
id: string;
|
|
483
542
|
holder: string;
|
|
@@ -489,6 +548,11 @@ type Api = {
|
|
|
489
548
|
endedBy: string | null;
|
|
490
549
|
endedAt: string | null;
|
|
491
550
|
}[];
|
|
551
|
+
personal: {
|
|
552
|
+
project: string;
|
|
553
|
+
of: string;
|
|
554
|
+
slug: string;
|
|
555
|
+
}[];
|
|
492
556
|
};
|
|
493
557
|
};
|
|
494
558
|
"PUT /members/:member": {
|
|
@@ -602,6 +666,19 @@ type Api = {
|
|
|
602
666
|
lastUsedIp: string | null;
|
|
603
667
|
expiresAt: string;
|
|
604
668
|
}[];
|
|
669
|
+
personalTokens: {
|
|
670
|
+
id: string;
|
|
671
|
+
label: string | null;
|
|
672
|
+
hint: string;
|
|
673
|
+
createdAt: string;
|
|
674
|
+
createdBy: string;
|
|
675
|
+
expiresAt: string;
|
|
676
|
+
lastUsedAt: string | null;
|
|
677
|
+
lastUsedIp: string | null;
|
|
678
|
+
scope: null | {
|
|
679
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
680
|
+
};
|
|
681
|
+
}[];
|
|
605
682
|
references: {
|
|
606
683
|
id: string;
|
|
607
684
|
holder: string;
|
|
@@ -613,6 +690,11 @@ type Api = {
|
|
|
613
690
|
endedBy: string | null;
|
|
614
691
|
endedAt: string | null;
|
|
615
692
|
}[];
|
|
693
|
+
personal: {
|
|
694
|
+
project: string;
|
|
695
|
+
of: string;
|
|
696
|
+
slug: string;
|
|
697
|
+
}[];
|
|
616
698
|
};
|
|
617
699
|
};
|
|
618
700
|
};
|
|
@@ -636,8 +718,9 @@ type Api = {
|
|
|
636
718
|
};
|
|
637
719
|
"POST /members/:member/tokens": {
|
|
638
720
|
input: {
|
|
639
|
-
expiresInDays: number;
|
|
640
721
|
label?: string | null;
|
|
722
|
+
expiresInDays?: number;
|
|
723
|
+
expiresInMinutes?: number;
|
|
641
724
|
scope?: {
|
|
642
725
|
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
643
726
|
};
|
|
@@ -669,6 +752,11 @@ type Api = {
|
|
|
669
752
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
670
753
|
issuer: string;
|
|
671
754
|
jwksUri: string;
|
|
755
|
+
keys: null | {
|
|
756
|
+
kid: string | null;
|
|
757
|
+
alg: "ES256" | "RS256";
|
|
758
|
+
thumbprint: string;
|
|
759
|
+
}[];
|
|
672
760
|
claims: {
|
|
673
761
|
[key: string]: string | string[];
|
|
674
762
|
};
|
|
@@ -694,11 +782,21 @@ type Api = {
|
|
|
694
782
|
};
|
|
695
783
|
label?: string | null;
|
|
696
784
|
replaces?: string[];
|
|
785
|
+
jwks?: {
|
|
786
|
+
keys: {
|
|
787
|
+
[key: string]: unknown;
|
|
788
|
+
}[];
|
|
789
|
+
};
|
|
697
790
|
};
|
|
698
791
|
output: {
|
|
699
792
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
700
793
|
issuer: string;
|
|
701
794
|
jwksUri: string;
|
|
795
|
+
keys: null | {
|
|
796
|
+
kid: string | null;
|
|
797
|
+
alg: "ES256" | "RS256";
|
|
798
|
+
thumbprint: string;
|
|
799
|
+
}[];
|
|
702
800
|
claims: {
|
|
703
801
|
[key: string]: string | string[];
|
|
704
802
|
};
|
|
@@ -715,6 +813,11 @@ type Api = {
|
|
|
715
813
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
716
814
|
issuer: string;
|
|
717
815
|
jwksUri: string;
|
|
816
|
+
keys: null | {
|
|
817
|
+
kid: string | null;
|
|
818
|
+
alg: "ES256" | "RS256";
|
|
819
|
+
thumbprint: string;
|
|
820
|
+
}[];
|
|
718
821
|
claims: {
|
|
719
822
|
[key: string]: string | string[];
|
|
720
823
|
};
|
|
@@ -945,6 +1048,10 @@ type Api = {
|
|
|
945
1048
|
environment: string | null;
|
|
946
1049
|
key: string | null;
|
|
947
1050
|
version: number | null;
|
|
1051
|
+
secrets: null | {
|
|
1052
|
+
key: string | null;
|
|
1053
|
+
version: number | null;
|
|
1054
|
+
}[];
|
|
948
1055
|
operationId: string | null;
|
|
949
1056
|
relatedSeq: number | null;
|
|
950
1057
|
requestId: string | null;
|
|
@@ -954,10 +1061,15 @@ type Api = {
|
|
|
954
1061
|
[key: string]: string | number;
|
|
955
1062
|
};
|
|
956
1063
|
};
|
|
1064
|
+
token: null | {
|
|
1065
|
+
id: string;
|
|
1066
|
+
label: string;
|
|
1067
|
+
};
|
|
957
1068
|
metadata: {
|
|
958
1069
|
[key: string]: unknown;
|
|
959
1070
|
};
|
|
960
1071
|
}[];
|
|
1072
|
+
more: boolean;
|
|
961
1073
|
hidden?: {
|
|
962
1074
|
action: string;
|
|
963
1075
|
count: number;
|
|
@@ -1170,6 +1282,68 @@ type Api = {
|
|
|
1170
1282
|
app: null;
|
|
1171
1283
|
};
|
|
1172
1284
|
};
|
|
1285
|
+
"GET /projects/:project/:environment/version": {
|
|
1286
|
+
input: undefined;
|
|
1287
|
+
output: {
|
|
1288
|
+
version: string;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
"POST /members/:member/bindings/keys": {
|
|
1292
|
+
input: {
|
|
1293
|
+
issuer: string;
|
|
1294
|
+
jwks: {
|
|
1295
|
+
keys: {
|
|
1296
|
+
[key: string]: unknown;
|
|
1297
|
+
}[];
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1300
|
+
output: {
|
|
1301
|
+
issuer: string;
|
|
1302
|
+
jwksUri: string;
|
|
1303
|
+
keys: {
|
|
1304
|
+
kid: string | null;
|
|
1305
|
+
alg: "ES256" | "RS256";
|
|
1306
|
+
thumbprint: string;
|
|
1307
|
+
}[];
|
|
1308
|
+
replaces: string[];
|
|
1309
|
+
} | {
|
|
1310
|
+
bindings: {
|
|
1311
|
+
id: string;
|
|
1312
|
+
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1313
|
+
issuer: string;
|
|
1314
|
+
jwksUri: string;
|
|
1315
|
+
keys: null | {
|
|
1316
|
+
kid: string | null;
|
|
1317
|
+
alg: "ES256" | "RS256";
|
|
1318
|
+
thumbprint: string;
|
|
1319
|
+
}[];
|
|
1320
|
+
claims: {
|
|
1321
|
+
[key: string]: string | string[];
|
|
1322
|
+
};
|
|
1323
|
+
scope: null | {
|
|
1324
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1325
|
+
};
|
|
1326
|
+
label: string | null;
|
|
1327
|
+
createdAt: string;
|
|
1328
|
+
createdBy: string;
|
|
1329
|
+
lastUsedAt: string | null;
|
|
1330
|
+
}[];
|
|
1331
|
+
replaced: string[];
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
"GET /personal/:project": {
|
|
1335
|
+
input: undefined;
|
|
1336
|
+
output: {
|
|
1337
|
+
configs: {
|
|
1338
|
+
owner: string;
|
|
1339
|
+
of: string;
|
|
1340
|
+
slug: string;
|
|
1341
|
+
keys: string[];
|
|
1342
|
+
archived: boolean;
|
|
1343
|
+
createdAt: string;
|
|
1344
|
+
}[];
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1173
1347
|
};
|
|
1174
1348
|
type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
|
|
1175
1349
|
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
@@ -1228,6 +1402,10 @@ type AuditEntryView = {
|
|
|
1228
1402
|
environment: string | null;
|
|
1229
1403
|
key: string | null;
|
|
1230
1404
|
version: number | null;
|
|
1405
|
+
secrets: null | {
|
|
1406
|
+
key: string | null;
|
|
1407
|
+
version: number | null;
|
|
1408
|
+
}[];
|
|
1231
1409
|
operationId: string | null;
|
|
1232
1410
|
relatedSeq: number | null;
|
|
1233
1411
|
requestId: string | null;
|
|
@@ -1237,6 +1415,10 @@ type AuditEntryView = {
|
|
|
1237
1415
|
[key: string]: string | number;
|
|
1238
1416
|
};
|
|
1239
1417
|
};
|
|
1418
|
+
token: null | {
|
|
1419
|
+
id: string;
|
|
1420
|
+
label: string;
|
|
1421
|
+
};
|
|
1240
1422
|
metadata: {
|
|
1241
1423
|
[key: string]: unknown;
|
|
1242
1424
|
};
|
|
@@ -1280,6 +1462,11 @@ type BindingPlan = {
|
|
|
1280
1462
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1281
1463
|
issuer: string;
|
|
1282
1464
|
jwksUri: string;
|
|
1465
|
+
keys: null | {
|
|
1466
|
+
kid: string | null;
|
|
1467
|
+
alg: "ES256" | "RS256";
|
|
1468
|
+
thumbprint: string;
|
|
1469
|
+
}[];
|
|
1283
1470
|
claims: {
|
|
1284
1471
|
[key: string]: string | string[];
|
|
1285
1472
|
};
|
|
@@ -1296,6 +1483,11 @@ type BindingView = {
|
|
|
1296
1483
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1297
1484
|
issuer: string;
|
|
1298
1485
|
jwksUri: string;
|
|
1486
|
+
keys: null | {
|
|
1487
|
+
kid: string | null;
|
|
1488
|
+
alg: "ES256" | "RS256";
|
|
1489
|
+
thumbprint: string;
|
|
1490
|
+
}[];
|
|
1299
1491
|
claims: {
|
|
1300
1492
|
[key: string]: string | string[];
|
|
1301
1493
|
};
|
|
@@ -1318,6 +1510,16 @@ type ConnectedApp = {
|
|
|
1318
1510
|
lastUsedIp: string | null;
|
|
1319
1511
|
expiresAt: string;
|
|
1320
1512
|
};
|
|
1513
|
+
type KeysPlan = {
|
|
1514
|
+
issuer: string;
|
|
1515
|
+
jwksUri: string;
|
|
1516
|
+
keys: {
|
|
1517
|
+
kid: string | null;
|
|
1518
|
+
alg: "ES256" | "RS256";
|
|
1519
|
+
thumbprint: string;
|
|
1520
|
+
}[];
|
|
1521
|
+
replaces: string[];
|
|
1522
|
+
};
|
|
1321
1523
|
type Deletion = {
|
|
1322
1524
|
path: string;
|
|
1323
1525
|
tombstone: string;
|
|
@@ -1405,6 +1607,12 @@ type IdentityRow = {
|
|
|
1405
1607
|
createdAt: string;
|
|
1406
1608
|
lastSignInAt: string | null;
|
|
1407
1609
|
};
|
|
1610
|
+
type InheritResult = {
|
|
1611
|
+
key: string;
|
|
1612
|
+
archived: boolean;
|
|
1613
|
+
folder: string | null;
|
|
1614
|
+
from: string;
|
|
1615
|
+
};
|
|
1408
1616
|
type Me = {
|
|
1409
1617
|
principal: {
|
|
1410
1618
|
type: "service" | "user";
|
|
@@ -1444,6 +1652,15 @@ type Me = {
|
|
|
1444
1652
|
mcp: string | null;
|
|
1445
1653
|
workloads: boolean;
|
|
1446
1654
|
};
|
|
1655
|
+
personalToken: null | {
|
|
1656
|
+
id: string;
|
|
1657
|
+
label: string;
|
|
1658
|
+
expiresAt: string;
|
|
1659
|
+
scope: {
|
|
1660
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
credentialExpiresAt: string | null;
|
|
1447
1664
|
environments: {
|
|
1448
1665
|
project: string;
|
|
1449
1666
|
environment: string;
|
|
@@ -1573,6 +1790,19 @@ type OffboardingReport = {
|
|
|
1573
1790
|
lastUsedIp: string | null;
|
|
1574
1791
|
expiresAt: string;
|
|
1575
1792
|
}[];
|
|
1793
|
+
personalTokens: {
|
|
1794
|
+
id: string;
|
|
1795
|
+
label: string | null;
|
|
1796
|
+
hint: string;
|
|
1797
|
+
createdAt: string;
|
|
1798
|
+
createdBy: string;
|
|
1799
|
+
expiresAt: string;
|
|
1800
|
+
lastUsedAt: string | null;
|
|
1801
|
+
lastUsedIp: string | null;
|
|
1802
|
+
scope: null | {
|
|
1803
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1804
|
+
};
|
|
1805
|
+
}[];
|
|
1576
1806
|
references: {
|
|
1577
1807
|
id: string;
|
|
1578
1808
|
holder: string;
|
|
@@ -1584,6 +1814,19 @@ type OffboardingReport = {
|
|
|
1584
1814
|
endedBy: string | null;
|
|
1585
1815
|
endedAt: string | null;
|
|
1586
1816
|
}[];
|
|
1817
|
+
personal: {
|
|
1818
|
+
project: string;
|
|
1819
|
+
of: string;
|
|
1820
|
+
slug: string;
|
|
1821
|
+
}[];
|
|
1822
|
+
};
|
|
1823
|
+
type PersonalConfig = {
|
|
1824
|
+
owner: string;
|
|
1825
|
+
of: string;
|
|
1826
|
+
slug: string;
|
|
1827
|
+
keys: string[];
|
|
1828
|
+
archived: boolean;
|
|
1829
|
+
createdAt: string;
|
|
1587
1830
|
};
|
|
1588
1831
|
type ListedReference = {
|
|
1589
1832
|
id: string;
|
|
@@ -1609,6 +1852,8 @@ type ProjectSummary = {
|
|
|
1609
1852
|
slug: string;
|
|
1610
1853
|
name: string;
|
|
1611
1854
|
accessible: boolean;
|
|
1855
|
+
parent: string | null;
|
|
1856
|
+
personal: boolean;
|
|
1612
1857
|
details: null | {
|
|
1613
1858
|
archivedAt: string | null;
|
|
1614
1859
|
secretCount: number | null;
|
|
@@ -1651,6 +1896,21 @@ type SecretKey = {
|
|
|
1651
1896
|
version: number | null;
|
|
1652
1897
|
updatedAt: string | null;
|
|
1653
1898
|
updatedBy: string | null;
|
|
1899
|
+
versionId: string | null;
|
|
1900
|
+
generated: null | {
|
|
1901
|
+
recipe: string;
|
|
1902
|
+
pair?: {
|
|
1903
|
+
private: string;
|
|
1904
|
+
public: string;
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
parent: null | {
|
|
1908
|
+
from: string;
|
|
1909
|
+
state: "inherited" | "overridden" | "removed";
|
|
1910
|
+
changed: boolean;
|
|
1911
|
+
reset: boolean;
|
|
1912
|
+
held: boolean;
|
|
1913
|
+
};
|
|
1654
1914
|
};
|
|
1655
1915
|
type SecretVersion = {
|
|
1656
1916
|
version: number;
|
|
@@ -1658,19 +1918,7 @@ type SecretVersion = {
|
|
|
1658
1918
|
createdBy: string;
|
|
1659
1919
|
current: boolean;
|
|
1660
1920
|
kek: string;
|
|
1661
|
-
|
|
1662
|
-
type ServiceTokenRow = {
|
|
1663
|
-
id: string;
|
|
1664
|
-
label: string | null;
|
|
1665
|
-
hint: string;
|
|
1666
|
-
createdAt: string;
|
|
1667
|
-
createdBy: string;
|
|
1668
|
-
expiresAt: string;
|
|
1669
|
-
lastUsedAt: string | null;
|
|
1670
|
-
lastUsedIp: string | null;
|
|
1671
|
-
scope: null | {
|
|
1672
|
-
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1673
|
-
};
|
|
1921
|
+
recipe: string | null;
|
|
1674
1922
|
};
|
|
1675
1923
|
type SessionRow = {
|
|
1676
1924
|
id: string;
|
|
@@ -1701,6 +1949,19 @@ type TokenPlan = {
|
|
|
1701
1949
|
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1702
1950
|
};
|
|
1703
1951
|
};
|
|
1952
|
+
type TokenRow = {
|
|
1953
|
+
id: string;
|
|
1954
|
+
label: string | null;
|
|
1955
|
+
hint: string;
|
|
1956
|
+
createdAt: string;
|
|
1957
|
+
createdBy: string;
|
|
1958
|
+
expiresAt: string;
|
|
1959
|
+
lastUsedAt: string | null;
|
|
1960
|
+
lastUsedIp: string | null;
|
|
1961
|
+
scope: null | {
|
|
1962
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1963
|
+
};
|
|
1964
|
+
};
|
|
1704
1965
|
//#endregion
|
|
1705
1966
|
//#region src/age.d.ts
|
|
1706
1967
|
/**
|
|
@@ -1834,6 +2095,15 @@ declare function createClient(options: ClientOptions): {
|
|
|
1834
2095
|
mcp: string | null;
|
|
1835
2096
|
workloads: boolean;
|
|
1836
2097
|
};
|
|
2098
|
+
personalToken: null | {
|
|
2099
|
+
id: string;
|
|
2100
|
+
label: string;
|
|
2101
|
+
expiresAt: string;
|
|
2102
|
+
scope: {
|
|
2103
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
credentialExpiresAt: string | null;
|
|
1837
2107
|
environments: {
|
|
1838
2108
|
project: string;
|
|
1839
2109
|
environment: string;
|
|
@@ -1853,6 +2123,8 @@ declare function createClient(options: ClientOptions): {
|
|
|
1853
2123
|
slug: string;
|
|
1854
2124
|
name: string;
|
|
1855
2125
|
accessible: boolean;
|
|
2126
|
+
parent: string | null;
|
|
2127
|
+
personal: boolean;
|
|
1856
2128
|
details: null | {
|
|
1857
2129
|
archivedAt: string | null;
|
|
1858
2130
|
secretCount: number | null;
|
|
@@ -1861,7 +2133,8 @@ declare function createClient(options: ClientOptions): {
|
|
|
1861
2133
|
secretCount: number | null;
|
|
1862
2134
|
}[];
|
|
1863
2135
|
}>;
|
|
1864
|
-
|
|
2136
|
+
/** Its `name`, which releases before 0.6.2 show, defaults to the slug. */
|
|
2137
|
+
create: (project: string, input?: RouteInput<"PUT /projects/:project">) => Promise<{
|
|
1865
2138
|
project: {
|
|
1866
2139
|
slug: string;
|
|
1867
2140
|
name: string;
|
|
@@ -1902,7 +2175,8 @@ declare function createClient(options: ClientOptions): {
|
|
|
1902
2175
|
}>;
|
|
1903
2176
|
};
|
|
1904
2177
|
environments: {
|
|
1905
|
-
|
|
2178
|
+
/** As a project's: its `name` defaults to the slug. `from` forks a sibling. */
|
|
2179
|
+
create: (path: string, input?: RouteInput<"PUT /projects/:project/:environment">) => Promise<{
|
|
1906
2180
|
environment: {
|
|
1907
2181
|
slug: string;
|
|
1908
2182
|
name: string;
|
|
@@ -1914,6 +2188,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
1914
2188
|
keys: number;
|
|
1915
2189
|
references: number;
|
|
1916
2190
|
copied: string[];
|
|
2191
|
+
inherits: boolean;
|
|
1917
2192
|
};
|
|
1918
2193
|
}>;
|
|
1919
2194
|
update: (path: string, patch: RouteInput<"PATCH /projects/:project/:environment">) => Promise<{
|
|
@@ -1961,6 +2236,25 @@ declare function createClient(options: ClientOptions): {
|
|
|
1961
2236
|
dismissedAt: string;
|
|
1962
2237
|
}[];
|
|
1963
2238
|
}>;
|
|
2239
|
+
/** A project's personal configs, for whoever manages its environments: whose, of what, and their key names. */
|
|
2240
|
+
personal: (project: string) => Promise<{
|
|
2241
|
+
configs: {
|
|
2242
|
+
owner: string;
|
|
2243
|
+
of: string;
|
|
2244
|
+
slug: string;
|
|
2245
|
+
keys: string[];
|
|
2246
|
+
archived: boolean;
|
|
2247
|
+
createdAt: string;
|
|
2248
|
+
}[];
|
|
2249
|
+
}>;
|
|
2250
|
+
/**
|
|
2251
|
+
* A version of what reading it would open: it changes whenever a read
|
|
2252
|
+
* would, and reads no value, so it is not logged. Poll it, and read
|
|
2253
|
+
* only when it changed.
|
|
2254
|
+
*/
|
|
2255
|
+
version: (path: string) => Promise<{
|
|
2256
|
+
version: string;
|
|
2257
|
+
}>;
|
|
1964
2258
|
/** Dismiss missing keys (`true`) or restore them (`null`). */
|
|
1965
2259
|
dismiss: (path: string, patch: RouteInput<"PATCH /projects/:project/:environment/dismissals">) => Promise<{
|
|
1966
2260
|
operationId: string;
|
|
@@ -1992,7 +2286,27 @@ declare function createClient(options: ClientOptions): {
|
|
|
1992
2286
|
version: number | null;
|
|
1993
2287
|
updatedAt: string | null;
|
|
1994
2288
|
updatedBy: string | null;
|
|
2289
|
+
versionId: string | null;
|
|
2290
|
+
generated: null | {
|
|
2291
|
+
recipe: string;
|
|
2292
|
+
pair?: {
|
|
2293
|
+
private: string;
|
|
2294
|
+
public: string;
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
parent: null | {
|
|
2298
|
+
from: string;
|
|
2299
|
+
state: "inherited" | "overridden" | "removed";
|
|
2300
|
+
changed: boolean;
|
|
2301
|
+
reset: boolean;
|
|
2302
|
+
held: boolean;
|
|
2303
|
+
};
|
|
1995
2304
|
}[];
|
|
2305
|
+
parents: string[];
|
|
2306
|
+
personal: null | {
|
|
2307
|
+
of: string;
|
|
2308
|
+
fallback: boolean;
|
|
2309
|
+
};
|
|
1996
2310
|
rotateAfterDays: number | null;
|
|
1997
2311
|
}>;
|
|
1998
2312
|
/** Decrypts one secret, or every secret in an environment. Logged in your name. */
|
|
@@ -2001,6 +2315,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
2001
2315
|
values: {
|
|
2002
2316
|
[key: string]: string;
|
|
2003
2317
|
};
|
|
2318
|
+
version: string | null;
|
|
2004
2319
|
}>;
|
|
2005
2320
|
/** One transaction, a version and an audit entry per key; `null` archives. */
|
|
2006
2321
|
set: (path: string, values: RouteInput<"PATCH /secrets/:project/:environment">) => Promise<SetResult>;
|
|
@@ -2019,6 +2334,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
2019
2334
|
createdBy: string;
|
|
2020
2335
|
current: boolean;
|
|
2021
2336
|
kek: string;
|
|
2337
|
+
recipe: string | null;
|
|
2022
2338
|
}[];
|
|
2023
2339
|
}>;
|
|
2024
2340
|
/** A new version holding the old one's value. */
|
|
@@ -2036,6 +2352,11 @@ declare function createClient(options: ClientOptions): {
|
|
|
2036
2352
|
archived: boolean;
|
|
2037
2353
|
folder: string | null;
|
|
2038
2354
|
}>;
|
|
2355
|
+
/**
|
|
2356
|
+
* In a fork, a key back to its parent's value (`true`), its own kept,
|
|
2357
|
+
* or its own served again (`false`); `from` holds the parent's.
|
|
2358
|
+
*/
|
|
2359
|
+
inherit: (path: string, inherit: boolean) => Promise<InheritResult>;
|
|
2039
2360
|
};
|
|
2040
2361
|
/**
|
|
2041
2362
|
* References: secrets read through others (docs/design/environments.md).
|
|
@@ -2173,6 +2494,19 @@ declare function createClient(options: ClientOptions): {
|
|
|
2173
2494
|
lastUsedIp: string | null;
|
|
2174
2495
|
expiresAt: string;
|
|
2175
2496
|
}[];
|
|
2497
|
+
personalTokens: {
|
|
2498
|
+
id: string;
|
|
2499
|
+
label: string | null;
|
|
2500
|
+
hint: string;
|
|
2501
|
+
createdAt: string;
|
|
2502
|
+
createdBy: string;
|
|
2503
|
+
expiresAt: string;
|
|
2504
|
+
lastUsedAt: string | null;
|
|
2505
|
+
lastUsedIp: string | null;
|
|
2506
|
+
scope: null | {
|
|
2507
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
2508
|
+
};
|
|
2509
|
+
}[];
|
|
2176
2510
|
references: {
|
|
2177
2511
|
id: string;
|
|
2178
2512
|
holder: string;
|
|
@@ -2184,6 +2518,11 @@ declare function createClient(options: ClientOptions): {
|
|
|
2184
2518
|
endedBy: string | null;
|
|
2185
2519
|
endedAt: string | null;
|
|
2186
2520
|
}[];
|
|
2521
|
+
personal: {
|
|
2522
|
+
project: string;
|
|
2523
|
+
of: string;
|
|
2524
|
+
slug: string;
|
|
2525
|
+
}[];
|
|
2187
2526
|
}>;
|
|
2188
2527
|
/** Their instance role and scope, and the grants you manage, in one read. */
|
|
2189
2528
|
access: (member: string) => Promise<{
|
|
@@ -2302,6 +2641,19 @@ declare function createClient(options: ClientOptions): {
|
|
|
2302
2641
|
lastUsedIp: string | null;
|
|
2303
2642
|
expiresAt: string;
|
|
2304
2643
|
}[];
|
|
2644
|
+
personalTokens: {
|
|
2645
|
+
id: string;
|
|
2646
|
+
label: string | null;
|
|
2647
|
+
hint: string;
|
|
2648
|
+
createdAt: string;
|
|
2649
|
+
createdBy: string;
|
|
2650
|
+
expiresAt: string;
|
|
2651
|
+
lastUsedAt: string | null;
|
|
2652
|
+
lastUsedIp: string | null;
|
|
2653
|
+
scope: null | {
|
|
2654
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
2655
|
+
};
|
|
2656
|
+
}[];
|
|
2305
2657
|
references: {
|
|
2306
2658
|
id: string;
|
|
2307
2659
|
holder: string;
|
|
@@ -2313,9 +2665,18 @@ declare function createClient(options: ClientOptions): {
|
|
|
2313
2665
|
endedBy: string | null;
|
|
2314
2666
|
endedAt: string | null;
|
|
2315
2667
|
}[];
|
|
2668
|
+
personal: {
|
|
2669
|
+
project: string;
|
|
2670
|
+
of: string;
|
|
2671
|
+
slug: string;
|
|
2672
|
+
}[];
|
|
2316
2673
|
};
|
|
2317
2674
|
}>;
|
|
2318
2675
|
};
|
|
2676
|
+
/**
|
|
2677
|
+
* A member's tokens: a service account's bearer tokens, or a person's
|
|
2678
|
+
* personal tokens (`user:<email>`), which act as them within their scope.
|
|
2679
|
+
*/
|
|
2319
2680
|
tokens: {
|
|
2320
2681
|
list: (member: string) => Promise<{
|
|
2321
2682
|
tokens: {
|
|
@@ -2350,6 +2711,11 @@ declare function createClient(options: ClientOptions): {
|
|
|
2350
2711
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
2351
2712
|
issuer: string;
|
|
2352
2713
|
jwksUri: string;
|
|
2714
|
+
keys: null | {
|
|
2715
|
+
kid: string | null;
|
|
2716
|
+
alg: "ES256" | "RS256";
|
|
2717
|
+
thumbprint: string;
|
|
2718
|
+
}[];
|
|
2353
2719
|
claims: {
|
|
2354
2720
|
[key: string]: string | string[];
|
|
2355
2721
|
};
|
|
@@ -2368,6 +2734,13 @@ declare function createClient(options: ClientOptions): {
|
|
|
2368
2734
|
binding: BindingView;
|
|
2369
2735
|
replaced: string[];
|
|
2370
2736
|
}>;
|
|
2737
|
+
/** The service's bindings on an issuer that new keys would replace, and the keys as checked; writes nothing. */
|
|
2738
|
+
previewKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<KeysPlan>;
|
|
2739
|
+
/** New keys, uploaded, for every binding of the service on the issuer: each replaced by one the same but for them. */
|
|
2740
|
+
replaceKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<{
|
|
2741
|
+
bindings: BindingView[];
|
|
2742
|
+
replaced: string[];
|
|
2743
|
+
}>;
|
|
2371
2744
|
remove: (member: string, id: string) => Promise<{
|
|
2372
2745
|
unbound: true;
|
|
2373
2746
|
}>;
|
|
@@ -2664,6 +3037,10 @@ declare function createClient(options: ClientOptions): {
|
|
|
2664
3037
|
environment: string | null;
|
|
2665
3038
|
key: string | null;
|
|
2666
3039
|
version: number | null;
|
|
3040
|
+
secrets: null | {
|
|
3041
|
+
key: string | null;
|
|
3042
|
+
version: number | null;
|
|
3043
|
+
}[];
|
|
2667
3044
|
operationId: string | null;
|
|
2668
3045
|
relatedSeq: number | null;
|
|
2669
3046
|
requestId: string | null;
|
|
@@ -2673,10 +3050,15 @@ declare function createClient(options: ClientOptions): {
|
|
|
2673
3050
|
[key: string]: string | number;
|
|
2674
3051
|
};
|
|
2675
3052
|
};
|
|
3053
|
+
token: null | {
|
|
3054
|
+
id: string;
|
|
3055
|
+
label: string;
|
|
3056
|
+
};
|
|
2676
3057
|
metadata: {
|
|
2677
3058
|
[key: string]: unknown;
|
|
2678
3059
|
};
|
|
2679
3060
|
}[];
|
|
3061
|
+
more: boolean;
|
|
2680
3062
|
hidden?: {
|
|
2681
3063
|
action: string;
|
|
2682
3064
|
count: number;
|
|
@@ -2740,4 +3122,4 @@ declare function planImport(coffre: CoffreClient, path: string, entries: readonl
|
|
|
2740
3122
|
changes: Record<string, string>;
|
|
2741
3123
|
}>;
|
|
2742
3124
|
//#endregion
|
|
2743
|
-
export { Decision as A,
|
|
3125
|
+
export { TokenPlan as $, Decision as A, Me as B, ApprovalView as C, BindingPlan as D, AuthorizationView as E, DryRunResult as F, PersonalConfig as G, MemberAccess as H, IdentityRow as I, RemovedMember as J, ProjectSummary as K, InheritResult as L, DeletionResult as M, DismissedKey as N, BindingView as O, DryRunOutcome as P, SetResult as Q, KeysPlan as R, Api as S, AuthInfo as T, MissingKey as U, Member as V, OffboardingReport as W, SecretVersion as X, SecretKey as Y, SessionRow as Z, byFolder as _, Params as a, olderThan as b, RouteOutput as c, planImport as d, TokenRow as et, Unreachable as f, shownMember as g, serviceName as h, ImportAction as i, Deletion as j, ConnectedApp as k, Transport as l, apiMember as m, CoffreClient as n, RouteInput as o, unreachable as p, ReferenceView as q, CoffreError as r, RouteKey as s, ClientOptions as t, WorkloadIds as tt, createClient as u, foldersOf as v, AuditEntryView as w, AccessValue as x, ageInDays as y, ListedReference as z };
|