Skip to content

feat(voice): add allow_download to share request/state#29

Merged
wavekat-eason merged 1 commit into
mainfrom
feat/share-allow-download
Jun 24, 2026
Merged

feat(voice): add allow_download to share request/state#29
wavekat-eason merged 1 commit into
mainfrom
feat/share-allow-download

Conversation

@wavekat-eason

Copy link
Copy Markdown
Contributor

Adds the fourth per-share visibility axis to the share types: whether a
viewer may download the recording's WAV, distinct from whether they
may hear it.

  • ShareRecordingRequest.allow_download: Option<bool> — omitted when
    unset, so the platform applies its privacy-forward default (off). Only
    meaningful while show_audio is true; the platform forces it off
    otherwise.
  • ShareRecordingResponse.allow_download / ShareStateResponse.allow_download
    — the effective permission (show_audio && allow_download), so never
    true when the audio is hidden. Absent on a platform predating the
    control (assume off).

All additive and skip_serializing_if = "Option::is_none", matching the
existing show_audio / show_transcript / party_masking controls.

Tests: extended the share serialize/parse cases for the new field (off
the wire when unset, camelCase allowDownload when set, parsed back on
the state read). cargo test / clippy / fmt --check clean.

🤖 Generated with Claude Code

Mirror the platform's new fourth share-visibility axis: whether a viewer
may download the recording's WAV, distinct from whether they may hear it.
Adds `allow_download: Option<bool>` to ShareRecordingRequest,
ShareRecordingResponse, and ShareStateResponse — omitted when unset, so
the platform applies its privacy-forward default (off).

On the response side the field is the *effective* permission
(`show_audio && allow_download`), so it's never true when the audio is
hidden. A platform predating the control omits it; assume off.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011v4mQUm4uU4kwf6jGfNptW
@wavekat-eason wavekat-eason merged commit b282317 into main Jun 24, 2026
1 check passed
@wavekat-eason wavekat-eason deleted the feat/share-allow-download branch June 24, 2026 10:01
@github-actions github-actions Bot mentioned this pull request Jun 24, 2026
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