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

from __future__ import annotations
from .dangerousgoodsdeclaration import (
    DangerousGoodsDeclaration,
    DangerousGoodsDeclarationTypedDict,
)
from .httpmetadata import HTTPMetadata, HTTPMetadataTypedDict
from abbyy_document_ai.types import BaseModel
from abbyy_document_ai.utils import FieldMetadata, PathParamMetadata
import pydantic
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class GetExtractedDangerousGoodsDeclarationFieldsRequestTypedDict(TypedDict):
    document_id: str
    r"""The id of the document"""


class GetExtractedDangerousGoodsDeclarationFieldsRequest(BaseModel):
    document_id: Annotated[
        str,
        pydantic.Field(alias="documentId"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""The id of the document"""


class GetExtractedDangerousGoodsDeclarationFieldsResponseTypedDict(TypedDict):
    http_meta: HTTPMetadataTypedDict
    dangerous_goods_declaration: NotRequired[DangerousGoodsDeclarationTypedDict]
    r"""Extracted Dangerous Goods Declaration Data Response"""


class GetExtractedDangerousGoodsDeclarationFieldsResponse(BaseModel):
    http_meta: Annotated[Optional[HTTPMetadata], pydantic.Field(exclude=True)] = None

    dangerous_goods_declaration: Optional[DangerousGoodsDeclaration] = None
    r"""Extracted Dangerous Goods Declaration Data Response"""
