@coffre/client 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-BuMxAzSu.d.ts → index-CsGTyqgO.d.ts} +898 -30
- package/dist/index.d.ts +2 -2
- package/dist/index.js +119 -3
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +33 -0
- package/package.json +1 -1
- package/src/api.ts +564 -22
- package/src/folders.ts +16 -0
- package/src/index.ts +90 -2
- package/src/members.ts +23 -0
- package/src/routes.ts +23 -0
package/src/api.ts
CHANGED
|
@@ -16,18 +16,15 @@ export type Api = {
|
|
|
16
16
|
instanceRole: "owner" | "root-admin" | "user";
|
|
17
17
|
isRootAdmin: boolean;
|
|
18
18
|
canReadAudit: boolean;
|
|
19
|
+
features: {
|
|
20
|
+
mcp: boolean;
|
|
21
|
+
workloads: boolean;
|
|
22
|
+
};
|
|
19
23
|
environments: {
|
|
20
24
|
project: string;
|
|
21
25
|
environment: string;
|
|
22
26
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
23
27
|
}[];
|
|
24
|
-
instance: null | {
|
|
25
|
-
version: string;
|
|
26
|
-
migrations: {
|
|
27
|
-
applied: number;
|
|
28
|
-
known: string[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
28
|
};
|
|
32
29
|
};
|
|
33
30
|
"GET /projects": {
|
|
@@ -37,6 +34,7 @@ export type Api = {
|
|
|
37
34
|
slug: string;
|
|
38
35
|
name: string;
|
|
39
36
|
archivedAt: string | null;
|
|
37
|
+
folder: string | null;
|
|
40
38
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
41
39
|
environments: {
|
|
42
40
|
slug: string;
|
|
@@ -49,6 +47,13 @@ export type Api = {
|
|
|
49
47
|
}[];
|
|
50
48
|
secretCount: number | null;
|
|
51
49
|
}[];
|
|
50
|
+
everyProject: {
|
|
51
|
+
member: string;
|
|
52
|
+
place: string;
|
|
53
|
+
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
54
|
+
roleName: string;
|
|
55
|
+
expiresAt: string | null;
|
|
56
|
+
}[];
|
|
52
57
|
};
|
|
53
58
|
};
|
|
54
59
|
"PUT /projects/:project": {
|
|
@@ -62,6 +67,13 @@ export type Api = {
|
|
|
62
67
|
archivedAt: string | null;
|
|
63
68
|
};
|
|
64
69
|
created: boolean;
|
|
70
|
+
inherited: {
|
|
71
|
+
member: string;
|
|
72
|
+
place: string;
|
|
73
|
+
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
74
|
+
roleName: string;
|
|
75
|
+
expiresAt: string | null;
|
|
76
|
+
}[];
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
79
|
"PATCH /projects/:project": {
|
|
@@ -69,18 +81,45 @@ export type Api = {
|
|
|
69
81
|
name?: string;
|
|
70
82
|
slug?: string;
|
|
71
83
|
archived?: boolean;
|
|
84
|
+
folder?: string | null;
|
|
72
85
|
};
|
|
73
86
|
output: {
|
|
74
87
|
project: {
|
|
75
88
|
slug: string;
|
|
76
89
|
name: string;
|
|
77
90
|
archivedAt: string | null;
|
|
91
|
+
folder: string | null;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
"DELETE /projects/:project": {
|
|
96
|
+
input: undefined;
|
|
97
|
+
output: {
|
|
98
|
+
dryRun: boolean;
|
|
99
|
+
deletion: {
|
|
100
|
+
path: string;
|
|
101
|
+
tombstone: string;
|
|
102
|
+
environments: string[];
|
|
103
|
+
keys: number;
|
|
104
|
+
versions: number;
|
|
105
|
+
grants: {
|
|
106
|
+
member: string;
|
|
107
|
+
place: string;
|
|
108
|
+
role: string;
|
|
109
|
+
}[];
|
|
110
|
+
references: {
|
|
111
|
+
holder: string;
|
|
112
|
+
source: string;
|
|
113
|
+
}[];
|
|
114
|
+
stranded: string[];
|
|
78
115
|
};
|
|
79
116
|
};
|
|
80
117
|
};
|
|
81
118
|
"PUT /projects/:project/:environment": {
|
|
82
119
|
input: {
|
|
83
120
|
name: string;
|
|
121
|
+
from?: string;
|
|
122
|
+
references?: boolean;
|
|
84
123
|
};
|
|
85
124
|
output: {
|
|
86
125
|
environment: {
|
|
@@ -89,13 +128,26 @@ export type Api = {
|
|
|
89
128
|
archivedAt: string | null;
|
|
90
129
|
};
|
|
91
130
|
created: boolean;
|
|
131
|
+
inherited: {
|
|
132
|
+
member: string;
|
|
133
|
+
place: string;
|
|
134
|
+
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
135
|
+
roleName: string;
|
|
136
|
+
expiresAt: string | null;
|
|
137
|
+
}[];
|
|
138
|
+
forked: null | {
|
|
139
|
+
from: string;
|
|
140
|
+
keys: number;
|
|
141
|
+
references: number;
|
|
142
|
+
copied: string[];
|
|
143
|
+
};
|
|
92
144
|
};
|
|
93
145
|
};
|
|
94
146
|
"PATCH /projects/:project/:environment": {
|
|
95
147
|
input: {
|
|
96
148
|
name?: string;
|
|
97
|
-
slug?: string;
|
|
98
149
|
archived?: boolean;
|
|
150
|
+
slug?: string;
|
|
99
151
|
};
|
|
100
152
|
output: {
|
|
101
153
|
environment: {
|
|
@@ -103,6 +155,64 @@ export type Api = {
|
|
|
103
155
|
name: string;
|
|
104
156
|
archivedAt: string | null;
|
|
105
157
|
};
|
|
158
|
+
inherited: {
|
|
159
|
+
member: string;
|
|
160
|
+
place: string;
|
|
161
|
+
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
162
|
+
roleName: string;
|
|
163
|
+
expiresAt: string | null;
|
|
164
|
+
}[];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
"DELETE /projects/:project/:environment": {
|
|
168
|
+
input: undefined;
|
|
169
|
+
output: {
|
|
170
|
+
dryRun: boolean;
|
|
171
|
+
deletion: {
|
|
172
|
+
path: string;
|
|
173
|
+
tombstone: string;
|
|
174
|
+
environments: string[];
|
|
175
|
+
keys: number;
|
|
176
|
+
versions: number;
|
|
177
|
+
grants: {
|
|
178
|
+
member: string;
|
|
179
|
+
place: string;
|
|
180
|
+
role: string;
|
|
181
|
+
}[];
|
|
182
|
+
references: {
|
|
183
|
+
holder: string;
|
|
184
|
+
source: string;
|
|
185
|
+
}[];
|
|
186
|
+
stranded: string[];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
"GET /projects/:project/:environment/missing": {
|
|
191
|
+
input: undefined;
|
|
192
|
+
output: {
|
|
193
|
+
missing: {
|
|
194
|
+
key: string;
|
|
195
|
+
in: string[];
|
|
196
|
+
folder: string | null;
|
|
197
|
+
}[];
|
|
198
|
+
dismissed: {
|
|
199
|
+
key: string;
|
|
200
|
+
in: string[];
|
|
201
|
+
folder: string | null;
|
|
202
|
+
dismissedBy: string;
|
|
203
|
+
dismissedAt: string;
|
|
204
|
+
}[];
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
"PATCH /projects/:project/:environment/dismissals": {
|
|
208
|
+
input: {
|
|
209
|
+
[key: string]: null | true;
|
|
210
|
+
};
|
|
211
|
+
output: {
|
|
212
|
+
operationId: string;
|
|
213
|
+
keys: {
|
|
214
|
+
[key: string]: "dismissed" | "restored" | "unchanged";
|
|
215
|
+
};
|
|
106
216
|
};
|
|
107
217
|
};
|
|
108
218
|
"GET /secrets/:project/:environment": {
|
|
@@ -111,6 +221,19 @@ export type Api = {
|
|
|
111
221
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
112
222
|
keys: {
|
|
113
223
|
key: string;
|
|
224
|
+
reference: null | {
|
|
225
|
+
id: string;
|
|
226
|
+
holder: string;
|
|
227
|
+
source: string;
|
|
228
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
229
|
+
version: number | null;
|
|
230
|
+
createdBy: string;
|
|
231
|
+
createdAt: string;
|
|
232
|
+
endedBy: string | null;
|
|
233
|
+
endedAt: string | null;
|
|
234
|
+
canOpenSource: boolean;
|
|
235
|
+
};
|
|
236
|
+
folder: string | null;
|
|
114
237
|
archived: boolean;
|
|
115
238
|
version: number | null;
|
|
116
239
|
updatedAt: string | null;
|
|
@@ -120,7 +243,9 @@ export type Api = {
|
|
|
120
243
|
};
|
|
121
244
|
"PATCH /secrets/:project/:environment": {
|
|
122
245
|
input: {
|
|
123
|
-
[key: string]: string | null
|
|
246
|
+
[key: string]: string | null | {
|
|
247
|
+
ref: string;
|
|
248
|
+
};
|
|
124
249
|
};
|
|
125
250
|
output: {
|
|
126
251
|
operationId: string;
|
|
@@ -129,6 +254,8 @@ export type Api = {
|
|
|
129
254
|
version: number;
|
|
130
255
|
} | {
|
|
131
256
|
archived: true;
|
|
257
|
+
} | {
|
|
258
|
+
reference: string;
|
|
132
259
|
};
|
|
133
260
|
};
|
|
134
261
|
} | {
|
|
@@ -142,10 +269,12 @@ export type Api = {
|
|
|
142
269
|
input: {
|
|
143
270
|
key?: string;
|
|
144
271
|
archived?: boolean;
|
|
272
|
+
folder?: string | null;
|
|
145
273
|
};
|
|
146
274
|
output: {
|
|
147
275
|
key: string;
|
|
148
276
|
archived: boolean;
|
|
277
|
+
folder: string | null;
|
|
149
278
|
};
|
|
150
279
|
};
|
|
151
280
|
"GET /secrets/:project/:environment/:key/versions": {
|
|
@@ -171,6 +300,75 @@ export type Api = {
|
|
|
171
300
|
version: number;
|
|
172
301
|
};
|
|
173
302
|
};
|
|
303
|
+
"DELETE /secrets/:project/:environment/:key/reference": {
|
|
304
|
+
input: undefined;
|
|
305
|
+
output: {
|
|
306
|
+
reference: {
|
|
307
|
+
id: string;
|
|
308
|
+
holder: string;
|
|
309
|
+
source: string;
|
|
310
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
311
|
+
version: number | null;
|
|
312
|
+
createdBy: string;
|
|
313
|
+
createdAt: string;
|
|
314
|
+
endedBy: string | null;
|
|
315
|
+
endedAt: string | null;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
"PATCH /folders/:folder": {
|
|
320
|
+
input: {
|
|
321
|
+
name: string;
|
|
322
|
+
};
|
|
323
|
+
output: {
|
|
324
|
+
folder: string | null;
|
|
325
|
+
moved: string[];
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
"DELETE /folders/:folder": {
|
|
329
|
+
input: undefined;
|
|
330
|
+
output: {
|
|
331
|
+
folder: string | null;
|
|
332
|
+
moved: string[];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
"PATCH /folders/:project/:environment/:folder": {
|
|
336
|
+
input: {
|
|
337
|
+
name: string;
|
|
338
|
+
};
|
|
339
|
+
output: {
|
|
340
|
+
folder: string | null;
|
|
341
|
+
moved: string[];
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
"DELETE /folders/:project/:environment/:folder": {
|
|
345
|
+
input: undefined;
|
|
346
|
+
output: {
|
|
347
|
+
folder: string | null;
|
|
348
|
+
moved: string[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
"GET /references": {
|
|
352
|
+
input: {
|
|
353
|
+
path: string;
|
|
354
|
+
};
|
|
355
|
+
output: {
|
|
356
|
+
references: {
|
|
357
|
+
id: string;
|
|
358
|
+
holder: string;
|
|
359
|
+
source: string;
|
|
360
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
361
|
+
version: number | null;
|
|
362
|
+
createdBy: string;
|
|
363
|
+
createdAt: string;
|
|
364
|
+
endedBy: string | null;
|
|
365
|
+
endedAt: string | null;
|
|
366
|
+
readers: null | string[];
|
|
367
|
+
canBreak: boolean;
|
|
368
|
+
holderArchived: boolean;
|
|
369
|
+
}[];
|
|
370
|
+
};
|
|
371
|
+
};
|
|
174
372
|
"POST /reveals": {
|
|
175
373
|
input: {
|
|
176
374
|
path: string;
|
|
@@ -244,6 +442,17 @@ export type Api = {
|
|
|
244
442
|
expiresAt: string;
|
|
245
443
|
lastUsedAt: string | null;
|
|
246
444
|
}[];
|
|
445
|
+
references: {
|
|
446
|
+
id: string;
|
|
447
|
+
holder: string;
|
|
448
|
+
source: string;
|
|
449
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
450
|
+
version: number | null;
|
|
451
|
+
createdBy: string;
|
|
452
|
+
createdAt: string;
|
|
453
|
+
endedBy: string | null;
|
|
454
|
+
endedAt: string | null;
|
|
455
|
+
}[];
|
|
247
456
|
};
|
|
248
457
|
};
|
|
249
458
|
"PUT /members/:member": {
|
|
@@ -296,6 +505,17 @@ export type Api = {
|
|
|
296
505
|
expiresAt: string;
|
|
297
506
|
lastUsedAt: string | null;
|
|
298
507
|
}[];
|
|
508
|
+
references: {
|
|
509
|
+
id: string;
|
|
510
|
+
holder: string;
|
|
511
|
+
source: string;
|
|
512
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
513
|
+
version: number | null;
|
|
514
|
+
createdBy: string;
|
|
515
|
+
createdAt: string;
|
|
516
|
+
endedBy: string | null;
|
|
517
|
+
endedAt: string | null;
|
|
518
|
+
}[];
|
|
299
519
|
};
|
|
300
520
|
};
|
|
301
521
|
};
|
|
@@ -484,6 +704,80 @@ export type Api = {
|
|
|
484
704
|
decided: true;
|
|
485
705
|
};
|
|
486
706
|
};
|
|
707
|
+
"GET /oauth/authorizations": {
|
|
708
|
+
input: {
|
|
709
|
+
client_id?: string;
|
|
710
|
+
redirect_uri?: string;
|
|
711
|
+
response_type?: string;
|
|
712
|
+
code_challenge?: string;
|
|
713
|
+
code_challenge_method?: string;
|
|
714
|
+
state?: string;
|
|
715
|
+
scope?: string;
|
|
716
|
+
resource?: string;
|
|
717
|
+
};
|
|
718
|
+
output: {
|
|
719
|
+
status: "invalid";
|
|
720
|
+
message: string;
|
|
721
|
+
} | {
|
|
722
|
+
status: "refused";
|
|
723
|
+
message: string;
|
|
724
|
+
redirect: string;
|
|
725
|
+
} | {
|
|
726
|
+
status: "ready";
|
|
727
|
+
client: {
|
|
728
|
+
id: string;
|
|
729
|
+
name: string;
|
|
730
|
+
host: string | null;
|
|
731
|
+
registration: "cimd" | "dcr";
|
|
732
|
+
};
|
|
733
|
+
redirectHost: string;
|
|
734
|
+
loopbackOnly: boolean;
|
|
735
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
736
|
+
connections: ("browse" | "manage-access" | "read-values" | "write")[][];
|
|
737
|
+
days: number;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
"POST /oauth/authorizations": {
|
|
741
|
+
input: {
|
|
742
|
+
request: {
|
|
743
|
+
client_id?: string;
|
|
744
|
+
redirect_uri?: string;
|
|
745
|
+
response_type?: string;
|
|
746
|
+
code_challenge?: string;
|
|
747
|
+
code_challenge_method?: string;
|
|
748
|
+
state?: string;
|
|
749
|
+
scope?: string;
|
|
750
|
+
resource?: string;
|
|
751
|
+
};
|
|
752
|
+
approve: boolean;
|
|
753
|
+
scopes?: string[];
|
|
754
|
+
};
|
|
755
|
+
output: {
|
|
756
|
+
redirect: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
"GET /apps": {
|
|
760
|
+
input: undefined;
|
|
761
|
+
output: {
|
|
762
|
+
apps: {
|
|
763
|
+
id: string;
|
|
764
|
+
name: string;
|
|
765
|
+
host: string | null;
|
|
766
|
+
registration: "cimd" | "dcr";
|
|
767
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
768
|
+
createdAt: string;
|
|
769
|
+
lastUsedAt: string | null;
|
|
770
|
+
lastUsedIp: string | null;
|
|
771
|
+
expiresAt: string;
|
|
772
|
+
}[];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
"DELETE /apps/:id": {
|
|
776
|
+
input: undefined;
|
|
777
|
+
output: {
|
|
778
|
+
disconnected: true;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
487
781
|
"GET /audit": {
|
|
488
782
|
input: {
|
|
489
783
|
path?: string;
|
|
@@ -568,6 +862,66 @@ export type Api = {
|
|
|
568
862
|
};
|
|
569
863
|
};
|
|
570
864
|
};
|
|
865
|
+
"GET /approvals/:id": {
|
|
866
|
+
input: undefined;
|
|
867
|
+
output: {
|
|
868
|
+
approval: {
|
|
869
|
+
id: string;
|
|
870
|
+
status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
|
|
871
|
+
client: {
|
|
872
|
+
name: string;
|
|
873
|
+
host: string | null;
|
|
874
|
+
registration: "cimd" | "dcr";
|
|
875
|
+
};
|
|
876
|
+
tool: string;
|
|
877
|
+
summary: string;
|
|
878
|
+
details: {
|
|
879
|
+
label: string;
|
|
880
|
+
value: string;
|
|
881
|
+
kind?: "mono" | "time";
|
|
882
|
+
}[];
|
|
883
|
+
asks: null | {
|
|
884
|
+
value: {
|
|
885
|
+
label: string;
|
|
886
|
+
note: string;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
kind: "change" | "reveal";
|
|
890
|
+
digest: string;
|
|
891
|
+
createdAt: string;
|
|
892
|
+
expiresAt: string;
|
|
893
|
+
outcome: null | {
|
|
894
|
+
text: string;
|
|
895
|
+
result?: {
|
|
896
|
+
[key: string]: unknown;
|
|
897
|
+
};
|
|
898
|
+
error?: string;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
"POST /approvals/:id": {
|
|
904
|
+
input: {
|
|
905
|
+
approve: boolean;
|
|
906
|
+
digest: string;
|
|
907
|
+
value?: string;
|
|
908
|
+
};
|
|
909
|
+
output: {
|
|
910
|
+
status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
|
|
911
|
+
outcome: {
|
|
912
|
+
text: string;
|
|
913
|
+
result?: {
|
|
914
|
+
[key: string]: unknown;
|
|
915
|
+
};
|
|
916
|
+
error?: string;
|
|
917
|
+
};
|
|
918
|
+
shown: {
|
|
919
|
+
label: string;
|
|
920
|
+
value: string;
|
|
921
|
+
kind?: "mono" | "time";
|
|
922
|
+
}[];
|
|
923
|
+
};
|
|
924
|
+
};
|
|
571
925
|
};
|
|
572
926
|
|
|
573
927
|
export type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
|
|
@@ -575,6 +929,40 @@ export type AccessValue = "access-manager" | "auditor" | "developer" | "maintain
|
|
|
575
929
|
until: string | null;
|
|
576
930
|
};
|
|
577
931
|
|
|
932
|
+
export type ApprovalView = {
|
|
933
|
+
id: string;
|
|
934
|
+
status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
|
|
935
|
+
client: {
|
|
936
|
+
name: string;
|
|
937
|
+
host: string | null;
|
|
938
|
+
registration: "cimd" | "dcr";
|
|
939
|
+
};
|
|
940
|
+
tool: string;
|
|
941
|
+
summary: string;
|
|
942
|
+
details: {
|
|
943
|
+
label: string;
|
|
944
|
+
value: string;
|
|
945
|
+
kind?: "mono" | "time";
|
|
946
|
+
}[];
|
|
947
|
+
asks: null | {
|
|
948
|
+
value: {
|
|
949
|
+
label: string;
|
|
950
|
+
note: string;
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
kind: "change" | "reveal";
|
|
954
|
+
digest: string;
|
|
955
|
+
createdAt: string;
|
|
956
|
+
expiresAt: string;
|
|
957
|
+
outcome: null | {
|
|
958
|
+
text: string;
|
|
959
|
+
result?: {
|
|
960
|
+
[key: string]: unknown;
|
|
961
|
+
};
|
|
962
|
+
error?: string;
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
|
|
578
966
|
export type AuditEntryView = {
|
|
579
967
|
seq: number;
|
|
580
968
|
author: "app" | "vault";
|
|
@@ -619,6 +1007,28 @@ export type AuthInfo = {
|
|
|
619
1007
|
};
|
|
620
1008
|
};
|
|
621
1009
|
|
|
1010
|
+
export type AuthorizationView = {
|
|
1011
|
+
status: "invalid";
|
|
1012
|
+
message: string;
|
|
1013
|
+
} | {
|
|
1014
|
+
status: "refused";
|
|
1015
|
+
message: string;
|
|
1016
|
+
redirect: string;
|
|
1017
|
+
} | {
|
|
1018
|
+
status: "ready";
|
|
1019
|
+
client: {
|
|
1020
|
+
id: string;
|
|
1021
|
+
name: string;
|
|
1022
|
+
host: string | null;
|
|
1023
|
+
registration: "cimd" | "dcr";
|
|
1024
|
+
};
|
|
1025
|
+
redirectHost: string;
|
|
1026
|
+
loopbackOnly: boolean;
|
|
1027
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1028
|
+
connections: ("browse" | "manage-access" | "read-values" | "write")[][];
|
|
1029
|
+
days: number;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
622
1032
|
export type BindingPlan = {
|
|
623
1033
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
624
1034
|
issuer: string;
|
|
@@ -646,6 +1056,73 @@ export type BindingView = {
|
|
|
646
1056
|
lastUsedAt: string | null;
|
|
647
1057
|
};
|
|
648
1058
|
|
|
1059
|
+
export type ConnectedApp = {
|
|
1060
|
+
id: string;
|
|
1061
|
+
name: string;
|
|
1062
|
+
host: string | null;
|
|
1063
|
+
registration: "cimd" | "dcr";
|
|
1064
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1065
|
+
createdAt: string;
|
|
1066
|
+
lastUsedAt: string | null;
|
|
1067
|
+
lastUsedIp: string | null;
|
|
1068
|
+
expiresAt: string;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
export type Deletion = {
|
|
1072
|
+
path: string;
|
|
1073
|
+
tombstone: string;
|
|
1074
|
+
environments: string[];
|
|
1075
|
+
keys: number;
|
|
1076
|
+
versions: number;
|
|
1077
|
+
grants: {
|
|
1078
|
+
member: string;
|
|
1079
|
+
place: string;
|
|
1080
|
+
role: string;
|
|
1081
|
+
}[];
|
|
1082
|
+
references: {
|
|
1083
|
+
holder: string;
|
|
1084
|
+
source: string;
|
|
1085
|
+
}[];
|
|
1086
|
+
stranded: string[];
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
export type Decision = {
|
|
1090
|
+
status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
|
|
1091
|
+
outcome: {
|
|
1092
|
+
text: string;
|
|
1093
|
+
result?: {
|
|
1094
|
+
[key: string]: unknown;
|
|
1095
|
+
};
|
|
1096
|
+
error?: string;
|
|
1097
|
+
};
|
|
1098
|
+
shown: {
|
|
1099
|
+
label: string;
|
|
1100
|
+
value: string;
|
|
1101
|
+
kind?: "mono" | "time";
|
|
1102
|
+
}[];
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
export type DeletionResult = {
|
|
1106
|
+
dryRun: boolean;
|
|
1107
|
+
deletion: {
|
|
1108
|
+
path: string;
|
|
1109
|
+
tombstone: string;
|
|
1110
|
+
environments: string[];
|
|
1111
|
+
keys: number;
|
|
1112
|
+
versions: number;
|
|
1113
|
+
grants: {
|
|
1114
|
+
member: string;
|
|
1115
|
+
place: string;
|
|
1116
|
+
role: string;
|
|
1117
|
+
}[];
|
|
1118
|
+
references: {
|
|
1119
|
+
holder: string;
|
|
1120
|
+
source: string;
|
|
1121
|
+
}[];
|
|
1122
|
+
stranded: string[];
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
|
|
649
1126
|
export type WorkloadIds = {
|
|
650
1127
|
github: string;
|
|
651
1128
|
repositoryId: string;
|
|
@@ -656,6 +1133,14 @@ export type WorkloadIds = {
|
|
|
656
1133
|
namespaceId: string;
|
|
657
1134
|
};
|
|
658
1135
|
|
|
1136
|
+
export type DismissedKey = {
|
|
1137
|
+
key: string;
|
|
1138
|
+
in: string[];
|
|
1139
|
+
folder: string | null;
|
|
1140
|
+
dismissedBy: string;
|
|
1141
|
+
dismissedAt: string;
|
|
1142
|
+
};
|
|
1143
|
+
|
|
659
1144
|
export type DryRunOutcome = "added" | "archived" | "changed" | "unchanged";
|
|
660
1145
|
|
|
661
1146
|
export type DryRunResult = {
|
|
@@ -673,12 +1158,12 @@ export type IdentityRow = {
|
|
|
673
1158
|
lastSignInAt: string | null;
|
|
674
1159
|
};
|
|
675
1160
|
|
|
676
|
-
export type
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
1161
|
+
export type InheritedGrant = {
|
|
1162
|
+
member: string;
|
|
1163
|
+
place: string;
|
|
1164
|
+
role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1165
|
+
roleName: string;
|
|
1166
|
+
expiresAt: string | null;
|
|
682
1167
|
};
|
|
683
1168
|
|
|
684
1169
|
export type Me = {
|
|
@@ -691,18 +1176,15 @@ export type Me = {
|
|
|
691
1176
|
instanceRole: "owner" | "root-admin" | "user";
|
|
692
1177
|
isRootAdmin: boolean;
|
|
693
1178
|
canReadAudit: boolean;
|
|
1179
|
+
features: {
|
|
1180
|
+
mcp: boolean;
|
|
1181
|
+
workloads: boolean;
|
|
1182
|
+
};
|
|
694
1183
|
environments: {
|
|
695
1184
|
project: string;
|
|
696
1185
|
environment: string;
|
|
697
1186
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
698
1187
|
}[];
|
|
699
|
-
instance: null | {
|
|
700
|
-
version: string;
|
|
701
|
-
migrations: {
|
|
702
|
-
applied: number;
|
|
703
|
-
known: string[];
|
|
704
|
-
};
|
|
705
|
-
};
|
|
706
1188
|
};
|
|
707
1189
|
|
|
708
1190
|
export type Member = {
|
|
@@ -723,6 +1205,12 @@ export type Member = {
|
|
|
723
1205
|
}[];
|
|
724
1206
|
};
|
|
725
1207
|
|
|
1208
|
+
export type MissingKey = {
|
|
1209
|
+
key: string;
|
|
1210
|
+
in: string[];
|
|
1211
|
+
folder: string | null;
|
|
1212
|
+
};
|
|
1213
|
+
|
|
726
1214
|
export type OffboardingReport = {
|
|
727
1215
|
principalType: "service" | "user";
|
|
728
1216
|
principalId: string;
|
|
@@ -754,12 +1242,39 @@ export type OffboardingReport = {
|
|
|
754
1242
|
expiresAt: string;
|
|
755
1243
|
lastUsedAt: string | null;
|
|
756
1244
|
}[];
|
|
1245
|
+
references: {
|
|
1246
|
+
id: string;
|
|
1247
|
+
holder: string;
|
|
1248
|
+
source: string;
|
|
1249
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
1250
|
+
version: number | null;
|
|
1251
|
+
createdBy: string;
|
|
1252
|
+
createdAt: string;
|
|
1253
|
+
endedBy: string | null;
|
|
1254
|
+
endedAt: string | null;
|
|
1255
|
+
}[];
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
export type ListedReference = {
|
|
1259
|
+
id: string;
|
|
1260
|
+
holder: string;
|
|
1261
|
+
source: string;
|
|
1262
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
1263
|
+
version: number | null;
|
|
1264
|
+
createdBy: string;
|
|
1265
|
+
createdAt: string;
|
|
1266
|
+
endedBy: string | null;
|
|
1267
|
+
endedAt: string | null;
|
|
1268
|
+
readers: null | string[];
|
|
1269
|
+
canBreak: boolean;
|
|
1270
|
+
holderArchived: boolean;
|
|
757
1271
|
};
|
|
758
1272
|
|
|
759
1273
|
export type ProjectSummary = {
|
|
760
1274
|
slug: string;
|
|
761
1275
|
name: string;
|
|
762
1276
|
archivedAt: string | null;
|
|
1277
|
+
folder: string | null;
|
|
763
1278
|
permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
|
|
764
1279
|
environments: {
|
|
765
1280
|
slug: string;
|
|
@@ -773,6 +1288,18 @@ export type ProjectSummary = {
|
|
|
773
1288
|
secretCount: number | null;
|
|
774
1289
|
};
|
|
775
1290
|
|
|
1291
|
+
export type ReferenceView = {
|
|
1292
|
+
id: string;
|
|
1293
|
+
holder: string;
|
|
1294
|
+
source: string;
|
|
1295
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
1296
|
+
version: number | null;
|
|
1297
|
+
createdBy: string;
|
|
1298
|
+
createdAt: string;
|
|
1299
|
+
endedBy: string | null;
|
|
1300
|
+
endedAt: string | null;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
776
1303
|
export type RemovedMember = {
|
|
777
1304
|
principalType: "service" | "user";
|
|
778
1305
|
principalId: string;
|
|
@@ -781,6 +1308,19 @@ export type RemovedMember = {
|
|
|
781
1308
|
|
|
782
1309
|
export type SecretKey = {
|
|
783
1310
|
key: string;
|
|
1311
|
+
reference: null | {
|
|
1312
|
+
id: string;
|
|
1313
|
+
holder: string;
|
|
1314
|
+
source: string;
|
|
1315
|
+
state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
|
|
1316
|
+
version: number | null;
|
|
1317
|
+
createdBy: string;
|
|
1318
|
+
createdAt: string;
|
|
1319
|
+
endedBy: string | null;
|
|
1320
|
+
endedAt: string | null;
|
|
1321
|
+
canOpenSource: boolean;
|
|
1322
|
+
};
|
|
1323
|
+
folder: string | null;
|
|
784
1324
|
archived: boolean;
|
|
785
1325
|
version: number | null;
|
|
786
1326
|
updatedAt: string | null;
|
|
@@ -826,6 +1366,8 @@ export type SetResult = {
|
|
|
826
1366
|
version: number;
|
|
827
1367
|
} | {
|
|
828
1368
|
archived: true;
|
|
1369
|
+
} | {
|
|
1370
|
+
reference: string;
|
|
829
1371
|
};
|
|
830
1372
|
};
|
|
831
1373
|
};
|