generated from fahricansecer/boilerplate-fe
feat: Implement text-to-video and fix hydration UI issues
This commit is contained in:
@@ -271,6 +271,16 @@ export interface CreateFromDocumentPayload {
|
||||
targetDuration?: number;
|
||||
}
|
||||
|
||||
export interface CreateFromTextPayload {
|
||||
text: string;
|
||||
title?: string;
|
||||
language?: string;
|
||||
aspectRatio?: string;
|
||||
videoStyle?: string;
|
||||
cinematicReference?: string;
|
||||
targetDuration?: number;
|
||||
}
|
||||
|
||||
export interface ExtractDocumentTopicsPayload {
|
||||
file: File;
|
||||
}
|
||||
@@ -378,6 +388,9 @@ export const projectsApi = {
|
||||
}).then((r) => r.data);
|
||||
},
|
||||
|
||||
createFromText: (data: CreateFromTextPayload) =>
|
||||
apiClient.post<Project>('/projects/from-text', data).then((r) => r.data),
|
||||
|
||||
extractDocumentTopics: (data: ExtractDocumentTopicsPayload) => {
|
||||
const formData = new FormData();
|
||||
formData.append('file', data.file);
|
||||
|
||||
Reference in New Issue
Block a user