mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
feat(video): add delete video interfaces and thumbnail/fileId fields
Add new interfaces for handling video deletion operations and optional thumbnail/fileId fields to VideoBase interface
This commit is contained in:
parent
c9c859731f
commit
6c097e6733
@ -9,8 +9,10 @@ export type VideoStatus = 'queued' | 'in_progress' | 'completed' | 'downloading'
|
||||
interface VideoBase {
|
||||
readonly id: string
|
||||
readonly type: VideoEndpointType
|
||||
name: string
|
||||
readonly providerId: string
|
||||
name: string
|
||||
thumbnail?: string | null
|
||||
fileId?: string
|
||||
prompt: string
|
||||
/**
|
||||
* Represents the possible states of a video generation or download process.
|
||||
@ -162,3 +164,29 @@ export interface OpenAIRetrieveVideoContentResult extends RetrieveVideoContentBa
|
||||
}
|
||||
|
||||
export type RetrieveVideoContentResult = OpenAIRetrieveVideoContentResult
|
||||
|
||||
// Delete Video
|
||||
export interface DeleteVideoBaseParams {
|
||||
type: VideoEndpointType
|
||||
provider: Provider
|
||||
}
|
||||
|
||||
export interface OpenAIDeleteVideoParams extends DeleteVideoBaseParams {
|
||||
type: 'openai'
|
||||
videoId: string
|
||||
options?: OpenAI.RequestOptions
|
||||
}
|
||||
|
||||
export type DeleteVideoParams = OpenAIDeleteVideoParams
|
||||
|
||||
interface DeleteVideoBaseResult {
|
||||
type: VideoEndpointType
|
||||
result: unknown
|
||||
}
|
||||
|
||||
export interface OpenAIDeleteVideoResult extends DeleteVideoBaseResult {
|
||||
type: 'openai'
|
||||
result: OpenAI.Videos.VideoDeleteResponse
|
||||
}
|
||||
|
||||
export type DeleteVideoResult = OpenAIDeleteVideoResult
|
||||
|
||||
Loading…
Reference in New Issue
Block a user