@crysoline/lib 0.1.6 → 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 (131) 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 +27 -0
  10. package/dist/core/anime/aniliberty/index.js +18 -0
  11. package/dist/core/anime/aniliberty/types.d.ts +3 -3
  12. package/dist/core/anime/anime3rb/index.d.ts +27 -0
  13. package/dist/core/anime/anime3rb/index.js +18 -0
  14. package/dist/core/anime/anime3rb/types.d.ts +2 -2
  15. package/dist/core/anime/animeav1/index.d.ts +27 -0
  16. package/dist/core/anime/animeav1/index.js +18 -0
  17. package/dist/core/anime/animeav1/types.d.ts +4 -4
  18. package/dist/core/anime/animegg/index.d.ts +27 -0
  19. package/dist/core/anime/animegg/index.js +18 -0
  20. package/dist/core/anime/animegg/types.d.ts +3 -3
  21. package/dist/core/anime/animeheaven/index.d.ts +27 -0
  22. package/dist/core/anime/animeheaven/index.js +18 -0
  23. package/dist/core/anime/animeheaven/types.d.ts +1 -1
  24. package/dist/core/anime/animekai/index.d.ts +27 -0
  25. package/dist/core/anime/animekai/index.js +18 -0
  26. package/dist/core/anime/animekai/types.d.ts +5 -5
  27. package/dist/core/anime/animelib/index.d.ts +31 -0
  28. package/dist/core/anime/animelib/index.js +18 -0
  29. package/dist/core/anime/animelib/types.d.ts +2 -2
  30. package/dist/core/anime/animemeow/index.d.ts +27 -0
  31. package/dist/core/anime/animemeow/index.js +18 -0
  32. package/dist/core/anime/animenexus/index.d.ts +27 -0
  33. package/dist/core/anime/animenexus/index.js +18 -0
  34. package/dist/core/anime/animenexus/types.d.ts +16 -16
  35. package/dist/core/anime/animenix/index.d.ts +27 -0
  36. package/dist/core/anime/animenix/index.js +18 -0
  37. package/dist/core/anime/animeonsen/index.d.ts +27 -0
  38. package/dist/core/anime/animeonsen/index.js +18 -0
  39. package/dist/core/anime/animeonsen/types.d.ts +8 -8
  40. package/dist/core/anime/animepahe/index.d.ts +27 -0
  41. package/dist/core/anime/animepahe/index.js +18 -0
  42. package/dist/core/anime/animeparadise/index.d.ts +26 -0
  43. package/dist/core/anime/animeparadise/index.js +18 -0
  44. package/dist/core/anime/anizone/index.d.ts +27 -0
  45. package/dist/core/anime/anizone/index.js +18 -0
  46. package/dist/core/anime/anizone/types.d.ts +5 -5
  47. package/dist/core/anime/hianime/index.d.ts +31 -0
  48. package/dist/core/anime/hianime/index.js +18 -0
  49. package/dist/core/anime/hianime/types.d.ts +8 -8
  50. package/dist/core/anime/index.d.ts +80 -69
  51. package/dist/core/anime/index.js +27 -261
  52. package/dist/core/anime/kickassanime/index.d.ts +27 -0
  53. package/dist/core/anime/kickassanime/index.js +18 -0
  54. package/dist/core/anime/kickassanime/types.d.ts +8 -8
  55. package/dist/core/anime/lunar/index.d.ts +28 -0
  56. package/dist/core/anime/lunar/index.js +19 -0
  57. package/dist/core/anime/lunar/types.d.ts +8 -8
  58. package/dist/core/anime/uniquestream/index.d.ts +27 -0
  59. package/dist/core/anime/uniquestream/index.js +18 -0
  60. package/dist/core/anime/uniquestream/types.d.ts +3 -3
  61. package/dist/core/hentai/hanime/index.d.ts +28 -0
  62. package/dist/core/hentai/hanime/index.js +19 -0
  63. package/dist/core/hentai/hentaigasm/index.d.ts +14 -0
  64. package/dist/core/hentai/hentaigasm/index.js +5 -0
  65. package/dist/core/hentai/hentaigasm/types.d.ts +15 -0
  66. package/dist/core/hentai/hentaigasm/types.js +1 -0
  67. package/dist/core/hentai/hentaihaven/index.d.ts +30 -0
  68. package/dist/core/hentai/hentaihaven/index.js +21 -0
  69. package/dist/core/hentai/hstream/index.d.ts +27 -0
  70. package/dist/core/hentai/hstream/index.js +18 -0
  71. package/dist/core/hentai/index.d.ts +25 -17
  72. package/dist/core/hentai/index.js +8 -62
  73. package/dist/core/hentai/watchhentai/index.d.ts +27 -0
  74. package/dist/core/hentai/watchhentai/index.js +18 -0
  75. package/dist/core/hentai/watchhentai/types.d.ts +3 -3
  76. package/dist/core/index.d.ts +1 -0
  77. package/dist/core/index.js +1 -0
  78. package/dist/core/manga/1manga/index.d.ts +27 -0
  79. package/dist/core/manga/1manga/index.js +20 -0
  80. package/dist/core/manga/1manga/types.d.ts +17 -0
  81. package/dist/core/manga/1manga/types.js +1 -0
  82. package/dist/core/manga/comix/index.d.ts +27 -0
  83. package/dist/core/manga/comix/index.js +19 -0
  84. package/dist/core/manga/comix/types.d.ts +3 -3
  85. package/dist/core/manga/index.d.ts +219 -18
  86. package/dist/core/manga/index.js +29 -75
  87. package/dist/core/manga/lunar/index.d.ts +27 -0
  88. package/dist/core/manga/lunar/index.js +19 -0
  89. package/dist/core/manga/lunar/types.d.ts +2 -2
  90. package/dist/core/manga/mangadex/index.d.ts +28 -0
  91. package/dist/core/manga/mangadex/index.js +20 -0
  92. package/dist/core/manga/mangadex/types.d.ts +2 -2
  93. package/dist/core/manga/mangafire/index.d.ts +27 -0
  94. package/dist/core/manga/mangafire/index.js +19 -0
  95. package/dist/core/manga/mangafire/types.d.ts +4 -4
  96. package/dist/core/manga/mbbcdn/index.d.ts +288 -0
  97. package/dist/core/manga/mbbcdn/index.js +200 -0
  98. package/dist/core/manga/mbbcdn/types.d.ts +14 -0
  99. package/dist/core/manga/mbbcdn/types.js +1 -0
  100. package/dist/core/manga/toonilycdn/index.d.ts +131 -0
  101. package/dist/core/manga/toonilycdn/index.js +91 -0
  102. package/dist/core/manga/toonilycdn/types.d.ts +14 -0
  103. package/dist/core/manga/toonilycdn/types.js +1 -0
  104. package/dist/core/manga/weebcentral/index.d.ts +27 -0
  105. package/dist/core/manga/weebcentral/index.js +19 -0
  106. package/dist/core/manga/weebcentral/types.d.ts +4 -4
  107. package/dist/core/meta/anilist/index.d.ts +20 -0
  108. package/dist/core/meta/anilist/index.js +18 -0
  109. package/dist/core/meta/index.d.ts +7 -11
  110. package/dist/core/meta/index.js +4 -55
  111. package/dist/core/meta/myanimelist/index.d.ts +20 -0
  112. package/dist/core/meta/myanimelist/index.js +18 -0
  113. package/dist/core/meta/myanimelist/types.d.ts +15 -15
  114. package/dist/core/meta/mymangalist/index.d.ts +7 -0
  115. package/dist/core/meta/mymangalist/index.js +5 -0
  116. package/dist/core/meta/mymangalist/types.d.ts +9 -9
  117. package/dist/core/novels/index.d.ts +41 -0
  118. package/dist/core/novels/index.js +11 -0
  119. package/dist/core/novels/jnovels/index.d.ts +26 -0
  120. package/dist/core/novels/jnovels/index.js +19 -0
  121. package/dist/core/novels/novelfire/index.d.ts +28 -0
  122. package/dist/core/novels/novelfire/index.js +20 -0
  123. package/dist/core/novels/novelfire/types.d.ts +4 -0
  124. package/dist/core/novels/novelfire/types.js +1 -0
  125. package/dist/core/novels/novelhall/index.d.ts +26 -0
  126. package/dist/core/novels/novelhall/index.js +19 -0
  127. package/dist/helpers/fetch.d.ts +6 -0
  128. package/dist/helpers/fetch.js +16 -0
  129. package/dist/helpers/index.d.ts +1 -0
  130. package/dist/helpers/index.js +1 -0
  131. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- export interface KEpisodeLanguage {
1
+ export interface KickAssAnimeEpisodeLanguage {
2
2
  id: string;
3
3
  name: string;
4
4
  }
5
- export interface KFormatImage {
5
+ export interface KickAssAnimeFormatImage {
6
6
  aspectRatio: number | null;
7
7
  jpeg: {
8
8
  sm: string;
@@ -13,7 +13,7 @@ export interface KFormatImage {
13
13
  hq: string;
14
14
  };
15
15
  }
16
- export interface KSearchMeta {
16
+ export interface KickAssAnimeSearchMeta {
17
17
  slug: string | null;
18
18
  year: number | null;
19
19
  status: string | null;
@@ -22,7 +22,7 @@ export interface KSearchMeta {
22
22
  genres: string[];
23
23
  locales: string[];
24
24
  }
25
- export interface KInfoMeta {
25
+ export interface KickAssAnimeInfoMeta {
26
26
  slug: string | null;
27
27
  year: number | null;
28
28
  season: string | null;
@@ -35,15 +35,15 @@ export interface KInfoMeta {
35
35
  genres: string[];
36
36
  locales: string[];
37
37
  }
38
- export interface KEpisodeMeta {
38
+ export interface KickAssAnimeEpisodeMeta {
39
39
  episode_string: string | null;
40
- languages: KEpisodeLanguage[];
40
+ languages: KickAssAnimeEpisodeLanguage[];
41
41
  }
42
- export interface KSourceMeta {
42
+ export interface KickAssAnimeSourceMeta {
43
43
  episode_number: number | null;
44
44
  episode_title: string | null;
45
45
  episode_synopsis: string | null;
46
46
  language: string | null;
47
47
  duration_ms: number | null;
48
- thumbnail: KFormatImage | null;
48
+ thumbnail: KickAssAnimeFormatImage | null;
49
49
  }
@@ -1 +1,29 @@
1
+ import type { LunarEpisodeMeta, LunarInfoMeta, LunarSearchMeta, LunarSourcesMeta } from './types';
2
+ /**
3
+ * Creates a LunarAnime 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 = LunarAnime(process.env.API_KEY);
11
+ * const results = await client.search("bleach");
12
+ * const info = await client.info(results[0].id);
13
+ * const episodes = await client.episodes(results[0].id);
14
+ * ```
15
+ */
16
+ export declare const LunarAnime: (apiKey: string) => {
17
+ name: string;
18
+ } & {
19
+ search: (q: string) => Promise<import("../../types").Search<LunarSearchMeta>[]>;
20
+ info: (id: string | number) => Promise<import("../../types").Info<LunarInfoMeta, import("../../types").Episode<LunarEpisodeMeta>>>;
21
+ episodes: (id: string | number) => Promise<import("../../types").Episode<LunarEpisodeMeta>[]>;
22
+ sources: (params: {
23
+ id: string | number;
24
+ episodeId: string | number;
25
+ subType?: string;
26
+ server?: string;
27
+ }) => Promise<import("../../types").Source<LunarSourcesMeta>>;
28
+ };
1
29
  export * from './types';
@@ -1 +1,20 @@
1
+ import { AnimeFetch } from '../../../helpers';
2
+ /**
3
+ * Creates a LunarAnime 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 = LunarAnime(process.env.API_KEY);
11
+ * const results = await client.search("bleach");
12
+ * const info = await client.info(results[0].id);
13
+ * const episodes = await client.episodes(results[0].id);
14
+ * ```
15
+ */
16
+ export const LunarAnime = (apiKey) => AnimeFetch({
17
+ provider: 'lunaranime',
18
+ apiKey,
19
+ });
1
20
  export * from './types';
@@ -1,15 +1,15 @@
1
- export interface LLanguage {
1
+ export interface LunarLanguage {
2
2
  poster_url: string;
3
3
  description: string;
4
4
  language: string;
5
5
  }
6
- export interface LHost {
6
+ export interface LunarHost {
7
7
  hoster: string;
8
8
  language: string;
9
9
  owned: boolean;
10
10
  redirect_uri: string;
11
11
  }
12
- export interface LInfoMeta {
12
+ export interface LunarInfoMeta {
13
13
  alt_titles: string[];
14
14
  start_year: number;
15
15
  end_year: number;
@@ -18,7 +18,7 @@ export interface LInfoMeta {
18
18
  genres: string[];
19
19
  search: string;
20
20
  }
21
- export interface LSearchMeta {
21
+ export interface LunarSearchMeta {
22
22
  alt_titles: string[];
23
23
  start_year: number;
24
24
  end_year: number;
@@ -26,13 +26,13 @@ export interface LSearchMeta {
26
26
  genres: string[];
27
27
  search: string;
28
28
  }
29
- export interface LEpisodeMeta {
29
+ export interface LunarEpisodeMeta {
30
30
  season: number;
31
- languages: LLanguage[];
31
+ languages: LunarLanguage[];
32
32
  }
33
- export interface LSourcesMeta {
33
+ export interface LunarSourcesMeta {
34
34
  title: string;
35
35
  episode: number;
36
36
  season: number;
37
- hoster: LHost;
37
+ hoster: LunarHost;
38
38
  }
@@ -1 +1,28 @@
1
+ import type { UniqueStreamEpisodeMeta, UniqueStreamInfoMeta, UniqueStreamSearchMeta } from './types';
2
+ /**
3
+ * Creates a UniqueStream 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 = UniqueStream(process.env.API_KEY);
11
+ * const results = await client.search("solo leveling");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const UniqueStream: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<UniqueStreamSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<UniqueStreamInfoMeta, import("../../types").Episode<UniqueStreamEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<UniqueStreamEpisodeMeta>[]>;
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 a UniqueStream 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 = UniqueStream(process.env.API_KEY);
11
+ * const results = await client.search("solo leveling");
12
+ * const episodes = await client.episodes(results[0].id);
13
+ * ```
14
+ */
15
+ export const UniqueStream = (apiKey) => AnimeFetch({
16
+ provider: 'uniquestream',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,4 +1,4 @@
1
- export interface UniqueInfoMeta {
1
+ export interface UniqueStreamInfoMeta {
2
2
  duration: string | null;
3
3
  url: string | null;
4
4
  audioLocales: string[];
@@ -12,10 +12,10 @@ export interface UniqueInfoMeta {
12
12
  episode_count: number;
13
13
  }>;
14
14
  }
15
- export interface UniqueEpisodeMeta {
15
+ export interface UniqueStreamEpisodeMeta {
16
16
  duration_ms: number | null;
17
17
  }
18
- export interface UniqueSearchMeta {
18
+ export interface UniqueStreamSearchMeta {
19
19
  type: string | null;
20
20
  subbed: boolean;
21
21
  dubbed: boolean;
@@ -1 +1,29 @@
1
+ import type { HAnimeInfoMeta, HAnimeSearchMeta } from './types';
2
+ /**
3
+ * Creates an HAnime 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 = HAnime(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * const episodes = await client.episodes(results[0].id);
14
+ * ```
15
+ */
16
+ export declare const HAnime: (apiKey: string) => {
17
+ name: string;
18
+ } & {
19
+ search: (q: string) => Promise<import("../../types").Search<HAnimeSearchMeta>[]>;
20
+ info: (id: string | number) => Promise<import("../../types").Info<HAnimeInfoMeta, import("../../types").Episode<unknown>>>;
21
+ episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
22
+ sources: (params: {
23
+ id: string | number;
24
+ episodeId: string | number;
25
+ subType?: string;
26
+ server?: string;
27
+ }) => Promise<import("../../types").Source<unknown>>;
28
+ };
1
29
  export * from './types';
@@ -1 +1,20 @@
1
+ import { HentaiFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an HAnime 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 = HAnime(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * const episodes = await client.episodes(results[0].id);
14
+ * ```
15
+ */
16
+ export const HAnime = (apiKey) => HentaiFetch({
17
+ provider: 'hanime',
18
+ apiKey,
19
+ });
1
20
  export * from './types';
@@ -0,0 +1,14 @@
1
+ import type { HentaigasmInfoMeta, HentaigasmSearchMeta } from './types';
2
+ export declare const Hentaigasm: (apiKey: string) => {
3
+ name: string;
4
+ } & {
5
+ search: (q: string) => Promise<import("../../types").Search<HentaigasmSearchMeta>[]>;
6
+ info: (id: string | number) => Promise<import("../../types").Info<HentaigasmInfoMeta, import("../../types").Episode<unknown>>>;
7
+ episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
8
+ sources: (params: {
9
+ id: string | number;
10
+ episodeId: string | number;
11
+ subType?: string;
12
+ server?: string;
13
+ }) => Promise<import("../../types").Source<unknown>>;
14
+ };
@@ -0,0 +1,5 @@
1
+ import { HentaiFetch } from '../../../helpers';
2
+ export const Hentaigasm = (apiKey) => HentaiFetch({
3
+ provider: 'hentaigasm',
4
+ apiKey,
5
+ });
@@ -0,0 +1,15 @@
1
+ export interface HentaigasmSearchMeta {
2
+ views: string;
3
+ comments: number;
4
+ likes: number;
5
+ author?: string;
6
+ timeAgo?: string;
7
+ url: string;
8
+ }
9
+ export interface HentaigasmInfoMeta {
10
+ date?: string;
11
+ series?: string[];
12
+ genres?: string[];
13
+ downloadUrl?: string;
14
+ url: string;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,31 @@
1
+ import type { HavenEpisodeMeta, HavenInfoMeta, HavenSourceMeta } from './types';
2
+ /**
3
+ * Creates a HentaiHaven 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 = HentaiHaven(process.env.API_KEY);
11
+ * const info = await client.info("content-id");
12
+ * const sources = await client.sources({
13
+ * id: "content-id",
14
+ * episodeId: "ep-1"
15
+ * });
16
+ * ```
17
+ */
18
+ export declare const HentaiHaven: (apiKey: string) => {
19
+ name: string;
20
+ } & {
21
+ search: (q: string) => Promise<import("../../types").Search<unknown>[]>;
22
+ info: (id: string | number) => Promise<import("../../types").Info<HavenInfoMeta, import("../../types").Episode<HavenEpisodeMeta>>>;
23
+ episodes: (id: string | number) => Promise<import("../../types").Episode<HavenEpisodeMeta>[]>;
24
+ sources: (params: {
25
+ id: string | number;
26
+ episodeId: string | number;
27
+ subType?: string;
28
+ server?: string;
29
+ }) => Promise<import("../../types").Source<HavenSourceMeta>>;
30
+ };
1
31
  export * from './types';
@@ -1 +1,22 @@
1
+ import { HentaiFetch } from '../../../helpers';
2
+ /**
3
+ * Creates a HentaiHaven 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 = HentaiHaven(process.env.API_KEY);
11
+ * const info = await client.info("content-id");
12
+ * const sources = await client.sources({
13
+ * id: "content-id",
14
+ * episodeId: "ep-1"
15
+ * });
16
+ * ```
17
+ */
18
+ export const HentaiHaven = (apiKey) => HentaiFetch({
19
+ provider: 'hentaihaven',
20
+ apiKey,
21
+ });
1
22
  export * from './types';
@@ -1 +1,28 @@
1
+ import type { HStreamSearchMeta } from './types';
2
+ /**
3
+ * Creates an HStream 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 = HStream(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const HStream: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<HStreamSearchMeta>[]>;
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
+ };
1
28
  export * from './types';
@@ -1 +1,19 @@
1
+ import { HentaiFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an HStream 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 = HStream(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const HStream = (apiKey) => HentaiFetch({
16
+ provider: 'hstream',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,15 +1,23 @@
1
- import type { HianimeEpisodeMeta } from '../anime/hianime';
2
- import type { HAnimeInfoMeta, HAnimeSearchMeta } from './hanime';
3
- import type { HavenEpisodeMeta, HavenInfoMeta, HavenSourceMeta } from './hentaihaven';
4
- import type { HStreamSearchMeta } from './hstream';
5
- import type { WHEpisodeMeta, WHInfoMeta, WHSearchMeta } from './watchhentai';
6
- declare const Hentai: {
1
+ export declare const Hentai: {
7
2
  HAnime: (apiKey: string) => {
8
3
  name: string;
9
4
  } & {
10
- search: (q: string) => Promise<import("../types").Search<HAnimeSearchMeta>[]>;
11
- info: (id: string | number) => Promise<import("../types").Info<HAnimeInfoMeta, import("../types").Episode<HianimeEpisodeMeta>>>;
12
- episodes: (id: string | number) => Promise<import("../types").Episode<HianimeEpisodeMeta>[]>;
5
+ search: (q: string) => Promise<import("../types").Search<import("./hanime").HAnimeSearchMeta>[]>;
6
+ info: (id: string | number) => Promise<import("../types").Info<import("./hanime").HAnimeInfoMeta, import("../types").Episode<unknown>>>;
7
+ episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
8
+ sources: (params: {
9
+ id: string | number;
10
+ episodeId: string | number;
11
+ subType?: string;
12
+ server?: string;
13
+ }) => Promise<import("../types").Source<unknown>>;
14
+ };
15
+ Hentaigasm: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../types").Search<import("./hentaigasm/types").HentaigasmSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../types").Info<import("./hentaigasm/types").HentaigasmInfoMeta, import("../types").Episode<unknown>>>;
20
+ episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
13
21
  sources: (params: {
14
22
  id: string | number;
15
23
  episodeId: string | number;
@@ -21,19 +29,19 @@ declare const Hentai: {
21
29
  name: string;
22
30
  } & {
23
31
  search: (q: string) => Promise<import("../types").Search<unknown>[]>;
24
- info: (id: string | number) => Promise<import("../types").Info<HavenInfoMeta, import("../types").Episode<HavenEpisodeMeta>>>;
25
- episodes: (id: string | number) => Promise<import("../types").Episode<HavenEpisodeMeta>[]>;
32
+ info: (id: string | number) => Promise<import("../types").Info<import("./hentaihaven").HavenInfoMeta, import("../types").Episode<import("./hentaihaven").HavenEpisodeMeta>>>;
33
+ episodes: (id: string | number) => Promise<import("../types").Episode<import("./hentaihaven").HavenEpisodeMeta>[]>;
26
34
  sources: (params: {
27
35
  id: string | number;
28
36
  episodeId: string | number;
29
37
  subType?: string;
30
38
  server?: string;
31
- }) => Promise<import("../types").Source<HavenSourceMeta>>;
39
+ }) => Promise<import("../types").Source<import("./hentaihaven").HavenSourceMeta>>;
32
40
  };
33
41
  HStream: (apiKey: string) => {
34
42
  name: string;
35
43
  } & {
36
- search: (q: string) => Promise<import("../types").Search<HStreamSearchMeta>[]>;
44
+ search: (q: string) => Promise<import("../types").Search<import("./hstream").HStreamSearchMeta>[]>;
37
45
  info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
38
46
  episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
39
47
  sources: (params: {
@@ -46,9 +54,9 @@ declare const Hentai: {
46
54
  WatchHentai: (apiKey: string) => {
47
55
  name: string;
48
56
  } & {
49
- search: (q: string) => Promise<import("../types").Search<WHSearchMeta>[]>;
50
- info: (id: string | number) => Promise<import("../types").Info<WHInfoMeta, import("../types").Episode<WHEpisodeMeta>>>;
51
- episodes: (id: string | number) => Promise<import("../types").Episode<WHEpisodeMeta>[]>;
57
+ search: (q: string) => Promise<import("../types").Search<import("./watchhentai").WatchHentaiSearchMeta>[]>;
58
+ info: (id: string | number) => Promise<import("../types").Info<import("./watchhentai").WatchHentaiInfoMeta, import("../types").Episode<import("./watchhentai").WatchHentaiEpisodeMeta>>>;
59
+ episodes: (id: string | number) => Promise<import("../types").Episode<import("./watchhentai").WatchHentaiEpisodeMeta>[]>;
52
60
  sources: (params: {
53
61
  id: string | number;
54
62
  episodeId: string | number;
@@ -57,8 +65,8 @@ declare const Hentai: {
57
65
  }) => Promise<import("../types").Source<unknown>>;
58
66
  };
59
67
  };
60
- export { Hentai };
61
68
  export * from './hanime';
69
+ export * from './hentaigasm';
62
70
  export * from './hentaihaven';
63
71
  export * from './hstream';
64
72
  export * from './watchhentai';
@@ -1,71 +1,17 @@
1
- import { HentaiFetch } from '../../helpers/fetch';
2
- /**
3
- * Creates an HAnime 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 = HAnime(process.env.API_KEY);
11
- * const results = await client.search("query");
12
- * const info = await client.info(results[0].id);
13
- * const episodes = await client.episodes(results[0].id);
14
- * ```
15
- */
16
- const HAnime = (apiKey) => HentaiFetch({
17
- provider: 'hanime',
18
- apiKey,
19
- });
20
- /**
21
- * Creates a HentaiHaven API client.
22
- *
23
- * @param apiKey - Your API key for authentication
24
- * @returns API client with methods: search, info, episodes, sources
25
- *
26
- * @example
27
- * ```ts
28
- * const client = HentaiHaven(process.env.API_KEY);
29
- * const info = await client.info("content-id");
30
- * const sources = await client.sources({
31
- * id: "content-id",
32
- * episodeId: "ep-1"
33
- * });
34
- * ```
35
- */
36
- const HentaiHaven = (apiKey) => HentaiFetch({
37
- provider: 'hentaihaven',
38
- apiKey,
39
- });
40
- /**
41
- * Creates an HStream API client.
42
- *
43
- * @param apiKey - Your API key for authentication
44
- * @returns API client with methods: search, info, episodes, sources
45
- *
46
- * @example
47
- * ```ts
48
- * const client = HStream(process.env.API_KEY);
49
- * const results = await client.search("query");
50
- * const info = await client.info(results[0].id);
51
- * ```
52
- */
53
- const HStream = (apiKey) => HentaiFetch({
54
- provider: 'hstream',
55
- apiKey,
56
- });
57
- const WatchHentai = (apiKey) => HentaiFetch({
58
- provider: 'watchhentai',
59
- apiKey,
60
- });
61
- const Hentai = {
1
+ import { HAnime } from './hanime';
2
+ import { Hentaigasm } from './hentaigasm';
3
+ import { HentaiHaven } from './hentaihaven';
4
+ import { HStream } from './hstream';
5
+ import { WatchHentai } from './watchhentai';
6
+ export const Hentai = {
62
7
  HAnime,
8
+ Hentaigasm,
63
9
  HentaiHaven,
64
10
  HStream,
65
11
  WatchHentai,
66
12
  };
67
- export { Hentai };
68
13
  export * from './hanime';
14
+ export * from './hentaigasm';
69
15
  export * from './hentaihaven';
70
16
  export * from './hstream';
71
17
  export * from './watchhentai';
@@ -1 +1,28 @@
1
+ import type { WatchHentaiEpisodeMeta, WatchHentaiInfoMeta, WatchHentaiSearchMeta } from './types';
2
+ /**
3
+ * Creates an WatchHentai 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 = WatchHentai(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export declare const WatchHentai: (apiKey: string) => {
16
+ name: string;
17
+ } & {
18
+ search: (q: string) => Promise<import("../../types").Search<WatchHentaiSearchMeta>[]>;
19
+ info: (id: string | number) => Promise<import("../../types").Info<WatchHentaiInfoMeta, import("../../types").Episode<WatchHentaiEpisodeMeta>>>;
20
+ episodes: (id: string | number) => Promise<import("../../types").Episode<WatchHentaiEpisodeMeta>[]>;
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 { HentaiFetch } from '../../../helpers';
2
+ /**
3
+ * Creates an WatchHentai 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 = WatchHentai(process.env.API_KEY);
11
+ * const results = await client.search("query");
12
+ * const info = await client.info(results[0].id);
13
+ * ```
14
+ */
15
+ export const WatchHentai = (apiKey) => HentaiFetch({
16
+ provider: 'watchhentai',
17
+ apiKey,
18
+ });
1
19
  export * from './types';
@@ -1,8 +1,8 @@
1
- export interface WHSearchMeta {
1
+ export interface WatchHentaiSearchMeta {
2
2
  type: string | null;
3
3
  year: number | null;
4
4
  }
5
- export interface WHInfoMeta {
5
+ export interface WatchHentaiInfoMeta {
6
6
  airDate: string | null;
7
7
  endDate: string | null;
8
8
  seasons: number | null;
@@ -11,6 +11,6 @@ export interface WHInfoMeta {
11
11
  tags: string[] | null;
12
12
  screenshots: string[] | null;
13
13
  }
14
- export interface WHEpisodeMeta {
14
+ export interface WatchHentaiEpisodeMeta {
15
15
  date: string | null;
16
16
  }
@@ -3,4 +3,5 @@ export * from './hentai/index';
3
3
  export * from './manga/index';
4
4
  export * from './mapper/index';
5
5
  export * from './meta/index';
6
+ export * from './novels/index';
6
7
  export * from './extractors/index';
@@ -3,4 +3,5 @@ export * from './hentai/index';
3
3
  export * from './manga/index';
4
4
  export * from './mapper/index';
5
5
  export * from './meta/index';
6
+ export * from './novels/index';
6
7
  export * from './extractors/index';