创作记录-管理后台完成
This commit is contained in:
@@ -225,3 +225,87 @@ export interface AdminGenerationRecord {
|
||||
imageProportion?: string,
|
||||
imagePx?: string,
|
||||
}
|
||||
|
||||
export type GenerationAITaskStatus = 'pending' | 'generating' | 'completed' | 'failed' | string;
|
||||
|
||||
export interface GenerationAIMediaReference {
|
||||
url?: string;
|
||||
type?: string;
|
||||
name?: string;
|
||||
mediaUrl?: string;
|
||||
fileUrl?: string;
|
||||
mediaType?: string;
|
||||
mimeType?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface GenerationAIEngineSnapshot {
|
||||
engineType?: string;
|
||||
id?: string;
|
||||
name?: string;
|
||||
provider?: string;
|
||||
modelName?: string;
|
||||
supportedModels?: string[];
|
||||
defaultSize?: string;
|
||||
selectedSize?: string;
|
||||
selectedProportion?: string;
|
||||
selectedPx?: string;
|
||||
selectedRatio?: string;
|
||||
selectedResolution?: string;
|
||||
selectedDuration?: number;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface GenerationAITaskOut {
|
||||
id: string;
|
||||
sourceType?: 'chat_task' | string;
|
||||
userId?: string | null;
|
||||
userName?: string | null;
|
||||
projectId?: string | null;
|
||||
genType: GenerationAiGenType | string;
|
||||
generationMode?: string | null;
|
||||
pipelineStage?: string | null;
|
||||
status: GenerationAITaskStatus;
|
||||
originalPrompt: string;
|
||||
optimizedPrompt?: string | null;
|
||||
duration?: number | null;
|
||||
aspectRatio?: string | null;
|
||||
resolution?: string | null;
|
||||
imageSize?: string | null;
|
||||
imageProportion?: string | null;
|
||||
imagePx?: string | null;
|
||||
mediaReferences?: GenerationAIMediaReference[] | null;
|
||||
providerTaskId?: string | null;
|
||||
seedanceTaskId?: string | null;
|
||||
remoteResultUrl?: string | null;
|
||||
imageUrl?: string | null;
|
||||
videoUrl?: string | null;
|
||||
videoCoverUrl?: string | null;
|
||||
engineId?: string | null;
|
||||
engineSnapshot?: GenerationAIEngineSnapshot | null;
|
||||
creditsCost: number;
|
||||
textCreditsCost: number;
|
||||
textTokensUsed: number;
|
||||
imageTokensUsed: number;
|
||||
videoTokensUsed: number;
|
||||
retryCount: number;
|
||||
pollCount: number;
|
||||
errorMessage?: string | null;
|
||||
createdAt?: string | null;
|
||||
generatedAt?: string | null;
|
||||
}
|
||||
|
||||
export interface GenerationAITaskListOut {
|
||||
total: number;
|
||||
items: GenerationAITaskOut[];
|
||||
}
|
||||
|
||||
export interface GenerationAITaskQueryParams {
|
||||
genType?: GenerationAiGenType | string;
|
||||
status?: GenerationAITaskStatus;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
userId?: string;
|
||||
userName?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user