-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.ts
More file actions
49 lines (42 loc) · 898 Bytes
/
types.ts
File metadata and controls
49 lines (42 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* @license
* SPDX-License-Identifier: Apache-2.0
*/
export enum GenerationStatus {
IDLE = 'IDLE',
LOADING = 'LOADING',
SUCCESS = 'SUCCESS',
ERROR = 'ERROR'
}
export interface GeneratedSvg {
id: string;
content: string;
prompt: string;
timestamp: number;
}
export interface ApiError {
message: string;
details?: string;
}
export type ModelProvider = 'google' | 'openrouter';
export interface ModelConfig {
provider: ModelProvider;
model: string;
apiKey?: string; // Optional for Google (uses env), required for OpenRouter
}
export interface GenerationOptions {
prompt: string;
image?: string;
color: string;
theme: string;
style: string;
ratio: string;
complexity: string;
animated: boolean;
stroke: string;
negativePrompt: string;
viewpoint?: string;
mood?: string;
designType?: string;
modelConfig: ModelConfig; // Added config
}