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
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Changelog

## Unreleased
## 0.10.0

Breaking changes:

- `client.integrations` is gone: `sync`, `status` and `disconnect`, with the types `IntegrationProvider`, `SyncProvider`, `IntegrationStatusDetail`, `IntegrationStatusResponse`, `IntegrationSyncResult`, `IntegrationSyncResponse` and `IntegrationDisconnectResponse`. The API no longer takes another app's intervals.icu access token: intervals.icu's API Terms, in force from 31 December 2026, have each developer use its credentials only for its own app (3.3) and bar sharing or transferring them (4.2, 10.2). Send an athlete's workouts from another platform with `activities.import_activities`. The error codes `invalid_provider`, `integration_not_found`, `sync_error`, `status_error` and `disconnect_error` leave the catalog with them.

Fixed:

- A 200 with an empty or non-JSON body raises `SaturdayError` with code `invalid_response`; it raised `json.JSONDecodeError`.
- Every typed error carries the `Retry-After` value in `retry_after`; 4xx errors always reported `None`.
- An empty path segment (`athletes.get("")`) raises `ValueError` before any request; it requested the collection route.
- Two docstrings named the builtin `PermissionError`; the SDK raises `PermissionDeniedError`.
- The README resource table lists `athletes.create_onboarding_link`.

## 0.9.0

Breaking changes:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "saturday"
version = "0.9.0"
version = "0.10.0"
description = "Official Python SDK for the Saturday Nutrition Intelligence API"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion saturday/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
WebhookTestResponse,
)

SDK_VERSION = "0.9.0"
SDK_VERSION = "0.10.0"
DEFAULT_BASE_URL = "https://api.saturday.fit"
DEFAULT_TIMEOUT = 30.0
DEFAULT_MAX_RETRIES = 3
Expand Down