Skip to content

Sync sdk/openapi.json with provable.io v1.15.0 - #4

Merged
tacyarg merged 2 commits into
masterfrom
spec-v1.15.0
Nov 10, 2026
Merged

tacyarg merged 2 commits into
masterfrom
spec-v1.15.0

Conversation

@tacyarg

@tacyarg tacyarg commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Copies the live spec from provable.io v1.15.0 and keeps both SDKs in parity with it:

  • the new /o/stream feed: streamPublicDraws() (TS) and stream_public_draws() (Python);
  • /api/commits, never added when it shipped: listSealedCommits() and list_sealed_commits();
  • /api/batch and /api/stream now need an API key (anonymous calls get 401 account_required); anonymous draws are capped at 10 a minute and 100 a day per IP;
  • the Python client follows redirects, so get_outcome_permalink gets the outcome instead of the API host's 301 to provable.io.

Generated files are refreshed. Local: TS 6/6, Python 9/9. Live: both stream methods received a fresh draw through api.provable.io. Nothing publishes until a tag.

Jacob Dent added 2 commits November 9, 2026 18:27
Adds /o/stream (live feed of public draws) and marks /api/batch and
/api/stream as needing an API key; anonymous draw limits are described in
the spec intro.
Both SDKs gain streamPublicDraws / stream_public_draws (every public draw as
it is made) and listSealedCommits / list_sealed_commits (the public
/api/commits lookup, never added when that route shipped). The SSE parsing
moves into one private helper per SDK; streamOutcomes behaves as before.

The Python client now follows redirects: the API host answers /o/* with a 301
to provable.io, so get_outcome_permalink returned the redirect instead of the
outcome. httpx drops Authorization on a cross-host redirect.

Generated openapi-types.ts, models.py and operations.py are refreshed. Checked
live: both stream methods receive a fresh draw through api.provable.io.
@tacyarg
tacyarg merged commit 904494f into master Nov 10, 2026
6 checks passed
@tacyarg
tacyarg deleted the spec-v1.15.0 branch November 10, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant