Skip to content

Commit 1a504aa

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

File tree

2 files changed

+66
-5
lines changed

2 files changed

+66
-5
lines changed

openapi.json

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,55 @@
37763776
}
37773777
}
37783778
},
3779+
{
3780+
"type": "object",
3781+
"additionalProperties": false,
3782+
"properties": {
3783+
"type": {
3784+
"type": "string",
3785+
"enum": [
3786+
"licenseSpdxDisj"
3787+
]
3788+
},
3789+
"value": {
3790+
"allOf": [
3791+
{
3792+
"$ref": "#/components/schemas/SocketIssueBasics"
3793+
},
3794+
{
3795+
"type": "object",
3796+
"additionalProperties": false,
3797+
"properties": {
3798+
"description": {
3799+
"type": "string",
3800+
"default": ""
3801+
},
3802+
"props": {
3803+
"type": "object",
3804+
"additionalProperties": false,
3805+
"properties": {
3806+
"spdxDisj": {
3807+
"type": "string",
3808+
"default": ""
3809+
}
3810+
},
3811+
"required": [
3812+
"spdxDisj"
3813+
]
3814+
},
3815+
"usage": {
3816+
"$ref": "#/components/schemas/SocketUsageRef"
3817+
}
3818+
},
3819+
"required": [
3820+
"description",
3821+
"props"
3822+
]
3823+
}
3824+
]
3825+
}
3826+
}
3827+
},
37793828
{
37803829
"type": "object",
37813830
"additionalProperties": false,
@@ -8340,10 +8389,10 @@
83408389
"/purl": {
83418390
"post": {
83428391
"tags": [
8343-
"Artifacts"
8392+
"Packages"
83448393
],
83458394
"summary": "Get Packages (unstable)",
8346-
"operationId": "batchArtifactFetch",
8395+
"operationId": "batchPackageFetch",
83478396
"requestBody": {
83488397
"content": {
83498398
"application/json": {
@@ -8357,7 +8406,7 @@
83578406
"security": [
83588407
{
83598408
"basicAuth": [
8360-
"artifacts:list"
8409+
"packages:list"
83618410
]
83628411
}
83638412
],

types/api.d.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export interface paths {
281281
*
282282
* This endpoint consumes 100 units of your quota.
283283
*/
284-
post: operations["batchArtifactFetch"];
284+
post: operations["batchPackageFetch"];
285285
};
286286
}
287287

@@ -1190,6 +1190,18 @@ export interface components {
11901190
props: Record<string, never>;
11911191
usage?: components["schemas"]["SocketUsageRef"];
11921192
};
1193+
}) | ({
1194+
/** @enum {string} */
1195+
type?: "licenseSpdxDisj";
1196+
value?: components["schemas"]["SocketIssueBasics"] & {
1197+
/** @default */
1198+
description: string;
1199+
props: {
1200+
/** @default */
1201+
spdxDisj: string;
1202+
};
1203+
usage?: components["schemas"]["SocketUsageRef"];
1204+
};
11931205
}) | ({
11941206
/** @enum {string} */
11951207
type?: "unsafeCopyright";
@@ -2995,7 +3007,7 @@ export interface operations {
29953007
*
29963008
* This endpoint consumes 100 units of your quota.
29973009
*/
2998-
batchArtifactFetch: {
3010+
batchPackageFetch: {
29993011
requestBody?: {
30003012
content: {
30013013
"application/json": components["schemas"]["SocketBatchPURLFetch"];

0 commit comments

Comments
 (0)