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.20.0"
".": "7.21.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: 139
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-b03f5346718dcd7b22f15893445ea593ab87535c90c540fc5a796c6ecd54d779.yml
openapi_spec_hash: 15677d3be4ecd33eab154080b4bc437f
config_hash: dcd58abf1e56b114bdce22336ca3d570
configured_endpoints: 134
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-b053468fefe6d757f86f3233ebbc52d80329ed2a6e7a6740fee01e4028a4c3b9.yml
openapi_spec_hash: 416835e693de0fe19945be90a787d3f3
config_hash: 8d28dbeabe9d4dcc7d5b8c021a4cbbd7
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 7.21.0 (2026-07-23)

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

### Features

* Remove /bulk endpoints from api-spec (C-19507) ([#171](https://github.com/trycourier/courier-python/issues/171)) ([8fdd704](https://github.com/trycourier/courier-python/commit/8fdd7045e10a5b8c83397cdca6a27466875126d2))

## 7.20.0 (2026-07-20)

Full Changelog: [v7.19.2...v7.20.0](https://github.com/trycourier/courier-python/compare/v7.19.2...v7.20.0)
Expand Down
22 changes: 0 additions & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,28 +296,6 @@ Methods:
- <code title="get /brands">client.brands.<a href="./src/courier/resources/brands.py">list</a>(\*\*<a href="src/courier/types/brand_list_params.py">params</a>) -> <a href="./src/courier/types/brand_list_response.py">BrandListResponse</a></code>
- <code title="delete /brands/{brand_id}">client.brands.<a href="./src/courier/resources/brands.py">delete</a>(brand_id) -> None</code>

# Bulk

Types:

```python
from courier.types import (
InboundBulkMessage,
InboundBulkMessageUser,
BulkCreateJobResponse,
BulkListUsersResponse,
BulkRetrieveJobResponse,
)
```

Methods:

- <code title="post /bulk/{job_id}">client.bulk.<a href="./src/courier/resources/bulk.py">add_users</a>(job_id, \*\*<a href="src/courier/types/bulk_add_users_params.py">params</a>) -> None</code>
- <code title="post /bulk">client.bulk.<a href="./src/courier/resources/bulk.py">create_job</a>(\*\*<a href="src/courier/types/bulk_create_job_params.py">params</a>) -> <a href="./src/courier/types/bulk_create_job_response.py">BulkCreateJobResponse</a></code>
- <code title="get /bulk/{job_id}/users">client.bulk.<a href="./src/courier/resources/bulk.py">list_users</a>(job_id, \*\*<a href="src/courier/types/bulk_list_users_params.py">params</a>) -> <a href="./src/courier/types/bulk_list_users_response.py">BulkListUsersResponse</a></code>
- <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:
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.20.0"
version = "7.21.0"
description = "The official Python library for the Courier API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
38 changes: 0 additions & 38 deletions src/courier/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
if TYPE_CHECKING:
from .resources import (
auth,
bulk,
send,
lists,
users,
Expand All @@ -59,7 +58,6 @@
workspace_preferences,
)
from .resources.auth import AuthResource, AsyncAuthResource
from .resources.bulk import BulkResource, AsyncBulkResource
from .resources.send import SendResource, AsyncSendResource
from .resources.brands import BrandsResource, AsyncBrandsResource
from .resources.inbound import InboundResource, AsyncInboundResource
Expand Down Expand Up @@ -198,12 +196,6 @@ def brands(self) -> BrandsResource:

return BrandsResource(self)

@cached_property
def bulk(self) -> BulkResource:
from .resources.bulk import BulkResource

return BulkResource(self)

@cached_property
def digests(self) -> DigestsResource:
from .resources.digests import DigestsResource
Expand Down Expand Up @@ -501,12 +493,6 @@ def brands(self) -> AsyncBrandsResource:

return AsyncBrandsResource(self)

@cached_property
def bulk(self) -> AsyncBulkResource:
from .resources.bulk import AsyncBulkResource

return AsyncBulkResource(self)

@cached_property
def digests(self) -> AsyncDigestsResource:
from .resources.digests import AsyncDigestsResource
Expand Down Expand Up @@ -746,12 +732,6 @@ def brands(self) -> brands.BrandsResourceWithRawResponse:

return BrandsResourceWithRawResponse(self._client.brands)

@cached_property
def bulk(self) -> bulk.BulkResourceWithRawResponse:
from .resources.bulk import BulkResourceWithRawResponse

return BulkResourceWithRawResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.DigestsResourceWithRawResponse:
from .resources.digests import DigestsResourceWithRawResponse
Expand Down Expand Up @@ -879,12 +859,6 @@ def brands(self) -> brands.AsyncBrandsResourceWithRawResponse:

return AsyncBrandsResourceWithRawResponse(self._client.brands)

@cached_property
def bulk(self) -> bulk.AsyncBulkResourceWithRawResponse:
from .resources.bulk import AsyncBulkResourceWithRawResponse

return AsyncBulkResourceWithRawResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.AsyncDigestsResourceWithRawResponse:
from .resources.digests import AsyncDigestsResourceWithRawResponse
Expand Down Expand Up @@ -1012,12 +986,6 @@ def brands(self) -> brands.BrandsResourceWithStreamingResponse:

return BrandsResourceWithStreamingResponse(self._client.brands)

@cached_property
def bulk(self) -> bulk.BulkResourceWithStreamingResponse:
from .resources.bulk import BulkResourceWithStreamingResponse

return BulkResourceWithStreamingResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.DigestsResourceWithStreamingResponse:
from .resources.digests import DigestsResourceWithStreamingResponse
Expand Down Expand Up @@ -1145,12 +1113,6 @@ def brands(self) -> brands.AsyncBrandsResourceWithStreamingResponse:

return AsyncBrandsResourceWithStreamingResponse(self._client.brands)

@cached_property
def bulk(self) -> bulk.AsyncBulkResourceWithStreamingResponse:
from .resources.bulk import AsyncBulkResourceWithStreamingResponse

return AsyncBulkResourceWithStreamingResponse(self._client.bulk)

@cached_property
def digests(self) -> digests.AsyncDigestsResourceWithStreamingResponse:
from .resources.digests import AsyncDigestsResourceWithStreamingResponse
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.20.0" # x-release-please-version
__version__ = "7.21.0" # x-release-please-version
14 changes: 0 additions & 14 deletions src/courier/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
AuthResourceWithStreamingResponse,
AsyncAuthResourceWithStreamingResponse,
)
from .bulk import (
BulkResource,
AsyncBulkResource,
BulkResourceWithRawResponse,
AsyncBulkResourceWithRawResponse,
BulkResourceWithStreamingResponse,
AsyncBulkResourceWithStreamingResponse,
)
from .send import (
SendResource,
AsyncSendResource,
Expand Down Expand Up @@ -218,12 +210,6 @@
"AsyncBrandsResourceWithRawResponse",
"BrandsResourceWithStreamingResponse",
"AsyncBrandsResourceWithStreamingResponse",
"BulkResource",
"AsyncBulkResource",
"BulkResourceWithRawResponse",
"AsyncBulkResourceWithRawResponse",
"BulkResourceWithStreamingResponse",
"AsyncBulkResourceWithStreamingResponse",
"DigestsResource",
"AsyncDigestsResource",
"DigestsResourceWithRawResponse",
Expand Down
Loading