Skip to content

Commit 05a8826

Browse files
release: 7.3.0 (#116)
* chore: update lockfile * chore(docs): use environment variables for authentication in code snippets * fix(client): fix duplicate Go struct resulting from name derivations schema * feat: Add event_ids field to Notification schema * feat: Fix UsersGetAllTokensResponse to return object with tokens property i… * release: 7.3.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 96ef3d6 commit 05a8826

16 files changed

Lines changed: 70 additions & 63 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.2.0"
2+
".": "7.3.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-5be11a3b4798c4039b34a39efe7bb1a25be6fea2293ba67f7c0d9eecec1b8ba4.yml
3-
openapi_spec_hash: ee9ccd5743306a2df39447def1b43017
4-
config_hash: c549fe8ed531041c8cc28ae9645b80dd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-59c9efb45644c91ba21c8efaa0af53637071483ed661d5f99f27a15996624ac2.yml
3+
openapi_spec_hash: 0e1d703ca5e68a4d1f1489c04eb43765
4+
config_hash: 3ec521d062b05b81c22bc1a25bfe3d02

CHANGELOG.md

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

3+
## 7.3.0 (2025-12-08)
4+
5+
Full Changelog: [v7.2.0...v7.3.0](https://github.com/trycourier/courier-python/compare/v7.2.0...v7.3.0)
6+
7+
### Features
8+
9+
* Fix UsersGetAllTokensResponse to return object with tokens property i… ([805f26a](https://github.com/trycourier/courier-python/commit/805f26a723b14446bd70d30e45da4c3ba73ca0f9))
10+
311
## 7.2.0 (2025-12-08)
412

513
Full Changelog: [v7.1.1...v7.2.0](https://github.com/trycourier/courier-python/compare/v7.1.1...v7.2.0)

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ from courier.types import (
2424
Paging,
2525
Preference,
2626
PreferenceStatus,
27-
ProfilePreferences,
2827
Recipient,
2928
RecipientPreferences,
3029
Rule,

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.2.0"
3+
version = "7.3.0"
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.2.0" # x-release-please-version
4+
__version__ = "7.3.0" # x-release-please-version

src/courier/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
PreferenceStatus as PreferenceStatus,
2626
ChannelPreference as ChannelPreference,
2727
ElementalBaseNode as ElementalBaseNode,
28-
ProfilePreferences as ProfilePreferences,
2928
ElementalChannelNode as ElementalChannelNode,
3029
RecipientPreferences as RecipientPreferences,
3130
ChannelClassification as ChannelClassification,

src/courier/types/shared/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from .preference_status import PreferenceStatus as PreferenceStatus
1616
from .channel_preference import ChannelPreference as ChannelPreference
1717
from .elemental_base_node import ElementalBaseNode as ElementalBaseNode
18-
from .profile_preferences import ProfilePreferences as ProfilePreferences
1918
from .recipient_preferences import RecipientPreferences as RecipientPreferences
2019
from .channel_classification import ChannelClassification as ChannelClassification
2120
from .elemental_channel_node import ElementalChannelNode as ElementalChannelNode

src/courier/types/shared/profile_preferences.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/courier/types/shared/recipient.py

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

33
from typing import Dict, Optional
44

5+
from pydantic import Field as FieldInfo
6+
57
from ..._models import BaseModel
8+
from .preference import Preference
69
from .message_context import MessageContext
7-
from .profile_preferences import ProfilePreferences
810

9-
__all__ = ["Recipient"]
11+
__all__ = ["Recipient", "Preferences"]
12+
13+
14+
class Preferences(BaseModel):
15+
notifications: Dict[str, Preference]
16+
17+
categories: Optional[Dict[str, Preference]] = None
18+
19+
template_id: Optional[str] = FieldInfo(alias="templateId", default=None)
1020

1121

1222
class Recipient(BaseModel):
@@ -30,7 +40,7 @@ class Recipient(BaseModel):
3040
phone_number: Optional[str] = None
3141
"""The user's phone number."""
3242

33-
preferences: Optional[ProfilePreferences] = None
43+
preferences: Optional[Preferences] = None
3444

3545
tenant_id: Optional[str] = None
3646
"""The id of the tenant the user is associated with."""

0 commit comments

Comments
 (0)