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

from __future__ import annotations
from .projectresponse import ProjectResponse, ProjectResponseTypedDict
from lambdadb.types import BaseModel
from lambdadb.utils import FieldMetadata, SecurityMetadata
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class ListProjectsSecurityTypedDict(TypedDict):
    admin_api_key: str


class ListProjectsSecurity(BaseModel):
    admin_api_key: Annotated[
        str,
        FieldMetadata(
            security=SecurityMetadata(
                scheme=True,
                scheme_type="apiKey",
                sub_type="header",
                field_name="x-api-key",
            )
        ),
    ]


class ListProjectsResponseTypedDict(TypedDict):
    r"""A list of projects."""

    projects: NotRequired[List[ProjectResponseTypedDict]]


class ListProjectsResponse(BaseModel):
    r"""A list of projects."""

    projects: Optional[List[ProjectResponse]] = None
