mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): regenerate api client
This commit is contained in:
parent
5a9157e628
commit
7ff50796e5
@ -9,10 +9,10 @@ export type ImageField = {
|
||||
/**
|
||||
* The type of the image
|
||||
*/
|
||||
image_type?: string;
|
||||
image_type: string;
|
||||
/**
|
||||
* The name of the image
|
||||
*/
|
||||
image_name?: string;
|
||||
image_name: string;
|
||||
};
|
||||
|
||||
|
@ -7,10 +7,12 @@ export const $ImageField = {
|
||||
image_type: {
|
||||
type: 'string',
|
||||
description: `The type of the image`,
|
||||
isRequired: true,
|
||||
},
|
||||
image_name: {
|
||||
type: 'string',
|
||||
description: `The name of the image`,
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
@ -42,6 +42,38 @@ export class ImagesService {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Thumbnail
|
||||
* Gets a thumbnail
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getThumbnail({
|
||||
imageType,
|
||||
imageName,
|
||||
}: {
|
||||
/**
|
||||
* The type of image to get
|
||||
*/
|
||||
imageType: ImageType,
|
||||
/**
|
||||
* The name of the image to get
|
||||
*/
|
||||
imageName: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/images/{image_type}/thumbnails/{image_name}',
|
||||
path: {
|
||||
'image_type': imageType,
|
||||
'image_name': imageName,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload Image
|
||||
* @returns any Successful Response
|
||||
|
Loading…
Reference in New Issue
Block a user