react-native-consumet 1.0.0-rc.0 → 1.0.0-rc.2

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 (245) hide show
  1. package/android/generated/java/com/consumet/NativeConsumetSpec.java +4 -0
  2. package/android/generated/jni/RNConsumetSpec-generated.cpp +6 -0
  3. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +8 -0
  4. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +9 -0
  5. package/android/src/main/java/com/consumet/ConsumetModule.kt +7 -0
  6. package/android/src/main/java/com/consumet/DdosGuardModule.kt +248 -189
  7. package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +7 -0
  8. package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +2 -0
  9. package/ios/generated/RNConsumetSpecJSI-generated.cpp +8 -0
  10. package/ios/generated/RNConsumetSpecJSI.h +9 -0
  11. package/lib/commonjs/NativeConsumet.ts +28 -26
  12. package/lib/commonjs/extension-registry.json +13 -13
  13. package/lib/commonjs/extractors/filemoon.js +2 -2
  14. package/lib/commonjs/extractors/kwik.js +60 -15
  15. package/lib/commonjs/extractors/kwik.js.map +1 -1
  16. package/lib/commonjs/extractors/megacloud.js +6 -6
  17. package/lib/commonjs/index.js +2 -11
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/commonjs/models/types.js +4 -4
  20. package/lib/commonjs/models/video-extractor.js +4 -4
  21. package/lib/commonjs/providers/anime/animedrive.js +12 -12
  22. package/lib/commonjs/providers/anime/animekai.js +41 -41
  23. package/lib/commonjs/providers/anime/animepahe/animepahe.js +16 -15
  24. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  25. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +12 -9
  26. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  27. package/lib/commonjs/providers/anime/animesuge/animesuge.js +78 -0
  28. package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -0
  29. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +312 -0
  30. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -0
  31. package/lib/commonjs/providers/anime/animeunity.js +13 -13
  32. package/lib/commonjs/providers/anime/index.js +4 -4
  33. package/lib/commonjs/providers/anime/index.js.map +1 -1
  34. package/lib/commonjs/providers/anime/marin.js +12 -12
  35. package/lib/commonjs/providers/anime/zoro/create-zoro.js +2 -2
  36. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  37. package/lib/commonjs/providers/anime/zoro/zoro.js +76 -74
  38. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  39. package/lib/commonjs/providers/manga/brmangas.js +3 -3
  40. package/lib/commonjs/providers/meta/anilist.js +91 -91
  41. package/lib/commonjs/providers/meta/mal.js +12 -12
  42. package/lib/commonjs/providers/meta/tmdb.js +21 -21
  43. package/lib/commonjs/providers/movies/himovies/create-himovies.js +16 -16
  44. package/lib/commonjs/providers/movies/himovies/himovies.js +16 -16
  45. package/lib/commonjs/providers/movies/multimovies.js +15 -15
  46. package/lib/commonjs/providers/movies/multistream/index.js +21 -20
  47. package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
  48. package/lib/commonjs/providers/movies/multistream/utils.js +142 -130
  49. package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
  50. package/lib/commonjs/utils/ExtractorManager.js +15 -15
  51. package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
  52. package/lib/commonjs/utils/ProviderManager.js +2 -1
  53. package/lib/commonjs/utils/ProviderManager.js.map +1 -1
  54. package/lib/commonjs/utils/create-extractor-context.js +9 -1
  55. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  56. package/lib/commonjs/utils/create-provider-context.js +6 -2
  57. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  58. package/lib/commonjs/utils/extension-utils.js +44 -54
  59. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  60. package/lib/commonjs/utils/index.js +2 -2
  61. package/lib/commonjs/utils/provider-maps.js +31 -0
  62. package/lib/commonjs/utils/provider-maps.js.map +1 -0
  63. package/lib/commonjs/utils/providers-list.js +4 -4
  64. package/lib/commonjs/utils/url-polyfill.js +4 -4
  65. package/lib/module/NativeConsumet.ts +28 -26
  66. package/lib/module/extension-registry.json +13 -13
  67. package/lib/module/extractors/filemoon.js +2 -2
  68. package/lib/module/extractors/kwik.js +60 -15
  69. package/lib/module/extractors/kwik.js.map +1 -1
  70. package/lib/module/extractors/megacloud.js +6 -6
  71. package/lib/module/index.js +3 -7
  72. package/lib/module/index.js.map +1 -1
  73. package/lib/module/models/types.js +4 -4
  74. package/lib/module/models/video-extractor.js +4 -4
  75. package/lib/module/providers/anime/animedrive.js +12 -12
  76. package/lib/module/providers/anime/animekai.js +41 -41
  77. package/lib/module/providers/anime/animepahe/animepahe.js +14 -14
  78. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  79. package/lib/module/providers/anime/animepahe/create-animepahe.js +13 -9
  80. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  81. package/lib/module/providers/anime/animesuge/animesuge.js +73 -0
  82. package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -0
  83. package/lib/module/providers/anime/animesuge/create-animesuge.js +309 -0
  84. package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -0
  85. package/lib/module/providers/anime/animeunity.js +13 -13
  86. package/lib/module/providers/anime/index.js +2 -2
  87. package/lib/module/providers/anime/index.js.map +1 -1
  88. package/lib/module/providers/anime/marin.js +12 -12
  89. package/lib/module/providers/anime/zoro/create-zoro.js +3 -2
  90. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  91. package/lib/module/providers/anime/zoro/zoro.js +74 -73
  92. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  93. package/lib/module/providers/manga/brmangas.js +3 -3
  94. package/lib/module/providers/meta/anilist.js +91 -91
  95. package/lib/module/providers/meta/mal.js +12 -12
  96. package/lib/module/providers/meta/tmdb.js +21 -21
  97. package/lib/module/providers/movies/himovies/create-himovies.js +16 -16
  98. package/lib/module/providers/movies/himovies/himovies.js +16 -16
  99. package/lib/module/providers/movies/multimovies.js +15 -15
  100. package/lib/module/providers/movies/multistream/index.js +21 -20
  101. package/lib/module/providers/movies/multistream/index.js.map +1 -1
  102. package/lib/module/providers/movies/multistream/utils.js +141 -129
  103. package/lib/module/providers/movies/multistream/utils.js.map +1 -1
  104. package/lib/module/utils/ExtractorManager.js +16 -16
  105. package/lib/module/utils/ExtractorManager.js.map +1 -1
  106. package/lib/module/utils/ProviderManager.js +2 -1
  107. package/lib/module/utils/ProviderManager.js.map +1 -1
  108. package/lib/module/utils/create-extractor-context.js +10 -1
  109. package/lib/module/utils/create-extractor-context.js.map +1 -1
  110. package/lib/module/utils/create-provider-context.js +8 -4
  111. package/lib/module/utils/create-provider-context.js.map +1 -1
  112. package/lib/module/utils/extension-utils.js +23 -33
  113. package/lib/module/utils/extension-utils.js.map +1 -1
  114. package/lib/module/utils/index.js +1 -1
  115. package/lib/module/utils/index.js.map +1 -1
  116. package/lib/module/utils/provider-maps.js +27 -0
  117. package/lib/module/utils/provider-maps.js.map +1 -0
  118. package/lib/module/utils/providers-list.js +4 -4
  119. package/lib/module/utils/url-polyfill.js +4 -4
  120. package/lib/typescript/commonjs/src/NativeConsumet.d.ts +2 -0
  121. package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/src/index.d.ts +6 -6
  124. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/models/extractor-context.d.ts +8 -0
  126. package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/models/index.d.ts +2 -2
  128. package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/models/provider-context.d.ts +6 -2
  130. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
  133. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +34 -0
  135. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
  137. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +2 -2
  139. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +1 -1
  141. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +1 -1
  144. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +2 -2
  146. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +1 -1
  148. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
  150. package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +1 -20
  152. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
  154. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +27 -0
  156. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -0
  157. package/lib/typescript/module/src/NativeConsumet.d.ts +2 -0
  158. package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
  159. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  160. package/lib/typescript/module/src/index.d.ts +6 -6
  161. package/lib/typescript/module/src/index.d.ts.map +1 -1
  162. package/lib/typescript/module/src/models/extractor-context.d.ts +8 -0
  163. package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
  164. package/lib/typescript/module/src/models/index.d.ts +2 -2
  165. package/lib/typescript/module/src/models/index.d.ts.map +1 -1
  166. package/lib/typescript/module/src/models/provider-context.d.ts +6 -2
  167. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  168. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  169. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +1 -1
  170. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  171. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +34 -0
  172. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
  173. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
  174. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
  175. package/lib/typescript/module/src/providers/anime/index.d.ts +2 -2
  176. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  177. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +1 -1
  178. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  179. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  180. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +1 -1
  181. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
  182. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +2 -2
  183. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
  184. package/lib/typescript/module/src/utils/ProviderManager.d.ts +1 -1
  185. package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
  186. package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
  187. package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
  188. package/lib/typescript/module/src/utils/extension-utils.d.ts +1 -20
  189. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  190. package/lib/typescript/module/src/utils/index.d.ts +2 -1
  191. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  192. package/lib/typescript/module/src/utils/provider-maps.d.ts +27 -0
  193. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -0
  194. package/package.json +6 -2
  195. package/src/NativeConsumet.ts +2 -0
  196. package/src/extension-registry.json +81 -81
  197. package/src/extractors/StreamP2P.ts +60 -60
  198. package/src/extractors/filemoon.ts +58 -58
  199. package/src/extractors/index.ts +41 -41
  200. package/src/extractors/kwik.ts +113 -50
  201. package/src/extractors/megacloud.ts +163 -163
  202. package/src/extractors/mixdrop.ts +31 -31
  203. package/src/extractors/mp4upload.ts +31 -31
  204. package/src/extractors/streamhub.ts +58 -58
  205. package/src/extractors/streamwish.ts +120 -120
  206. package/src/extractors/vidhide.ts +59 -59
  207. package/src/index.tsx +176 -175
  208. package/src/models/extension-manifest.ts +77 -77
  209. package/src/models/extractor-context.ts +55 -41
  210. package/src/models/index.ts +107 -106
  211. package/src/models/provider-context.ts +192 -182
  212. package/src/models/types.ts +531 -531
  213. package/src/models/video-extractor.ts +48 -48
  214. package/src/providers/anime/animedrive.ts +245 -245
  215. package/src/providers/anime/animekai.ts +627 -627
  216. package/src/providers/anime/animepahe/animepahe.ts +76 -76
  217. package/src/providers/anime/animepahe/create-animepahe.ts +350 -348
  218. package/src/providers/anime/animesuge/animesuge.ts +77 -0
  219. package/src/providers/anime/animesuge/create-animesuge.ts +327 -0
  220. package/src/providers/anime/animeunity.ts +216 -216
  221. package/src/providers/anime/index.ts +21 -21
  222. package/src/providers/anime/marin.ts +319 -319
  223. package/src/providers/anime/zoro/create-zoro.ts +656 -655
  224. package/src/providers/anime/zoro/zoro.ts +198 -197
  225. package/src/providers/index.ts +7 -7
  226. package/src/providers/manga/brmangas.ts +144 -144
  227. package/src/providers/meta/anilist.ts +2108 -2108
  228. package/src/providers/meta/mal.ts +635 -635
  229. package/src/providers/meta/tmdb.ts +470 -470
  230. package/src/providers/movies/himovies/create-himovies.ts +529 -529
  231. package/src/providers/movies/himovies/himovies.ts +90 -90
  232. package/src/providers/movies/index.ts +15 -15
  233. package/src/providers/movies/multimovies.ts +495 -495
  234. package/src/providers/movies/multistream/index.ts +232 -231
  235. package/src/providers/movies/multistream/utils.ts +147 -270
  236. package/src/utils/ExtractorManager.ts +311 -311
  237. package/src/utils/ProviderManager.ts +423 -424
  238. package/src/utils/create-extractor-context.ts +36 -22
  239. package/src/utils/create-provider-context.ts +117 -107
  240. package/src/utils/extension-utils.ts +105 -114
  241. package/src/utils/index.ts +96 -95
  242. package/src/utils/provider-maps.ts +31 -0
  243. package/src/utils/providers-list.ts +27 -27
  244. package/src/utils/url-polyfill.ts +642 -642
  245. package/src/utils/utils.ts +374 -374
