Create standalone browser port of LTX Athena with authenticated native API transport

This commit is contained in:
Mikei386
2026-09-29 17:59:23 +02:00
commit 1333b0c36b
202 changed files with 63054 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import type { ApiErrorsOf } from './api-client'
export type LocalGenerationError = {
status: 'default'
error: {
code: 'LOCAL_GENERATION_ERROR'
message: string
}
}
export type GenerationError = ApiErrorsOf<'generateVideo'> | ApiErrorsOf<'generateImage'> | LocalGenerationError
export function createLocalGenerationError(message: string): LocalGenerationError {
return {
status: 'default',
error: {
code: 'LOCAL_GENERATION_ERROR',
message,
},
}
}