Skip to content

Commit 85f6d12

Browse files
fix(openapi): sync with openapi definition (#234)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 230ed25 commit 85f6d12

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed

openapi.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19730,6 +19730,10 @@
1973019730
"description": "Order asc or desc by the createdAt attribute.",
1973119731
"schema": {
1973219732
"type": "string",
19733+
"enum": [
19734+
"desc",
19735+
"asc"
19736+
],
1973319737
"default": "desc"
1973419738
}
1973519739
},
@@ -19740,8 +19744,57 @@
1974019744
"description": "Filter what type of threats to return",
1974119745
"schema": {
1974219746
"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+
],
1974319760
"default": "mal"
1974419761
}
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+
}
1974519798
}
1974619799
],
1974719800
"security": [

types/api.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7303,9 +7303,15 @@ export interface operations {
73037303
/** @description Page token */
73047304
page?: string;
73057305
/** @description Order asc or desc by the createdAt attribute. */
7306-
direction?: string;
7306+
direction?: "desc" | "asc";
73077307
/** @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";
73097315
};
73107316
};
73117317
responses: {

0 commit comments

Comments
 (0)