Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "7.4.0"
".": "7.5.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 77
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-9859cb664d1a9de0323c857e96cf41d0a5ac5c5903c501059f36bf62553b1583.yml
openapi_spec_hash: d29149d60504eba35c63f583ce4bf0bc
config_hash: 3ec521d062b05b81c22bc1a25bfe3d02
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-fab4ee8a24b719456f38d4a6050f4e40158db57937a1d55035be9325df494941.yml
openapi_spec_hash: be1371c71559511c79a4285238b7131c
config_hash: 54d2059f36ceee17804ef6c2800affd2
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 7.5.0 (2025-12-22)

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

### Features

* **api:** add slack/teams/pagerduty/webhook/audience recipient types to send ([5401702](https://github.com/trycourier/courier-python/commit/54017021e9ff5ba391c2b702ccdec08cb17b4ecc))


### Bug Fixes

* use async_to_httpx_files in patch method ([81d7991](https://github.com/trycourier/courier-python/commit/81d7991941ba20d717b289d4a2e87b16091ed6e0))


### Chores

* **internal:** add `--fix` argument to lint script ([14a2c9a](https://github.com/trycourier/courier-python/commit/14a2c9a30220a43af14730219bf9d81a406a7f8f))
* speedup initial import ([1ce264e](https://github.com/trycourier/courier-python/commit/1ce264e0da7aac803ffd405e4672fd2f69fdfd10))

## 7.4.0 (2025-12-16)

Full Changelog: [v7.3.0...v7.4.0](https://github.com/trycourier/courier-python/compare/v7.3.0...v7.4.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ response = client.send.message(
message={
"data": {"foo": "bar"},
"template": "template_id",
"to": {"user_id": "example_user"},
"to": {"user_id": "user_id"},
},
)
print(response.message)
Expand Down
43 changes: 42 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

```python
from courier.types import (
AirshipProfile,
AirshipProfileAudience,
Alignment,
AudienceFilter,
AudienceRecipient,
ChannelClassification,
ChannelPreference,
DeviceType,
Discord,
ElementalActionNodeWithType,
ElementalBaseNode,
ElementalChannelNode,
Expand All @@ -17,19 +23,52 @@ from courier.types import (
ElementalNode,
ElementalQuoteNodeWithType,
ElementalTextNodeWithType,
Expo,
Intercom,
IntercomRecipient,
ListFilter,
ListPatternRecipient,
ListRecipient,
MessageContext,
MessageRouting,
MessageRoutingChannel,
MsTeams,
MsTeamsBaseProperties,
MsTeamsRecipient,
MultipleTokens,
NotificationPreferenceDetails,
Pagerduty,
PagerdutyRecipient,
Paging,
Preference,
PreferenceStatus,
Recipient,
RecipientPreferences,
Rule,
SendDirectMessage,
SendToChannel,
SendToMsTeamsChannelID,
SendToMsTeamsChannelName,
SendToMsTeamsConversationID,
SendToMsTeamsEmail,
SendToMsTeamsUserID,
SendToSlackChannel,
SendToSlackEmail,
SendToSlackUserID,
Slack,
SlackBaseProperties,
SlackRecipient,
TextStyle,
Token,
UserProfile,
UserProfileFirebaseToken,
UserRecipient,
Utm,
WebhookAuthMode,
WebhookAuthentication,
WebhookMethod,
WebhookProfile,
WebhookProfileType,
WebhookRecipient,
)
```

Expand All @@ -54,6 +93,8 @@ from courier.types import (
Audience,
Filter,
FilterConfig,
NestedFilterConfig,
SingleFilterConfig,
AudienceUpdateResponse,
AudienceListResponse,
AudienceListMembersResponse,
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 = "trycourier"
version = "7.4.0"
version = "7.5.0"
description = "The official Python library for the Courier API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
9 changes: 7 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ set -e

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

echo "==> Running lints"
rye run lint
if [ "$1" = "--fix" ]; then
echo "==> Running lints with --fix"
rye run fix:ruff
else
echo "==> Running lints"
rye run lint
fi

echo "==> Making sure it imports"
rye run python -c 'import courier'
2 changes: 1 addition & 1 deletion src/courier/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ async def patch(
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
)
return await self.request(cast_to, opts)

Expand Down
Loading
Loading