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

from __future__ import annotations
from ascend_sdk.models.components import (
    httpmetadata as components_httpmetadata,
    restriction as components_restriction,
    restrictioncreate as components_restrictioncreate,
    status as components_status,
)
from ascend_sdk.types import BaseModel
from ascend_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
import pydantic
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class AccountsCreateRestrictionRequestTypedDict(TypedDict):
    account_id: str
    r"""The account id."""
    restriction_create: components_restrictioncreate.RestrictionCreateTypedDict


class AccountsCreateRestrictionRequest(BaseModel):
    account_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The account id."""

    restriction_create: Annotated[
        components_restrictioncreate.RestrictionCreate,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class AccountsCreateRestrictionResponseTypedDict(TypedDict):
    http_meta: components_httpmetadata.HTTPMetadataTypedDict
    restriction: NotRequired[components_restriction.RestrictionTypedDict]
    r"""OK"""
    status: NotRequired[components_status.StatusTypedDict]
    r"""INVALID_ARGUMENT: The request is not valid, additional information may be present in the BadRequest details."""


class AccountsCreateRestrictionResponse(BaseModel):
    http_meta: Annotated[
        Optional[components_httpmetadata.HTTPMetadata], pydantic.Field(exclude=True)
    ] = None

    restriction: Optional[components_restriction.Restriction] = None
    r"""OK"""

    status: Optional[components_status.Status] = None
    r"""INVALID_ARGUMENT: The request is not valid, additional information may be present in the BadRequest details."""