@@ -1,531 +1,531 @@
1
- export interface IProviderStats {
2
- name: string;
3
- baseUrl: string;
4
- lang: string[] | string;
5
- isNSFW: boolean;
6
- logo: string;
7
- classPath: string;
8
- isWorking: boolean;
9
- }
10
-
11
- export interface ITitle {
12
- romaji?: string;
13
- english?: string;
14
- native?: string;
15
- userPreferred?: string;
16
- }
17
-
18
- export interface IAnimeResult {
19
- id: string;
20
- title: string | ITitle;
21
- url?: string;
22
- image?: string;
23
- imageHash?: string;
24
- cover?: string;
25
- coverHash?: string;
26
- status?: MediaStatus;
27
- rating?: number;
28
- type?: MediaFormat;
29
- releaseDate?: string;
30
- relationType?: string;
31
- [x: string]: any; // other fields
32
- }
33
-
34
- export interface ISearch<T> {
35
- currentPage?: number;
36
- hasNextPage?: boolean;
37
- totalPages?: number;
38
- /**
39
- * total results must include results from all pages
40
- */
41
- totalResults?: number;
42
- results: T[];
43
- }
44
-
45
- export interface Trailer {
46
- id: string;
47
- url?: string;
48
- site?: string;
49
- thumbnail?: string;
50
- thumbnailHash?: string | null;
51
- }
52
-
53
- export interface FuzzyDate {
54
- year?: number;
55
- month?: number;
56
- day?: number;
57
- }
58
-
59
- export enum MediaFormat {
60
- TV = 'TV',
61
- TV_SHORT = 'TV_SHORT',
62
- TV_SPECIAL = 'TV_SPECIAL',
63
- MOVIE = 'MOVIE',
64
- SPECIAL = 'SPECIAL',
65
- OVA = 'OVA',
66
- ONA = 'ONA',
67
- MUSIC = 'MUSIC',
68
- MANGA = 'MANGA',
69
- NOVEL = 'NOVEL',
70
- ONE_SHOT = 'ONE_SHOT',
71
- PV = 'PV',
72
- COMIC = 'COMIC',
73
- }
74
-
75
- export interface IAnimeInfo extends IAnimeResult {
76
- malId?: number | string;
77
- genres?: string[];
78
- description?: string;
79
- status?: MediaStatus;
80
- totalEpisodes?: number;
81
- /**
82
- * @deprecated use `hasSub` or `hasDub` instead
83
- */
84
- subOrDub?: SubOrDub;
85
- hasSub?: boolean;
86
- hasDub?: boolean;
87
- synonyms?: string[];
88
- /**
89
- * two letter representation of coutnry: e.g JP for japan
90
- */
91
- countryOfOrigin?: string;
92
- isAdult?: boolean;
93
- isLicensed?: boolean;
94
- /**
95
- * `FALL`, `WINTER`, `SPRING`, `SUMMER`
96
- */
97
- season?: string;
98
- studios?: string[];
99
- color?: string;
100
- cover?: string;
101
- trailer?: Trailer;
102
- episodes?: IAnimeEpisode[];
103
- startDate?: FuzzyDate;
104
- endDate?: FuzzyDate;
105
- recommendations?: IAnimeResult[];
106
- relations?: IAnimeResult[];
107
- }
108
-
109
- export interface IAnimeEpisodeV2 {
110
- [x: string]: {
111
- id: string;
112
- season_number: number;
113
- title: string;
114
- image: string;
115
- imageHash: string;
116
- description: string;
117
- releaseDate: string;
118
- isHD: boolean;
119
- isAdult: boolean;
120
- isDubbed: boolean;
121
- isSubbed: boolean;
122
- duration: number;
123
- }[];
124
- }
125
-
126
- export interface IAnimeEpisode {
127
- id: string;
128
- uniqueId?: string;
129
- number: number;
130
- title?: string;
131
- description?: string;
132
- isFiller?: boolean;
133
- isSubbed?: boolean;
134
- isDubbed?: boolean;
135
- url?: string;
136
- image?: string;
137
- imageHash?: string;
138
- releaseDate?: string;
139
- [x: string]: unknown; // other fields
140
- }
141
-
142
- export interface AniZipEpisode {
143
- episodeNumber: number;
144
- title: {
145
- 'ja': string;
146
- 'en': string;
147
- 'fr': string;
148
- 'hu': string;
149
- 'x-jat': string;
150
- };
151
- airDate: string;
152
- airDateUtc: string;
153
- overview: string;
154
- image: string;
155
- episode: string;
156
- airdate: string;
157
- rating: string;
158
- summary: string;
159
- }
160
-
161
- export interface IEpisodeServer {
162
- name: string;
163
- url: string;
164
- [x: string]: unknown;
165
- }
166
-
167
- export interface IVideo {
168
- /**
169
- * The **MAIN URL** of the video provider that should take you to the video
170
- */
171
- url: string;
172
- /**
173
- * The Quality of the video should include the `p` suffix
174
- */
175
- quality?: string;
176
- /**
177
- * make sure to set this to `true` if the video is hls
178
- */
179
- isM3U8?: boolean;
180
- /**
181
- * set this to `true` if the video is dash (mpd)
182
- */
183
- isDASH?: boolean;
184
- /**
185
- * size of the video in **bytes**
186
- */
187
- size?: number;
188
- [x: string]: unknown; // other fields
189
- }
190
-
191
- export enum StreamingServers {
192
- AsianLoad = 'asianload',
193
- GogoCDN = 'gogocdn',
194
- StreamSB = 'streamsb',
195
- MixDrop = 'mixdrop',
196
- Mp4Upload = 'mp4upload',
197
- UpCloud = 'upcloud',
198
- VidCloud = 'vidcloud',
199
- StreamTape = 'streamtape',
200
- VizCloud = 'vizcloud',
201
- // same as vizcloud
202
- MyCloud = 'mycloud',
203
- Filemoon = 'filemoon',
204
- VidStreaming = 'vidstreaming',
205
- BuiltIn = 'builtin',
206
- SmashyStream = 'smashystream',
207
- StreamHub = 'streamhub',
208
- StreamWish = 'streamwish',
209
- VidHide = 'vidhide',
210
- VidMoly = 'vidmoly',
211
- Voe = 'voe',
212
- MegaUp = 'megaup',
213
- MegaCloud = 'megacloud',
214
- Luffy = 'luffy',
215
- Multi = 'multi',
216
- Kwik = 'kwik',
217
- }
218
-
219
- export enum MediaStatus {
220
- ONGOING = 'Ongoing',
221
- COMPLETED = 'Completed',
222
- HIATUS = 'Hiatus',
223
- CANCELLED = 'Cancelled',
224
- NOT_YET_AIRED = 'Not yet aired',
225
- UNKNOWN = 'Unknown',
226
- }
227
-
228
- export enum WatchListType {
229
- WATCHING = 'watching',
230
- ONHOLD = 'on-hold',
231
- PLAN_TO_WATCH = 'plan to watch',
232
- DROPPED = 'dropped',
233
- COMPLETED = 'completed',
234
- NONE = 'none',
235
- }
236
-
237
- export enum SubOrDub {
238
- SUB = 'sub',
239
- DUB = 'dub',
240
- BOTH = 'both',
241
- }
242
-
243
- export interface IMangaResult {
244
- id: string;
245
- title: string | [lang: string][] | ITitle;
246
- altTitles?: string | string[] | [lang: string][];
247
- image?: string;
248
- description?: string | [lang: string][] | { [lang: string]: string };
249
- status?: MediaStatus;
250
- releaseDate?: number | string;
251
- [x: string]: unknown; // other fields
252
- }
253
-
254
- export interface IMangaChapter {
255
- id: string;
256
- title: string;
257
- volume?: number;
258
- pages?: number;
259
- releaseDate?: string;
260
- [x: string]: unknown; // other fields
261
- }
262
-
263
- export interface IMangaInfo extends IMangaResult {
264
- malId?: number | string;
265
- authors?: string[];
266
- genres?: string[];
267
- links?: string[];
268
- characters?: any[];
269
- recommendations?: IMangaResult[];
270
- chapters?: IMangaChapter[];
271
- }
272
-
273
- export interface IMangaChapterPage {
274
- img: string;
275
- page: number;
276
- [x: string]: unknown; // other fields
277
- }
278
-
279
- export interface ILightNovelResult {
280
- id: string;
281
- title: string | ITitle;
282
- url: string;
283
- image?: string;
284
- [x: string]: unknown; // other fields
285
- }
286
-
287
- export interface ILightNovelChapter {
288
- id: string;
289
- title: string;
290
- volume?: number | string;
291
- url?: string;
292
- }
293
-
294
- export interface ILightNovelChapterContent {
295
- novelTitle: string;
296
- chapterTitle: string;
297
- text: string;
298
- }
299
-
300
- export interface ILightNovelInfo extends ILightNovelResult {
301
- authors?: string[];
302
- genres?: string[];
303
- description?: string;
304
- chapters?: ILightNovelChapter[];
305
- status?: MediaStatus;
306
- views?: number;
307
- rating?: number;
308
- }
309
-
310
- export interface ISubtitle {
311
- /**
312
- * The id of the subtitle. **not** required
313
- */
314
- id?: string;
315
- /**
316
- * The **url** that should take you to the subtitle **directly**.
317
- */
318
- url: string;
319
- /**
320
- * The language of the subtitle
321
- */
322
- lang: string;
323
- }
324
-
325
- /**
326
- * The start, and the end of the intro or opening in seconds.
327
- */
328
- export interface Intro {
329
- start: number;
330
- end: number;
331
- }
332
-
333
- export interface ISource {
334
- headers?: { [k: string]: string };
335
- intro?: Intro;
336
- outro?: Intro;
337
- subtitles?: ISubtitle[];
338
- sources: IVideo[];
339
- download?: string | { url?: string; quality?: string }[];
340
- embedURL?: string;
341
- }
342
-
343
- /**
344
- * Used **only** for movie/tvshow providers
345
- */
346
- export enum TvType {
347
- TVSERIES = 'TV Series',
348
- MOVIE = 'Movie',
349
- ANIME = 'Anime',
350
- PEOPLE = 'People',
351
- }
352
-
353
- export interface IMovieEpisode {
354
- id: string;
355
- uniqueId?: string;
356
- title: string;
357
- url?: string;
358
- number?: number;
359
- season?: number;
360
- description?: string;
361
- image?:
362
- | string
363
- | {
364
- mobile?: string;
365
- hd?: string;
366
- };
367
- releaseDate?: string;
368
- [x: string]: unknown; // other fields
369
- }
370
-
371
- export interface IMovieResult {
372
- id: string;
373
- title: string | ITitle;
374
- url?: string;
375
- image?: string;
376
- releaseDate?: string;
377
- type?: TvType;
378
- [x: string]: unknown; // other unkown fields
379
- }
380
-
381
- export interface IPeopleResult {
382
- id: string;
383
- name: string;
384
- rating?: string;
385
- image?: string;
386
- movies: IMovieResult[];
387
- [x: string]: unknown; // other unkown fields
388
- }
389
-
390
- export interface INewsFeed extends INews {
391
- /** topics of the feed */
392
- topics: Topics[];
393
- /** preview of the news feed */
394
- preview: INewsFeedPreview;
395
- }
396
-
397
- export interface INewsInfo extends INews {
398
- /** intro of the news */
399
- intro: string;
400
- /** description of the news */
401
- description: string;
402
- }
403
-
404
- interface INews {
405
- /** id of the news */
406
- id: string;
407
- /** title of the news */
408
- title: string;
409
- /** time at which the news was uploaded */
410
- uploadedAt: string;
411
- /** thumbnail image URL of the news */
412
- thumbnail: string;
413
- /** thumbnail image blurhash code of the news */
414
- thumbnailHash: string;
415
- /** URL of the news */
416
- url: string;
417
- }
418
-
419
- interface INewsFeedPreview {
420
- /** intro of the feed */
421
- intro: string;
422
- /** some contents of the feed */
423
- full: string;
424
- }
425
-
426
- export interface IMovieSeason {
427
- season: number;
428
- image?: {
429
- mobile?: string;
430
- hd?: string;
431
- };
432
- episodes: IMovieEpisode[];
433
- }
434
-
435
- export interface IMovieInfo extends IMovieResult {
436
- cover?: string;
437
- recommendations?: IMovieResult[];
438
- genres?: string[];
439
- description?: string;
440
- rating?: number;
441
- status?: MediaStatus;
442
- duration?: string;
443
- production?: string;
444
- casts?: string[];
445
- tags?: string[];
446
- totalEpisodes?: number;
447
- trailer?: Trailer;
448
- seasons?: IMovieSeason[];
449
- episodes?: IMovieEpisode[];
450
- }
451
-
452
- export enum Genres {
453
- ACTION = 'Action',
454
- ADVENTURE = 'Adventure',
455
- CARS = 'Cars',
456
- COMEDY = 'Comedy',
457
- DRAMA = 'Drama',
458
- FANTASY = 'Fantasy',
459
- HORROR = 'Horror',
460
- MAHOU_SHOUJO = 'Mahou Shoujo',
461
- MECHA = 'Mecha',
462
- MUSIC = 'Music',
463
- MYSTERY = 'Mystery',
464
- PSYCHOLOGICAL = 'Psychological',
465
- ROMANCE = 'Romance',
466
- SCI_FI = 'Sci-Fi',
467
- SLICE_OF_LIFE = 'Slice of Life',
468
- SPORTS = 'Sports',
469
- SUPERNATURAL = 'Supernatural',
470
- THRILLER = 'Thriller',
471
- }
472
-
473
- export enum Topics {
474
- ANIME = 'anime',
475
- ANIMATION = 'animation',
476
- MANGA = 'manga',
477
- GAMES = 'games',
478
- NOVELS = 'novels',
479
- LIVE_ACTION = 'live-action',
480
- COVID_19 = 'covid-19',
481
- INDUSTRY = 'industry',
482
- MUSIC = 'music',
483
- PEOPLE = 'people',
484
- MERCH = 'merch',
485
- EVENTS = 'events',
486
- }
487
-
488
- export interface ProxyConfig {
489
- /**
490
- * The proxy URL
491
- * @example https://proxy.com
492
- **/
493
- url: string | string[];
494
- /**
495
- * X-API-Key header value (if any)
496
- **/
497
- key?: string;
498
- /**
499
- * The proxy rotation interval in milliseconds. (default: 5000)
500
- */
501
- rotateInterval?: number;
502
- }
503
-
504
- export interface IRoles {
505
- id: string;
506
- title: ITitle;
507
- type?: string;
508
- image: {
509
- extraLarge?: string;
510
- large?: string;
511
- medium?: string;
512
- };
513
- color?: string;
514
- }
515
-
516
- export interface IStaff {
517
- id: string;
518
- name: {
519
- first?: string;
520
- last?: string;
521
- native?: string;
522
- full?: string;
523
- };
524
- image?: {
525
- large?: string;
526
- medium?: string;
527
- };
528
- description?: string;
529
- siteUrl?: string;
530
- roles?: IRoles[];
531
- }
1
+ export interface IProviderStats {
2
+ name: string;
3
+ baseUrl: string;
4
+ lang: string[] | string;
5
+ isNSFW: boolean;
6
+ logo: string;
7
+ classPath: string;
8
+ isWorking: boolean;
9
+ }
10
+
11
+ export interface ITitle {
12
+ romaji?: string;
13
+ english?: string;
14
+ native?: string;
15
+ userPreferred?: string;
16
+ }
17
+
18
+ export interface IAnimeResult {
19
+ id: string;
20
+ title: string | ITitle;
21
+ url?: string;
22
+ image?: string;
23
+ imageHash?: string;
24
+ cover?: string;
25
+ coverHash?: string;
26
+ status?: MediaStatus;
27
+ rating?: number;
28
+ type?: MediaFormat;
29
+ releaseDate?: string;
30
+ relationType?: string;
31
+ [x: string]: any; // other fields
32
+ }
33
+
34
+ export interface ISearch<T> {
35
+ currentPage?: number;
36
+ hasNextPage?: boolean;
37
+ totalPages?: number;
38
+ /**
39
+ * total results must include results from all pages
40
+ */
41
+ totalResults?: number;
42
+ results: T[];
43
+ }
44
+
45
+ export interface Trailer {
46
+ id: string;
47
+ url?: string;
48
+ site?: string;
49
+ thumbnail?: string;
50
+ thumbnailHash?: string | null;
51
+ }
52
+
53
+ export interface FuzzyDate {
54
+ year?: number;
55
+ month?: number;
56
+ day?: number;
57
+ }
58
+
59
+ export enum MediaFormat {
60
+ TV = 'TV',
61
+ TV_SHORT = 'TV_SHORT',
62
+ TV_SPECIAL = 'TV_SPECIAL',
63
+ MOVIE = 'MOVIE',
64
+ SPECIAL = 'SPECIAL',
65
+ OVA = 'OVA',
66
+ ONA = 'ONA',
67
+ MUSIC = 'MUSIC',
68
+ MANGA = 'MANGA',
69
+ NOVEL = 'NOVEL',
70
+ ONE_SHOT = 'ONE_SHOT',
71
+ PV = 'PV',
72
+ COMIC = 'COMIC',
73
+ }
74
+
75
+ export interface IAnimeInfo extends IAnimeResult {
76
+ malId?: number | string;
77
+ genres?: string[];
78
+ description?: string;
79
+ status?: MediaStatus;
80
+ totalEpisodes?: number;
81
+ /**
82
+ * @deprecated use `hasSub` or `hasDub` instead
83
+ */
84
+ subOrDub?: SubOrDub;
85
+ hasSub?: boolean;
86
+ hasDub?: boolean;
87
+ synonyms?: string[];
88
+ /**
89
+ * two letter representation of coutnry: e.g JP for japan
90
+ */
91
+ countryOfOrigin?: string;
92
+ isAdult?: boolean;
93
+ isLicensed?: boolean;
94
+ /**
95
+ * `FALL`, `WINTER`, `SPRING`, `SUMMER`
96
+ */
97
+ season?: string;
98
+ studios?: string[];
99
+ color?: string;
100
+ cover?: string;
101
+ trailer?: Trailer;
102
+ episodes?: IAnimeEpisode[];
103
+ startDate?: FuzzyDate;
104
+ endDate?: FuzzyDate;
105
+ recommendations?: IAnimeResult[];
106
+ relations?: IAnimeResult[];
107
+ }
108
+
109
+ export interface IAnimeEpisodeV2 {
110
+ [x: string]: {
111
+ id: string;
112
+ season_number: number;
113
+ title: string;
114
+ image: string;
115
+ imageHash: string;
116
+ description: string;
117
+ releaseDate: string;
118
+ isHD: boolean;
119
+ isAdult: boolean;
120
+ isDubbed: boolean;
121
+ isSubbed: boolean;
122
+ duration: number;
123
+ }[];
124
+ }
125
+
126
+ export interface IAnimeEpisode {
127
+ id: string;
128
+ uniqueId?: string;
129
+ number: number;
130
+ title?: string;
131
+ description?: string;
132
+ isFiller?: boolean;
133
+ isSubbed?: boolean;
134
+ isDubbed?: boolean;
135
+ url?: string;
136
+ image?: string;
137
+ imageHash?: string;
138
+ releaseDate?: string;
139
+ [x: string]: unknown; // other fields
140
+ }
141
+
142
+ export interface AniZipEpisode {
143
+ episodeNumber: number;
144
+ title: {
145
+ 'ja': string;
146
+ 'en': string;
147
+ 'fr': string;
148
+ 'hu': string;
149
+ 'x-jat': string;
150
+ };
151
+ airDate: string;
152
+ airDateUtc: string;
153
+ overview: string;
154
+ image: string;
155
+ episode: string;
156
+ airdate: string;
157
+ rating: string;
158
+ summary: string;
159
+ }
160
+
161
+ export interface IEpisodeServer {
162
+ name: string;
163
+ url: string;
164
+ [x: string]: unknown;
165
+ }
166
+
167
+ export interface IVideo {
168
+ /**
169
+ * The **MAIN URL** of the video provider that should take you to the video
170
+ */
171
+ url: string;
172
+ /**
173
+ * The Quality of the video should include the `p` suffix
174
+ */
175
+ quality?: string;
176
+ /**
177
+ * make sure to set this to `true` if the video is hls
178
+ */
179
+ isM3U8?: boolean;
180
+ /**
181
+ * set this to `true` if the video is dash (mpd)
182
+ */
183
+ isDASH?: boolean;
184
+ /**
185
+ * size of the video in **bytes**
186
+ */
187
+ size?: number;
188
+ [x: string]: unknown; // other fields
189
+ }
190
+
191
+ export enum StreamingServers {
192
+ AsianLoad = 'asianload',
193
+ GogoCDN = 'gogocdn',
194
+ StreamSB = 'streamsb',
195
+ MixDrop = 'mixdrop',
196
+ Mp4Upload = 'mp4upload',
197
+ UpCloud = 'upcloud',
198
+ VidCloud = 'vidcloud',
199
+ StreamTape = 'streamtape',
200
+ VizCloud = 'vizcloud',
201
+ // same as vizcloud
202
+ MyCloud = 'mycloud',
203
+ Filemoon = 'filemoon',
204
+ VidStreaming = 'vidstreaming',
205
+ BuiltIn = 'builtin',
206
+ SmashyStream = 'smashystream',
207
+ StreamHub = 'streamhub',
208
+ StreamWish = 'streamwish',
209
+ VidHide = 'vidhide',
210
+ VidMoly = 'vidmoly',
211
+ Voe = 'voe',
212
+ MegaUp = 'megaup',
213
+ MegaCloud = 'megacloud',
214
+ Luffy = 'luffy',
215
+ Multi = 'multi',
216
+ Kwik = 'kwik',
217
+ }
218
+
219
+ export enum MediaStatus {
220
+ ONGOING = 'Ongoing',
221
+ COMPLETED = 'Completed',
222
+ HIATUS = 'Hiatus',
223
+ CANCELLED = 'Cancelled',
224
+ NOT_YET_AIRED = 'Not yet aired',
225
+ UNKNOWN = 'Unknown',
226
+ }
227
+
228
+ export enum WatchListType {
229
+ WATCHING = 'watching',
230
+ ONHOLD = 'on-hold',
231
+ PLAN_TO_WATCH = 'plan to watch',
232
+ DROPPED = 'dropped',
233
+ COMPLETED = 'completed',
234
+ NONE = 'none',
235
+ }
236
+
237
+ export enum SubOrDub {
238
+ SUB = 'sub',
239
+ DUB = 'dub',
240
+ BOTH = 'both',
241
+ }
242
+
243
+ export interface IMangaResult {
244
+ id: string;
245
+ title: string | [lang: string][] | ITitle;
246
+ altTitles?: string | string[] | [lang: string][];
247
+ image?: string;
248
+ description?: string | [lang: string][] | { [lang: string]: string };
249
+ status?: MediaStatus;
250
+ releaseDate?: number | string;
251
+ [x: string]: unknown; // other fields
252
+ }
253
+
254
+ export interface IMangaChapter {
255
+ id: string;
256
+ title: string;
257
+ volume?: number;
258
+ pages?: number;
259
+ releaseDate?: string;
260
+ [x: string]: unknown; // other fields
261
+ }
262
+
263
+ export interface IMangaInfo extends IMangaResult {
264
+ malId?: number | string;
265
+ authors?: string[];
266
+ genres?: string[];
267
+ links?: string[];
268
+ characters?: any[];
269
+ recommendations?: IMangaResult[];
270
+ chapters?: IMangaChapter[];
271
+ }
272
+
273
+ export interface IMangaChapterPage {
274
+ img: string;
275
+ page: number;
276
+ [x: string]: unknown; // other fields
277
+ }
278
+
279
+ export interface ILightNovelResult {
280
+ id: string;
281
+ title: string | ITitle;
282
+ url: string;
283
+ image?: string;
284
+ [x: string]: unknown; // other fields
285
+ }
286
+
287
+ export interface ILightNovelChapter {
288
+ id: string;
289
+ title: string;
290
+ volume?: number | string;
291
+ url?: string;
292
+ }
293
+
294
+ export interface ILightNovelChapterContent {
295
+ novelTitle: string;
296
+ chapterTitle: string;
297
+ text: string;
298
+ }
299
+
300
+ export interface ILightNovelInfo extends ILightNovelResult {
301
+ authors?: string[];
302
+ genres?: string[];
303
+ description?: string;
304
+ chapters?: ILightNovelChapter[];
305
+ status?: MediaStatus;
306
+ views?: number;
307
+ rating?: number;
308
+ }
309
+
310
+ export interface ISubtitle {
311
+ /**
312
+ * The id of the subtitle. **not** required
313
+ */
314
+ id?: string;
315
+ /**
316
+ * The **url** that should take you to the subtitle **directly**.
317
+ */
318
+ url: string;
319
+ /**
320
+ * The language of the subtitle
321
+ */
322
+ lang: string;
323
+ }
324
+
325
+ /**
326
+ * The start, and the end of the intro or opening in seconds.
327
+ */
328
+ export interface Intro {
329
+ start: number;
330
+ end: number;
331
+ }
332
+
333
+ export interface ISource {
334
+ headers?: { [k: string]: string };
335
+ intro?: Intro;
336
+ outro?: Intro;
337
+ subtitles?: ISubtitle[];
338
+ sources: IVideo[];
339
+ download?: string | { url?: string; quality?: string }[];
340
+ embedURL?: string;
341
+ }
342
+
343
+ /**
344
+ * Used **only** for movie/tvshow providers
345
+ */
346
+ export enum TvType {
347
+ TVSERIES = 'TV Series',
348
+ MOVIE = 'Movie',
349
+ ANIME = 'Anime',
350
+ PEOPLE = 'People',
351
+ }
352
+
353
+ export interface IMovieEpisode {
354
+ id: string;
355
+ uniqueId?: string;
356
+ title: string;
357
+ url?: string;
358
+ number?: number;
359
+ season?: number;
360
+ description?: string;
361
+ image?:
362
+ | string
363
+ | {
364
+ mobile?: string;
365
+ hd?: string;
366
+ };
367
+ releaseDate?: string;
368
+ [x: string]: unknown; // other fields
369
+ }
370
+
371
+ export interface IMovieResult {
372
+ id: string;
373
+ title: string | ITitle;
374
+ url?: string;
375
+ image?: string;
376
+ releaseDate?: string;
377
+ type?: TvType;
378
+ [x: string]: unknown; // other unkown fields
379
+ }
380
+
381
+ export interface IPeopleResult {
382
+ id: string;
383
+ name: string;
384
+ rating?: string;
385
+ image?: string;
386
+ movies: IMovieResult[];
387
+ [x: string]: unknown; // other unkown fields
388
+ }
389
+
390
+ export interface INewsFeed extends INews {
391
+ /** topics of the feed */
392
+ topics: Topics[];
393
+ /** preview of the news feed */
394
+ preview: INewsFeedPreview;
395
+ }
396
+
397
+ export interface INewsInfo extends INews {
398
+ /** intro of the news */
399
+ intro: string;
400
+ /** description of the news */
401
+ description: string;
402
+ }
403
+
404
+ interface INews {
405
+ /** id of the news */
406
+ id: string;
407
+ /** title of the news */
408
+ title: string;
409
+ /** time at which the news was uploaded */
410
+ uploadedAt: string;
411
+ /** thumbnail image URL of the news */
412
+ thumbnail: string;
413
+ /** thumbnail image blurhash code of the news */
414
+ thumbnailHash: string;
415
+ /** URL of the news */
416
+ url: string;
417
+ }
418
+
419
+ interface INewsFeedPreview {
420
+ /** intro of the feed */
421
+ intro: string;
422
+ /** some contents of the feed */
423
+ full: string;
424
+ }
425
+
426
+ export interface IMovieSeason {
427
+ season: number;
428
+ image?: {
429
+ mobile?: string;
430
+ hd?: string;
431
+ };
432
+ episodes: IMovieEpisode[];
433
+ }
434
+
435
+ export interface IMovieInfo extends IMovieResult {
436
+ cover?: string;
437
+ recommendations?: IMovieResult[];
438
+ genres?: string[];
439
+ description?: string;
440
+ rating?: number;
441
+ status?: MediaStatus;
442
+ duration?: string;
443
+ production?: string;
444
+ casts?: string[];
445
+ tags?: string[];
446
+ totalEpisodes?: number;
447
+ trailer?: Trailer;
448
+ seasons?: IMovieSeason[];
449
+ episodes?: IMovieEpisode[];
450
+ }
451
+
452
+ export enum Genres {
453
+ ACTION = 'Action',
454
+ ADVENTURE = 'Adventure',
455
+ CARS = 'Cars',
456
+ COMEDY = 'Comedy',
457
+ DRAMA = 'Drama',
458
+ FANTASY = 'Fantasy',
459
+ HORROR = 'Horror',
460
+ MAHOU_SHOUJO = 'Mahou Shoujo',
461
+ MECHA = 'Mecha',
462
+ MUSIC = 'Music',
463
+ MYSTERY = 'Mystery',
464
+ PSYCHOLOGICAL = 'Psychological',
465
+ ROMANCE = 'Romance',
466
+ SCI_FI = 'Sci-Fi',
467
+ SLICE_OF_LIFE = 'Slice of Life',
468
+ SPORTS = 'Sports',
469
+ SUPERNATURAL = 'Supernatural',
470
+ THRILLER = 'Thriller',
471
+ }
472
+
473
+ export enum Topics {
474
+ ANIME = 'anime',
475
+ ANIMATION = 'animation',
476
+ MANGA = 'manga',
477
+ GAMES = 'games',
478
+ NOVELS = 'novels',
479
+ LIVE_ACTION = 'live-action',
480
+ COVID_19 = 'covid-19',
481
+ INDUSTRY = 'industry',
482
+ MUSIC = 'music',
483
+ PEOPLE = 'people',
484
+ MERCH = 'merch',
485
+ EVENTS = 'events',
486
+ }
487
+
488
+ export interface ProxyConfig {
489
+ /**
490
+ * The proxy URL
491
+ * @example https://proxy.com
492
+ **/
493
+ url: string | string[];
494
+ /**
495
+ * X-API-Key header value (if any)
496
+ **/
497
+ key?: string;
498
+ /**
499
+ * The proxy rotation interval in milliseconds. (default: 5000)
500
+ */
501
+ rotateInterval?: number;
502
+ }
503
+
504
+ export interface IRoles {
505
+ id: string;
506
+ title: ITitle;
507
+ type?: string;
508
+ image: {
509
+ extraLarge?: string;
510
+ large?: string;
511
+ medium?: string;
512
+ };
513
+ color?: string;
514
+ }
515
+
516
+ export interface IStaff {
517
+ id: string;
518
+ name: {
519
+ first?: string;
520
+ last?: string;
521
+ native?: string;
522
+ full?: string;
523
+ };
524
+ image?: {
525
+ large?: string;
526
+ medium?: string;
527
+ };
528
+ description?: string;
529
+ siteUrl?: string;
530
+ roles?: IRoles[];
531
+ }