Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.487.0"
".": "0.488.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions src/increase/resources/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -132,6 +133,7 @@ def list(
"created_at": created_at,
"cursor": cursor,
"limit": limit,
"order_by": order_by,
},
event_list_params.EventListParams,
),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -271,6 +274,7 @@ def list(
"created_at": created_at,
"cursor": cursor,
"limit": limit,
"order_by": order_by,
},
event_list_params.EventListParams,
),
Expand Down
19 changes: 18 additions & 1 deletion src/increase/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .._utils import PropertyInfo

__all__ = ["EventListParams", "Category", "CreatedAt"]
__all__ = ["EventListParams", "Category", "CreatedAt", "OrderBy"]


class EventListParams(TypedDict, total=False):
Expand All @@ -28,6 +28,8 @@ class EventListParams(TypedDict, total=False):
The default (and maximum) is 100 objects.
"""

order_by: OrderBy


_CategoryReservedKeywords = TypedDict(
"_CategoryReservedKeywords",
Expand Down Expand Up @@ -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.
"""
8 changes: 8 additions & 0 deletions tests/api_resources/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down Expand Up @@ -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"])

Expand Down