mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +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
@@ -0,0 +1,48 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel, UnrecognizedStr
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Literal, Union
|
||||
from typing_extensions import Annotated, TypedDict
|
||||
|
||||
|
||||
WorkspaceMemberRole = Union[
|
||||
Literal[
|
||||
"admin",
|
||||
"member",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
r"""Role of the member in the workspace"""
|
||||
|
||||
|
||||
class WorkspaceMemberTypedDict(TypedDict):
|
||||
created_at: str
|
||||
r"""ISO 8601 timestamp of when the membership was created"""
|
||||
id: str
|
||||
r"""Unique identifier for the workspace membership"""
|
||||
role: WorkspaceMemberRole
|
||||
r"""Role of the member in the workspace"""
|
||||
user_id: str
|
||||
r"""Clerk user ID of the member"""
|
||||
workspace_id: str
|
||||
r"""ID of the workspace"""
|
||||
|
||||
|
||||
class WorkspaceMember(BaseModel):
|
||||
created_at: str
|
||||
r"""ISO 8601 timestamp of when the membership was created"""
|
||||
|
||||
id: str
|
||||
r"""Unique identifier for the workspace membership"""
|
||||
|
||||
role: Annotated[WorkspaceMemberRole, PlainValidator(validate_open_enum(False))]
|
||||
r"""Role of the member in the workspace"""
|
||||
|
||||
user_id: str
|
||||
r"""Clerk user ID of the member"""
|
||||
|
||||
workspace_id: str
|
||||
r"""ID of the workspace"""
|
||||
Reference in New Issue
Block a user