chore: 🐝 Update SDK - Generate (spec change merged) 0.11.17 (#422)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-07-09 21:39:01 +00:00
committed by GitHub
co-authored by speakeasybot speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent e62415b7ce
commit 4a9b45c2a0
31 changed files with 1004 additions and 76 deletions
+25
View File
@@ -2488,6 +2488,17 @@ if TYPE_CHECKING:
SubagentServerToolConfig,
SubagentServerToolConfigTypedDict,
)
from .submitgenerationfeedbackrequest import (
Category,
SubmitGenerationFeedbackRequest,
SubmitGenerationFeedbackRequestTypedDict,
)
from .submitgenerationfeedbackresponse import (
SubmitGenerationFeedbackResponse,
SubmitGenerationFeedbackResponseData,
SubmitGenerationFeedbackResponseDataTypedDict,
SubmitGenerationFeedbackResponseTypedDict,
)
from .taskclassificationitem import (
TaskClassificationItem,
TaskClassificationItemTypedDict,
@@ -2995,6 +3006,7 @@ __all__ = [
"CachingTypedDict",
"CapabilityDescriptor",
"CapabilityDescriptorTypedDict",
"Category",
"ChatAssistantImages",
"ChatAssistantImagesImageURL",
"ChatAssistantImagesImageURLTypedDict",
@@ -4486,6 +4498,12 @@ __all__ = [
"SubagentServerToolOpenRouter",
"SubagentServerToolOpenRouterType",
"SubagentServerToolOpenRouterTypedDict",
"SubmitGenerationFeedbackRequest",
"SubmitGenerationFeedbackRequestTypedDict",
"SubmitGenerationFeedbackResponse",
"SubmitGenerationFeedbackResponseData",
"SubmitGenerationFeedbackResponseDataTypedDict",
"SubmitGenerationFeedbackResponseTypedDict",
"SupportedAspectRatio",
"SupportedFrameImage",
"SupportedResolution",
@@ -6605,6 +6623,13 @@ _dynamic_imports: dict[str, str] = {
"SubagentServerToolOpenRouterTypedDict": ".subagentservertool_openrouter",
"SubagentServerToolConfig": ".subagentservertoolconfig",
"SubagentServerToolConfigTypedDict": ".subagentservertoolconfig",
"Category": ".submitgenerationfeedbackrequest",
"SubmitGenerationFeedbackRequest": ".submitgenerationfeedbackrequest",
"SubmitGenerationFeedbackRequestTypedDict": ".submitgenerationfeedbackrequest",
"SubmitGenerationFeedbackResponse": ".submitgenerationfeedbackresponse",
"SubmitGenerationFeedbackResponseData": ".submitgenerationfeedbackresponse",
"SubmitGenerationFeedbackResponseDataTypedDict": ".submitgenerationfeedbackresponse",
"SubmitGenerationFeedbackResponseTypedDict": ".submitgenerationfeedbackresponse",
"TaskClassificationItem": ".taskclassificationitem",
"TaskClassificationItemTypedDict": ".taskclassificationitem",
"TaskClassificationMacroCategory": ".taskclassificationmacrocategory",
@@ -78,7 +78,7 @@ BYOKProviderSlug = Union[
"recraft",
"reka",
"relace",
"sakana-ai",
"sakana",
"sambanova",
"seed",
"siliconflow",
@@ -162,7 +162,7 @@ class ImageGenerationRequestOptionsTypedDict(TypedDict):
reka: NotRequired[Dict[str, Nullable[Any]]]
relace: NotRequired[Dict[str, Nullable[Any]]]
replicate: NotRequired[Dict[str, Nullable[Any]]]
sakana_ai: NotRequired[Dict[str, Nullable[Any]]]
sakana: NotRequired[Dict[str, Nullable[Any]]]
sambanova: NotRequired[Dict[str, Nullable[Any]]]
sambanova_cloaked: NotRequired[Dict[str, Nullable[Any]]]
seed: NotRequired[Dict[str, Nullable[Any]]]
@@ -422,9 +422,7 @@ class ImageGenerationRequestOptions(BaseModel):
replicate: Optional[Dict[str, Nullable[Any]]] = None
sakana_ai: Annotated[
Optional[Dict[str, Nullable[Any]]], pydantic.Field(alias="sakana-ai")
] = None
sakana: Optional[Dict[str, Nullable[Any]]] = None
sambanova: Optional[Dict[str, Nullable[Any]]] = None
@@ -579,7 +577,7 @@ class ImageGenerationRequestOptions(BaseModel):
"reka",
"relace",
"replicate",
"sakana-ai",
"sakana",
"sambanova",
"sambanova-cloaked",
"seed",
+3 -5
View File
@@ -108,7 +108,7 @@ class ProviderOptionsTypedDict(TypedDict):
reka: NotRequired[Dict[str, Nullable[Any]]]
relace: NotRequired[Dict[str, Nullable[Any]]]
replicate: NotRequired[Dict[str, Nullable[Any]]]
sakana_ai: NotRequired[Dict[str, Nullable[Any]]]
sakana: NotRequired[Dict[str, Nullable[Any]]]
sambanova: NotRequired[Dict[str, Nullable[Any]]]
sambanova_cloaked: NotRequired[Dict[str, Nullable[Any]]]
seed: NotRequired[Dict[str, Nullable[Any]]]
@@ -368,9 +368,7 @@ class ProviderOptions(BaseModel):
replicate: Optional[Dict[str, Nullable[Any]]] = None
sakana_ai: Annotated[
Optional[Dict[str, Nullable[Any]]], pydantic.Field(alias="sakana-ai")
] = None
sakana: Optional[Dict[str, Nullable[Any]]] = None
sambanova: Optional[Dict[str, Nullable[Any]]] = None
@@ -525,7 +523,7 @@ class ProviderOptions(BaseModel):
"reka",
"relace",
"replicate",
"sakana-ai",
"sakana",
"sambanova",
"sambanova-cloaked",
"seed",
@@ -0,0 +1,62 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from openrouter.types import BaseModel, UNSET_SENTINEL, UnrecognizedStr
from pydantic import model_serializer
from typing import Literal, Optional, Union
from typing_extensions import NotRequired, TypedDict
Category = Union[
Literal[
"latency",
"incoherence",
"incorrect_response",
"formatting",
"billing",
"api_error",
"other",
],
UnrecognizedStr,
]
r"""The category of feedback being reported"""
class SubmitGenerationFeedbackRequestTypedDict(TypedDict):
r"""Structured feedback about a specific generation"""
category: Category
r"""The category of feedback being reported"""
generation_id: str
r"""The generation to submit feedback on"""
comment: NotRequired[str]
r"""An optional free-text comment describing the feedback"""
class SubmitGenerationFeedbackRequest(BaseModel):
r"""Structured feedback about a specific generation"""
category: Category
r"""The category of feedback being reported"""
generation_id: str
r"""The generation to submit feedback on"""
comment: Optional[str] = None
r"""An optional free-text comment describing the feedback"""
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["comment"])
serialized = handler(self)
m = {}
for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))
if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val
return m
@@ -0,0 +1,40 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from openrouter.types import BaseModel
from openrouter.utils import validate_const
import pydantic
from pydantic.functional_validators import AfterValidator
from typing import Literal
from typing_extensions import Annotated, TypedDict
class SubmitGenerationFeedbackResponseDataTypedDict(TypedDict):
success: Literal[True]
r"""Whether the feedback was recorded"""
class SubmitGenerationFeedbackResponseData(BaseModel):
SUCCESS: Annotated[
Annotated[Literal[True], AfterValidator(validate_const(True))],
pydantic.Field(alias="success"),
] = True
r"""Whether the feedback was recorded"""
class SubmitGenerationFeedbackResponseTypedDict(TypedDict):
r"""Confirmation that the feedback was recorded"""
data: SubmitGenerationFeedbackResponseDataTypedDict
class SubmitGenerationFeedbackResponse(BaseModel):
r"""Confirmation that the feedback was recorded"""
data: SubmitGenerationFeedbackResponseData
try:
SubmitGenerationFeedbackResponseData.model_rebuild()
except NameError:
pass
@@ -127,7 +127,7 @@ class VideoGenerationRequestOptionsTypedDict(TypedDict):
reka: NotRequired[Dict[str, Nullable[Any]]]
relace: NotRequired[Dict[str, Nullable[Any]]]
replicate: NotRequired[Dict[str, Nullable[Any]]]
sakana_ai: NotRequired[Dict[str, Nullable[Any]]]
sakana: NotRequired[Dict[str, Nullable[Any]]]
sambanova: NotRequired[Dict[str, Nullable[Any]]]
sambanova_cloaked: NotRequired[Dict[str, Nullable[Any]]]
seed: NotRequired[Dict[str, Nullable[Any]]]
@@ -387,9 +387,7 @@ class VideoGenerationRequestOptions(BaseModel):
replicate: Optional[Dict[str, Nullable[Any]]] = None
sakana_ai: Annotated[
Optional[Dict[str, Nullable[Any]]], pydantic.Field(alias="sakana-ai")
] = None
sakana: Optional[Dict[str, Nullable[Any]]] = None
sambanova: Optional[Dict[str, Nullable[Any]]] = None
@@ -544,7 +542,7 @@ class VideoGenerationRequestOptions(BaseModel):
"reka",
"relace",
"replicate",
"sakana-ai",
"sakana",
"sambanova",
"sambanova-cloaked",
"seed",