@crysoline/lib 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/core/anime/123anime/index.d.ts +27 -0
  2. package/dist/core/anime/123anime/index.js +18 -0
  3. package/dist/core/anime/anicore/index.d.ts +27 -0
  4. package/dist/core/anime/anicore/index.js +18 -0
  5. package/dist/core/anime/anicore/types.d.ts +16 -0
  6. package/dist/core/anime/anicore/types.js +1 -0
  7. package/dist/core/anime/anidap/index.d.ts +27 -0
  8. package/dist/core/anime/anidap/index.js +18 -0
  9. package/dist/core/anime/aniliberty/index.d.ts +28 -0
  10. package/dist/core/anime/aniliberty/index.js +19 -0
  11. package/dist/core/anime/aniliberty/types.d.ts +31 -0
  12. package/dist/core/anime/aniliberty/types.js +1 -0
  13. package/dist/core/anime/anime3rb/index.d.ts +28 -0
  14. package/dist/core/anime/anime3rb/index.js +19 -0
  15. package/dist/core/anime/anime3rb/types.d.ts +7 -0
  16. package/dist/core/anime/anime3rb/types.js +1 -0
  17. package/dist/core/anime/animeav1/index.d.ts +28 -0
  18. package/dist/core/anime/animeav1/index.js +19 -0
  19. package/dist/core/anime/animeav1/types.d.ts +17 -0
  20. package/dist/core/anime/animeav1/types.js +1 -0
  21. package/dist/core/anime/animegg/index.d.ts +28 -0
  22. package/dist/core/anime/animegg/index.js +19 -0
  23. package/dist/core/anime/animegg/types.d.ts +14 -0
  24. package/dist/core/anime/animegg/types.js +1 -0
  25. package/dist/core/anime/animeheaven/index.d.ts +27 -0
  26. package/dist/core/anime/animeheaven/index.js +18 -0
  27. package/dist/core/anime/animeheaven/types.d.ts +1 -1
  28. package/dist/core/anime/animekai/index.d.ts +27 -0
  29. package/dist/core/anime/animekai/index.js +18 -0
  30. package/dist/core/anime/animekai/types.d.ts +7 -7
  31. package/dist/core/anime/animelib/index.d.ts +32 -0
  32. package/dist/core/anime/animelib/index.js +19 -0
  33. package/dist/core/anime/animelib/types.d.ts +12 -0
  34. package/dist/core/anime/animelib/types.js +1 -0
  35. package/dist/core/anime/animemeow/index.d.ts +28 -0
  36. package/dist/core/anime/animemeow/index.js +19 -0
  37. package/dist/core/anime/animemeow/types.d.ts +6 -0
  38. package/dist/core/anime/animemeow/types.js +1 -0
  39. package/dist/core/anime/animenexus/index.d.ts +27 -0
  40. package/dist/core/anime/animenexus/index.js +18 -0
  41. package/dist/core/anime/animenexus/types.d.ts +16 -16
  42. package/dist/core/anime/animenix/index.d.ts +28 -0
  43. package/dist/core/anime/animenix/index.js +19 -0
  44. package/dist/core/anime/animenix/types.d.ts +6 -0
  45. package/dist/core/anime/animenix/types.js +1 -0
  46. package/dist/core/anime/animeonsen/index.d.ts +27 -0
  47. package/dist/core/anime/animeonsen/index.js +18 -0
  48. package/dist/core/anime/animeonsen/types.d.ts +8 -8
  49. package/dist/core/anime/animepahe/index.d.ts +27 -0
  50. package/dist/core/anime/animepahe/index.js +18 -0
  51. package/dist/core/anime/animeparadise/index.d.ts +26 -0
  52. package/dist/core/anime/animeparadise/index.js +18 -0
  53. package/dist/core/anime/anizone/index.d.ts +27 -0
  54. package/dist/core/anime/anizone/index.js +18 -0
  55. package/dist/core/anime/anizone/types.d.ts +5 -5
  56. package/dist/core/anime/hianime/index.d.ts +31 -0
  57. package/dist/core/anime/hianime/index.js +18 -0
  58. package/dist/core/anime/hianime/types.d.ts +8 -8
  59. package/dist/core/anime/index.d.ts +175 -44
  60. package/dist/core/anime/index.js +52 -233
  61. package/dist/core/anime/kickassanime/index.d.ts +27 -0
  62. package/dist/core/anime/kickassanime/index.js +18 -0
  63. package/dist/core/anime/kickassanime/types.d.ts +8 -8
  64. package/dist/core/anime/lunar/index.d.ts +28 -0
  65. package/dist/core/anime/lunar/index.js +19 -0
  66. package/dist/core/anime/lunar/types.d.ts +8 -8
  67. package/dist/core/anime/uniquestream/index.d.ts +27 -0
  68. package/dist/core/anime/uniquestream/index.js +18 -0
  69. package/dist/core/anime/uniquestream/types.d.ts +3 -3
  70. package/dist/core/extractors/index.d.ts +16 -0
  71. package/dist/core/extractors/index.js +10 -0
  72. package/dist/core/extractors/kodik/index.d.ts +1 -0
  73. package/dist/core/extractors/kodik/index.js +1 -0
  74. package/dist/core/extractors/kodik/types.d.ts +14 -0
  75. package/dist/core/extractors/kodik/types.js +1 -0
  76. package/dist/core/hentai/hanime/index.d.ts +28 -0
  77. package/dist/core/hentai/hanime/index.js +19 -0
  78. package/dist/core/hentai/hentaigasm/index.d.ts +14 -0
  79. package/dist/core/hentai/hentaigasm/index.js +5 -0
  80. package/dist/core/hentai/hentaigasm/types.d.ts +15 -0
  81. package/dist/core/hentai/hentaigasm/types.js +1 -0
  82. package/dist/core/hentai/hentaihaven/index.d.ts +30 -0
  83. package/dist/core/hentai/hentaihaven/index.js +21 -0
  84. package/dist/core/hentai/hstream/index.d.ts +27 -0
  85. package/dist/core/hentai/hstream/index.js +18 -0
  86. package/dist/core/hentai/index.d.ts +39 -13
  87. package/dist/core/hentai/index.js +13 -58
  88. package/dist/core/hentai/watchhentai/index.d.ts +28 -0
  89. package/dist/core/hentai/watchhentai/index.js +19 -0
  90. package/dist/core/hentai/watchhentai/types.d.ts +16 -0
  91. package/dist/core/hentai/watchhentai/types.js +1 -0
  92. package/dist/core/index.d.ts +7 -5
  93. package/dist/core/index.js +7 -5
  94. package/dist/core/manga/1manga/index.d.ts +27 -0
  95. package/dist/core/manga/1manga/index.js +20 -0
  96. package/dist/core/manga/1manga/types.d.ts +17 -0
  97. package/dist/core/manga/1manga/types.js +1 -0
  98. package/dist/core/manga/comix/index.d.ts +28 -0
  99. package/dist/core/manga/comix/index.js +20 -0
  100. package/dist/core/manga/comix/types.d.ts +15 -0
  101. package/dist/core/manga/comix/types.js +1 -0
  102. package/dist/core/manga/index.d.ts +243 -11
  103. package/dist/core/manga/index.js +36 -67
  104. package/dist/core/manga/lunar/index.d.ts +27 -0
  105. package/dist/core/manga/lunar/index.js +19 -0
  106. package/dist/core/manga/lunar/types.d.ts +2 -2
  107. package/dist/core/manga/mangadex/index.d.ts +28 -0
  108. package/dist/core/manga/mangadex/index.js +20 -0
  109. package/dist/core/manga/mangadex/types.d.ts +2 -2
  110. package/dist/core/manga/mangafire/index.d.ts +27 -0
  111. package/dist/core/manga/mangafire/index.js +19 -0
  112. package/dist/core/manga/mangafire/types.d.ts +4 -4
  113. package/dist/core/manga/mbbcdn/index.d.ts +288 -0
  114. package/dist/core/manga/mbbcdn/index.js +200 -0
  115. package/dist/core/manga/mbbcdn/types.d.ts +14 -0
  116. package/dist/core/manga/mbbcdn/types.js +1 -0
  117. package/dist/core/manga/toonilycdn/index.d.ts +131 -0
  118. package/dist/core/manga/toonilycdn/index.js +91 -0
  119. package/dist/core/manga/toonilycdn/types.d.ts +14 -0
  120. package/dist/core/manga/toonilycdn/types.js +1 -0
  121. package/dist/core/manga/weebcentral/index.d.ts +28 -0
  122. package/dist/core/manga/weebcentral/index.js +20 -0
  123. package/dist/core/manga/weebcentral/types.d.ts +22 -0
  124. package/dist/core/manga/weebcentral/types.js +1 -0
  125. package/dist/core/mapper/index.d.ts +1 -0
  126. package/dist/core/mapper/index.js +1 -0
  127. package/dist/core/meta/anilist/index.d.ts +21 -0
  128. package/dist/core/meta/anilist/index.js +19 -0
  129. package/dist/core/meta/anilist/types.d.ts +69 -0
  130. package/dist/core/meta/anilist/types.js +1 -0
  131. package/dist/core/meta/index.d.ts +14 -8
  132. package/dist/core/meta/index.js +8 -51
  133. package/dist/core/meta/myanimelist/index.d.ts +20 -0
  134. package/dist/core/meta/myanimelist/index.js +18 -0
  135. package/dist/core/meta/myanimelist/types.d.ts +15 -15
  136. package/dist/core/meta/mymangalist/index.d.ts +7 -0
  137. package/dist/core/meta/mymangalist/index.js +5 -0
  138. package/dist/core/meta/mymangalist/types.d.ts +9 -9
  139. package/dist/core/novels/index.d.ts +41 -0
  140. package/dist/core/novels/index.js +11 -0
  141. package/dist/core/novels/jnovels/index.d.ts +26 -0
  142. package/dist/core/novels/jnovels/index.js +19 -0
  143. package/dist/core/novels/novelfire/index.d.ts +28 -0
  144. package/dist/core/novels/novelfire/index.js +20 -0
  145. package/dist/core/novels/novelfire/types.d.ts +4 -0
  146. package/dist/core/novels/novelfire/types.js +1 -0
  147. package/dist/core/novels/novelhall/index.d.ts +26 -0
  148. package/dist/core/novels/novelhall/index.js +19 -0
  149. package/dist/core/types.d.ts +8 -7
  150. package/dist/helpers/fetch.d.ts +14 -0
  151. package/dist/helpers/fetch.js +30 -0
  152. package/dist/helpers/index.d.ts +1 -0
  153. package/dist/helpers/index.js +1 -0
  154. package/dist/index.d.ts +2 -1
  155. package/dist/index.js +2 -1
  156. package/package.json +2 -2
