Convenience helper: parse a Supabase storage URL (any variant — public,
authenticated, or sign) into { bucket, path } and mint a signed
download URL for it in one call.
Consolidates a pattern we previously duplicated across the generate-note
mutation and the get-playback-url query. Both callers just had a file URL
from our DB and needed a short-lived download URL back.
Convenience helper: parse a Supabase storage URL (any variant — public, authenticated, or sign) into
{ bucket, path }and mint a signed download URL for it in one call.Consolidates a pattern we previously duplicated across the generate-note mutation and the get-playback-url query. Both callers just had a file URL from our DB and needed a short-lived download URL back.