Skip to content

Commit 74d08a0

Browse files
release: 7.6.1 (#121)
* fix(types): remove FilterConfig/FilterConfigParam, consolidate to Filter/FilterParam types * chore(internal): regenerate SDK with no functional changes * release: 7.6.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 2c408fb commit 74d08a0

21 files changed

Lines changed: 47 additions & 65 deletions

.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.6.0"
2+
".": "7.6.1"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 78
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-e3c16e3181f58323091b425c9ca546efdefbe4681255d611ff21de9050c249ee.yml
3-
openapi_spec_hash: 9cc15d56d3c522db4dce917cec791142
4-
config_hash: b8333ea2756bea772420159bf539b168
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-b79e0eb1ab06f4076c48fa519e2b2ad792a0c483a5d017e43c938ca4c4be6988.yml
3+
openapi_spec_hash: cb3cc2c1145503e5737a880326857aa4
4+
config_hash: ff903e824043dc81aca51a0ce21896d6

CHANGELOG.md

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

3+
## 7.6.1 (2026-01-12)
4+
5+
Full Changelog: [v7.6.0...v7.6.1](https://github.com/trycourier/courier-python/compare/v7.6.0...v7.6.1)
6+
7+
### Bug Fixes
8+
9+
* **types:** remove FilterConfig/FilterConfigParam, consolidate to Filter/FilterParam types ([60a1861](https://github.com/trycourier/courier-python/commit/60a1861d91952d5059675259de9e1520f9d1e5fa))
10+
11+
12+
### Chores
13+
14+
* **internal:** regenerate SDK with no functional changes ([4f5a16f](https://github.com/trycourier/courier-python/commit/4f5a16fb4d691e54a01e07594a5416ef6aa68e1f))
15+
316
## 7.6.0 (2026-01-08)
417

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

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ Types:
9292
from courier.types import (
9393
Audience,
9494
Filter,
95-
FilterConfig,
9695
NestedFilterConfig,
9796
SingleFilterConfig,
9897
AudienceUpdateResponse,

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.6.0"
3+
version = "7.6.1"
44
description = "The official Python library for the Courier API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/courier/_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__ = "courier"
4-
__version__ = "7.6.0" # x-release-please-version
4+
__version__ = "7.6.1" # x-release-please-version

src/courier/resources/inbound.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def track_event(
7070
message_id: A required unique identifier that will be used to de-duplicate requests. If not
7171
unique, will respond with 409 Conflict status
7272
73-
user_id: The user id associatiated with the track
73+
user_id: The user id associated with the track
7474
7575
extra_headers: Send extra headers
7676
@@ -145,7 +145,7 @@ async def track_event(
145145
message_id: A required unique identifier that will be used to de-duplicate requests. If not
146146
unique, will respond with 409 Conflict status
147147
148-
user_id: The user id associatiated with the track
148+
user_id: The user id associated with the track
149149
150150
extra_headers: Send extra headers
151151

src/courier/resources/tenants/preferences/items.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def update(
6666
custom_routing: The default channels to send to this tenant when has_custom_routing is enabled
6767
6868
has_custom_routing: Override channel routing with custom preferences. This will override any
69-
template prefernces that are set, but a user can still customize their
69+
template preferences that are set, but a user can still customize their
7070
preferences
7171
7272
extra_headers: Send extra headers
@@ -178,7 +178,7 @@ async def update(
178178
custom_routing: The default channels to send to this tenant when has_custom_routing is enabled
179179
180180
has_custom_routing: Override channel routing with custom preferences. This will override any
181-
template prefernces that are set, but a user can still customize their
181+
template preferences that are set, but a user can still customize their
182182
preferences
183183
184184
extra_headers: Send extra headers

src/courier/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
from .email_header import EmailHeader as EmailHeader
9999
from .filter_param import FilterParam as FilterParam
100100
from .brand_snippet import BrandSnippet as BrandSnippet
101-
from .filter_config import FilterConfig as FilterConfig
102101
from .brand_settings import BrandSettings as BrandSettings
103102
from .brand_snippets import BrandSnippets as BrandSnippets
104103
from .brand_template import BrandTemplate as BrandTemplate
@@ -122,7 +121,6 @@
122121
from .brand_snippet_param import BrandSnippetParam as BrandSnippetParam
123122
from .brand_update_params import BrandUpdateParams as BrandUpdateParams
124123
from .default_preferences import DefaultPreferences as DefaultPreferences
125-
from .filter_config_param import FilterConfigParam as FilterConfigParam
126124
from .message_list_params import MessageListParams as MessageListParams
127125
from .send_message_params import SendMessageParams as SendMessageParams
128126
from .audience_list_params import AudienceListParams as AudienceListParams

src/courier/types/filter.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
6-
from typing_extensions import TypeAlias
5+
from typing import TYPE_CHECKING, Union
6+
from typing_extensions import TypeAlias, TypeAliasType
77

8+
from .._compat import PYDANTIC_V1
89
from .single_filter_config import SingleFilterConfig
910

1011
__all__ = ["Filter"]
1112

12-
Filter: TypeAlias = Union[SingleFilterConfig, "NestedFilterConfig"]
13+
if TYPE_CHECKING or not PYDANTIC_V1:
14+
Filter = TypeAliasType("Filter", Union[SingleFilterConfig, "NestedFilterConfig"])
15+
else:
16+
Filter: TypeAlias = Union[SingleFilterConfig, "NestedFilterConfig"]
1317

1418
from .nested_filter_config import NestedFilterConfig

0 commit comments

Comments
 (0)