"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from documenso_sdk import utils
from documenso_sdk.types import BaseModel
import pydantic
from typing import List, Optional
from typing_extensions import Annotated, TypedDict


class FieldDeleteDocumentFieldRequestBodyTypedDict(TypedDict):
    field_id: float


class FieldDeleteDocumentFieldRequestBody(BaseModel):
    field_id: Annotated[float, pydantic.Field(alias="fieldId")]


class FieldDeleteDocumentFieldDocumentsFieldsIssuesTypedDict(TypedDict):
    message: str


class FieldDeleteDocumentFieldDocumentsFieldsIssues(BaseModel):
    message: str


class FieldDeleteDocumentFieldDocumentsFieldsResponseResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[FieldDeleteDocumentFieldDocumentsFieldsIssues]] = None


class FieldDeleteDocumentFieldDocumentsFieldsResponseResponseBody(Exception):
    r"""Internal server error"""

    data: FieldDeleteDocumentFieldDocumentsFieldsResponseResponseBodyData

    def __init__(
        self, data: FieldDeleteDocumentFieldDocumentsFieldsResponseResponseBodyData
    ):
        self.data = data

    def __str__(self) -> str:
        return utils.marshal_json(
            self.data, FieldDeleteDocumentFieldDocumentsFieldsResponseResponseBodyData
        )


class FieldDeleteDocumentFieldIssuesTypedDict(TypedDict):
    message: str


class FieldDeleteDocumentFieldIssues(BaseModel):
    message: str


class FieldDeleteDocumentFieldDocumentsFieldsResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[FieldDeleteDocumentFieldIssues]] = None


class FieldDeleteDocumentFieldDocumentsFieldsResponseBody(Exception):
    r"""Invalid input data"""

    data: FieldDeleteDocumentFieldDocumentsFieldsResponseBodyData

    def __init__(self, data: FieldDeleteDocumentFieldDocumentsFieldsResponseBodyData):
        self.data = data

    def __str__(self) -> str:
        return utils.marshal_json(
            self.data, FieldDeleteDocumentFieldDocumentsFieldsResponseBodyData
        )


class FieldDeleteDocumentFieldResponseBodyTypedDict(TypedDict):
    r"""Successful response"""

    success: bool


class FieldDeleteDocumentFieldResponseBody(BaseModel):
    r"""Successful response"""

    success: bool
