@coffre/client 0.15.0 → 0.16.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/src/api.ts CHANGED
@@ -1,223 +1,179 @@
1
1
  // Generated from the route table in packages/server/src/api/routes.ts by
2
- // `pnpm --dir packages/client generate`. Do not edit: a test fails when it
2
+ // `pnpm --filter @coffre/client generate`. Do not edit: a test fails when it
3
3
  // is out of date.
4
4
 
5
5
  /** Every route, by `METHOD /path`: what a caller sends (the body, or the query of a GET) and gets back. */
6
6
  export type Api = {
7
- "GET /me": {
8
- input: undefined;
7
+ "GET /audit": {
8
+ input: {
9
+ path?: string;
10
+ actor?: string;
11
+ decision?: "allow" | "deny";
12
+ detail?: "1" | "true";
13
+ before?: unknown;
14
+ limit?: unknown;
15
+ };
9
16
  output: {
10
- principal: {
11
- type: "service" | "user";
12
- id: string;
13
- };
14
- registered: boolean;
15
- tampered: boolean;
16
- instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
17
- scope: {
18
- projects: "all" | {
19
- only: string[];
20
- } | {
21
- except: string[];
22
- };
23
- environments: "all" | {
24
- only: string[];
25
- } | {
26
- except: string[];
27
- };
28
- };
29
- runsInstance: boolean;
30
- canReadAudit: boolean;
31
- setsUpServices: boolean;
32
- serviceSetup: null | {
33
- projects: "all" | {
34
- only: string[];
35
- } | {
36
- except: string[];
17
+ entries: {
18
+ seq: number;
19
+ author: "app" | "vault";
20
+ occurredAt: string;
21
+ actorType: "service" | "system" | "user";
22
+ actorId: string;
23
+ action: string;
24
+ decision: "allow" | "deny";
25
+ reason: string | null;
26
+ detail: boolean;
27
+ subject: string | null;
28
+ project: string | null;
29
+ environment: string | null;
30
+ key: string | null;
31
+ version: number | null;
32
+ secrets: null | {
33
+ key: string | null;
34
+ version: number | null;
35
+ }[];
36
+ operationId: string | null;
37
+ relatedSeq: number | null;
38
+ requestId: string | null;
39
+ run: null | {
40
+ exchangeSeq: number;
41
+ claims: {
42
+ [key: string]: string | number;
43
+ };
37
44
  };
38
- environments: "all" | {
39
- only: string[];
40
- } | {
41
- except: string[];
45
+ token: null | {
46
+ id: string;
47
+ label: string;
42
48
  };
43
- };
44
- features: {
45
- mcp: string | null;
46
- workloads: boolean;
47
- };
48
- personalToken: null | {
49
- id: string;
50
- label: string;
51
- expiresAt: string;
52
- scope: {
53
- [key: string]: string;
49
+ metadata: {
50
+ [key: string]: unknown;
54
51
  };
52
+ proof: "failed" | "proven" | "unproven";
53
+ }[];
54
+ more: boolean;
55
+ next: number | null;
56
+ hidden?: {
57
+ action: string;
58
+ count: number;
59
+ }[];
60
+ head: null | {
61
+ size: number;
62
+ signedAt: string;
55
63
  };
56
- credentialExpiresAt: string | null;
57
- credentialId: string | null;
58
- environments: {
59
- project: string;
60
- environment: string;
61
- permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
64
+ holes: null | {
65
+ above: number | null;
66
+ below: number | null;
67
+ kept: number;
68
+ aging: number;
62
69
  }[];
63
70
  };
64
71
  };
65
- "GET /projects": {
66
- input: undefined;
72
+ "POST /reveals": {
73
+ input: {
74
+ path: string;
75
+ keys?: string[];
76
+ };
67
77
  output: {
68
- projects: {
69
- slug: string;
70
- name: string;
71
- archivedAt: string | null;
72
- folder: string | null;
73
- permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
74
- environments: {
75
- slug: string;
76
- name: string;
77
- accessible: boolean;
78
- parent: string | null;
79
- protected: boolean;
80
- unprotectable: boolean;
81
- personal: boolean;
82
- details: null | {
83
- archivedAt: string | null;
84
- secretCount: number | null;
85
- };
86
- }[];
87
- secretCount: number | null;
88
- }[];
78
+ operationId: string | null;
79
+ values: {
80
+ [key: string]: string;
81
+ };
82
+ versions: {
83
+ [key: string]: number;
84
+ };
85
+ secrets: {
86
+ [key: string]: string;
87
+ };
88
+ sensitive: string[];
89
+ useOnly: string[];
90
+ version: string | null;
89
91
  };
90
92
  };
91
- "PUT /projects/:project": {
93
+ "PATCH /secrets/:project/:environment": {
92
94
  input: {
93
- name?: string;
95
+ [key: string]: string | null | {
96
+ value: string;
97
+ generated: {
98
+ recipe: string;
99
+ pair?: {
100
+ private: string;
101
+ public: string;
102
+ };
103
+ };
104
+ replaces?: string;
105
+ sensitivity?: "secret" | "sensitive";
106
+ } | {
107
+ value: string;
108
+ sensitivity: "plain" | "secret" | "sensitive";
109
+ replaces?: string;
110
+ } | {
111
+ ref: string;
112
+ } | {
113
+ sensitivity: "plain" | "secret" | "sensitive";
114
+ };
94
115
  };
95
116
  output: {
96
- project: {
97
- slug: string;
98
- name: string;
99
- archivedAt: string | null;
117
+ operationId: string | null;
118
+ keys: {
119
+ [key: string]: {
120
+ version: number;
121
+ sensitivity: "plain" | "secret" | "sensitive";
122
+ } | {
123
+ archived: true;
124
+ } | {
125
+ reference: string;
126
+ };
127
+ };
128
+ } | {
129
+ dryRun: true;
130
+ keys: {
131
+ [key: string]: "added" | "archived" | "changed" | "unchanged";
100
132
  };
101
- created: boolean;
102
133
  };
103
134
  };
104
- "PATCH /projects/:project": {
135
+ "PATCH /secrets/:project/:environment/:key": {
105
136
  input: {
106
- name?: string;
107
- slug?: string;
137
+ key?: string;
108
138
  archived?: boolean;
109
139
  folder?: string | null;
140
+ inherit?: boolean;
110
141
  };
111
142
  output: {
112
- project: {
113
- slug: string;
114
- name: string;
115
- archivedAt: string | null;
116
- folder: string | null;
117
- };
118
- };
119
- };
120
- "DELETE /projects/:project": {
121
- input: undefined;
122
- output: {
123
- dryRun: boolean;
124
- deletion: {
125
- path: string;
126
- tombstone: string;
127
- environments: string[];
128
- keys: number;
129
- versions: number;
130
- grants: {
131
- member: string;
132
- place: string;
133
- role: string;
134
- }[];
135
- references: {
136
- holder: string;
137
- source: string;
138
- }[];
139
- stranded: string[];
140
- };
143
+ inherit?: boolean;
144
+ folder?: string | null;
145
+ archived?: boolean;
146
+ operationId: string | null;
147
+ key: string;
141
148
  };
142
149
  };
143
- "PUT /projects/:project/:environment": {
150
+ "POST /secrets/:project/:environment/:key/restore": {
144
151
  input: {
145
- name?: string;
146
- from?: string;
147
- references?: boolean;
148
- inherit?: boolean;
152
+ version: number;
149
153
  };
150
154
  output: {
151
- environment: {
152
- slug: string;
153
- name: string;
154
- archivedAt: string | null;
155
- protected: boolean;
156
- };
157
- created: boolean;
158
- forked: null | {
159
- from: string;
160
- keys: number;
161
- references: number;
162
- copied: string[];
163
- inherits: boolean;
164
- };
155
+ operationId: string | null;
156
+ key: string;
157
+ version: number;
158
+ sensitivity: "plain" | "secret" | "sensitive";
165
159
  };
166
160
  };
167
- "PATCH /projects/:project/:environment": {
161
+ "PATCH /folders/:project/:environment/:folder": {
168
162
  input: {
169
- name?: string;
170
- archived?: boolean;
171
- slug?: string;
172
- protected?: boolean;
163
+ name: string;
173
164
  };
174
165
  output: {
175
- environment: {
176
- slug: string;
177
- name: string;
178
- archivedAt: string | null;
179
- protected: boolean;
180
- };
166
+ operationId: string | null;
167
+ folder: string;
168
+ moved: string[];
181
169
  };
182
170
  };
183
- "DELETE /projects/:project/:environment": {
171
+ "DELETE /folders/:project/:environment/:folder": {
184
172
  input: undefined;
185
173
  output: {
186
- dryRun: boolean;
187
- deletion: {
188
- path: string;
189
- tombstone: string;
190
- environments: string[];
191
- keys: number;
192
- versions: number;
193
- grants: {
194
- member: string;
195
- place: string;
196
- role: string;
197
- }[];
198
- references: {
199
- holder: string;
200
- source: string;
201
- }[];
202
- stranded: string[];
203
- };
204
- };
205
- };
206
- "GET /projects/:project/:environment/missing": {
207
- input: undefined;
208
- output: {
209
- missing: {
210
- key: string;
211
- in: string[];
212
- folder: string | null;
213
- }[];
214
- dismissed: {
215
- key: string;
216
- in: string[];
217
- folder: string | null;
218
- dismissedBy: string;
219
- dismissedAt: string;
220
- }[];
174
+ operationId: string | null;
175
+ folder: null;
176
+ moved: string[];
221
177
  };
222
178
  };
223
179
  "PATCH /projects/:project/:environment/dismissals": {
@@ -225,12 +181,23 @@ export type Api = {
225
181
  [key: string]: null | true;
226
182
  };
227
183
  output: {
228
- operationId: string;
184
+ operationId: string | null;
229
185
  keys: {
230
186
  [key: string]: "dismissed" | "restored" | "unchanged";
231
187
  };
232
188
  };
233
189
  };
190
+ "DELETE /secrets/:project/:environment/:key/reference": {
191
+ input: undefined;
192
+ output: {
193
+ operationId: string | null;
194
+ reference: {
195
+ holder: string;
196
+ source: string;
197
+ state: "broken";
198
+ };
199
+ };
200
+ };
234
201
  "GET /secrets/:project/:environment": {
235
202
  input: undefined;
236
203
  output: {
@@ -241,20 +208,22 @@ export type Api = {
241
208
  id: string;
242
209
  holder: string;
243
210
  source: string;
244
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
211
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
245
212
  version: number | null;
246
- createdBy: string;
247
- createdAt: string;
248
- endedBy: string | null;
249
- endedAt: string | null;
213
+ createdBy: string | null;
214
+ createdAt: string | null;
215
+ endedBy: null;
216
+ endedAt: null;
217
+ sourceId: string;
250
218
  canOpenSource: boolean;
251
219
  };
252
220
  folder: string | null;
253
221
  archived: boolean;
254
222
  version: number | null;
223
+ versionId: string | null;
224
+ secret: string | null;
255
225
  updatedAt: string | null;
256
226
  updatedBy: string | null;
257
- versionId: string | null;
258
227
  generated: null | {
259
228
  recipe: string;
260
229
  pair?: {
@@ -284,67 +253,10 @@ export type Api = {
284
253
  rotateAfterDays: number | null;
285
254
  };
286
255
  };
287
- "PATCH /secrets/:project/:environment": {
288
- input: {
289
- [key: string]: string | null | {
290
- value: string;
291
- generated: {
292
- recipe: string;
293
- pair?: {
294
- private: string;
295
- public: string;
296
- };
297
- };
298
- replaces?: string;
299
- sensitivity?: "secret" | "sensitive";
300
- } | {
301
- value: string;
302
- plain: true;
303
- replaces?: string;
304
- } | {
305
- value: string;
306
- sensitivity: "plain" | "secret" | "sensitive";
307
- replaces?: string;
308
- } | {
309
- sensitivity: "plain" | "secret" | "sensitive";
310
- } | {
311
- ref: string;
312
- };
313
- };
314
- output: {
315
- operationId: string;
316
- keys: {
317
- [key: string]: {
318
- version: number;
319
- sensitivity: "plain" | "secret" | "sensitive";
320
- } | {
321
- archived: true;
322
- } | {
323
- reference: string;
324
- };
325
- };
326
- } | {
327
- dryRun: true;
328
- keys: {
329
- [key: string]: "added" | "archived" | "changed" | "unchanged";
330
- };
331
- };
332
- };
333
- "PATCH /secrets/:project/:environment/:key": {
256
+ "GET /secrets/:project/:environment/:key/versions": {
334
257
  input: {
335
- key?: string;
336
- archived?: boolean;
337
- folder?: string | null;
338
- inherit?: boolean;
339
- };
340
- output: {
341
- key: string;
342
- archived: boolean;
343
- folder: string | null;
258
+ before?: string;
344
259
  };
345
- };
346
- "GET /secrets/:project/:environment/:key/versions": {
347
- input: undefined;
348
260
  output: {
349
261
  key: string;
350
262
  archived: boolean;
@@ -358,121 +270,298 @@ export type Api = {
358
270
  plain: boolean;
359
271
  sensitivity: "plain" | "secret" | "sensitive";
360
272
  }[];
273
+ more: boolean;
361
274
  };
362
275
  };
363
- "POST /secrets/:project/:environment/:key/restore": {
276
+ "GET /references": {
364
277
  input: {
365
- version: number;
366
- };
367
- output: {
368
- key: string;
369
- version: number;
278
+ path: string;
370
279
  };
371
- };
372
- "DELETE /secrets/:project/:environment/:key/reference": {
373
- input: undefined;
374
280
  output: {
375
- reference: {
281
+ references: {
282
+ readers: null | string[];
283
+ canBreak: boolean;
284
+ holderArchived: boolean;
376
285
  id: string;
377
286
  holder: string;
378
287
  source: string;
379
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
288
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
380
289
  version: number | null;
381
- createdBy: string;
382
- createdAt: string;
383
- endedBy: string | null;
384
- endedAt: string | null;
385
- };
386
- };
387
- };
388
- "PATCH /folders/:folder": {
389
- input: {
390
- name: string;
391
- };
392
- output: {
393
- folder: string | null;
394
- moved: string[];
290
+ createdBy: string | null;
291
+ createdAt: string | null;
292
+ endedBy: null;
293
+ endedAt: null;
294
+ }[];
395
295
  };
396
296
  };
397
- "DELETE /folders/:folder": {
297
+ "GET /projects/:project/:environment/missing": {
398
298
  input: undefined;
399
299
  output: {
400
- folder: string | null;
401
- moved: string[];
402
- };
403
- };
404
- "PATCH /folders/:project/:environment/:folder": {
405
- input: {
406
- name: string;
407
- };
408
- output: {
409
- folder: string | null;
410
- moved: string[];
300
+ missing: {
301
+ key: string;
302
+ in: string[];
303
+ folder: string | null;
304
+ }[];
305
+ dismissed: {
306
+ dismissedBy: string;
307
+ dismissedAt: string;
308
+ key: string;
309
+ in: string[];
310
+ folder: string | null;
311
+ }[];
411
312
  };
412
313
  };
413
- "DELETE /folders/:project/:environment/:folder": {
314
+ "GET /projects/:project/:environment/version": {
414
315
  input: undefined;
415
316
  output: {
416
- folder: string | null;
417
- moved: string[];
317
+ version: string;
418
318
  };
419
319
  };
420
- "GET /references": {
421
- input: {
422
- path: string;
423
- };
320
+ "GET /members/:member/bindings": {
321
+ input: undefined;
424
322
  output: {
425
- references: {
323
+ bindings: {
426
324
  id: string;
427
- holder: string;
428
- source: string;
429
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
430
- version: number | null;
431
- createdBy: string;
325
+ profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
326
+ issuer: string;
327
+ jwksUri: string;
328
+ keys: null | {
329
+ kid: string | null;
330
+ alg: "ES256" | "RS256";
331
+ thumbprint: string;
332
+ }[];
333
+ claims: {
334
+ [key: string]: string | string[];
335
+ };
336
+ scope: null | {
337
+ [key: string]: string;
338
+ };
339
+ policy: null | {
340
+ sources?: string[];
341
+ audience?: string;
342
+ keyAudience?: true;
343
+ sessionHours?: number;
344
+ replicas?: number;
345
+ sessionDays?: number;
346
+ overlapMinutes?: number;
347
+ mintedBy?: string;
348
+ approve?: true;
349
+ onContention?: "alert";
350
+ unsignedUploads?: true;
351
+ reads?: {
352
+ [key: string]: "*" | string[];
353
+ };
354
+ };
355
+ label: string | null;
432
356
  createdAt: string;
433
- endedBy: string | null;
434
- endedAt: string | null;
435
- readers: null | string[];
436
- canBreak: boolean;
437
- holderArchived: boolean;
357
+ createdBy: string;
358
+ lastUsedAt: string | null;
438
359
  }[];
439
360
  };
440
361
  };
441
- "POST /reveals": {
362
+ "POST /members/:member/bindings": {
442
363
  input: {
443
- path: string;
444
- keys?: string[];
445
- };
446
- output: {
447
- operationId: string;
448
- values: {
364
+ profile: string;
365
+ claims: {
366
+ [key: string]: unknown;
367
+ };
368
+ issuer?: string | null;
369
+ scope?: {
449
370
  [key: string]: string;
450
371
  };
451
- sensitive: string[];
452
- useOnly: string[];
453
- version: string | null;
454
- };
455
- };
456
- "GET /members": {
457
- input: {
458
- path?: string;
372
+ label?: string | null;
373
+ replaces?: string[];
374
+ jwks?: {
375
+ [key: string]: unknown;
376
+ keys: {
377
+ [key: string]: unknown;
378
+ }[];
379
+ };
380
+ policy?: {
381
+ [key: string]: unknown;
382
+ };
459
383
  };
460
384
  output: {
461
- members: {
462
- member: string;
463
- principalType: "service" | "user";
464
- principalId: string;
465
- instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
466
- scope: null | {
467
- projects: "all" | {
468
- only: string[];
469
- } | {
470
- except: string[];
471
- };
472
- environments: "all" | {
473
- only: string[];
474
- } | {
475
- except: string[];
385
+ binding: {
386
+ id: string;
387
+ scope: {
388
+ [key: string]: string;
389
+ };
390
+ };
391
+ replaced: string[];
392
+ } | {
393
+ profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
394
+ issuer: string;
395
+ jwksUri: string;
396
+ keys: null | {
397
+ kid: string | null;
398
+ alg: "ES256" | "RS256";
399
+ thumbprint: string;
400
+ }[];
401
+ claims: {
402
+ [key: string]: string | string[];
403
+ };
404
+ scope: {
405
+ [key: string]: string;
406
+ };
407
+ policy: null | {
408
+ sources?: string[];
409
+ audience?: string;
410
+ keyAudience?: true;
411
+ sessionHours?: number;
412
+ replicas?: number;
413
+ sessionDays?: number;
414
+ overlapMinutes?: number;
415
+ mintedBy?: string;
416
+ approve?: true;
417
+ onContention?: "alert";
418
+ unsignedUploads?: true;
419
+ reads?: {
420
+ [key: string]: "*" | string[];
421
+ };
422
+ };
423
+ withheld: string[];
424
+ replaces: {
425
+ id: string;
426
+ why: "asked" | "keys_moved";
427
+ }[];
428
+ };
429
+ };
430
+ "POST /members/:member/bindings/keys": {
431
+ input: {
432
+ issuer: string;
433
+ jwks: {
434
+ [key: string]: unknown;
435
+ keys: {
436
+ [key: string]: unknown;
437
+ }[];
438
+ };
439
+ };
440
+ output: {
441
+ issuer: string;
442
+ jwksUri: string;
443
+ keys: {
444
+ kid: string | null;
445
+ alg: "ES256" | "RS256";
446
+ thumbprint: string;
447
+ }[];
448
+ replaces: string[];
449
+ withheld: string[];
450
+ } | {
451
+ bindings: {
452
+ id: string;
453
+ scope: {
454
+ [key: string]: string;
455
+ };
456
+ }[];
457
+ replaced: string[];
458
+ };
459
+ };
460
+ "DELETE /members/:member/bindings/:id": {
461
+ input: undefined;
462
+ output: {
463
+ unbound: true;
464
+ };
465
+ };
466
+ "GET /members/:member/tokens": {
467
+ input: undefined;
468
+ output: {
469
+ tokens: {
470
+ id: string;
471
+ label: string | null;
472
+ hint: string;
473
+ createdAt: string;
474
+ createdBy: string;
475
+ expiresAt: string;
476
+ lastUsedAt: string | null;
477
+ lastUsedIp: string | null;
478
+ scope: null | {
479
+ [key: string]: string;
480
+ };
481
+ session?: {
482
+ bindingId: string | null;
483
+ };
484
+ }[];
485
+ };
486
+ };
487
+ "POST /members/:member/tokens": {
488
+ input: {
489
+ label?: string | null;
490
+ expiresInDays?: number;
491
+ expiresInMinutes?: number;
492
+ scope?: {
493
+ [key: string]: string;
494
+ };
495
+ };
496
+ output: {
497
+ id: string;
498
+ token: string;
499
+ expiresAt: string;
500
+ scope: {
501
+ [key: string]: string;
502
+ };
503
+ withheld?: string[];
504
+ } | {
505
+ scope: {
506
+ [key: string]: string;
507
+ };
508
+ withheld?: string[];
509
+ };
510
+ };
511
+ "DELETE /members/:member/tokens/:id": {
512
+ input: undefined;
513
+ output: {
514
+ revoked: true;
515
+ };
516
+ };
517
+ "POST /handles": {
518
+ input: {
519
+ label: string;
520
+ paths: string[];
521
+ expiresInMinutes?: number;
522
+ };
523
+ output: {
524
+ id: string;
525
+ token: string;
526
+ expiresAt: string;
527
+ scope: {
528
+ [key: string]: string;
529
+ };
530
+ withheld?: string[];
531
+ };
532
+ };
533
+ "DELETE /handles/:id": {
534
+ input: undefined;
535
+ output: {
536
+ revoked: true;
537
+ };
538
+ };
539
+ "DELETE /sessions/:id": {
540
+ input: undefined;
541
+ output: {
542
+ revoked: true;
543
+ };
544
+ };
545
+ "GET /members": {
546
+ input: {
547
+ path?: string;
548
+ };
549
+ output: {
550
+ members: {
551
+ member: string;
552
+ principalType: "service" | "user";
553
+ principalId: string;
554
+ instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
555
+ scope: null | {
556
+ projects: "all" | {
557
+ only: string[];
558
+ } | {
559
+ except: string[];
560
+ };
561
+ environments: "all" | {
562
+ only: string[];
563
+ } | {
564
+ except: string[];
476
565
  };
477
566
  };
478
567
  reachesByRole: boolean;
@@ -494,11 +583,6 @@ export type Api = {
494
583
  principalId: string;
495
584
  toRotate: number;
496
585
  }[];
497
- reads?: {
498
- through: string | null;
499
- behind: boolean;
500
- forged?: true;
501
- };
502
586
  };
503
587
  };
504
588
  "GET /members/:member": {
@@ -539,12 +623,7 @@ export type Api = {
539
623
  at: string;
540
624
  }[];
541
625
  rotated: number;
542
- reads?: {
543
- through: string | null;
544
- behind: boolean;
545
- forged?: true;
546
- };
547
- issuedTokens: {
626
+ issuedTokens: null | {
548
627
  id: string;
549
628
  service: string;
550
629
  label: string | null;
@@ -555,7 +634,7 @@ export type Api = {
555
634
  [key: string]: string;
556
635
  };
557
636
  }[];
558
- apps: {
637
+ apps: null | {
559
638
  id: string;
560
639
  name: string;
561
640
  host: string | null;
@@ -566,7 +645,7 @@ export type Api = {
566
645
  lastUsedIp: string | null;
567
646
  expiresAt: string;
568
647
  }[];
569
- personalTokens: {
648
+ personalTokens: null | {
570
649
  id: string;
571
650
  label: string | null;
572
651
  hint: string;
@@ -582,17 +661,22 @@ export type Api = {
582
661
  bindingId: string | null;
583
662
  };
584
663
  }[];
585
- references: {
664
+ references: null | {
665
+ version: number | null;
666
+ source: string;
586
667
  id: string;
668
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
587
669
  holder: string;
588
- source: string;
589
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
590
- version: number | null;
670
+ endedBy: null;
671
+ endedAt: null;
591
672
  createdBy: string;
592
673
  createdAt: string;
593
- endedBy: string | null;
594
- endedAt: string | null;
595
674
  }[];
675
+ totals: {
676
+ issuedTokens: number | null;
677
+ personalTokens: number | null;
678
+ references: number | null;
679
+ };
596
680
  personal: {
597
681
  project: string;
598
682
  of: string;
@@ -600,6 +684,38 @@ export type Api = {
600
684
  }[];
601
685
  };
602
686
  };
687
+ "GET /members/:member/access": {
688
+ input: undefined;
689
+ output: {
690
+ member: string;
691
+ principalType: "service" | "user";
692
+ principalId: string;
693
+ status: "active" | "removed" | "tampered";
694
+ instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
695
+ scope: null | {
696
+ projects: "all" | {
697
+ only: string[];
698
+ } | {
699
+ except: string[];
700
+ };
701
+ environments: "all" | {
702
+ only: string[];
703
+ } | {
704
+ except: string[];
705
+ };
706
+ };
707
+ managed: boolean;
708
+ grants: {
709
+ id: string;
710
+ project: string;
711
+ environment: string | null;
712
+ role: string;
713
+ roleName: string;
714
+ permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
715
+ expiresAt: string | null;
716
+ }[];
717
+ };
718
+ };
603
719
  "PUT /members/:member": {
604
720
  input: {
605
721
  role?: "admin" | "auditor" | "developer" | "member" | "owner";
@@ -689,12 +805,7 @@ export type Api = {
689
805
  at: string;
690
806
  }[];
691
807
  rotated: number;
692
- reads?: {
693
- through: string | null;
694
- behind: boolean;
695
- forged?: true;
696
- };
697
- issuedTokens: {
808
+ issuedTokens: null | {
698
809
  id: string;
699
810
  service: string;
700
811
  label: string | null;
@@ -705,7 +816,7 @@ export type Api = {
705
816
  [key: string]: string;
706
817
  };
707
818
  }[];
708
- apps: {
819
+ apps: null | {
709
820
  id: string;
710
821
  name: string;
711
822
  host: string | null;
@@ -716,7 +827,7 @@ export type Api = {
716
827
  lastUsedIp: string | null;
717
828
  expiresAt: string;
718
829
  }[];
719
- personalTokens: {
830
+ personalTokens: null | {
720
831
  id: string;
721
832
  label: string | null;
722
833
  hint: string;
@@ -732,17 +843,22 @@ export type Api = {
732
843
  bindingId: string | null;
733
844
  };
734
845
  }[];
735
- references: {
846
+ references: null | {
847
+ version: number | null;
848
+ source: string;
736
849
  id: string;
850
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
737
851
  holder: string;
738
- source: string;
739
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
740
- version: number | null;
852
+ endedBy: null;
853
+ endedAt: null;
741
854
  createdBy: string;
742
855
  createdAt: string;
743
- endedBy: string | null;
744
- endedAt: string | null;
745
856
  }[];
857
+ totals: {
858
+ issuedTokens: number | null;
859
+ personalTokens: number | null;
860
+ references: number | null;
861
+ };
746
862
  personal: {
747
863
  project: string;
748
864
  of: string;
@@ -751,195 +867,258 @@ export type Api = {
751
867
  };
752
868
  };
753
869
  };
754
- "GET /members/:member/tokens": {
870
+ "PATCH /access/:member": {
871
+ input: {
872
+ [key: string]: string | null | {
873
+ role: string;
874
+ until: string | null;
875
+ };
876
+ };
877
+ output: {
878
+ changes: {
879
+ [key: string]: "created" | "revoked" | "unchanged" | "updated";
880
+ };
881
+ };
882
+ };
883
+ "GET /freezes": {
755
884
  input: undefined;
756
885
  output: {
757
- tokens: {
758
- id: string;
759
- label: string | null;
760
- hint: string;
761
- createdAt: string;
762
- createdBy: string;
763
- expiresAt: string;
764
- lastUsedAt: string | null;
765
- lastUsedIp: string | null;
766
- scope: null | {
767
- [key: string]: string;
768
- };
769
- session?: {
770
- bindingId: string | null;
771
- };
886
+ freezes: {
887
+ target: string;
888
+ service: string | null;
889
+ frozenAt: string;
772
890
  }[];
773
891
  };
774
892
  };
775
- "POST /members/:member/tokens": {
893
+ "POST /freezes": {
776
894
  input: {
777
- label?: string | null;
778
- expiresInDays?: number;
779
- expiresInMinutes?: number;
780
- scope?: {
781
- [key: string]: string;
782
- };
895
+ target: string;
896
+ reason: string;
783
897
  };
784
898
  output: {
785
- scope: {
786
- [key: string]: string;
787
- };
788
- withheld?: string[];
789
- } | {
790
- id: string;
791
- token: string;
792
- expiresAt: string;
793
- scope: {
794
- [key: string]: string;
795
- };
796
- withheld?: string[];
899
+ target: string;
900
+ frozenAt: string | null;
797
901
  };
798
902
  };
799
- "DELETE /members/:member/tokens/:id": {
903
+ "DELETE /freezes/:target": {
800
904
  input: undefined;
801
905
  output: {
802
- revoked: true;
906
+ target: string;
907
+ frozenAt: string | null;
803
908
  };
804
909
  };
805
- "GET /members/:member/bindings": {
910
+ "GET /me": {
806
911
  input: undefined;
807
912
  output: {
808
- bindings: {
913
+ principal: {
914
+ type: "service" | "user";
809
915
  id: string;
810
- profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
811
- issuer: string;
812
- jwksUri: string;
813
- keys: null | {
814
- kid: string | null;
815
- alg: "ES256" | "RS256";
816
- thumbprint: string;
817
- }[];
818
- claims: {
819
- [key: string]: string | string[];
916
+ };
917
+ registered: boolean;
918
+ tampered: boolean;
919
+ instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
920
+ scope: {
921
+ projects: "all" | {
922
+ only: string[];
923
+ } | {
924
+ except: string[];
820
925
  };
821
- scope: null | {
926
+ environments: "all" | {
927
+ only: string[];
928
+ } | {
929
+ except: string[];
930
+ };
931
+ };
932
+ runsInstance: boolean;
933
+ canReadAudit: boolean;
934
+ setsUpServices: boolean;
935
+ serviceSetup: null | {
936
+ projects: "all" | {
937
+ only: string[];
938
+ } | {
939
+ except: string[];
940
+ };
941
+ environments: "all" | {
942
+ only: string[];
943
+ } | {
944
+ except: string[];
945
+ };
946
+ };
947
+ features: {
948
+ mcp: string | null;
949
+ workloads: boolean;
950
+ };
951
+ personalToken: null | {
952
+ id: string;
953
+ label: string;
954
+ expiresAt: string;
955
+ scope: {
822
956
  [key: string]: string;
823
957
  };
824
- policy: null | {
825
- sources?: string[];
826
- audience?: string;
827
- keyAudience?: true;
828
- sessionHours?: number;
829
- replicas?: number;
830
- sessionDays?: number;
831
- overlapMinutes?: number;
832
- mintedBy?: string;
833
- approve?: true;
834
- onContention?: "alert";
835
- unsignedUploads?: true;
836
- reads?: {
837
- [key: string]: "*" | string[];
958
+ };
959
+ credentialExpiresAt: string | null;
960
+ environments: {
961
+ project: string;
962
+ environment: string;
963
+ permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
964
+ }[];
965
+ };
966
+ };
967
+ "GET /projects": {
968
+ input: undefined;
969
+ output: {
970
+ projects: {
971
+ slug: string;
972
+ name: string;
973
+ archivedAt: string | null;
974
+ folder: string | null;
975
+ permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
976
+ environments: {
977
+ slug: string;
978
+ name: string;
979
+ accessible: boolean;
980
+ parent: string | null;
981
+ protected: boolean;
982
+ unprotectable: boolean;
983
+ personal: boolean;
984
+ details: null | {
985
+ archivedAt: string | null;
986
+ secretCount: number | null;
838
987
  };
839
- };
840
- label: string | null;
841
- createdAt: string;
842
- createdBy: string;
843
- lastUsedAt: string | null;
988
+ }[];
989
+ secretCount: number | null;
844
990
  }[];
845
991
  };
846
992
  };
847
- "POST /members/:member/bindings": {
993
+ "PUT /projects/:project": {
848
994
  input: {
849
- profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
850
- claims: {
851
- [key: string]: string | string[];
995
+ name?: string;
996
+ };
997
+ output: {
998
+ project: {
999
+ slug: string;
1000
+ name: string;
1001
+ archivedAt: string | null;
852
1002
  };
853
- issuer?: string | null;
854
- scope?: {
855
- [key: string]: string;
1003
+ created: boolean;
1004
+ };
1005
+ };
1006
+ "PATCH /projects/:project": {
1007
+ input: {
1008
+ name?: string;
1009
+ slug?: string;
1010
+ archived?: boolean;
1011
+ folder?: string | null;
1012
+ };
1013
+ output: {
1014
+ project: {
1015
+ slug: string;
1016
+ name: string;
1017
+ archivedAt: string | null;
1018
+ folder: string | null;
856
1019
  };
857
- label?: string | null;
858
- replaces?: string[];
859
- jwks?: {
860
- keys: {
861
- [key: string]: unknown;
1020
+ };
1021
+ };
1022
+ "DELETE /projects/:project": {
1023
+ input: undefined;
1024
+ output: {
1025
+ dryRun: boolean;
1026
+ deletion: {
1027
+ path: string;
1028
+ tombstone: string;
1029
+ environments: string[];
1030
+ keys: number;
1031
+ versions: number;
1032
+ grants: {
1033
+ member: string;
1034
+ place: string;
1035
+ role: string;
862
1036
  }[];
1037
+ references: {
1038
+ holder: string;
1039
+ source: string;
1040
+ }[];
1041
+ stranded: string[];
863
1042
  };
864
- policy?: {
865
- [key: string]: unknown;
866
- };
1043
+ };
1044
+ };
1045
+ "PUT /projects/:project/:environment": {
1046
+ input: {
1047
+ name?: string;
1048
+ from?: string;
1049
+ references?: boolean;
1050
+ inherit?: boolean;
867
1051
  };
868
1052
  output: {
869
- profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
870
- issuer: string;
871
- jwksUri: string;
872
- keys: null | {
873
- kid: string | null;
874
- alg: "ES256" | "RS256";
875
- thumbprint: string;
876
- }[];
877
- claims: {
878
- [key: string]: string | string[];
1053
+ environment: {
1054
+ slug: string;
1055
+ name: string;
1056
+ archivedAt: string | null;
1057
+ protected: boolean;
879
1058
  };
880
- scope: {
881
- [key: string]: string;
1059
+ created: boolean;
1060
+ forked: null | {
1061
+ keys: number;
1062
+ references: number;
1063
+ copied: string[];
1064
+ from: string;
1065
+ inherits: boolean;
882
1066
  };
883
- policy: null | {
884
- sources?: string[];
885
- audience?: string;
886
- keyAudience?: true;
887
- sessionHours?: number;
888
- replicas?: number;
889
- sessionDays?: number;
890
- overlapMinutes?: number;
891
- mintedBy?: string;
892
- approve?: true;
893
- onContention?: "alert";
894
- unsignedUploads?: true;
895
- reads?: {
896
- [key: string]: "*" | string[];
897
- };
1067
+ };
1068
+ };
1069
+ "PATCH /projects/:project/:environment": {
1070
+ input: {
1071
+ name?: string;
1072
+ slug?: string;
1073
+ archived?: boolean;
1074
+ protected?: boolean;
1075
+ };
1076
+ output: {
1077
+ environment: {
1078
+ slug: string;
1079
+ name: string;
1080
+ archivedAt: string | null;
1081
+ protected: boolean;
898
1082
  };
899
- withheld: string[];
900
- replaces: {
901
- id: string;
902
- why: "asked" | "keys_moved";
903
- }[];
904
- } | {
905
- binding: {
906
- id: string;
907
- profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
908
- issuer: string;
909
- jwksUri: string;
910
- keys: null | {
911
- kid: string | null;
912
- alg: "ES256" | "RS256";
913
- thumbprint: string;
1083
+ };
1084
+ };
1085
+ "DELETE /projects/:project/:environment": {
1086
+ input: undefined;
1087
+ output: {
1088
+ dryRun: boolean;
1089
+ deletion: {
1090
+ path: string;
1091
+ tombstone: string;
1092
+ environments: string[];
1093
+ keys: number;
1094
+ versions: number;
1095
+ grants: {
1096
+ member: string;
1097
+ place: string;
1098
+ role: string;
914
1099
  }[];
915
- claims: {
916
- [key: string]: string | string[];
917
- };
918
- scope: null | {
919
- [key: string]: string;
920
- };
921
- policy: null | {
922
- sources?: string[];
923
- audience?: string;
924
- keyAudience?: true;
925
- sessionHours?: number;
926
- replicas?: number;
927
- sessionDays?: number;
928
- overlapMinutes?: number;
929
- mintedBy?: string;
930
- approve?: true;
931
- onContention?: "alert";
932
- unsignedUploads?: true;
933
- reads?: {
934
- [key: string]: "*" | string[];
935
- };
936
- };
937
- label: string | null;
938
- createdAt: string;
939
- createdBy: string;
940
- lastUsedAt: string | null;
1100
+ references: {
1101
+ holder: string;
1102
+ source: string;
1103
+ }[];
1104
+ stranded: string[];
941
1105
  };
942
- replaced: string[];
1106
+ };
1107
+ };
1108
+ "PATCH /folders/:folder": {
1109
+ input: {
1110
+ name: string;
1111
+ };
1112
+ output: {
1113
+ folder: string;
1114
+ moved: string[];
1115
+ };
1116
+ };
1117
+ "DELETE /folders/:folder": {
1118
+ input: undefined;
1119
+ output: {
1120
+ folder: null;
1121
+ moved: string[];
943
1122
  };
944
1123
  };
945
1124
  "GET /workloads/lookup": {
@@ -961,42 +1140,6 @@ export type Api = {
961
1140
  namespaceId: string;
962
1141
  };
963
1142
  };
964
- "DELETE /members/:member/bindings/:id": {
965
- input: undefined;
966
- output: {
967
- unbound: true;
968
- };
969
- };
970
- "PATCH /access/:member": {
971
- input: {
972
- [key: string]: string | null | {
973
- role: string;
974
- until: string | null;
975
- };
976
- };
977
- output: {
978
- changes: {
979
- [key: string]: "created" | "revoked" | "unchanged" | "updated";
980
- };
981
- admitted?: {
982
- created: boolean;
983
- role: "admin" | "auditor" | "developer" | "member" | "owner";
984
- scope: {
985
- projects: "all" | {
986
- only: string[];
987
- } | {
988
- except: string[];
989
- };
990
- environments: "all" | {
991
- only: string[];
992
- } | {
993
- except: string[];
994
- };
995
- };
996
- generation: number;
997
- };
998
- };
999
- };
1000
1143
  "GET /sessions": {
1001
1144
  input: undefined;
1002
1145
  output: {
@@ -1012,12 +1155,7 @@ export type Api = {
1012
1155
  lastUsedIp: string | null;
1013
1156
  current: boolean;
1014
1157
  }[];
1015
- };
1016
- };
1017
- "DELETE /sessions/:id": {
1018
- input: undefined;
1019
- output: {
1020
- revoked: true;
1158
+ more: boolean;
1021
1159
  };
1022
1160
  };
1023
1161
  "GET /identities": {
@@ -1030,6 +1168,7 @@ export type Api = {
1030
1168
  createdAt: string;
1031
1169
  lastSignInAt: string | null;
1032
1170
  }[];
1171
+ more: boolean;
1033
1172
  };
1034
1173
  };
1035
1174
  "DELETE /identities/:id": {
@@ -1133,115 +1272,18 @@ export type Api = {
1133
1272
  disconnected: true;
1134
1273
  };
1135
1274
  };
1136
- "GET /audit": {
1137
- input: {
1138
- path?: string;
1139
- actor?: string;
1140
- decision?: "allow" | "deny";
1141
- detail?: "1" | "true";
1142
- sealed?: "1" | "true";
1143
- hidden?: "1" | "true";
1144
- before?: unknown;
1145
- limit?: unknown;
1146
- };
1147
- output: {
1148
- entries: {
1149
- seq: number;
1150
- log: "0.14" | "0.15";
1151
- forged?: true;
1152
- author: "app" | "vault";
1153
- occurredAt: string;
1154
- actorType: "service" | "system" | "user";
1155
- actorId: string;
1156
- action: string;
1157
- decision: "allow" | "deny";
1158
- reason: string | null;
1159
- detail: boolean;
1160
- subject: string | null;
1161
- project: string | null;
1162
- environment: string | null;
1163
- key: string | null;
1164
- version: number | null;
1165
- secrets: null | {
1166
- key: string | null;
1167
- version: number | null;
1168
- }[];
1169
- operationId: string | null;
1170
- relatedSeq: number | null;
1171
- requestId: string | null;
1172
- run: null | {
1173
- exchangeSeq: number;
1174
- log: "0.14" | "0.15";
1175
- claims: {
1176
- [key: string]: string | number;
1177
- };
1178
- };
1179
- token: null | {
1180
- id: string;
1181
- label: string;
1182
- };
1183
- metadata: {
1184
- [key: string]: unknown;
1185
- };
1186
- }[];
1187
- more: boolean;
1188
- next: string | null;
1189
- hidden?: {
1190
- action: string;
1191
- count: number;
1192
- }[];
1193
- reads?: {
1194
- through: string | null;
1195
- behind: boolean;
1196
- forged?: true;
1197
- };
1198
- readsOmitted?: "path" | "scope";
1199
- };
1200
- };
1201
- "GET /audit/verification": {
1202
- input: {
1203
- from?: string;
1204
- };
1205
- output: {
1206
- ok: true;
1207
- through: number | null;
1208
- entries: number;
1209
- from: number;
1210
- remaining: number;
1211
- next?: string | null;
1212
- checkpoint: null | {
1213
- seq: number;
1214
- signedAt: string;
1215
- };
1216
- pending?: number;
1217
- } | {
1218
- ok: false;
1219
- through: number | null;
1220
- failedAtSeq: number | null;
1221
- author: "app" | "vault";
1222
- reason: string;
1223
- };
1224
- };
1225
1275
  "GET /audit/keys": {
1226
1276
  input: undefined;
1227
1277
  output: {
1228
- app: {
1229
- keyId: string;
1230
- previous?: string[];
1231
- };
1232
- vault: {
1233
- current: {
1234
- vaultId: string;
1235
- provider: string;
1236
- };
1237
- checks: {
1238
- seq: number;
1239
- vaultId: string;
1240
- provider: string;
1241
- version: string;
1242
- wrapped: string;
1243
- }[];
1278
+ kek: {
1279
+ provider: string;
1280
+ id: string;
1244
1281
  };
1282
+ previous: {
1283
+ provider: string;
1284
+ id: string;
1285
+ }[];
1286
+ checks: string[];
1245
1287
  };
1246
1288
  };
1247
1289
  "GET /approvals/:id": {
@@ -1312,38 +1354,6 @@ export type Api = {
1312
1354
  }[];
1313
1355
  };
1314
1356
  };
1315
- "GET /members/:member/access": {
1316
- input: undefined;
1317
- output: {
1318
- member: string;
1319
- principalType: "service" | "user";
1320
- principalId: string;
1321
- status: "active" | "removed" | "tampered";
1322
- instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
1323
- scope: null | {
1324
- projects: "all" | {
1325
- only: string[];
1326
- } | {
1327
- except: string[];
1328
- };
1329
- environments: "all" | {
1330
- only: string[];
1331
- } | {
1332
- except: string[];
1333
- };
1334
- };
1335
- managed: boolean;
1336
- grants: {
1337
- id: string;
1338
- project: string;
1339
- environment: string | null;
1340
- role: string;
1341
- roleName: string;
1342
- permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1343
- expiresAt: string | null;
1344
- }[];
1345
- };
1346
- };
1347
1357
  "PUT /settings": {
1348
1358
  input: {
1349
1359
  serviceAccounts: {
@@ -1410,78 +1420,12 @@ export type Api = {
1410
1420
  app: null;
1411
1421
  };
1412
1422
  };
1413
- "GET /projects/:project/:environment/version": {
1414
- input: undefined;
1415
- output: {
1416
- version: string;
1417
- };
1418
- };
1419
- "POST /members/:member/bindings/keys": {
1420
- input: {
1421
- issuer: string;
1422
- jwks: {
1423
- keys: {
1424
- [key: string]: unknown;
1425
- }[];
1426
- };
1427
- };
1428
- output: {
1429
- issuer: string;
1430
- jwksUri: string;
1431
- keys: {
1432
- kid: string | null;
1433
- alg: "ES256" | "RS256";
1434
- thumbprint: string;
1435
- }[];
1436
- replaces: string[];
1437
- withheld: string[];
1438
- } | {
1439
- bindings: {
1440
- id: string;
1441
- profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
1442
- issuer: string;
1443
- jwksUri: string;
1444
- keys: null | {
1445
- kid: string | null;
1446
- alg: "ES256" | "RS256";
1447
- thumbprint: string;
1448
- }[];
1449
- claims: {
1450
- [key: string]: string | string[];
1451
- };
1452
- scope: null | {
1453
- [key: string]: string;
1454
- };
1455
- policy: null | {
1456
- sources?: string[];
1457
- audience?: string;
1458
- keyAudience?: true;
1459
- sessionHours?: number;
1460
- replicas?: number;
1461
- sessionDays?: number;
1462
- overlapMinutes?: number;
1463
- mintedBy?: string;
1464
- approve?: true;
1465
- onContention?: "alert";
1466
- unsignedUploads?: true;
1467
- reads?: {
1468
- [key: string]: "*" | string[];
1469
- };
1470
- };
1471
- label: string | null;
1472
- createdAt: string;
1473
- createdBy: string;
1474
- lastUsedAt: string | null;
1475
- }[];
1476
- replaced: string[];
1477
- };
1478
- };
1479
1423
  "GET /personal/:project": {
1480
1424
  input: undefined;
1481
1425
  output: {
1482
1426
  configs: {
1483
- owner: string;
1484
1427
  of: string;
1428
+ owner: string;
1485
1429
  slug: string;
1486
1430
  keys: string[];
1487
1431
  archived: boolean;
@@ -1489,22 +1433,6 @@ export type Api = {
1489
1433
  }[];
1490
1434
  };
1491
1435
  };
1492
- "POST /handles": {
1493
- input: {
1494
- label: string;
1495
- paths: string[];
1496
- expiresInMinutes?: number;
1497
- };
1498
- output: {
1499
- id: string;
1500
- token: string;
1501
- expiresAt: string;
1502
- scope: {
1503
- [key: string]: string;
1504
- };
1505
- withheld?: string[];
1506
- };
1507
- };
1508
1436
  "GET /roles": {
1509
1437
  input: undefined;
1510
1438
  output: {
@@ -1569,22 +1497,22 @@ export type Api = {
1569
1497
  revision: string;
1570
1498
  } | {
1571
1499
  role: null | {
1500
+ fixed: boolean;
1572
1501
  name: string;
1573
1502
  description: string;
1574
1503
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1575
1504
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1576
- id: string;
1577
- builtin: boolean;
1578
- edited: boolean;
1579
- fixed: boolean;
1580
1505
  default: null | {
1581
1506
  name: string;
1582
1507
  description: string;
1583
1508
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1584
1509
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1585
1510
  };
1511
+ id: string;
1512
+ builtin: boolean;
1513
+ edited: boolean;
1586
1514
  assignableToEnvironment: boolean;
1587
- grants: number;
1515
+ grants: number | null;
1588
1516
  };
1589
1517
  };
1590
1518
  };
@@ -1605,22 +1533,22 @@ export type Api = {
1605
1533
  revision: string;
1606
1534
  } | {
1607
1535
  role: null | {
1536
+ fixed: boolean;
1608
1537
  name: string;
1609
1538
  description: string;
1610
1539
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1611
1540
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1612
- id: string;
1613
- builtin: boolean;
1614
- edited: boolean;
1615
- fixed: boolean;
1616
1541
  default: null | {
1617
1542
  name: string;
1618
1543
  description: string;
1619
1544
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1620
1545
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1621
1546
  };
1547
+ id: string;
1548
+ builtin: boolean;
1549
+ edited: boolean;
1622
1550
  assignableToEnvironment: boolean;
1623
- grants: number;
1551
+ grants: number | null;
1624
1552
  };
1625
1553
  };
1626
1554
  };
@@ -1646,22 +1574,22 @@ export type Api = {
1646
1574
  revision: string;
1647
1575
  } | {
1648
1576
  role: null | {
1577
+ fixed: boolean;
1649
1578
  name: string;
1650
1579
  description: string;
1651
1580
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1652
1581
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1653
- id: string;
1654
- builtin: boolean;
1655
- edited: boolean;
1656
- fixed: boolean;
1657
1582
  default: null | {
1658
1583
  name: string;
1659
1584
  description: string;
1660
1585
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1661
1586
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1662
1587
  };
1588
+ id: string;
1589
+ builtin: boolean;
1590
+ edited: boolean;
1663
1591
  assignableToEnvironment: boolean;
1664
- grants: number;
1592
+ grants: number | null;
1665
1593
  };
1666
1594
  };
1667
1595
  };
@@ -1682,22 +1610,22 @@ export type Api = {
1682
1610
  revision: string;
1683
1611
  } | {
1684
1612
  role: null | {
1613
+ fixed: boolean;
1685
1614
  name: string;
1686
1615
  description: string;
1687
1616
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1688
1617
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1689
- id: string;
1690
- builtin: boolean;
1691
- edited: boolean;
1692
- fixed: boolean;
1693
1618
  default: null | {
1694
1619
  name: string;
1695
1620
  description: string;
1696
1621
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1697
1622
  protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
1698
1623
  };
1624
+ id: string;
1625
+ builtin: boolean;
1626
+ edited: boolean;
1699
1627
  assignableToEnvironment: boolean;
1700
- grants: number;
1628
+ grants: number | null;
1701
1629
  };
1702
1630
  };
1703
1631
  };
@@ -1706,82 +1634,17 @@ export type Api = {
1706
1634
  output: never;
1707
1635
  };
1708
1636
  "POST /members/:member/bindings/:id/enrollments": {
1709
- input: {
1710
- [key: string]: never;
1711
- };
1712
- output: never;
1713
- };
1714
- "POST /members/:member/bindings/:id/enrollments/:enrollment/promote": {
1715
- input: {
1716
- now?: boolean;
1717
- };
1718
- output: never;
1719
- };
1720
- "POST /members/:member/tokens/:id/approve": {
1721
1637
  input: undefined;
1722
1638
  output: never;
1723
1639
  };
1724
- "GET /freezes": {
1640
+ "POST /members/:member/bindings/:id/enrollments/:enrollment/promote": {
1725
1641
  input: undefined;
1726
1642
  output: never;
1727
1643
  };
1728
- "POST /freezes": {
1729
- input: {
1730
- target: string;
1731
- reason: string;
1732
- };
1733
- output: never;
1734
- };
1735
- "DELETE /freezes/:target": {
1644
+ "POST /members/:member/tokens/:id/approve": {
1736
1645
  input: undefined;
1737
1646
  output: never;
1738
1647
  };
1739
- "DELETE /handles/:id": {
1740
- input: undefined;
1741
- output: {
1742
- revoked: true;
1743
- };
1744
- };
1745
- "POST /audit/loss": {
1746
- input: {
1747
- from: number;
1748
- to: number;
1749
- };
1750
- output: {
1751
- resumes: number | null;
1752
- };
1753
- };
1754
- "GET /audit/trees": {
1755
- input: undefined;
1756
- output: {
1757
- kept: false;
1758
- } | {
1759
- kept: true;
1760
- ok: boolean;
1761
- problems: string[];
1762
- checkpoint: null | {
1763
- upto: string;
1764
- at: number;
1765
- };
1766
- unsealed: number;
1767
- capped: boolean;
1768
- };
1769
- };
1770
- "GET /audit/reads": {
1771
- input: {
1772
- from: string;
1773
- };
1774
- output: {
1775
- kept: false;
1776
- } | {
1777
- kept: true;
1778
- ok: boolean;
1779
- problems: string[];
1780
- through: string;
1781
- listed: string;
1782
- next: string | null;
1783
- };
1784
- };
1785
1648
  };
1786
1649
 
1787
1650
  export type AccessValue = string | null | {
@@ -1830,8 +1693,6 @@ export type ApprovalView = {
1830
1693
 
1831
1694
  export type AuditEntryView = {
1832
1695
  seq: number;
1833
- log: "0.14" | "0.15";
1834
- forged?: true;
1835
1696
  author: "app" | "vault";
1836
1697
  occurredAt: string;
1837
1698
  actorType: "service" | "system" | "user";
@@ -1854,7 +1715,6 @@ export type AuditEntryView = {
1854
1715
  requestId: string | null;
1855
1716
  run: null | {
1856
1717
  exchangeSeq: number;
1857
- log: "0.14" | "0.15";
1858
1718
  claims: {
1859
1719
  [key: string]: string | number;
1860
1720
  };
@@ -1866,6 +1726,7 @@ export type AuditEntryView = {
1866
1726
  metadata: {
1867
1727
  [key: string]: unknown;
1868
1728
  };
1729
+ proof: "failed" | "proven" | "unproven";
1869
1730
  };
1870
1731
 
1871
1732
  export type AuthInfo = {
@@ -1993,16 +1854,22 @@ export type ConnectedApp = {
1993
1854
  expiresAt: string;
1994
1855
  };
1995
1856
 
1996
- export type KeysPlan = {
1997
- issuer: string;
1998
- jwksUri: string;
1999
- keys: {
2000
- kid: string | null;
2001
- alg: "ES256" | "RS256";
2002
- thumbprint: string;
1857
+ export type Decision = {
1858
+ status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
1859
+ outcome: {
1860
+ text: string;
1861
+ result?: {
1862
+ [key: string]: unknown;
1863
+ };
1864
+ error?: string;
1865
+ };
1866
+ shown: {
1867
+ label: string;
1868
+ value: string;
1869
+ kind?: "mono" | "time";
1870
+ note?: string;
1871
+ warn?: true;
2003
1872
  }[];
2004
- replaces: string[];
2005
- withheld: string[];
2006
1873
  };
2007
1874
 
2008
1875
  export type Deletion = {
@@ -2023,24 +1890,6 @@ export type Deletion = {
2023
1890
  stranded: string[];
2024
1891
  };
2025
1892
 
2026
- export type Decision = {
2027
- status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
2028
- outcome: {
2029
- text: string;
2030
- result?: {
2031
- [key: string]: unknown;
2032
- };
2033
- error?: string;
2034
- };
2035
- shown: {
2036
- label: string;
2037
- value: string;
2038
- kind?: "mono" | "time";
2039
- note?: string;
2040
- warn?: true;
2041
- }[];
2042
- };
2043
-
2044
1893
  export type DeletionResult = {
2045
1894
  dryRun: boolean;
2046
1895
  deletion: {
@@ -2062,25 +1911,12 @@ export type DeletionResult = {
2062
1911
  };
2063
1912
  };
2064
1913
 
2065
- export type WorkloadIds = {
2066
- github: string;
2067
- repositoryId: string;
2068
- ownerId: string;
2069
- } | {
2070
- github: string;
2071
- ownerId: string;
2072
- } | {
2073
- gitlab: string;
2074
- projectId: string;
2075
- namespaceId: string;
2076
- };
2077
-
2078
1914
  export type DismissedKey = {
1915
+ dismissedBy: string;
1916
+ dismissedAt: string;
2079
1917
  key: string;
2080
1918
  in: string[];
2081
1919
  folder: string | null;
2082
- dismissedBy: string;
2083
- dismissedAt: string;
2084
1920
  };
2085
1921
 
2086
1922
  export type DryRunOutcome = "added" | "archived" | "changed" | "unchanged";
@@ -2092,6 +1928,13 @@ export type DryRunResult = {
2092
1928
  };
2093
1929
  };
2094
1930
 
1931
+ export type EnvironmentView = {
1932
+ slug: string;
1933
+ name: string;
1934
+ archivedAt: string | null;
1935
+ protected: boolean;
1936
+ };
1937
+
2095
1938
  export type IdentityRow = {
2096
1939
  id: string;
2097
1940
  provider: string;
@@ -2100,11 +1943,50 @@ export type IdentityRow = {
2100
1943
  lastSignInAt: string | null;
2101
1944
  };
2102
1945
 
1946
+ export type ImpactLine = {
1947
+ change: "narrows" | "widens";
1948
+ permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
1949
+ protected: boolean;
1950
+ people: number;
1951
+ services: number;
1952
+ environments: number;
1953
+ projects: number;
1954
+ examples: string[];
1955
+ };
1956
+
2103
1957
  export type InheritResult = {
1958
+ inherit?: boolean;
1959
+ folder?: string | null;
1960
+ archived?: boolean;
1961
+ operationId: string | null;
2104
1962
  key: string;
2105
- archived: boolean;
2106
- folder: string | null;
2107
- from: string;
1963
+ };
1964
+
1965
+ export type KeysPlan = {
1966
+ issuer: string;
1967
+ jwksUri: string;
1968
+ keys: {
1969
+ kid: string | null;
1970
+ alg: "ES256" | "RS256";
1971
+ thumbprint: string;
1972
+ }[];
1973
+ replaces: string[];
1974
+ withheld: string[];
1975
+ };
1976
+
1977
+ export type ListedReference = {
1978
+ readers: null | string[];
1979
+ canBreak: boolean;
1980
+ holderArchived: boolean;
1981
+ id: string;
1982
+ holder: string;
1983
+ source: string;
1984
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
1985
+ version: number | null;
1986
+ createdBy: string | null;
1987
+ createdAt: string | null;
1988
+ endedBy: null;
1989
+ endedAt: null;
2108
1990
  };
2109
1991
 
2110
1992
  export type Me = {
@@ -2155,7 +2037,6 @@ export type Me = {
2155
2037
  };
2156
2038
  };
2157
2039
  credentialExpiresAt: string | null;
2158
- credentialId: string | null;
2159
2040
  environments: {
2160
2041
  project: string;
2161
2042
  environment: string;
@@ -2225,21 +2106,6 @@ export type MemberAccess = {
2225
2106
  }[];
2226
2107
  };
2227
2108
 
2228
- export type SettingsView = {
2229
- serviceAccounts: {
2230
- projects: "all" | {
2231
- only: string[];
2232
- } | {
2233
- except: string[];
2234
- };
2235
- environments: "all" | {
2236
- only: string[];
2237
- } | {
2238
- except: string[];
2239
- };
2240
- };
2241
- };
2242
-
2243
2109
  export type MissingKey = {
2244
2110
  key: string;
2245
2111
  in: string[];
@@ -2282,12 +2148,7 @@ export type OffboardingReport = {
2282
2148
  at: string;
2283
2149
  }[];
2284
2150
  rotated: number;
2285
- reads?: {
2286
- through: string | null;
2287
- behind: boolean;
2288
- forged?: true;
2289
- };
2290
- issuedTokens: {
2151
+ issuedTokens: null | {
2291
2152
  id: string;
2292
2153
  service: string;
2293
2154
  label: string | null;
@@ -2298,7 +2159,7 @@ export type OffboardingReport = {
2298
2159
  [key: string]: string;
2299
2160
  };
2300
2161
  }[];
2301
- apps: {
2162
+ apps: null | {
2302
2163
  id: string;
2303
2164
  name: string;
2304
2165
  host: string | null;
@@ -2309,7 +2170,7 @@ export type OffboardingReport = {
2309
2170
  lastUsedIp: string | null;
2310
2171
  expiresAt: string;
2311
2172
  }[];
2312
- personalTokens: {
2173
+ personalTokens: null | {
2313
2174
  id: string;
2314
2175
  label: string | null;
2315
2176
  hint: string;
@@ -2325,17 +2186,22 @@ export type OffboardingReport = {
2325
2186
  bindingId: string | null;
2326
2187
  };
2327
2188
  }[];
2328
- references: {
2189
+ references: null | {
2190
+ version: number | null;
2191
+ source: string;
2329
2192
  id: string;
2193
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2330
2194
  holder: string;
2331
- source: string;
2332
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2333
- version: number | null;
2195
+ endedBy: null;
2196
+ endedAt: null;
2334
2197
  createdBy: string;
2335
2198
  createdAt: string;
2336
- endedBy: string | null;
2337
- endedAt: string | null;
2338
2199
  }[];
2200
+ totals: {
2201
+ issuedTokens: number | null;
2202
+ personalTokens: number | null;
2203
+ references: number | null;
2204
+ };
2339
2205
  personal: {
2340
2206
  project: string;
2341
2207
  of: string;
@@ -2344,29 +2210,14 @@ export type OffboardingReport = {
2344
2210
  };
2345
2211
 
2346
2212
  export type PersonalConfig = {
2347
- owner: string;
2348
2213
  of: string;
2214
+ owner: string;
2349
2215
  slug: string;
2350
2216
  keys: string[];
2351
2217
  archived: boolean;
2352
2218
  createdAt: string;
2353
2219
  };
2354
2220
 
2355
- export type ListedReference = {
2356
- id: string;
2357
- holder: string;
2358
- source: string;
2359
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2360
- version: number | null;
2361
- createdBy: string;
2362
- createdAt: string;
2363
- endedBy: string | null;
2364
- endedAt: string | null;
2365
- readers: null | string[];
2366
- canBreak: boolean;
2367
- holderArchived: boolean;
2368
- };
2369
-
2370
2221
  export type ProjectSummary = {
2371
2222
  slug: string;
2372
2223
  name: string;
@@ -2393,12 +2244,12 @@ export type ReferenceView = {
2393
2244
  id: string;
2394
2245
  holder: string;
2395
2246
  source: string;
2396
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2247
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2397
2248
  version: number | null;
2398
- createdBy: string;
2399
- createdAt: string;
2400
- endedBy: string | null;
2401
- endedAt: string | null;
2249
+ createdBy: string | null;
2250
+ createdAt: string | null;
2251
+ endedBy: null;
2252
+ endedAt: null;
2402
2253
  };
2403
2254
 
2404
2255
  export type RemovedMember = {
@@ -2407,17 +2258,6 @@ export type RemovedMember = {
2407
2258
  toRotate: number;
2408
2259
  };
2409
2260
 
2410
- export type ImpactLine = {
2411
- change: "narrows" | "widens";
2412
- permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
2413
- protected: boolean;
2414
- people: number;
2415
- services: number;
2416
- environments: number;
2417
- projects: number;
2418
- examples: string[];
2419
- };
2420
-
2421
2261
  export type RoleImpact = {
2422
2262
  impact: {
2423
2263
  change: "narrows" | "widens";
@@ -2492,33 +2332,28 @@ export type RolesView = {
2492
2332
  editable: boolean;
2493
2333
  };
2494
2334
 
2495
- export type EnvironmentView = {
2496
- slug: string;
2497
- name: string;
2498
- archivedAt: string | null;
2499
- protected: boolean;
2500
- };
2501
-
2502
2335
  export type SecretKey = {
2503
2336
  key: string;
2504
2337
  reference: null | {
2505
2338
  id: string;
2506
2339
  holder: string;
2507
2340
  source: string;
2508
- state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2341
+ state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
2509
2342
  version: number | null;
2510
- createdBy: string;
2511
- createdAt: string;
2512
- endedBy: string | null;
2513
- endedAt: string | null;
2343
+ createdBy: string | null;
2344
+ createdAt: string | null;
2345
+ endedBy: null;
2346
+ endedAt: null;
2347
+ sourceId: string;
2514
2348
  canOpenSource: boolean;
2515
2349
  };
2516
2350
  folder: string | null;
2517
2351
  archived: boolean;
2518
2352
  version: number | null;
2353
+ versionId: string | null;
2354
+ secret: string | null;
2519
2355
  updatedAt: string | null;
2520
2356
  updatedBy: string | null;
2521
- versionId: string | null;
2522
2357
  generated: null | {
2523
2358
  recipe: string;
2524
2359
  pair?: {
@@ -2563,7 +2398,7 @@ export type SessionRow = {
2563
2398
  };
2564
2399
 
2565
2400
  export type SetResult = {
2566
- operationId: string;
2401
+ operationId: string | null;
2567
2402
  keys: {
2568
2403
  [key: string]: {
2569
2404
  version: number;
@@ -2576,6 +2411,21 @@ export type SetResult = {
2576
2411
  };
2577
2412
  };
2578
2413
 
2414
+ export type SettingsView = {
2415
+ serviceAccounts: {
2416
+ projects: "all" | {
2417
+ only: string[];
2418
+ } | {
2419
+ except: string[];
2420
+ };
2421
+ environments: "all" | {
2422
+ only: string[];
2423
+ } | {
2424
+ except: string[];
2425
+ };
2426
+ };
2427
+ };
2428
+
2579
2429
  export type TokenPlan = {
2580
2430
  scope: {
2581
2431
  [key: string]: string;
@@ -2599,3 +2449,16 @@ export type TokenRow = {
2599
2449
  bindingId: string | null;
2600
2450
  };
2601
2451
  };
2452
+
2453
+ export type WorkloadIds = {
2454
+ github: string;
2455
+ repositoryId: string;
2456
+ ownerId: string;
2457
+ } | {
2458
+ github: string;
2459
+ ownerId: string;
2460
+ } | {
2461
+ gitlab: string;
2462
+ projectId: string;
2463
+ namespaceId: string;
2464
+ };