From 9e0b66ce6927ef0060c6cb81bafd576915c9803f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:34:46 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../types/agencies_with_coverage_list_response.py | 6 +++--- src/onebusaway/types/agency_retrieve_response.py | 2 -- src/onebusaway/types/route_ids_for_agency_list_response.py | 6 +++--- src/onebusaway/types/routes_for_agency_list_response.py | 4 ++-- src/onebusaway/types/routes_for_location_list_response.py | 4 ++-- src/onebusaway/types/search_for_route_list_response.py | 4 ++-- src/onebusaway/types/search_for_stop_list_response.py | 4 ++-- src/onebusaway/types/shared/references.py | 5 +---- src/onebusaway/types/stop_ids_for_agency_list_response.py | 6 +++--- src/onebusaway/types/stops_for_agency_list_response.py | 4 ++-- src/onebusaway/types/stops_for_location_list_response.py | 4 ++-- src/onebusaway/types/trips_for_location_list_response.py | 6 +++--- src/onebusaway/types/trips_for_route_list_response.py | 4 ++-- src/onebusaway/types/vehicles_for_agency_list_response.py | 4 ++-- 15 files changed, 31 insertions(+), 36 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8dd1ce7..1594ba1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 29 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-22e1c98416f77779b2c07db272016be0b623b94f6b55cca2d1909f9dc4032c3f.yml -openapi_spec_hash: dd25fff6bc185752d92e93f6e47d3a5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-0c305d11543f8fc11bd55586c4dc4a724b10de1898cab0fe11364b4db6455752.yml +openapi_spec_hash: 6d10c2ac411cd65f30d200f298577b32 config_hash: 3871f5d21bb38ddd334ec04721dea64d diff --git a/src/onebusaway/types/agencies_with_coverage_list_response.py b/src/onebusaway/types/agencies_with_coverage_list_response.py index 13f182b..27082f9 100644 --- a/src/onebusaway/types/agencies_with_coverage_list_response.py +++ b/src/onebusaway/types/agencies_with_coverage_list_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List +from typing import List, Optional from pydantic import Field as FieldInfo @@ -28,12 +28,12 @@ class AgenciesWithCoverageListResponseDataList(BaseModel): class AgenciesWithCoverageListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[AgenciesWithCoverageListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class AgenciesWithCoverageListResponse(ResponseWrapper): data: AgenciesWithCoverageListResponseData diff --git a/src/onebusaway/types/agency_retrieve_response.py b/src/onebusaway/types/agency_retrieve_response.py index 61d8e79..61e1bc6 100644 --- a/src/onebusaway/types/agency_retrieve_response.py +++ b/src/onebusaway/types/agency_retrieve_response.py @@ -36,8 +36,6 @@ class AgencyRetrieveResponseDataEntry(BaseModel): class AgencyRetrieveResponseData(BaseModel): entry: AgencyRetrieveResponseDataEntry - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - references: References diff --git a/src/onebusaway/types/route_ids_for_agency_list_response.py b/src/onebusaway/types/route_ids_for_agency_list_response.py index 193704e..ffe9c32 100644 --- a/src/onebusaway/types/route_ids_for_agency_list_response.py +++ b/src/onebusaway/types/route_ids_for_agency_list_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List +from typing import List, Optional from pydantic import Field as FieldInfo @@ -12,12 +12,12 @@ class RouteIDsForAgencyListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[str] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class RouteIDsForAgencyListResponse(ResponseWrapper): data: RouteIDsForAgencyListResponseData diff --git a/src/onebusaway/types/routes_for_agency_list_response.py b/src/onebusaway/types/routes_for_agency_list_response.py index 672141d..34ddc66 100644 --- a/src/onebusaway/types/routes_for_agency_list_response.py +++ b/src/onebusaway/types/routes_for_agency_list_response.py @@ -34,12 +34,12 @@ class RoutesForAgencyListResponseDataList(BaseModel): class RoutesForAgencyListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[RoutesForAgencyListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class RoutesForAgencyListResponse(ResponseWrapper): data: RoutesForAgencyListResponseData diff --git a/src/onebusaway/types/routes_for_location_list_response.py b/src/onebusaway/types/routes_for_location_list_response.py index 0393f01..aebd12d 100644 --- a/src/onebusaway/types/routes_for_location_list_response.py +++ b/src/onebusaway/types/routes_for_location_list_response.py @@ -38,14 +38,14 @@ class RoutesForLocationListResponseDataList(BaseModel): class RoutesForLocationListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[RoutesForLocationListResponseDataList] out_of_range: bool = FieldInfo(alias="outOfRange") references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class RoutesForLocationListResponse(ResponseWrapper): data: RoutesForLocationListResponseData diff --git a/src/onebusaway/types/search_for_route_list_response.py b/src/onebusaway/types/search_for_route_list_response.py index e54153a..f6b53f7 100755 --- a/src/onebusaway/types/search_for_route_list_response.py +++ b/src/onebusaway/types/search_for_route_list_response.py @@ -34,14 +34,14 @@ class SearchForRouteListResponseDataList(BaseModel): class SearchForRouteListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[SearchForRouteListResponseDataList] out_of_range: bool = FieldInfo(alias="outOfRange") references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class SearchForRouteListResponse(ResponseWrapper): data: Optional[SearchForRouteListResponseData] = None diff --git a/src/onebusaway/types/search_for_stop_list_response.py b/src/onebusaway/types/search_for_stop_list_response.py index 28574d5..5c40083 100755 --- a/src/onebusaway/types/search_for_stop_list_response.py +++ b/src/onebusaway/types/search_for_stop_list_response.py @@ -36,14 +36,14 @@ class SearchForStopListResponseDataList(BaseModel): class SearchForStopListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[SearchForStopListResponseDataList] out_of_range: bool = FieldInfo(alias="outOfRange") references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class SearchForStopListResponse(ResponseWrapper): data: Optional[SearchForStopListResponseData] = None diff --git a/src/onebusaway/types/shared/references.py b/src/onebusaway/types/shared/references.py index 2c50704..4a95520 100644 --- a/src/onebusaway/types/shared/references.py +++ b/src/onebusaway/types/shared/references.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional -from typing_extensions import Literal from pydantic import Field as FieldInfo @@ -181,9 +180,7 @@ class Situation(BaseModel): alias="publicationWindows", default=None ) - reason: Optional[ - Literal["equipmentReason", "environmentReason", "personnelReason", "miscellaneousReason", "securityAlert"] - ] = None + reason: Optional[str] = None """Reason for the service alert, taken from TPEG codes.""" severity: Optional[str] = None diff --git a/src/onebusaway/types/stop_ids_for_agency_list_response.py b/src/onebusaway/types/stop_ids_for_agency_list_response.py index 3ae9947..f36b63f 100644 --- a/src/onebusaway/types/stop_ids_for_agency_list_response.py +++ b/src/onebusaway/types/stop_ids_for_agency_list_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List +from typing import List, Optional from pydantic import Field as FieldInfo @@ -12,12 +12,12 @@ class StopIDsForAgencyListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[str] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class StopIDsForAgencyListResponse(ResponseWrapper): data: StopIDsForAgencyListResponseData diff --git a/src/onebusaway/types/stops_for_agency_list_response.py b/src/onebusaway/types/stops_for_agency_list_response.py index a414d54..c44e7e3 100644 --- a/src/onebusaway/types/stops_for_agency_list_response.py +++ b/src/onebusaway/types/stops_for_agency_list_response.py @@ -36,12 +36,12 @@ class StopsForAgencyListResponseDataList(BaseModel): class StopsForAgencyListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[StopsForAgencyListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + out_of_range: Optional[bool] = FieldInfo(alias="outOfRange", default=None) diff --git a/src/onebusaway/types/stops_for_location_list_response.py b/src/onebusaway/types/stops_for_location_list_response.py index 75d9ba9..69234bb 100644 --- a/src/onebusaway/types/stops_for_location_list_response.py +++ b/src/onebusaway/types/stops_for_location_list_response.py @@ -36,12 +36,12 @@ class StopsForLocationListResponseDataList(BaseModel): class StopsForLocationListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[StopsForLocationListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + out_of_range: Optional[bool] = FieldInfo(alias="outOfRange", default=None) diff --git a/src/onebusaway/types/trips_for_location_list_response.py b/src/onebusaway/types/trips_for_location_list_response.py index b104313..1af09eb 100644 --- a/src/onebusaway/types/trips_for_location_list_response.py +++ b/src/onebusaway/types/trips_for_location_list_response.py @@ -181,13 +181,13 @@ class TripsForLocationListResponseDataList(BaseModel): class TripsForLocationListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - """Indicates if the limit of trips has been exceeded""" - list: List[TripsForLocationListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + """Indicates if the limit of trips has been exceeded""" + out_of_range: Optional[bool] = FieldInfo(alias="outOfRange", default=None) """Indicates if the search location is out of range""" diff --git a/src/onebusaway/types/trips_for_route_list_response.py b/src/onebusaway/types/trips_for_route_list_response.py index f373c34..9f931da 100644 --- a/src/onebusaway/types/trips_for_route_list_response.py +++ b/src/onebusaway/types/trips_for_route_list_response.py @@ -181,12 +181,12 @@ class TripsForRouteListResponseDataList(BaseModel): class TripsForRouteListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[TripsForRouteListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class TripsForRouteListResponse(ResponseWrapper): data: TripsForRouteListResponseData diff --git a/src/onebusaway/types/vehicles_for_agency_list_response.py b/src/onebusaway/types/vehicles_for_agency_list_response.py index 8806aee..d5c7037 100644 --- a/src/onebusaway/types/vehicles_for_agency_list_response.py +++ b/src/onebusaway/types/vehicles_for_agency_list_response.py @@ -170,12 +170,12 @@ class VehiclesForAgencyListResponseDataList(BaseModel): class VehiclesForAgencyListResponseData(BaseModel): - limit_exceeded: bool = FieldInfo(alias="limitExceeded") - list: List[VehiclesForAgencyListResponseDataList] references: References + limit_exceeded: Optional[bool] = FieldInfo(alias="limitExceeded", default=None) + class VehiclesForAgencyListResponse(ResponseWrapper): data: VehiclesForAgencyListResponseData From a9159653aba9f21500b782195182dd7cb3dab583 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:35:09 +0000 Subject: [PATCH 2/2] release: 1.21.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/onebusaway/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 69eb19a..ba231b0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.20.0" + ".": "1.21.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 27d6708..490f474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.21.0 (2026-03-10) + +Full Changelog: [v1.20.0...v1.21.0](https://github.com/OneBusAway/python-sdk/compare/v1.20.0...v1.21.0) + +### Features + +* **api:** api update ([9e0b66c](https://github.com/OneBusAway/python-sdk/commit/9e0b66ce6927ef0060c6cb81bafd576915c9803f)) + ## 1.20.0 (2026-03-09) Full Changelog: [v1.19.7...v1.20.0](https://github.com/OneBusAway/python-sdk/compare/v1.19.7...v1.20.0) diff --git a/pyproject.toml b/pyproject.toml index 346ad9c..c8b9d4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "onebusaway" -version = "1.20.0" +version = "1.21.0" description = "The official Python library for the onebusaway-sdk API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/onebusaway/_version.py b/src/onebusaway/_version.py index 1ce7cf1..6fa78eb 100644 --- a/src/onebusaway/_version.py +++ b/src/onebusaway/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "onebusaway" -__version__ = "1.20.0" # x-release-please-version +__version__ = "1.21.0" # x-release-please-version