Skip to content

Commit 86ad58a

Browse files
release: 7.5.0 (#118)
* chore: speedup initial import * fix: use async_to_httpx_files in patch method * chore(internal): add `--fix` argument to lint script * feat(api): add slack/teams/pagerduty/webhook/audience recipient types to send * release: 7.5.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 84cb631 commit 86ad58a

94 files changed

Lines changed: 2093 additions & 341 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.release-please-manifest.json

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 77
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-9859cb664d1a9de0323c857e96cf41d0a5ac5c5903c501059f36bf62553b1583.yml
3-
openapi_spec_hash: d29149d60504eba35c63f583ce4bf0bc
4-
config_hash: 3ec521d062b05b81c22bc1a25bfe3d02
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-fab4ee8a24b719456f38d4a6050f4e40158db57937a1d55035be9325df494941.yml
3+
openapi_spec_hash: be1371c71559511c79a4285238b7131c
4+
config_hash: 54d2059f36ceee17804ef6c2800affd2

CHANGELOG.md

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

3+
## 7.5.0 (2025-12-22)
4+
5+
Full Changelog: [v7.4.0...v7.5.0](https://github.com/trycourier/courier-python/compare/v7.4.0...v7.5.0)
6+
7+
### Features
8+
9+
* **api:** add slack/teams/pagerduty/webhook/audience recipient types to send ([5401702](https://github.com/trycourier/courier-python/commit/54017021e9ff5ba391c2b702ccdec08cb17b4ecc))
10+
11+
12+
### Bug Fixes
13+
14+
* use async_to_httpx_files in patch method ([81d7991](https://github.com/trycourier/courier-python/commit/81d7991941ba20d717b289d4a2e87b16091ed6e0))
15+
16+
17+
### Chores
18+
19+
* **internal:** add `--fix` argument to lint script ([14a2c9a](https://github.com/trycourier/courier-python/commit/14a2c9a30220a43af14730219bf9d81a406a7f8f))
20+
* speedup initial import ([1ce264e](https://github.com/trycourier/courier-python/commit/1ce264e0da7aac803ffd405e4672fd2f69fdfd10))
21+
322
## 7.4.0 (2025-12-16)
423

524
Full Changelog: [v7.3.0...v7.4.0](https://github.com/trycourier/courier-python/compare/v7.3.0...v7.4.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ response = client.send.message(
137137
message={
138138
"data": {"foo": "bar"},
139139
"template": "template_id",
140-
"to": {"user_id": "example_user"},
140+
"to": {"user_id": "user_id"},
141141
},
142142
)
143143
print(response.message)

api.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
```python
44
from courier.types import (
5+
AirshipProfile,
6+
AirshipProfileAudience,
57
Alignment,
8+
AudienceFilter,
9+
AudienceRecipient,
610
ChannelClassification,
711
ChannelPreference,
12+
DeviceType,
13+
Discord,
814
ElementalActionNodeWithType,
915
ElementalBaseNode,
1016
ElementalChannelNode,
@@ -17,19 +23,52 @@ from courier.types import (
1723
ElementalNode,
1824
ElementalQuoteNodeWithType,
1925
ElementalTextNodeWithType,
26+
Expo,
27+
Intercom,
28+
IntercomRecipient,
29+
ListFilter,
30+
ListPatternRecipient,
31+
ListRecipient,
2032
MessageContext,
2133
MessageRouting,
2234
MessageRoutingChannel,
35+
MsTeams,
36+
MsTeamsBaseProperties,
37+
MsTeamsRecipient,
38+
MultipleTokens,
2339
NotificationPreferenceDetails,
40+
Pagerduty,
41+
PagerdutyRecipient,
2442
Paging,
2543
Preference,
2644
PreferenceStatus,
27-
Recipient,
2845
RecipientPreferences,
2946
Rule,
47+
SendDirectMessage,
48+
SendToChannel,
49+
SendToMsTeamsChannelID,
50+
SendToMsTeamsChannelName,
51+
SendToMsTeamsConversationID,
52+
SendToMsTeamsEmail,
53+
SendToMsTeamsUserID,
54+
SendToSlackChannel,
55+
SendToSlackEmail,
56+
SendToSlackUserID,
57+
Slack,
58+
SlackBaseProperties,
59+
SlackRecipient,
3060
TextStyle,
61+
Token,
62+
UserProfile,
63+
UserProfileFirebaseToken,
3164
UserRecipient,
3265
Utm,
66+
WebhookAuthMode,
67+
WebhookAuthentication,
68+
WebhookMethod,
69+
WebhookProfile,
70+
WebhookProfileType,
71+
WebhookRecipient,
3372
)
3473
```
3574

@@ -54,6 +93,8 @@ from courier.types import (
5493
Audience,
5594
Filter,
5695
FilterConfig,
96+
NestedFilterConfig,
97+
SingleFilterConfig,
5798
AudienceUpdateResponse,
5899
AudienceListResponse,
59100
AudienceListMembersResponse,

pyproject.toml

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

scripts/lint

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
echo "==> Running lints"
8-
rye run lint
7+
if [ "$1" = "--fix" ]; then
8+
echo "==> Running lints with --fix"
9+
rye run fix:ruff
10+
else
11+
echo "==> Running lints"
12+
rye run lint
13+
fi
914

1015
echo "==> Making sure it imports"
1116
rye run python -c 'import courier'

src/courier/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ async def patch(
17741774
options: RequestOptions = {},
17751775
) -> ResponseT:
17761776
opts = FinalRequestOptions.construct(
1777-
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1777+
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
17781778
)
17791779
return await self.request(cast_to, opts)
17801780

0 commit comments

Comments
 (0)