mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: 🐝 Update SDK - Generate 0.9.2 (#205)
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:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
0c735989c1
commit
0f116c9792
@@ -80,6 +80,8 @@ class ListRequestTypedDict(TypedDict):
|
||||
r"""Whether to include disabled API keys in the response"""
|
||||
offset: NotRequired[int]
|
||||
r"""Number of API keys to skip for pagination"""
|
||||
workspace_id: NotRequired[str]
|
||||
r"""Filter API keys by workspace ID. By default, keys in the default workspace are returned."""
|
||||
|
||||
|
||||
class ListRequest(BaseModel):
|
||||
@@ -123,6 +125,12 @@ class ListRequest(BaseModel):
|
||||
] = None
|
||||
r"""Number of API keys to skip for pagination"""
|
||||
|
||||
workspace_id: Annotated[
|
||||
Optional[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = None
|
||||
r"""Filter API keys by workspace ID. By default, keys in the default workspace are returned."""
|
||||
|
||||
|
||||
class ListDataTypedDict(TypedDict):
|
||||
byok_usage: float
|
||||
@@ -163,6 +171,8 @@ class ListDataTypedDict(TypedDict):
|
||||
r"""OpenRouter credit usage (in USD) for the current UTC month"""
|
||||
usage_weekly: float
|
||||
r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
|
||||
workspace_id: str
|
||||
r"""The workspace ID this API key belongs to."""
|
||||
expires_at: NotRequired[Nullable[datetime]]
|
||||
r"""ISO 8601 UTC timestamp when the API key expires, or null if no expiration"""
|
||||
|
||||
@@ -225,6 +235,9 @@ class ListData(BaseModel):
|
||||
usage_weekly: float
|
||||
r"""OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)"""
|
||||
|
||||
workspace_id: str
|
||||
r"""The workspace ID this API key belongs to."""
|
||||
|
||||
expires_at: OptionalNullable[datetime] = UNSET
|
||||
r"""ISO 8601 UTC timestamp when the API key expires, or null if no expiration"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user