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

from __future__ import annotations
from .v3_teams_createteamrolerequest import (
    V3TeamsCreateTeamRoleRequest,
    V3TeamsCreateTeamRoleRequestTypedDict,
)
from .v3_teams_teambaseresponse import (
    V3TeamsTeamBaseResponse,
    V3TeamsTeamBaseResponseTypedDict,
)
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class TeamsCreateTeamRoleRequestTypedDict(TypedDict):
    team_id: str
    v3_teams_create_team_role_request: V3TeamsCreateTeamRoleRequestTypedDict


class TeamsCreateTeamRoleRequest(BaseModel):
    team_id: Annotated[
        str,
        pydantic.Field(alias="teamId"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

    v3_teams_create_team_role_request: Annotated[
        V3TeamsCreateTeamRoleRequest,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class TeamsCreateTeamRoleResponseTypedDict(TypedDict):
    r"""The request has succeeded and a new resource has been created as a result."""

    data: V3TeamsTeamBaseResponseTypedDict


class TeamsCreateTeamRoleResponse(BaseModel):
    r"""The request has succeeded and a new resource has been created as a result."""

    data: V3TeamsTeamBaseResponse
