From d5472f9b29ba86ec81338ca94dbb84d9f792bbc7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:26:56 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/event_subscriptions.py | 16 ++++++++++++++++ .../types/event_subscription_create_params.py | 8 ++++++++ tests/api_resources/test_event_subscriptions.py | 2 ++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5a7b82c92..2923d8298 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e0a19c46b65842ff370613aac24ba8777d7b961bd46a20e936e878386e048852.yml -openapi_spec_hash: 0f635610cedd9a0aacc6d5b347c3cccf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3e092c1a52f33e962b8415bfa24a244fdb66783aa093e027501124cb8658881b.yml +openapi_spec_hash: 677f23c2d65201b72074b3effb7d9ad4 config_hash: a143293c5450ae8f52acad08f3102575 diff --git a/src/increase/resources/event_subscriptions.py b/src/increase/resources/event_subscriptions.py index 9d59c63cb..1678decce 100644 --- a/src/increase/resources/event_subscriptions.py +++ b/src/increase/resources/event_subscriptions.py @@ -157,6 +157,7 @@ def create( ] | Omit = omit, shared_secret: str | Omit = omit, + status: Literal["active", "disabled"] | 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, @@ -341,6 +342,12 @@ def create( shared_secret: The key that will be used to sign webhooks. If no value is passed, a random string will be used as default. + status: The status of the event subscription. Defaults to `active` if not specified. + + - `active` - The subscription is active and Events will be delivered normally. + - `disabled` - The subscription is temporarily disabled and Events will not be + delivered. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -359,6 +366,7 @@ def create( "oauth_connection_id": oauth_connection_id, "selected_event_category": selected_event_category, "shared_secret": shared_secret, + "status": status, }, event_subscription_create_params.EventSubscriptionCreateParams, ), @@ -652,6 +660,7 @@ async def create( ] | Omit = omit, shared_secret: str | Omit = omit, + status: Literal["active", "disabled"] | 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, @@ -836,6 +845,12 @@ async def create( shared_secret: The key that will be used to sign webhooks. If no value is passed, a random string will be used as default. + status: The status of the event subscription. Defaults to `active` if not specified. + + - `active` - The subscription is active and Events will be delivered normally. + - `disabled` - The subscription is temporarily disabled and Events will not be + delivered. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -854,6 +869,7 @@ async def create( "oauth_connection_id": oauth_connection_id, "selected_event_category": selected_event_category, "shared_secret": shared_secret, + "status": status, }, event_subscription_create_params.EventSubscriptionCreateParams, ), diff --git a/src/increase/types/event_subscription_create_params.py b/src/increase/types/event_subscription_create_params.py index b72f51119..6eca5b263 100644 --- a/src/increase/types/event_subscription_create_params.py +++ b/src/increase/types/event_subscription_create_params.py @@ -294,3 +294,11 @@ class EventSubscriptionCreateParams(TypedDict, total=False): If no value is passed, a random string will be used as default. """ + + status: Literal["active", "disabled"] + """The status of the event subscription. Defaults to `active` if not specified. + + - `active` - The subscription is active and Events will be delivered normally. + - `disabled` - The subscription is temporarily disabled and Events will not be + delivered. + """ diff --git a/tests/api_resources/test_event_subscriptions.py b/tests/api_resources/test_event_subscriptions.py index 34963f3cd..f8577e2cf 100644 --- a/tests/api_resources/test_event_subscriptions.py +++ b/tests/api_resources/test_event_subscriptions.py @@ -34,6 +34,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: oauth_connection_id="x", selected_event_category="account.created", shared_secret="x", + status="active", ) assert_matches_type(EventSubscription, event_subscription, path=["response"]) @@ -199,6 +200,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) oauth_connection_id="x", selected_event_category="account.created", shared_secret="x", + status="active", ) assert_matches_type(EventSubscription, event_subscription, path=["response"]) From 92a410688a09ee07804bc8a0a978eaf0b712a82f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:27:17 +0000 Subject: [PATCH 2/2] release: 0.340.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 705b0cb27..045a06e9d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.339.0" + ".": "0.340.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 03e49210c..e52a3d2d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.340.0 (2025-09-24) + +Full Changelog: [v0.339.0...v0.340.0](https://github.com/Increase/increase-python/compare/v0.339.0...v0.340.0) + +### Features + +* **api:** api update ([d5472f9](https://github.com/Increase/increase-python/commit/d5472f9b29ba86ec81338ca94dbb84d9f792bbc7)) + ## 0.339.0 (2025-09-24) Full Changelog: [v0.338.0...v0.339.0](https://github.com/Increase/increase-python/compare/v0.338.0...v0.339.0) diff --git a/pyproject.toml b/pyproject.toml index 8db0fb1f8..5073f4777 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.339.0" +version = "0.340.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 aef62a468..29d0ec0b0 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.339.0" # x-release-please-version +__version__ = "0.340.0" # x-release-please-version