@coffre/client 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -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;
@@ -226,6 +424,7 @@ export type Api = {
226
424
  sessions: number;
227
425
  tokens: number;
228
426
  identities: number;
427
+ apps: number;
229
428
  };
230
429
  exposed: {
231
430
  project: string;
@@ -244,6 +443,28 @@ export type Api = {
244
443
  expiresAt: string;
245
444
  lastUsedAt: string | null;
246
445
  }[];
446
+ apps: {
447
+ id: string;
448
+ name: string;
449
+ host: string | null;
450
+ registration: "cimd" | "dcr";
451
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
452
+ createdAt: string;
453
+ lastUsedAt: string | null;
454
+ lastUsedIp: string | null;
455
+ expiresAt: string;
456
+ }[];
457
+ references: {
458
+ id: string;
459
+ holder: string;
460
+ source: string;
461
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
462
+ version: number | null;
463
+ createdBy: string;
464
+ createdAt: string;
465
+ endedBy: string | null;
466
+ endedAt: string | null;
467
+ }[];
247
468
  };
248
469
  };
249
470
  "PUT /members/:member": {
@@ -264,6 +485,7 @@ export type Api = {
264
485
  sessions: number;
265
486
  tokens: number;
266
487
  identities: number;
488
+ apps: number;
267
489
  };
268
490
  report: {
269
491
  principalType: "service" | "user";
@@ -278,6 +500,7 @@ export type Api = {
278
500
  sessions: number;
279
501
  tokens: number;
280
502
  identities: number;
503
+ apps: number;
281
504
  };
282
505
  exposed: {
283
506
  project: string;
@@ -296,6 +519,28 @@ export type Api = {
296
519
  expiresAt: string;
297
520
  lastUsedAt: string | null;
298
521
  }[];
522
+ apps: {
523
+ id: string;
524
+ name: string;
525
+ host: string | null;
526
+ registration: "cimd" | "dcr";
527
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
528
+ createdAt: string;
529
+ lastUsedAt: string | null;
530
+ lastUsedIp: string | null;
531
+ expiresAt: string;
532
+ }[];
533
+ references: {
534
+ id: string;
535
+ holder: string;
536
+ source: string;
537
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
538
+ version: number | null;
539
+ createdBy: string;
540
+ createdAt: string;
541
+ endedBy: string | null;
542
+ endedAt: string | null;
543
+ }[];
299
544
  };
300
545
  };
301
546
  };
@@ -484,6 +729,80 @@ export type Api = {
484
729
  decided: true;
485
730
  };
486
731
  };
732
+ "GET /oauth/authorizations": {
733
+ input: {
734
+ client_id?: string;
735
+ redirect_uri?: string;
736
+ response_type?: string;
737
+ code_challenge?: string;
738
+ code_challenge_method?: string;
739
+ state?: string;
740
+ scope?: string;
741
+ resource?: string;
742
+ };
743
+ output: {
744
+ status: "invalid";
745
+ message: string;
746
+ } | {
747
+ status: "refused";
748
+ message: string;
749
+ redirect: string;
750
+ } | {
751
+ status: "ready";
752
+ client: {
753
+ id: string;
754
+ name: string;
755
+ host: string | null;
756
+ registration: "cimd" | "dcr";
757
+ };
758
+ redirectHost: string;
759
+ loopbackOnly: boolean;
760
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
761
+ connections: ("browse" | "manage-access" | "read-values" | "write")[][];
762
+ days: number;
763
+ };
764
+ };
765
+ "POST /oauth/authorizations": {
766
+ input: {
767
+ request: {
768
+ client_id?: string;
769
+ redirect_uri?: string;
770
+ response_type?: string;
771
+ code_challenge?: string;
772
+ code_challenge_method?: string;
773
+ state?: string;
774
+ scope?: string;
775
+ resource?: string;
776
+ };
777
+ approve: boolean;
778
+ scopes?: string[];
779
+ };
780
+ output: {
781
+ redirect: string;
782
+ };
783
+ };
784
+ "GET /apps": {
785
+ input: undefined;
786
+ output: {
787
+ apps: {
788
+ id: string;
789
+ name: string;
790
+ host: string | null;
791
+ registration: "cimd" | "dcr";
792
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
793
+ createdAt: string;
794
+ lastUsedAt: string | null;
795
+ lastUsedIp: string | null;
796
+ expiresAt: string;
797
+ }[];
798
+ };
799
+ };
800
+ "DELETE /apps/:id": {
801
+ input: undefined;
802
+ output: {
803
+ disconnected: true;
804
+ };
805
+ };
487
806
  "GET /audit": {
488
807
  input: {
489
808
  path?: string;
@@ -568,6 +887,66 @@ export type Api = {
568
887
  };
569
888
  };
570
889
  };
