Skip to content

Commit 05d0737

Browse files
fix(openapi): sync with openapi definition (#147)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a30d7cc commit 05d0737

File tree

2 files changed

+90
-2
lines changed

2 files changed

+90
-2
lines changed

openapi.json

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4499,6 +4499,65 @@
44994499
]
45004500
}
45014501
}
4502+
},
4503+
{
4504+
"type": "object",
4505+
"additionalProperties": false,
4506+
"properties": {
4507+
"type": {
4508+
"type": "string",
4509+
"enum": [
4510+
"gptMalware"
4511+
]
4512+
},
4513+
"value": {
4514+
"allOf": [
4515+
{
4516+
"$ref": "#/components/schemas/SocketIssueBasics"
4517+
},
4518+
{
4519+
"type": "object",
4520+
"additionalProperties": false,
4521+
"properties": {
4522+
"description": {
4523+
"type": "string",
4524+
"default": ""
4525+
},
4526+
"props": {
4527+
"type": "object",
4528+
"additionalProperties": false,
4529+
"properties": {
4530+
"notes": {
4531+
"type": "string",
4532+
"default": ""
4533+
},
4534+
"confidence": {
4535+
"type": "number",
4536+
"default": 0
4537+
},
4538+
"severity": {
4539+
"type": "number",
4540+
"default": 0
4541+
}
4542+
},
4543+
"required": [
4544+
"confidence",
4545+
"notes",
4546+
"severity"
4547+
]
4548+
},
4549+
"usage": {
4550+
"$ref": "#/components/schemas/SocketUsageRef"
4551+
}
4552+
},
4553+
"required": [
4554+
"description",
4555+
"props"
4556+
]
4557+
}
4558+
]
4559+
}
4560+
}
45024561
}
45034562
]
45044563
},
@@ -5928,7 +5987,16 @@
59285987
},
59295988
"format": "binary"
59305989
},
5931-
"properties": {}
5990+
"properties": {
5991+
"repository": {
5992+
"type": "string",
5993+
"default": ""
5994+
},
5995+
"branch": {
5996+
"type": "string",
5997+
"default": ""
5998+
}
5999+
}
59326000
}
59336001
}
59346002
},

types/api.d.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,22 @@ export interface components {
12341234
};
12351235
usage?: components["schemas"]["SocketUsageRef"];
12361236
};
1237+
}) | ({
1238+
/** @enum {string} */
1239+
type?: "gptMalware";
1240+
value?: components["schemas"]["SocketIssueBasics"] & {
1241+
/** @default */
1242+
description: string;
1243+
props: {
1244+
/** @default */
1245+
notes: string;
1246+
/** @default 0 */
1247+
confidence: number;
1248+
/** @default 0 */
1249+
severity: number;
1250+
};
1251+
usage?: components["schemas"]["SocketUsageRef"];
1252+
};
12371253
});
12381254
SocketMetricSchema: {
12391255
/** @default 0 */
@@ -1905,7 +1921,11 @@ export interface operations {
19051921
requestBody?: {
19061922
content: {
19071923
"multipart/form-data": {
1908-
[key: string]: never;
1924+
/** @default */
1925+
repository?: string;
1926+
/** @default */
1927+
branch?: string;
1928+
[key: string]: undefined;
19091929
};
19101930
};
19111931
};

0 commit comments

Comments
 (0)