mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): regen api client
This commit is contained in:
parent
f34f416bf5
commit
2e54da13d8
@ -14,7 +14,7 @@ export class ImagesService {
|
||||
|
||||
/**
|
||||
* Get Image
|
||||
* Gets a result
|
||||
* Gets an image
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
@ -44,6 +44,38 @@ export class ImagesService {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Image
|
||||
* Deletes an image and its thumbnail
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteImage({
|
||||
imageType,
|
||||
imageName,
|
||||
}: {
|
||||
/**
|
||||
* The type of image to delete
|
||||
*/
|
||||
imageType: ImageType,
|
||||
/**
|
||||
* The name of the image to delete
|
||||
*/
|
||||
imageName: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/api/v1/images/{image_type}/{image_name}',
|
||||
path: {
|
||||
'image_type': imageType,
|
||||
'image_name': imageName,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Thumbnail
|
||||
* Gets a thumbnail
|
||||
@ -51,24 +83,24 @@ export class ImagesService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getThumbnail({
|
||||
imageType,
|
||||
imageName,
|
||||
thumbnailType,
|
||||
thumbnailName,
|
||||
}: {
|
||||
/**
|
||||
* The type of image to get
|
||||
* The type of thumbnail to get
|
||||
*/
|
||||
imageType: ImageType,
|
||||
thumbnailType: ImageType,
|
||||
/**
|
||||
* The name of the image to get
|
||||
* The name of the thumbnail to get
|
||||
*/
|
||||
imageName: string,
|
||||
thumbnailName: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/images/{image_type}/thumbnails/{image_name}',
|
||||
url: '/api/v1/images/{thumbnail_type}/thumbnails/{thumbnail_name}',
|
||||
path: {
|
||||
'image_type': imageType,
|
||||
'image_name': imageName,
|
||||
'thumbnail_type': thumbnailType,
|
||||
'thumbnail_name': thumbnailName,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
|
Loading…
Reference in New Issue
Block a user