890
+ "GET /approvals/:id": {
891
+ input: undefined;
892
+ output: {
893
+ approval: {
894
+ id: string;
895
+ status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
896
+ client: {
897
+ name: string;
898
+ host: string | null;
899
+ registration: "cimd" | "dcr";
900
+ };
901
+ tool: string;
902
+ summary: string;
903
+ details: {
904
+ label: string;
905
+ value: string;
906
+ kind?: "mono" | "time";
907
+ }[];
908
+ asks: null | {
909
+ value: {
910
+ label: string;
911
+ note: string;
912
+ };
913
+ };
914
+ kind: "change" | "reveal";
915
+ digest: string;
916
+ createdAt: string;
917
+ expiresAt: string;
918
+ outcome: null | {
919
+ text: string;
920
+ result?: {
921
+ [key: string]: unknown;
922
+ };
923
+ error?: string;
924
+ };
925
+ };
926
+ };
927
+ };
928
+ "POST /approvals/:id": {
929
+ input: {
930
+ approve: boolean;
931
+ digest: string;
932
+ value?: string;
933
+ };
934
+ output: {
935
+ status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
936
+ outcome: {
937
+ text: string;
938
+ result?: {
939
+ [key: string]: unknown;
940
+ };
941
+ error?: string;
942
+ };
943
+ shown: {
944
+ label: string;
945
+ value: string;
946
+ kind?: "mono" | "time";
947
+ }[];
948
+ };
949
+ };
571
950
  };
572
951
 
573
952
  export type AccessValue = "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer" | null | {
@@ -575,6 +954,40 @@ export type AccessValue = "access-manager" | "auditor" | "developer" | "maintain
575
954
  until: string | null;
576
955
  };
577
956
 
957
+ export type ApprovalView = {
958
+ id: string;
959
+ status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
960
+ client: {
961
+ name: string;
962
+ host: string | null;
963
+ registration: "cimd" | "dcr";
964
+ };
965
+ tool: string;
966
+ summary: string;
967
+ details: {
968
+ label: string;
969
+ value: string;
970
+ kind?: "mono" | "time";
971
+ }[];
972
+ asks: null | {
973
+ value: {
974
+ label: string;
975
+ note: string;
976
+ };
977
+ };
978
+ kind: "change" | "reveal";
979
+ digest: string;
980
+ createdAt: string;
981
+ expiresAt: string;
982
+ outcome: null | {
983
+ text: string;
984
+ result?: {
985
+ [key: string]: unknown;
986
+ };
987
+ error?: string;
988
+ };
989
+ };
990
+
578
991
  export type AuditEntryView = {
579
992
  seq: number;
580
993
  author: "app" | "vault";
@@ -619,6 +1032,28 @@ export type AuthInfo = {
619
1032
  };
620
1033
  };
621
1034
 
