"""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 DocumentDeleteDocumentRequestBodyTypedDict(TypedDict):
    document_id: float


class DocumentDeleteDocumentRequestBody(BaseModel):
    document_id: Annotated[float, pydantic.Field(alias="documentId")]


class DocumentDeleteDocumentDocumentsIssuesTypedDict(TypedDict):
    message: str


class DocumentDeleteDocumentDocumentsIssues(BaseModel):
    message: str


class DocumentDeleteDocumentDocumentsResponseResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[DocumentDeleteDocumentDocumentsIssues]] = None


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

    data: DocumentDeleteDocumentDocumentsResponseResponseBodyData

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

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


class DocumentDeleteDocumentIssuesTypedDict(TypedDict):
    message: str


class DocumentDeleteDocumentIssues(BaseModel):
    message: str


class DocumentDeleteDocumentDocumentsResponseBodyData(BaseModel):
    message: str

    code: str

    issues: Optional[List[DocumentDeleteDocumentIssues]] = None


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

    data: DocumentDeleteDocumentDocumentsResponseBodyData

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

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


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

    success: bool


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

    success: bool
