Skip to content

Commit 49cf2d4

Browse files
fix(openapi): sync with openapi definition (#335)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 156ffd6 commit 49cf2d4

File tree

2 files changed

+345
-2
lines changed

2 files changed

+345
-2
lines changed

openapi.json

Lines changed: 257 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,19 @@
13941394
"description",
13951395
"type"
13961396
]
1397+
},
1398+
"reachability": {
1399+
"type": "object",
1400+
"additionalProperties": false,
1401+
"properties": {
1402+
"head": {
1403+
"$ref": "#/components/schemas/ReachabilityResult"
1404+
},
1405+
"base": {
1406+
"$ref": "#/components/schemas/ReachabilityResult"
1407+
}
1408+
},
1409+
"description": ""
13971410
}
13981411
},
13991412
"required": [
@@ -7985,6 +7998,33 @@
79857998
"description": "",
79867999
"default": "miscellaneous"
79878000
},
8001+
"ReachabilityResult": {
8002+
"type": "object",
8003+
"additionalProperties": false,
8004+
"description": "",
8005+
"properties": {
8006+
"type": {
8007+
"type": "string",
8008+
"enum": [
8009+
"precomputed",
8010+
"full-scan"
8011+
],
8012+
"description": "",
8013+
"default": "precomputed"
8014+
},
8015+
"results": {
8016+
"type": "array",
8017+
"items": {
8018+
"$ref": "#/components/schemas/ReachabilityResultItem"
8019+
},
8020+
"description": ""
8021+
}
8022+
},
8023+
"required": [
8024+
"results",
8025+
"type"
8026+
]
8027+
},
79888028
"SocketIssueBasics": {
79898029
"type": "object",
79908030
"additionalProperties": false,
@@ -8062,6 +8102,88 @@
80628102
"value"
80638103
]
80648104
},
8105+
"ReachabilityResultItem": {
8106+
"type": "object",
8107+
"additionalProperties": false,
8108+
"properties": {
8109+
"type": {
8110+
"$ref": "#/components/schemas/ReachabilityType"
8111+
},
8112+
"truncated": {
8113+
"type": "boolean",
8114+
"default": false,
8115+
"description": ""
8116+
},
8117+
"error": {
8118+
"type": "string",
8119+
"description": "",
8120+
"default": ""
8121+
},
8122+
"matches": {
8123+
"anyOf": [
8124+
{
8125+
"type": "object",
8126+
"additionalProperties": false,
8127+
"properties": {
8128+
"type": {
8129+
"type": "string",
8130+
"enum": [
8131+
"function-level"
8132+
]
8133+
},
8134+
"value": {
8135+
"type": "array",
8136+
"items": {
8137+
"type": "array",
8138+
"items": {
8139+
"$ref": "#/components/schemas/CallStackItem"
8140+
},
8141+
"description": ""
8142+
},
8143+
"description": ""
8144+
}
8145+
}
8146+
},
8147+
{
8148+
"type": "object",
8149+
"additionalProperties": false,
8150+
"properties": {
8151+
"type": {
8152+
"type": "string",
8153+
"enum": [
8154+
"class-level"
8155+
]
8156+
},
8157+
"value": {
8158+
"type": "array",
8159+
"items": {
8160+
"type": "array",
8161+
"items": {
8162+
"$ref": "#/components/schemas/ClassStackItem"
8163+
},
8164+
"description": ""
8165+
},
8166+
"description": ""
8167+
}
8168+
}
8169+
}
8170+
]
8171+
},
8172+
"workspacePath": {
8173+
"type": "string",
8174+
"description": "",
8175+
"default": ""
8176+
},
8177+
"subprojectPath": {
8178+
"type": "string",
8179+
"description": "",
8180+
"default": ""
8181+
}
8182+
},
8183+
"required": [
8184+
"type"
8185+
]
8186+
},
80658187
"SocketRefList": {
80668188
"type": "array",
80678189
"items": {
@@ -8089,6 +8211,64 @@
80898211
"path"
80908212
]
80918213
},
8214+
"ReachabilityType": {
8215+
"type": "string",
8216+
"enum": [
8217+
"missing_support",
8218+
"undeterminable_reachability",
8219+
"pending",
8220+
"unreachable",
8221+
"unknown",
8222+
"direct_dependency",
8223+
"error",
8224+
"maybe_reachable",
8225+
"reachable"
8226+
],
8227+
"description": "",
8228+
"default": "unknown"
8229+
},
8230+
"CallStackItem": {
8231+
"type": "object",
8232+
"additionalProperties": false,
8233+
"properties": {
8234+
"purl": {
8235+
"type": "string",
8236+
"description": "",
8237+
"default": ""
8238+
},
8239+
"sourceLocation": {
8240+
"$ref": "#/components/schemas/SourceLocation"
8241+
},
8242+
"confidence": {
8243+
"type": "number",
8244+
"description": "",
8245+
"default": 0
8246+
}
8247+
},
8248+
"description": ""
8249+
},
8250+
"ClassStackItem": {
8251+
"type": "object",
8252+
"additionalProperties": false,
8253+
"properties": {
8254+
"purl": {
8255+
"type": "string",
8256+
"description": "",
8257+
"default": ""
8258+
},
8259+
"class": {
8260+
"type": "string",
8261+
"description": "",
8262+
"default": ""
8263+
},
8264+
"confidence": {
8265+
"type": "number",
8266+
"description": "",
8267+
"default": 0
8268+
}
8269+
},
8270+
"description": ""
8271+
},
80928272
"SocketRef": {
80938273
"anyOf": [
80948274
{
@@ -8240,6 +8420,78 @@
82408420
"start"
82418421
]
82428422
},
8423+
"SourceLocation": {
8424+
"type": "object",
8425+
"additionalProperties": false,
8426+
"description": "",
8427+
"properties": {
8428+
"start": {
8429+
"type": "object",
8430+
"additionalProperties": false,
8431+
"description": "",
8432+
"properties": {
8433+
"line": {
8434+
"type": "integer",
8435+
"description": "",
8436+
"default": 0
8437+
},
8438+
"column": {
8439+
"type": "integer",
8440+
"description": "",
8441+
"default": 0
8442+
},
8443+
"byteOffset": {
8444+
"type": "integer",
8445+
"description": "",
8446+
"default": 0
8447+
}
8448+
},
8449+
"required": [
8450+
"byteOffset",
8451+
"column",
8452+
"line"
8453+
]
8454+
},
8455+
"end": {
8456+
"type": "object",
8457+
"additionalProperties": false,
8458+
"properties": {
8459+
"line": {
8460+
"type": "integer",
8461+
"description": "",
8462+
"default": 0
8463+
},
8464+
"column": {
8465+
"type": "integer",
8466+
"description": "",
8467+
"default": 0
8468+
},
8469+
"byteOffset": {
8470+
"type": "integer",
8471+
"description": "",
8472+
"default": 0
8473+
}
8474+
},
8475+
"description": ""
8476+
},
8477+
"filename": {
8478+
"type": "string",
8479+
"description": "",
8480+
"default": ""
8481+
},
8482+
"fileHash": {
8483+
"type": "string",
8484+
"description": "",
8485+
"default": ""
8486+
}
8487+
},
8488+
"required": [
8489+
"end",
8490+
"fileHash",
8491+
"filename",
8492+
"start"
8493+
]
8494+
},
82438495
"SocketRefNPM": {
82448496
"type": "object",
82458497
"additionalProperties": false,
@@ -8980,6 +9232,7 @@
89809232
"UpdateApiTokenName",
89819233
"UpdateApiTokenScopes",
89829234
"UpdateApiTokenVisibility",
9235+
"UpdateAutopatchCurated",
89839236
"UpdateLabel",
89849237
"UpdateLabelSetting",
89859238
"UpdateOrganizationSetting",
@@ -29823,7 +30076,8 @@
2982330076
"joke",
2982430077
"spy",
2982530078
"typo",
29826-
"secret"
30079+
"secret",
30080+
"obf"
2982730081
],
2982830082
"default": "mal"
2982930083
}
@@ -30100,7 +30354,8 @@
3010030354
"joke",
3010130355
"spy",
3010230356
"typo",
30103-
"secret"
30357+
"secret",
30358+
"obf"
3010430359
],
3010530360
"default": "mal"
3010630361
}

0 commit comments

Comments
 (0)