@coffre/client 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-BHK1QCh7.d.ts → index-D802ZJF6.d.ts} +401 -19
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -3
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +5 -0
- package/package.json +1 -1
- package/src/api.ts +281 -17
- package/src/index.ts +35 -4
- package/src/routes.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Decision, B as
|
|
2
|
-
export { type AccessValue, type Api, type ApprovalView, type AuditEntryView, type AuthInfo, type AuthorizationView, type BindingPlan, type BindingView, ClientOptions, CoffreClient, CoffreError, type ConnectedApp, type Decision, type Deletion, type DeletionResult, type DismissedKey, type DryRunOutcome, type DryRunResult, type IdentityRow, ImportAction, type ListedReference, type Me, type Member, type MemberAccess, type MissingKey, type OffboardingReport, Params, type ProjectSummary, type ReferenceView, type RemovedMember, RouteInput, RouteKey, RouteOutput, type SecretKey, type SecretVersion, type
|
|
1
|
+
import { $ as TokenPlan, A as Decision, B as Me, C as ApprovalView, D as BindingPlan, E as AuthorizationView, F as DryRunResult, G as PersonalConfig, H as MemberAccess, I as IdentityRow, J as RemovedMember, K as ProjectSummary, L as InheritResult, M as DeletionResult, N as DismissedKey, O as BindingView, P as DryRunOutcome, Q as SetResult, R as KeysPlan, S as Api, T as AuthInfo, U as MissingKey, V as Member, W as OffboardingReport, X as SecretVersion, Y as SecretKey, Z as SessionRow, _ as byFolder, a as Params, b as olderThan, c as RouteOutput, d as planImport, et as TokenRow, f as Unreachable, g as shownMember, h as serviceName, i as ImportAction, j as Deletion, k as ConnectedApp, l as Transport, m as apiMember, n as CoffreClient, o as RouteInput, p as unreachable, q as ReferenceView, r as CoffreError, s as RouteKey, t as ClientOptions, tt as WorkloadIds, u as createClient, v as foldersOf, w as AuditEntryView, x as AccessValue, y as ageInDays, z as ListedReference } from "./index-D802ZJF6.js";
|
|
2
|
+
export { type AccessValue, type Api, type ApprovalView, type AuditEntryView, type AuthInfo, type AuthorizationView, type BindingPlan, type BindingView, ClientOptions, CoffreClient, CoffreError, type ConnectedApp, type Decision, type Deletion, type DeletionResult, type DismissedKey, type DryRunOutcome, type DryRunResult, type IdentityRow, ImportAction, type InheritResult, type KeysPlan, type ListedReference, type Me, type Member, type MemberAccess, type MissingKey, type OffboardingReport, Params, type PersonalConfig, type ProjectSummary, type ReferenceView, type RemovedMember, RouteInput, RouteKey, RouteOutput, type SecretKey, type SecretVersion, type SessionRow, type SetResult, type TokenPlan, type TokenRow, Transport, Unreachable, type WorkloadIds, ageInDays, apiMember, byFolder, createClient, foldersOf, olderThan, planImport, serviceName, shownMember, unreachable };
|
package/dist/index.js
CHANGED
|
@@ -178,7 +178,8 @@ function createClient(options) {
|
|
|
178
178
|
projects: {
|
|
179
179
|
/** With their environments. */
|
|
180
180
|
list: () => call("GET /projects", {}),
|
|
181
|
-
|
|
181
|
+
/** Its `name`, which releases before 0.6.2 show, defaults to the slug. */
|
|
182
|
+
create: (project, input = {}) => call("PUT /projects/:project", { project }, input),
|
|
182
183
|
update: (project, patch) => call("PATCH /projects/:project", { project }, patch),
|
|
183
184
|
/** What deleting an archived project would erase and revoke; changes nothing. */
|
|
184
185
|
previewDelete: (project) => {
|
|
@@ -189,7 +190,8 @@ function createClient(options) {
|
|
|
189
190
|
delete: (project) => call("DELETE /projects/:project", { project })
|
|
190
191
|
},
|
|
191
192
|
environments: {
|
|
192
|
-
|
|
193
|
+
/** As a project's: its `name` defaults to the slug. `from` forks a sibling. */
|
|
194
|
+
create: (path, input = {}) => call("PUT /projects/:project/:environment", place(path), input),
|
|
193
195
|
update: (path, patch) => call("PATCH /projects/:project/:environment", place(path), patch),
|
|
194
196
|
/** What deleting an archived environment would erase and revoke; changes nothing. */
|
|
195
197
|
previewDelete: (path) => {
|
|
@@ -200,6 +202,14 @@ function createClient(options) {
|
|
|
200
202
|
delete: (path) => call("DELETE /projects/:project/:environment", place(path)),
|
|
201
203
|
/** The keys its sibling environments have and it lacks, read or not, and those its team dismissed. */
|
|
202
204
|
missing: (path) => call("GET /projects/:project/:environment/missing", place(path)),
|
|
205
|
+
/** A project's personal configs, for whoever manages its environments: whose, of what, and their key names. */
|
|
206
|
+
personal: (project) => call("GET /personal/:project", place(project)),
|
|
207
|
+
/**
|
|
208
|
+
* A version of what reading it would open: it changes whenever a read
|
|
209
|
+
* would, and reads no value, so it is not logged. Poll it, and read
|
|
210
|
+
* only when it changed.
|
|
211
|
+
*/
|
|
212
|
+
version: (path) => call("GET /projects/:project/:environment/version", place(path)),
|
|
203
213
|
/** Dismiss missing keys (`true`) or restore them (`null`). */
|
|
204
214
|
dismiss: (path, patch) => call("PATCH /projects/:project/:environment/dismissals", place(path), patch)
|
|
205
215
|
},
|
|
@@ -223,7 +233,12 @@ function createClient(options) {
|
|
|
223
233
|
/** A new version holding the old one's value. */
|
|
224
234
|
restore: (path, version) => call("POST /secrets/:project/:environment/:key/restore", place(path), { version }),
|
|
225
235
|
rename: (path, key) => call("PATCH /secrets/:project/:environment/:key", place(path), { key }),
|
|
226
|
-
update: (path, patch) => call("PATCH /secrets/:project/:environment/:key", place(path), patch)
|
|
236
|
+
update: (path, patch) => call("PATCH /secrets/:project/:environment/:key", place(path), patch),
|
|
237
|
+
/**
|
|
238
|
+
* In a fork, a key back to its parent's value (`true`), its own kept,
|
|
239
|
+
* or its own served again (`false`); `from` holds the parent's.
|
|
240
|
+
*/
|
|
241
|
+
inherit: (path, inherit) => call("PATCH /secrets/:project/:environment/:key", place(path), { inherit })
|
|
227
242
|
},
|
|
228
243
|
/**
|
|
229
244
|
* References: secrets read through others (docs/design/environments.md).
|
|
@@ -246,6 +261,10 @@ function createClient(options) {
|
|
|
246
261
|
/** Offboards; returns what to rotate. */
|
|
247
262
|
remove: (member) => call("DELETE /members/:member", { member })
|
|
248
263
|
},
|
|
264
|
+
/**
|
|
265
|
+
* A member's tokens: a service account's bearer tokens, or a person's
|
|
266
|
+
* personal tokens (`user:<email>`), which act as them within their scope.
|
|
267
|
+
*/
|
|
249
268
|
tokens: {
|
|
250
269
|
list: (member) => call("GET /members/:member/tokens", { member }),
|
|
251
270
|
/** What the token would reach, as the server would issue it now; issues nothing. */
|
|
@@ -269,6 +288,13 @@ function createClient(options) {
|
|
|
269
288
|
return send(method, `${route}?dryRun=1`, input);
|
|
270
289
|
},
|
|
271
290
|
create: (member, input) => call("POST /members/:member/bindings", { member }, input),
|
|
291
|
+
/** The service's bindings on an issuer that new keys would replace, and the keys as checked; writes nothing. */
|
|
292
|
+
previewKeys: (member, input) => {
|
|
293
|
+
const [method, route] = address("POST /members/:member/bindings/keys", { member });
|
|
294
|
+
return send(method, `${route}?dryRun=1`, input);
|
|
295
|
+
},
|
|
296
|
+
/** New keys, uploaded, for every binding of the service on the issuer: each replaced by one the same but for them. */
|
|
297
|
+
replaceKeys: (member, input) => call("POST /members/:member/bindings/keys", { member }, input),
|
|
272
298
|
remove: (member, id) => call("DELETE /members/:member/bindings/:id", {
|
|
273
299
|
member,
|
|
274
300
|
id
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Params, o as RouteInput, s as RouteKey } from "./index-
|
|
1
|
+
import { a as Params, o as RouteInput, s as RouteKey } from "./index-D802ZJF6.js";
|
|
2
2
|
//#region src/routes.d.ts
|
|
3
3
|
export type GetKey = Extract<RouteKey, `GET ${string}`>;
|
|
4
4
|
/** Each GET route, with what to ask it. */
|
package/dist/routes.js
CHANGED
|
@@ -6,6 +6,8 @@ function getCalls({ places, secrets, members, services }) {
|
|
|
6
6
|
"GET /projects": [{ params: {} }],
|
|
7
7
|
"GET /secrets/:project/:environment": places.map((params) => ({ params })),
|
|
8
8
|
"GET /projects/:project/:environment/missing": places.map((params) => ({ params })),
|
|
9
|
+
"GET /personal/:project": [...new Set(places.map((params) => params.project))].map((project) => ({ params: { project } })),
|
|
10
|
+
"GET /projects/:project/:environment/version": places.map((params) => ({ params })),
|
|
9
11
|
"GET /secrets/:project/:environment/:key/versions": secrets.map((params) => ({ params })),
|
|
10
12
|
"GET /members": [{ params: {} }, ...first === void 0 ? [] : [{
|
|
11
13
|
params: {},
|
|
@@ -74,6 +76,8 @@ const EVERY_ROUTE = {
|
|
|
74
76
|
"PATCH /projects/:project/:environment": true,
|
|
75
77
|
"DELETE /projects/:project/:environment": true,
|
|
76
78
|
"GET /projects/:project/:environment/missing": true,
|
|
79
|
+
"GET /personal/:project": true,
|
|
80
|
+
"GET /projects/:project/:environment/version": true,
|
|
77
81
|
"PATCH /projects/:project/:environment/dismissals": true,
|
|
78
82
|
"GET /secrets/:project/:environment": true,
|
|
79
83
|
"PATCH /secrets/:project/:environment": true,
|
|
@@ -97,6 +101,7 @@ const EVERY_ROUTE = {
|
|
|
97
101
|
"DELETE /members/:member/tokens/:id": true,
|
|
98
102
|
"GET /members/:member/bindings": true,
|
|
99
103
|
"POST /members/:member/bindings": true,
|
|
104
|
+
"POST /members/:member/bindings/keys": true,
|
|
100
105
|
"DELETE /members/:member/bindings/:id": true,
|
|
101
106
|
"GET /workloads/lookup": true,
|
|
102
107
|
"GET /workloads/repositories": true,
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -45,6 +45,15 @@ export type Api = {
|
|
|
45
45
|
mcp: string | null;
|
|
46
46
|
workloads: boolean;
|
|
47
47
|
};
|
|
48
|
+
personalToken: null | {
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
expiresAt: string;
|
|
52
|
+
scope: {
|
|
53
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
credentialExpiresAt: string | null;
|
|
48
57
|
environments: {
|
|
49
58
|
project: string;
|
|
50
59
|
environment: string;
|
|
@@ -65,6 +74,8 @@ export type Api = {
|
|
|
65
74
|
slug: string;
|
|
66
75
|
name: string;
|
|
67
76
|
accessible: boolean;
|
|
77
|
+
parent: string | null;
|
|
78
|
+
personal: boolean;
|
|
68
79
|
details: null | {
|
|
69
80
|
archivedAt: string | null;
|
|
70
81
|
secretCount: number | null;
|
|
@@ -76,7 +87,7 @@ export type Api = {
|
|
|
76
87
|
};
|
|
77
88
|
"PUT /projects/:project": {
|
|
78
89
|
input: {
|
|
79
|
-
name
|
|
90
|
+
name?: string;
|
|
80
91
|
};
|
|
81
92
|
output: {
|
|
82
93
|
project: {
|
|
@@ -128,9 +139,10 @@ export type Api = {
|
|
|
128
139
|
};
|
|
129
140
|
"PUT /projects/:project/:environment": {
|
|
130
141
|
input: {
|
|
131
|
-
name
|
|
142
|
+
name?: string;
|
|
132
143
|
from?: string;
|
|
133
144
|
references?: boolean;
|
|
145
|
+
inherit?: boolean;
|
|
134
146
|
};
|
|
135
147
|
output: {
|
|
136
148
|
environment: {
|
|
@@ -144,6 +156,7 @@ export type Api = {
|
|
|
144
156
|
keys: number;
|
|
145
157
|
references: number;
|
|
146
158
|
copied: string[];
|
|
159
|
+
inherits: boolean;
|
|
147
160
|
};
|
|
148
161
|
};
|
|
149
162
|
};
|
|
@@ -235,13 +248,43 @@ export type Api = {
|
|
|
235
248
|
version: number | null;
|
|
236
249
|
updatedAt: string | null;
|
|
237
250
|
updatedBy: string | null;
|
|
251
|
+
versionId: string | null;
|
|
252
|
+
generated: null | {
|
|
253
|
+
recipe: string;
|
|
254
|
+
pair?: {
|
|
255
|
+
private: string;
|
|
256
|
+
public: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
parent: null | {
|
|
260
|
+
from: string;
|
|
261
|
+
state: "inherited" | "overridden" | "removed";
|
|
262
|
+
changed: boolean;
|
|
263
|
+
reset: boolean;
|
|
264
|
+
held: boolean;
|
|
265
|
+
};
|
|
238
266
|
}[];
|
|
267
|
+
parents: string[];
|
|
268
|
+
personal: null | {
|
|
269
|
+
of: string;
|
|
270
|
+
fallback: boolean;
|
|
271
|
+
};
|
|
239
272
|
rotateAfterDays: number | null;
|
|
240
273
|
};
|
|
241
274
|
};
|
|
242
275
|
"PATCH /secrets/:project/:environment": {
|
|
243
276
|
input: {
|
|
244
277
|
[key: string]: string | null | {
|
|
278
|
+
value: string;
|
|
279
|
+
generated: {
|
|
280
|
+
recipe: string;
|
|
281
|
+
pair?: {
|
|
282
|
+
private: string;
|
|
283
|
+
public: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
replaces?: string;
|
|
287
|
+
} | {
|
|
245
288
|
ref: string;
|
|
246
289
|
};
|
|
247
290
|
};
|
|
@@ -268,6 +311,7 @@ export type Api = {
|
|
|
268
311
|
key?: string;
|
|
269
312
|
archived?: boolean;
|
|
270
313
|
folder?: string | null;
|
|
314
|
+
inherit?: boolean;
|
|
271
315
|
};
|
|
272
316
|
output: {
|
|
273
317
|
key: string;
|
|
@@ -286,6 +330,7 @@ export type Api = {
|
|
|
286
330
|
createdBy: string;
|
|
287
331
|
current: boolean;
|
|
288
332
|
kek: string;
|
|
333
|
+
recipe: string | null;
|
|
289
334
|
}[];
|
|
290
335
|
};
|
|
291
336
|
};
|
|
@@ -376,6 +421,7 @@ export type Api = {
|
|
|
376
421
|
values: {
|
|
377
422
|
[key: string]: string;
|
|
378
423
|
};
|
|
424
|
+
version: string | null;
|
|
379
425
|
};
|
|
380
426
|
};
|
|
381
427
|
"GET /members": {
|
|
@@ -481,6 +527,19 @@ export type Api = {
|
|
|
481
527
|
lastUsedIp: string | null;
|
|
482
528
|
expiresAt: string;
|
|
483
529
|
}[];
|
|
530
|
+
personalTokens: {
|
|
531
|
+
id: string;
|
|
532
|
+
label: string | null;
|
|
533
|
+
hint: string;
|
|
534
|
+
createdAt: string;
|
|
535
|
+
createdBy: string;
|
|
536
|
+
expiresAt: string;
|
|
537
|
+
lastUsedAt: string | null;
|
|
538
|
+
lastUsedIp: string | null;
|
|
539
|
+
scope: null | {
|
|
540
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
541
|
+
};
|
|
542
|
+
}[];
|
|
484
543
|
references: {
|
|
485
544
|
id: string;
|
|
486
545
|
holder: string;
|
|
@@ -492,6 +551,11 @@ export type Api = {
|
|
|
492
551
|
endedBy: string | null;
|
|
493
552
|
endedAt: string | null;
|
|
494
553
|
}[];
|
|
554
|
+
personal: {
|
|
555
|
+
project: string;
|
|
556
|
+
of: string;
|
|
557
|
+
slug: string;
|
|
558
|
+
}[];
|
|
495
559
|
};
|
|
496
560
|
};
|
|
497
561
|
"PUT /members/:member": {
|
|
@@ -605,6 +669,19 @@ export type Api = {
|
|
|
605
669
|
lastUsedIp: string | null;
|
|
606
670
|
expiresAt: string;
|
|
607
671
|
}[];
|
|
672
|
+
personalTokens: {
|
|
673
|
+
id: string;
|
|
674
|
+
label: string | null;
|
|
675
|
+
hint: string;
|
|
676
|
+
createdAt: string;
|
|
677
|
+
createdBy: string;
|
|
678
|
+
expiresAt: string;
|
|
679
|
+
lastUsedAt: string | null;
|
|
680
|
+
lastUsedIp: string | null;
|
|
681
|
+
scope: null | {
|
|
682
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
683
|
+
};
|
|
684
|
+
}[];
|
|
608
685
|
references: {
|
|
609
686
|
id: string;
|
|
610
687
|
holder: string;
|
|
@@ -616,6 +693,11 @@ export type Api = {
|
|
|
616
693
|
endedBy: string | null;
|
|
617
694
|
endedAt: string | null;
|
|
618
695
|
}[];
|
|
696
|
+
personal: {
|
|
697
|
+
project: string;
|
|
698
|
+
of: string;
|
|
699
|
+
slug: string;
|
|
700
|
+
}[];
|
|
619
701
|
};
|
|
620
702
|
};
|
|
621
703
|
};
|
|
@@ -639,8 +721,9 @@ export type Api = {
|
|
|
639
721
|
};
|
|
640
722
|
"POST /members/:member/tokens": {
|
|
641
723
|
input: {
|
|
642
|
-
expiresInDays: number;
|
|
643
724
|
label?: string | null;
|
|
725
|
+
expiresInDays?: number;
|
|
726
|
+
expiresInMinutes?: number;
|
|
644
727
|
scope?: {
|
|
645
728
|
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
646
729
|
};
|
|
@@ -672,6 +755,11 @@ export type Api = {
|
|
|
672
755
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
673
756
|
issuer: string;
|
|
674
757
|
jwksUri: string;
|
|
758
|
+
keys: null | {
|
|
759
|
+
kid: string | null;
|
|
760
|
+
alg: "ES256" | "RS256";
|
|
761
|
+
thumbprint: string;
|
|
762
|
+
}[];
|
|
675
763
|
claims: {
|
|
676
764
|
[key: string]: string | string[];
|
|
677
765
|
};
|
|
@@ -697,11 +785,21 @@ export type Api = {
|
|
|
697
785
|
};
|
|
698
786
|
label?: string | null;
|
|
699
787
|
replaces?: string[];
|
|
788
|
+
jwks?: {
|
|
789
|
+
keys: {
|
|
790
|
+
[key: string]: unknown;
|
|
791
|
+
}[];
|
|
792
|
+
};
|
|
700
793
|
};
|
|
701
794
|
output: {
|
|
702
795
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
703
796
|
issuer: string;
|
|
704
797
|
jwksUri: string;
|
|
798
|
+
keys: null | {
|
|
799
|
+
kid: string | null;
|
|
800
|
+
alg: "ES256" | "RS256";
|
|
801
|
+
thumbprint: string;
|
|
802
|
+
}[];
|
|
705
803
|
claims: {
|
|
706
804
|
[key: string]: string | string[];
|
|
707
805
|
};
|
|
@@ -718,6 +816,11 @@ export type Api = {
|
|
|
718
816
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
719
817
|
issuer: string;
|
|
720
818
|
jwksUri: string;
|
|
819
|
+
keys: null | {
|
|
820
|
+
kid: string | null;
|
|
821
|
+
alg: "ES256" | "RS256";
|
|
822
|
+
thumbprint: string;
|
|
823
|
+
}[];
|
|
721
824
|
claims: {
|
|
722
825
|
[key: string]: string | string[];
|
|
723
826
|
};
|
|
@@ -948,6 +1051,10 @@ export type Api = {
|
|
|
948
1051
|
environment: string | null;
|
|
949
1052
|
key: string | null;
|
|
950
1053
|
version: number | null;
|
|
1054
|
+
secrets: null | {
|
|
1055
|
+
key: string | null;
|
|
1056
|
+
version: number | null;
|
|
1057
|
+
}[];
|
|
951
1058
|
operationId: string | null;
|
|
952
1059
|
relatedSeq: number | null;
|
|
953
1060
|
requestId: string | null;
|
|
@@ -957,10 +1064,15 @@ export type Api = {
|
|
|
957
1064
|
[key: string]: string | number;
|
|
958
1065
|
};
|
|
959
1066
|
};
|
|
1067
|
+
token: null | {
|
|
1068
|
+
id: string;
|
|
1069
|
+
label: string;
|
|
1070
|
+
};
|
|
960
1071
|
metadata: {
|
|
961
1072
|
[key: string]: unknown;
|
|
962
1073
|
};
|
|
963
1074
|
}[];
|
|
1075
|
+
more: boolean;
|
|
964
1076
|
hidden?: {
|
|
965
1077
|
action: string;
|
|
966
1078
|
count: number;
|
|
@@ -1173,6 +1285,68 @@ export type Api = {
|
|
|
1173
1285
|
app: null;
|
|
1174
1286
|
};
|
|
1175
1287
|
};
|
|
1288
|
+
"GET /projects/:project/:environment/version": {
|
|
1289
|
+
input: undefined;
|
|
1290
|
+
output: {
|
|
1291
|
+
version: string;
|
|
1292
|
+
};
|
|
1293
|
+
};
|
|
1294
|
+
"POST /members/:member/bindings/keys": {
|
|
1295
|
+
input: {
|
|
1296
|
+
issuer: string;
|
|
1297
|
+
jwks: {
|
|
1298
|
+
keys: {
|
|
1299
|
+
[key: string]: unknown;
|
|
1300
|
+
}[];
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
output: {
|
|
1304
|
+
issuer: string;
|
|
1305
|
+
jwksUri: string;
|
|
1306
|
+
keys: {
|
|
1307
|
+
kid: string | null;
|
|
1308
|
+
alg: "ES256" | "RS256";
|
|
1309
|
+
thumbprint: string;
|
|
1310
|
+
}[];
|
|
1311
|
+
replaces: string[];
|
|
1312
|
+
} | {
|
|
1313
|
+
bindings: {
|
|
1314
|
+
id: string;
|
|
1315
|
+
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1316
|
+
issuer: string;
|
|
1317
|
+
jwksUri: string;
|
|
1318
|
+
keys: null | {
|
|
1319
|
+
kid: string | null;
|
|
1320
|
+
alg: "ES256" | "RS256";
|
|
1321
|
+
thumbprint: string;
|
|
1322
|
+
}[];
|
|
1323
|
+
claims: {
|
|
1324
|
+
[key: string]: string | string[];
|
|
1325
|
+
};
|
|
1326
|
+
scope: null | {
|
|
1327
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1328
|
+
};
|
|
1329
|
+
label: string | null;
|
|
1330
|
+
createdAt: string;
|
|
1331
|
+
createdBy: string;
|
|
1332
|
+
lastUsedAt: string | null;
|
|
1333
|
+
}[];
|
|
1334
|
+
replaced: string[];
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
"GET /personal/:project": {
|
|
1338
|
+
input: undefined;
|
|
1339
|
+
output: {
|
|
1340
|
+
configs: {
|
|
1341
|
+
owner: string;
|
|
1342
|
+
of: string;
|
|
1343
|
+
slug: string;
|
|
1344
|
+
keys: string[];
|
|
1345
|
+
archived: boolean;
|
|
1346
|
+
createdAt: string;
|
|
1347
|
+
}[];
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1176
1350
|
};
|
|
1177
1351
|
|
|
1178
1352
|
export type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
|
|
@@ -1234,6 +1408,10 @@ export type AuditEntryView = {
|
|
|
1234
1408
|
environment: string | null;
|
|
1235
1409
|
key: string | null;
|
|
1236
1410
|
version: number | null;
|
|
1411
|
+
secrets: null | {
|
|
1412
|
+
key: string | null;
|
|
1413
|
+
version: number | null;
|
|
1414
|
+
}[];
|
|
1237
1415
|
operationId: string | null;
|
|
1238
1416
|
relatedSeq: number | null;
|
|
1239
1417
|
requestId: string | null;
|
|
@@ -1243,6 +1421,10 @@ export type AuditEntryView = {
|
|
|
1243
1421
|
[key: string]: string | number;
|
|
1244
1422
|
};
|
|
1245
1423
|
};
|
|
1424
|
+
token: null | {
|
|
1425
|
+
id: string;
|
|
1426
|
+
label: string;
|
|
1427
|
+
};
|
|
1246
1428
|
metadata: {
|
|
1247
1429
|
[key: string]: unknown;
|
|
1248
1430
|
};
|
|
@@ -1289,6 +1471,11 @@ export type BindingPlan = {
|
|
|
1289
1471
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1290
1472
|
issuer: string;
|
|
1291
1473
|
jwksUri: string;
|
|
1474
|
+
keys: null | {
|
|
1475
|
+
kid: string | null;
|
|
1476
|
+
alg: "ES256" | "RS256";
|
|
1477
|
+
thumbprint: string;
|
|
1478
|
+
}[];
|
|
1292
1479
|
claims: {
|
|
1293
1480
|
[key: string]: string | string[];
|
|
1294
1481
|
};
|
|
@@ -1306,6 +1493,11 @@ export type BindingView = {
|
|
|
1306
1493
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1307
1494
|
issuer: string;
|
|
1308
1495
|
jwksUri: string;
|
|
1496
|
+
keys: null | {
|
|
1497
|
+
kid: string | null;
|
|
1498
|
+
alg: "ES256" | "RS256";
|
|
1499
|
+
thumbprint: string;
|
|
1500
|
+
}[];
|
|
1309
1501
|
claims: {
|
|
1310
1502
|
[key: string]: string | string[];
|
|
1311
1503
|
};
|
|
@@ -1330,6 +1522,17 @@ export type ConnectedApp = {
|
|
|
1330
1522
|
expiresAt: string;
|
|
1331
1523
|
};
|
|
1332
1524
|
|
|
1525
|
+
export type KeysPlan = {
|
|
1526
|
+
issuer: string;
|
|
1527
|
+
jwksUri: string;
|
|
1528
|
+
keys: {
|
|
1529
|
+
kid: string | null;
|
|
1530
|
+
alg: "ES256" | "RS256";
|
|
1531
|
+
thumbprint: string;
|
|
1532
|
+
}[];
|
|
1533
|
+
replaces: string[];
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1333
1536
|
export type Deletion = {
|
|
1334
1537
|
path: string;
|
|
1335
1538
|
tombstone: string;
|
|
@@ -1425,6 +1628,13 @@ export type IdentityRow = {
|
|
|
1425
1628
|
lastSignInAt: string | null;
|
|
1426
1629
|
};
|
|
1427
1630
|
|
|
1631
|
+
export type InheritResult = {
|
|
1632
|
+
key: string;
|
|
1633
|
+
archived: boolean;
|
|
1634
|
+
folder: string | null;
|
|
1635
|
+
from: string;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1428
1638
|
export type Me = {
|
|
1429
1639
|
principal: {
|
|
1430
1640
|
type: "service" | "user";
|
|
@@ -1464,6 +1674,15 @@ export type Me = {
|
|
|
1464
1674
|
mcp: string | null;
|
|
1465
1675
|
workloads: boolean;
|
|
1466
1676
|
};
|
|
1677
|
+
personalToken: null | {
|
|
1678
|
+
id: string;
|
|
1679
|
+
label: string;
|
|
1680
|
+
expiresAt: string;
|
|
1681
|
+
scope: {
|
|
1682
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1685
|
+
credentialExpiresAt: string | null;
|
|
1467
1686
|
environments: {
|
|
1468
1687
|
project: string;
|
|
1469
1688
|
environment: string;
|
|
@@ -1612,6 +1831,19 @@ export type OffboardingReport = {
|
|
|
1612
1831
|
lastUsedIp: string | null;
|
|
1613
1832
|
expiresAt: string;
|
|
1614
1833
|
}[];
|
|
1834
|
+
personalTokens: {
|
|
1835
|
+
id: string;
|
|
1836
|
+
label: string | null;
|
|
1837
|
+
hint: string;
|
|
1838
|
+
createdAt: string;
|
|
1839
|
+
createdBy: string;
|
|
1840
|
+
expiresAt: string;
|
|
1841
|
+
lastUsedAt: string | null;
|
|
1842
|
+
lastUsedIp: string | null;
|
|
1843
|
+
scope: null | {
|
|
1844
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1845
|
+
};
|
|
1846
|
+
}[];
|
|
1615
1847
|
references: {
|
|
1616
1848
|
id: string;
|
|
1617
1849
|
holder: string;
|
|
@@ -1623,6 +1855,20 @@ export type OffboardingReport = {
|
|
|
1623
1855
|
endedBy: string | null;
|
|
1624
1856
|
endedAt: string | null;
|
|
1625
1857
|
}[];
|
|
1858
|
+
personal: {
|
|
1859
|
+
project: string;
|
|
1860
|
+
of: string;
|
|
1861
|
+
slug: string;
|
|
1862
|
+
}[];
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
export type PersonalConfig = {
|
|
1866
|
+
owner: string;
|
|
1867
|
+
of: string;
|
|
1868
|
+
slug: string;
|
|
1869
|
+
keys: string[];
|
|
1870
|
+
archived: boolean;
|
|
1871
|
+
createdAt: string;
|
|
1626
1872
|
};
|
|
1627
1873
|
|
|
1628
1874
|
export type ListedReference = {
|
|
@@ -1650,6 +1896,8 @@ export type ProjectSummary = {
|
|
|
1650
1896
|
slug: string;
|
|
1651
1897
|
name: string;
|
|
1652
1898
|
accessible: boolean;
|
|
1899
|
+
parent: string | null;
|
|
1900
|
+
personal: boolean;
|
|
1653
1901
|
details: null | {
|
|
1654
1902
|
archivedAt: string | null;
|
|
1655
1903
|
secretCount: number | null;
|
|
@@ -1695,6 +1943,21 @@ export type SecretKey = {
|
|
|
1695
1943
|
version: number | null;
|
|
1696
1944
|
updatedAt: string | null;
|
|
1697
1945
|
updatedBy: string | null;
|
|
1946
|
+
versionId: string | null;
|
|
1947
|
+
generated: null | {
|
|
1948
|
+
recipe: string;
|
|
1949
|
+
pair?: {
|
|
1950
|
+
private: string;
|
|
1951
|
+
public: string;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
parent: null | {
|
|
1955
|
+
from: string;
|
|
1956
|
+
state: "inherited" | "overridden" | "removed";
|
|
1957
|
+
changed: boolean;
|
|
1958
|
+
reset: boolean;
|
|
1959
|
+
held: boolean;
|
|
1960
|
+
};
|
|
1698
1961
|
};
|
|
1699
1962
|
|
|
1700
1963
|
export type SecretVersion = {
|
|
@@ -1703,20 +1966,7 @@ export type SecretVersion = {
|
|
|
1703
1966
|
createdBy: string;
|
|
1704
1967
|
current: boolean;
|
|
1705
1968
|
kek: string;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
export type ServiceTokenRow = {
|
|
1709
|
-
id: string;
|
|
1710
|
-
label: string | null;
|
|
1711
|
-
hint: string;
|
|
1712
|
-
createdAt: string;
|
|
1713
|
-
createdBy: string;
|
|
1714
|
-
expiresAt: string;
|
|
1715
|
-
lastUsedAt: string | null;
|
|
1716
|
-
lastUsedIp: string | null;
|
|
1717
|
-
scope: null | {
|
|
1718
|
-
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1719
|
-
};
|
|
1969
|
+
recipe: string | null;
|
|
1720
1970
|
};
|
|
1721
1971
|
|
|
1722
1972
|
export type SessionRow = {
|
|
@@ -1750,3 +2000,17 @@ export type TokenPlan = {
|
|
|
1750
2000
|
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1751
2001
|
};
|
|
1752
2002
|
};
|
|
2003
|
+
|
|
2004
|
+
export type TokenRow = {
|
|
2005
|
+
id: string;
|
|
2006
|
+
label: string | null;
|
|
2007
|
+
hint: string;
|
|
2008
|
+
createdAt: string;
|
|
2009
|
+
createdBy: string;
|
|
2010
|
+
expiresAt: string;
|
|
2011
|
+
lastUsedAt: string | null;
|
|
2012
|
+
lastUsedIp: string | null;
|
|
2013
|
+
scope: null | {
|
|
2014
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
2015
|
+
};
|
|
2016
|
+
};
|