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

from __future__ import annotations
from .v4_statuspages_componentgroups_componentgroupresponse import (
    V4StatusPagesComponentGroupsComponentGroupResponse,
    V4StatusPagesComponentGroupsComponentGroupResponseTypedDict,
)
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata
from typing import List
from typing_extensions import Annotated, TypedDict


class ComponentGroupsListComponentGroupsRequestTypedDict(TypedDict):
    statuspage_id: str


class ComponentGroupsListComponentGroupsRequest(BaseModel):
    statuspage_id: Annotated[
        str,
        pydantic.Field(alias="statuspageID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]


class ComponentGroupsListComponentGroupsResponseTypedDict(TypedDict):
    r"""The request has succeeded."""

    data: List[V4StatusPagesComponentGroupsComponentGroupResponseTypedDict]


class ComponentGroupsListComponentGroupsResponse(BaseModel):
    r"""The request has succeeded."""

    data: List[V4StatusPagesComponentGroupsComponentGroupResponse]
