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

from __future__ import annotations
from .list import ListT, ListTTypedDict
from attio.types import BaseModel
from attio.utils import FieldMetadata, PathParamMetadata
import pydantic
from typing import Literal
from typing_extensions import Annotated, TypedDict


class GetV2ListsListRequestTypedDict(TypedDict):
    list_id: str


class GetV2ListsListRequest(BaseModel):
    list_id: Annotated[
        str,
        pydantic.Field(alias="list"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]


GetV2ListsListType = Literal["invalid_request_error",]


GetV2ListsListCode = Literal["not_found",]


class GetV2ListsListResponseTypedDict(TypedDict):
    r"""Success"""

    data: ListTTypedDict


class GetV2ListsListResponse(BaseModel):
    r"""Success"""

    data: ListT
