Skip to content

Commit 0f275c3

Browse files
github-actions[bot]voxpelli
authored andcommitted
fix(openapi): sync with openapi definition
1 parent 696008c commit 0f275c3

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

openapi.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5972,6 +5972,64 @@
59725972
"x-readme": {}
59735973
}
59745974
},
5975+
"/report/delete/{id}": {
5976+
"delete": {
5977+
"tags": [
5978+
"Project report"
5979+
],
5980+
"summary": "Delete a report",
5981+
"description": "Delete a specific project report.",
5982+
"operationId": "deleteReport",
5983+
"parameters": [
5984+
{
5985+
"name": "id",
5986+
"in": "path",
5987+
"required": true,
5988+
"schema": {
5989+
"type": "string"
5990+
}
5991+
}
5992+
],
5993+
"responses": {
5994+
"200": {
5995+
"description": "Success",
5996+
"content": {
5997+
"application/json": {
5998+
"schema": {
5999+
"type": "object",
6000+
"additionalProperties": false,
6001+
"properties": {
6002+
"status": {
6003+
"type": "string",
6004+
"default": "ok"
6005+
}
6006+
},
6007+
"required": [
6008+
"status"
6009+
]
6010+
}
6011+
}
6012+
}
6013+
},
6014+
"400": {
6015+
"$ref": "#/components/responses/SocketBadRequest"
6016+
},
6017+
"401": {
6018+
"$ref": "#/components/responses/SocketUnauthorized"
6019+
},
6020+
"403": {
6021+
"$ref": "#/components/responses/SocketForbidden"
6022+
},
6023+
"404": {
6024+
"$ref": "#/components/responses/SocketNotFoundResponse"
6025+
},
6026+
"429": {
6027+
"$ref": "#/components/responses/SocketTooManyRequestsResponse"
6028+
}
6029+
},
6030+
"x-readme": {}
6031+
}
6032+
},
59756033
"/report/list": {
59766034
"get": {
59776035
"tags": [

types/api.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export interface paths {
1717
/** Get all the scores and metrics by category that are used to evaluate the package version. */
1818
get: operations["getScoreByNPMPackage"];
1919
};
20+
"/report/delete/{id}": {
21+
/** Delete a specific project report. */
22+
delete: operations["deleteReport"];
23+
};
2024
"/report/list": {
2125
/** Get all your project reports. */
2226
get: operations["getReportList"];
@@ -1879,6 +1883,30 @@ export interface operations {
18791883
429: components["responses"]["SocketTooManyRequestsResponse"];
18801884
};
18811885
};
1886+
/** Delete a specific project report. */
1887+
deleteReport: {
1888+
parameters: {
1889+
path: {
1890+
id: string;
1891+
};
1892+
};
1893+
responses: {
1894+
/** Success */
1895+
200: {
1896+
content: {
1897+
"application/json": {
1898+
/** @default ok */
1899+
status: string;
1900+
};
1901+
};
1902+
};
1903+
400: components["responses"]["SocketBadRequest"];
1904+
401: components["responses"]["SocketUnauthorized"];
1905+
403: components["responses"]["SocketForbidden"];
1906+
404: components["responses"]["SocketNotFoundResponse"];
1907+
429: components["responses"]["SocketTooManyRequestsResponse"];
1908+
};
1909+
};
18821910
/** Get all your project reports. */
18831911
getReportList: {
18841912
responses: {

0 commit comments

Comments
 (0)