File tree Expand file tree Collapse file tree 2 files changed +61
-2
lines changed Expand file tree Collapse file tree 2 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 19730
19730
"description": "Order asc or desc by the createdAt attribute.",
19731
19731
"schema": {
19732
19732
"type": "string",
19733
+ "enum": [
19734
+ "desc",
19735
+ "asc"
19736
+ ],
19733
19737
"default": "desc"
19734
19738
}
19735
19739
},
19740
19744
"description": "Filter what type of threats to return",
19741
19745
"schema": {
19742
19746
"type": "string",
19747
+ "enum": [
19748
+ "u",
19749
+ "c",
19750
+ "fp",
19751
+ "tp",
19752
+ "mal",
19753
+ "vuln",
19754
+ "anom",
19755
+ "joke",
19756
+ "spy",
19757
+ "typo",
19758
+ "secret"
19759
+ ],
19743
19760
"default": "mal"
19744
19761
}
19762
+ },
19763
+ {
19764
+ "name": "name",
19765
+ "in": "query",
19766
+ "required": false,
19767
+ "description": "Filter threats by package name",
19768
+ "schema": {
19769
+ "type": "string",
19770
+ "default": ""
19771
+ }
19772
+ },
19773
+ {
19774
+ "name": "version",
19775
+ "in": "query",
19776
+ "required": false,
19777
+ "description": "Filter threats by package version",
19778
+ "schema": {
19779
+ "type": "string",
19780
+ "default": ""
19781
+ }
19782
+ },
19783
+ {
19784
+ "name": "ecosystem",
19785
+ "in": "query",
19786
+ "required": false,
19787
+ "description": "Filter threats by package ecosystem type",
19788
+ "schema": {
19789
+ "type": "string",
19790
+ "enum": [
19791
+ "gem",
19792
+ "golang",
19793
+ "maven",
19794
+ "npm",
19795
+ "pypi"
19796
+ ]
19797
+ }
19745
19798
}
19746
19799
],
19747
19800
"security": [
Original file line number Diff line number Diff line change @@ -7303,9 +7303,15 @@ export interface operations {
7303
7303
/** @description Page token */
7304
7304
page ?: string ;
7305
7305
/** @description Order asc or desc by the createdAt attribute. */
7306
- direction ?: string ;
7306
+ direction ?: "desc" | "asc" ;
7307
7307
/** @description Filter what type of threats to return */
7308
- filter ?: string ;
7308
+ filter ?: "u" | "c" | "fp" | "tp" | "mal" | "vuln" | "anom" | "joke" | "spy" | "typo" | "secret" ;
7309
+ /** @description Filter threats by package name */
7310
+ name ?: string ;
7311
+ /** @description Filter threats by package version */
7312
+ version ?: string ;
7313
+ /** @description Filter threats by package ecosystem type */
7314
+ ecosystem ?: "gem" | "golang" | "maven" | "npm" | "pypi" ;
7309
7315
} ;
7310
7316
} ;
7311
7317
responses : {
You can’t perform that action at this time.
0 commit comments