"""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 FieldDeleteTemplateFieldRequestBodyTypedDict(TypedDict):
    field_id: float


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


class FieldDeleteTemplateFieldTemplatesFieldsIssuesTypedDict(TypedDict):
    message: str


class FieldDeleteTemplateFieldTemplatesFieldsIssues(BaseModel):
    message: str


class FieldDeleteTemplateFieldTemplatesFieldsResponseResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[FieldDeleteTemplateFieldTemplatesFieldsIssues]] = None


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

    data: FieldDeleteTemplateFieldTemplatesFieldsResponseResponseBodyData

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

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


class FieldDeleteTemplateFieldIssuesTypedDict(TypedDict):
    message: str


class FieldDeleteTemplateFieldIssues(BaseModel):
    message: str


class FieldDeleteTemplateFieldTemplatesFieldsResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[FieldDeleteTemplateFieldIssues]] = None


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

    data: FieldDeleteTemplateFieldTemplatesFieldsResponseBodyData

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

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


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

    success: bool


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

    success: bool
