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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 168
configured_endpoints: 169
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,18 @@ 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>

# Feedback

Types:

```python
from courier.types import FeedbackCreateResponse
```

Methods:

- <code title="post /feedback">client.feedback.<a href="./src/courier/resources/feedback.py">create</a>(\*\*<a href="src/courier/types/feedback_create_params.py">params</a>) -> <a href="./src/courier/types/feedback_create_response.py">FeedbackCreateResponse</a></code>

# Inbound

Types:
Expand Down
56 changes: 56 additions & 0 deletions src/courier/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
digests,
inbound,
tenants,
feedback,
journeys,
messages,
previews,
Expand All @@ -65,6 +66,7 @@
from .resources.send import SendResource, AsyncSendResource
from .resources.brands import BrandsResource, AsyncBrandsResource
from .resources.inbound import InboundResource, AsyncInboundResource
from .resources.feedback import FeedbackResource, AsyncFeedbackResource
from .resources.messages import MessagesResource, AsyncMessagesResource
from .resources.previews import PreviewsResource, AsyncPreviewsResource
from .resources.requests import RequestsResource, AsyncRequestsResource
Expand Down Expand Up @@ -254,6 +256,15 @@ def digests(self) -> DigestsResource:

return digests.DigestsResource(self)

@cached_property
def feedback(self) -> FeedbackResource:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.FeedbackResource(self)

@cached_property
def inbound(self) -> InboundResource:
"""
Expand Down Expand Up @@ -627,6 +638,15 @@ def digests(self) -> AsyncDigestsResource:

return digests.AsyncDigestsResource(self)

@cached_property
def feedback(self) -> AsyncFeedbackResource:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.AsyncFeedbackResource(self)

@cached_property
def inbound(self) -> AsyncInboundResource:
"""
Expand Down Expand Up @@ -942,6 +962,15 @@ def digests(self) -> digests.DigestsResourceWithRawResponse:

return digests.DigestsResourceWithRawResponse(self._client.digests)

@cached_property
def feedback(self) -> feedback.FeedbackResourceWithRawResponse:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.FeedbackResourceWithRawResponse(self._client.feedback)

@cached_property
def inbound(self) -> inbound.InboundResourceWithRawResponse:
"""
Expand Down Expand Up @@ -1145,6 +1174,15 @@ def digests(self) -> digests.AsyncDigestsResourceWithRawResponse:

return digests.AsyncDigestsResourceWithRawResponse(self._client.digests)

@cached_property
def feedback(self) -> feedback.AsyncFeedbackResourceWithRawResponse:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.AsyncFeedbackResourceWithRawResponse(self._client.feedback)

@cached_property
def inbound(self) -> inbound.AsyncInboundResourceWithRawResponse:
"""
Expand Down Expand Up @@ -1350,6 +1388,15 @@ def digests(self) -> digests.DigestsResourceWithStreamingResponse:

return digests.DigestsResourceWithStreamingResponse(self._client.digests)

@cached_property
def feedback(self) -> feedback.FeedbackResourceWithStreamingResponse:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.FeedbackResourceWithStreamingResponse(self._client.feedback)

@cached_property
def inbound(self) -> inbound.InboundResourceWithStreamingResponse:
"""
Expand Down Expand Up @@ -1555,6 +1602,15 @@ def digests(self) -> digests.AsyncDigestsResourceWithStreamingResponse:

return digests.AsyncDigestsResourceWithStreamingResponse(self._client.digests)

@cached_property
def feedback(self) -> feedback.AsyncFeedbackResourceWithStreamingResponse:
"""
Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent, a developer tool or by hand.
"""
from .resources import feedback

return feedback.AsyncFeedbackResourceWithStreamingResponse(self._client.feedback)

@cached_property
def inbound(self) -> inbound.AsyncInboundResourceWithStreamingResponse:
"""
Expand Down
14 changes: 14 additions & 0 deletions src/courier/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
TenantsResourceWithStreamingResponse,
AsyncTenantsResourceWithStreamingResponse,
)
from .feedback import (
FeedbackResource,
AsyncFeedbackResource,
FeedbackResourceWithRawResponse,
AsyncFeedbackResourceWithRawResponse,
FeedbackResourceWithStreamingResponse,
AsyncFeedbackResourceWithStreamingResponse,
)
from .journeys import (
JourneysResource,
AsyncJourneysResource,
Expand Down Expand Up @@ -258,6 +266,12 @@
"AsyncDigestsResourceWithRawResponse",
"DigestsResourceWithStreamingResponse",
"AsyncDigestsResourceWithStreamingResponse",
"FeedbackResource",
"AsyncFeedbackResource",
"FeedbackResourceWithRawResponse",
"AsyncFeedbackResourceWithRawResponse",
"FeedbackResourceWithStreamingResponse",
"AsyncFeedbackResourceWithStreamingResponse",
"InboundResource",
"AsyncInboundResource",
"InboundResourceWithRawResponse",
Expand Down
Loading