Skip to content

Commit ea30dd6

Browse files
feat(api): add content/element/locale methods, remove draft resource, update notifications
1 parent 8a4ae2c commit ea30dd6

17 files changed

Lines changed: 1121 additions & 357 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 100
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-06779bbaf9cb7a27215b6c6d1376f93a1e17ab21b111b55e89e9c989b1dc1b85.yml
3-
openapi_spec_hash: 69995747786fb3e075363162bc4c5d6f
4-
config_hash: c6ccb6f2954c650b88d1825501e727f5
1+
configured_endpoints: 102
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-c22b0f83f2edb9cc171977928b3e630e57a9b607a12c7ebaaee4bf2915ad0686.yml
3+
openapi_spec_hash: 9ebc6453998e155b12fb35c40c7d5249
4+
config_hash: cecef6fb68feaa0bda820cd86fa4f045

api.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,17 +343,25 @@ Types:
343343
from courier.types import (
344344
BaseCheck,
345345
Check,
346+
ElementWithChecksums,
347+
NotificationContentGetResponse,
348+
NotificationContentMutationResponse,
349+
NotificationContentPutRequest,
350+
NotificationElementPutRequest,
346351
NotificationGetContent,
352+
NotificationLocalePutRequest,
347353
NotificationTemplateCreateRequest,
348354
NotificationTemplateGetResponse,
349355
NotificationTemplateMutationResponse,
350356
NotificationTemplatePayload,
351357
NotificationTemplatePublishRequest,
358+
NotificationTemplateState,
352359
NotificationTemplateSummary,
353360
NotificationTemplateUpdateRequest,
354361
NotificationTemplateVersionListResponse,
355362
VersionNode,
356363
NotificationListResponse,
364+
NotificationRetrieveContentResponse,
357365
)
358366
```
359367

@@ -365,14 +373,11 @@ Methods:
365373
- <code title="delete /notifications/{id}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">archive</a>(id) -> None</code>
366374
- <code title="get /notifications/{id}/versions">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">list_versions</a>(id, \*\*<a href="src/courier/types/notification_list_versions_params.py">params</a>) -> <a href="./src/courier/types/notification_template_version_list_response.py">NotificationTemplateVersionListResponse</a></code>
367375
- <code title="post /notifications/{id}/publish">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">publish</a>(id, \*\*<a href="src/courier/types/notification_publish_params.py">params</a>) -> None</code>
376+
- <code title="put /notifications/{id}/content">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">put_content</a>(id, \*\*<a href="src/courier/types/notification_put_content_params.py">params</a>) -> <a href="./src/courier/types/notification_content_mutation_response.py">NotificationContentMutationResponse</a></code>
377+
- <code title="put /notifications/{id}/elements/{elementId}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">put_element</a>(element_id, \*, id, \*\*<a href="src/courier/types/notification_put_element_params.py">params</a>) -> <a href="./src/courier/types/notification_content_mutation_response.py">NotificationContentMutationResponse</a></code>
378+
- <code title="put /notifications/{id}/locales/{localeId}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">put_locale</a>(locale_id, \*, id, \*\*<a href="src/courier/types/notification_put_locale_params.py">params</a>) -> <a href="./src/courier/types/notification_content_mutation_response.py">NotificationContentMutationResponse</a></code>
368379
- <code title="put /notifications/{id}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">replace</a>(id, \*\*<a href="src/courier/types/notification_replace_params.py">params</a>) -> <a href="./src/courier/types/notification_template_mutation_response.py">NotificationTemplateMutationResponse</a></code>
369-
- <code title="get /notifications/{id}/content">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">retrieve_content</a>(id) -> <a href="./src/courier/types/notification_get_content.py">NotificationGetContent</a></code>
370-
371-
## Draft
372-
373-
Methods:
374-
375-
- <code title="get /notifications/{id}/draft/content">client.notifications.draft.<a href="./src/courier/resources/notifications/draft.py">retrieve_content</a>(id) -> <a href="./src/courier/types/notification_get_content.py">NotificationGetContent</a></code>
380+
- <code title="get /notifications/{id}/content">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">retrieve_content</a>(id, \*\*<a href="src/courier/types/notification_retrieve_content_params.py">params</a>) -> <a href="./src/courier/types/notification_retrieve_content_response.py">NotificationRetrieveContentResponse</a></code>
376381

377382
## Checks
378383

src/courier/resources/notifications/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .draft import (
4-
DraftResource,
5-
AsyncDraftResource,
6-
DraftResourceWithRawResponse,
7-
AsyncDraftResourceWithRawResponse,
8-
DraftResourceWithStreamingResponse,
9-
AsyncDraftResourceWithStreamingResponse,
10-
)
113
from .checks import (
124
ChecksResource,
135
AsyncChecksResource,
@@ -26,12 +18,6 @@
2618
)
2719

2820
__all__ = [
29-
"DraftResource",
30-
"AsyncDraftResource",
31-
"DraftResourceWithRawResponse",
32-
"AsyncDraftResourceWithRawResponse",
33-
"DraftResourceWithStreamingResponse",
34-
"AsyncDraftResourceWithStreamingResponse",
3521
"ChecksResource",
3622
"AsyncChecksResource",
3723
"ChecksResourceWithRawResponse",

src/courier/resources/notifications/draft.py

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

0 commit comments

Comments
 (0)