Skip to content

Commit 3cd5477

Browse files
feat(api): add create/retrieve/archive/publish/replace, event_id param to notifications
1 parent 4d21b50 commit 3cd5477

15 files changed

Lines changed: 1482 additions & 18 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 83
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-19330fca8fa9bbae835ec9d9f83b37b3df364d9b462090b9623bfc9b6eae99c2.yml
3-
openapi_spec_hash: 0bc6889464c9ac2542b4837f569c1837
4-
config_hash: c501fe3838c270e9b44dd5dc4b7fca70
1+
configured_endpoints: 88
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-288ef53fff4d0cc92b3ac14bc1e03dc41c112b55634713adb75158b1c97c4576.yml
3+
openapi_spec_hash: 5c4fed9a1639a6cdfcb5adaf666c9ed6
4+
config_hash: a0ecf9dfbd637db38508b3de2b81aeeb

api.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,28 @@ Methods:
304304
Types:
305305

306306
```python
307-
from courier.types import BaseCheck, Check, NotificationGetContent, NotificationListResponse
307+
from courier.types import (
308+
BaseCheck,
309+
Check,
310+
NotificationGetContent,
311+
NotificationTemplateCreateRequest,
312+
NotificationTemplateGetResponse,
313+
NotificationTemplateMutationResponse,
314+
NotificationTemplatePayload,
315+
NotificationTemplateSummary,
316+
NotificationTemplateUpdateRequest,
317+
NotificationListResponse,
318+
)
308319
```
309320

310321
Methods:
311322

323+
- <code title="post /notifications">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">create</a>(\*\*<a href="src/courier/types/notification_create_params.py">params</a>) -> <a href="./src/courier/types/notification_template_mutation_response.py">NotificationTemplateMutationResponse</a></code>
324+
- <code title="get /notifications/{id}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">retrieve</a>(id, \*\*<a href="src/courier/types/notification_retrieve_params.py">params</a>) -> <a href="./src/courier/types/notification_template_get_response.py">NotificationTemplateGetResponse</a></code>
312325
- <code title="get /notifications">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">list</a>(\*\*<a href="src/courier/types/notification_list_params.py">params</a>) -> <a href="./src/courier/types/notification_list_response.py">NotificationListResponse</a></code>
326+
- <code title="delete /notifications/{id}">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">archive</a>(id) -> None</code>
327+
- <code title="post /notifications/{id}/publish">client.notifications.<a href="./src/courier/resources/notifications/notifications.py">publish</a>(id) -> None</code>
328+
- <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>
313329
- <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>
314330

315331
## Draft

0 commit comments

Comments
 (0)