Repository navigation
Samples, list defaults, organization paging and batch estimates match the API - #34
Merged
Merged
Conversation
… the API Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se for daily ceilings 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 #34 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one.
Add
--timeoutto stop waiting after a while, for example--timeout 30m; it then exits with status 8.Events carry no details; read the pull request to see what changed.
It misses changes made before it starts, so read the pull request once it is running.
See
gh event listen --helpfor other event types.Event subscriptions are in preview and may not be enabled for your account.
What a partner developer would have hit, and what changes:
Contract samples in milliseconds and with
attribution.required: false.tests/fixtures/contracts.jsonsaidtrial_ends_at, the fueling profile'supdated_atand webhookcreated_atwere milliseconds and that attribution was optional. The API sends seconds andrequired: trueon every partner answer. The samples now come from SaturdayInc/fuel-backend#2418 (stamped with its branch commit 5ff56d7; the nextscripts/sdk-contracts-sync.sh --prafter it lands restamps them with no content change).activities.listpaged at 20. It always sentlimit=20, where the docs, the Node SDK and the API's default (pkg/api/activities.go) give 50. It now sends nolimitunless you pass one.organizations.list()could not page. It took no arguments, so an account with more than 50 organizations could not get past the first page. It now takeslimitandcursor(pkg/api/organizations.go: default 50, 1 to 200).batch_calculatecould not ask for an estimate.batch_calculate(scenarios, estimate_only=True)sendsestimate_only, which the API takes (pkg/api/batch.go).The create docstring said an identifier was required. A single create takes none (
pkg/api/athletes.go); only abatch_createitem needs one (missing_identifier,pkg/api/batch.go). The docstrings now say both.coach.register_webhooksaid an emptyeventsmeant every coach event. It means the two concern events (pkg/coachwebhooknormalizeEvents);["*"]is every event. The docstring says so. The request is unchanged.Overlaps: #33 (Muse's security PR) touches
client.pytoo; whichever lands second merges the other.Tests:
pytest -q:231 passed, 2 skipped(newtests/test_request_options.py;tests/test_contracts.pynow expects no default activitieslimit). Live suite against fuel-app-test (partner-api at fuel-backend 13ca2e5d3):2 passed in 157.39s; two earlier runs failed on "Server disconnected without sending a response" from the test service at an athlete create, and main's checkout passed between them.No CHANGELOG line here: INTEGRATIONS writes the 0.9.0 entries. Unlabeled.
Update (2026-11-22, after fuel-backend #2424).
ErrorCatalogEntry["retryable"]andmeta.errors()say what the catalog'sretryablemeans: retry the same call automatically afterRetry-After,falsefor the daily ceilings. pytest:231 passed, 2 skipped.🤖 Generated with Claude Code