mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
fix: add overlay to remove nullable from pagination offset params (#121)
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.components import activityitem as components_activityitem
|
||||
from openrouter.types import BaseModel
|
||||
from openrouter.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
|
||||
import pydantic
|
||||
from typing import List, Optional
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
@@ -71,6 +70,10 @@ class GetUserActivityRequestTypedDict(TypedDict):
|
||||
"""
|
||||
date_: NotRequired[str]
|
||||
r"""Filter by a single UTC date in the last 30 days (YYYY-MM-DD format)."""
|
||||
api_key_hash: NotRequired[str]
|
||||
r"""Filter by API key hash (SHA-256 hex string, as returned by the keys API)."""
|
||||
user_id: NotRequired[str]
|
||||
r"""Filter by org member user ID. Only applicable for organization accounts."""
|
||||
|
||||
|
||||
class GetUserActivityRequest(BaseModel):
|
||||
@@ -109,16 +112,14 @@ class GetUserActivityRequest(BaseModel):
|
||||
] = None
|
||||
r"""Filter by a single UTC date in the last 30 days (YYYY-MM-DD format)."""
|
||||
|
||||
api_key_hash: Annotated[
|
||||
Optional[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = None
|
||||
r"""Filter by API key hash (SHA-256 hex string, as returned by the keys API)."""
|
||||
|
||||
class GetUserActivityResponseTypedDict(TypedDict):
|
||||
r"""Returns user activity data grouped by endpoint"""
|
||||
|
||||
data: List[components_activityitem.ActivityItemTypedDict]
|
||||
r"""List of activity items"""
|
||||
|
||||
|
||||
class GetUserActivityResponse(BaseModel):
|
||||
r"""Returns user activity data grouped by endpoint"""
|
||||
|
||||
data: List[components_activityitem.ActivityItem]
|
||||
r"""List of activity items"""
|
||||
user_id: Annotated[
|
||||
Optional[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = None
|
||||
r"""Filter by org member user ID. Only applicable for organization accounts."""
|
||||
|
||||
Reference in New Issue
Block a user