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.17.0"
".": "7.17.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 134
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-e0c54fd2a28d7beec2c18a6c7abb833e0dd9b14e99c48cf1cfd126f664f1dc62.yml
openapi_spec_hash: 713a396d0875e2000de918032b499b2e
config_hash: 83c79a6ad0a0b5dcce3b85208026343b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-97bb4b698571b6dbe884e93397d14aff0ec7e7279de272a15fa0defb3b2515d5.yml
openapi_spec_hash: c33bf8733151f4f5693788b6e57a8344
config_hash: 74aad10d1512ec69541ece3ca51cf7fa
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 7.17.1 (2026-06-25)

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

### Documentation

* **openapi:** add full response examples to every endpoint ([d42bc6b](https://github.com/trycourier/courier-python/commit/d42bc6b7ecd6c8fe4dbeea6e9bd8e4eb567cca84))
* **openapi:** reword Cancel Submission description ([6e35fe4](https://github.com/trycourier/courier-python/commit/6e35fe48d31f568ae59687afe145676e282298b8))
* **openapi:** reword Get Submission Checks description ([4c0ff82](https://github.com/trycourier/courier-python/commit/4c0ff82e577dcd5059c159c99fbf8b26e8750d27))
* **openapi:** reword Replace Submission Checks description ([b897ea0](https://github.com/trycourier/courier-python/commit/b897ea0d23ef4fed99d6cb15b932e116a01fcf6a))

## 7.17.0 (2026-06-24)

Full Changelog: [v7.16.0...v7.17.0](https://github.com/trycourier/courier-python/compare/v7.16.0...v7.17.0)
Expand Down
40 changes: 20 additions & 20 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,42 +481,42 @@ Methods:
- <code title="get /routing-strategies/{id}/notifications">client.routing_strategies.<a href="./src/courier/resources/routing_strategies.py">list_notifications</a>(id, \*\*<a href="src/courier/types/routing_strategy_list_notifications_params.py">params</a>) -> <a href="./src/courier/types/associated_notification_list_response.py">AssociatedNotificationListResponse</a></code>
- <code title="put /routing-strategies/{id}">client.routing_strategies.<a href="./src/courier/resources/routing_strategies.py">replace</a>(id, \*\*<a href="src/courier/types/routing_strategy_replace_params.py">params</a>) -> <a href="./src/courier/types/routing_strategy_get_response.py">RoutingStrategyGetResponse</a></code>

# PreferenceSections
# WorkspacePreferences

Types:

```python
from courier.types import (
PreferenceSectionCreateRequest,
PreferenceSectionGetResponse,
PreferenceSectionListResponse,
PreferenceSectionReplaceRequest,
PreferenceTopicCreateRequest,
PreferenceTopicGetResponse,
PreferenceTopicListResponse,
PreferenceTopicReplaceRequest,
PublishPreferencesResponse,
WorkspacePreferenceCreateRequest,
WorkspacePreferenceGetResponse,
WorkspacePreferenceListResponse,
WorkspacePreferenceReplaceRequest,
WorkspacePreferenceTopicCreateRequest,
WorkspacePreferenceTopicGetResponse,
WorkspacePreferenceTopicListResponse,
WorkspacePreferenceTopicReplaceRequest,
)
```

Methods:

- <code title="post /preferences/sections">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">create</a>(\*\*<a href="src/courier/types/preference_section_create_params.py">params</a>) -> <a href="./src/courier/types/preference_section_get_response.py">PreferenceSectionGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">retrieve</a>(section_id) -> <a href="./src/courier/types/preference_section_get_response.py">PreferenceSectionGetResponse</a></code>
- <code title="get /preferences/sections">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">list</a>() -> <a href="./src/courier/types/preference_section_list_response.py">PreferenceSectionListResponse</a></code>
- <code title="delete /preferences/sections/{section_id}">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">archive</a>(section_id) -> None</code>
- <code title="post /preferences/publish">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">publish</a>() -> <a href="./src/courier/types/publish_preferences_response.py">PublishPreferencesResponse</a></code>
- <code title="put /preferences/sections/{section_id}">client.preference_sections.<a href="./src/courier/resources/preference_sections/preference_sections.py">replace</a>(section_id, \*\*<a href="src/courier/types/preference_section_replace_params.py">params</a>) -> <a href="./src/courier/types/preference_section_get_response.py">PreferenceSectionGetResponse</a></code>
- <code title="post /preferences/sections">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">create</a>(\*\*<a href="src/courier/types/workspace_preference_create_params.py">params</a>) -> <a href="./src/courier/types/workspace_preference_get_response.py">WorkspacePreferenceGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">retrieve</a>(section_id) -> <a href="./src/courier/types/workspace_preference_get_response.py">WorkspacePreferenceGetResponse</a></code>
- <code title="get /preferences/sections">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">list</a>() -> <a href="./src/courier/types/workspace_preference_list_response.py">WorkspacePreferenceListResponse</a></code>
- <code title="delete /preferences/sections/{section_id}">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">archive</a>(section_id) -> None</code>
- <code title="post /preferences/publish">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">publish</a>() -> <a href="./src/courier/types/publish_preferences_response.py">PublishPreferencesResponse</a></code>
- <code title="put /preferences/sections/{section_id}">client.workspace_preferences.<a href="./src/courier/resources/workspace_preferences/workspace_preferences.py">replace</a>(section_id, \*\*<a href="src/courier/types/workspace_preference_replace_params.py">params</a>) -> <a href="./src/courier/types/workspace_preference_get_response.py">WorkspacePreferenceGetResponse</a></code>

## Topics

Methods:

- <code title="post /preferences/sections/{section_id}/topics">client.preference_sections.topics.<a href="./src/courier/resources/preference_sections/topics.py">create</a>(section_id, \*\*<a href="src/courier/types/preference_sections/topic_create_params.py">params</a>) -> <a href="./src/courier/types/preference_topic_get_response.py">PreferenceTopicGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}/topics/{topic_id}">client.preference_sections.topics.<a href="./src/courier/resources/preference_sections/topics.py">retrieve</a>(topic_id, \*, section_id) -> <a href="./src/courier/types/preference_topic_get_response.py">PreferenceTopicGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}/topics">client.preference_sections.topics.<a href="./src/courier/resources/preference_sections/topics.py">list</a>(section_id) -> <a href="./src/courier/types/preference_topic_list_response.py">PreferenceTopicListResponse</a></code>
- <code title="delete /preferences/sections/{section_id}/topics/{topic_id}">client.preference_sections.topics.<a href="./src/courier/resources/preference_sections/topics.py">archive</a>(topic_id, \*, section_id) -> None</code>
- <code title="put /preferences/sections/{section_id}/topics/{topic_id}">client.preference_sections.topics.<a href="./src/courier/resources/preference_sections/topics.py">replace</a>(topic_id, \*, section_id, \*\*<a href="src/courier/types/preference_sections/topic_replace_params.py">params</a>) -> <a href="./src/courier/types/preference_topic_get_response.py">PreferenceTopicGetResponse</a></code>
- <code title="post /preferences/sections/{section_id}/topics">client.workspace_preferences.topics.<a href="./src/courier/resources/workspace_preferences/topics.py">create</a>(section_id, \*\*<a href="src/courier/types/workspace_preferences/topic_create_params.py">params</a>) -> <a href="./src/courier/types/workspace_preference_topic_get_response.py">WorkspacePreferenceTopicGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}/topics/{topic_id}">client.workspace_preferences.topics.<a href="./src/courier/resources/workspace_preferences/topics.py">retrieve</a>(topic_id, \*, section_id) -> <a href="./src/courier/types/workspace_preference_topic_get_response.py">WorkspacePreferenceTopicGetResponse</a></code>
- <code title="get /preferences/sections/{section_id}/topics">client.workspace_preferences.topics.<a href="./src/courier/resources/workspace_preferences/topics.py">list</a>(section_id) -> <a href="./src/courier/types/workspace_preference_topic_list_response.py">WorkspacePreferenceTopicListResponse</a></code>
- <code title="delete /preferences/sections/{section_id}/topics/{topic_id}">client.workspace_preferences.topics.<a href="./src/courier/resources/workspace_preferences/topics.py">archive</a>(topic_id, \*, section_id) -> None</code>
- <code title="put /preferences/sections/{section_id}/topics/{topic_id}">client.workspace_preferences.topics.<a href="./src/courier/resources/workspace_preferences/topics.py">replace</a>(topic_id, \*, section_id, \*\*<a href="src/courier/types/workspace_preferences/topic_replace_params.py">params</a>) -> <a href="./src/courier/types/workspace_preference_topic_get_response.py">WorkspacePreferenceTopicGetResponse</a></code>

# Profiles

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.17.0"
version = "7.17.1"
description = "The official Python library for the Courier API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
44 changes: 22 additions & 22 deletions src/courier/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
translations,
notifications,
routing_strategies,
preference_sections,
workspace_preferences,
)
from .resources.auth import AuthResource, AsyncAuthResource
from .resources.bulk import BulkResource, AsyncBulkResource
Expand All @@ -78,9 +78,9 @@
from .resources.providers.providers import ProvidersResource, AsyncProvidersResource
from .resources.automations.automations import AutomationsResource, AsyncAutomationsResource
from .resources.notifications.notifications import NotificationsResource, AsyncNotificationsResource
from .resources.preference_sections.preference_sections import (
PreferenceSectionsResource,
AsyncPreferenceSectionsResource,
from .resources.workspace_preferences.workspace_preferences import (
WorkspacePreferencesResource,
AsyncWorkspacePreferencesResource,
)

__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Courier", "AsyncCourier", "Client", "AsyncClient"]
Expand Down Expand Up @@ -247,10 +247,10 @@ def routing_strategies(self) -> RoutingStrategiesResource:
return RoutingStrategiesResource(self)

@cached_property
def preference_sections(self) -> PreferenceSectionsResource:
from .resources.preference_sections import PreferenceSectionsResource
def workspace_preferences(self) -> WorkspacePreferencesResource:
from .resources.workspace_preferences import WorkspacePreferencesResource

return PreferenceSectionsResource(self)
return WorkspacePreferencesResource(self)

@cached_property
def profiles(self) -> ProfilesResource:
Expand Down Expand Up @@ -550,10 +550,10 @@ def routing_strategies(self) -> AsyncRoutingStrategiesResource:
return AsyncRoutingStrategiesResource(self)

@cached_property
def preference_sections(self) -> AsyncPreferenceSectionsResource:
from .resources.preference_sections import AsyncPreferenceSectionsResource
def workspace_preferences(self) -> AsyncWorkspacePreferencesResource:
from .resources.workspace_preferences import AsyncWorkspacePreferencesResource

return AsyncPreferenceSectionsResource(self)
return AsyncWorkspacePreferencesResource(self)

@cached_property
def profiles(self) -> AsyncProfilesResource:
Expand Down Expand Up @@ -795,10 +795,10 @@ def routing_strategies(self) -> routing_strategies.RoutingStrategiesResourceWith
return RoutingStrategiesResourceWithRawResponse(self._client.routing_strategies)

@cached_property
def preference_sections(self) -> preference_sections.PreferenceSectionsResourceWithRawResponse:
from .resources.preference_sections import PreferenceSectionsResourceWithRawResponse
def workspace_preferences(self) -> workspace_preferences.WorkspacePreferencesResourceWithRawResponse:
from .resources.workspace_preferences import WorkspacePreferencesResourceWithRawResponse

return PreferenceSectionsResourceWithRawResponse(self._client.preference_sections)
return WorkspacePreferencesResourceWithRawResponse(self._client.workspace_preferences)

@cached_property
def profiles(self) -> profiles.ProfilesResourceWithRawResponse:
Expand Down Expand Up @@ -928,10 +928,10 @@ def routing_strategies(self) -> routing_strategies.AsyncRoutingStrategiesResourc
return AsyncRoutingStrategiesResourceWithRawResponse(self._client.routing_strategies)

@cached_property
def preference_sections(self) -> preference_sections.AsyncPreferenceSectionsResourceWithRawResponse:
from .resources.preference_sections import AsyncPreferenceSectionsResourceWithRawResponse
def workspace_preferences(self) -> workspace_preferences.AsyncWorkspacePreferencesResourceWithRawResponse:
from .resources.workspace_preferences import AsyncWorkspacePreferencesResourceWithRawResponse

return AsyncPreferenceSectionsResourceWithRawResponse(self._client.preference_sections)
return AsyncWorkspacePreferencesResourceWithRawResponse(self._client.workspace_preferences)

@cached_property
def profiles(self) -> profiles.AsyncProfilesResourceWithRawResponse:
Expand Down Expand Up @@ -1061,10 +1061,10 @@ def routing_strategies(self) -> routing_strategies.RoutingStrategiesResourceWith
return RoutingStrategiesResourceWithStreamingResponse(self._client.routing_strategies)

@cached_property
def preference_sections(self) -> preference_sections.PreferenceSectionsResourceWithStreamingResponse:
from .resources.preference_sections import PreferenceSectionsResourceWithStreamingResponse
def workspace_preferences(self) -> workspace_preferences.WorkspacePreferencesResourceWithStreamingResponse:
from .resources.workspace_preferences import WorkspacePreferencesResourceWithStreamingResponse

return PreferenceSectionsResourceWithStreamingResponse(self._client.preference_sections)
return WorkspacePreferencesResourceWithStreamingResponse(self._client.workspace_preferences)

@cached_property
def profiles(self) -> profiles.ProfilesResourceWithStreamingResponse:
Expand Down Expand Up @@ -1194,10 +1194,10 @@ def routing_strategies(self) -> routing_strategies.AsyncRoutingStrategiesResourc
return AsyncRoutingStrategiesResourceWithStreamingResponse(self._client.routing_strategies)

@cached_property
def preference_sections(self) -> preference_sections.AsyncPreferenceSectionsResourceWithStreamingResponse:
from .resources.preference_sections import AsyncPreferenceSectionsResourceWithStreamingResponse
def workspace_preferences(self) -> workspace_preferences.AsyncWorkspacePreferencesResourceWithStreamingResponse:
from .resources.workspace_preferences import AsyncWorkspacePreferencesResourceWithStreamingResponse

return AsyncPreferenceSectionsResourceWithStreamingResponse(self._client.preference_sections)
return AsyncWorkspacePreferencesResourceWithStreamingResponse(self._client.workspace_preferences)

@cached_property
def profiles(self) -> profiles.AsyncProfilesResourceWithStreamingResponse:
Expand Down
2 changes: 1 addition & 1 deletion src/courier/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "courier"
__version__ = "7.17.0" # x-release-please-version
__version__ = "7.17.1" # x-release-please-version
26 changes: 13 additions & 13 deletions src/courier/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@
RoutingStrategiesResourceWithStreamingResponse,
AsyncRoutingStrategiesResourceWithStreamingResponse,
)
from .preference_sections import (
PreferenceSectionsResource,
AsyncPreferenceSectionsResource,
PreferenceSectionsResourceWithRawResponse,
AsyncPreferenceSectionsResourceWithRawResponse,
PreferenceSectionsResourceWithStreamingResponse,
AsyncPreferenceSectionsResourceWithStreamingResponse,
from .workspace_preferences import (
WorkspacePreferencesResource,
AsyncWorkspacePreferencesResource,
WorkspacePreferencesResourceWithRawResponse,
AsyncWorkspacePreferencesResourceWithRawResponse,
WorkspacePreferencesResourceWithStreamingResponse,
AsyncWorkspacePreferencesResourceWithStreamingResponse,
)

__all__ = [
Expand Down Expand Up @@ -266,12 +266,12 @@
"AsyncRoutingStrategiesResourceWithRawResponse",
"RoutingStrategiesResourceWithStreamingResponse",
"AsyncRoutingStrategiesResourceWithStreamingResponse",
"PreferenceSectionsResource",
"AsyncPreferenceSectionsResource",
"PreferenceSectionsResourceWithRawResponse",
"AsyncPreferenceSectionsResourceWithRawResponse",
"PreferenceSectionsResourceWithStreamingResponse",
"AsyncPreferenceSectionsResourceWithStreamingResponse",
"WorkspacePreferencesResource",
"AsyncWorkspacePreferencesResource",
"WorkspacePreferencesResourceWithRawResponse",
"AsyncWorkspacePreferencesResourceWithRawResponse",
"WorkspacePreferencesResourceWithStreamingResponse",
"AsyncWorkspacePreferencesResourceWithStreamingResponse",
"ProfilesResource",
"AsyncProfilesResource",
"ProfilesResourceWithRawResponse",
Expand Down
12 changes: 6 additions & 6 deletions src/courier/resources/notifications/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CheckUpdateResponse:
"""
Replace the checks for a notification template submission.
Replace the submission checks for a notification template.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -96,7 +96,7 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CheckListResponse:
"""
Retrieve the checks for a notification template submission.
Retrieve the submission checks for a notification template.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -132,7 +132,7 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> None:
"""
Cancel a notification template submission.
Cancel a submission for a notification template.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -191,7 +191,7 @@ async def update(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CheckUpdateResponse:
"""
Replace the checks for a notification template submission.
Replace the submission checks for a notification template.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -228,7 +228,7 @@ async def list(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CheckListResponse:
"""
Retrieve the checks for a notification template submission.
Retrieve the submission checks for a notification template.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -264,7 +264,7 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> None:
"""
Cancel a notification template submission.
Cancel a submission for a notification template.

Args:
extra_headers: Send extra headers
Expand Down
Loading