@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.
- package/dist/core/anime/123anime/index.d.ts +27 -0
- package/dist/core/anime/123anime/index.js +18 -0
- package/dist/core/anime/anicore/index.d.ts +27 -0
- package/dist/core/anime/anicore/index.js +18 -0
- package/dist/core/anime/anicore/types.d.ts +16 -0
- package/dist/core/anime/anicore/types.js +1 -0
- package/dist/core/anime/anidap/index.d.ts +27 -0
- package/dist/core/anime/anidap/index.js +18 -0
- package/dist/core/anime/aniliberty/index.d.ts +28 -0
- package/dist/core/anime/aniliberty/index.js +19 -0
- package/dist/core/anime/aniliberty/types.d.ts +31 -0
- package/dist/core/anime/aniliberty/types.js +1 -0
- package/dist/core/anime/anime3rb/index.d.ts +28 -0
- package/dist/core/anime/anime3rb/index.js +19 -0
- package/dist/core/anime/anime3rb/types.d.ts +7 -0
- package/dist/core/anime/anime3rb/types.js +1 -0
- package/dist/core/anime/animeav1/index.d.ts +28 -0
- package/dist/core/anime/animeav1/index.js +19 -0
- package/dist/core/anime/animeav1/types.d.ts +17 -0
- package/dist/core/anime/animeav1/types.js +1 -0
- package/dist/core/anime/animegg/index.d.ts +28 -0
- package/dist/core/anime/animegg/index.js +19 -0
- package/dist/core/anime/animegg/types.d.ts +14 -0
- package/dist/core/anime/animegg/types.js +1 -0
- package/dist/core/anime/animeheaven/index.d.ts +27 -0
- package/dist/core/anime/animeheaven/index.js +18 -0
- package/dist/core/anime/animeheaven/types.d.ts +1 -1
- package/dist/core/anime/animekai/index.d.ts +27 -0
- package/dist/core/anime/animekai/index.js +18 -0
- package/dist/core/anime/animekai/types.d.ts +7 -7
- package/dist/core/anime/animelib/index.d.ts +32 -0
- package/dist/core/anime/animelib/index.js +19 -0
- package/dist/core/anime/animelib/types.d.ts +12 -0
- package/dist/core/anime/animelib/types.js +1 -0
- package/dist/core/anime/animemeow/index.d.ts +28 -0
- package/dist/core/anime/animemeow/index.js +19 -0
- package/dist/core/anime/animemeow/types.d.ts +6 -0
- package/dist/core/anime/animemeow/types.js +1 -0
- package/dist/core/anime/animenexus/index.d.ts +27 -0
- package/dist/core/anime/animenexus/index.js +18 -0
- package/dist/core/anime/animenexus/types.d.ts +16 -16
- package/dist/core/anime/animenix/index.d.ts +28 -0
- package/dist/core/anime/animenix/index.js +19 -0
- package/dist/core/anime/animenix/types.d.ts +6 -0
- package/dist/core/anime/animenix/types.js +1 -0
- package/dist/core/anime/animeonsen/index.d.ts +27 -0
- package/dist/core/anime/animeonsen/index.js +18 -0
- package/dist/core/anime/animeonsen/types.d.ts +8 -8
- package/dist/core/anime/animepahe/index.d.ts +27 -0
- package/dist/core/anime/animepahe/index.js +18 -0
- package/dist/core/anime/animeparadise/index.d.ts +26 -0
- package/dist/core/anime/animeparadise/index.js +18 -0
- package/dist/core/anime/anizone/index.d.ts +27 -0
- package/dist/core/anime/anizone/index.js +18 -0
- package/dist/core/anime/anizone/types.d.ts +5 -5
- package/dist/core/anime/hianime/index.d.ts +31 -0
- package/dist/core/anime/hianime/index.js +18 -0
- package/dist/core/anime/hianime/types.d.ts +8 -8
- package/dist/core/anime/index.d.ts +175 -44
- package/dist/core/anime/index.js +52 -233
- package/dist/core/anime/kickassanime/index.d.ts +27 -0
- package/dist/core/anime/kickassanime/index.js +18 -0
- package/dist/core/anime/kickassanime/types.d.ts +8 -8
- package/dist/core/anime/lunar/index.d.ts +28 -0
- package/dist/core/anime/lunar/index.js +19 -0
- package/dist/core/anime/lunar/types.d.ts +8 -8
- package/dist/core/anime/uniquestream/index.d.ts +27 -0
- package/dist/core/anime/uniquestream/index.js +18 -0
- package/dist/core/anime/uniquestream/types.d.ts +3 -3
- package/dist/core/extractors/index.d.ts +16 -0
- package/dist/core/extractors/index.js +10 -0
- package/dist/core/extractors/kodik/index.d.ts +1 -0
- package/dist/core/extractors/kodik/index.js +1 -0
- package/dist/core/extractors/kodik/types.d.ts +14 -0
- package/dist/core/extractors/kodik/types.js +1 -0
- package/dist/core/hentai/hanime/index.d.ts +28 -0
- package/dist/core/hentai/hanime/index.js +19 -0
- package/dist/core/hentai/hentaigasm/index.d.ts +14 -0
- package/dist/core/hentai/hentaigasm/index.js +5 -0
- package/dist/core/hentai/hentaigasm/types.d.ts +15 -0
- package/dist/core/hentai/hentaigasm/types.js +1 -0
- package/dist/core/hentai/hentaihaven/index.d.ts +30 -0
- package/dist/core/hentai/hentaihaven/index.js +21 -0
- package/dist/core/hentai/hstream/index.d.ts +27 -0
- package/dist/core/hentai/hstream/index.js +18 -0
- package/dist/core/hentai/index.d.ts +39 -13
- package/dist/core/hentai/index.js +13 -58
- package/dist/core/hentai/watchhentai/index.d.ts +28 -0
- package/dist/core/hentai/watchhentai/index.js +19 -0
- package/dist/core/hentai/watchhentai/types.d.ts +16 -0
- package/dist/core/hentai/watchhentai/types.js +1 -0
- package/dist/core/index.d.ts +7 -5
- package/dist/core/index.js +7 -5
- package/dist/core/manga/1manga/index.d.ts +27 -0
- package/dist/core/manga/1manga/index.js +20 -0
- package/dist/core/manga/1manga/types.d.ts +17 -0
- package/dist/core/manga/1manga/types.js +1 -0
- package/dist/core/manga/comix/index.d.ts +28 -0
- package/dist/core/manga/comix/index.js +20 -0
- package/dist/core/manga/comix/types.d.ts +15 -0
- package/dist/core/manga/comix/types.js +1 -0
- package/dist/core/manga/index.d.ts +243 -11
- package/dist/core/manga/index.js +36 -67
- package/dist/core/manga/lunar/index.d.ts +27 -0
- package/dist/core/manga/lunar/index.js +19 -0
- package/dist/core/manga/lunar/types.d.ts +2 -2
- package/dist/core/manga/mangadex/index.d.ts +28 -0
- package/dist/core/manga/mangadex/index.js +20 -0
- package/dist/core/manga/mangadex/types.d.ts +2 -2
- package/dist/core/manga/mangafire/index.d.ts +27 -0
- package/dist/core/manga/mangafire/index.js +19 -0
- package/dist/core/manga/mangafire/types.d.ts +4 -4
- package/dist/core/manga/mbbcdn/index.d.ts +288 -0
- package/dist/core/manga/mbbcdn/index.js +200 -0
- package/dist/core/manga/mbbcdn/types.d.ts +14 -0
- package/dist/core/manga/mbbcdn/types.js +1 -0
- package/dist/core/manga/toonilycdn/index.d.ts +131 -0
- package/dist/core/manga/toonilycdn/index.js +91 -0
- package/dist/core/manga/toonilycdn/types.d.ts +14 -0
- package/dist/core/manga/toonilycdn/types.js +1 -0
- package/dist/core/manga/weebcentral/index.d.ts +28 -0
- package/dist/core/manga/weebcentral/index.js +20 -0
- package/dist/core/manga/weebcentral/types.d.ts +22 -0
- package/dist/core/manga/weebcentral/types.js +1 -0
- package/dist/core/mapper/index.d.ts +1 -0
- package/dist/core/mapper/index.js +1 -0
- package/dist/core/meta/anilist/index.d.ts +21 -0
- package/dist/core/meta/anilist/index.js +19 -0
- package/dist/core/meta/anilist/types.d.ts +69 -0
- package/dist/core/meta/anilist/types.js +1 -0
- package/dist/core/meta/index.d.ts +14 -8
- package/dist/core/meta/index.js +8 -51
- package/dist/core/meta/myanimelist/index.d.ts +20 -0
- package/dist/core/meta/myanimelist/index.js +18 -0
- package/dist/core/meta/myanimelist/types.d.ts +15 -15
- package/dist/core/meta/mymangalist/index.d.ts +7 -0
- package/dist/core/meta/mymangalist/index.js +5 -0
- package/dist/core/meta/mymangalist/types.d.ts +9 -9
- package/dist/core/novels/index.d.ts +41 -0
- package/dist/core/novels/index.js +11 -0
- package/dist/core/novels/jnovels/index.d.ts +26 -0
- package/dist/core/novels/jnovels/index.js +19 -0
- package/dist/core/novels/novelfire/index.d.ts +28 -0
- package/dist/core/novels/novelfire/index.js +20 -0
- package/dist/core/novels/novelfire/types.d.ts +4 -0
- package/dist/core/novels/novelfire/types.js +1 -0
- package/dist/core/novels/novelhall/index.d.ts +26 -0
- package/dist/core/novels/novelhall/index.js +19 -0
- package/dist/core/types.d.ts +8 -7
- package/dist/helpers/fetch.d.ts +14 -0
- package/dist/helpers/fetch.js +30 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface KickAssAnimeEpisodeLanguage {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
38
|
+
export interface KickAssAnimeEpisodeMeta {
|
|
39
39
|
episode_string: string | null;
|
|
40
|
-
languages:
|
|
40
|
+
languages: KickAssAnimeEpisodeLanguage[];
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
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:
|
|
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
|
|
1
|
+
export interface LunarLanguage {
|
|
2
2
|
poster_url: string;
|
|
3
3
|
description: string;
|
|
4
4
|
language: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
29
|
+
export interface LunarEpisodeMeta {
|
|
30
30
|
season: number;
|
|
31
|
-
languages:
|
|
31
|
+
languages: LunarLanguage[];
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface LunarSourcesMeta {
|
|
34
34
|
title: string;
|
|
35
35
|
episode: number;
|
|
36
36
|
season: number;
|
|
37
|
-
hoster:
|
|
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
|
|
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
|
|
15
|
+
export interface UniqueStreamEpisodeMeta {
|
|
16
16
|
duration_ms: number | null;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface UniqueStreamSearchMeta {
|
|
19
19
|
type: string | null;
|
|
20
20
|
subbed: boolean;
|
|
21
21
|
dubbed: boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const Extractor: {
|
|
2
|
+
Kodik: (apiKey: string) => {
|
|
3
|
+
name: string;
|
|
4
|
+
} & {
|
|
5
|
+
episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
|
|
6
|
+
sources: (params: {
|
|
7
|
+
id: string | number;
|
|
8
|
+
episodeId: string | number;
|
|
9
|
+
subType?: string;
|
|
10
|
+
server?: string;
|
|
11
|
+
}) => Promise<import("../types").Source<unknown>>;
|
|
12
|
+
translations: (id: string | number) => Promise<import("./kodik").KodikTranslation[]>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export { Extractor };
|
|
16
|
+
export * from './kodik';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface KodikTranslation {
|
|
2
|
+
id: number | null;
|
|
3
|
+
link: string | null;
|
|
4
|
+
type: string | null;
|
|
5
|
+
title: string | null;
|
|
6
|
+
episodeCount: number | null;
|
|
7
|
+
quality: string | null;
|
|
8
|
+
camrip: boolean | false;
|
|
9
|
+
}
|
|
10
|
+
export interface KodikEpisodeMeta {
|
|
11
|
+
hash: string | null;
|
|
12
|
+
type: string | null;
|
|
13
|
+
link: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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,14 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import type { HAnimeInfoMeta, HAnimeSearchMeta } from './hanime';
|
|
3
|
-
import type { HavenEpisodeMeta, HavenInfoMeta, HavenSourceMeta } from './hentaihaven';
|
|
4
|
-
import type { HStreamSearchMeta } from './hstream';
|
|
5
|
-
declare const Hentai: {
|
|
1
|
+
export declare const Hentai: {
|
|
6
2
|
HAnime: (apiKey: string) => {
|
|
7
3
|
name: string;
|
|
8
4
|
} & {
|
|
9
|
-
search: (q: string) => Promise<import("../types").Search<HAnimeSearchMeta>[]>;
|
|
10
|
-
info: (id: string | number) => Promise<import("../types").Info<HAnimeInfoMeta, import("../types").Episode<
|
|
11
|
-
episodes: (id: string | number) => Promise<import("../types").Episode<
|
|
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>[]>;
|
|
12
21
|
sources: (params: {
|
|
13
22
|
id: string | number;
|
|
14
23
|
episodeId: string | number;
|
|
@@ -20,19 +29,19 @@ declare const Hentai: {
|
|
|
20
29
|
name: string;
|
|
21
30
|
} & {
|
|
22
31
|
search: (q: string) => Promise<import("../types").Search<unknown>[]>;
|
|
23
|
-
info: (id: string | number) => Promise<import("../types").Info<HavenInfoMeta, import("../types").Episode<HavenEpisodeMeta>>>;
|
|
24
|
-
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>[]>;
|
|
25
34
|
sources: (params: {
|
|
26
35
|
id: string | number;
|
|
27
36
|
episodeId: string | number;
|
|
28
37
|
subType?: string;
|
|
29
38
|
server?: string;
|
|
30
|
-
}) => Promise<import("../types").Source<HavenSourceMeta>>;
|
|
39
|
+
}) => Promise<import("../types").Source<import("./hentaihaven").HavenSourceMeta>>;
|
|
31
40
|
};
|
|
32
41
|
HStream: (apiKey: string) => {
|
|
33
42
|
name: string;
|
|
34
43
|
} & {
|
|
35
|
-
search: (q: string) => Promise<import("../types").Search<HStreamSearchMeta>[]>;
|
|
44
|
+
search: (q: string) => Promise<import("../types").Search<import("./hstream").HStreamSearchMeta>[]>;
|
|
36
45
|
info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
|
|
37
46
|
episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
|
|
38
47
|
sources: (params: {
|
|
@@ -42,5 +51,22 @@ declare const Hentai: {
|
|
|
42
51
|
server?: string;
|
|
43
52
|
}) => Promise<import("../types").Source<unknown>>;
|
|
44
53
|
};
|
|
54
|
+
WatchHentai: (apiKey: string) => {
|
|
55
|
+
name: string;
|
|
56
|
+
} & {
|
|
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>[]>;
|
|
60
|
+
sources: (params: {
|
|
61
|
+
id: string | number;
|
|
62
|
+
episodeId: string | number;
|
|
63
|
+
subType?: string;
|
|
64
|
+
server?: string;
|
|
65
|
+
}) => Promise<import("../types").Source<unknown>>;
|
|
66
|
+
};
|
|
45
67
|
};
|
|
46
|
-
export
|
|
68
|
+
export * from './hanime';
|
|
69
|
+
export * from './hentaigasm';
|
|
70
|
+
export * from './hentaihaven';
|
|
71
|
+
export * from './hstream';
|
|
72
|
+
export * from './watchhentai';
|
|
@@ -1,62 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 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 = {
|
|
58
7
|
HAnime,
|
|
8
|
+
Hentaigasm,
|
|
59
9
|
HentaiHaven,
|
|
60
10
|
HStream,
|
|
11
|
+
WatchHentai,
|
|
61
12
|
};
|
|
62
|
-
export
|
|
13
|
+
export * from './hanime';
|
|
14
|
+
export * from './hentaigasm';
|
|
15
|
+
export * from './hentaihaven';
|
|
16
|
+
export * from './hstream';
|
|
17
|
+
export * from './watchhentai';
|
|
@@ -0,0 +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
|
+
};
|
|
28
|
+
export * from './types';
|