"""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 BulkAssignKeysToGuardrailRequestBodyTypedDict(TypedDict):
    key_hashes: List[str]
    r"""Array of API key hashes to assign to the guardrail"""


class BulkAssignKeysToGuardrailRequestBody(BaseModel):
    key_hashes: List[str]
    r"""Array of API key hashes to assign to the guardrail"""


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


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

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


class BulkAssignKeysToGuardrailResponseTypedDict(TypedDict):
    r"""Assignment result"""

    assigned_count: float
    r"""Number of keys successfully assigned"""


class BulkAssignKeysToGuardrailResponse(BaseModel):
    r"""Assignment result"""

    assigned_count: float
    r"""Number of keys successfully assigned"""
