Skip to content

Commit 6678183

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

File tree

2 files changed

+100
-3
lines changed

2 files changed

+100
-3
lines changed

openapi.json

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@
326326
"description": "Total size of the package artifact in bytes",
327327
"default": 0
328328
},
329+
"repositoryType": {
330+
"type": "string",
331+
"description": "Hugging Face model, dataset, or space type",
332+
"default": ""
333+
},
329334
"alerts": {
330335
"type": "array",
331336
"items": {
@@ -336,9 +341,14 @@
336341
"score": {
337342
"$ref": "#/components/schemas/SocketScore"
338343
},
344+
"inputPurl": {
345+
"type": "string",
346+
"description": "Original unmodified PURL input string before normalization",
347+
"default": ""
348+
},
339349
"batchIndex": {
340350
"type": "integer",
341-
"description": "Index position of this artifact within its processing batch, used for ordering and pagination",
351+
"description": "Deprecated: Always 0. Previously used for batch ordering but replaced by inputPurl for better tracking.",
342352
"default": 0
343353
},
344354
"license": {
@@ -30768,10 +30778,36 @@
3076830778
"type": "string",
3076930779
"description": "",
3077030780
"default": ""
30781+
},
30782+
"filters": {
30783+
"type": "object",
30784+
"additionalProperties": false,
30785+
"properties": {
30786+
"status": {
30787+
"type": "array",
30788+
"items": {
30789+
"type": "string",
30790+
"description": "",
30791+
"default": ""
30792+
},
30793+
"description": ""
30794+
},
30795+
"requestId": {
30796+
"type": "array",
30797+
"items": {
30798+
"type": "string",
30799+
"description": "",
30800+
"default": ""
30801+
},
30802+
"description": ""
30803+
}
30804+
},
30805+
"description": ""
3077130806
}
3077230807
},
3077330808
"required": [
3077430809
"endDateInclusive",
30810+
"filters",
3077530811
"organizationId",
3077630812
"queryStartTimestamp",
3077730813
"startDateInclusive"
@@ -31225,6 +31261,7 @@
3122531261
"cargo",
3122631262
"chrome",
3122731263
"golang",
31264+
"huggingface",
3122831265
"maven",
3122931266
"npm",
3123031267
"nuget",
@@ -31504,6 +31541,7 @@
3150431541
"cargo",
3150531542
"chrome",
3150631543
"golang",
31544+
"huggingface",
3150731545
"maven",
3150831546
"npm",
3150931547
"nuget",
@@ -32011,7 +32049,6 @@
3201132049
"schema": {
3201232050
"type": "object",
3201332051
"additionalProperties": false,
32014-
"description": "",
3201532052
"properties": {
3201632053
"limit": {
3201732054
"type": "integer",
@@ -32025,6 +32062,15 @@
3202532062
"description": "",
3202632063
"default": 0,
3202732064
"minimum": 0
32065+
},
32066+
"purls": {
32067+
"type": "array",
32068+
"items": {
32069+
"type": "string",
32070+
"description": "PURLs to filter results with",
32071+
"default": ""
32072+
},
32073+
"description": ""
3202832074
}
3202932075
},
3203032076
"required": [
@@ -32069,6 +32115,35 @@
3206932115
"description": "",
3207032116
"default": 0
3207132117
},
32118+
"purlFilters": {
32119+
"type": "object",
32120+
"additionalProperties": false,
32121+
"description": "",
32122+
"properties": {
32123+
"valid": {
32124+
"type": "array",
32125+
"items": {
32126+
"type": "string",
32127+
"description": "Successfully parsed PURLs",
32128+
"default": ""
32129+
},
32130+
"description": ""
32131+
},
32132+
"invalid": {
32133+
"type": "array",
32134+
"items": {
32135+
"type": "string",
32136+
"description": "PURLs that could not be parsed",
32137+
"default": ""
32138+
},
32139+
"description": ""
32140+
}
32141+
},
32142+
"required": [
32143+
"invalid",
32144+
"valid"
32145+
]
32146+
},
3207232147
"rows": {
3207332148
"type": "array",
3207432149
"items": {
@@ -32132,6 +32207,7 @@
3213232207
"end",
3213332208
"limit",
3213432209
"offset",
32210+
"purlFilters",
3213532211
"rows"
3213632212
]
3213732213
}

types/api.d.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,10 +1477,20 @@ export interface components {
14771477
* @default 0
14781478
*/
14791479
size?: number
1480+
/**
1481+
* @description Hugging Face model, dataset, or space type
1482+
* @default
1483+
*/
1484+
repositoryType?: string
14801485
alerts?: Array<components['schemas']['SocketAlert']>
14811486
score?: components['schemas']['SocketScore']
14821487
/**
1483-
* @description Index position of this artifact within its processing batch, used for ordering and pagination
1488+
* @description Original unmodified PURL input string before normalization
1489+
* @default
1490+
*/
1491+
inputPurl?: string
1492+
/**
1493+
* @description Deprecated: Always 0. Previously used for batch ordering but replaced by inputPurl for better tracking.
14841494
* @default 0
14851495
*/
14861496
batchIndex?: number
@@ -12486,6 +12496,10 @@ export interface operations {
1248612496
startDateInclusive: string
1248712497
/** @default */
1248812498
endDateInclusive: string
12499+
filters: {
12500+
status?: string[]
12501+
requestId?: string[]
12502+
}
1248912503
}
1249012504
items: Array<{
1249112505
/** @default */
@@ -12678,6 +12692,7 @@ export interface operations {
1267812692
| 'cargo'
1267912693
| 'chrome'
1268012694
| 'golang'
12695+
| 'huggingface'
1268112696
| 'maven'
1268212697
| 'npm'
1268312698
| 'nuget'
@@ -12779,6 +12794,7 @@ export interface operations {
1277912794
| 'cargo'
1278012795
| 'chrome'
1278112796
| 'golang'
12797+
| 'huggingface'
1278212798
| 'maven'
1278312799
| 'npm'
1278412800
| 'nuget'
@@ -12991,6 +13007,7 @@ export interface operations {
1299113007
limit: number
1299213008
/** @default 0 */
1299313009
offset: number
13010+
purls?: string[]
1299413011
}
1299513012
}
1299613013
}
@@ -13005,6 +13022,10 @@ export interface operations {
1300513022
limit: number
1300613023
/** @default 0 */
1300713024
offset: number
13025+
purlFilters: {
13026+
valid: string[]
13027+
invalid: string[]
13028+
}
1300813029
rows: Array<{
1300913030
/** @default */
1301013031
branch: string

0 commit comments

Comments
 (0)