1035
+ export type AuthorizationView = {
1036
+ status: "invalid";
1037
+ message: string;
1038
+ } | {
1039
+ status: "refused";
1040
+ message: string;
1041
+ redirect: string;
1042
+ } | {
1043
+ status: "ready";
1044
+ client: {
1045
+ id: string;
1046
+ name: string;
1047
+ host: string | null;
1048
+ registration: "cimd" | "dcr";
1049
+ };
1050
+ redirectHost: string;
1051
+ loopbackOnly: boolean;
1052
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
1053
+ connections: ("browse" | "manage-access" | "read-values" | "write")[][];
1054
+ days: number;
1055
+ };
1056
+
622
1057
  export type BindingPlan = {
623
1058
  profile: "custom" | "github" | "github-reusable" | "github-reusable-organization" | "gitlab";
624
1059
  issuer: string;
@@ -646,6 +1081,73 @@ export type BindingView = {
646
1081
  lastUsedAt: string | null;
647
1082
  };
648
1083
 
1084
+ export type ConnectedApp = {
1085
+ id: string;
1086
+ name: string;
1087
+ host: string | null;
1088
+ registration: "cimd" | "dcr";
1089
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
1090
+ createdAt: string;
1091
+ lastUsedAt: string | null;
1092
+ lastUsedIp: string | null;
1093
+ expiresAt: string;
1094
+ };
1095
+
1096
+ export type Deletion = {
1097
+ path: string;
1098
+ tombstone: string;
1099
+ environments: string[];
1100
+ keys: number;
1101
+ versions: number;
1102
+ grants: {
1103
+ member: string;
1104
+ place: string;
1105
+ role: string;
1106
+ }[];
1107
+ references: {
1108
+ holder: string;
1109
+ source: string;
1110
+ }[];
1111
+ stranded: string[];
1112
+ };
1113
+
1114
+ export type Decision = {
1115
+ status: "approved" | "cancelled" | "denied" | "expired" | "failed" | "pending";
1116
+ outcome: {
1117
+ text: string;
1118
+ result?: {
1119
+ [key: string]: unknown;
1120
+ };
1121
+ error?: string;
1122
+ };
1123
+ shown: {
1124
+ label: string;
1125
+ value: string;
1126
+ kind?: "mono" | "time";
1127
+ }[];
1128
+ };
1129
+
1130
+ export type DeletionResult = {
1131
+ dryRun: boolean;
1132
+ deletion: {
1133
+ path: string;
1134
+ tombstone: string;
1135
+ environments: string[];
1136
+ keys: number;
1137
+ versions: number;
1138
+ grants: {
1139
+ member: string;
1140
+ place: string;
1141
+ role: string;
1142
+ }[];
1143
+ references: {
1144
+ holder: string;
1145
+ source: string;
1146
+ }[];
1147
+ stranded: string[];
1148
+ };
1149
+ };
1150
+
649
1151
  export type WorkloadIds = {
650
1152
  github: string;
651
1153
  repositoryId: string;
@@ -656,6 +1158,14 @@ export type WorkloadIds = {
656
1158
  namespaceId: string;
657
1159
  };
658
1160
 
1161
+ export type DismissedKey = {
1162
+ key: string;
1163
+ in: string[];
1164
+ folder: string | null;
1165
+ dismissedBy: string;
1166
+ dismissedAt: string;
1167
+ };
1168
+
659
1169
  export type DryRunOutcome = "added" | "archived" | "changed" | "unchanged";
660
1170
 
661
1171
  export type DryRunResult = {
@@ -673,12 +1183,12 @@ export type IdentityRow = {
673
1183
  lastSignInAt: string | null;
674
1184
  };
675
1185
 
676
- export type InstanceState = {
677
- version: string;
678
- migrations: {
679
- applied: number;
680
- known: string[];
681
- };
1186
+ export type InheritedGrant = {
1187
+ member: string;
1188
+ place: string;
1189
+ role: "access-manager" | "auditor" | "developer" | "maintainer" | "owner" | "viewer";
1190
+ roleName: string;
1191
+ expiresAt: string | null;
682
1192
  };
683
1193
 
684
1194
  export type Me = {
@@ -691,18 +1201,15 @@ export type Me = {
691
1201
  instanceRole: "owner" | "root-admin" | "user";
692
1202
  isRootAdmin: boolean;
693
1203
  canReadAudit: boolean;
1204
+ features: {
1205
+ mcp: boolean;
1206
+ workloads: boolean;
1207
+ };
694
1208
  environments: {
695
1209
  project: string;
696
1210
  environment: string;
697
1211
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
698
1212
  }[];
699
- instance: null | {
700
- version: string;
701
- migrations: {
702
- applied: number;
703
- known: string[];
704
- };
705
- };
706
1213
  };
707
1214
 
708
1215
  export type Member = {
@@ -723,6 +1230,12 @@ export type Member = {
723
1230
  }[];
724
1231
  };
725
1232
 
1233
+ export type MissingKey = {
1234
+ key: string;
1235
+ in: string[];
1236
+ folder: string | null;
1237
+ };
1238
+
726
1239
  export type OffboardingReport = {
727
1240
  principalType: "service" | "user";
728
1241
  principalId: string;
@@ -736,6 +1249,7 @@ export type OffboardingReport = {
736
1249
  sessions: number;
737
1250
  tokens: number;
738
1251
  identities: number;
1252
+ apps: number;
739
1253
  };
740
1254
  exposed: {
741
1255
  project: string;
@@ -754,12 +1268,50 @@ export type OffboardingReport = {
754
1268
  expiresAt: string;
755
1269
  lastUsedAt: string | null;
756
1270
  }[];
1271
+ apps: {
1272
+ id: string;
1273
+ name: string;
1274
+ host: string | null;
1275
+ registration: "cimd" | "dcr";
1276
+ scopes: ("browse" | "manage-access" | "read-values" | "write")[];
1277
+ createdAt: string;
1278
+ lastUsedAt: string | null;
1279
+ lastUsedIp: string | null;
1280
+ expiresAt: string;
1281
+ }[];
1282
+ references: {
1283
+ id: string;
1284
+ holder: string;
1285
+ source: string;
1286
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
1287
+ version: number | null;
1288
+ createdBy: string;
1289
+ createdAt: string;
1290
+ endedBy: string | null;
1291
+ endedAt: string | null;
1292
+ }[];
1293
+ };
1294
+
1295
+ export type ListedReference = {
1296
+ id: string;
1297
+ holder: string;
1298
+ source: string;
1299
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
1300
+ version: number | null;
1301
+ createdBy: string;
1302
+ createdAt: string;
1303
+ endedBy: string | null;
1304
+ endedAt: string | null;
1305
+ readers: null | string[];
1306
+ canBreak: boolean;
1307
+ holderArchived: boolean;
757
1308
  };
758
1309
 
759
1310
  export type ProjectSummary = {
760
1311
  slug: string;
761
1312
  name: string;
762
1313
  archivedAt: string | null;
1314
+ folder: string | null;
763
1315
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
764
1316
  environments: {
765
1317
  slug: string;
@@ -773,6 +1325,18 @@ export type ProjectSummary = {
773
1325
  secretCount: number | null;
774
1326
  };
775
1327
 
1328
+ export type ReferenceView = {
1329
+ id: string;
1330
+ holder: string;
1331
+ source: string;
1332
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
1333
+ version: number | null;
1334
+ createdBy: string;
1335
+ createdAt: string;
1336
+ endedBy: string | null;
1337
+ endedAt: string | null;
1338
+ };
1339
+
776
1340
  export type RemovedMember = {
777
1341
  principalType: "service" | "user";
778
1342
  principalId: string;
@@ -781,6 +1345,19 @@ export type RemovedMember = {
781
1345
 
782
1346
  export type SecretKey = {
783
1347
  key: string;
1348
+ reference: null | {
1349
+ id: string;
1350
+ holder: string;
1351
+ source: string;
1352
+ state: "broken" | "live" | "replaced" | "source_archived" | "source_deleted" | "source_empty" | "source_is_reference";
1353
+ version: number | null;
1354
+ createdBy: string;
1355
+ createdAt: string;
1356
+ endedBy: string | null;
1357
+ endedAt: string | null;
1358
+ canOpenSource: boolean;
1359
+ };
1360
+ folder: string | null;
784
1361
  archived: boolean;
785
1362
  version: number | null;
786
1363
  updatedAt: string | null;
@@ -826,6 +1403,8 @@ export type SetResult = {
826
1403
  version: number;
827
1404
  } | {
828
1405
  archived: true;
1406
+ } | {
1407
+ reference: string;
829
1408
  };
830
1409
  };
831
1410
  };