Skip to content

Commit 27f5e1b

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

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

openapi.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,65 @@
32313231
}
32323232
}
32333233
},
3234+
{
3235+
"type": "object",
3236+
"additionalProperties": false,
3237+
"properties": {
3238+
"type": {
3239+
"type": "string",
3240+
"enum": [
3241+
"compromisedSSHKey"
3242+
]
3243+
},
3244+
"value": {
3245+
"allOf": [
3246+
{
3247+
"$ref": "#/components/schemas/SocketIssueBasics"
3248+
},
3249+
{
3250+
"type": "object",
3251+
"additionalProperties": false,
3252+
"properties": {
3253+
"description": {
3254+
"type": "string",
3255+
"default": ""
3256+
},
3257+
"props": {
3258+
"type": "object",
3259+
"additionalProperties": false,
3260+
"properties": {
3261+
"fingerprint": {
3262+
"type": "string",
3263+
"default": ""
3264+
},
3265+
"sshKey": {
3266+
"type": "string",
3267+
"default": ""
3268+
},
3269+
"username": {
3270+
"type": "string",
3271+
"default": ""
3272+
}
3273+
},
3274+
"required": [
3275+
"fingerprint",
3276+
"sshKey",
3277+
"username"
3278+
]
3279+
},
3280+
"usage": {
3281+
"$ref": "#/components/schemas/SocketUsageRef"
3282+
}
3283+
},
3284+
"required": [
3285+
"description",
3286+
"props"
3287+
]
3288+
}
3289+
]
3290+
}
3291+
}
3292+
},
32343293
{
32353294
"type": "object",
32363295
"additionalProperties": false,

types/api.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,22 @@ export interface components {
10531053
};
10541054
usage?: components["schemas"]["SocketUsageRef"];
10551055
};
1056+
}) | ({
1057+
/** @enum {string} */
1058+
type?: "compromisedSSHKey";
1059+
value?: components["schemas"]["SocketIssueBasics"] & {
1060+
/** @default */
1061+
description: string;
1062+
props: {
1063+
/** @default */
1064+
fingerprint: string;
1065+
/** @default */
1066+
sshKey: string;
1067+
/** @default */
1068+
username: string;
1069+
};
1070+
usage?: components["schemas"]["SocketUsageRef"];
1071+
};
10561072
}) | ({
10571073
/** @enum {string} */
10581074
type?: "semverAnomaly";

0 commit comments

Comments
 (0)