neko-image-gallery / app /Models /api_response /admin_api_response.py
eggacheb's picture
Upload 97 files
21db53c verified
raw
history blame contribute delete
585 Bytes
from uuid import UUID
from pydantic import Field
from .base import NekoProtocol
class ServerInfoResponse(NekoProtocol):
image_count: int
index_queue_length: int
class DuplicateValidationResponse(NekoProtocol):
entity_ids: list[UUID | None] = Field(
description="The image id for each hash. If the image does not exist in the server, the value will be null.")
exists: list[bool] = Field(
description="Whether the image exists in the server. True if the image exists, False otherwise.")
class ImageUploadResponse(NekoProtocol):
image_id: UUID