@coffre/client 0.6.2 → 0.8.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.
@@ -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;
@@ -128,6 +139,7 @@ type Api = {
128
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,83 @@ 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
+ };
1347
+ "POST /handles": {
1348
+ input: {
1349
+ label: string;
1350
+ paths: string[];
1351
+ expiresInMinutes?: number;
1352
+ };
1353
+ output: {
1354
+ id: string;
1355
+ token: string;
1356
+ expiresAt: string;
1357
+ scope: {
1358
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1359
+ };
1360
+ };
1361
+ };
1173
1362
  };
1174
1363
  type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
1175
1364
  role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
@@ -1228,6 +1417,10 @@ type AuditEntryView = {
1228
1417
  environment: string | null;
1229
1418
  key: string | null;
1230
1419
  version: number | null;
1420
+ secrets: null | {
1421
+ key: string | null;
1422
+ version: number | null;
1423
+ }[];
1231
1424
  operationId: string | null;
1232
1425
  relatedSeq: number | null;
1233
1426
  requestId: string | null;
@@ -1237,6 +1430,10 @@ type AuditEntryView = {
1237
1430
  [key: string]: string | number;
1238
1431
  };
1239
1432
  };
1433
+ token: null | {
1434
+ id: string;
1435
+ label: string;
1436
+ };
1240
1437
  metadata: {
1241
1438
  [key: string]: unknown;
1242
1439
  };
