Repository navigation
0.8.0: match the partner API after this week's fixes - #28
Merged
Merged
Conversation
The sync route takes intervals.icu tokens only and answers {result, request_id};
external_id is unique (409 athlete_exists, ConflictError); trial bounds and the
trial's length on GET /v1/partner; fit and compare spend a trial call
(plan_basis.source trial_allowance); simulated subscribers are bounded on the
test environment (simulated_subscriber_daily_limit_reached); a PATCH that
changes the session removes the stored prescription; prep refuses products
beside legs; erase's scope and its 503; discovery's get_a_key in place of the
key purchase. README: a key comes with any paid Saturday plan. Recordings
from a local partner-api built from fuel-backend main with #2324, #2326,
#2328, #2331 and #2330 merged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # tests/fixtures/contracts.json
…connected TrialMetadata.trial_answers_used_up and rate_limits.trial_answers (the exact answers one athlete's trial gives in all); trial_note and plan_basis trial_allowance cover the new bound. integrations.disconnect documents 404 integration_not_found. Recordings made again against the partner API on the test environment (7224bc165161). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #28 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
--timeoutto stop waiting after a while, for example--timeout 30m; it then exits with status 8.gh event listen --helpfor other event types.Brings 0.8.0 (unreleased, version unchanged) up to the partner API as it will stand once fuel-backend #2324, #2326, #2328, #2331 and #2330 are live, on top of what main gained since the last SDK round (#2206, #2217, #2325, #2327).
What a partner sees
integrations.synctakesintervals_icuonly; Strava and TrainingPeaks tokens answerinvalid_provider. The answer is{ result, request_id };date_rangeisstart/end;sync_typesis sent for you.disconnectis typed.external_idis unique: a taken one throwsConflictError(409athlete_exists) withathlete_id; batch items carryathlete_id.trial_start_deferred,trial_profile_limit_reached,trial_note;rate_limits.trial_starts_per_day,trial_profiles_per_athlete,trial_days(nothing in the package names a number of days). Fit and compare spend a trial call (plan_basis.sourcetrial_allowance). Test environment:simulated_limit_reached,simulation_note,simulation_allowance, andsimulated_subscriber_daily_limit_reachedas a daily ceiling.productsbesidelegs; whateraseremoves and its 503provider_erasure_incomplete;plan_inactiveandresource_limit_exceededon 403.get_a_keyreplaces the signup and price lines. README: a key comes with any paid Saturday plan, from saturday.fit/api, and covers 10 athletes; for more, write to api@saturday.fit. No price anywhere.Tests
test/fixtures/live.jsonis that recording; it holds no price. fuel-backend'sTestRecordedResponsesMatchOpenAPIpasses on the merged tree with both recordings.pytest: 224 passed, 2 skipped (live).mypy saturday tests/typecheck --check-untyped-defs --warn-unused-ignoresclean (fixed a keyword clash inRateLimitError.__init__that it flagged on main).Owed before merge: the same suite against the deployed test service once those PRs' landing is on fuel-app-test, re-recording
live.jsonfrom it. Commands in adev.claude/plans/2026-11-14-integrations-moat/build/sdk-docs-sync.md.Publishing stays a GitHub release; this merge publishes nothing.
Updated 2026-11-19 (packages-080): main merged in (#37/#38 CI and contract samples; samples regenerated from fuel-backend 7224bc165161, unchanged). New:
TrialMetadata["trial_answers_used_up"]andPartnerRateLimits["trial_answers"](fuel-backend #2339),trial_allowanceandtrial_notedocs cover the new bound,integrations.disconnectdocumentsNotFoundErrorintegration_not_found(#2337); README and CHANGELOG say so, with no number of trial days. pytest 224 passed, 2 skipped; mypy clean; live 2/2. Live suite run against partner-api on fuel-app-test (7224bc165161) with a throwaway test key, recordings made again; fuel-backend #2345 carries them intoapi/testdata/recorded_responses.json.🤖 Generated with Claude Code