mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-07 11:25:29 +08:00
Project import generated by Copybara.
GitOrigin-RevId: 2592bdc8b4b7c695a3d689390aedc9a42914acc8
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
"""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 BulkUnassignKeysFromGuardrailRequestBodyTypedDict(TypedDict):
|
||||
key_hashes: List[str]
|
||||
r"""Array of API key hashes to unassign from the guardrail"""
|
||||
|
||||
|
||||
class BulkUnassignKeysFromGuardrailRequestBody(BaseModel):
|
||||
key_hashes: List[str]
|
||||
r"""Array of API key hashes to unassign from the guardrail"""
|
||||
|
||||
|
||||
class BulkUnassignKeysFromGuardrailRequestTypedDict(TypedDict):
|
||||
id: str
|
||||
r"""The unique identifier of the guardrail"""
|
||||
request_body: BulkUnassignKeysFromGuardrailRequestBodyTypedDict
|
||||
|
||||
|
||||
class BulkUnassignKeysFromGuardrailRequest(BaseModel):
|
||||
id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
r"""The unique identifier of the guardrail"""
|
||||
|
||||
request_body: Annotated[
|
||||
BulkUnassignKeysFromGuardrailRequestBody,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
|
||||
class BulkUnassignKeysFromGuardrailResponseTypedDict(TypedDict):
|
||||
r"""Unassignment result"""
|
||||
|
||||
unassigned_count: float
|
||||
r"""Number of keys successfully unassigned"""
|
||||
|
||||
|
||||
class BulkUnassignKeysFromGuardrailResponse(BaseModel):
|
||||
r"""Unassignment result"""
|
||||
|
||||
unassigned_count: float
|
||||
r"""Number of keys successfully unassigned"""
|
||||
Reference in New Issue
Block a user