mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-12 12:10:30 +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 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"""
|
||||
Reference in New Issue
Block a user