chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-05-27 21:40:02 +10:00 committed by Kent Keirsey
parent 160267c71a
commit d78e3572e3
8 changed files with 71 additions and 71 deletions

View File

@ -42,7 +42,6 @@ export type { ImagePasteInvocation } from './models/ImagePasteInvocation';
export type { ImageRecordChanges } from './models/ImageRecordChanges'; export type { ImageRecordChanges } from './models/ImageRecordChanges';
export type { ImageToImageInvocation } from './models/ImageToImageInvocation'; export type { ImageToImageInvocation } from './models/ImageToImageInvocation';
export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation'; export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation';
export type { ImageType } from './models/ImageType';
export type { ImageUrlsDTO } from './models/ImageUrlsDTO'; export type { ImageUrlsDTO } from './models/ImageUrlsDTO';
export type { InfillColorInvocation } from './models/InfillColorInvocation'; export type { InfillColorInvocation } from './models/InfillColorInvocation';
export type { InfillPatchMatchInvocation } from './models/InfillPatchMatchInvocation'; export type { InfillPatchMatchInvocation } from './models/InfillPatchMatchInvocation';
@ -72,6 +71,7 @@ export type { RandomRangeInvocation } from './models/RandomRangeInvocation';
export type { RangeInvocation } from './models/RangeInvocation'; export type { RangeInvocation } from './models/RangeInvocation';
export type { RangeOfSizeInvocation } from './models/RangeOfSizeInvocation'; export type { RangeOfSizeInvocation } from './models/RangeOfSizeInvocation';
export type { ResizeLatentsInvocation } from './models/ResizeLatentsInvocation'; export type { ResizeLatentsInvocation } from './models/ResizeLatentsInvocation';
export type { ResourceOrigin } from './models/ResourceOrigin';
export type { RestoreFaceInvocation } from './models/RestoreFaceInvocation'; export type { RestoreFaceInvocation } from './models/RestoreFaceInvocation';
export type { ScaleLatentsInvocation } from './models/ScaleLatentsInvocation'; export type { ScaleLatentsInvocation } from './models/ScaleLatentsInvocation';
export type { ShowImageInvocation } from './models/ShowImageInvocation'; export type { ShowImageInvocation } from './models/ShowImageInvocation';

View File

@ -3,6 +3,12 @@
/* eslint-disable */ /* eslint-disable */
/** /**
* The category of an image. Use ImageCategory.OTHER for non-default categories. * The category of an image.
*
* - GENERAL: The image is an output, init image, or otherwise an image without a specialized purpose.
* - MASK: The image is a mask image.
* - CONTROL: The image is a ControlNet control image.
* - USER: The image is a user-provide image.
* - OTHER: The image is some other type of image with a specialized purpose. To be used by external nodes.
*/ */
export type ImageCategory = 'general' | 'control' | 'mask' | 'other'; export type ImageCategory = 'general' | 'mask' | 'control' | 'user' | 'other';

View File

@ -4,7 +4,7 @@
import type { ImageCategory } from './ImageCategory'; import type { ImageCategory } from './ImageCategory';
import type { ImageMetadata } from './ImageMetadata'; import type { ImageMetadata } from './ImageMetadata';
import type { ImageType } from './ImageType'; import type { ResourceOrigin } from './ResourceOrigin';
/** /**
* Deserialized image record, enriched for the frontend with URLs. * Deserialized image record, enriched for the frontend with URLs.
@ -17,7 +17,7 @@ export type ImageDTO = {
/** /**
* The type of the image. * The type of the image.
*/ */
image_type: ImageType; image_origin: ResourceOrigin;
/** /**
* The URL of the image. * The URL of the image.
*/ */
@ -54,10 +54,6 @@ export type ImageDTO = {
* Whether this is an intermediate image. * Whether this is an intermediate image.
*/ */
is_intermediate: boolean; is_intermediate: boolean;
/**
* Whether this image should be shown in the gallery.
*/
show_in_gallery: boolean;
/** /**
* The session ID that generated this image, if it is a generated image. * The session ID that generated this image, if it is a generated image.
*/ */

View File

@ -2,7 +2,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ImageType } from './ImageType'; import type { ResourceOrigin } from './ResourceOrigin';
/** /**
* An image field used for passing image objects between invocations * An image field used for passing image objects between invocations
@ -11,7 +11,7 @@ export type ImageField = {
/** /**
* The type of the image * The type of the image
*/ */
image_type: ImageType; image_origin: ResourceOrigin;
/** /**
* The name of the image * The name of the image
*/ */

