-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
150 lines (132 loc) · 3.04 KB
/
index.d.ts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
interface Season {
id: string;
title: string;
description: string;
status: SeasonStatus;
metadata: SeasonMetadata;
createdAt: number;
updatedAt: number;
}
interface Story {
id: string;
createdAt: string;
title: string;
season_id: string;
episode_number: number;
summary: string;
audio_url: string | null;
video_url: string | null;
status: "draft" | "published";
published_at: string | null;
updatedAt: string;
}
interface VideoSecrets {
OPENAI_API_KEY: string;
CLAUDE_API_KEY: string;
ELEVEN_API_KEY: string;
NARRATOR_VOICE_ID: string;
REDPILL_VOICE_ID: string;
WHITEPILL_VOICE_ID: string;
BLUEPILL_VOICE_ID: string;
BLACKPILL_VOICE_ID: string;
DEFAULT_VOICE_ID: string;
SOCIAL_DATA_API_KEY: string;
}
interface Transcript {
agentId: string;
text: string;
}
interface StoryTranscript extends Transcript {
order: number;
componentOrder: number;
}
interface StoryTranscriptWithAgent extends StoryTranscript {
agent: Agent;
}
interface Agent {
name: string;
description: string;
personality: {
traits?: string[];
quirks?: string[];
values?: string[];
flaws?: string[];
};
knowledge: {
expertise?: string[];
interests?: string[];
background?: string[];
};
lore: {
backstory?: string[];
relationships?: {
agentId: string;
type: string;
description: string;
}[];
affiliations?: string[];
};
goals: {
longTerm?: string[];
shortTerm?: string[];
motivations?: string[];
};
}
interface StoryComponent {
id: string;
episodeId: string;
description: string;
title: string;
type: "scene" | "transition" | "montage";
characters: string[];
location?: StoryLocation;
timeframe?: string;
order: number;
}
interface StoryLocation {
id: string;
name: string;
description: string;
type: "city" | "country" | "region" | "indoor" | "outdoor" | "vehicle";
}
interface StoryComponentWithAgent extends StoryComponent {
agents: Agent[];
}
interface MemeCoinTranscript extends Transcript {
tweet_id?: string;
}
interface MemeCoinTranscriptResponse {
transcript: MemeCoinTranscript[];
ticker: string;
tradingViewSymbol: string;
currentPrice: number;
marketCap: number;
percentageChange: number;
}
interface Tweet {
full_text: string;
user: {
screen_name: string;
followers_count: number;
};
id_str: string;
}
interface TradingViewSymbol {
symbol: string;
description: string;
type: string;
exchange: string;
}
interface TradingViewResponse {
symbols: TradingViewSymbol[];
}
interface MarketData {
price: number;
volume: number;
marketCap: number;
change24h: number;
symbol: string;
}
type AgentId = "bluepill" | "redpill" | "whitepill" | "blackpill" | "narrator";
type VideoType = "story" | "meme";
type Music = "wii" | "none" | "duck" | "monkey";