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

from __future__ import annotations
from openrouter.types import BaseModel
from openrouter.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing import List
from typing_extensions import Annotated, TypedDict


class BulkUnassignMembersFromGuardrailRequestBodyTypedDict(TypedDict):
    member_user_ids: List[str]
    r"""Array of member user IDs to unassign from the guardrail"""


class BulkUnassignMembersFromGuardrailRequestBody(BaseModel):
    member_user_ids: List[str]
    r"""Array of member user IDs to unassign from the guardrail"""


class BulkUnassignMembersFromGuardrailRequestTypedDict(TypedDict):
    id: str
    r"""The unique identifier of the guardrail"""
    request_body: BulkUnassignMembersFromGuardrailRequestBodyTypedDict


class BulkUnassignMembersFromGuardrailRequest(BaseModel):
    id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The unique identifier of the guardrail"""

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


class BulkUnassignMembersFromGuardrailResponseTypedDict(TypedDict):
    r"""Unassignment result"""

    unassigned_count: float
    r"""Number of members successfully unassigned"""


class BulkUnassignMembersFromGuardrailResponse(BaseModel):
    r"""Unassignment result"""

    unassigned_count: float
    r"""Number of members successfully unassigned"""
