test: 登记 subtitle_write 表、来源枚举与 subtitles 模块
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ef29bd62ce
commit
4b11c2466e
4 files changed
+25
No files matched your search
@@ -120,5 +120,23 @@ export const SubtitleApplyResult = z.object({
|
||||
});
|
||||
export type SubtitleApplyResult = z.infer<typeof SubtitleApplyResult>;
|
||||
|
||||
/** 表 subtitle_write 的行(0064) */
|
||||
export const SubtitleWriteRow = z.object({
|
||||
id: Id,
|
||||
mediaEntityId: Id,
|
||||
videoLocationId: Id.nullable(),
|
||||
subtitleAssetId: Id.nullable(),
|
||||
libraryRootId: Id,
|
||||
relativePath: z.string(),
|
||||
language: z.string(),
|
||||
source: SubtitleSource,
|
||||
sourceName: z.string(),
|
||||
sourceRef: z.string().nullable(),
|
||||
backupPath: z.string().nullable(),
|
||||
actor: z.string().nullable(),
|
||||
createdAt: Timestamp,
|
||||
undoneAt: Timestamp.nullable(),
|
||||
});
|
||||
|
||||
export const SubtitleWritesQuery = z.object({ entityId: Id });
|
||||
export const SubtitleWritesResponse = z.object({ items: z.array(SubtitleWriteView) });
|
||||
Reference in new issue
Block a user