diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f8e21778..368100f1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.81.0" + ".": "0.81.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a4c8d651..a1625035 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.81.1 (2024-12-11) + +Full Changelog: [v0.81.0...v0.81.1](https://github.com/lithic-com/lithic-python/compare/v0.81.0...v0.81.1) + +### Bug Fixes + +* events.resend was missing v1 url prefix ([8c53c3c](https://github.com/lithic-com/lithic-python/commit/8c53c3c18f9ccefd64b722802521b35b84716f5d)) + + +### Documentation + +* **readme:** fix http client proxies example ([#647](https://github.com/lithic-com/lithic-python/issues/647)) ([8fac1ff](https://github.com/lithic-com/lithic-python/commit/8fac1ffdf8ebe994c02ac57b72a9fddc7c701b2e)) + ## 0.81.0 (2024-12-09) Full Changelog: [v0.80.1...v0.81.0](https://github.com/lithic-com/lithic-python/compare/v0.80.1...v0.81.0) diff --git a/README.md b/README.md index f7588143..5d8e8574 100644 --- a/README.md +++ b/README.md @@ -400,18 +400,19 @@ can also get all the extra fields on the Pydantic model as a dict with You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including: -- Support for proxies -- Custom transports +- Support for [proxies](https://www.python-httpx.org/advanced/proxies/) +- Custom [transports](https://www.python-httpx.org/advanced/transports/) - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality ```python +import httpx from lithic import Lithic, DefaultHttpxClient client = Lithic( # Or use the `LITHIC_BASE_URL` env var base_url="http://my.test.server.example.com:8083", http_client=DefaultHttpxClient( - proxies="http://my.test.proxy.example.com", + proxy="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ), ) diff --git a/pyproject.toml b/pyproject.toml index 9d2ee505..2a38b190 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lithic" -version = "0.81.0" +version = "0.81.1" description = "The official Python library for the lithic API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/lithic/_version.py b/src/lithic/_version.py index 5ce77b50..dae57adb 100644 --- a/src/lithic/_version.py +++ b/src/lithic/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "lithic" -__version__ = "0.81.0" # x-release-please-version +__version__ = "0.81.1" # x-release-please-version diff --git a/src/lithic/resources/events/events.py b/src/lithic/resources/events/events.py index 7fea8cbe..0f8ce5bb 100644 --- a/src/lithic/resources/events/events.py +++ b/src/lithic/resources/events/events.py @@ -281,7 +281,7 @@ def resend( ) -> None: """Resend an event to an event subscription.""" self._post( - f"/events/{event_token}/event_subscriptions/{event_subscription_token}/resend", + f"/v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend", options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body), cast_to=NoneType, ) @@ -537,7 +537,7 @@ async def resend( ) -> None: """Resend an event to an event subscription.""" await self._post( - f"/events/{event_token}/event_subscriptions/{event_subscription_token}/resend", + f"/v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend", options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body), cast_to=NoneType, )