api: Update content-sources API schema

This updates content-sources API schema and regenerates it.
This commit is contained in:
regexowl 2025-04-09 09:11:29 +02:00 committed by Lucas Garfield
parent 70a97acc10
commit b0709ca9ce
2 changed files with 69 additions and 1 deletions

View file

@ -42,6 +42,10 @@
},
"type": "array"
},
"include_package_sources": {
"description": "Whether to include module information",
"type": "boolean"
},
"limit": {
"description": "Maximum number of records to return for the search",
"type": "integer"
@ -248,6 +252,39 @@
},
"type": "object"
},
"api.ModuleInfoResponse": {
"properties": {
"arch": {
"description": "Architecture of the module",
"type": "string"
},
"context": {
"description": "Context of the module",
"type": "string"
},
"description": {
"description": "Description of the module",
"type": "string"
},
"name": {
"description": "Name of the module",
"type": "string"
},
"stream": {
"description": "Stream of the module",
"type": "string"
},
"type": {
"description": "Type of rpm (can be either 'package' or 'module')",
"type": "string"
},
"version": {
"description": "Version of the module",
"type": "string"
}
},
"type": "object"
},
"api.PopularRepositoriesCollectionResponse": {
"properties": {
"data": {
@ -1137,6 +1174,13 @@
"description": "Package name found",
"type": "string"
},
"package_sources": {
"description": "List of the module streams for the package",
"items": {
"$ref": "#/components/schemas/api.ModuleInfoResponse"
},
"type": "array"
},
"summary": {
"description": "Summary of the package found",
"type": "string"
@ -1376,6 +1420,10 @@
},
"api.SnapshotSearchRpmRequest": {
"properties": {
"include_package_sources": {
"description": "Whether to include module information",
"type": "boolean"
},
"limit": {
"description": "Maximum number of records to return for the search",
"type": "integer"
@ -6595,7 +6643,7 @@
},
"servers": [
{
"url": "https://api.example.com/api/content-sources/v1.0/"
"url": "https://console.redhat.com/api/content-sources/v1.0/"
}
]
}

View file

@ -203,6 +203,8 @@ export type ErrorsErrorResponse = {
export type ApiContentUnitSearchRequest = {
/** List of names to search using an exact match */
exact_names?: string[] | undefined;
/** Whether to include module information */
include_package_sources?: boolean | undefined;
/** Maximum number of records to return for the search */
limit?: number | undefined;
/** Search string to search content unit names */
@ -593,9 +595,27 @@ export type ApiRepositoryRpmCollectionResponse = {
links?: ApiLinks | undefined;
meta?: ApiResponseMetadata | undefined;
};
export type ApiModuleInfoResponse = {
/** Architecture of the module */
arch?: string | undefined;
/** Context of the module */
context?: string | undefined;
/** Description of the module */
description?: string | undefined;
/** Name of the module */
name?: string | undefined;
/** Stream of the module */
stream?: string | undefined;
/** Type of rpm (can be either 'package' or 'module') */
type?: string | undefined;
/** Version of the module */
version?: string | undefined;
};
export type ApiSearchRpmResponse = {
/** Package name found */
package_name?: string | undefined;
/** List of the module streams for the package */
package_sources?: ApiModuleInfoResponse[] | undefined;
/** Summary of the package found */
summary?: string | undefined;
};