diff --git a/invokeai/frontend/web/src/services/api/models/ImageCategory.ts b/invokeai/frontend/web/src/services/api/models/ImageCategory.ts index 38955a0de1..c4edf90fd3 100644 --- a/invokeai/frontend/web/src/services/api/models/ImageCategory.ts +++ b/invokeai/frontend/web/src/services/api/models/ImageCategory.ts @@ -5,4 +5,4 @@ /** * The category of an image. Use ImageCategory.OTHER for non-default categories. */ -export type ImageCategory = 'image' | 'control_image' | 'other'; +export type ImageCategory = 'general' | 'control' | 'other'; diff --git a/invokeai/frontend/web/src/services/api/models/ImageDTO.ts b/invokeai/frontend/web/src/services/api/models/ImageDTO.ts index 311a4a30a6..c5fad70d8a 100644 --- a/invokeai/frontend/web/src/services/api/models/ImageDTO.ts +++ b/invokeai/frontend/web/src/services/api/models/ImageDTO.ts @@ -7,11 +7,11 @@ import type { ImageMetadata } from './ImageMetadata'; import type { ImageType } from './ImageType'; /** - * Deserialized image record with URLs. + * Deserialized image record, enriched for the frontend with URLs. */ export type ImageDTO = { /** - * The name of the image. + * The unique name of the image. */ image_name: string; /** @@ -23,27 +23,43 @@ export type ImageDTO = { */ image_url: string; /** - * The thumbnail URL of the image. + * The URL of the image's thumbnail. */ thumbnail_url: string; /** * The category of the image. */ image_category: ImageCategory; + /** + * The width of the image in px. + */ + width: number; + /** + * The height of the image in px. + */ + height: number; /** * The created timestamp of the image. */ created_at: string; /** - * The session ID. + * The updated timestamp of the image. + */ + updated_at: string; + /** + * The deleted timestamp of the image. + */ + deleted_at?: string; + /** + * The session ID that generated this image, if it is a generated image. */ session_id?: string; /** - * The node ID. + * The node ID that generated this image, if it is a generated image. */ node_id?: string; /** - * The image's metadata. + * A limited subset of the image's metadata. Retrieve the image's session for full metadata. */ metadata?: ImageMetadata; }; diff --git a/invokeai/frontend/web/src/services/api/models/ImageUrlsDTO.ts b/invokeai/frontend/web/src/services/api/models/ImageUrlsDTO.ts index ea77c8af21..af80519ef2 100644 --- a/invokeai/frontend/web/src/services/api/models/ImageUrlsDTO.ts +++ b/invokeai/frontend/web/src/services/api/models/ImageUrlsDTO.ts @@ -5,11 +5,11 @@ import type { ImageType } from './ImageType'; /** - * The URLs for an image and its thumbnaill + * The URLs for an image and its thumbnail. */ export type ImageUrlsDTO = { /** - * The name of the image. + * The unique name of the image. */ image_name: string; /** @@ -21,7 +21,7 @@ export type ImageUrlsDTO = { */ image_url: string; /** - * The thumbnail URL of the image. + * The URL of the image's thumbnail. */ thumbnail_url: string; };