Repository navigation
Add recording, episode version, and replay options to streaming - #199
Merged
Merged
Conversation
download_data and iter_messages can stream by recording_id or recording_key, pin an episode_version, and use replay_policy with replay_lookback_seconds; download_data can also include attachments. download_recording_data sends recordingKey instead of the deprecated key and accepts topics, a time range, compression, and replay options. Streaming by recording no longer requires start and end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012yf4xphn6VfthBaKLpn2Xu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012yf4xphn6VfthBaKLpn2Xu
Reject a recording combined with a session, as the API does, and require start and end when a recording is combined with a device. download_recording_data builds its request with _make_stream_link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012yf4xphn6VfthBaKLpn2Xu
brookfxg
approved these changes
Nov 3, 2026
Merged
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.
Changelog
download_dataanditer_messagescan stream by recording, pin an episode version, and replay the last message per channel beforestart;download_recording_dataaccepts topics, a time range, compression, and replay options.Docs
None
Description
The client couldn't send several public
POST /v1/data/streamfields:download_dataanditer_messagesgainrecording_id,recording_key,episode_version,replay_policy, andreplay_lookback_seconds.download_dataalso gainsinclude_attachments. Streaming by recording no longer requiresstart/end.download_recording_datasendsrecordingKeyinstead of the deprecatedkey, and acceptstopics,start/end,compression_format, and the replay options.All new arguments are optional, so existing calls send the same requests as before (apart from
recordingKey, which the API treats the same askey). The spec'sincludeAttachmentsdescription says it needs a recording ID, but the API also accepts it for session and episode streams, which dataset exports already rely on; the docstring reflects the API's behavior.Validated with black, flake8, pyright, and the test suite, including the
iter_messagestests.Generated by Claude Code