# generated by datamodel-codegen:
#   filename:  not_real_string.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel


class Tweet(BaseModel):
    author_id: str | None = None


class Users(RootModel[list[str]]):
    root: list[str]


class FileHash(RootModel[str]):
    root: str = Field(
        ...,
        description='For file',
        max_length=32,
        min_length=32,
        pattern='^[a-fA-F\\d]{32}$',
    )


class FileRequest(BaseModel):
    file_hash: str = Field(
        ...,
        description='For file',
        max_length=32,
        min_length=32,
        pattern='^[a-fA-F\\d]{32}$',
    )


class ImageRequest(BaseModel):
    image_hash: str | None = Field(
        None,
        description='For image',
        max_length=64,
        min_length=64,
        pattern='^[a-fA-F\\d]{32}$',
    )


class FileHashes(RootModel[list[FileHash]]):
    root: list[FileHash]