@@ -0,0 +1,28 @@
1
+ import type { AnimeMeowSearchMeta } from './types';
2
+ /**
3
+ * Creates a AnimeMeow API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeMeow(process.env.API_KEY);
11
+ * const results = await client.search("naruto");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AnimeMeow: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<AnimeMeowSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<unknown>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
28
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates a AnimeMeow API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeMeow(process.env.API_KEY);
11
+ * const results = await client.search("naruto");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimeMeow = (apiKey) => AnimeFetch({
16
+ provider: 'animemeow',
17
+ apiKey,
18
+ });
19
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ export interface AnimeMeowSearchMeta {
2
+ year: number;
3
+ type: string;
4
+ status: string;
5
+ languageImage: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,28 @@
1
+ import type { AnimeNexusEpisodeMeta, AnimeNexusInfoMeta, AnimeNexusSearchMeta } from './types';
2
+ /**
3
+ * Creates an AnimeNexus API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeNexus(process.env.API_KEY);
11
+ * const results = await client.search("jujutsu kaisen");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AnimeNexus: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<AnimeNexusSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<AnimeNexusInfoMeta, import("../../types").Episode<AnimeNexusEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeNexusEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
1
28
  export * from './types';
@@ -1 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an AnimeNexus API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeNexus(process.env.API_KEY);
11
+ * const results = await client.search("jujutsu kaisen");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimeNexus = (apiKey) => AnimeFetch({
16
+ provider: 'animenexus',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,41 +1,41 @@
1
- export interface NGenre {
1
+ export interface AnimeNexusGenre {
2
2
  id: string;
3
3
  name: string;
4
4
  code: string;
5
5
  }
6
- export interface NProducer {
6
+ export interface AnimeNexusProducer {
7
7
  id: string;
8
8
  name: string;
9
9
  }
10
- export interface NStudio {
10
+ export interface AnimeNexusStudio {
11
11
  id: string;
12
12
  name: string;
13
13
  }
14
- export interface NDemographic {
14
+ export interface AnimeNexusDemographic {
15
15
  id: string;
16
16
  name: string;
17
17
  code: string;
18
18
  }
19
- export interface NImage {
19
+ export interface AnimeNexusImage {
20
20
  resized: Record<string, string>;
21
21
  resized_blur: Record<string, string>;
22
22
  }
23
- export interface NRelationShow {
23
+ export interface AnimeNexusRelationShow {
24
24
  id: string;
25
25
  name: string | null;
26
26
  slug: string;
27
27
  relation: string;
28
- poster: NImage;
28
+ poster: AnimeNexusImage;
29
29
  }
30
- export interface NSearchMeta {
30
+ export interface AnimeNexusSearchMeta {
31
31
  year: number | null;
32
32
  type: string | null;
33
33
  status: string | null;
34
34
  rating: string | null;
35
35
  slug: string | null;
36
- genres: NGenre[];
36
+ genres: AnimeNexusGenre[];
37
37
  }
38
- export interface NInfoMeta {
38
+ export interface AnimeNexusInfoMeta {
39
39
  year: number | null;
40
40
  score: number | null;
41
41
  season: string | null;
@@ -48,13 +48,13 @@ export interface NInfoMeta {
48
48
  endDate: string | null;
49
49
  releaseDay: string | null;
50
50
  broadcast: string | null;
51
- genres: NGenre[];
52
- producers: NProducer[];
53
- studios: NStudio[];
54
- demographics: NDemographic[];
55
- relations: NRelationShow[];
51
+ genres: AnimeNexusGenre[];
52
+ producers: AnimeNexusProducer[];
53
+ studios: AnimeNexusStudio[];
54
+ demographics: AnimeNexusDemographic[];
55
+ relations: AnimeNexusRelationShow[];
56
56
  }
57
- export interface NEpisodeMeta {
57
+ export interface AnimeNexusEpisodeMeta {
58
58
  subtitle_languages: string[];
59
59
  audio_languages: string[];
60
60
  status: string | null;
@@ -0,0 +1,28 @@
1
+ import type { AnimeNixEpisodeMeta, AnimeNixSearchMeta } from './types';
2
+ /**
3
+ * Creates a AnimeNix API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources, servers
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeNix(process.env.API_KEY);
11
+ * const results = await client.search("naruto");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AnimeNix: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<AnimeNixSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<AnimeNixEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeNixEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
28
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates a AnimeNix API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources, servers
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeNix(process.env.API_KEY);
11
+ * const results = await client.search("naruto");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimeNix = (apiKey) => AnimeFetch({
16
+ provider: 'animenix',
17
+ apiKey,
18
+ });
19
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ export interface AnimeNixSearchMeta {
2
+ status: string | undefined;
3
+ }
4
+ export interface AnimeNixEpisodeMeta {
5
+ airDate?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,28 @@
1
+ import type { AnimeOnsenEpisodeMeta, AnimeOnsenInfoMeta } from './types';
2
+ /**
3
+ * Creates an AnimeOnsen API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeOnsen(process.env.API_KEY);
11
+ * const results = await client.search("my hero academia");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AnimeOnsen: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<unknown>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<AnimeOnsenInfoMeta, import("../../types").Episode<AnimeOnsenEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeOnsenEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
1
28
  export * from './types';
@@ -1 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an AnimeOnsen API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeOnsen(process.env.API_KEY);
11
+ * const results = await client.search("my hero academia");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimeOnsen = (apiKey) => AnimeFetch({
16
+ provider: 'animeonsen',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,23 +1,23 @@
1
- export interface OBroadcast {
1
+ export interface AnimeOnsenBroadcast {
2
2
  day_of_the_week: string;
3
3
  start_time: string;
4
4
  }
5
- export interface OGenre {
5
+ export interface AnimeOnsenGenre {
6
6
  id: number;
7
7
  name: string;
8
8
  }
9
- export interface OStudio {
9
+ export interface AnimeOnsenStudio {
10
10
  id: number;
11
11
  name: string;
12
12
  }
13
- export interface OEpisodeMeta {
13
+ export interface AnimeOnsenEpisodeMeta {
14
14
  title_jp: string | null;
15
15
  }
16
- export interface OInfoMeta {
16
+ export interface AnimeOnsenInfoMeta {
17
17
  score: number | null;
18
18
  rating: string | null;
19
19
  type: string | null;
20
- broadcast: OBroadcast | null;
21
- genres: Array<OGenre> | null;
22
- studios: Array<OStudio> | null;
20
+ broadcast: AnimeOnsenBroadcast | null;
21
+ genres: AnimeOnsenGenre[] | null;
22
+ studios: AnimeOnsenStudio[] | null;
23
23
  }
@@ -1 +1,28 @@
1
+ import type { PaheEpisodeMeta, PaheInfoMeta, PaheSearchMeta } from './types';
2
+ /**
3
+ * Creates an AnimePahe API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimePahe(process.env.API_KEY);
11
+ * const results = await client.search("chainsaw man");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AnimePahe: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<PaheSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<PaheInfoMeta, import("../../types").Episode<PaheEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<PaheEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
1
28
  export * from './types';
@@ -1 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an AnimePahe API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimePahe(process.env.API_KEY);
11
+ * const results = await client.search("chainsaw man");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimePahe = (apiKey) => AnimeFetch({
16
+ provider: 'animepahe',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Creates an AnimeParadise API client.
3
+ *
4
+ * @param apiKey - Your API key for authentication
5
+ * @returns API client with methods: search, info, episodes, sources
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const client = AnimeParadise(process.env.API_KEY);
10
+ * const results = await client.search("one piece");
11
+ * const episodes = await client.episodes(results[0].id);
12
+ * ```
13
+ */
14
+ export declare const AnimeParadise: (apiKey: string) => {
15
+ name: string;
16
+ } & {
17
+ search: (q: string) => Promise<import("../../types").Search<unknown>[]>;
18
+ info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<unknown>>>;
19
+ episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
20
+ sources: (params: {
21
+ id: string | number;
22
+ episodeId: string | number;
23
+ subType?: string;
24
+ server?: string;
25
+ }) => Promise<import("../../types").Source<unknown>>;
26
+ };
@@ -0,0 +1,18 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an AnimeParadise API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AnimeParadise(process.env.API_KEY);
11
+ * const results = await client.search("one piece");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export const AnimeParadise = (apiKey) => AnimeFetch({
16
+ provider: 'animeparadise',
17
+ apiKey,
18
+ });
@@ -1 +1,28 @@
1
+ import type { AniZoneEpisodeMeta, AniZoneInfoMeta, AniZoneSearchMeta } from './types';
2
+ /**
3
+ * Creates an AniZone API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AniZone(process.env.API_KEY);
11
+ * const results = await client.search("spy x family");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const AniZone: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<AniZoneSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<AniZoneInfoMeta, import("../../types").Episode<AniZoneEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<AniZoneEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ };
1
28
  export * from './types';
@@ -1 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an AniZone API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = AniZone(process.env.API_KEY);
11
+ * const results = await client.search("spy x family");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export const AniZone = (apiKey) => AnimeFetch({
16
+ provider: 'anizone',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,18 +1,18 @@
1
- export interface AZAirDate {
1
+ export interface AniZoneAirDate {
2
2
  iso: string | null;
3
3
  date: Date | null;
4
4
  unix: number | null;
5
5
  }
6
- export interface AZInfoMeta {
6
+ export interface AniZoneInfoMeta {
7
7
  type: string | null;
8
8
  status: string | null;
9
9
  year: string | null;
10
10
  officialSite: string | null;
11
11
  }
12
- export interface AZEpisodeMeta {
13
- airDate: AZAirDate;
12
+ export interface AniZoneEpisodeMeta {
13
+ airDate: AniZoneAirDate;
14
14
  }
15
- export interface AZSearchMeta {
15
+ export interface AniZoneSearchMeta {
16
16
  year: string | null;
17
17
  genres: string[];
18
18
  format: string | null;
@@ -1 +1,32 @@
1
+ import type { HiAnimeEpisodeMeta, HiAnimeInfoMeta, HiAnimeSearchMeta, HiAnimeServerMeta } from './types';
2
+ /**
3
+ * Creates an HiAnime API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources, servers
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = HiAnime(process.env.API_KEY);
11
+ * const results = await client.search("spy x family");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const HiAnime: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<HiAnimeSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<HiAnimeInfoMeta, import("../../types").Episode<HiAnimeEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<HiAnimeEpisodeMeta>[]>;
21
+ sources: (params: {
22
+ id: string | number;
23
+ episodeId: string | number;
24
+ subType?: string;
25
+ server?: string;
26
+ }) => Promise<import("../../types").Source<unknown>>;
27
+ servers: (params: {
28
+ id: string | number;
29
+ episodeId: string | number;
30
+ }) => Promise<import("../../types").Server<HiAnimeServerMeta>>;
31
+ };
1
32
  export * from './types';
@@ -1 +1,19 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an HiAnime API client.
4
+ *
5
+ * @param apiKey - Your API key for authentication
6
+ * @returns API client with methods: search, info, episodes, sources, servers
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const client = HiAnime(process.env.API_KEY);
11
+ * const results = await client.search("spy x family");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export const HiAnime = (apiKey) => AnimeFetch({
16
+ provider: 'hianime',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,4 +1,4 @@
1
- export interface HianimeTvInfo {
1
+ export interface HiAnimeTvInfo {
2
2
  rating: string | null;
3
3
  quality: string | null;
4
4
  sub: number | null;
@@ -6,7 +6,7 @@ export interface HianimeTvInfo {
6
6
  showType: string | null;
7
7
  duration: string | null;
8
8
  }
9
- export interface HianimeSeason {
9
+ export interface HiAnimeSeason {
10
10
  id: string | null;
11
11
  data_number: number | null;
12
12
  data_id: number | null;
@@ -14,17 +14,17 @@ export interface HianimeSeason {
14
14
  title: string | null;
15
15
  image: string | null;
16
16
  }
17
- export interface HianimeSearchMeta {
17
+ export interface HiAnimeSearchMeta {
18
18
  duration: string | null;
19
- tvInfo: Partial<HianimeTvInfo>;
19
+ tvInfo: Partial<HiAnimeTvInfo>;
20
20
  }
21
- export interface HianimeEpisodeMeta {
21
+ export interface HiAnimeEpisodeMeta {
22
22
  title_jp: string | null;
23
23
  }
24
- export interface HianimeServerMeta {
24
+ export interface HiAnimeServerMeta {
25
25
  data_id: number | null;
26
26
  }
27
- export interface HianimeInfoMeta {
27
+ export interface HiAnimeInfoMeta {
28
28
  year: number | null;
29
29
  score: number | null;
30
30
  season: string | null;
@@ -39,5 +39,5 @@ export interface HianimeInfoMeta {
39
39
  genres: string[] | null;
40
40
  studios: string[] | null;
41
41
  producers: string[] | null;
42
- seasons: HianimeSeason[] | null;
42
+ seasons: HiAnimeSeason[] | null;
43
43
  }