@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/dist/credential-DyAuH0om.d.ts +57 -0
- package/dist/credential.d.ts +2 -54
- package/dist/credential.js +68 -2
- package/dist/{dpop-CYJtAnvD.d.ts → dpop-C9EOdNCi.d.ts} +3 -1
- package/dist/dpop.d.ts +2 -2
- package/dist/dpop.js +3 -1
- package/dist/{index-B2UlVqL3.d.ts → index-DZZ3DRTO.d.ts} +997 -1187
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +1 -11
- package/dist/{src-Dwhw_Cc4.js → src-JtgcfCXD.js} +38 -79
- package/dist/{workload-DwWrQQg1.d.ts → workload-3gHR2coV.d.ts} +22 -10
- package/dist/{workload-BsyIQcko.js → workload-CizRrO4x.js} +66 -58
- package/dist/workload-postgres.d.ts +2 -2
- package/dist/workload-postgres.js +6 -8
- package/dist/workload.d.ts +4 -3
- package/dist/workload.js +2 -2
- package/package.json +1 -1
- package/src/api.ts +852 -989
- package/src/credential.ts +43 -3
- package/src/dpop.ts +3 -0
- package/src/index.ts +21 -66
- package/src/proofs.ts +42 -0
- package/src/routes.ts +0 -7
- package/src/workload-postgres.ts +5 -7
- package/src/workload-proofs.ts +21 -11
- package/src/workload.ts +39 -16
- package/src/audit.ts +0 -16
|
@@ -1,220 +1,176 @@
|
|
|
1
1
|
//#region src/api.d.ts
|
|
2
2
|
/** Every route, by `METHOD /path`: what a caller sends (the body, or the query of a GET) and gets back. */
|
|
3
3
|
type Api = {
|
|
4
|
-
"GET /
|
|
5
|
-
input:
|
|
4
|
+
"GET /audit": {
|
|
5
|
+
input: {
|
|
6
|
+
path?: string;
|
|
7
|
+
actor?: string;
|
|
8
|
+
decision?: "allow" | "deny";
|
|
9
|
+
detail?: "1" | "true";
|
|
10
|
+
before?: unknown;
|
|
11
|
+
limit?: unknown;
|
|
12
|
+
};
|
|
6
13
|
output: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
entries: {
|
|
15
|
+
seq: number;
|
|
16
|
+
author: "app" | "vault";
|
|
17
|
+
occurredAt: string;
|
|
18
|
+
actorType: "service" | "system" | "user";
|
|
19
|
+
actorId: string;
|
|
20
|
+
action: string;
|
|
21
|
+
decision: "allow" | "deny";
|
|
22
|
+
reason: string | null;
|
|
23
|
+
detail: boolean;
|
|
24
|
+
subject: string | null;
|
|
25
|
+
project: string | null;
|
|
26
|
+
environment: string | null;
|
|
27
|
+
key: string | null;
|
|
28
|
+
version: number | null;
|
|
29
|
+
secrets: null | {
|
|
30
|
+
key: string | null;
|
|
31
|
+
version: number | null;
|
|
32
|
+
}[];
|
|
33
|
+
operationId: string | null;
|
|
34
|
+
relatedSeq: number | null;
|
|
35
|
+
requestId: string | null;
|
|
36
|
+
run: null | {
|
|
37
|
+
exchangeSeq: number;
|
|
38
|
+
claims: {
|
|
39
|
+
[key: string]: string | number;
|
|
40
|
+
};
|
|
34
41
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
except: string[];
|
|
42
|
+
token: null | {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
39
45
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
mcp: string | null;
|
|
43
|
-
workloads: boolean;
|
|
44
|
-
};
|
|
45
|
-
personalToken: null | {
|
|
46
|
-
id: string;
|
|
47
|
-
label: string;
|
|
48
|
-
expiresAt: string;
|
|
49
|
-
scope: {
|
|
50
|
-
[key: string]: string;
|
|
46
|
+
metadata: {
|
|
47
|
+
[key: string]: unknown;
|
|
51
48
|
};
|
|
52
|
-
|
|
53
|
-
credentialExpiresAt: string | null;
|
|
54
|
-
credentialId: string | null;
|
|
55
|
-
environments: {
|
|
56
|
-
project: string;
|
|
57
|
-
environment: string;
|
|
58
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
49
|
+
proof: "failed" | "proven" | "unproven";
|
|
59
50
|
}[];
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
parent: string | null;
|
|
76
|
-
protected: boolean;
|
|
77
|
-
unprotectable: boolean;
|
|
78
|
-
personal: boolean;
|
|
79
|
-
details: null | {
|
|
80
|
-
archivedAt: string | null;
|
|
81
|
-
secretCount: number | null;
|
|
82
|
-
};
|
|
83
|
-
}[];
|
|
84
|
-
secretCount: number | null;
|
|
51
|
+
more: boolean;
|
|
52
|
+
next: number | null;
|
|
53
|
+
hidden?: {
|
|
54
|
+
action: string;
|
|
55
|
+
count: number;
|
|
56
|
+
}[];
|
|
57
|
+
head: null | {
|
|
58
|
+
size: number;
|
|
59
|
+
signedAt: string;
|
|
60
|
+
};
|
|
61
|
+
holes: null | {
|
|
62
|
+
above: number | null;
|
|
63
|
+
below: number | null;
|
|
64
|
+
kept: number;
|
|
65
|
+
aging: number;
|
|
85
66
|
}[];
|
|
86
67
|
};
|
|
87
68
|
};
|
|
88
|
-
"
|
|
69
|
+
"POST /reveals": {
|
|
89
70
|
input: {
|
|
90
|
-
|
|
71
|
+
path: string;
|
|
72
|
+
keys?: string[];
|
|
91
73
|
};
|
|
92
74
|
output: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
archivedAt: string | null;
|
|
75
|
+
operationId: string | null;
|
|
76
|
+
values: {
|
|
77
|
+
[key: string]: string;
|
|
97
78
|
};
|
|
98
|
-
|
|
79
|
+
versions: {
|
|
80
|
+
[key: string]: number;
|
|
81
|
+
};
|
|
82
|
+
secrets: {
|
|
83
|
+
[key: string]: string;
|
|
84
|
+
};
|
|
85
|
+
sensitive: string[];
|
|
86
|
+
useOnly: string[];
|
|
87
|
+
version: string | null;
|
|
99
88
|
};
|
|
100
89
|
};
|
|
101
|
-
"PATCH /
|
|
90
|
+
"PATCH /secrets/:project/:environment": {
|
|
102
91
|
input: {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
92
|
+
[key: string]: string | null | {
|
|
93
|
+
value: string;
|
|
94
|
+
generated: {
|
|
95
|
+
recipe: string;
|
|
96
|
+
pair?: {
|
|
97
|
+
private: string;
|
|
98
|
+
public: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
replaces?: string;
|
|
102
|
+
sensitivity?: "secret" | "sensitive";
|
|
103
|
+
} | {
|
|
104
|
+
value: string;
|
|
105
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
106
|
+
replaces?: string;
|
|
107
|
+
} | {
|
|
108
|
+
ref: string;
|
|
109
|
+
} | {
|
|
110
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
114
111
|
};
|
|
115
112
|
};
|
|
116
|
-
};
|
|
117
|
-
"DELETE /projects/:project": {
|
|
118
|
-
input: undefined;
|
|
119
113
|
output: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}[];
|
|
136
|
-
stranded: string[];
|
|
114
|
+
operationId: string | null;
|
|
115
|
+
keys: {
|
|
116
|
+
[key: string]: {
|
|
117
|
+
version: number;
|
|
118
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
119
|
+
} | {
|
|
120
|
+
archived: true;
|
|
121
|
+
} | {
|
|
122
|
+
reference: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
} | {
|
|
126
|
+
dryRun: true;
|
|
127
|
+
keys: {
|
|
128
|
+
[key: string]: "added" | "archived" | "changed" | "unchanged";
|
|
137
129
|
};
|
|
138
130
|
};
|
|
139
131
|
};
|
|
140
|
-
"
|
|
132
|
+
"PATCH /secrets/:project/:environment/:key": {
|
|
141
133
|
input: {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
key?: string;
|
|
135
|
+
archived?: boolean;
|
|
136
|
+
folder?: string | null;
|
|
145
137
|
inherit?: boolean;
|
|
146
138
|
};
|
|
147
139
|
output: {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
created: boolean;
|
|
155
|
-
forked: null | {
|
|
156
|
-
from: string;
|
|
157
|
-
keys: number;
|
|
158
|
-
references: number;
|
|
159
|
-
copied: string[];
|
|
160
|
-
inherits: boolean;
|
|
161
|
-
};
|
|
140
|
+
inherit?: boolean;
|
|
141
|
+
folder?: string | null;
|
|
142
|
+
archived?: boolean;
|
|
143
|
+
operationId: string | null;
|
|
144
|
+
key: string;
|
|
162
145
|
};
|
|
163
146
|
};
|
|
164
|
-
"
|
|
147
|
+
"POST /secrets/:project/:environment/:key/restore": {
|
|
165
148
|
input: {
|
|
166
|
-
|
|
167
|
-
archived?: boolean;
|
|
168
|
-
slug?: string;
|
|
169
|
-
protected?: boolean;
|
|
149
|
+
version: number;
|
|
170
150
|
};
|
|
171
151
|
output: {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
protected: boolean;
|
|
177
|
-
};
|
|
152
|
+
operationId: string | null;
|
|
153
|
+
key: string;
|
|
154
|
+
version: number;
|
|
155
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
178
156
|
};
|
|
179
157
|
};
|
|
180
|
-
"
|
|
181
|
-
input:
|
|
158
|
+
"PATCH /folders/:project/:environment/:folder": {
|
|
159
|
+
input: {
|
|
160
|
+
name: string;
|
|
161
|
+
};
|
|
182
162
|
output: {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
tombstone: string;
|
|
187
|
-
environments: string[];
|
|
188
|
-
keys: number;
|
|
189
|
-
versions: number;
|
|
190
|
-
grants: {
|
|
191
|
-
member: string;
|
|
192
|
-
place: string;
|
|
193
|
-
role: string;
|
|
194
|
-
}[];
|
|
195
|
-
references: {
|
|
196
|
-
holder: string;
|
|
197
|
-
source: string;
|
|
198
|
-
}[];
|
|
199
|
-
stranded: string[];
|
|
200
|
-
};
|
|
163
|
+
operationId: string | null;
|
|
164
|
+
folder: string;
|
|
165
|
+
moved: string[];
|
|
201
166
|
};
|
|
202
167
|
};
|
|
203
|
-
"
|
|
168
|
+
"DELETE /folders/:project/:environment/:folder": {
|
|
204
169
|
input: undefined;
|
|
205
170
|
output: {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
folder: string | null;
|
|
210
|
-
}[];
|
|
211
|
-
dismissed: {
|
|
212
|
-
key: string;
|
|
213
|
-
in: string[];
|
|
214
|
-
folder: string | null;
|
|
215
|
-
dismissedBy: string;
|
|
216
|
-
dismissedAt: string;
|
|
217
|
-
}[];
|
|
171
|
+
operationId: string | null;
|
|
172
|
+
folder: null;
|
|
173
|
+
moved: string[];
|
|
218
174
|
};
|
|
219
175
|
};
|
|
220
176
|
"PATCH /projects/:project/:environment/dismissals": {
|
|
@@ -222,12 +178,23 @@ type Api = {
|
|
|
222
178
|
[key: string]: null | true;
|
|
223
179
|
};
|
|
224
180
|
output: {
|
|
225
|
-
operationId: string;
|
|
181
|
+
operationId: string | null;
|
|
226
182
|
keys: {
|
|
227
183
|
[key: string]: "dismissed" | "restored" | "unchanged";
|
|
228
184
|
};
|
|
229
185
|
};
|
|
230
186
|
};
|
|
187
|
+
"DELETE /secrets/:project/:environment/:key/reference": {
|
|
188
|
+
input: undefined;
|
|
189
|
+
output: {
|
|
190
|
+
operationId: string | null;
|
|
191
|
+
reference: {
|
|
192
|
+
holder: string;
|
|
193
|
+
source: string;
|
|
194
|
+
state: "broken";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
231
198
|
"GET /secrets/:project/:environment": {
|
|
232
199
|
input: undefined;
|
|
233
200
|
output: {
|
|
@@ -238,20 +205,22 @@ type Api = {
|
|
|
238
205
|
id: string;
|
|
239
206
|
holder: string;
|
|
240
207
|
source: string;
|
|
241
|
-
state: "broken" | "live" | "
|
|
208
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
242
209
|
version: number | null;
|
|
243
|
-
createdBy: string;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
endedBy:
|
|
246
|
-
endedAt:
|
|
210
|
+
createdBy: string | null;
|
|
211
|
+
createdAt: string | null;
|
|
212
|
+
endedBy: null;
|
|
213
|
+
endedAt: null;
|
|
214
|
+
sourceId: string;
|
|
247
215
|
canOpenSource: boolean;
|
|
248
216
|
};
|
|
249
217
|
folder: string | null;
|
|
250
218
|
archived: boolean;
|
|
251
219
|
version: number | null;
|
|
220
|
+
versionId: string | null;
|
|
221
|
+
secret: string | null;
|
|
252
222
|
updatedAt: string | null;
|
|
253
223
|
updatedBy: string | null;
|
|
254
|
-
versionId: string | null;
|
|
255
224
|
generated: null | {
|
|
256
225
|
recipe: string;
|
|
257
226
|
pair?: {
|
|
@@ -281,173 +250,293 @@ type Api = {
|
|
|
281
250
|
rotateAfterDays: number | null;
|
|
282
251
|
};
|
|
283
252
|
};
|
|
284
|
-
"
|
|
253
|
+
"GET /secrets/:project/:environment/:key/versions": {
|
|
285
254
|
input: {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
255
|
+
before?: string;
|
|
256
|
+
};
|
|
257
|
+
output: {
|
|
258
|
+
key: string;
|
|
259
|
+
archived: boolean;
|
|
260
|
+
versions: {
|
|
261
|
+
version: number;
|
|
262
|
+
createdAt: string;
|
|
263
|
+
createdBy: string;
|
|
264
|
+
current: boolean;
|
|
265
|
+
kek: string;
|
|
266
|
+
recipe: string | null;
|
|
267
|
+
plain: boolean;
|
|
268
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
269
|
+
}[];
|
|
270
|
+
more: boolean;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
"GET /references": {
|
|
274
|
+
input: {
|
|
275
|
+
path: string;
|
|
276
|
+
};
|
|
277
|
+
output: {
|
|
278
|
+
references: {
|
|
279
|
+
readers: null | string[];
|
|
280
|
+
canBreak: boolean;
|
|
281
|
+
holderArchived: boolean;
|
|
282
|
+
id: string;
|
|
283
|
+
holder: string;
|
|
284
|
+
source: string;
|
|
285
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
286
|
+
version: number | null;
|
|
287
|
+
createdBy: string | null;
|
|
288
|
+
createdAt: string | null;
|
|
289
|
+
endedBy: null;
|
|
290
|
+
endedAt: null;
|
|
291
|
+
}[];
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
"GET /projects/:project/:environment/missing": {
|
|
295
|
+
input: undefined;
|
|
296
|
+
output: {
|
|
297
|
+
missing: {
|
|
298
|
+
key: string;
|
|
299
|
+
in: string[];
|
|
300
|
+
folder: string | null;
|
|
301
|
+
}[];
|
|
302
|
+
dismissed: {
|
|
303
|
+
dismissedBy: string;
|
|
304
|
+
dismissedAt: string;
|
|
305
|
+
key: string;
|
|
306
|
+
in: string[];
|
|
307
|
+
folder: string | null;
|
|
308
|
+
}[];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
"GET /projects/:project/:environment/version": {
|
|
312
|
+
input: undefined;
|
|
313
|
+
output: {
|
|
314
|
+
version: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
"GET /members/:member/bindings": {
|
|
318
|
+
input: undefined;
|
|
319
|
+
output: {
|
|
320
|
+
bindings: {
|
|
321
|
+
id: string;
|
|
322
|
+
profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
|
|
323
|
+
issuer: string;
|
|
324
|
+
jwksUri: string;
|
|
325
|
+
keys: null | {
|
|
326
|
+
kid: string | null;
|
|
327
|
+
alg: "ES256" | "RS256";
|
|
328
|
+
thumbprint: string;
|
|
329
|
+
}[];
|
|
330
|
+
claims: {
|
|
331
|
+
[key: string]: string | string[];
|
|
332
|
+
};
|
|
333
|
+
scope: null | {
|
|
334
|
+
[key: string]: string;
|
|
335
|
+
};
|
|
336
|
+
policy: null | {
|
|
337
|
+
sources?: string[];
|
|
338
|
+
audience?: string;
|
|
339
|
+
keyAudience?: true;
|
|
340
|
+
sessionHours?: number;
|
|
341
|
+
replicas?: number;
|
|
342
|
+
sessionDays?: number;
|
|
343
|
+
overlapMinutes?: number;
|
|
344
|
+
mintedBy?: string;
|
|
345
|
+
approve?: true;
|
|
346
|
+
onContention?: "alert";
|
|
347
|
+
unsignedUploads?: true;
|
|
348
|
+
reads?: {
|
|
349
|
+
[key: string]: "*" | string[];
|
|
293
350
|
};
|
|
294
351
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
|
|
352
|
+
label: string | null;
|
|
353
|
+
createdAt: string;
|
|
354
|
+
createdBy: string;
|
|
355
|
+
lastUsedAt: string | null;
|
|
356
|
+
}[];
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
"POST /members/:member/bindings": {
|
|
360
|
+
input: {
|
|
361
|
+
profile: string;
|
|
362
|
+
claims: {
|
|
363
|
+
[key: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
issuer?: string | null;
|
|
366
|
+
scope?: {
|
|
367
|
+
[key: string]: string;
|
|
368
|
+
};
|
|
369
|
+
label?: string | null;
|
|
370
|
+
replaces?: string[];
|
|
371
|
+
jwks?: {
|
|
372
|
+
[key: string]: unknown;
|
|
373
|
+
keys: {
|
|
374
|
+
[key: string]: unknown;
|
|
375
|
+
}[];
|
|
376
|
+
};
|
|
377
|
+
policy?: {
|
|
378
|
+
[key: string]: unknown;
|
|
309
379
|
};
|
|
310
380
|
};
|
|
311
381
|
output: {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
sensitivity: "plain" | "secret" | "sensitive";
|
|
317
|
-
} | {
|
|
318
|
-
archived: true;
|
|
319
|
-
} | {
|
|
320
|
-
reference: string;
|
|
382
|
+
binding: {
|
|
383
|
+
id: string;
|
|
384
|
+
scope: {
|
|
385
|
+
[key: string]: string;
|
|
321
386
|
};
|
|
322
387
|
};
|
|
388
|
+
replaced: string[];
|
|
323
389
|
} | {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
390
|
+
profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
|
|
391
|
+
issuer: string;
|
|
392
|
+
jwksUri: string;
|
|
393
|
+
keys: null | {
|
|
394
|
+
kid: string | null;
|
|
395
|
+
alg: "ES256" | "RS256";
|
|
396
|
+
thumbprint: string;
|
|
397
|
+
}[];
|
|
398
|
+
claims: {
|
|
399
|
+
[key: string]: string | string[];
|
|
400
|
+
};
|
|
401
|
+
scope: {
|
|
402
|
+
[key: string]: string;
|
|
403
|
+
};
|
|
404
|
+
policy: null | {
|
|
405
|
+
sources?: string[];
|
|
406
|
+
audience?: string;
|
|
407
|
+
keyAudience?: true;
|
|
408
|
+
sessionHours?: number;
|
|
409
|
+
replicas?: number;
|
|
410
|
+
sessionDays?: number;
|
|
411
|
+
overlapMinutes?: number;
|
|
412
|
+
mintedBy?: string;
|
|
413
|
+
approve?: true;
|
|
414
|
+
onContention?: "alert";
|
|
415
|
+
unsignedUploads?: true;
|
|
416
|
+
reads?: {
|
|
417
|
+
[key: string]: "*" | string[];
|
|
418
|
+
};
|
|
327
419
|
};
|
|
420
|
+
withheld: string[];
|
|
421
|
+
replaces: {
|
|
422
|
+
id: string;
|
|
423
|
+
why: "asked" | "keys_moved";
|
|
424
|
+
}[];
|
|
328
425
|
};
|
|
329
426
|
};
|
|
330
|
-
"
|
|
427
|
+
"POST /members/:member/bindings/keys": {
|
|
331
428
|
input: {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
archived: boolean;
|
|
340
|
-
folder: string | null;
|
|
429
|
+
issuer: string;
|
|
430
|
+
jwks: {
|
|
431
|
+
[key: string]: unknown;
|
|
432
|
+
keys: {
|
|
433
|
+
[key: string]: unknown;
|
|
434
|
+
}[];
|
|
435
|
+
};
|
|
341
436
|
};
|
|
342
|
-
};
|
|
343
|
-
"GET /secrets/:project/:environment/:key/versions": {
|
|
344
|
-
input: undefined;
|
|
345
437
|
output: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
438
|
+
issuer: string;
|
|
439
|
+
jwksUri: string;
|
|
440
|
+
keys: {
|
|
441
|
+
kid: string | null;
|
|
442
|
+
alg: "ES256" | "RS256";
|
|
443
|
+
thumbprint: string;
|
|
444
|
+
}[];
|
|
445
|
+
replaces: string[];
|
|
446
|
+
withheld: string[];
|
|
447
|
+
} | {
|
|
448
|
+
bindings: {
|
|
449
|
+
id: string;
|
|
450
|
+
scope: {
|
|
451
|
+
[key: string]: string;
|
|
452
|
+
};
|
|
357
453
|
}[];
|
|
454
|
+
replaced: string[];
|
|
358
455
|
};
|
|
359
456
|
};
|
|
360
|
-
"
|
|
361
|
-
input:
|
|
362
|
-
version: number;
|
|
363
|
-
};
|
|
457
|
+
"DELETE /members/:member/bindings/:id": {
|
|
458
|
+
input: undefined;
|
|
364
459
|
output: {
|
|
365
|
-
|
|
366
|
-
version: number;
|
|
460
|
+
unbound: true;
|
|
367
461
|
};
|
|
368
462
|
};
|
|
369
|
-
"
|
|
463
|
+
"GET /members/:member/tokens": {
|
|
370
464
|
input: undefined;
|
|
371
465
|
output: {
|
|
372
|
-
|
|
466
|
+
tokens: {
|
|
373
467
|
id: string;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
377
|
-
version: number | null;
|
|
378
|
-
createdBy: string;
|
|
468
|
+
label: string | null;
|
|
469
|
+
hint: string;
|
|
379
470
|
createdAt: string;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
471
|
+
createdBy: string;
|
|
472
|
+
expiresAt: string;
|
|
473
|
+
lastUsedAt: string | null;
|
|
474
|
+
lastUsedIp: string | null;
|
|
475
|
+
scope: null | {
|
|
476
|
+
[key: string]: string;
|
|
477
|
+
};
|
|
478
|
+
session?: {
|
|
479
|
+
bindingId: string | null;
|
|
480
|
+
};
|
|
481
|
+
}[];
|
|
383
482
|
};
|
|
384
483
|
};
|
|
385
|
-
"
|
|
484
|
+
"POST /members/:member/tokens": {
|
|
386
485
|
input: {
|
|
387
|
-
|
|
486
|
+
label?: string | null;
|
|
487
|
+
expiresInDays?: number;
|
|
488
|
+
expiresInMinutes?: number;
|
|
489
|
+
scope?: {
|
|
490
|
+
[key: string]: string;
|
|
491
|
+
};
|
|
388
492
|
};
|
|
389
493
|
output: {
|
|
390
|
-
|
|
391
|
-
|
|
494
|
+
id: string;
|
|
495
|
+
token: string;
|
|
496
|
+
expiresAt: string;
|
|
497
|
+
scope: {
|
|
498
|
+
[key: string]: string;
|
|
499
|
+
};
|
|
500
|
+
withheld?: string[];
|
|
501
|
+
} | {
|
|
502
|
+
scope: {
|
|
503
|
+
[key: string]: string;
|
|
504
|
+
};
|
|
505
|
+
withheld?: string[];
|
|
392
506
|
};
|
|
393
507
|
};
|
|
394
|
-
"DELETE /
|
|
508
|
+
"DELETE /members/:member/tokens/:id": {
|
|
395
509
|
input: undefined;
|
|
396
510
|
output: {
|
|
397
|
-
|
|
398
|
-
moved: string[];
|
|
511
|
+
revoked: true;
|
|
399
512
|
};
|
|
400
513
|
};
|
|
401
|
-
"
|
|
514
|
+
"POST /handles": {
|
|
402
515
|
input: {
|
|
403
|
-
|
|
516
|
+
label: string;
|
|
517
|
+
paths: string[];
|
|
518
|
+
expiresInMinutes?: number;
|
|
404
519
|
};
|
|
405
520
|
output: {
|
|
406
|
-
|
|
407
|
-
|
|
521
|
+
id: string;
|
|
522
|
+
token: string;
|
|
523
|
+
expiresAt: string;
|
|
524
|
+
scope: {
|
|
525
|
+
[key: string]: string;
|
|
526
|
+
};
|
|
527
|
+
withheld?: string[];
|
|
408
528
|
};
|
|
409
529
|
};
|
|
410
|
-
"DELETE /
|
|
530
|
+
"DELETE /handles/:id": {
|
|
411
531
|
input: undefined;
|
|
412
532
|
output: {
|
|
413
|
-
|
|
414
|
-
moved: string[];
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
"GET /references": {
|
|
418
|
-
input: {
|
|
419
|
-
path: string;
|
|
420
|
-
};
|
|
421
|
-
output: {
|
|
422
|
-
references: {
|
|
423
|
-
id: string;
|
|
424
|
-
holder: string;
|
|
425
|
-
source: string;
|
|
426
|
-
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
427
|
-
version: number | null;
|
|
428
|
-
createdBy: string;
|
|
429
|
-
createdAt: string;
|
|
430
|
-
endedBy: string | null;
|
|
431
|
-
endedAt: string | null;
|
|
432
|
-
readers: null | string[];
|
|
433
|
-
canBreak: boolean;
|
|
434
|
-
holderArchived: boolean;
|
|
435
|
-
}[];
|
|
533
|
+
revoked: true;
|
|
436
534
|
};
|
|
437
535
|
};
|
|
438
|
-
"
|
|
439
|
-
input:
|
|
440
|
-
path: string;
|
|
441
|
-
keys?: string[];
|
|
442
|
-
};
|
|
536
|
+
"DELETE /sessions/:id": {
|
|
537
|
+
input: undefined;
|
|
443
538
|
output: {
|
|
444
|
-
|
|
445
|
-
values: {
|
|
446
|
-
[key: string]: string;
|
|
447
|
-
};
|
|
448
|
-
sensitive: string[];
|
|
449
|
-
useOnly: string[];
|
|
450
|
-
version: string | null;
|
|
539
|
+
revoked: true;
|
|
451
540
|
};
|
|
452
541
|
};
|
|
453
542
|
"GET /members": {
|
|
@@ -491,11 +580,6 @@ type Api = {
|
|
|
491
580
|
principalId: string;
|
|
492
581
|
toRotate: number;
|
|
493
582
|
}[];
|
|
494
|
-
reads?: {
|
|
495
|
-
through: string | null;
|
|
496
|
-
behind: boolean;
|
|
497
|
-
forged?: true;
|
|
498
|
-
};
|
|
499
583
|
};
|
|
500
584
|
};
|
|
501
585
|
"GET /members/:member": {
|
|
@@ -536,12 +620,7 @@ type Api = {
|
|
|
536
620
|
at: string;
|
|
537
621
|
}[];
|
|
538
622
|
rotated: number;
|
|
539
|
-
|
|
540
|
-
through: string | null;
|
|
541
|
-
behind: boolean;
|
|
542
|
-
forged?: true;
|
|
543
|
-
};
|
|
544
|
-
issuedTokens: {
|
|
623
|
+
issuedTokens: null | {
|
|
545
624
|
id: string;
|
|
546
625
|
service: string;
|
|
547
626
|
label: string | null;
|
|
@@ -552,7 +631,7 @@ type Api = {
|
|
|
552
631
|
[key: string]: string;
|
|
553
632
|
};
|
|
554
633
|
}[];
|
|
555
|
-
apps: {
|
|
634
|
+
apps: null | {
|
|
556
635
|
id: string;
|
|
557
636
|
name: string;
|
|
558
637
|
host: string | null;
|
|
@@ -563,7 +642,7 @@ type Api = {
|
|
|
563
642
|
lastUsedIp: string | null;
|
|
564
643
|
expiresAt: string;
|
|
565
644
|
}[];
|
|
566
|
-
personalTokens: {
|
|
645
|
+
personalTokens: null | {
|
|
567
646
|
id: string;
|
|
568
647
|
label: string | null;
|
|
569
648
|
hint: string;
|
|
@@ -575,25 +654,62 @@ type Api = {
|
|
|
575
654
|
scope: null | {
|
|
576
655
|
[key: string]: string;
|
|
577
656
|
};
|
|
578
|
-
session?: {
|
|
579
|
-
bindingId: string | null;
|
|
657
|
+
session?: {
|
|
658
|
+
bindingId: string | null;
|
|
659
|
+
};
|
|
660
|
+
}[];
|
|
661
|
+
references: null | {
|
|
662
|
+
version: number | null;
|
|
663
|
+
source: string;
|
|
664
|
+
id: string;
|
|
665
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
666
|
+
holder: string;
|
|
667
|
+
endedBy: null;
|
|
668
|
+
endedAt: null;
|
|
669
|
+
createdBy: string;
|
|
670
|
+
createdAt: string;
|
|
671
|
+
}[];
|
|
672
|
+
totals: {
|
|
673
|
+
issuedTokens: number | null;
|
|
674
|
+
personalTokens: number | null;
|
|
675
|
+
references: number | null;
|
|
676
|
+
};
|
|
677
|
+
personal: {
|
|
678
|
+
project: string;
|
|
679
|
+
of: string;
|
|
680
|
+
slug: string;
|
|
681
|
+
}[];
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
"GET /members/:member/access": {
|
|
685
|
+
input: undefined;
|
|
686
|
+
output: {
|
|
687
|
+
member: string;
|
|
688
|
+
principalType: "service" | "user";
|
|
689
|
+
principalId: string;
|
|
690
|
+
status: "active" | "removed" | "tampered";
|
|
691
|
+
instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
|
|
692
|
+
scope: null | {
|
|
693
|
+
projects: "all" | {
|
|
694
|
+
only: string[];
|
|
695
|
+
} | {
|
|
696
|
+
except: string[];
|
|
697
|
+
};
|
|
698
|
+
environments: "all" | {
|
|
699
|
+
only: string[];
|
|
700
|
+
} | {
|
|
701
|
+
except: string[];
|
|
580
702
|
};
|
|
581
|
-
}
|
|
582
|
-
|
|
703
|
+
};
|
|
704
|
+
managed: boolean;
|
|
705
|
+
grants: {
|
|
583
706
|
id: string;
|
|
584
|
-
holder: string;
|
|
585
|
-
source: string;
|
|
586
|
-
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
587
|
-
version: number | null;
|
|
588
|
-
createdBy: string;
|
|
589
|
-
createdAt: string;
|
|
590
|
-
endedBy: string | null;
|
|
591
|
-
endedAt: string | null;
|
|
592
|
-
}[];
|
|
593
|
-
personal: {
|
|
594
707
|
project: string;
|
|
595
|
-
|
|
596
|
-
|
|
708
|
+
environment: string | null;
|
|
709
|
+
role: string;
|
|
710
|
+
roleName: string;
|
|
711
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
712
|
+
expiresAt: string | null;
|
|
597
713
|
}[];
|
|
598
714
|
};
|
|
599
715
|
};
|
|
@@ -686,12 +802,7 @@ type Api = {
|
|
|
686
802
|
at: string;
|
|
687
803
|
}[];
|
|
688
804
|
rotated: number;
|
|
689
|
-
|
|
690
|
-
through: string | null;
|
|
691
|
-
behind: boolean;
|
|
692
|
-
forged?: true;
|
|
693
|
-
};
|
|
694
|
-
issuedTokens: {
|
|
805
|
+
issuedTokens: null | {
|
|
695
806
|
id: string;
|
|
696
807
|
service: string;
|
|
697
808
|
label: string | null;
|
|
@@ -702,7 +813,7 @@ type Api = {
|
|
|
702
813
|
[key: string]: string;
|
|
703
814
|
};
|
|
704
815
|
}[];
|
|
705
|
-
apps: {
|
|
816
|
+
apps: null | {
|
|
706
817
|
id: string;
|
|
707
818
|
name: string;
|
|
708
819
|
host: string | null;
|
|
@@ -713,7 +824,7 @@ type Api = {
|
|
|
713
824
|
lastUsedIp: string | null;
|
|
714
825
|
expiresAt: string;
|
|
715
826
|
}[];
|
|
716
|
-
personalTokens: {
|
|
827
|
+
personalTokens: null | {
|
|
717
828
|
id: string;
|
|
718
829
|
label: string | null;
|
|
719
830
|
hint: string;
|
|
@@ -729,17 +840,22 @@ type Api = {
|
|
|
729
840
|
bindingId: string | null;
|
|
730
841
|
};
|
|
731
842
|
}[];
|
|
732
|
-
references: {
|
|
843
|
+
references: null | {
|
|
844
|
+
version: number | null;
|
|
845
|
+
source: string;
|
|
733
846
|
id: string;
|
|
847
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
734
848
|
holder: string;
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
version: number | null;
|
|
849
|
+
endedBy: null;
|
|
850
|
+
endedAt: null;
|
|
738
851
|
createdBy: string;
|
|
739
852
|
createdAt: string;
|
|
740
|
-
endedBy: string | null;
|
|
741
|
-
endedAt: string | null;
|
|
742
853
|
}[];
|
|
854
|
+
totals: {
|
|
855
|
+
issuedTokens: number | null;
|
|
856
|
+
personalTokens: number | null;
|
|
857
|
+
references: number | null;
|
|
858
|
+
};
|
|
743
859
|
personal: {
|
|
744
860
|
project: string;
|
|
745
861
|
of: string;
|
|
@@ -748,195 +864,258 @@ type Api = {
|
|
|
748
864
|
};
|
|
749
865
|
};
|
|
750
866
|
};
|
|
751
|
-
"
|
|
867
|
+
"PATCH /access/:member": {
|
|
868
|
+
input: {
|
|
869
|
+
[key: string]: string | null | {
|
|
870
|
+
role: string;
|
|
871
|
+
until: string | null;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
output: {
|
|
875
|
+
changes: {
|
|
876
|
+
[key: string]: "created" | "revoked" | "unchanged" | "updated";
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
"GET /freezes": {
|
|
752
881
|
input: undefined;
|
|
753
882
|
output: {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
createdAt: string;
|
|
759
|
-
createdBy: string;
|
|
760
|
-
expiresAt: string;
|
|
761
|
-
lastUsedAt: string | null;
|
|
762
|
-
lastUsedIp: string | null;
|
|
763
|
-
scope: null | {
|
|
764
|
-
[key: string]: string;
|
|
765
|
-
};
|
|
766
|
-
session?: {
|
|
767
|
-
bindingId: string | null;
|
|
768
|
-
};
|
|
883
|
+
freezes: {
|
|
884
|
+
target: string;
|
|
885
|
+
service: string | null;
|
|
886
|
+
frozenAt: string;
|
|
769
887
|
}[];
|
|
770
888
|
};
|
|
771
889
|
};
|
|
772
|
-
"POST /
|
|
890
|
+
"POST /freezes": {
|
|
773
891
|
input: {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
expiresInMinutes?: number;
|
|
777
|
-
scope?: {
|
|
778
|
-
[key: string]: string;
|
|
779
|
-
};
|
|
892
|
+
target: string;
|
|
893
|
+
reason: string;
|
|
780
894
|
};
|
|
781
895
|
output: {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
};
|
|
785
|
-
withheld?: string[];
|
|
786
|
-
} | {
|
|
787
|
-
id: string;
|
|
788
|
-
token: string;
|
|
789
|
-
expiresAt: string;
|
|
790
|
-
scope: {
|
|
791
|
-
[key: string]: string;
|
|
792
|
-
};
|
|
793
|
-
withheld?: string[];
|
|
896
|
+
target: string;
|
|
897
|
+
frozenAt: string | null;
|
|
794
898
|
};
|
|
795
899
|
};
|
|
796
|
-
"DELETE /
|
|
900
|
+
"DELETE /freezes/:target": {
|
|
797
901
|
input: undefined;
|
|
798
902
|
output: {
|
|
799
|
-
|
|
903
|
+
target: string;
|
|
904
|
+
frozenAt: string | null;
|
|
800
905
|
};
|
|
801
906
|
};
|
|
802
|
-
"GET /
|
|
907
|
+
"GET /me": {
|
|
803
908
|
input: undefined;
|
|
804
909
|
output: {
|
|
805
|
-
|
|
910
|
+
principal: {
|
|
911
|
+
type: "service" | "user";
|
|
806
912
|
id: string;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
[key: string]: string | string[];
|
|
913
|
+
};
|
|
914
|
+
registered: boolean;
|
|
915
|
+
tampered: boolean;
|
|
916
|
+
instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
|
|
917
|
+
scope: {
|
|
918
|
+
projects: "all" | {
|
|
919
|
+
only: string[];
|
|
920
|
+
} | {
|
|
921
|
+
except: string[];
|
|
817
922
|
};
|
|
818
|
-
|
|
923
|
+
environments: "all" | {
|
|
924
|
+
only: string[];
|
|
925
|
+
} | {
|
|
926
|
+
except: string[];
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
runsInstance: boolean;
|
|
930
|
+
canReadAudit: boolean;
|
|
931
|
+
setsUpServices: boolean;
|
|
932
|
+
serviceSetup: null | {
|
|
933
|
+
projects: "all" | {
|
|
934
|
+
only: string[];
|
|
935
|
+
} | {
|
|
936
|
+
except: string[];
|
|
937
|
+
};
|
|
938
|
+
environments: "all" | {
|
|
939
|
+
only: string[];
|
|
940
|
+
} | {
|
|
941
|
+
except: string[];
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
features: {
|
|
945
|
+
mcp: string | null;
|
|
946
|
+
workloads: boolean;
|
|
947
|
+
};
|
|
948
|
+
personalToken: null | {
|
|
949
|
+
id: string;
|
|
950
|
+
label: string;
|
|
951
|
+
expiresAt: string;
|
|
952
|
+
scope: {
|
|
819
953
|
[key: string]: string;
|
|
820
954
|
};
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
955
|
+
};
|
|
956
|
+
credentialExpiresAt: string | null;
|
|
957
|
+
environments: {
|
|
958
|
+
project: string;
|
|
959
|
+
environment: string;
|
|
960
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
961
|
+
}[];
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
"GET /projects": {
|
|
965
|
+
input: undefined;
|
|
966
|
+
output: {
|
|
967
|
+
projects: {
|
|
968
|
+
slug: string;
|
|
969
|
+
name: string;
|
|
970
|
+
archivedAt: string | null;
|
|
971
|
+
folder: string | null;
|
|
972
|
+
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
973
|
+
environments: {
|
|
974
|
+
slug: string;
|
|
975
|
+
name: string;
|
|
976
|
+
accessible: boolean;
|
|
977
|
+
parent: string | null;
|
|
978
|
+
protected: boolean;
|
|
979
|
+
unprotectable: boolean;
|
|
980
|
+
personal: boolean;
|
|
981
|
+
details: null | {
|
|
982
|
+
archivedAt: string | null;
|
|
983
|
+
secretCount: number | null;
|
|
835
984
|
};
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
createdAt: string;
|
|
839
|
-
createdBy: string;
|
|
840
|
-
lastUsedAt: string | null;
|
|
985
|
+
}[];
|
|
986
|
+
secretCount: number | null;
|
|
841
987
|
}[];
|
|
842
988
|
};
|
|
843
989
|
};
|
|
844
|
-
"
|
|
990
|
+
"PUT /projects/:project": {
|
|
845
991
|
input: {
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
992
|
+
name?: string;
|
|
993
|
+
};
|
|
994
|
+
output: {
|
|
995
|
+
project: {
|
|
996
|
+
slug: string;
|
|
997
|
+
name: string;
|
|
998
|
+
archivedAt: string | null;
|
|
849
999
|
};
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
1000
|
+
created: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
"PATCH /projects/:project": {
|
|
1004
|
+
input: {
|
|
1005
|
+
name?: string;
|
|
1006
|
+
slug?: string;
|
|
1007
|
+
archived?: boolean;
|
|
1008
|
+
folder?: string | null;
|
|
1009
|
+
};
|
|
1010
|
+
output: {
|
|
1011
|
+
project: {
|
|
1012
|
+
slug: string;
|
|
1013
|
+
name: string;
|
|
1014
|
+
archivedAt: string | null;
|
|
1015
|
+
folder: string | null;
|
|
853
1016
|
};
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
"DELETE /projects/:project": {
|
|
1020
|
+
input: undefined;
|
|
1021
|
+
output: {
|
|
1022
|
+
dryRun: boolean;
|
|
1023
|
+
deletion: {
|
|
1024
|
+
path: string;
|
|
1025
|
+
tombstone: string;
|
|
1026
|
+
environments: string[];
|
|
1027
|
+
keys: number;
|
|
1028
|
+
versions: number;
|
|
1029
|
+
grants: {
|
|
1030
|
+
member: string;
|
|
1031
|
+
place: string;
|
|
1032
|
+
role: string;
|
|
859
1033
|
}[];
|
|
1034
|
+
references: {
|
|
1035
|
+
holder: string;
|
|
1036
|
+
source: string;
|
|
1037
|
+
}[];
|
|
1038
|
+
stranded: string[];
|
|
860
1039
|
};
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
"PUT /projects/:project/:environment": {
|
|
1043
|
+
input: {
|
|
1044
|
+
name?: string;
|
|
1045
|
+
from?: string;
|
|
1046
|
+
references?: boolean;
|
|
1047
|
+
inherit?: boolean;
|
|
864
1048
|
};
|
|
865
1049
|
output: {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
alg: "ES256" | "RS256";
|
|
872
|
-
thumbprint: string;
|
|
873
|
-
}[];
|
|
874
|
-
claims: {
|
|
875
|
-
[key: string]: string | string[];
|
|
1050
|
+
environment: {
|
|
1051
|
+
slug: string;
|
|
1052
|
+
name: string;
|
|
1053
|
+
archivedAt: string | null;
|
|
1054
|
+
protected: boolean;
|
|
876
1055
|
};
|
|
877
|
-
|
|
878
|
-
|
|
1056
|
+
created: boolean;
|
|
1057
|
+
forked: null | {
|
|
1058
|
+
keys: number;
|
|
1059
|
+
references: number;
|
|
1060
|
+
copied: string[];
|
|
1061
|
+
from: string;
|
|
1062
|
+
inherits: boolean;
|
|
879
1063
|
};
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
"PATCH /projects/:project/:environment": {
|
|
1067
|
+
input: {
|
|
1068
|
+
name?: string;
|
|
1069
|
+
slug?: string;
|
|
1070
|
+
archived?: boolean;
|
|
1071
|
+
protected?: boolean;
|
|
1072
|
+
};
|
|
1073
|
+
output: {
|
|
1074
|
+
environment: {
|
|
1075
|
+
slug: string;
|
|
1076
|
+
name: string;
|
|
1077
|
+
archivedAt: string | null;
|
|
1078
|
+
protected: boolean;
|
|
895
1079
|
};
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
"DELETE /projects/:project/:environment": {
|
|
1083
|
+
input: undefined;
|
|
1084
|
+
output: {
|
|
1085
|
+
dryRun: boolean;
|
|
1086
|
+
deletion: {
|
|
1087
|
+
path: string;
|
|
1088
|
+
tombstone: string;
|
|
1089
|
+
environments: string[];
|
|
1090
|
+
keys: number;
|
|
1091
|
+
versions: number;
|
|
1092
|
+
grants: {
|
|
1093
|
+
member: string;
|
|
1094
|
+
place: string;
|
|
1095
|
+
role: string;
|
|
911
1096
|
}[];
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
};
|
|
918
|
-
policy: null | {
|
|
919
|
-
sources?: string[];
|
|
920
|
-
audience?: string;
|
|
921
|
-
keyAudience?: true;
|
|
922
|
-
sessionHours?: number;
|
|
923
|
-
replicas?: number;
|
|
924
|
-
sessionDays?: number;
|
|
925
|
-
overlapMinutes?: number;
|
|
926
|
-
mintedBy?: string;
|
|
927
|
-
approve?: true;
|
|
928
|
-
onContention?: "alert";
|
|
929
|
-
unsignedUploads?: true;
|
|
930
|
-
reads?: {
|
|
931
|
-
[key: string]: "*" | string[];
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
label: string | null;
|
|
935
|
-
createdAt: string;
|
|
936
|
-
createdBy: string;
|
|
937
|
-
lastUsedAt: string | null;
|
|
1097
|
+
references: {
|
|
1098
|
+
holder: string;
|
|
1099
|
+
source: string;
|
|
1100
|
+
}[];
|
|
1101
|
+
stranded: string[];
|
|
938
1102
|
};
|
|
939
|
-
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
"PATCH /folders/:folder": {
|
|
1106
|
+
input: {
|
|
1107
|
+
name: string;
|
|
1108
|
+
};
|
|
1109
|
+
output: {
|
|
1110
|
+
folder: string;
|
|
1111
|
+
moved: string[];
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
"DELETE /folders/:folder": {
|
|
1115
|
+
input: undefined;
|
|
1116
|
+
output: {
|
|
1117
|
+
folder: null;
|
|
1118
|
+
moved: string[];
|
|
940
1119
|
};
|
|
941
1120
|
};
|
|
942
1121
|
"GET /workloads/lookup": {
|
|
@@ -958,42 +1137,6 @@ type Api = {
|
|
|
958
1137
|
namespaceId: string;
|
|
959
1138
|
};
|
|
960
1139
|
};
|
|
961
|
-
"DELETE /members/:member/bindings/:id": {
|
|
962
|
-
input: undefined;
|
|
963
|
-
output: {
|
|
964
|
-
unbound: true;
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
"PATCH /access/:member": {
|
|
968
|
-
input: {
|
|
969
|
-
[key: string]: string | null | {
|
|
970
|
-
role: string;
|
|
971
|
-
until: string | null;
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
output: {
|
|
975
|
-
changes: {
|
|
976
|
-
[key: string]: "created" | "revoked" | "unchanged" | "updated";
|
|
977
|
-
};
|
|
978
|
-
admitted?: {
|
|
979
|
-
created: boolean;
|
|
980
|
-
role: "admin" | "auditor" | "developer" | "member" | "owner";
|
|
981
|
-
scope: {
|
|
982
|
-
projects: "all" | {
|
|
983
|
-
only: string[];
|
|
984
|
-
} | {
|
|
985
|
-
except: string[];
|
|
986
|
-
};
|
|
987
|
-
environments: "all" | {
|
|
988
|
-
only: string[];
|
|
989
|
-
} | {
|
|
990
|
-
except: string[];
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
generation: number;
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
|
-
};
|
|
997
1140
|
"GET /sessions": {
|
|
998
1141
|
input: undefined;
|
|
999
1142
|
output: {
|
|
@@ -1009,12 +1152,7 @@ type Api = {
|
|
|
1009
1152
|
lastUsedIp: string | null;
|
|
1010
1153
|
current: boolean;
|
|
1011
1154
|
}[];
|
|
1012
|
-
|
|
1013
|
-
};
|
|
1014
|
-
"DELETE /sessions/:id": {
|
|
1015
|
-
input: undefined;
|
|
1016
|
-
output: {
|
|
1017
|
-
revoked: true;
|
|
1155
|
+
more: boolean;
|
|
1018
1156
|
};
|
|
1019
1157
|
};
|
|
1020
1158
|
"GET /identities": {
|
|
@@ -1027,6 +1165,7 @@ type Api = {
|
|
|
1027
1165
|
createdAt: string;
|
|
1028
1166
|
lastSignInAt: string | null;
|
|
1029
1167
|
}[];
|
|
1168
|
+
more: boolean;
|
|
1030
1169
|
};
|
|
1031
1170
|
};
|
|
1032
1171
|
"DELETE /identities/:id": {
|
|
@@ -1108,137 +1247,40 @@ type Api = {
|
|
|
1108
1247
|
redirect: string;
|
|
1109
1248
|
};
|
|
1110
1249
|
};
|
|
1111
|
-
"GET /apps": {
|
|
1112
|
-
input: undefined;
|
|
1113
|
-
output: {
|
|
1114
|
-
apps: {
|
|
1115
|
-
id: string;
|
|
1116
|
-
name: string;
|
|
1117
|
-
host: string | null;
|
|
1118
|
-
registration: "cimd" | "dcr";
|
|
1119
|
-
scopes: ("manage-access" | "read" | "reveal" | "write")[];
|
|
1120
|
-
createdAt: string;
|
|
1121
|
-
lastUsedAt: string | null;
|
|
1122
|
-
lastUsedIp: string | null;
|
|
1123
|
-
expiresAt: string;
|
|
1124
|
-
}[];
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
"DELETE /apps/:id": {
|
|
1128
|
-
input: undefined;
|
|
1129
|
-
output: {
|
|
1130
|
-
disconnected: true;
|
|
1131
|
-
};
|
|
1132
|
-
};
|
|
1133
|
-
"GET /audit": {
|
|
1134
|
-
input: {
|
|
1135
|
-
path?: string;
|
|
1136
|
-
actor?: string;
|
|
1137
|
-
decision?: "allow" | "deny";
|
|
1138
|
-
detail?: "1" | "true";
|
|
1139
|
-
sealed?: "1" | "true";
|
|
1140
|
-
hidden?: "1" | "true";
|
|
1141
|
-
before?: unknown;
|
|
1142
|
-
limit?: unknown;
|
|
1143
|
-
};
|
|
1144
|
-
output: {
|
|
1145
|
-
entries: {
|
|
1146
|
-
seq: number;
|
|
1147
|
-
log: "0.14" | "0.15";
|
|
1148
|
-
forged?: true;
|
|
1149
|
-
author: "app" | "vault";
|
|
1150
|
-
occurredAt: string;
|
|
1151
|
-
actorType: "service" | "system" | "user";
|
|
1152
|
-
actorId: string;
|
|
1153
|
-
action: string;
|
|
1154
|
-
decision: "allow" | "deny";
|
|
1155
|
-
reason: string | null;
|
|
1156
|
-
detail: boolean;
|
|
1157
|
-
subject: string | null;
|
|
1158
|
-
project: string | null;
|
|
1159
|
-
environment: string | null;
|
|
1160
|
-
key: string | null;
|
|
1161
|
-
version: number | null;
|
|
1162
|
-
secrets: null | {
|
|
1163
|
-
key: string | null;
|
|
1164
|
-
version: number | null;
|
|
1165
|
-
}[];
|
|
1166
|
-
operationId: string | null;
|
|
1167
|
-
relatedSeq: number | null;
|
|
1168
|
-
requestId: string | null;
|
|
1169
|
-
run: null | {
|
|
1170
|
-
exchangeSeq: number;
|
|
1171
|
-
log: "0.14" | "0.15";
|
|
1172
|
-
claims: {
|
|
1173
|
-
[key: string]: string | number;
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
token: null | {
|
|
1177
|
-
id: string;
|
|
1178
|
-
label: string;
|
|
1179
|
-
};
|
|
1180
|
-
metadata: {
|
|
1181
|
-
[key: string]: unknown;
|
|
1182
|
-
};
|
|
1183
|
-
}[];
|
|
1184
|
-
more: boolean;
|
|
1185
|
-
next: string | null;
|
|
1186
|
-
hidden?: {
|
|
1187
|
-
action: string;
|
|
1188
|
-
count: number;
|
|
1189
|
-
}[];
|
|
1190
|
-
reads?: {
|
|
1191
|
-
through: string | null;
|
|
1192
|
-
behind: boolean;
|
|
1193
|
-
forged?: true;
|
|
1194
|
-
};
|
|
1195
|
-
readsOmitted?: "path" | "scope";
|
|
1196
|
-
};
|
|
1197
|
-
};
|
|
1198
|
-
"GET /audit/verification": {
|
|
1199
|
-
input: {
|
|
1200
|
-
from?: string;
|
|
1250
|
+
"GET /apps": {
|
|
1251
|
+
input: undefined;
|
|
1252
|
+
output: {
|
|
1253
|
+
apps: {
|
|
1254
|
+
id: string;
|
|
1255
|
+
name: string;
|
|
1256
|
+
host: string | null;
|
|
1257
|
+
registration: "cimd" | "dcr";
|
|
1258
|
+
scopes: ("manage-access" | "read" | "reveal" | "write")[];
|
|
1259
|
+
createdAt: string;
|
|
1260
|
+
lastUsedAt: string | null;
|
|
1261
|
+
lastUsedIp: string | null;
|
|
1262
|
+
expiresAt: string;
|
|
1263
|
+
}[];
|
|
1201
1264
|
};
|
|
1265
|
+
};
|
|
1266
|
+
"DELETE /apps/:id": {
|
|
1267
|
+
input: undefined;
|
|
1202
1268
|
output: {
|
|
1203
|
-
|
|
1204
|
-
through: number | null;
|
|
1205
|
-
entries: number;
|
|
1206
|
-
from: number;
|
|
1207
|
-
remaining: number;
|
|
1208
|
-
next?: string | null;
|
|
1209
|
-
checkpoint: null | {
|
|
1210
|
-
seq: number;
|
|
1211
|
-
signedAt: string;
|
|
1212
|
-
};
|
|
1213
|
-
pending?: number;
|
|
1214
|
-
} | {
|
|
1215
|
-
ok: false;
|
|
1216
|
-
through: number | null;
|
|
1217
|
-
failedAtSeq: number | null;
|
|
1218
|
-
author: "app" | "vault";
|
|
1219
|
-
reason: string;
|
|
1269
|
+
disconnected: true;
|
|
1220
1270
|
};
|
|
1221
1271
|
};
|
|
1222
1272
|
"GET /audit/keys": {
|
|
1223
1273
|
input: undefined;
|
|
1224
1274
|
output: {
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
};
|
|
1229
|
-
vault: {
|
|
1230
|
-
current: {
|
|
1231
|
-
vaultId: string;
|
|
1232
|
-
provider: string;
|
|
1233
|
-
};
|
|
1234
|
-
checks: {
|
|
1235
|
-
seq: number;
|
|
1236
|
-
vaultId: string;
|
|
1237
|
-
provider: string;
|
|
1238
|
-
version: string;
|
|
1239
|
-
wrapped: string;
|
|
1240
|
-
}[];
|
|
1275
|
+
kek: {
|
|
1276
|
+
provider: string;
|
|
1277
|
+
id: string;
|
|
1241
1278
|
};
|
|
1279
|
+
previous: {
|
|
1280
|
+
provider: string;
|
|
1281
|
+
id: string;
|
|
1282
|
+
}[];
|
|
1283
|
+
checks: string[];
|
|
1242
1284
|
};
|
|
1243
1285
|
};
|
|
1244
1286
|
"GET /approvals/:id": {
|
|
@@ -1309,38 +1351,6 @@ type Api = {
|
|
|
1309
1351
|
}[];
|
|
1310
1352
|
};
|
|
1311
1353
|
};
|
|
1312
|
-
"GET /members/:member/access": {
|
|
1313
|
-
input: undefined;
|
|
1314
|
-
output: {
|
|
1315
|
-
member: string;
|
|
1316
|
-
principalType: "service" | "user";
|
|
1317
|
-
principalId: string;
|
|
1318
|
-
status: "active" | "removed" | "tampered";
|
|
1319
|
-
instanceRole: "admin" | "auditor" | "developer" | "member" | "owner";
|
|
1320
|
-
scope: null | {
|
|
1321
|
-
projects: "all" | {
|
|
1322
|
-
only: string[];
|
|
1323
|
-
} | {
|
|
1324
|
-
except: string[];
|
|
1325
|
-
};
|
|
1326
|
-
environments: "all" | {
|
|
1327
|
-
only: string[];
|
|
1328
|
-
} | {
|
|
1329
|
-
except: string[];
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
managed: boolean;
|
|
1333
|
-
grants: {
|
|
1334
|
-
id: string;
|
|
1335
|
-
project: string;
|
|
1336
|
-
environment: string | null;
|
|
1337
|
-
role: string;
|
|
1338
|
-
roleName: string;
|
|
1339
|
-
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1340
|
-
expiresAt: string | null;
|
|
1341
|
-
}[];
|
|
1342
|
-
};
|
|
1343
|
-
};
|
|
1344
1354
|
"PUT /settings": {
|
|
1345
1355
|
input: {
|
|
1346
1356
|
serviceAccounts: {
|
|
@@ -1407,78 +1417,12 @@ type Api = {
|
|
|
1407
1417
|
app: null;
|
|
1408
1418
|
};
|
|
1409
1419
|
};
|
|
1410
|
-
"GET /projects/:project/:environment/version": {
|
|
1411
|
-
input: undefined;
|
|
1412
|
-
output: {
|
|
1413
|
-
version: string;
|
|
1414
|
-
};
|
|
1415
|
-
};
|
|
1416
|
-
"POST /members/:member/bindings/keys": {
|
|
1417
|
-
input: {
|
|
1418
|
-
issuer: string;
|
|
1419
|
-
jwks: {
|
|
1420
|
-
keys: {
|
|
1421
|
-
[key: string]: unknown;
|
|
1422
|
-
}[];
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
output: {
|
|
1426
|
-
issuer: string;
|
|
1427
|
-
jwksUri: string;
|
|
1428
|
-
keys: {
|
|
1429
|
-
kid: string | null;
|
|
1430
|
-
alg: "ES256" | "RS256";
|
|
1431
|
-
thumbprint: string;
|
|
1432
|
-
}[];
|
|
1433
|
-
replaces: string[];
|
|
1434
|
-
withheld: string[];
|
|
1435
|
-
} | {
|
|
1436
|
-
bindings: {
|
|
1437
|
-
id: string;
|
|
1438
|
-
profile: "aws" | "azure" | "cloudflare" | "custom" | "enrollment" | "fly" | "gcp" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab" | "kubernetes" | "vercel";
|
|
1439
|
-
issuer: string;
|
|
1440
|
-
jwksUri: string;
|
|
1441
|
-
keys: null | {
|
|
1442
|
-
kid: string | null;
|
|
1443
|
-
alg: "ES256" | "RS256";
|
|
1444
|
-
thumbprint: string;
|
|
1445
|
-
}[];
|
|
1446
|
-
claims: {
|
|
1447
|
-
[key: string]: string | string[];
|
|
1448
|
-
};
|
|
1449
|
-
scope: null | {
|
|
1450
|
-
[key: string]: string;
|
|
1451
|
-
};
|
|
1452
|
-
policy: null | {
|
|
1453
|
-
sources?: string[];
|
|
1454
|
-
audience?: string;
|
|
1455
|
-
keyAudience?: true;
|
|
1456
|
-
sessionHours?: number;
|
|
1457
|
-
replicas?: number;
|
|
1458
|
-
sessionDays?: number;
|
|
1459
|
-
overlapMinutes?: number;
|
|
1460
|
-
mintedBy?: string;
|
|
1461
|
-
approve?: true;
|
|
1462
|
-
onContention?: "alert";
|
|
1463
|
-
unsignedUploads?: true;
|
|
1464
|
-
reads?: {
|
|
1465
|
-
[key: string]: "*" | string[];
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
label: string | null;
|
|
1469
|
-
createdAt: string;
|
|
1470
|
-
createdBy: string;
|
|
1471
|
-
lastUsedAt: string | null;
|
|
1472
|
-
}[];
|
|
1473
|
-
replaced: string[];
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
1420
|
"GET /personal/:project": {
|
|
1477
1421
|
input: undefined;
|
|
1478
1422
|
output: {
|
|
1479
1423
|
configs: {
|
|
1480
|
-
owner: string;
|
|
1481
1424
|
of: string;
|
|
1425
|
+
owner: string;
|
|
1482
1426
|
slug: string;
|
|
1483
1427
|
keys: string[];
|
|
1484
1428
|
archived: boolean;
|
|
@@ -1486,22 +1430,6 @@ type Api = {
|
|
|
1486
1430
|
}[];
|
|
1487
1431
|
};
|
|
1488
1432
|
};
|
|
1489
|
-
"POST /handles": {
|
|
1490
|
-
input: {
|
|
1491
|
-
label: string;
|
|
1492
|
-
paths: string[];
|
|
1493
|
-
expiresInMinutes?: number;
|
|
1494
|
-
};
|
|
1495
|
-
output: {
|
|
1496
|
-
id: string;
|
|
1497
|
-
token: string;
|
|
1498
|
-
expiresAt: string;
|
|
1499
|
-
scope: {
|
|
1500
|
-
[key: string]: string;
|
|
1501
|
-
};
|
|
1502
|
-
withheld?: string[];
|
|
1503
|
-
};
|
|
1504
|
-
};
|
|
1505
1433
|
"GET /roles": {
|
|
1506
1434
|
input: undefined;
|
|
1507
1435
|
output: {
|
|
@@ -1566,22 +1494,22 @@ type Api = {
|
|
|
1566
1494
|
revision: string;
|
|
1567
1495
|
} | {
|
|
1568
1496
|
role: null | {
|
|
1497
|
+
fixed: boolean;
|
|
1569
1498
|
name: string;
|
|
1570
1499
|
description: string;
|
|
1571
1500
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1572
1501
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1573
|
-
id: string;
|
|
1574
|
-
builtin: boolean;
|
|
1575
|
-
edited: boolean;
|
|
1576
|
-
fixed: boolean;
|
|
1577
1502
|
default: null | {
|
|
1578
1503
|
name: string;
|
|
1579
1504
|
description: string;
|
|
1580
1505
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1581
1506
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1582
1507
|
};
|
|
1508
|
+
id: string;
|
|
1509
|
+
builtin: boolean;
|
|
1510
|
+
edited: boolean;
|
|
1583
1511
|
assignableToEnvironment: boolean;
|
|
1584
|
-
grants: number;
|
|
1512
|
+
grants: number | null;
|
|
1585
1513
|
};
|
|
1586
1514
|
};
|
|
1587
1515
|
};
|
|
@@ -1602,22 +1530,22 @@ type Api = {
|
|
|
1602
1530
|
revision: string;
|
|
1603
1531
|
} | {
|
|
1604
1532
|
role: null | {
|
|
1533
|
+
fixed: boolean;
|
|
1605
1534
|
name: string;
|
|
1606
1535
|
description: string;
|
|
1607
1536
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1608
1537
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1609
|
-
id: string;
|
|
1610
|
-
builtin: boolean;
|
|
1611
|
-
edited: boolean;
|
|
1612
|
-
fixed: boolean;
|
|
1613
1538
|
default: null | {
|
|
1614
1539
|
name: string;
|
|
1615
1540
|
description: string;
|
|
1616
1541
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1617
1542
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1618
1543
|
};
|
|
1544
|
+
id: string;
|
|
1545
|
+
builtin: boolean;
|
|
1546
|
+
edited: boolean;
|
|
1619
1547
|
assignableToEnvironment: boolean;
|
|
1620
|
-
grants: number;
|
|
1548
|
+
grants: number | null;
|
|
1621
1549
|
};
|
|
1622
1550
|
};
|
|
1623
1551
|
};
|
|
@@ -1643,22 +1571,22 @@ type Api = {
|
|
|
1643
1571
|
revision: string;
|
|
1644
1572
|
} | {
|
|
1645
1573
|
role: null | {
|
|
1574
|
+
fixed: boolean;
|
|
1646
1575
|
name: string;
|
|
1647
1576
|
description: string;
|
|
1648
1577
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1649
1578
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1650
|
-
id: string;
|
|
1651
|
-
builtin: boolean;
|
|
1652
|
-
edited: boolean;
|
|
1653
|
-
fixed: boolean;
|
|
1654
1579
|
default: null | {
|
|
1655
1580
|
name: string;
|
|
1656
1581
|
description: string;
|
|
1657
1582
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1658
1583
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1659
1584
|
};
|
|
1585
|
+
id: string;
|
|
1586
|
+
builtin: boolean;
|
|
1587
|
+
edited: boolean;
|
|
1660
1588
|
assignableToEnvironment: boolean;
|
|
1661
|
-
grants: number;
|
|
1589
|
+
grants: number | null;
|
|
1662
1590
|
};
|
|
1663
1591
|
};
|
|
1664
1592
|
};
|
|
@@ -1679,22 +1607,22 @@ type Api = {
|
|
|
1679
1607
|
revision: string;
|
|
1680
1608
|
} | {
|
|
1681
1609
|
role: null | {
|
|
1610
|
+
fixed: boolean;
|
|
1682
1611
|
name: string;
|
|
1683
1612
|
description: string;
|
|
1684
1613
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1685
1614
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1686
|
-
id: string;
|
|
1687
|
-
builtin: boolean;
|
|
1688
|
-
edited: boolean;
|
|
1689
|
-
fixed: boolean;
|
|
1690
1615
|
default: null | {
|
|
1691
1616
|
name: string;
|
|
1692
1617
|
description: string;
|
|
1693
1618
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1694
1619
|
protected: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write")[];
|
|
1695
1620
|
};
|
|
1621
|
+
id: string;
|
|
1622
|
+
builtin: boolean;
|
|
1623
|
+
edited: boolean;
|
|
1696
1624
|
assignableToEnvironment: boolean;
|
|
1697
|
-
grants: number;
|
|
1625
|
+
grants: number | null;
|
|
1698
1626
|
};
|
|
1699
1627
|
};
|
|
1700
1628
|
};
|
|
@@ -1703,82 +1631,17 @@ type Api = {
|
|
|
1703
1631
|
output: never;
|
|
1704
1632
|
};
|
|
1705
1633
|
"POST /members/:member/bindings/:id/enrollments": {
|
|
1706
|
-
input: {
|
|
1707
|
-
[key: string]: never;
|
|
1708
|
-
};
|
|
1709
|
-
output: never;
|
|
1710
|
-
};
|
|
1711
|
-
"POST /members/:member/bindings/:id/enrollments/:enrollment/promote": {
|
|
1712
|
-
input: {
|
|
1713
|
-
now?: boolean;
|
|
1714
|
-
};
|
|
1715
|
-
output: never;
|
|
1716
|
-
};
|
|
1717
|
-
"POST /members/:member/tokens/:id/approve": {
|
|
1718
1634
|
input: undefined;
|
|
1719
1635
|
output: never;
|
|
1720
1636
|
};
|
|
1721
|
-
"
|
|
1637
|
+
"POST /members/:member/bindings/:id/enrollments/:enrollment/promote": {
|
|
1722
1638
|
input: undefined;
|
|
1723
1639
|
output: never;
|
|
1724
1640
|
};
|
|
1725
|
-
"POST /
|
|
1726
|
-
input: {
|
|
1727
|
-
target: string;
|
|
1728
|
-
reason: string;
|
|
1729
|
-
};
|
|
1730
|
-
output: never;
|
|
1731
|
-
};
|
|
1732
|
-
"DELETE /freezes/:target": {
|
|
1641
|
+
"POST /members/:member/tokens/:id/approve": {
|
|
1733
1642
|
input: undefined;
|
|
1734
1643
|
output: never;
|
|
1735
1644
|
};
|
|
1736
|
-
"DELETE /handles/:id": {
|
|
1737
|
-
input: undefined;
|
|
1738
|
-
output: {
|
|
1739
|
-
revoked: true;
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
|
-
"POST /audit/loss": {
|
|
1743
|
-
input: {
|
|
1744
|
-
from: number;
|
|
1745
|
-
to: number;
|
|
1746
|
-
};
|
|
1747
|
-
output: {
|
|
1748
|
-
resumes: number | null;
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
"GET /audit/trees": {
|
|
1752
|
-
input: undefined;
|
|
1753
|
-
output: {
|
|
1754
|
-
kept: false;
|
|
1755
|
-
} | {
|
|
1756
|
-
kept: true;
|
|
1757
|
-
ok: boolean;
|
|
1758
|
-
problems: string[];
|
|
1759
|
-
checkpoint: null | {
|
|
1760
|
-
upto: string;
|
|
1761
|
-
at: number;
|
|
1762
|
-
};
|
|
1763
|
-
unsealed: number;
|
|
1764
|
-
capped: boolean;
|
|
1765
|
-
};
|
|
1766
|
-
};
|
|
1767
|
-
"GET /audit/reads": {
|
|
1768
|
-
input: {
|
|
1769
|
-
from: string;
|
|
1770
|
-
};
|
|
1771
|
-
output: {
|
|
1772
|
-
kept: false;
|
|
1773
|
-
} | {
|
|
1774
|
-
kept: true;
|
|
1775
|
-
ok: boolean;
|
|
1776
|
-
problems: string[];
|
|
1777
|
-
through: string;
|
|
1778
|
-
listed: string;
|
|
1779
|
-
next: string | null;
|
|
1780
|
-
};
|
|
1781
|
-
};
|
|
1782
1645
|
};
|
|
1783
1646
|
type AccessValue = string | null | {
|
|
1784
1647
|
role: string;
|
|
@@ -1824,8 +1687,6 @@ type ApprovalView = {
|
|
|
1824
1687
|
};
|
|
1825
1688
|
type AuditEntryView = {
|
|
1826
1689
|
seq: number;
|
|
1827
|
-
log: "0.14" | "0.15";
|
|
1828
|
-
forged?: true;
|
|
1829
1690
|
author: "app" | "vault";
|
|
1830
1691
|
occurredAt: string;
|
|
1831
1692
|
actorType: "service" | "system" | "user";
|
|
@@ -1848,7 +1709,6 @@ type AuditEntryView = {
|
|
|
1848
1709
|
requestId: string | null;
|
|
1849
1710
|
run: null | {
|
|
1850
1711
|
exchangeSeq: number;
|
|
1851
|
-
log: "0.14" | "0.15";
|
|
1852
1712
|
claims: {
|
|
1853
1713
|
[key: string]: string | number;
|
|
1854
1714
|
};
|
|
@@ -1860,6 +1720,7 @@ type AuditEntryView = {
|
|
|
1860
1720
|
metadata: {
|
|
1861
1721
|
[key: string]: unknown;
|
|
1862
1722
|
};
|
|
1723
|
+
proof: "failed" | "proven" | "unproven";
|
|
1863
1724
|
};
|
|
1864
1725
|
type AuthInfo = {
|
|
1865
1726
|
signin: null | {
|
|
@@ -1981,34 +1842,6 @@ type ConnectedApp = {
|
|
|
1981
1842
|
lastUsedIp: string | null;
|
|
1982
1843
|
expiresAt: string;
|
|
1983
1844
|
};
|
|
1984
|
-
type KeysPlan = {
|
|
1985
|
-
issuer: string;
|
|
1986
|
-
jwksUri: string;
|
|
1987
|
-
keys: {
|
|
1988
|
-
kid: string | null;
|
|
1989
|
-
alg: "ES256" | "RS256";
|
|
1990
|
-
thumbprint: string;
|
|
1991
|
-
}[];
|
|
1992
|
-
replaces: string[];
|
|
1993
|
-
withheld: string[];
|
|
1994
|
-
};
|
|
1995
|
-
type Deletion = {
|
|
1996
|
-
path: string;
|
|
1997
|
-
tombstone: string;
|
|
1998
|
-
environments: string[];
|
|
1999
|
-
keys: number;
|
|
2000
|
-
versions: number;
|
|
2001
|
-
grants: {
|
|
2002
|
-
member: string;
|
|
2003
|
-
place: string;
|
|
2004
|
-
role: string;
|
|
2005
|
-
}[];
|
|
2006
|
-
references: {
|
|
2007
|
-
holder: string;
|
|
2008
|
-
source: string;
|
|
2009
|
-
}[];
|
|
2010
|
-
stranded: string[];
|
|
2011
|
-
};
|
|
2012
1845
|
type Decision = {
|
|
2013
1846
|
status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
|
|
2014
1847
|
outcome: {
|
|
@@ -2026,6 +1859,23 @@ type Decision = {
|
|
|
2026
1859
|
warn?: true;
|
|
2027
1860
|
}[];
|
|
2028
1861
|
};
|
|
1862
|
+
type Deletion = {
|
|
1863
|
+
path: string;
|
|
1864
|
+
tombstone: string;
|
|
1865
|
+
environments: string[];
|
|
1866
|
+
keys: number;
|
|
1867
|
+
versions: number;
|
|
1868
|
+
grants: {
|
|
1869
|
+
member: string;
|
|
1870
|
+
place: string;
|
|
1871
|
+
role: string;
|
|
1872
|
+
}[];
|
|
1873
|
+
references: {
|
|
1874
|
+
holder: string;
|
|
1875
|
+
source: string;
|
|
1876
|
+
}[];
|
|
1877
|
+
stranded: string[];
|
|
1878
|
+
};
|
|
2029
1879
|
type DeletionResult = {
|
|
2030
1880
|
dryRun: boolean;
|
|
2031
1881
|
deletion: {
|
|
@@ -2046,24 +1896,12 @@ type DeletionResult = {
|
|
|
2046
1896
|
stranded: string[];
|
|
2047
1897
|
};
|
|
2048
1898
|
};
|
|
2049
|
-
type WorkloadIds = {
|
|
2050
|
-
github: string;
|
|
2051
|
-
repositoryId: string;
|
|
2052
|
-
ownerId: string;
|
|
2053
|
-
} | {
|
|
2054
|
-
github: string;
|
|
2055
|
-
ownerId: string;
|
|
2056
|
-
} | {
|
|
2057
|
-
gitlab: string;
|
|
2058
|
-
projectId: string;
|
|
2059
|
-
namespaceId: string;
|
|
2060
|
-
};
|
|
2061
1899
|
type DismissedKey = {
|
|
1900
|
+
dismissedBy: string;
|
|
1901
|
+
dismissedAt: string;
|
|
2062
1902
|
key: string;
|
|
2063
1903
|
in: string[];
|
|
2064
1904
|
folder: string | null;
|
|
2065
|
-
dismissedBy: string;
|
|
2066
|
-
dismissedAt: string;
|
|
2067
1905
|
};
|
|
2068
1906
|
type DryRunOutcome = "added" | "archived" | "changed" | "unchanged";
|
|
2069
1907
|
type DryRunResult = {
|
|
@@ -2072,6 +1910,12 @@ type DryRunResult = {
|
|
|
2072
1910
|
[key: string]: "added" | "archived" | "changed" | "unchanged";
|
|
2073
1911
|
};
|
|
2074
1912
|
};
|
|
1913
|
+
type EnvironmentView = {
|
|
1914
|
+
slug: string;
|
|
1915
|
+
name: string;
|
|
1916
|
+
archivedAt: string | null;
|
|
1917
|
+
protected: boolean;
|
|
1918
|
+
};
|
|
2075
1919
|
type IdentityRow = {
|
|
2076
1920
|
id: string;
|
|
2077
1921
|
provider: string;
|
|
@@ -2079,11 +1923,47 @@ type IdentityRow = {
|
|
|
2079
1923
|
createdAt: string;
|
|
2080
1924
|
lastSignInAt: string | null;
|
|
2081
1925
|
};
|
|
1926
|
+
type ImpactLine = {
|
|
1927
|
+
change: "narrows" | "widens";
|
|
1928
|
+
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
1929
|
+
protected: boolean;
|
|
1930
|
+
people: number;
|
|
1931
|
+
services: number;
|
|
1932
|
+
environments: number;
|
|
1933
|
+
projects: number;
|
|
1934
|
+
examples: string[];
|
|
1935
|
+
};
|
|
2082
1936
|
type InheritResult = {
|
|
1937
|
+
inherit?: boolean;
|
|
1938
|
+
folder?: string | null;
|
|
1939
|
+
archived?: boolean;
|
|
1940
|
+
operationId: string | null;
|
|
2083
1941
|
key: string;
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
1942
|
+
};
|
|
1943
|
+
type KeysPlan = {
|
|
1944
|
+
issuer: string;
|
|
1945
|
+
jwksUri: string;
|
|
1946
|
+
keys: {
|
|
1947
|
+
kid: string | null;
|
|
1948
|
+
alg: "ES256" | "RS256";
|
|
1949
|
+
thumbprint: string;
|
|
1950
|
+
}[];
|
|
1951
|
+
replaces: string[];
|
|
1952
|
+
withheld: string[];
|
|
1953
|
+
};
|
|
1954
|
+
type ListedReference = {
|
|
1955
|
+
readers: null | string[];
|
|
1956
|
+
canBreak: boolean;
|
|
1957
|
+
holderArchived: boolean;
|
|
1958
|
+
id: string;
|
|
1959
|
+
holder: string;
|
|
1960
|
+
source: string;
|
|
1961
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
1962
|
+
version: number | null;
|
|
1963
|
+
createdBy: string | null;
|
|
1964
|
+
createdAt: string | null;
|
|
1965
|
+
endedBy: null;
|
|
1966
|
+
endedAt: null;
|
|
2087
1967
|
};
|
|
2088
1968
|
type Me = {
|
|
2089
1969
|
principal: {
|
|
@@ -2133,7 +2013,6 @@ type Me = {
|
|
|
2133
2013
|
};
|
|
2134
2014
|
};
|
|
2135
2015
|
credentialExpiresAt: string | null;
|
|
2136
|
-
credentialId: string | null;
|
|
2137
2016
|
environments: {
|
|
2138
2017
|
project: string;
|
|
2139
2018
|
environment: string;
|
|
@@ -2241,12 +2120,7 @@ type OffboardingReport = {
|
|
|
2241
2120
|
at: string;
|
|
2242
2121
|
}[];
|
|
2243
2122
|
rotated: number;
|
|
2244
|
-
|
|
2245
|
-
through: string | null;
|
|
2246
|
-
behind: boolean;
|
|
2247
|
-
forged?: true;
|
|
2248
|
-
};
|
|
2249
|
-
issuedTokens: {
|
|
2123
|
+
issuedTokens: null | {
|
|
2250
2124
|
id: string;
|
|
2251
2125
|
service: string;
|
|
2252
2126
|
label: string | null;
|
|
@@ -2257,7 +2131,7 @@ type OffboardingReport = {
|
|
|
2257
2131
|
[key: string]: string;
|
|
2258
2132
|
};
|
|
2259
2133
|
}[];
|
|
2260
|
-
apps: {
|
|
2134
|
+
apps: null | {
|
|
2261
2135
|
id: string;
|
|
2262
2136
|
name: string;
|
|
2263
2137
|
host: string | null;
|
|
@@ -2268,7 +2142,7 @@ type OffboardingReport = {
|
|
|
2268
2142
|
lastUsedIp: string | null;
|
|
2269
2143
|
expiresAt: string;
|
|
2270
2144
|
}[];
|
|
2271
|
-
personalTokens: {
|
|
2145
|
+
personalTokens: null | {
|
|
2272
2146
|
id: string;
|
|
2273
2147
|
label: string | null;
|
|
2274
2148
|
hint: string;
|
|
@@ -2284,17 +2158,22 @@ type OffboardingReport = {
|
|
|
2284
2158
|
bindingId: string | null;
|
|
2285
2159
|
};
|
|
2286
2160
|
}[];
|
|
2287
|
-
references: {
|
|
2161
|
+
references: null | {
|
|
2162
|
+
version: number | null;
|
|
2163
|
+
source: string;
|
|
2288
2164
|
id: string;
|
|
2165
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2289
2166
|
holder: string;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
version: number | null;
|
|
2167
|
+
endedBy: null;
|
|
2168
|
+
endedAt: null;
|
|
2293
2169
|
createdBy: string;
|
|
2294
2170
|
createdAt: string;
|
|
2295
|
-
endedBy: string | null;
|
|
2296
|
-
endedAt: string | null;
|
|
2297
2171
|
}[];
|
|
2172
|
+
totals: {
|
|
2173
|
+
issuedTokens: number | null;
|
|
2174
|
+
personalTokens: number | null;
|
|
2175
|
+
references: number | null;
|
|
2176
|
+
};
|
|
2298
2177
|
personal: {
|
|
2299
2178
|
project: string;
|
|
2300
2179
|
of: string;
|
|
@@ -2302,27 +2181,13 @@ type OffboardingReport = {
|
|
|
2302
2181
|
}[];
|
|
2303
2182
|
};
|
|
2304
2183
|
type PersonalConfig = {
|
|
2305
|
-
owner: string;
|
|
2306
2184
|
of: string;
|
|
2185
|
+
owner: string;
|
|
2307
2186
|
slug: string;
|
|
2308
2187
|
keys: string[];
|
|
2309
2188
|
archived: boolean;
|
|
2310
2189
|
createdAt: string;
|
|
2311
2190
|
};
|
|
2312
|
-
type ListedReference = {
|
|
2313
|
-
id: string;
|
|
2314
|
-
holder: string;
|
|
2315
|
-
source: string;
|
|
2316
|
-
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2317
|
-
version: number | null;
|
|
2318
|
-
createdBy: string;
|
|
2319
|
-
createdAt: string;
|
|
2320
|
-
endedBy: string | null;
|
|
2321
|
-
endedAt: string | null;
|
|
2322
|
-
readers: null | string[];
|
|
2323
|
-
canBreak: boolean;
|
|
2324
|
-
holderArchived: boolean;
|
|
2325
|
-
};
|
|
2326
2191
|
type ProjectSummary = {
|
|
2327
2192
|
slug: string;
|
|
2328
2193
|
name: string;
|
|
@@ -2348,28 +2213,18 @@ type ReferenceView = {
|
|
|
2348
2213
|
id: string;
|
|
2349
2214
|
holder: string;
|
|
2350
2215
|
source: string;
|
|
2351
|
-
state: "broken" | "live" | "
|
|
2216
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2352
2217
|
version: number | null;
|
|
2353
|
-
createdBy: string;
|
|
2354
|
-
createdAt: string;
|
|
2355
|
-
endedBy:
|
|
2356
|
-
endedAt:
|
|
2218
|
+
createdBy: string | null;
|
|
2219
|
+
createdAt: string | null;
|
|
2220
|
+
endedBy: null;
|
|
2221
|
+
endedAt: null;
|
|
2357
2222
|
};
|
|
2358
2223
|
type RemovedMember = {
|
|
2359
2224
|
principalType: "service" | "user";
|
|
2360
2225
|
principalId: string;
|
|
2361
2226
|
toRotate: number;
|
|
2362
2227
|
};
|
|
2363
|
-
type ImpactLine = {
|
|
2364
|
-
change: "narrows" | "widens";
|
|
2365
|
-
permission: "audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.use" | "secret.write";
|
|
2366
|
-
protected: boolean;
|
|
2367
|
-
people: number;
|
|
2368
|
-
services: number;
|
|
2369
|
-
environments: number;
|
|
2370
|
-
projects: number;
|
|
2371
|
-
examples: string[];
|
|
2372
|
-
};
|
|
2373
2228
|
type RoleImpact = {
|
|
2374
2229
|
impact: {
|
|
2375
2230
|
change: "narrows" | "widens";
|
|
@@ -2441,32 +2296,28 @@ type RolesView = {
|
|
|
2441
2296
|
}[];
|
|
2442
2297
|
editable: boolean;
|
|
2443
2298
|
};
|
|
2444
|
-
type EnvironmentView = {
|
|
2445
|
-
slug: string;
|
|
2446
|
-
name: string;
|
|
2447
|
-
archivedAt: string | null;
|
|
2448
|
-
protected: boolean;
|
|
2449
|
-
};
|
|
2450
2299
|
type SecretKey = {
|
|
2451
2300
|
key: string;
|
|
2452
2301
|
reference: null | {
|
|
2453
2302
|
id: string;
|
|
2454
2303
|
holder: string;
|
|
2455
2304
|
source: string;
|
|
2456
|
-
state: "broken" | "live" | "
|
|
2305
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2457
2306
|
version: number | null;
|
|
2458
|
-
createdBy: string;
|
|
2459
|
-
createdAt: string;
|
|
2460
|
-
endedBy:
|
|
2461
|
-
endedAt:
|
|
2307
|
+
createdBy: string | null;
|
|
2308
|
+
createdAt: string | null;
|
|
2309
|
+
endedBy: null;
|
|
2310
|
+
endedAt: null;
|
|
2311
|
+
sourceId: string;
|
|
2462
2312
|
canOpenSource: boolean;
|
|
2463
2313
|
};
|
|
2464
2314
|
folder: string | null;
|
|
2465
2315
|
archived: boolean;
|
|
2466
2316
|
version: number | null;
|
|
2317
|
+
versionId: string | null;
|
|
2318
|
+
secret: string | null;
|
|
2467
2319
|
updatedAt: string | null;
|
|
2468
2320
|
updatedBy: string | null;
|
|
2469
|
-
versionId: string | null;
|
|
2470
2321
|
generated: null | {
|
|
2471
2322
|
recipe: string;
|
|
2472
2323
|
pair?: {
|
|
@@ -2508,7 +2359,7 @@ type SessionRow = {
|
|
|
2508
2359
|
current: boolean;
|
|
2509
2360
|
};
|
|
2510
2361
|
type SetResult = {
|
|
2511
|
-
operationId: string;
|
|
2362
|
+
operationId: string | null;
|
|
2512
2363
|
keys: {
|
|
2513
2364
|
[key: string]: {
|
|
2514
2365
|
version: number;
|
|
@@ -2542,6 +2393,18 @@ type TokenRow = {
|
|
|
2542
2393
|
bindingId: string | null;
|
|
2543
2394
|
};
|
|
2544
2395
|
};
|
|
2396
|
+
type WorkloadIds = {
|
|
2397
|
+
github: string;
|
|
2398
|
+
repositoryId: string;
|
|
2399
|
+
ownerId: string;
|
|
2400
|
+
} | {
|
|
2401
|
+
github: string;
|
|
2402
|
+
ownerId: string;
|
|
2403
|
+
} | {
|
|
2404
|
+
gitlab: string;
|
|
2405
|
+
projectId: string;
|
|
2406
|
+
namespaceId: string;
|
|
2407
|
+
};
|
|
2545
2408
|
//#endregion
|
|
2546
2409
|
//#region src/age.d.ts
|
|
2547
2410
|
/**
|
|
@@ -2556,17 +2419,6 @@ declare function ageInDays(entry: Pick<SecretKey, 'updatedAt'>, now?: number): n
|
|
|
2556
2419
|
*/
|
|
2557
2420
|
declare function olderThan(entry: Pick<SecretKey, 'archived' | 'updatedAt'>, days: number, now?: number): boolean;
|
|
2558
2421
|
//#endregion
|
|
2559
|
-
//#region src/audit.d.ts
|
|
2560
|
-
/** How the audit log's entries are said, to people: by the pages and the CLI alike. */
|
|
2561
|
-
/**
|
|
2562
|
-
* The CI run an entry was written for, as its issuer stated it at the
|
|
2563
|
-
* exchange: `acme/api run 7001 at 3f2a9c1`, a GitLab pipeline, or the
|
|
2564
|
-
* token's subject. Null for an entry no trust binding's credential wrote.
|
|
2565
|
-
*/
|
|
2566
|
-
declare function runLabel(run: {
|
|
2567
|
-
claims: Record<string, string | number>;
|
|
2568
|
-
} | null): string | null;
|
|
2569
|
-
//#endregion
|
|
2570
2422
|
//#region src/folders.d.ts
|
|
2571
2423
|
/**
|
|
2572
2424
|
* Rows grouped by folder, as every list shows them: those in no folder
|
|
@@ -2597,6 +2449,29 @@ declare function apiMember(member: string): string;
|
|
|
2597
2449
|
/** A service account's name alone, from any of its forms: `deploy`, `service:deploy` or `token:deploy`. */
|
|
2598
2450
|
declare function serviceName(member: string): string;
|
|
2599
2451
|
//#endregion
|
|
2452
|
+
//#region src/proofs.d.ts
|
|
2453
|
+
type Page = Api['GET /audit']['output'];
|
|
2454
|
+
type ProofJudgment = {
|
|
2455
|
+
/** The vault's head the page was proven against; none stands before the signer's first batch. */
|
|
2456
|
+
head: Page['head'];
|
|
2457
|
+
/** Entries the head numbers, which a page waits for: a batch signed between the head's read and the log's can put every one past it. */
|
|
2458
|
+
numbered: number;
|
|
2459
|
+
proven: number;
|
|
2460
|
+
/** Within the head and not what it signed. */
|
|
2461
|
+
failed: AuditEntryView[];
|
|
2462
|
+
/** Neither failed nor as the head places it: unproven though the head numbers it, or proven past it. The signer signs in order, so the head numbers the log's first `size` entries. */
|
|
2463
|
+
misplaced: AuditEntryView[];
|
|
2464
|
+
/** What the page's stretch lacks, by the trees' counts: null when it cannot say, on a page that is not of the whole log, or with no head. */
|
|
2465
|
+
missing: Page['holes'];
|
|
2466
|
+
/**
|
|
2467
|
+
* A page to ask again before judging it, as a race between the head's read and the log's can leave it, honestly:
|
|
2468
|
+
* a batch signed in between puts every listed entry past the head, and a pruning committed in between leaves the
|
|
2469
|
+
* older head counting uses it removed, a stretch lacking aging entries alone. A fresh page past the race says neither.
|
|
2470
|
+
*/
|
|
2471
|
+
racing: boolean;
|
|
2472
|
+
};
|
|
2473
|
+
declare function judgeProofs(page: Page): ProofJudgment;
|
|
2474
|
+
//#endregion
|
|
2600
2475
|
//#region src/reach.d.ts
|
|
2601
2476
|
/**
|
|
2602
2477
|
* Why an instance could not be reached, from what `fetch` threw. Node's
|
|
@@ -2639,9 +2514,7 @@ declare class CoffreError extends Error {
|
|
|
2639
2514
|
readonly code: string;
|
|
2640
2515
|
/** The vault's own code when it refused: `no_grant`, `removed`, `bulk_limit`, ... */
|
|
2641
2516
|
readonly reason: string | undefined;
|
|
2642
|
-
|
|
2643
|
-
readonly retryAfter: string | undefined;
|
|
2644
|
-
constructor(status: number, code: string, message: string, reason?: string, retryAfter?: string);
|
|
2517
|
+
constructor(status: number, code: string, message: string, reason?: string);
|
|
2645
2518
|
}
|
|
2646
2519
|
type Args<K extends RouteKey> = RouteInput<K> extends undefined ? [params: Params<K>, input?: undefined] : Partial<RouteInput<K>> extends RouteInput<K> ? [params: Params<K>, input?: RouteInput<K>] : [params: Params<K>, input: RouteInput<K>];
|
|
2647
2520
|
/** A role's change confirmed: an instance role's, and the `revision` of the policy its preview answered with. */
|
|
@@ -2702,7 +2575,6 @@ declare function createClient(options: ClientOptions): {
|
|
|
2702
2575
|
};
|
|
2703
2576
|
};
|
|
2704
2577
|
credentialExpiresAt: string | null;
|
|
2705
|
-
credentialId: string | null;
|
|
2706
2578
|
environments: {
|
|
2707
2579
|
project: string;
|
|
2708
2580
|
environment: string;
|
|
@@ -2786,10 +2658,10 @@ declare function createClient(options: ClientOptions): {
|
|
|
2786
2658
|
};
|
|
2787
2659
|
created: boolean;
|
|
2788
2660
|
forked: null | {
|
|
2789
|
-
from: string;
|
|
2790
2661
|
keys: number;
|
|
2791
2662
|
references: number;
|
|
2792
2663
|
copied: string[];
|
|
2664
|
+
from: string;
|
|
2793
2665
|
inherits: boolean;
|
|
2794
2666
|
};
|
|
2795
2667
|
}>;
|
|
@@ -2845,18 +2717,18 @@ declare function createClient(options: ClientOptions): {
|
|
|
2845
2717
|
folder: string | null;
|
|
2846
2718
|
}[];
|
|
2847
2719
|
dismissed: {
|
|
2720
|
+
dismissedBy: string;
|
|
2721
|
+
dismissedAt: string;
|
|
2848
2722
|
key: string;
|
|
2849
2723
|
in: string[];
|
|
2850
2724
|
folder: string | null;
|
|
2851
|
-
dismissedBy: string;
|
|
2852
|
-
dismissedAt: string;
|
|
2853
2725
|
}[];
|
|
2854
2726
|
}>;
|
|
2855
2727
|
/** A project's personal configs, for whoever manages its environments: whose, of what, and their key names. */
|
|
2856
2728
|
personal: (project: string) => Promise<{
|
|
2857
2729
|
configs: {
|
|
2858
|
-
owner: string;
|
|
2859
2730
|
of: string;
|
|
2731
|
+
owner: string;
|
|
2860
2732
|
slug: string;
|
|
2861
2733
|
keys: string[];
|
|
2862
2734
|
archived: boolean;
|
|
@@ -2873,7 +2745,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
2873
2745
|
}>;
|
|
2874
2746
|
/** Dismiss missing keys (`true`) or restore them (`null`). */
|
|
2875
2747
|
dismiss: (path: string, patch: RouteInput<"PATCH /projects/:project/:environment/dismissals">) => Promise<{
|
|
2876
|
-
operationId: string;
|
|
2748
|
+
operationId: string | null;
|
|
2877
2749
|
keys: {
|
|
2878
2750
|
[key: string]: "dismissed" | "restored" | "unchanged";
|
|
2879
2751
|
};
|
|
@@ -2889,20 +2761,22 @@ declare function createClient(options: ClientOptions): {
|
|
|
2889
2761
|
id: string;
|
|
2890
2762
|
holder: string;
|
|
2891
2763
|
source: string;
|
|
2892
|
-
state: "broken" | "live" | "
|
|
2764
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2893
2765
|
version: number | null;
|
|
2894
|
-
createdBy: string;
|
|
2895
|
-
createdAt: string;
|
|
2896
|
-
endedBy:
|
|
2897
|
-
endedAt:
|
|
2766
|
+
createdBy: string | null;
|
|
2767
|
+
createdAt: string | null;
|
|
2768
|
+
endedBy: null;
|
|
2769
|
+
endedAt: null;
|
|
2770
|
+
sourceId: string;
|
|
2898
2771
|
canOpenSource: boolean;
|
|
2899
2772
|
};
|
|
2900
2773
|
folder: string | null;
|
|
2901
2774
|
archived: boolean;
|
|
2902
2775
|
version: number | null;
|
|
2776
|
+
versionId: string | null;
|
|
2777
|
+
secret: string | null;
|
|
2903
2778
|
updatedAt: string | null;
|
|
2904
2779
|
updatedBy: string | null;
|
|
2905
|
-
versionId: string | null;
|
|
2906
2780
|
generated: null | {
|
|
2907
2781
|
recipe: string;
|
|
2908
2782
|
pair?: {
|
|
@@ -2933,10 +2807,16 @@ declare function createClient(options: ClientOptions): {
|
|
|
2933
2807
|
}>;
|
|
2934
2808
|
/** Decrypts one secret, or every secret in an environment, or, `keys` named, those of it only. Logged in your name. */
|
|
2935
2809
|
reveal: (path: string, keys?: string[]) => Promise<{
|
|
2936
|
-
operationId: string;
|
|
2810
|
+
operationId: string | null;
|
|
2937
2811
|
values: {
|
|
2938
2812
|
[key: string]: string;
|
|
2939
2813
|
};
|
|
2814
|
+
versions: {
|
|
2815
|
+
[key: string]: number;
|
|
2816
|
+
};
|
|
2817
|
+
secrets: {
|
|
2818
|
+
[key: string]: string;
|
|
2819
|
+
};
|
|
2940
2820
|
sensitive: string[];
|
|
2941
2821
|
useOnly: string[];
|
|
2942
2822
|
version: string | null;
|
|
@@ -2962,27 +2842,40 @@ declare function createClient(options: ClientOptions): {
|
|
|
2962
2842
|
plain: boolean;
|
|
2963
2843
|
sensitivity: "plain" | "secret" | "sensitive";
|
|
2964
2844
|
}[];
|
|
2845
|
+
more: boolean;
|
|
2965
2846
|
}>;
|
|
2966
2847
|
/** A new version holding the old one's value. */
|
|
2967
2848
|
restore: (path: string, version: number) => Promise<{
|
|
2849
|
+
operationId: string | null;
|
|
2968
2850
|
key: string;
|
|
2969
2851
|
version: number;
|
|
2852
|
+
sensitivity: "plain" | "secret" | "sensitive";
|
|
2970
2853
|
}>;
|
|
2971
2854
|
rename: (path: string, key: string) => Promise<{
|
|
2855
|
+
inherit?: boolean;
|
|
2856
|
+
folder?: string | null;
|
|
2857
|
+
archived?: boolean;
|
|
2858
|
+
operationId: string | null;
|
|
2972
2859
|
key: string;
|
|
2973
|
-
archived: boolean;
|
|
2974
|
-
folder: string | null;
|
|
2975
2860
|
}>;
|
|
2976
2861
|
update: (path: string, patch: RouteInput<"PATCH /secrets/:project/:environment/:key">) => Promise<{
|
|
2862
|
+
inherit?: boolean;
|
|
2863
|
+
folder?: string | null;
|
|
2864
|
+
archived?: boolean;
|
|
2865
|
+
operationId: string | null;
|
|
2977
2866
|
key: string;
|
|
2978
|
-
archived: boolean;
|
|
2979
|
-
folder: string | null;
|
|
2980
2867
|
}>;
|
|
2981
2868
|
/**
|
|
2982
2869
|
* In a fork, a key back to its parent's value (`true`), its own kept,
|
|
2983
|
-
* or its own served again (`false`);
|
|
2870
|
+
* or its own served again (`false`); the answer says which, `inherit`.
|
|
2984
2871
|
*/
|
|
2985
|
-
inherit: (path: string, inherit: boolean) => Promise<
|
|
2872
|
+
inherit: (path: string, inherit: boolean) => Promise<{
|
|
2873
|
+
inherit?: boolean;
|
|
2874
|
+
folder?: string | null;
|
|
2875
|
+
archived?: boolean;
|
|
2876
|
+
operationId: string | null;
|
|
2877
|
+
key: string;
|
|
2878
|
+
}>;
|
|
2986
2879
|
};
|
|
2987
2880
|
/**
|
|
2988
2881
|
* References: secrets read through others (docs/design/environments.md).
|
|
@@ -2992,32 +2885,27 @@ declare function createClient(options: ClientOptions): {
|
|
|
2992
2885
|
/** The live references into and out of a place, `market`, `market/prod` or `market/prod/KEY`, and who reads through them. */
|
|
2993
2886
|
list: (path: string) => Promise<{
|
|
2994
2887
|
references: {
|
|
2888
|
+
readers: null | string[];
|
|
2889
|
+
canBreak: boolean;
|
|
2890
|
+
holderArchived: boolean;
|
|
2995
2891
|
id: string;
|
|
2996
2892
|
holder: string;
|
|
2997
2893
|
source: string;
|
|
2998
|
-
state: "broken" | "live" | "
|
|
2894
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
2999
2895
|
version: number | null;
|
|
3000
|
-
createdBy: string;
|
|
3001
|
-
createdAt: string;
|
|
3002
|
-
endedBy:
|
|
3003
|
-
endedAt:
|
|
3004
|
-
readers: null | string[];
|
|
3005
|
-
canBreak: boolean;
|
|
3006
|
-
holderArchived: boolean;
|
|
2896
|
+
createdBy: string | null;
|
|
2897
|
+
createdAt: string | null;
|
|
2898
|
+
endedBy: null;
|
|
2899
|
+
endedAt: null;
|
|
3007
2900
|
}[];
|
|
3008
2901
|
}>;
|
|
3009
2902
|
/** Break the reference a secret is: its readers stop reading the source through it. */
|
|
3010
2903
|
break: (path: string) => Promise<{
|
|
2904
|
+
operationId: string | null;
|
|
3011
2905
|
reference: {
|
|
3012
|
-
id: string;
|
|
3013
2906
|
holder: string;
|
|
3014
2907
|
source: string;
|
|
3015
|
-
state: "broken"
|
|
3016
|
-
version: number | null;
|
|
3017
|
-
createdBy: string;
|
|
3018
|
-
createdAt: string;
|
|
3019
|
-
endedBy: string | null;
|
|
3020
|
-
endedAt: string | null;
|
|
2908
|
+
state: "broken";
|
|
3021
2909
|
};
|
|
3022
2910
|
}>;
|
|
3023
2911
|
};
|
|
@@ -3060,11 +2948,6 @@ declare function createClient(options: ClientOptions): {
|
|
|
3060
2948
|
principalId: string;
|
|
3061
2949
|
toRotate: number;
|
|
3062
2950
|
}[];
|
|
3063
|
-
reads?: {
|
|
3064
|
-
through: string | null;
|
|
3065
|
-
behind: boolean;
|
|
3066
|
-
forged?: true;
|
|
3067
|
-
};
|
|
3068
2951
|
}>;
|
|
3069
2952
|
/** What they hold, and what to rotate if they leave. */
|
|
3070
2953
|
get: (member: string) => Promise<{
|
|
@@ -3103,12 +2986,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3103
2986
|
at: string;
|
|
3104
2987
|
}[];
|
|
3105
2988
|
rotated: number;
|
|
3106
|
-
|
|
3107
|
-
through: string | null;
|
|
3108
|
-
behind: boolean;
|
|
3109
|
-
forged?: true;
|
|
3110
|
-
};
|
|
3111
|
-
issuedTokens: {
|
|
2989
|
+
issuedTokens: null | {
|
|
3112
2990
|
id: string;
|
|
3113
2991
|
service: string;
|
|
3114
2992
|
label: string | null;
|
|
@@ -3119,7 +2997,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3119
2997
|
[key: string]: string;
|
|
3120
2998
|
};
|
|
3121
2999
|
}[];
|
|
3122
|
-
apps: {
|
|
3000
|
+
apps: null | {
|
|
3123
3001
|
id: string;
|
|
3124
3002
|
name: string;
|
|
3125
3003
|
host: string | null;
|
|
@@ -3130,7 +3008,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3130
3008
|
lastUsedIp: string | null;
|
|
3131
3009
|
expiresAt: string;
|
|
3132
3010
|
}[];
|
|
3133
|
-
personalTokens: {
|
|
3011
|
+
personalTokens: null | {
|
|
3134
3012
|
id: string;
|
|
3135
3013
|
label: string | null;
|
|
3136
3014
|
hint: string;
|
|
@@ -3146,17 +3024,22 @@ declare function createClient(options: ClientOptions): {
|
|
|
3146
3024
|
bindingId: string | null;
|
|
3147
3025
|
};
|
|
3148
3026
|
}[];
|
|
3149
|
-
references: {
|
|
3027
|
+
references: null | {
|
|
3028
|
+
version: number | null;
|
|
3029
|
+
source: string;
|
|
3150
3030
|
id: string;
|
|
3031
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
3151
3032
|
holder: string;
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
version: number | null;
|
|
3033
|
+
endedBy: null;
|
|
3034
|
+
endedAt: null;
|
|
3155
3035
|
createdBy: string;
|
|
3156
3036
|
createdAt: string;
|
|
3157
|
-
endedBy: string | null;
|
|
3158
|
-
endedAt: string | null;
|
|
3159
3037
|
}[];
|
|
3038
|
+
totals: {
|
|
3039
|
+
issuedTokens: number | null;
|
|
3040
|
+
personalTokens: number | null;
|
|
3041
|
+
references: number | null;
|
|
3042
|
+
};
|
|
3160
3043
|
personal: {
|
|
3161
3044
|
project: string;
|
|
3162
3045
|
of: string;
|
|
@@ -3258,12 +3141,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3258
3141
|
at: string;
|
|
3259
3142
|
}[];
|
|
3260
3143
|
rotated: number;
|
|
3261
|
-
|
|
3262
|
-
through: string | null;
|
|
3263
|
-
behind: boolean;
|
|
3264
|
-
forged?: true;
|
|
3265
|
-
};
|
|
3266
|
-
issuedTokens: {
|
|
3144
|
+
issuedTokens: null | {
|
|
3267
3145
|
id: string;
|
|
3268
3146
|
service: string;
|
|
3269
3147
|
label: string | null;
|
|
@@ -3274,7 +3152,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3274
3152
|
[key: string]: string;
|
|
3275
3153
|
};
|
|
3276
3154
|
}[];
|
|
3277
|
-
apps: {
|
|
3155
|
+
apps: null | {
|
|
3278
3156
|
id: string;
|
|
3279
3157
|
name: string;
|
|
3280
3158
|
host: string | null;
|
|
@@ -3285,7 +3163,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3285
3163
|
lastUsedIp: string | null;
|
|
3286
3164
|
expiresAt: string;
|
|
3287
3165
|
}[];
|
|
3288
|
-
personalTokens: {
|
|
3166
|
+
personalTokens: null | {
|
|
3289
3167
|
id: string;
|
|
3290
3168
|
label: string | null;
|
|
3291
3169
|
hint: string;
|
|
@@ -3301,17 +3179,22 @@ declare function createClient(options: ClientOptions): {
|
|
|
3301
3179
|
bindingId: string | null;
|
|
3302
3180
|
};
|
|
3303
3181
|
}[];
|
|
3304
|
-
references: {
|
|
3182
|
+
references: null | {
|
|
3183
|
+
version: number | null;
|
|
3184
|
+
source: string;
|
|
3305
3185
|
id: string;
|
|
3186
|
+
state: "broken" | "live" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
3306
3187
|
holder: string;
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
version: number | null;
|
|
3188
|
+
endedBy: null;
|
|
3189
|
+
endedAt: null;
|
|
3310
3190
|
createdBy: string;
|
|
3311
3191
|
createdAt: string;
|
|
3312
|
-
endedBy: string | null;
|
|
3313
|
-
endedAt: string | null;
|
|
3314
3192
|
}[];
|
|
3193
|
+
totals: {
|
|
3194
|
+
issuedTokens: number | null;
|
|
3195
|
+
personalTokens: number | null;
|
|
3196
|
+
references: number | null;
|
|
3197
|
+
};
|
|
3315
3198
|
personal: {
|
|
3316
3199
|
project: string;
|
|
3317
3200
|
of: string;
|
|
@@ -3398,12 +3281,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3398
3281
|
keyAudience?: true;
|
|
3399
3282
|
sessionHours?: number;
|
|
3400
3283
|
replicas?: number;
|
|
3401
|
-
sessionDays? /**
|
|
3402
|
-
* The instance's roles, in two columns, an environment's that is not
|
|
3403
|
-
* protected and one's that is (docs/design/roles.md). Any member lists
|
|
3404
|
-
* them; an Owner of the whole instance edits them. `instance` is about
|
|
3405
|
-
* instance roles, a person's across every project in their scope.
|
|
3406
|
-
*/ : number;
|
|
3284
|
+
sessionDays? /** Delete an archived environment for good, as a project is. Owners only. */ : number;
|
|
3407
3285
|
overlapMinutes?: number;
|
|
3408
3286
|
mintedBy?: string;
|
|
3409
3287
|
approve?: true;
|
|
@@ -3421,17 +3299,15 @@ declare function createClient(options: ClientOptions): {
|
|
|
3421
3299
|
}>;
|
|
3422
3300
|
/** The binding as it would be saved, the keys its issuer names, and what it replaces; writes nothing. */
|
|
3423
3301
|
preview: (member: string, input: RouteInput<"POST /members/:member/bindings">) => Promise<BindingPlan>;
|
|
3424
|
-
create: (member: string, input: RouteInput<"POST /members/:member/bindings">) => Promise<{
|
|
3425
|
-
binding:
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
/** The service's bindings on an issuer that new keys would replace, and the keys as checked; writes nothing. */
|
|
3302
|
+
create: (member: string, input: RouteInput<"POST /members/:member/bindings">) => Promise<Extract<RouteOutput<"POST /members/:member/bindings">, {
|
|
3303
|
+
binding: unknown;
|
|
3304
|
+
}>>;
|
|
3305
|
+
/** The service's bindings on an issuer that new keys would replace, the keys as checked, and the places they would withhold; writes nothing. */
|
|
3429
3306
|
previewKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<KeysPlan>;
|
|
3430
3307
|
/** New keys, uploaded, for every binding of the service on the issuer: each replaced by one the same but for them. */
|
|
3431
|
-
replaceKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<{
|
|
3432
|
-
bindings:
|
|
3433
|
-
|
|
3434
|
-
}>;
|
|
3308
|
+
replaceKeys: (member: string, input: RouteInput<"POST /members/:member/bindings/keys">) => Promise<Extract<RouteOutput<"POST /members/:member/bindings/keys">, {
|
|
3309
|
+
bindings: unknown;
|
|
3310
|
+
}>>;
|
|
3435
3311
|
remove: (member: string, id: string) => Promise<{
|
|
3436
3312
|
unbound: true;
|
|
3437
3313
|
}>;
|
|
@@ -3466,29 +3342,36 @@ declare function createClient(options: ClientOptions): {
|
|
|
3466
3342
|
app: null;
|
|
3467
3343
|
}>;
|
|
3468
3344
|
};
|
|
3345
|
+
/**
|
|
3346
|
+
* Freezes: every use under a target refused from its next request, its
|
|
3347
|
+
* sessions kept, until lifted. A target is `instance`, `service:<name>`,
|
|
3348
|
+
* `binding:<id>` or `session:<id>`.
|
|
3349
|
+
*/
|
|
3350
|
+
freezes: {
|
|
3351
|
+
/** The freezes standing that you may know of: the instance's, and those of the service accounts you manage. */
|
|
3352
|
+
list: () => Promise<{
|
|
3353
|
+
freezes: {
|
|
3354
|
+
target: string;
|
|
3355
|
+
service: string | null;
|
|
3356
|
+
frozenAt: string;
|
|
3357
|
+
}[];
|
|
3358
|
+
}>;
|
|
3359
|
+
freeze: (target: string, reason: string) => Promise<{
|
|
3360
|
+
target: string;
|
|
3361
|
+
frozenAt: string | null;
|
|
3362
|
+
}>;
|
|
3363
|
+
/** Lifts it; a target that is not frozen stays so. */
|
|
3364
|
+
unfreeze: (target: string) => Promise<{
|
|
3365
|
+
target: string;
|
|
3366
|
+
frozenAt: string | null;
|
|
3367
|
+
}>;
|
|
3368
|
+
};
|
|
3469
3369
|
access: {
|
|
3470
3370
|
/** What they should hold at each place; the server applies the difference. `null` revokes. */
|
|
3471
3371
|
set: (member: string, access: RouteInput<"PATCH /access/:member">) => Promise<{
|
|
3472
3372
|
changes: {
|
|
3473
3373
|
[key: string]: "created" | "revoked" | "unchanged" | "updated";
|
|
3474
3374
|
};
|
|
3475
|
-
admitted?: {
|
|
3476
|
-
created: boolean;
|
|
3477
|
-
role: "admin" | "auditor" | "developer" | "member" | "owner";
|
|
3478
|
-
scope: {
|
|
3479
|
-
projects: "all" | {
|
|
3480
|
-
only: string[];
|
|
3481
|
-
} | {
|
|
3482
|
-
except: string[];
|
|
3483
|
-
};
|
|
3484
|
-
environments: "all" | {
|
|
3485
|
-
only: string[];
|
|
3486
|
-
} | {
|
|
3487
|
-
except: string[];
|
|
3488
|
-
};
|
|
3489
|
-
};
|
|
3490
|
-
generation: number;
|
|
3491
|
-
};
|
|
3492
3375
|
}>;
|
|
3493
3376
|
};
|
|
3494
3377
|
/** Where I am signed in. Only where coffre runs its own sign-in. */
|
|
@@ -3506,6 +3389,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3506
3389
|
lastUsedIp: string | null;
|
|
3507
3390
|
current: boolean;
|
|
3508
3391
|
}[];
|
|
3392
|
+
more: boolean;
|
|
3509
3393
|
}>;
|
|
3510
3394
|
revoke: (id: string) => Promise<{
|
|
3511
3395
|
revoked: true;
|
|
@@ -3521,6 +3405,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
3521
3405
|
createdAt: string;
|
|
3522
3406
|
lastSignInAt: string | null;
|
|
3523
3407
|
}[];
|
|
3408
|
+
more: boolean;
|
|
3524
3409
|
}>;
|
|
3525
3410
|
unlink: (id: string) => Promise<{
|
|
3526
3411
|
unlinked: true;
|
|
@@ -3552,22 +3437,24 @@ declare function createClient(options: ClientOptions): {
|
|
|
3552
3437
|
folders: {
|
|
3553
3438
|
/** A folder of projects, renamed. Takes managing every project in it. */
|
|
3554
3439
|
rename: (folder: string, name: string) => Promise<{
|
|
3555
|
-
folder: string
|
|
3440
|
+
folder: string;
|
|
3556
3441
|
moved: string[];
|
|
3557
3442
|
}>;
|
|
3558
3443
|
/** Every project out of a folder. */
|
|
3559
3444
|
remove: (folder: string) => Promise<{
|
|
3560
|
-
folder:
|
|
3445
|
+
folder: null;
|
|
3561
3446
|
moved: string[];
|
|
3562
3447
|
}>;
|
|
3563
3448
|
/** One of an environment's key folders, `market/prod`, renamed. Takes writing there. */
|
|
3564
3449
|
renameKeys: (environment: string, folder: string, name: string) => Promise<{
|
|
3565
|
-
|
|
3450
|
+
operationId: string | null;
|
|
3451
|
+
folder: string;
|
|
3566
3452
|
moved: string[];
|
|
3567
3453
|
}>;
|
|
3568
3454
|
/** Every key out of one of an environment's folders. */
|
|
3569
3455
|
removeKeys: (environment: string, folder: string) => Promise<{
|
|
3570
|
-
|
|
3456
|
+
operationId: string | null;
|
|
3457
|
+
folder: null;
|
|
3571
3458
|
moved: string[];
|
|
3572
3459
|
}>;
|
|
3573
3460
|
};
|
|
@@ -3782,8 +3669,6 @@ declare function createClient(options: ClientOptions): {
|
|
|
3782
3669
|
list: (query?: RouteInput<"GET /audit">) => Promise<{
|
|
3783
3670
|
entries: {
|
|
3784
3671
|
seq: number;
|
|
3785
|
-
log: "0.14" | "0.15";
|
|
3786
|
-
forged?: true;
|
|
3787
3672
|
author: "app" | "vault";
|
|
3788
3673
|
occurredAt: string;
|
|
3789
3674
|
actorType: "service" | "system" | "user";
|
|
@@ -3806,7 +3691,6 @@ declare function createClient(options: ClientOptions): {
|
|
|
3806
3691
|
requestId: string | null;
|
|
3807
3692
|
run: null | {
|
|
3808
3693
|
exchangeSeq: number;
|
|
3809
|
-
log: "0.14" | "0.15";
|
|
3810
3694
|
claims: {
|
|
3811
3695
|
[key: string]: string | number;
|
|
3812
3696
|
};
|
|
@@ -3818,110 +3702,36 @@ declare function createClient(options: ClientOptions): {
|
|
|
3818
3702
|
metadata: {
|
|
3819
3703
|
[key: string]: unknown;
|
|
3820
3704
|
};
|
|
3705
|
+
proof: "failed" | "proven" | "unproven";
|
|
3821
3706
|
}[];
|
|
3822
3707
|
more: boolean;
|
|
3823
|
-
next:
|
|
3708
|
+
next: number | null;
|
|
3824
3709
|
hidden?: {
|
|
3825
3710
|
action: string;
|
|
3826
3711
|
count: number;
|
|
3827
3712
|
}[];
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
behind: boolean;
|
|
3831
|
-
forged?: true;
|
|
3832
|
-
};
|
|
3833
|
-
readsOmitted?: "path" | "scope";
|
|
3834
|
-
}>;
|
|
3835
|
-
/**
|
|
3836
|
-
* Whether the log holds, from the newest checkpoint; or, with `from`, a
|
|
3837
|
-
* stretch of the walk from the first entry: `start`, then each `next`
|
|
3838
|
-
* until it is null (`verifyWhole`).
|
|
3839
|
-
*/
|
|
3840
|
-
verify: (query?: RouteInput<"GET /audit/verification">) => Promise<{
|
|
3841
|
-
ok: true;
|
|
3842
|
-
through: number | null;
|
|
3843
|
-
entries: number;
|
|
3844
|
-
from: number;
|
|
3845
|
-
remaining: number;
|
|
3846
|
-
next?: string | null;
|
|
3847
|
-
checkpoint: null | {
|
|
3848
|
-
seq: number;
|
|
3849
|
-
signedAt: string;
|
|
3850
|
-
};
|
|
3851
|
-
pending?: number;
|
|
3852
|
-
} | {
|
|
3853
|
-
ok: false;
|
|
3854
|
-
through: number | null;
|
|
3855
|
-
failedAtSeq: number | null;
|
|
3856
|
-
author: "app" | "vault";
|
|
3857
|
-
reason: string;
|
|
3858
|
-
}>;
|
|
3859
|
-
/**
|
|
3860
|
-
* The walk from the first entry to the head, a stretch a request, each
|
|
3861
|
-
* as long as the server walks in one: the first stretch that fails, or
|
|
3862
|
-
* the last. `onStretch` sees each verdict as it comes.
|
|
3863
|
-
*/
|
|
3864
|
-
verifyWhole: (onStretch?: (verdict: RouteOutput<"GET /audit/verification">) => void) => Promise<{
|
|
3865
|
-
ok: true;
|
|
3866
|
-
through: number | null;
|
|
3867
|
-
entries: number;
|
|
3868
|
-
from: number;
|
|
3869
|
-
remaining: number;
|
|
3870
|
-
next?: string | null;
|
|
3871
|
-
checkpoint: null | {
|
|
3872
|
-
seq: number;
|
|
3713
|
+
head: null | {
|
|
3714
|
+
size: number;
|
|
3873
3715
|
signedAt: string;
|
|
3874
3716
|
};
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
reason: string;
|
|
3717
|
+
holes: null | {
|
|
3718
|
+
above: number | null;
|
|
3719
|
+
below: number | null;
|
|
3720
|
+
kept: number;
|
|
3721
|
+
aging: number;
|
|
3722
|
+
}[];
|
|
3882
3723
|
}>;
|
|
3883
|
-
/**
|
|
3884
|
-
* Whether 0.15's log holds (the vault's `verifyTrees`): its newest signed
|
|
3885
|
-
* checkpoint and every entry since. `kept` false where the instance
|
|
3886
|
-
* keeps 0.14's log alone, a server older than 0.15 (no such route)
|
|
3887
|
-
* included.
|
|
3888
|
-
*/
|
|
3889
|
-
verifyTrees: () => Promise<RouteOutput<"GET /audit/trees">>;
|
|
3890
|
-
/**
|
|
3891
|
-
* The reads the audit pages list held to the uses 0.15's log sealed, a
|
|
3892
|
-
* stretch a request, from the first to as far as the projector has
|
|
3893
|
-
* listed: the first stretch that fails, or the last. `kept` false where
|
|
3894
|
-
* the instance keeps 0.14's log alone, a server older than 0.15 (no
|
|
3895
|
-
* such route) included.
|
|
3896
|
-
*/
|
|
3897
|
-
verifyReads: (onStretch?: (verdict: RouteOutput<"GET /audit/reads">) => void) => Promise<RouteOutput<"GET /audit/reads">>;
|
|
3898
3724
|
/** What an escrowed key is checked against: public material, for admins and owners of the whole instance. */
|
|
3899
3725
|
keys: () => Promise<{
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
};
|
|
3904
|
-
vault: {
|
|
3905
|
-
current: {
|
|
3906
|
-
vaultId: string;
|
|
3907
|
-
provider: string;
|
|
3908
|
-
};
|
|
3909
|
-
checks: {
|
|
3910
|
-
seq: number;
|
|
3911
|
-
vaultId: string;
|
|
3912
|
-
provider: string;
|
|
3913
|
-
version: string;
|
|
3914
|
-
wrapped: string;
|
|
3915
|
-
}[];
|
|
3726
|
+
kek: {
|
|
3727
|
+
provider: string;
|
|
3728
|
+
id: string;
|
|
3916
3729
|
};
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
*/
|
|
3923
|
-
acceptLoss: (range: RouteInput<"POST /audit/loss">) => Promise<{
|
|
3924
|
-
resumes: number | null;
|
|
3730
|
+
previous: {
|
|
3731
|
+
provider: string;
|
|
3732
|
+
id: string;
|
|
3733
|
+
}[];
|
|
3734
|
+
checks: string[];
|
|
3925
3735
|
}>;
|
|
3926
3736
|
};
|
|
3927
3737
|
};
|
|
@@ -3946,4 +3756,4 @@ declare function planImport(coffre: CoffreClient, path: string, entries: readonl
|
|
|
3946
3756
|
changes: Record<string, string>;
|
|
3947
3757
|
}>;
|
|
3948
3758
|
//#endregion
|
|
3949
|
-
export {
|
|
3759
|
+
export { RoleImpact as $, BindingView as A, ImpactLine as B, AccessValue as C, AuthInfo as D, AuditEntryView as E, DismissedKey as F, Member as G, KeysPlan as H, DryRunOutcome as I, OffboardingReport as J, MemberAccess as K, DryRunResult as L, Decision as M, Deletion as N, AuthorizationView as O, DeletionResult as P, RemovedMember as Q, EnvironmentView as R, olderThan as S, ApprovalView as T, ListedReference as U, InheritResult as V, Me as W, ProjectSummary as X, PersonalConfig as Y, ReferenceView as Z, serviceName as _, Params as a, SetResult as at, foldersOf as b, RouteOutput as c, WorkloadIds as ct, planImport as d, RoleView as et, Unreachable as f, apiMember as g, judgeProofs as h, ImportAction as i, SessionRow as it, ConnectedApp as j, BindingPlan as k, Transport as l, ProofJudgment as m, CoffreClient as n, SecretKey as nt, RouteInput as o, TokenPlan as ot, unreachable as p, MissingKey as q, CoffreError as r, SecretVersion as rt, RouteKey as s, TokenRow as st, ClientOptions as t, RolesView as tt, createClient as u, shownMember as v, Api as w, ageInDays as x, byFolder as y, IdentityRow as z };
|