feat: regenerate SDK with updated OpenAPI spec

Speakeasy regeneration with latest schema changes including
type renames and new server tool models.
This commit is contained in:
OpenRouter SDK Bot
2026-03-27 15:18:14 -04:00
parent e72a84e82d
commit 5ab44f08f0
375 changed files with 36229 additions and 5480 deletions
@@ -0,0 +1,79 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from openrouter.types import BaseModel
import pydantic
from typing import List, Literal, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
TextDoneEventType = Literal["response.output_text.done",]
class TextDoneEventTopLogprobTypedDict(TypedDict):
r"""Alternative token with its log probability"""
token: NotRequired[str]
logprob: NotRequired[float]
bytes_: NotRequired[List[float]]
class TextDoneEventTopLogprob(BaseModel):
r"""Alternative token with its log probability"""
token: Optional[str] = None
logprob: Optional[float] = None
bytes_: Annotated[Optional[List[float]], pydantic.Field(alias="bytes")] = None
class TextDoneEventLogprobTypedDict(TypedDict):
r"""Log probability information for a token"""
logprob: float
token: str
top_logprobs: NotRequired[List[TextDoneEventTopLogprobTypedDict]]
bytes_: NotRequired[List[float]]
class TextDoneEventLogprob(BaseModel):
r"""Log probability information for a token"""
logprob: float
token: str
top_logprobs: Optional[List[TextDoneEventTopLogprob]] = None
bytes_: Annotated[Optional[List[float]], pydantic.Field(alias="bytes")] = None
class TextDoneEventTypedDict(TypedDict):
r"""Event emitted when text streaming is complete"""
type: TextDoneEventType
output_index: float
item_id: str
content_index: float
text: str
sequence_number: float
logprobs: List[TextDoneEventLogprobTypedDict]
class TextDoneEvent(BaseModel):
r"""Event emitted when text streaming is complete"""
type: TextDoneEventType
output_index: float
item_id: str
content_index: float
text: str
sequence_number: float
logprobs: List[TextDoneEventLogprob]