View File

@ -1,8 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* The type of an image.
*/
export type ImageType = 'results' | 'uploads';

View File

@ -2,7 +2,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ImageType } from './ImageType'; import type { ResourceOrigin } from './ResourceOrigin';
/** /**
* The URLs for an image and its thumbnail. * The URLs for an image and its thumbnail.
@ -15,7 +15,7 @@ export type ImageUrlsDTO = {
/** /**
* The type of the image. * The type of the image.
*/ */
image_type: ImageType; image_origin: ResourceOrigin;
/** /**
* The URL of the image. * The URL of the image.
*/ */

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* The origin of a resource (eg image).
*
* - INTERNAL: The resource was created by the application.
* - EXTERNAL: The resource was not created by the application.
* This may be a user-initiated upload, or an internal application upload (eg Canvas init image).
*/
export type ResourceOrigin = 'internal' | 'external';

View File

@ -5,9 +5,9 @@ import type { Body_upload_image } from '../models/Body_upload_image';
import type { ImageCategory } from '../models/ImageCategory'; import type { ImageCategory } from '../models/ImageCategory';
import type { ImageDTO } from '../models/ImageDTO'; import type { ImageDTO } from '../models/ImageDTO';
import type { ImageRecordChanges } from '../models/ImageRecordChanges'; import type { ImageRecordChanges } from '../models/ImageRecordChanges';
import type { ImageType } from '../models/ImageType';
import type { ImageUrlsDTO } from '../models/ImageUrlsDTO'; import type { ImageUrlsDTO } from '../models/ImageUrlsDTO';
import type { PaginatedResults_ImageDTO_ } from '../models/PaginatedResults_ImageDTO_'; import type { PaginatedResults_ImageDTO_ } from '../models/PaginatedResults_ImageDTO_';
import type { ResourceOrigin } from '../models/ResourceOrigin';
import type { CancelablePromise } from '../core/CancelablePromise'; import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI'; import { OpenAPI } from '../core/OpenAPI';
@ -22,29 +22,29 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static listImagesWithMetadata({ public static listImagesWithMetadata({
imageType, imageOrigin,
imageCategory, includeCategories,
excludeCategories,
isIntermediate, isIntermediate,
showInGallery,
page, page,
perPage = 10, perPage = 10,
}: { }: {
/** /**
* The type of images to list * The origin of images to list
*/ */
imageType?: ImageType, imageOrigin?: ResourceOrigin,
/** /**
* The kind of images to list * The categories of image to include
*/ */
imageCategory?: ImageCategory, includeCategories?: Array<ImageCategory>,
/**
* The categories of image to exclude
*/
excludeCategories?: Array<ImageCategory>,
/** /**
* Whether to list intermediate images * Whether to list intermediate images
*/ */
isIntermediate?: boolean, isIntermediate?: boolean,
/**
* Whether to list images that show in the gallery
*/
showInGallery?: boolean,
/** /**
* The page of images to get * The page of images to get
*/ */
@ -58,10 +58,10 @@ export class ImagesService {
method: 'GET', method: 'GET',
url: '/api/v1/images/', url: '/api/v1/images/',
query: { query: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_category': imageCategory, 'include_categories': includeCategories,
'exclude_categories': excludeCategories,
'is_intermediate': isIntermediate, 'is_intermediate': isIntermediate,
'show_in_gallery': showInGallery,
'page': page, 'page': page,
'per_page': perPage, 'per_page': perPage,
}, },
@ -80,7 +80,6 @@ export class ImagesService {
public static uploadImage({ public static uploadImage({
imageCategory, imageCategory,
isIntermediate, isIntermediate,
showInGallery,
formData, formData,
sessionId, sessionId,
}: { }: {
@ -92,10 +91,6 @@ export class ImagesService {
* Whether this is an intermediate image * Whether this is an intermediate image
*/ */
isIntermediate: boolean, isIntermediate: boolean,
/**
* Whether this image should be shown in the gallery
*/
showInGallery: boolean,
formData: Body_upload_image, formData: Body_upload_image,
/** /**
* The session ID associated with this upload, if any * The session ID associated with this upload, if any
@ -108,7 +103,6 @@ export class ImagesService {
query: { query: {
'image_category': imageCategory, 'image_category': imageCategory,
'is_intermediate': isIntermediate, 'is_intermediate': isIntermediate,
'show_in_gallery': showInGallery,
'session_id': sessionId, 'session_id': sessionId,
}, },
formData: formData, formData: formData,
@ -127,13 +121,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageFull({ public static getImageFull({
imageType, imageOrigin,
imageName, imageName,
}: { }: {
/** /**
* The type of full-resolution image file to get * The type of full-resolution image file to get
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of full-resolution image file to get * The name of full-resolution image file to get
*/ */
@ -141,9 +135,9 @@ export class ImagesService {
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}', url: '/api/v1/images/{image_origin}/{image_name}',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
@ -160,13 +154,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static deleteImage({ public static deleteImage({
imageType, imageOrigin,
imageName, imageName,
}: { }: {
/** /**
* The type of image to delete * The origin of image to delete
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of the image to delete * The name of the image to delete
*/ */
@ -174,9 +168,9 @@ export class ImagesService {
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/images/{image_type}/{image_name}', url: '/api/v1/images/{image_origin}/{image_name}',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
@ -192,14 +186,14 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static updateImage({ public static updateImage({
imageType, imageOrigin,
imageName, imageName,
requestBody, requestBody,
}: { }: {
/** /**
* The type of image to update * The origin of image to update
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of the image to update * The name of the image to update
*/ */
@ -208,9 +202,9 @@ export class ImagesService {
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'PATCH', method: 'PATCH',
url: '/api/v1/images/{image_type}/{image_name}', url: '/api/v1/images/{image_origin}/{image_name}',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
body: requestBody, body: requestBody,
@ -228,13 +222,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageMetadata({ public static getImageMetadata({
imageType, imageOrigin,
imageName, imageName,
}: { }: {
/** /**
* The type of image to get * The origin of image to get
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of image to get * The name of image to get
*/ */
@ -242,9 +236,9 @@ export class ImagesService {
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}/metadata', url: '/api/v1/images/{image_origin}/{image_name}/metadata',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
@ -260,13 +254,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageThumbnail({ public static getImageThumbnail({
imageType, imageOrigin,
imageName, imageName,
}: { }: {
/** /**
* The type of thumbnail image file to get * The origin of thumbnail image file to get
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of thumbnail image file to get * The name of thumbnail image file to get
*/ */
@ -274,9 +268,9 @@ export class ImagesService {
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}/thumbnail', url: '/api/v1/images/{image_origin}/{image_name}/thumbnail',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
@ -293,13 +287,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageUrls({ public static getImageUrls({
imageType, imageOrigin,
imageName, imageName,
}: { }: {
/** /**
* The type of the image whose URL to get * The origin of the image whose URL to get
*/ */
imageType: ImageType, imageOrigin: ResourceOrigin,
/** /**
* The name of the image whose URL to get * The name of the image whose URL to get
*/ */
@ -307,9 +301,9 @@ export class ImagesService {
}): CancelablePromise<ImageUrlsDTO> { }): CancelablePromise<ImageUrlsDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}/urls', url: '/api/v1/images/{image_origin}/{image_name}/urls',
path: { path: {
'image_type': imageType, 'image_origin': imageOrigin,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {