Skip to content

Commit a0d1250

Browse files
release: 0.81.1 (#648)
* 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]>
1 parent 6e27771 commit a0d1250

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.81.0"
2+
".": "0.81.1"
33
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.81.1 (2024-12-11)
4+
5+
Full Changelog: [v0.81.0...v0.81.1](https://github.com/lithic-com/lithic-python/compare/v0.81.0...v0.81.1)
6+
7+
### Bug Fixes
8+
9+
* events.resend was missing v1 url prefix ([8c53c3c](https://github.com/lithic-com/lithic-python/commit/8c53c3c18f9ccefd64b722802521b35b84716f5d))
10+
11+
12+
### Documentation
13+
14+
* **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))
15+
316
## 0.81.0 (2024-12-09)
417

518
Full Changelog: [v0.80.1...v0.81.0](https://github.com/lithic-com/lithic-python/compare/v0.80.1...v0.81.0)

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,19 @@ can also get all the extra fields on the Pydantic model as a dict with
400400

401401
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
402402

403-
- Support for proxies
404-
- Custom transports
403+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
404+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
405405
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
406406

407407
```python
408+
import httpx
408409
from lithic import Lithic, DefaultHttpxClient
409410

410411
client = Lithic(
411412
# Or use the `LITHIC_BASE_URL` env var
412413
base_url="http://my.test.server.example.com:8083",
413414
http_client=DefaultHttpxClient(
414-
proxies="http://my.test.proxy.example.com",
415+
proxy="http://my.test.proxy.example.com",
415416
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
416417
),
417418
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lithic"
3-
version = "0.81.0"
3+
version = "0.81.1"
44
description = "The official Python library for the lithic API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/lithic/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "lithic"
4-
__version__ = "0.81.0" # x-release-please-version
4+
__version__ = "0.81.1" # x-release-please-version

src/lithic/resources/events/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def resend(
281281
) -> None:
282282
"""Resend an event to an event subscription."""
283283
self._post(
284-
f"/events/{event_token}/event_subscriptions/{event_subscription_token}/resend",
284+
f"/v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend",
285285
options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body),
286286
cast_to=NoneType,
287287
)
@@ -537,7 +537,7 @@ async def resend(
537537
) -> None:
538538
"""Resend an event to an event subscription."""
539539
await self._post(
540-
f"/events/{event_token}/event_subscriptions/{event_subscription_token}/resend",
540+
f"/v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend",
541541
options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body),
542542
cast_to=NoneType,
543543
)

0 commit comments

Comments
 (0)