-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
891 lines (777 loc) · 20.5 KB
/
types.ts
File metadata and controls
891 lines (777 loc) · 20.5 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
// General
export interface EpisodesInfo {
sub: number;
dub: number;
}
export interface BaseAnime {
id: string;
name: string;
poster: string;
type?: string;
episodes?: EpisodesInfo;
isAdult?: boolean; // Added for 18+ content
}
export interface RankedAnime extends BaseAnime {
rank: number;
}
export interface DetailedAnime extends BaseAnime {
jname?: string;
duration?: string;
rating?: string;
}
// Home Page
export interface SpotlightAnime extends DetailedAnime {
description: string;
rank: number;
otherInfo: string[];
}
export interface TopAiringAnimeHome extends DetailedAnime {
// jname is already in DetailedAnime
}
export interface ScheduledAnimeToday { // For LType today.schedule
id: string;
title: string;
jname?: string; // japanese_title
time: string; // release time
episode?: number; // episode_no
poster?: string; // Not in LType schedule, but good for display consistency if available elsewhere
}
export interface HomePageData {
genres: string[];
latestEpisodeAnimes: BaseAnime[];
spotlightAnimes: SpotlightAnime[];
top10Animes: {
today: RankedAnime[];
week: RankedAnime[];
month: RankedAnime[];
};
topAiringAnimes: TopAiringAnimeHome[];
topUpcomingAnimes: DetailedAnime[];
trendingAnimes: RankedAnime[];
mostPopularAnimes: BaseAnime[];
mostFavoriteAnimes: BaseAnime[];
latestCompletedAnimes: BaseAnime[];
scheduledAnimesToday?: ScheduledAnimeToday[]; // Added for LType
}
// A-Z List
export interface AZListAnime extends DetailedAnime {}
export interface AZListData {
sortOption: string;
animes: AZListAnime[];
totalPages: number;
currentPage: number;
hasNextPage: boolean;
}
// Qtip Info
export interface QtipAnimeInfo {
id: string;
name: string;
malscore: string;
quality: string;
episodes: EpisodesInfo;
type: string;
description: string;
jname: string;
synonyms: string;
aired: string;
status: string;
genres: string[];
isAdult?: boolean; // Added for 18+ content
}
export interface QtipData {
anime: QtipAnimeInfo;
}
// Anime About Info
export interface AnimeInfoStats {
rating: string;
quality: string;
episodes: EpisodesInfo;
type: string;
duration: string;
}
export interface PromotionalVideo {
title?: string;
source?: string;
thumbnail?: string;
}
export interface CharacterVoiceActorPair {
character: {
id: string;
poster: string;
name: string;
cast: string;
};
voiceActor: {
id: string;
poster: string;
name: string;
cast: string;
};
}
export interface AnimeInfo extends BaseAnime { // Ensure AnimeInfo also conforms to BaseAnime if poster/name/id is directly on it
description: string;
stats: AnimeInfoStats;
promotionalVideos: PromotionalVideo[];
characterVoiceActor: CharacterVoiceActorPair[];
jname?: string;
ltypeDataId?: number; // Added for LType numeric ID for megaplay.buzz embed
}
export interface MoreAnimeInfo {
aired: string;
genres: string[];
status: string;
studios: string;
duration: string;
[key: string]: any; // For other dynamic properties
}
export interface AnimeDetail {
info: AnimeInfo;
moreInfo: MoreAnimeInfo;
}
export interface Season extends BaseAnime { // Seasons are also anime-like items
title: string; // Specific to season
isCurrent: boolean;
}
export interface AnimeAboutData {
anime: AnimeDetail;
mostPopularAnimes: BaseAnime[];
recommendedAnimes: DetailedAnime[];
relatedAnimes: DetailedAnime[];
seasons: Season[];
}
// Search Results
export interface SearchAnime extends DetailedAnime {}
export interface SearchFilters {
[filter_name: string]: string[];
}
export interface SearchData {
animes: SearchAnime[];
mostPopularAnimes: BaseAnime[];
currentPage: number;
totalPages: number;
hasNextPage: boolean;
searchQuery: string;
searchFilters: SearchFilters;
}
// Search Suggestions
export interface SuggestionAnime {
id: string;
name: string;
poster: string;
jname: string;
moreInfo: string[];
isAdult?: boolean; // Added for 18+ content
}
export interface SuggestionData {
suggestions: SuggestionAnime[];
}
// Producer Animes
export interface ProducerData {
producerName: string;
animes: DetailedAnime[];
top10Animes: {
today: RankedAnime[];
week: RankedAnime[];
month: RankedAnime[];
};
topAiringAnimes: BaseAnime[];
currentPage: number;
totalPages: number;
hasNextPage: boolean;
}
// Genre Animes
export interface GenreData {
genreName: string;
animes: DetailedAnime[];
genres: string[];
topAiringAnimes: BaseAnime[];
currentPage: number;
totalPages: number;
hasNextPage: boolean;
}
// Category Animes
export interface CategoryData {
category: string;
animes: DetailedAnime[];
genres: string[];
top10Animes?: {
today: RankedAnime[];
week: RankedAnime[];
month: RankedAnime[];
};
currentPage: number;
totalPages: number;
hasNextPage: boolean;
}
// Estimated Schedules
export interface ScheduledAnime {
id: string;
time: string;
name: string;
jname: string;
airingTimestamp: number;
secondsUntilAiring: number;
isAdult?: boolean; // Added for 18+ content
}
export interface ScheduleData {
scheduledAnimes: ScheduledAnime[];
}
// Anime Episodes
export interface Episode {
number: number;
title: string;
episodeId: string; // For HiAnime: episode_id. For LType: constructed as `${ltypeAnimeId}$${ltypeEpisodeDataId}`
isFiller: boolean;
ltypeNumericEpisodeId?: number; // Specific numeric ID for LType episodes (ep.data_id or parsed from ep.id)
}
export interface EpisodesData {
totalEpisodes: number;
episodes: Episode[];
}
// Next Episode Schedule
export interface NextEpisodeScheduleData {
airingISOTimestamp: string | null;
airingTimestamp: number | null;
secondsUntilAiring: number | null;
}
// Episode Servers
export interface Server {
serverId: number | string; // Can be string for LType if serverName is used as ID
serverName: string;
}
export interface EpisodeServersData {
episodeId: string; // The original episodeId passed to fetch servers
episodeNo: number;
sub: Server[];
dub: Server[];
raw: Server[];
}
// Episode Streaming Links
export interface Source {
url: string;
isM3U8: boolean;
quality?: string; // e.g., "1080p", "720p", "default", "auto"
}
export interface Subtitle {
lang: string; // e.g., "English", "Spanish"
url: string;
kind?: 'subtitles' | 'captions'; // Optional: usually 'subtitles'
}
export interface ApiTrack {
file: string;
lang: string;
kind: 'captions' | 'subtitles' | string;
default?: boolean;
}
export interface IntroTimestamp {
start: number;
end: number;
}
export interface EpisodeSourcesData {
headers: {
Referer?: string;
"User-Agent": string;
[key: string]: string;
};
sources: Source[];
subtitles: Subtitle[];
tracks?: ApiTrack[];
intro?: IntroTimestamp;
outro?: IntroTimestamp;
anilistID: number | null;
malID: number | null;
}
// General API Response Wrapper for HiAnime
export interface ApiResponse<T> {
success: boolean;
data: T;
message?: string;
}
// General API Response Wrapper for LTypeAnime
export interface LTypeApiResponse<T> {
success: boolean;
results: T;
message?: string;
}
// App Settings
export type WallpaperType = 'none' | 'particles' | 'stars' | 'snow';
export type ApiProviderType = 'hianime' | 'ltype';
export interface AppSettings {
wallpaper: WallpaperType;
theme: string;
selectedApi: ApiProviderType;
apiSelectionCompleted: boolean;
}
// Custom Video Player Types
export type SubtitleFontFamily = 'Poppins' | 'Arial' | 'Verdana' | 'Times New Roman' | 'Courier New' | 'Comic Sans MS';
export type SubtitleFontSize = 'Small' | 'Medium' | 'Large' | 'X-Large';
export type SubtitleFontColor = '#FFFFFF' | '#FFFF00' | '#00FFFF' | '#00FF00' | '#FF69B4'; // White, Yellow, Cyan, Green, Pink
export type SubtitleTextShadowStyle = 'none' | 'drop' | 'outlineDark' | 'outlineLight' | 'enhancedDark' | 'glowPurple';
export type VideoAspectRatio = 'contain' | 'cover' | 'fill';
export interface SubtitleSettings {
enabled: boolean;
fontFamily: SubtitleFontFamily;
fontSize: SubtitleFontSize;
fontColor: SubtitleFontColor;
textShadowStyle: SubtitleTextShadowStyle;
backgroundOpacity: number;
activeTrackUrl: string | null;
}
export interface VideoPlayerSettings extends SubtitleSettings {
autoPlayNext: boolean;
autoSkipIntro: boolean;
aspectRatio: VideoAspectRatio;
}
export interface VideoQuality {
url: string;
qualityLabel: string;
levelIndex?: number;
}
// Watchlist Types
export type WatchlistStatus = 'plan_to_watch' | 'watching' | 'completed' | 'on_hold' | 'dropped';
export const WATCHLIST_STATUSES: WatchlistStatus[] = ['plan_to_watch', 'watching', 'completed', 'on_hold', 'dropped'];
export const UNCATEGORIZED_STATUS_KEY = 'uncategorized' as const;
export type DisplayWatchlistCategory = WatchlistStatus | typeof UNCATEGORIZED_STATUS_KEY;
export const WATCHLIST_DISPLAY_CATEGORIES: DisplayWatchlistCategory[] = [...WATCHLIST_STATUSES, UNCATEGORIZED_STATUS_KEY];
export const getStatusDisplayName = (status: DisplayWatchlistCategory): string => {
switch (status) {
case 'plan_to_watch': return 'Plan to Watch';
case 'watching': return 'Watching';
case 'completed': return 'Completed';
case 'on_hold': return 'On-Hold';
case 'dropped': return 'Dropped';
case 'uncategorized': return 'Uncategorized';
default: return 'Unknown Status';
}
};
export interface AnimeWatchlistActionItem {
id: string;
name: string;
poster: string;
isAdult?: boolean;
}
export interface SupabaseWatchlistItem {
anime_id: string;
status: WatchlistStatus;
}
// Supabase Auth Types
export interface SupabaseUser {
id: string;
email?: string;
}
export interface SupabaseAuthUser {
id: string;
aud: string;
role?: string;
email?: string;
email_confirmed_at?: string;
phone?: string;
phone_confirmed_at?: string;
confirmed_at?: string;
last_sign_in_at?: string;
app_metadata?: {
provider?: string;
providers?: string[];
[key: string]: any;
};
user_metadata?: {
[key: string]: any;
};
identities?: any[];
created_at?: string;
updated_at?: string;
is_anonymous?: boolean;
}
export interface SupabaseSession {
access_token: string;
token_type: string;
expires_in?: number;
expires_at?: number;
refresh_token?: string;
user: SupabaseAuthUser;
}
export interface UserProfile {
id: string;
username: string | null;
avatarurla?: string | null;
bannerurla?: string | null;
watchlist_is_public?: boolean;
email_is_public?: boolean;
tags?: Tag[];
watchStatistics?: UserWatchStatistics;
}
export interface PublicUserProfileInfo {
id: string;
username: string | null;
avatarurla?: string | null;
bannerurla?: string | null;
watchlist_is_public?: boolean;
email_is_public?: boolean;
tags?: Tag[];
watchStatistics?: UserWatchStatistics;
}
// Auth Context Data Type
export interface AuthContextData {
supabase: any | null;
currentUser: SupabaseUser | null;
userProfile: UserProfile | null;
isLoading: boolean;
error: Error | null;
signIn: (email?: string, password?: string) => Promise<{ error: any | null }>;
signUp: (email?: string, password?: string) => Promise<{ data: { user: SupabaseAuthUser | null; session: SupabaseSession | null; }; error: any | null; }>;
signOut: () => Promise<void>;
updateUsername: (newUsername: string) => Promise<{ error: any | null; data?: UserProfile | null }>;
updateUserPassword: (newPassword: string) => Promise<{ error: any | null }>;
updateUserEmail: (newEmail: string) => Promise<{ error: any | null }>;
resendConfirmationEmail: (email: string) => Promise<{ error: any | null }>;
updateUserAvatar: (avatarFile: File) => Promise<{ error: any | null; data?: UserProfile | null }>;
updateUserBanner: (bannerFile: File) => Promise<{ error: any | null; data?: UserProfile | null }>;
updateProfilePrivacySettings: (settings: { watchlist_is_public?: boolean; email_is_public?: boolean }) => Promise<{ error: any | null; data?: UserProfile | null }>;
fetchUserTags: (userId: string) => Promise<Tag[]>;
fetchUserWatchStatistics: (userId: string) => Promise<UserWatchStatistics | null>;
}
// Notification Types
export type NotificationType = 'success' | 'error' | 'info' | 'warning';
export interface NotificationMessage {
id: string;
message: string;
type: NotificationType;
duration?: number;
}
// Anime Reviews / Comments
export interface AnimeReviewSubmission {
user_id: string;
anime_id: string;
rating: number | null;
comment_text: string | null;
}
export interface AnimeReview {
id: number;
created_at: string;
user_id: string;
anime_id: string;
rating: number | null;
comment_text: string | null;
reviewerUsername?: string;
}
// Watch2Gether Types
export interface W2GRoomMember {
id: string;
displayName: string;
isHost: boolean;
}
export interface W2GChatMessage {
id: string;
userId: string;
userDisplayName: string;
text: string;
timestamp: number;
}
export type W2GVideoEventType =
| 'PLAY'
| 'PAUSE'
| 'SEEK'
| 'REQUEST_STATE'
| 'SYNC_STATE'
| 'SOURCE_UPDATE';
export interface W2GVideoEvent {
type: W2GVideoEventType;
currentTime?: number;
isPlaying?: boolean;
senderId?: string;
episodeId?: string;
serverName?: string;
serverCategory?: 'sub' | 'dub' | 'raw';
playbackRate?: number;
hlsLevel?: number;
activeSubtitleTrackUrl?: string | null;
subtitlesEnabled?: boolean;
currentSourceDetails?: {
episodeId: string;
serverName: string;
serverCategory: 'sub' | 'dub' | 'raw';
};
}
// External Watchlist Import Types
export type ExternalWatchlistStatus =
| 'CURRENT'
| 'PLANNING'
| 'COMPLETED'
| 'DROPPED'
| 'PAUSED'
| 'REPEATING'
| '1' | 1
| '2' | 2
| '3' | 3
| '4' | 4
| '6' | 6
| string;
export interface ExternalWatchlistItem {
title: string;
status: ExternalWatchlistStatus;
score?: number;
progress?: number;
}
// Watched Episodes (Supabase user_anime_progress & user_watched_episodes)
export interface UserAnimeProgress {
user_id: string;
anime_id: string;
total_episodes: number;
anime_name: string;
anime_poster: string;
last_watched_timestamp: string;
last_watched_episode_number: number | null;
last_watched_episode_current_time: number | null;
}
export interface UserWatchedEpisode {
user_id: string;
anime_id: string;
episode_number: number;
watched_at: string;
}
export interface WatchedEpisodeInfo {
watchedEpisodeNumbers: number[];
totalEpisodes: number;
poster: string;
name: string;
lastWatchedTimestamp: number;
lastWatchedEpisodeNumber?: number;
nextEpisodeToWatch?: number;
resumeTimestamp?: number;
}
export interface ContinueWatchingItem extends WatchedEpisodeInfo {
animeId: string;
progress: number;
}
// Trace.moe API Types
export interface TraceMoeAnilistInfo {
id: number;
idMal: number | null;
title: {
native?: string | null;
romaji?: string | null;
english?: string | null;
};
synonyms: string[];
isAdult: boolean;
}
export interface TraceMoeResult {
anilist: TraceMoeAnilistInfo;
filename: string;
episode: number | null;
from: number;
to: number;
similarity: number;
video: string;
image: string;
}
export interface TraceMoeResponse {
frameCount: number;
error: string;
result: TraceMoeResult[];
}
// User Tags/Achievements (Supabase table: `tags`)
export type TagRarity = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
export interface Tag {
id: string; // UUID
name: string;
description: string;
rarity: TagRarity;
icon_svg?: string | null;
created_at: string;
}
// User Unlocked Tags (Supabase table: `user_tags`)
export interface UserTag {
id: string; // UUID for the user_tag record itself
user_id: string; // UUID FK to auth.users
tag_id: string; // UUID FK to tags
unlocked_at: string; // TIMESTAMPTZ
tag?: Tag; // For joining
}
export interface UserWatchStatistics {
user_id: string;
total_watch_time_seconds: number;
last_updated_at: string;
}
// Community Tagging System Types
export type CommunityTagType = 'descriptive' | 'warning';
export interface CommunityTag {
id: string; // UUID
name: string; // e.g., "Plot Twist", "Graphic Violence"
description: string | null;
type: CommunityTagType; // 'descriptive' or 'warning'
is_spoiler: boolean;
created_by: string | null; // user_id of creator, null if system-defined
created_at: string;
}
export interface AppliedCommunityTag extends CommunityTag {
applied_count: number; // How many users applied this tag to a specific anime
}
// LType Specific Types (raw from docs, to be mapped)
export interface LTypeTvInfo {
showType?: string;
duration?: string;
releaseDate?: string;
quality?: string;
// Spotlight has 'episodeInfo', others might have direct sub/dub/eps
episodeInfo?: { sub?: number; dub?: number; eps?: number };
sub?: number;
dub?: number;
eps?: number;
}
export interface LTypeSpotlightItem {
id: string;
data_id: number;
poster: string;
title: string;
japanese_title?: string;
description: string;
tvInfo: LTypeTvInfo;
adultContent?: boolean;
}
export interface LTypeTrendingItem {
id: string;
data_id: number;
number: number;
poster: string;
title: string;
japanese_title?: string;
adultContent?: boolean;
}
export interface LTypeScheduledAnimeTodayItem {
id: string;
data_id: number;
title: string;
japanese_title?: string;
releaseDate: string;
time: string;
episode_no: number;
adultContent?: boolean;
}
export interface LTypeHomePageResults {
spotlights: LTypeSpotlightItem[];
trending: LTypeTrendingItem[];
today: { schedule: LTypeScheduledAnimeTodayItem[] };
topAiring: LTypeSpotlightItem[];
mostPopular: LTypeSpotlightItem[];
mostFavorite: LTypeSpotlightItem[];
latestCompleted: LTypeSpotlightItem[];
latestEpisode: LTypeSpotlightItem[];
genres: string[];
}
export interface LTypeTopTenAnimeItem {
id: string;
data_id: number;
number: number;
name: string;
poster: string;
tvInfo: LTypeTvInfo;
adultContent?: boolean;
}
export interface LTypeTopTenResults {
topTen: {
today: LTypeTopTenAnimeItem[];
week: LTypeTopTenAnimeItem[];
month: LTypeTopTenAnimeItem[];
}
}
export interface LTypeCategoryItem {
id: string;
data_id: number;
poster: string;
title: string;
japanese_title?: string;
description?: string;
tvInfo: LTypeTvInfo;
adultContent?: boolean;
}
export interface LTypeCategoryResults {
totalPages: number;
data: LTypeCategoryItem[];
}
// LType API Types for Episode Sources
export interface LTypeEpisodeItem {
episode_no: number;
id: string;
data_id?: number;
title: string;
japanese_title?: string;
filler?: boolean;
}
export interface LTypeEpisodesResults {
totalEpisodes: number;
episodes: LTypeEpisodeItem[];
}
export interface LTypeServerItem {
type: 'sub' | 'dub';
data_id: number;
server_id: number;
serverName: string;
}
// LType API Track (raw from their API for /stream endpoint)
export interface LTypeApiTrack {
file: string;
label: string; // LType uses 'label'
kind: 'captions' | 'subtitles' | string;
default?: boolean;
}
export interface LTypeStreamLink {
id: number;
type: 'sub' | 'dub' | string;
link: {
file: string;
type: 'hls' | 'mp4' | string;
};
tracks: LTypeApiTrack[]; // Use LType specific track type here
intro?: { start: number; end: number };
outro?: { start: number; end: number };
server: string;
}
export interface LTypeStreamServerInfo {
type: 'sub' | 'dub' | string;
data_id: number;
server_id: number;
server_name: string;
}
export interface LTypeStreamResults {
streamingLink: LTypeStreamLink[];
servers: LTypeStreamServerInfo[];
}
// LType Anime Info types
export interface LTypeAnimeInfoData {
adultContent: boolean;
id: string;
data_id: number;
title: string;
japanese_title?: string;
poster: string;
showType: string;
animeInfo: {
Overview?: string;
Japanese?: string;
Synonyms?: string;
Aired?: string;
Premiered?: string;
Duration?: string;
Status?: string;
"MAL Score"?: string;
Genres?: { name: string; url: string }[];
Studios?: string;
Producers?: { name: string; url: string }[];
};
}
export interface LTypeSeasonItem {
id: string;
data_number: number;
data_id: number;
season: string;
title: string;
japanese_title?: string;
season_poster: string;
}
export interface LTypeAnimeDetailResults {
data: LTypeAnimeInfoData;
seasons: LTypeSeasonItem[];
related_data?: any[];
recommended_data?: any[];
}