Skip to content
Open
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.13.0"
".": "7.14.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 117
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-545ac9b590445e90e11113a1bdeb893a94389d69d95e0a7e5c6450bb15f5453a.yml
openapi_spec_hash: 9e243ec62800fb4a2e443eb6481afa30
config_hash: 10bd597dd6cc89023541bc551b6532b8
configured_endpoints: 119
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-a64bb97c3455b0689de7f6a297ba1dc1e747561ce310ddb18b9c4a5f4d3d510a.yml
openapi_spec_hash: 6a3b89f3ea7600e784902f61680f8f1a
config_hash: 822a92efc80e63cdb2d496dbd6176620
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 7.14.0 (2026-06-12)

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

### Features

* **digests:** document digest REST endpoints in OpenAPI spec ([d88d2ae](https://github.com/trycourier/courier-python/commit/d88d2ae2d08af0abb7334e5ba1228619a85e9e3b))

## 7.13.0 (2026-05-28)

Full Changelog: [v7.12.0...v7.13.0](https://github.com/trycourier/courier-python/compare/v7.12.0...v7.13.0)
Expand Down
15 changes: 15 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,21 @@ Methods:
- <code title="get /bulk/{job_id}">client.bulk.<a href="./src/courier/resources/bulk.py">retrieve_job</a>(job_id) -> <a href="./src/courier/types/bulk_retrieve_job_response.py">BulkRetrieveJobResponse</a></code>
- <code title="post /bulk/{job_id}/run">client.bulk.<a href="./src/courier/resources/bulk.py">run_job</a>(job_id) -> None</code>

# Digests

Types:

```python
from courier.types import DigestCategory, DigestInstance, DigestInstanceListResponse
```

## Schedules

Methods:

- <code title="get /digests/schedules/{schedule_id}/instances">client.digests.schedules.<a href="./src/courier/resources/digests/schedules.py">list_instances</a>(schedule_id, \*\*<a href="src/courier/types/digests/schedule_list_instances_params.py">params</a>) -> <a href="./src/courier/types/digest_instance_list_response.py">DigestInstanceListResponse</a></code>
- <code title="post /digests/schedules/{schedule_id}/trigger">client.digests.schedules.<a href="./src/courier/resources/digests/schedules.py">release</a>(schedule_id) -> None</code>

# Inbound

Types:
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.13.0"
version = "7.14.0"
description = "The official Python library for the Courier API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
38 changes: 38 additions & 0 deletions src/courier/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
lists,
users,
brands,
digests,
inbound,
tenants,
journeys,
Expand All @@ -68,6 +69,7 @@
from .resources.users.users import UsersResource, AsyncUsersResource
from .resources.audit_events import AuditEventsResource, AsyncAuditEventsResource
from .resources.translations import TranslationsResource, AsyncTranslationsResource
from .resources.digests.digests import DigestsResource, AsyncDigestsResource
from .resources.tenants.tenants import TenantsResource, AsyncTenantsResource
from .resources.journeys.journeys import JourneysResource, AsyncJourneysResource
from .resources.profiles.profiles import ProfilesResource, AsyncProfilesResource
Expand Down Expand Up @@ -197,6 +199,12 @@ def bulk(self) -> BulkResource:

return BulkResource(self)

@cached_property
def digests(self) -> DigestsResource:
from .resources.digests import DigestsResource

return DigestsResource(self)

@cached_property
def inbound(self) -> InboundResource:
from .resources.inbound import InboundResource
Expand Down Expand Up @@ -488,6 +496,12 @@ def bulk(self) -> AsyncBulkResource:

return AsyncBulkResource(self)

@cached_property
def digests(self) -> AsyncDigestsResource:
from .resources.digests import AsyncDigestsResource

return AsyncDigestsResource(self)

@cached_property
def inbound(self) -> AsyncInboundResource:
from .resources.inbound import AsyncInboundResource
Expand Down Expand Up @@ -721,6 +735,12 @@ def bulk(self) -> bulk.BulkResourceWithRawResponse:

return BulkResourceWithRawResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.DigestsResourceWithRawResponse:
from .resources.digests import DigestsResourceWithRawResponse

return DigestsResourceWithRawResponse(self._client.digests)

@cached_property
def inbound(self) -> inbound.InboundResourceWithRawResponse:
from .resources.inbound import InboundResourceWithRawResponse
Expand Down Expand Up @@ -842,6 +862,12 @@ def bulk(self) -> bulk.AsyncBulkResourceWithRawResponse:

return AsyncBulkResourceWithRawResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.AsyncDigestsResourceWithRawResponse:
from .resources.digests import AsyncDigestsResourceWithRawResponse

return AsyncDigestsResourceWithRawResponse(self._client.digests)

@cached_property
def inbound(self) -> inbound.AsyncInboundResourceWithRawResponse:
from .resources.inbound import AsyncInboundResourceWithRawResponse
Expand Down Expand Up @@ -963,6 +989,12 @@ def bulk(self) -> bulk.BulkResourceWithStreamingResponse:

return BulkResourceWithStreamingResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.DigestsResourceWithStreamingResponse:
from .resources.digests import DigestsResourceWithStreamingResponse

return DigestsResourceWithStreamingResponse(self._client.digests)

@cached_property
def inbound(self) -> inbound.InboundResourceWithStreamingResponse:
from .resources.inbound import InboundResourceWithStreamingResponse
Expand Down Expand Up @@ -1084,6 +1116,12 @@ def bulk(self) -> bulk.AsyncBulkResourceWithStreamingResponse:

return AsyncBulkResourceWithStreamingResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.AsyncDigestsResourceWithStreamingResponse:
from .resources.digests import AsyncDigestsResourceWithStreamingResponse

return AsyncDigestsResourceWithStreamingResponse(self._client.digests)

@cached_property
def inbound(self) -> inbound.AsyncInboundResourceWithStreamingResponse:
from .resources.inbound import AsyncInboundResourceWithStreamingResponse
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.13.0" # x-release-please-version
__version__ = "7.14.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/courier/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
BrandsResourceWithStreamingResponse,
AsyncBrandsResourceWithStreamingResponse,
)
from .digests import (
DigestsResource,
AsyncDigestsResource,
DigestsResourceWithRawResponse,
AsyncDigestsResourceWithRawResponse,
DigestsResourceWithStreamingResponse,
AsyncDigestsResourceWithStreamingResponse,
)
from .inbound import (
InboundResource,
AsyncInboundResource,
Expand Down Expand Up @@ -208,6 +216,12 @@
"AsyncBulkResourceWithRawResponse",
"BulkResourceWithStreamingResponse",
"AsyncBulkResourceWithStreamingResponse",
"DigestsResource",
"AsyncDigestsResource",
"DigestsResourceWithRawResponse",
"AsyncDigestsResourceWithRawResponse",
"DigestsResourceWithStreamingResponse",
"AsyncDigestsResourceWithStreamingResponse",
"InboundResource",
"AsyncInboundResource",
"InboundResourceWithRawResponse",
Expand Down
33 changes: 33 additions & 0 deletions src/courier/resources/digests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .digests import (
DigestsResource,
AsyncDigestsResource,
DigestsResourceWithRawResponse,
AsyncDigestsResourceWithRawResponse,
DigestsResourceWithStreamingResponse,
AsyncDigestsResourceWithStreamingResponse,
)
from .schedules import (
SchedulesResource,
AsyncSchedulesResource,
SchedulesResourceWithRawResponse,
AsyncSchedulesResourceWithRawResponse,
SchedulesResourceWithStreamingResponse,
AsyncSchedulesResourceWithStreamingResponse,
)

__all__ = [
"SchedulesResource",
"AsyncSchedulesResource",
"SchedulesResourceWithRawResponse",
"AsyncSchedulesResourceWithRawResponse",
"SchedulesResourceWithStreamingResponse",
"AsyncSchedulesResourceWithStreamingResponse",
"DigestsResource",
"AsyncDigestsResource",
"DigestsResourceWithRawResponse",
"AsyncDigestsResourceWithRawResponse",
"DigestsResourceWithStreamingResponse",
"AsyncDigestsResourceWithStreamingResponse",
]
102 changes: 102 additions & 0 deletions src/courier/resources/digests/digests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from ..._compat import cached_property
from .schedules import (
SchedulesResource,
AsyncSchedulesResource,
SchedulesResourceWithRawResponse,
AsyncSchedulesResourceWithRawResponse,
SchedulesResourceWithStreamingResponse,
AsyncSchedulesResourceWithStreamingResponse,
)
from ..._resource import SyncAPIResource, AsyncAPIResource

__all__ = ["DigestsResource", "AsyncDigestsResource"]


class DigestsResource(SyncAPIResource):
@cached_property
def schedules(self) -> SchedulesResource:
return SchedulesResource(self._client)

@cached_property
def with_raw_response(self) -> DigestsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/trycourier/courier-python#accessing-raw-response-data-eg-headers
"""
return DigestsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> DigestsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/trycourier/courier-python#with_streaming_response
"""
return DigestsResourceWithStreamingResponse(self)


class AsyncDigestsResource(AsyncAPIResource):
@cached_property
def schedules(self) -> AsyncSchedulesResource:
return AsyncSchedulesResource(self._client)

@cached_property
def with_raw_response(self) -> AsyncDigestsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/trycourier/courier-python#accessing-raw-response-data-eg-headers
"""
return AsyncDigestsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncDigestsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/trycourier/courier-python#with_streaming_response
"""
return AsyncDigestsResourceWithStreamingResponse(self)


class DigestsResourceWithRawResponse:
def __init__(self, digests: DigestsResource) -> None:
self._digests = digests

@cached_property
def schedules(self) -> SchedulesResourceWithRawResponse:
return SchedulesResourceWithRawResponse(self._digests.schedules)


class AsyncDigestsResourceWithRawResponse:
def __init__(self, digests: AsyncDigestsResource) -> None:
self._digests = digests

@cached_property
def schedules(self) -> AsyncSchedulesResourceWithRawResponse:
return AsyncSchedulesResourceWithRawResponse(self._digests.schedules)


class DigestsResourceWithStreamingResponse:
def __init__(self, digests: DigestsResource) -> None:
self._digests = digests

@cached_property
def schedules(self) -> SchedulesResourceWithStreamingResponse:
return SchedulesResourceWithStreamingResponse(self._digests.schedules)


class AsyncDigestsResourceWithStreamingResponse:
def __init__(self, digests: AsyncDigestsResource) -> None:
self._digests = digests

@cached_property
def schedules(self) -> AsyncSchedulesResourceWithStreamingResponse:
return AsyncSchedulesResourceWithStreamingResponse(self._digests.schedules)
Loading