feat: add admin accounts and image templates
This commit is contained in:
23
lib/types.ts
23
lib/types.ts
@@ -100,6 +100,28 @@ export type Project = {
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
export type ImageTemplateSettings = {
|
||||
engine?: "jimeng" | "evolink";
|
||||
width?: number;
|
||||
height?: number;
|
||||
forceSingle?: boolean;
|
||||
scale?: number;
|
||||
quality?: "low" | "medium" | "high";
|
||||
};
|
||||
|
||||
export type ImageTemplate = {
|
||||
id: string;
|
||||
ownerId: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
prompt: string;
|
||||
previewImageUrl?: string;
|
||||
settings: ImageTemplateSettings;
|
||||
sortOrder: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
export type AppState = {
|
||||
users: Array<{
|
||||
id: string;
|
||||
@@ -110,6 +132,7 @@ export type AppState = {
|
||||
generationJobs: GenerationJob[];
|
||||
usageEvents: UsageEvent[];
|
||||
projects: Project[];
|
||||
imageTemplates: ImageTemplate[];
|
||||
};
|
||||
|
||||
export type VisualTaskSubmitResponse = {
|
||||
|
||||
Reference in New Issue
Block a user