fix(video): transcribe archived videos and show progress (#560)

This commit is contained in:
Yiling-J
2026-12-04 15:37:58 +08:00
committed by GitHub
parent d3899d1257
commit 72a7f68c92
21 changed files with 408 additions and 171 deletions
+10
View File
@@ -12,6 +12,16 @@ import { z } from 'zod'
const route = new Hono<{ Variables: { user: User } }>()
.get('/transcription/languages', async (c) => c.json(await transcriptService.listLanguages()))
.get('/projects/:projectId/transcription-status', async (c) => {
const projectId = c.req.param('projectId')
await authzService.hasPermission({
user: c.get('user'),
permission: Permission.Edit,
type: ResourceType.Project,
id: projectId,
})
return c.json({ assetIds: await transcriptService.listActiveAssetIds(projectId) })
})
.get('/files/:fileId/transcripts', async (c) => {
const assetId = c.req.param('fileId')
await authzService.hasPermission({