-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): OpenAPI spec update via Stainless API (#99)
- Loading branch information
1 parent
5e3203b
commit a87ee9f
Showing
10 changed files
with
224 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing_extensions import Required, Annotated, TypedDict | ||
|
||
from .._utils import PropertyInfo | ||
|
||
__all__ = ["SearchForRouteListParams"] | ||
|
||
|
||
class SearchForRouteListParams(TypedDict, total=False): | ||
input: Required[str] | ||
"""The string to search for.""" | ||
|
||
max_count: Annotated[int, PropertyInfo(alias="maxCount")] | ||
"""The max number of results to return. Defaults to 20.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Optional | ||
|
||
from pydantic import Field as FieldInfo | ||
|
||
from .._models import BaseModel | ||
from .shared.references import References | ||
from .shared.response_wrapper import ResponseWrapper | ||
|
||
__all__ = ["SearchForRouteListResponse", "SearchForRouteListResponseData", "SearchForRouteListResponseDataList"] | ||
|
||
|
||
class SearchForRouteListResponseDataList(BaseModel): | ||
id: str | ||
|
||
agency_id: str = FieldInfo(alias="agencyId") | ||
|
||
type: int | ||
|
||
color: Optional[str] = None | ||
|
||
description: Optional[str] = None | ||
|
||
long_name: Optional[str] = FieldInfo(alias="longName", default=None) | ||
|
||
null_safe_short_name: Optional[str] = FieldInfo(alias="nullSafeShortName", default=None) | ||
|
||
short_name: Optional[str] = FieldInfo(alias="shortName", default=None) | ||
|
||
text_color: Optional[str] = FieldInfo(alias="textColor", default=None) | ||
|
||
url: Optional[str] = None | ||
|
||
|
||
class SearchForRouteListResponseData(BaseModel): | ||
limit_exceeded: bool = FieldInfo(alias="limitExceeded") | ||
|
||
list: List[SearchForRouteListResponseDataList] | ||
|
||
out_of_range: bool = FieldInfo(alias="outOfRange") | ||
|
||
references: References | ||
|
||
|
||
class SearchForRouteListResponse(ResponseWrapper): | ||
data: Optional[SearchForRouteListResponseData] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing_extensions import Required, Annotated, TypedDict | ||
|
||
from .._utils import PropertyInfo | ||
|
||
__all__ = ["SearchForStopListParams"] | ||
|
||
|
||
class SearchForStopListParams(TypedDict, total=False): | ||
input: Required[str] | ||
"""The string to search for.""" | ||
|
||
max_count: Annotated[int, PropertyInfo(alias="maxCount")] | ||
"""The max number of results to return. Defaults to 20.""" |
Oops, something went wrong.