diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4e8550cd..3327ce30 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.487.0" + ".": "0.488.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index bf45bd24..2e4362b3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 241 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-05341d7f8aa36455db1b6bb5f613a08ee7c7beba3e868c7e18befe429cfd7625.yml -openapi_spec_hash: 321b419c81281651e70db5ab2549af67 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b8ef37fb2b33cb0aa49fe69ed2efb55eee614c2c90f74da9611f48083d59de6d.yml +openapi_spec_hash: 3453655d92ccd0c10398971cdd1d7aa6 config_hash: cb5b8736705c06b670f6a25484622d62 diff --git a/CHANGELOG.md b/CHANGELOG.md index c06c8df3..16754bbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.488.0 (2026-04-16) + +Full Changelog: [v0.487.0...v0.488.0](https://github.com/Increase/increase-python/compare/v0.487.0...v0.488.0) + +### Features + +* **api:** api update ([310e6e7](https://github.com/Increase/increase-python/commit/310e6e71526ecf0cd392b2cdf8f2cd1a705c9e43)) + ## 0.487.0 (2026-04-16) Full Changelog: [v0.486.0...v0.487.0](https://github.com/Increase/increase-python/compare/v0.486.0...v0.487.0) diff --git a/pyproject.toml b/pyproject.toml index 3083bf8a..1145341d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.487.0" +version = "0.488.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index 24ee9f06..58b8f16f 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.487.0" # x-release-please-version +__version__ = "0.488.0" # x-release-please-version diff --git a/src/increase/resources/events.py b/src/increase/resources/events.py index c7027015..528b0aad 100644 --- a/src/increase/resources/events.py +++ b/src/increase/resources/events.py @@ -91,6 +91,7 @@ def list( created_at: event_list_params.CreatedAt | Omit = omit, cursor: str | Omit = omit, limit: int | Omit = omit, + order_by: event_list_params.OrderBy | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -132,6 +133,7 @@ def list( "created_at": created_at, "cursor": cursor, "limit": limit, + "order_by": order_by, }, event_list_params.EventListParams, ), @@ -230,6 +232,7 @@ def list( created_at: event_list_params.CreatedAt | Omit = omit, cursor: str | Omit = omit, limit: int | Omit = omit, + order_by: event_list_params.OrderBy | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -271,6 +274,7 @@ def list( "created_at": created_at, "cursor": cursor, "limit": limit, + "order_by": order_by, }, event_list_params.EventListParams, ), diff --git a/src/increase/types/event_list_params.py b/src/increase/types/event_list_params.py index b6757f0e..4a6a471f 100644 --- a/src/increase/types/event_list_params.py +++ b/src/increase/types/event_list_params.py @@ -8,7 +8,7 @@ from .._utils import PropertyInfo -__all__ = ["EventListParams", "Category", "CreatedAt"] +__all__ = ["EventListParams", "Category", "CreatedAt", "OrderBy"] class EventListParams(TypedDict, total=False): @@ -28,6 +28,8 @@ class EventListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ + order_by: OrderBy + _CategoryReservedKeywords = TypedDict( "_CategoryReservedKeywords", @@ -179,3 +181,18 @@ class CreatedAt(TypedDict, total=False): Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. """ + + +class OrderBy(TypedDict, total=False): + direction: Literal["ascending", "descending"] + """The direction to order in. + + - `ascending` - Ascending in value. + - `descending` - Descending in value. + """ + + field: Literal["created_at"] + """The field to order by. + + - `created_at` - The time the Event was created. + """ diff --git a/tests/api_resources/test_events.py b/tests/api_resources/test_events.py index 55aacb27..96ab8d22 100644 --- a/tests/api_resources/test_events.py +++ b/tests/api_resources/test_events.py @@ -77,6 +77,10 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="cursor", limit=1, + order_by={ + "direction": "ascending", + "field": "created_at", + }, ) assert_matches_type(SyncPage[Event], event, path=["response"]) @@ -201,6 +205,10 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> }, cursor="cursor", limit=1, + order_by={ + "direction": "ascending", + "field": "created_at", + }, ) assert_matches_type(AsyncPage[Event], event, path=["response"])