@@ -1280,6 +1477,11 @@ type BindingPlan = {
1280
1477
  profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
1281
1478
  issuer: string;
1282
1479
  jwksUri: string;
1480
+ keys: null | {
1481
+ kid: string | null;
1482
+ alg: "ES256" | "RS256";
1483
+ thumbprint: string;
1484
+ }[];
1283
1485
  claims: {
1284
1486
  [key: string]: string | string[];
1285
1487
  };
@@ -1296,6 +1498,11 @@ type BindingView = {
1296
1498
  profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
1297
1499
  issuer: string;
1298
1500
  jwksUri: string;
1501
+ keys: null | {
1502
+ kid: string | null;
1503
+ alg: "ES256" | "RS256";
1504
+ thumbprint: string;
1505
+ }[];
1299
1506
  claims: {
1300
1507
  [key: string]: string | string[];
1301
1508
  };
@@ -1318,6 +1525,16 @@ type ConnectedApp = {
1318
1525
  lastUsedIp: string | null;
1319
1526
  expiresAt: string;
1320
1527
  };
1528
+ type KeysPlan = {
1529
+ issuer: string;
1530
+ jwksUri: string;
1531
+ keys: {
1532
+ kid: string | null;
1533
+ alg: "ES256" | "RS256";
1534
+ thumbprint: string;
1535
+ }[];
1536
+ replaces: string[];
1537
+ };
1321
1538
  type Deletion = {
1322
1539
  path: string;
1323
1540
  tombstone: string;
@@ -1405,6 +1622,12 @@ type IdentityRow = {
1405
1622
  createdAt: string;
1406
1623
  lastSignInAt: string | null;
1407
1624
  };
1625
+ type InheritResult = {
1626
+ key: string;
1627
+ archived: boolean;
1628
+ folder: string | null;
1629
+ from: string;
1630
+ };
1408
1631
  type Me = {
1409
1632
  principal: {
1410
1633
  type: "service" | "user";
@@ -1444,6 +1667,15 @@ type Me = {
1444
1667
  mcp: string | null;
1445
1668
  workloads: boolean;
1446
1669
  };
1670
+ personalToken: null | {
1671
+ id: string;
1672
+ label: string;
1673
+ expiresAt: string;
1674
+ scope: {
1675
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1676
+ };
1677
+ };
1678
+ credentialExpiresAt: string | null;
1447
1679
  environments: {
1448
1680
  project: string;
1449
1681
  environment: string;
@@ -1573,6 +1805,19 @@ type OffboardingReport = {
1573
1805
  lastUsedIp: string | null;
1574
1806
  expiresAt: string;
1575
1807
  }[];
1808
+ personalTokens: {
1809
+ id: string;
1810
+ label: string | null;
1811
+ hint: string;
1812
+ createdAt: string;
1813
+ createdBy: string;
1814
+ expiresAt: string;
1815
+ lastUsedAt: string | null;
1816
+ lastUsedIp: string | null;
1817
+ scope: null | {
1818
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1819
+ };
1820
+ }[];
1576
1821
  references: {
1577
1822
  id: string;
1578
1823
  holder: string;
@@ -1584,6 +1829,19 @@ type OffboardingReport = {
1584
1829
  endedBy: string | null;
1585
1830
  endedAt: string | null;
1586
1831
  }[];
1832
+ personal: {
1833
+ project: string;
1834
+ of: string;
1835
+ slug: string;
1836
+ }[];
1837
+ };
1838
+ type PersonalConfig = {
1839
+ owner: string;
1840
+ of: string;
1841
+ slug: string;
1842
+ keys: string[];
1843
+ archived: boolean;
1844
+ createdAt: string;
1587
1845
  };
1588
1846
  type ListedReference = {
1589
1847
  id: string;
@@ -1609,6 +1867,8 @@ type ProjectSummary = {
1609
1867
  slug: string;
1610
1868
  name: string;
1611
1869
  accessible: boolean;
1870
+ parent: string | null;
1871
+ personal: boolean;
1612
1872
  details: null | {
1613
1873
  archivedAt: string | null;
1614
1874
  secretCount: number | null;
@@ -1651,6 +1911,21 @@ type SecretKey = {
1651
1911
  version: number | null;
1652
1912
  updatedAt: string | null;
1653
1913
  updatedBy: string | null;
1914
+ versionId: string | null;
1915
+ generated: null | {
1916
+ recipe: string;
1917
+ pair?: {
1918
+ private: string;
1919
+ public: string;
1920
+ };
1921
+ };
1922
+ parent: null | {
1923
+ from: string;
1924
+ state: "inherited" | "overridden" | "removed";
1925
+ changed: boolean;
1926
+ reset: boolean;
1927
+ held: boolean;
1928
+ };
1654
1929
  };
1655
1930
  type SecretVersion = {
1656
1931
  version: number;
@@ -1658,19 +1933,7 @@ type SecretVersion = {
1658
1933
  createdBy: string;
1659
1934
  current: boolean;
1660
1935
  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
- };
1936
+ recipe: string | null;
1674
1937
  };
1675
1938
  type SessionRow = {
1676
1939
  id: string;
@@ -1701,6 +1964,19 @@ type TokenPlan = {
1701
1964
  [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1702
1965
  };
1703
1966
  };
1967
+ type TokenRow = {
1968
+ id: string;
1969
+ label: string | null;
1970
+ hint: string;
1971
+ createdAt: string;
1972
+ createdBy: string;
1973
+ expiresAt: string;
1974
+ lastUsedAt: string | null;
1975
+ lastUsedIp: string | null;
1976
+ scope: null | {
1977
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1978
+ };
1979
+ };
1704
1980
  //#endregion
1705
1981
  //#region src/age.d.ts
1706
1982
  /**
@@ -1834,6 +2110,15 @@ declare function createClient(options: ClientOptions): {
1834
2110
  mcp: string | null;
1835
2111
  workloads: boolean;
1836
2112
  };
2113
+ personalToken: null | {
2114
+ id: string;
2115
+ label: string;
2116
+ expiresAt: string;
2117
+ scope: {
2118
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
2119
+ };
2120
+ };
2121
+ credentialExpiresAt: string | null;
1837
2122
  environments: {
1838
2123
  project: string;
1839
2124
  environment: string;
@@ -1853,6 +2138,8 @@ declare function createClient(options: ClientOptions): {
1853
2138
  slug: string;
1854
2139
  name: string;
1855
2140
  accessible: boolean;
2141
+ parent: string | null;
2142
+ personal: boolean;
1856
2143
  details: null | {
1857
2144
  archivedAt: string | null;
1858
2145
  secretCount: number | null;
@@ -1916,6 +2203,7 @@ declare function createClient(options: ClientOptions): {
1916
2203
  keys: number;
1917
2204
  references: number;
1918
2205
  copied: string[];
2206
+ inherits: boolean;
1919
2207
  };
1920
2208
  }>;
1921
2209
  update: (path: string, patch: RouteInput<"PATCH /projects/:project/:environment">) => Promise<{
@@ -1963,6 +2251,25 @@ declare function createClient(options: ClientOptions): {
1963
2251
  dismissedAt: string;
1964
2252
  }[];
1965
2253
  }>;
2254
+ /** A project's personal configs, for whoever manages its environments: whose, of what, and their key names. */
2255
+ personal: (project: string) => Promise<{
2256
+ configs: {
2257
+ owner: string;
2258
+ of: string;
2259
+ slug: string;
2260
+ keys: string[];
2261
+ archived: boolean;
2262
+ createdAt: string;
2263
+ }[];
2264
+ }>;
2265
+ /**
2266
+ * A version of what reading it would open: it changes whenever a read
2267
+ * would, and reads no value, so it is not logged. Poll it, and read
2268
+ * only when it changed.
2269
+ */
2270
+ version: (path: string) => Promise<{
2271
+ version: string;
2272
+ }>;
1966
2273
  /** Dismiss missing keys (`true`) or restore them (`null`). */
1967
2274
  dismiss: (path: string, patch: RouteInput<"PATCH /projects/:project/:environment/dismissals">) => Promise<{
1968
2275
  operationId: string;
@@ -1994,7 +2301,27 @@ declare function createClient(options: ClientOptions): {
1994
2301
  version: number | null;
1995
2302
  updatedAt: string | null;
1996
2303
  updatedBy: string | null;
2304
+ versionId: string | null;
2305
+ generated: null | {
2306
+ recipe: string;
2307
+ pair?: {
2308
+ private: string;
2309
+ public: string;
2310
+ };
2311
+ };
2312
+ parent: null | {
2313
+ from: string;
2314
+ state: "inherited" | "overridden" | "removed";
2315
+ changed: boolean;
2316
+ reset: boolean;
2317
+ held: boolean;
2318
+ };
1997
2319
  }[];
2320
+ parents: string[];
2321
+ personal: null | {
2322
+ of: string;
2323
+ fallback: boolean;
2324
+ };
1998
2325
  rotateAfterDays: number | null;
1999
2326
  }>;
2000
2327
  /** Decrypts one secret, or every secret in an environment. Logged in your name. */
@@ -2003,6 +2330,7 @@ declare function createClient(options: ClientOptions): {
2003
2330
  values: {
2004
2331
  [key: string]: string;
2005
2332
  };
2333
+ version: string | null;
2006
2334
  }>;
2007
2335
  /** One transaction, a version and an audit entry per key; `null` archives. */
2008
2336
  set: (path: string, values: RouteInput<"PATCH /secrets/:project/:environment">) => Promise<SetResult>;
@@ -2021,6 +2349,7 @@ declare function createClient(options: ClientOptions): {
2021
2349
  createdBy: string;
2022
2350
  current: boolean;
2023
2351
  kek: string;
2352
+ recipe: string | null;
2024
2353
  }[];
2025
2354
  }>;
2026
2355
  /** A new version holding the old one's value. */
@@ -2038,6 +2367,11 @@ declare function createClient(options: ClientOptions): {
2038
2367
  archived: boolean;
2039
2368
  folder: string | null;
2040
2369
  }>;
2370
+ /**
2371
+ * In a fork, a key back to its parent's value (`true`), its own kept,
2372
+ * or its own served again (`false`); `from` holds the parent's.
2373
+ */
2374
+ inherit: (path: string, inherit: boolean) => Promise<InheritResult>;
2041
2375
  };
2042
2376
  /**
2043
2377
  * References: secrets read through others (docs/design/environments.md).
@@ -2175,6 +2509,19 @@ declare function createClient(options: ClientOptions): {
2175
2509
  lastUsedIp: string | null;
2176
2510
  expiresAt: string;
2177
2511
  }[];
2512
+ personalTokens: {
2513
+ id: string;
2514
+ label: string | null;
2515
+ hint: string;
2516
+ createdAt: string;
2517
+ createdBy: string;
2518
+ expiresAt: string;
2519
+ lastUsedAt: string | null;
2520
+ lastUsedIp: string | null;
2521
+ scope: null | {
2522
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
2523
+ };
2524
+ }[];
2178
2525
  references: {
2179
2526
  id: string;
2180
2527
  holder: string;
@@ -2186,6 +2533,11 @@ declare function createClient(options: ClientOptions): {
2186
2533
  endedBy: string | null;
2187
2534
  endedAt: string | null;
2188
2535
  }[];
2536
+ personal: {
2537
+ project: string;
2538
+ of: string;
2539
+ slug: string;
2540
+ }[];
2189
2541
  }>;
2190
2542
  /** Their instance role and scope, and the grants you manage, in one read. */
2191
2543
  access: (member: string) => Promise<{
@@ -2304,6 +2656,19 @@ declare function createClient(options: ClientOptions): {
2304
2656
  lastUsedIp: string | null;
2305
2657
  expiresAt: string;
2306
2658
  }[];
2659
+ personalTokens: {
2660
+ id: string;
2661
+ label: string | null;
2662
+ hint: string;
2663
+ createdAt: string;
2664
+ createdBy: string;
2665
+ expiresAt: string;
2666
+ lastUsedAt: string | null;
2667
+ lastUsedIp: string | null;
2668
+ scope: null | {
2669
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
2670
+ };
2671
+ }[];
2307
2672
  references: {
2308
2673
  id: string;
2309
2674
  holder: string;
@@ -2315,9 +2680,18 @@ declare function createClient(options: ClientOptions): {
2315
2680
  endedBy: string | null;
2316
2681
  endedAt: string | null;
2317
2682
  }[];
2683
+ personal: {
2684
+ project: string;
2685
+ of: string;
2686
+ slug: string;
2687
+ }[];
2318
2688
  };
2319
2689
  }>;
2320
2690
  };
2691
+ /**
2692
+ * A member's tokens: a service account's bearer tokens, or a person's
2693
+ * personal tokens (`user:<email>`), which act as them within their scope.
2694
+ */
2321
2695
  tokens: {
2322
2696
  list: (member: string) => Promise<{
2323
2697
  tokens: {
@@ -2344,6 +2718,21 @@ declare function createClient(options: ClientOptions): {
2344
2718
  revoked: true;
2345
2719
  }>;
2346
2720
  };
2721
+ /**
2722
+ * Handles: stand-ins a person's app holds in place of an environment's
2723
+ * values, which only the credential proxy (`/use`) takes. The value is
2724
+ * in the answer, and only there; it is revoked as a token is.
2725
+ */
2726
+ handles: {
2727
+ create: (input: RouteInput<"POST /handles">) => Promise<{
2728
+ id: string;
2729
+ token: string;
2730
+ expiresAt: string;
2731
+ scope: {
2732
+ [key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
2733
+ };
2734
+ }>;
2735
+ };
2347
2736
  /** Trust bindings: which CI runs may sign in as a service, by their platform's ID token. */
2348
2737
  bindings: {
2349
2738
  list: (member: string) => Promise<{
@@ -2352,6 +2741,11 @@ declare function createClient(options: ClientOptions): {
2352
2741
  profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
2353
2742
  issuer: string;
2354
2743
  jwksUri: string;
2744
+ keys: null | {
2745
+ kid: string | null;
2746
+ alg: "ES256" | "RS256";
2747
+ thumbprint: string;
2748
+ }[];
2355
2749
  claims: {
2356
2750
  [key: string]: string | string[];
2357
2751
  };
@@ -2370,6 +2764,13 @@ declare function createClient(options: ClientOptions): {
2370
2764
  binding: BindingView;
2371
2765
  replaced: string[];
2372
2766
  }>;
2767
+ /** The service's bindings on an issuer that new keys would replace, and the keys as checked; writes nothing. */
2768
+ previewKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<KeysPlan>;
2769
+ /** New keys, uploaded, for every binding of the service on the issuer: each replaced by one the same but for them. */
2770
+ replaceKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<{
2771
+ bindings: BindingView[];
2772
+ replaced: string[];
2773
+ }>;
2373
2774
  remove: (member: string, id: string) => Promise<{
2374
2775
  unbound: true;
2375
2776
  }>;
@@ -2666,6 +3067,10 @@ declare function createClient(options: ClientOptions): {
2666
3067
  environment: string | null;
2667
3068
  key: string | null;
2668
3069
  version: number | null;
3070
+ secrets: null | {
3071
+ key: string | null;
3072
+ version: number | null;
3073
+ }[];
2669
3074
  operationId: string | null;
2670
3075
  relatedSeq: number | null;
2671
3076
  requestId: string | null;
@@ -2675,10 +3080,15 @@ declare function createClient(options: ClientOptions): {
2675
3080
  [key: string]: string | number;
2676
3081
  };
2677
3082
  };
3083
+ token: null | {
3084
+ id: string;
3085
+ label: string;
3086
+ };
2678
3087
  metadata: {
2679
3088
  [key: string]: unknown;
2680
3089
  };
2681
3090
  }[];
3091
+ more: boolean;
2682
3092
  hidden?: {
2683
3093
  action: string;
2684
3094
  count: number;
@@ -2742,4 +3152,4 @@ declare function planImport(coffre: CoffreClient, path: string, entries: readonl
2742
3152
  changes: Record<string, string>;
2743
3153
  }>;
2744
3154
  //#endregion
2745
- export { Decision as A, MemberAccess as B, ApprovalView as C, BindingPlan as D, AuthorizationView as E, DryRunResult as F, RemovedMember as G, OffboardingReport as H, IdentityRow as I, ServiceTokenRow as J, SecretKey as K, ListedReference as L, DeletionResult as M, DismissedKey as N, BindingView as O, DryRunOutcome as P, WorkloadIds as Q, Me as R, Api as S, AuthInfo as T, ProjectSummary as U, MissingKey as V, ReferenceView as W, SetResult as X, SessionRow as Y, TokenPlan as Z, byFolder as _, Params as a, olderThan as b, RouteOutput as c, planImport as d, 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, SecretVersion as q, CoffreError as r, RouteKey as s, ClientOptions as t, createClient as u, foldersOf as v, AuditEntryView as w, AccessValue as x, ageInDays as y, Member as z };
3155
+ 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 };