Skip to content

Commit

Permalink
release: 0.81.1 (#648)
Browse files Browse the repository at this point in the history
* docs(readme): fix http client proxies example (#647)

* fix: events.resend was missing v1 url prefix

* release: 0.81.1

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Samuel El-Borai <[email protected]>
  • Loading branch information
stainless-app[bot] and dgellow authored Dec 11, 2024
1 parent 6e27771 commit a0d1250
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
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.81.0"
".": "0.81.1"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
)
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 = "lithic"
version = "0.81.0"
version = "0.81.1"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_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__ = "lithic"
__version__ = "0.81.0" # x-release-please-version
__version__ = "0.81.1" # x-release-please-version
4 changes: 2 additions & 2 deletions src/lithic/resources/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit a0d1250

Please sign in to comment.