diff --git a/internal/domain/domain.go b/internal/domain/domain.go index 92df9f7..70daa42 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -226,6 +226,14 @@ const ( UploadErrInterrupted UploadErrorKind = "interrupted" // UploadErrTranscriptionFailed: every configured transcription endpoint 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