File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,25 @@ export type Validity =
16
16
| "invalid"
17
17
| "valid" ;
18
18
19
- export interface Incident {
19
+ type IncidentVaultProperties = {
20
+ secret_vaulted : false ;
21
+ } | {
22
+ secret_vaulted : true ;
23
+ vault_type : string ;
24
+ vault_name : string ;
25
+ vault_path : string ;
26
+ vault_path_count : number ;
27
+ }
28
+
29
+ export type Incident = {
20
30
type : string ;
21
31
occurrences : Occurrence [ ] ;
22
32
validity : Validity ;
23
33
ignore_sha : string ;
24
34
known_secret : boolean ;
25
35
incident_url : string ;
26
36
total_occurrences : number ;
27
- secret_vaulted : boolean ;
28
- vault_type : string ;
29
- vault_name : string ;
30
- vault_path : string ;
31
- vault_path_count : number ;
32
- }
37
+ } & IncidentVaultProperties
33
38
34
39
export interface EntityWithIncidents {
35
40
incidents : Incident [ ] ;
You can’t perform that action at this time.
0 commit comments