Skip to content

Sync with OpenAPI definition #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 78 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@
"description": "Total size of the package artifact in bytes",
"default": 0
},
"repositoryType": {
"type": "string",
"description": "Hugging Face model, dataset, or space type",
"default": ""
},
"alerts": {
"type": "array",
"items": {
Expand All @@ -336,9 +341,14 @@
"score": {
"$ref": "#/components/schemas/SocketScore"
},
"inputPurl": {
"type": "string",
"description": "Original unmodified PURL input string before normalization",
"default": ""
},
"batchIndex": {
"type": "integer",
"description": "Index position of this artifact within its processing batch, used for ordering and pagination",
"description": "Deprecated: Always 0. Previously used for batch ordering but replaced by inputPurl for better tracking.",
"default": 0
},
"license": {
Expand Down Expand Up @@ -30768,10 +30778,36 @@
"type": "string",
"description": "",
"default": ""
},
"filters": {
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"type": "array",
"items": {
"type": "string",
"description": "",
"default": ""
},
"description": ""
},
"requestId": {
"type": "array",
"items": {
"type": "string",
"description": "",
"default": ""
},
"description": ""
}
},
"description": ""
}
},
"required": [
"endDateInclusive",
"filters",
"organizationId",
"queryStartTimestamp",
"startDateInclusive"
Expand Down Expand Up @@ -31225,6 +31261,7 @@
"cargo",
"chrome",
"golang",
"huggingface",
"maven",
"npm",
"nuget",
Expand Down Expand Up @@ -31504,6 +31541,7 @@
"cargo",
"chrome",
"golang",
"huggingface",
"maven",
"npm",
"nuget",
Expand Down Expand Up @@ -32011,7 +32049,6 @@
"schema": {
"type": "object",
"additionalProperties": false,
"description": "",
"properties": {
"limit": {
"type": "integer",
Expand All @@ -32025,6 +32062,15 @@
"description": "",
"default": 0,
"minimum": 0
},
"purls": {
"type": "array",
"items": {
"type": "string",
"description": "PURLs to filter results with",
"default": ""
},
"description": ""
}
},
"required": [
Expand Down Expand Up @@ -32069,6 +32115,35 @@
"description": "",
"default": 0
},
"purlFilters": {
"type": "object",
"additionalProperties": false,
"description": "",
"properties": {
"valid": {
"type": "array",
"items": {
"type": "string",
"description": "Successfully parsed PURLs",
"default": ""
},
"description": ""
},
"invalid": {
"type": "array",
"items": {
"type": "string",
"description": "PURLs that could not be parsed",
"default": ""
},
"description": ""
}
},
"required": [
"invalid",
"valid"
]
},
"rows": {
"type": "array",
"items": {
Expand Down Expand Up @@ -32132,6 +32207,7 @@
"end",
"limit",
"offset",
"purlFilters",
"rows"
]
}
Expand Down
23 changes: 22 additions & 1 deletion types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1477,10 +1477,20 @@ export interface components {
* @default 0
*/
size?: number
/**
* @description Hugging Face model, dataset, or space type
* @default
*/
repositoryType?: string
alerts?: Array<components['schemas']['SocketAlert']>
score?: components['schemas']['SocketScore']
/**
* @description Index position of this artifact within its processing batch, used for ordering and pagination
* @description Original unmodified PURL input string before normalization
* @default
*/
inputPurl?: string
/**
* @description Deprecated: Always 0. Previously used for batch ordering but replaced by inputPurl for better tracking.
* @default 0
*/
batchIndex?: number
Expand Down Expand Up @@ -12486,6 +12496,10 @@ export interface operations {
startDateInclusive: string
/** @default */
endDateInclusive: string
filters: {
status?: string[]
requestId?: string[]
}
}
items: Array<{
/** @default */
Expand Down Expand Up @@ -12678,6 +12692,7 @@ export interface operations {
| 'cargo'
| 'chrome'
| 'golang'
| 'huggingface'
| 'maven'
| 'npm'
| 'nuget'
Expand Down Expand Up @@ -12779,6 +12794,7 @@ export interface operations {
| 'cargo'
| 'chrome'
| 'golang'
| 'huggingface'
| 'maven'
| 'npm'
| 'nuget'
Expand Down Expand Up @@ -12991,6 +13007,7 @@ export interface operations {
limit: number
/** @default 0 */
offset: number
purls?: string[]
}
}
}
Expand All @@ -13005,6 +13022,10 @@ export interface operations {
limit: number
/** @default 0 */
offset: number
purlFilters: {
valid: string[]
invalid: string[]
}
rows: Array<{
/** @default */
branch: string
Expand Down