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

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel, Field


class Tweet(BaseModel):
    author_id: Optional[str] = None


class Users(BaseModel):
    __root__: List[str]


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


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


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


class FileHashes(BaseModel):
    __root__: List[FileHash]
