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

from __future__ import annotations
from lambdadb.types import BaseModel
from lambdadb.utils import FieldMetadata, SecurityMetadata
import pydantic
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class CreateProjectSecurityTypedDict(TypedDict):
    admin_api_key: str


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


class CreateProjectRequestTypedDict(TypedDict):
    project_name: NotRequired[str]
    r"""Displayed project name. Note that the supported maximum length is 45."""
    rate_limit: NotRequired[float]


class CreateProjectRequest(BaseModel):
    project_name: Annotated[Optional[str], pydantic.Field(alias="projectName")] = None
    r"""Displayed project name. Note that the supported maximum length is 45."""

    rate_limit: Annotated[Optional[float], pydantic.Field(alias="rateLimit")] = None
