2024-07-28 15:20:05 -07:00
import datetime
from typing import Any , Dict , List , Literal , Optional , Union
from uuid import UUID
2022-04-06 22:41:11 -07:00
2024-07-28 15:20:05 -07:00
from pydantic import AnyUrl , Base64Bytes , BaseModel , ConfigDict
from pydantic_extra_types . phone_numbers import PhoneNumber
2022-04-06 22:41:11 -07:00
2024-07-28 15:20:05 -07:00
from . base64data import Base64Data
2022-04-06 22:41:11 -07:00
2023-11-29 00:39:14 -08:00
2023-11-28 23:50:50 -08:00
class ImportFile ( BaseModel ) :
2024-02-24 17:03:55 -08:00
""" File to import into the current model. If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json. """
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
data : bytes
2022-04-06 22:41:11 -07:00
2023-11-28 23:50:50 -08:00
path : str
2024-01-06 18:32:21 -08:00
model_config = ConfigDict ( protected_namespaces = ( ) )