@coffre/client 0.6.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credential.d.ts +24 -0
- package/dist/credential.js +26 -0
- package/dist/{index-M5Gp4kSA.d.ts → index-DgII_R1y.d.ts} +425 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +6 -0
- package/package.json +6 -1
- package/src/api.ts +294 -15
- package/src/credential.ts +48 -0
- package/src/index.ts +40 -2
- package/src/routes.ts +6 -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-DgII_R1y.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
|
@@ -202,6 +202,14 @@ function createClient(options) {
|
|
|
202
202
|
delete: (path) => call("DELETE /projects/:project/:environment", place(path)),
|
|
203
203
|
/** The keys its sibling environments have and it lacks, read or not, and those its team dismissed. */
|
|
204
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)),
|
|
205
213
|
/** Dismiss missing keys (`true`) or restore them (`null`). */
|
|
206
214
|
dismiss: (path, patch) => call("PATCH /projects/:project/:environment/dismissals", place(path), patch)
|
|
207
215
|
},
|
|
@@ -225,7 +233,12 @@ function createClient(options) {
|
|
|
225
233
|
/** A new version holding the old one's value. */
|
|
226
234
|
restore: (path, version) => call("POST /secrets/:project/:environment/:key/restore", place(path), { version }),
|
|
227
235
|
rename: (path, key) => call("PATCH /secrets/:project/:environment/:key", place(path), { key }),
|
|
228
|
-
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 })
|
|
229
242
|
},
|
|
230
243
|
/**
|
|
231
244
|
* References: secrets read through others (docs/design/environments.md).
|
|
@@ -248,6 +261,10 @@ function createClient(options) {
|
|
|
248
261
|
/** Offboards; returns what to rotate. */
|
|
249
262
|
remove: (member) => call("DELETE /members/:member", { member })
|
|
250
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
|
+
*/
|
|
251
268
|
tokens: {
|
|
252
269
|
list: (member) => call("GET /members/:member/tokens", { member }),
|
|
253
270
|
/** What the token would reach, as the server would issue it now; issues nothing. */
|
|
@@ -262,6 +279,12 @@ function createClient(options) {
|
|
|
262
279
|
id
|
|
263
280
|
})
|
|
264
281
|
},
|
|
282
|
+
/**
|
|
283
|
+
* Handles: stand-ins a person's app holds in place of an environment's
|
|
284
|
+
* values, which only the credential proxy (`/use`) takes. The value is
|
|
285
|
+
* in the answer, and only there; it is revoked as a token is.
|
|
286
|
+
*/
|
|
287
|
+
handles: { create: (input) => call("POST /handles", {}, input) },
|
|
265
288
|
/** Trust bindings: which CI runs may sign in as a service, by their platform's ID token. */
|
|
266
289
|
bindings: {
|
|
267
290
|
list: (member) => call("GET /members/:member/bindings", { member }),
|
|
@@ -271,6 +294,13 @@ function createClient(options) {
|
|
|
271
294
|
return send(method, `${route}?dryRun=1`, input);
|
|
272
295
|
},
|
|
273
296
|
create: (member, input) => call("POST /members/:member/bindings", { member }, input),
|
|
297
|
+
/** The service's bindings on an issuer that new keys would replace, and the keys as checked; writes nothing. */
|
|
298
|
+
previewKeys: (member, input) => {
|
|
299
|
+
const [method, route] = address("POST /members/:member/bindings/keys", { member });
|
|
300
|
+
return send(method, `${route}?dryRun=1`, input);
|
|
301
|
+
},
|
|
302
|
+
/** New keys, uploaded, for every binding of the service on the issuer: each replaced by one the same but for them. */
|
|
303
|
+
replaceKeys: (member, input) => call("POST /members/:member/bindings/keys", { member }, input),
|
|
274
304
|
remove: (member, id) => call("DELETE /members/:member/bindings/:id", {
|
|
275
305
|
member,
|
|
276
306
|
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-DgII_R1y.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,
|
|
@@ -95,8 +99,10 @@ const EVERY_ROUTE = {
|
|
|
95
99
|
"GET /members/:member/tokens": true,
|
|
96
100
|
"POST /members/:member/tokens": true,
|
|
97
101
|
"DELETE /members/:member/tokens/:id": true,
|
|
102
|
+
"POST /handles": true,
|
|
98
103
|
"GET /members/:member/bindings": true,
|
|
99
104
|
"POST /members/:member/bindings": true,
|
|
105
|
+
"POST /members/:member/bindings/keys": true,
|
|
100
106
|
"DELETE /members/:member/bindings/:id": true,
|
|
101
107
|
"GET /workloads/lookup": true,
|
|
102
108
|
"GET /workloads/repositories": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffre/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The coffre API as typed function calls.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"types": "./dist/routes.d.ts",
|
|
28
28
|
"default": "./dist/routes.js"
|
|
29
29
|
},
|
|
30
|
+
"./credential": {
|
|
31
|
+
"coffre:source": "./src/credential.ts",
|
|
32
|
+
"types": "./dist/credential.d.ts",
|
|
33
|
+
"default": "./dist/credential.js"
|
|
34
|
+
},
|
|
30
35
|
"./package.json": "./package.json"
|
|
31
36
|
},
|
|
32
37
|
"devDependencies": {
|
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;
|
|
@@ -131,6 +142,7 @@ export type Api = {
|
|
|
131
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,83 @@ 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
|
+
};
|
|
1350
|
+
"POST /handles": {
|
|
1351
|
+
input: {
|
|
1352
|
+
label: string;
|
|
1353
|
+
paths: string[];
|
|
1354
|
+
expiresInMinutes?: number;
|
|
1355
|
+
};
|
|
1356
|
+
output: {
|
|
1357
|
+
id: string;
|
|
1358
|
+
token: string;
|
|
1359
|
+
expiresAt: string;
|
|
1360
|
+
scope: {
|
|
1361
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1176
1365
|
};
|
|
1177
1366
|
|
|
1178
1367
|
export type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
|
|
@@ -1234,6 +1423,10 @@ export type AuditEntryView = {
|
|
|
1234
1423
|
environment: string | null;
|
|
1235
1424
|
key: string | null;
|
|
1236
1425
|
version: number | null;
|
|
1426
|
+
secrets: null | {
|
|
1427
|
+
key: string | null;
|
|
1428
|
+
version: number | null;
|
|
1429
|
+
}[];
|
|
1237
1430
|
operationId: string | null;
|
|
1238
1431
|
relatedSeq: number | null;
|
|
1239
1432
|
requestId: string | null;
|
|
@@ -1243,6 +1436,10 @@ export type AuditEntryView = {
|
|
|
1243
1436
|
[key: string]: string | number;
|
|
1244
1437
|
};
|
|
1245
1438
|
};
|
|
1439
|
+
token: null | {
|
|
1440
|
+
id: string;
|
|
1441
|
+
label: string;
|
|
1442
|
+
};
|
|
1246
1443
|
metadata: {
|
|
1247
1444
|
[key: string]: unknown;
|
|
1248
1445
|
};
|
|
@@ -1289,6 +1486,11 @@ export type BindingPlan = {
|
|
|
1289
1486
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1290
1487
|
issuer: string;
|
|
1291
1488
|
jwksUri: string;
|
|
1489
|
+
keys: null | {
|
|
1490
|
+
kid: string | null;
|
|
1491
|
+
alg: "ES256" | "RS256";
|
|
1492
|
+
thumbprint: string;
|
|
1493
|
+
}[];
|
|
1292
1494
|
claims: {
|
|
1293
1495
|
[key: string]: string | string[];
|
|
1294
1496
|
};
|
|
@@ -1306,6 +1508,11 @@ export type BindingView = {
|
|
|
1306
1508
|
profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
|
|
1307
1509
|
issuer: string;
|
|
1308
1510
|
jwksUri: string;
|
|
1511
|
+
keys: null | {
|
|
1512
|
+
kid: string | null;
|
|
1513
|
+
alg: "ES256" | "RS256";
|
|
1514
|
+
thumbprint: string;
|
|
1515
|
+
}[];
|
|
1309
1516
|
claims: {
|
|
1310
1517
|
[key: string]: string | string[];
|
|
1311
1518
|
};
|
|
@@ -1330,6 +1537,17 @@ export type ConnectedApp = {
|
|
|
1330
1537
|
expiresAt: string;
|
|
1331
1538
|
};
|
|
1332
1539
|
|
|
1540
|
+
export type KeysPlan = {
|
|
1541
|
+
issuer: string;
|
|
1542
|
+
jwksUri: string;
|
|
1543
|
+
keys: {
|
|
1544
|
+
kid: string | null;
|
|
1545
|
+
alg: "ES256" | "RS256";
|
|
1546
|
+
thumbprint: string;
|
|
1547
|
+
}[];
|
|
1548
|
+
replaces: string[];
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1333
1551
|
export type Deletion = {
|
|
1334
1552
|
path: string;
|
|
1335
1553
|
tombstone: string;
|
|
@@ -1425,6 +1643,13 @@ export type IdentityRow = {
|
|
|
1425
1643
|
lastSignInAt: string | null;
|
|
1426
1644
|
};
|
|
1427
1645
|
|
|
1646
|
+
export type InheritResult = {
|
|
1647
|
+
key: string;
|
|
1648
|
+
archived: boolean;
|
|
1649
|
+
folder: string | null;
|
|
1650
|
+
from: string;
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1428
1653
|
export type Me = {
|
|
1429
1654
|
principal: {
|
|
1430
1655
|
type: "service" | "user";
|
|
@@ -1464,6 +1689,15 @@ export type Me = {
|
|
|
1464
1689
|
mcp: string | null;
|
|
1465
1690
|
workloads: boolean;
|
|
1466
1691
|
};
|
|
1692
|
+
personalToken: null | {
|
|
1693
|
+
id: string;
|
|
1694
|
+
label: string;
|
|
1695
|
+
expiresAt: string;
|
|
1696
|
+
scope: {
|
|
1697
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
credentialExpiresAt: string | null;
|
|
1467
1701
|
environments: {
|
|
1468
1702
|
project: string;
|
|
1469
1703
|
environment: string;
|
|
@@ -1612,6 +1846,19 @@ export type OffboardingReport = {
|
|
|
1612
1846
|
lastUsedIp: string | null;
|
|
1613
1847
|
expiresAt: string;
|
|
1614
1848
|
}[];
|
|
1849
|
+
personalTokens: {
|
|
1850
|
+
id: string;
|
|
1851
|
+
label: string | null;
|
|
1852
|
+
hint: string;
|
|
1853
|
+
createdAt: string;
|
|
1854
|
+
createdBy: string;
|
|
1855
|
+
expiresAt: string;
|
|
1856
|
+
lastUsedAt: string | null;
|
|
1857
|
+
lastUsedIp: string | null;
|
|
1858
|
+
scope: null | {
|
|
1859
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1860
|
+
};
|
|
1861
|
+
}[];
|
|
1615
1862
|
references: {
|
|
1616
1863
|
id: string;
|
|
1617
1864
|
holder: string;
|
|
@@ -1623,6 +1870,20 @@ export type OffboardingReport = {
|
|
|
1623
1870
|
endedBy: string | null;
|
|
1624
1871
|
endedAt: string | null;
|
|
1625
1872
|
}[];
|
|
1873
|
+
personal: {
|
|
1874
|
+
project: string;
|
|
1875
|
+
of: string;
|
|
1876
|
+
slug: string;
|
|
1877
|
+
}[];
|
|
1878
|
+
};
|
|
1879
|
+
|
|
1880
|
+
export type PersonalConfig = {
|
|
1881
|
+
owner: string;
|
|
1882
|
+
of: string;
|
|
1883
|
+
slug: string;
|
|
1884
|
+
keys: string[];
|
|
1885
|
+
archived: boolean;
|
|
1886
|
+
createdAt: string;
|
|
1626
1887
|
};
|
|
1627
1888
|
|
|
1628
1889
|
export type ListedReference = {
|
|
@@ -1650,6 +1911,8 @@ export type ProjectSummary = {
|
|
|
1650
1911
|
slug: string;
|
|
1651
1912
|
name: string;
|
|
1652
1913
|
accessible: boolean;
|
|
1914
|
+
parent: string | null;
|
|
1915
|
+
personal: boolean;
|
|
1653
1916
|
details: null | {
|
|
1654
1917
|
archivedAt: string | null;
|
|
1655
1918
|
secretCount: number | null;
|
|
@@ -1695,6 +1958,21 @@ export type SecretKey = {
|
|
|
1695
1958
|
version: number | null;
|
|
1696
1959
|
updatedAt: string | null;
|
|
1697
1960
|
updatedBy: string | null;
|
|
1961
|
+
versionId: string | null;
|
|
1962
|
+
generated: null | {
|
|
1963
|
+
recipe: string;
|
|
1964
|
+
pair?: {
|
|
1965
|
+
private: string;
|
|
1966
|
+
public: string;
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
parent: null | {
|
|
1970
|
+
from: string;
|
|
1971
|
+
state: "inherited" | "overridden" | "removed";
|
|
1972
|
+
changed: boolean;
|
|
1973
|
+
reset: boolean;
|
|
1974
|
+
held: boolean;
|
|
1975
|
+
};
|
|
1698
1976
|
};
|
|
1699
1977
|
|
|
1700
1978
|
export type SecretVersion = {
|
|
@@ -1703,20 +1981,7 @@ export type SecretVersion = {
|
|
|
1703
1981
|
createdBy: string;
|
|
1704
1982
|
current: boolean;
|
|
1705
1983
|
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
|
-
};
|
|
1984
|
+
recipe: string | null;
|
|
1720
1985
|
};
|
|
1721
1986
|
|
|
1722
1987
|
export type SessionRow = {
|
|
@@ -1750,3 +2015,17 @@ export type TokenPlan = {
|
|
|
1750
2015
|
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
1751
2016
|
};
|
|
1752
2017
|
};
|
|
2018
|
+
|
|
2019
|
+
export type TokenRow = {
|
|
2020
|
+
id: string;
|
|
2021
|
+
label: string | null;
|
|
2022
|
+
hint: string;
|
|
2023
|
+
createdAt: string;
|
|
2024
|
+
createdBy: string;
|
|
2025
|
+
expiresAt: string;
|
|
2026
|
+
lastUsedAt: string | null;
|
|
2027
|
+
lastUsedIp: string | null;
|
|
2028
|
+
scope: null | {
|
|
2029
|
+
[key: string]: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
|
|
2030
|
+
};
|
|
2031
|
+
};
|