feat(domain): UploadErrTooLong and UploadErrIncomplete -- the two ways a file's claimed length can be wrong (review F2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -226,6 +226,14 @@ const (
|
|||||||
UploadErrInterrupted UploadErrorKind = "interrupted"
|
UploadErrInterrupted UploadErrorKind = "interrupted"
|
||||||
// UploadErrTranscriptionFailed: every configured transcription endpoint failed.
|
// UploadErrTranscriptionFailed: every configured transcription endpoint failed.
|
||||||
UploadErrTranscriptionFailed UploadErrorKind = "transcription_failed"
|
UploadErrTranscriptionFailed UploadErrorKind = "transcription_failed"
|
||||||
|
// UploadErrTooLong: the audio, once converted, is longer than the limit. The limit is
|
||||||
|
// first checked against the file's header, which a hostile or damaged file can lie
|
||||||
|
// about (ADR-035 review).
|
||||||
|
UploadErrTooLong UploadErrorKind = "audio_too_long"
|
||||||
|
// UploadErrIncomplete: the audio, once converted, ends far earlier than the file
|
||||||
|
// claimed: a truncated recording that would otherwise give a partial transcript with
|
||||||
|
// no warning.
|
||||||
|
UploadErrIncomplete UploadErrorKind = "audio_incomplete"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UploadedTranscript is a user's PRIVATE transcript of audio they uploaded. It is
|
// UploadedTranscript is a user's PRIVATE transcript of audio they uploaded. It is
|
||||||
|
|||||||
Reference in New Issue
Block a user