Skip to content

feat(api): cross-client previews endpoints - #208

Merged
mikemilla merged 1 commit into
mainfrom
codegen
Sep 24, 2026
Merged

mikemilla merged 1 commit into
mainfrom
codegen

Conversation

@mikemilla

Copy link
Copy Markdown
Contributor

Regenerated SDK.

What changed in the API

9 endpoint(s) added

  • DELETE /previews/device-sets/{deviceSetId} — Archive Device Set
  • GET /notifications/{id}/previews/runs — List Preview Runs
  • GET /notifications/{id}/previews/runs/{previewRunId} — Get Preview Run
  • GET /previews/device-sets — List Device Sets
  • GET /previews/device-sets/{deviceSetId} — Get Device Set
  • GET /previews/devices — List Preview Devices
  • POST /notifications/{id}/previews/runs — Create Preview Run
  • POST /previews/device-sets — Create Device Set
  • PUT /previews/device-sets/{deviceSetId} — Update Device Set

What changed in this SDK

33 files changed, 2693 insertions(+), 3 deletions(-)

Files
 .stats.yml                                                      |   2 +-
 api.md                                                          |  49 +++
 pyproject.toml                                                  |   2 +-
 src/courier/_client.py                                          |  56 +++
 src/courier/_version.py                                         |   2 +-
 src/courier/resources/__init__.py                               |  14 +
 src/courier/resources/notifications/__init__.py                 |  14 +
 src/courier/resources/notifications/notifications.py            |  32 ++
 src/courier/resources/notifications/previews/__init__.py        |  33 ++
 src/courier/resources/notifications/previews/previews.py        | 120 ++++++
 src/courier/resources/notifications/previews/runs.py            | 519 ++++++++++++++++++++++++
 src/courier/resources/previews.py                               | 585 ++++++++++++++++++++++++++++
 src/courier/types/__init__.py                                   |   6 +
 src/courier/types/device_set.py                                 |  33 ++
 src/courier/types/device_set_list_response.py                   |  14 +
 src/courier/types/notifications/previews/__init__.py            |  14 +
 src/courier/types/notifications/previews/preview_result.py      |  47 +++
 .../notifications/previews/preview_result_failure_reason.py     |   7 +
 .../types/notifications/previews/preview_result_status.py       |   7 +
 src/courier/types/notifications/previews/preview_run.py         |  48 +++
 src/courier/types/notifications/previews/preview_run_detail.py  |  52 +++
 .../types/notifications/previews/preview_run_failure_reason.py  |   9 +
 .../types/notifications/previews/preview_run_list_response.py   |  17 +
 src/courier/types/notifications/previews/preview_run_status.py  |   7 +
 src/courier/types/notifications/previews/run_create_params.py   |  48 +++
 src/courier/types/notifications/previews/run_list_params.py     |  16 +
 src/courier/types/preview_create_device_set_params.py           |  17 +
 src/courier/types/preview_device.py                             |  62 +++
 src/courier/types/preview_device_list_response.py               |  14 +
 src/courier/types/preview_update_device_set_params.py           |  17 +
 tests/api_resources/notifications/previews/__init__.py          |   1 +
 tests/api_resources/notifications/previews/test_runs.py         | 350 +++++++++++++++++
 tests/api_resources/test_previews.py                            | 482 +++++++++++++++++++++++
 33 files changed, 2693 insertions(+), 3 deletions(-)

This branch is rebuilt from main on every spec change and force-pushed, so it always reflects the latest generated output. Hand-written files in this repository are left untouched; anything under the generated surface is replaced on the next update, so fix the specification rather than editing here.

This PR is squash-merged automatically by the api-spec merge job, which then lets release-please open this SDK's release PR. Every type in release-please-config.json except test and ci is a non-hidden changelog section, so docs and chore cut a patch just as feat/fix do.

@mikemilla
mikemilla merged commit 8b7be91 into main Sep 24, 2026
3 checks passed
@mikemilla
mikemilla deleted the codegen branch September 24, 2026 19:56
@mikemilla mikemilla mentioned this pull request Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants