@saeris/tmdbkit 0.0.0 → 0.1.0

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 (868) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +385 -4
  4. package/dist/certification/getMovieCertifications.d.mts +9 -0
  5. package/dist/certification/getMovieCertifications.d.mts.map +1 -0
  6. package/dist/certification/getMovieCertifications.mjs +11 -0
  7. package/dist/certification/getMovieCertifications.mjs.map +1 -0
  8. package/dist/certification/getTvCertifications.d.mts +9 -0
  9. package/dist/certification/getTvCertifications.d.mts.map +1 -0
  10. package/dist/certification/getTvCertifications.mjs +11 -0
  11. package/dist/certification/getTvCertifications.mjs.map +1 -0
  12. package/dist/certification/index.d.mts +5 -0
  13. package/dist/certification/index.mjs +4 -0
  14. package/dist/certification/types/Certifications.d.mts +23 -0
  15. package/dist/certification/types/Certifications.d.mts.map +1 -0
  16. package/dist/certification/types/Certifications.mjs +24 -0
  17. package/dist/certification/types/Certifications.mjs.map +1 -0
  18. package/dist/certification/types/index.d.mts +2 -0
  19. package/dist/certification/types/index.mjs +1 -0
  20. package/dist/collection/getCollection.d.mts +37 -0
  21. package/dist/collection/getCollection.d.mts.map +1 -0
  22. package/dist/collection/getCollection.mjs +17 -0
  23. package/dist/collection/getCollection.mjs.map +1 -0
  24. package/dist/collection/getCollectionImages.d.mts +45 -0
  25. package/dist/collection/getCollectionImages.d.mts.map +1 -0
  26. package/dist/collection/getCollectionImages.mjs +21 -0
  27. package/dist/collection/getCollectionImages.mjs.map +1 -0
  28. package/dist/collection/getCollectionTranslations.d.mts +13 -0
  29. package/dist/collection/getCollectionTranslations.d.mts.map +1 -0
  30. package/dist/collection/getCollectionTranslations.mjs +14 -0
  31. package/dist/collection/getCollectionTranslations.mjs.map +1 -0
  32. package/dist/collection/index.d.mts +8 -0
  33. package/dist/collection/index.mjs +7 -0
  34. package/dist/collection/types/CollectionDetails.d.mts +23 -0
  35. package/dist/collection/types/CollectionDetails.d.mts.map +1 -0
  36. package/dist/collection/types/CollectionDetails.mjs +25 -0
  37. package/dist/collection/types/CollectionDetails.mjs.map +1 -0
  38. package/dist/collection/types/CollectionListItem.d.mts +24 -0
  39. package/dist/collection/types/CollectionListItem.d.mts.map +1 -0
  40. package/dist/collection/types/CollectionListItem.mjs +26 -0
  41. package/dist/collection/types/CollectionListItem.mjs.map +1 -0
  42. package/dist/collection/types/CollectionTranslations.d.mts +17 -0
  43. package/dist/collection/types/CollectionTranslations.d.mts.map +1 -0
  44. package/dist/collection/types/CollectionTranslations.mjs +18 -0
  45. package/dist/collection/types/CollectionTranslations.mjs.map +1 -0
  46. package/dist/collection/types/index.d.mts +4 -0
  47. package/dist/collection/types/index.mjs +4 -0
  48. package/dist/company/getCompany.d.mts +13 -0
  49. package/dist/company/getCompany.d.mts.map +1 -0
  50. package/dist/company/getCompany.mjs +14 -0
  51. package/dist/company/getCompany.mjs.map +1 -0
  52. package/dist/company/getCompanyAlternativeNames.d.mts +13 -0
  53. package/dist/company/getCompanyAlternativeNames.d.mts.map +1 -0
  54. package/dist/company/getCompanyAlternativeNames.mjs +14 -0
  55. package/dist/company/getCompanyAlternativeNames.mjs.map +1 -0
  56. package/dist/company/getCompanyImages.d.mts +13 -0
  57. package/dist/company/getCompanyImages.d.mts.map +1 -0
  58. package/dist/company/getCompanyImages.mjs +14 -0
  59. package/dist/company/getCompanyImages.mjs.map +1 -0
  60. package/dist/company/index.d.mts +7 -0
  61. package/dist/company/index.mjs +6 -0
  62. package/dist/company/types/CompanyDetails.d.mts +23 -0
  63. package/dist/company/types/CompanyDetails.d.mts.map +1 -0
  64. package/dist/company/types/CompanyDetails.mjs +26 -0
  65. package/dist/company/types/CompanyDetails.mjs.map +1 -0
  66. package/dist/company/types/CompanyListItem.d.mts +10 -0
  67. package/dist/company/types/CompanyListItem.d.mts.map +1 -0
  68. package/dist/company/types/CompanyListItem.mjs +13 -0
  69. package/dist/company/types/CompanyListItem.mjs.map +1 -0
  70. package/dist/company/types/index.d.mts +3 -0
  71. package/dist/company/types/index.mjs +3 -0
  72. package/dist/configuration/getConfiguration.d.mts +9 -0
  73. package/dist/configuration/getConfiguration.d.mts.map +1 -0
  74. package/dist/configuration/getConfiguration.mjs +11 -0
  75. package/dist/configuration/getConfiguration.mjs.map +1 -0
  76. package/dist/configuration/getCountries.d.mts +36 -0
  77. package/dist/configuration/getCountries.d.mts.map +1 -0
  78. package/dist/configuration/getCountries.mjs +13 -0
  79. package/dist/configuration/getCountries.mjs.map +1 -0
  80. package/dist/configuration/getJobs.d.mts +9 -0
  81. package/dist/configuration/getJobs.d.mts.map +1 -0
  82. package/dist/configuration/getJobs.mjs +11 -0
  83. package/dist/configuration/getJobs.mjs.map +1 -0
  84. package/dist/configuration/getLanguages.d.mts +9 -0
  85. package/dist/configuration/getLanguages.d.mts.map +1 -0
  86. package/dist/configuration/getLanguages.mjs +11 -0
  87. package/dist/configuration/getLanguages.mjs.map +1 -0
  88. package/dist/configuration/getPrimaryTranslations.d.mts +9 -0
  89. package/dist/configuration/getPrimaryTranslations.d.mts.map +1 -0
  90. package/dist/configuration/getPrimaryTranslations.mjs +11 -0
  91. package/dist/configuration/getPrimaryTranslations.mjs.map +1 -0
  92. package/dist/configuration/getTimezones.d.mts +9 -0
  93. package/dist/configuration/getTimezones.d.mts.map +1 -0
  94. package/dist/configuration/getTimezones.mjs +11 -0
  95. package/dist/configuration/getTimezones.mjs.map +1 -0
  96. package/dist/configuration/imageUrl.d.mts +26 -0
  97. package/dist/configuration/imageUrl.d.mts.map +1 -0
  98. package/dist/configuration/imageUrl.mjs +50 -0
  99. package/dist/configuration/imageUrl.mjs.map +1 -0
  100. package/dist/configuration/index.d.mts +15 -0
  101. package/dist/configuration/index.mjs +14 -0
  102. package/dist/configuration/types/ConfigurationDetails.d.mts +26 -0
  103. package/dist/configuration/types/ConfigurationDetails.d.mts.map +1 -0
  104. package/dist/configuration/types/ConfigurationDetails.mjs +28 -0
  105. package/dist/configuration/types/ConfigurationDetails.mjs.map +1 -0
  106. package/dist/configuration/types/Country.d.mts +27 -0
  107. package/dist/configuration/types/Country.d.mts.map +1 -0
  108. package/dist/configuration/types/Country.mjs +22 -0
  109. package/dist/configuration/types/Country.mjs.map +1 -0
  110. package/dist/configuration/types/DepartmentJobs.d.mts +15 -0
  111. package/dist/configuration/types/DepartmentJobs.d.mts.map +1 -0
  112. package/dist/configuration/types/DepartmentJobs.mjs +16 -0
  113. package/dist/configuration/types/DepartmentJobs.mjs.map +1 -0
  114. package/dist/configuration/types/Language.d.mts +10 -0
  115. package/dist/configuration/types/Language.d.mts.map +1 -0
  116. package/dist/configuration/types/Language.mjs +13 -0
  117. package/dist/configuration/types/Language.mjs.map +1 -0
  118. package/dist/configuration/types/PrimaryTranslations.d.mts +9 -0
  119. package/dist/configuration/types/PrimaryTranslations.d.mts.map +1 -0
  120. package/dist/configuration/types/PrimaryTranslations.mjs +12 -0
  121. package/dist/configuration/types/PrimaryTranslations.mjs.map +1 -0
  122. package/dist/configuration/types/Timezone.d.mts +17 -0
  123. package/dist/configuration/types/Timezone.d.mts.map +1 -0
  124. package/dist/configuration/types/Timezone.mjs +18 -0
  125. package/dist/configuration/types/Timezone.mjs.map +1 -0
  126. package/dist/configuration/types/index.d.mts +7 -0
  127. package/dist/configuration/types/index.mjs +7 -0
  128. package/dist/credit/getCredit.d.mts +37 -0
  129. package/dist/credit/getCredit.d.mts.map +1 -0
  130. package/dist/credit/getCredit.mjs +16 -0
  131. package/dist/credit/getCredit.mjs.map +1 -0
  132. package/dist/credit/index.d.mts +4 -0
  133. package/dist/credit/index.mjs +3 -0
  134. package/dist/credit/types/CreditDetails.d.mts +62 -0
  135. package/dist/credit/types/CreditDetails.d.mts.map +1 -0
  136. package/dist/credit/types/CreditDetails.mjs +35 -0
  137. package/dist/credit/types/CreditDetails.mjs.map +1 -0
  138. package/dist/credit/types/index.d.mts +2 -0
  139. package/dist/credit/types/index.mjs +1 -0
  140. package/dist/discover/discoverMovies.d.mts +708 -0
  141. package/dist/discover/discoverMovies.d.mts.map +1 -0
  142. package/dist/discover/discoverMovies.mjs +93 -0
  143. package/dist/discover/discoverMovies.mjs.map +1 -0
  144. package/dist/discover/discoverTvSeries.d.mts +608 -0
  145. package/dist/discover/discoverTvSeries.d.mts.map +1 -0
  146. package/dist/discover/discoverTvSeries.mjs +80 -0
  147. package/dist/discover/discoverTvSeries.mjs.map +1 -0
  148. package/dist/discover/index.d.mts +3 -0
  149. package/dist/discover/index.mjs +3 -0
  150. package/dist/find/findByExternalId.d.mts +38 -0
  151. package/dist/find/findByExternalId.d.mts.map +1 -0
  152. package/dist/find/findByExternalId.mjs +29 -0
  153. package/dist/find/findByExternalId.mjs.map +1 -0
  154. package/dist/find/index.d.mts +4 -0
  155. package/dist/find/index.mjs +3 -0
  156. package/dist/find/types/FindResults.d.mts +47 -0
  157. package/dist/find/types/FindResults.d.mts.map +1 -0
  158. package/dist/find/types/FindResults.mjs +39 -0
  159. package/dist/find/types/FindResults.mjs.map +1 -0
  160. package/dist/find/types/index.d.mts +2 -0
  161. package/dist/find/types/index.mjs +1 -0
  162. package/dist/genre/getMovieGenres.d.mts +36 -0
  163. package/dist/genre/getMovieGenres.d.mts.map +1 -0
  164. package/dist/genre/getMovieGenres.mjs +13 -0
  165. package/dist/genre/getMovieGenres.mjs.map +1 -0
  166. package/dist/genre/getTvGenres.d.mts +36 -0
  167. package/dist/genre/getTvGenres.d.mts.map +1 -0
  168. package/dist/genre/getTvGenres.mjs +13 -0
  169. package/dist/genre/getTvGenres.mjs.map +1 -0
  170. package/dist/genre/index.d.mts +5 -0
  171. package/dist/genre/index.mjs +4 -0
  172. package/dist/genre/types/GenreList.d.mts +15 -0
  173. package/dist/genre/types/GenreList.d.mts.map +1 -0
  174. package/dist/genre/types/GenreList.mjs +14 -0
  175. package/dist/genre/types/GenreList.mjs.map +1 -0
  176. package/dist/genre/types/index.d.mts +2 -0
  177. package/dist/genre/types/index.mjs +1 -0
  178. package/dist/index.d.mts +213 -0
  179. package/dist/index.mjs +192 -0
  180. package/dist/keyword/getKeyword.d.mts +13 -0
  181. package/dist/keyword/getKeyword.d.mts.map +1 -0
  182. package/dist/keyword/getKeyword.mjs +14 -0
  183. package/dist/keyword/getKeyword.mjs.map +1 -0
  184. package/dist/keyword/getKeywordMovies.d.mts +51 -0
  185. package/dist/keyword/getKeywordMovies.d.mts.map +1 -0
  186. package/dist/keyword/getKeywordMovies.mjs +21 -0
  187. package/dist/keyword/getKeywordMovies.mjs.map +1 -0
  188. package/dist/keyword/index.d.mts +3 -0
  189. package/dist/keyword/index.mjs +3 -0
  190. package/dist/list/getList.d.mts +44 -0
  191. package/dist/list/getList.d.mts.map +1 -0
  192. package/dist/list/getList.mjs +20 -0
  193. package/dist/list/getList.mjs.map +1 -0
  194. package/dist/list/getListItemStatus.d.mts +44 -0
  195. package/dist/list/getListItemStatus.d.mts.map +1 -0
  196. package/dist/list/getListItemStatus.mjs +20 -0
  197. package/dist/list/getListItemStatus.mjs.map +1 -0
  198. package/dist/list/index.d.mts +7 -0
  199. package/dist/list/index.mjs +6 -0
  200. package/dist/list/types/ListDetails.d.mts +29 -0
  201. package/dist/list/types/ListDetails.d.mts.map +1 -0
  202. package/dist/list/types/ListDetails.mjs +31 -0
  203. package/dist/list/types/ListDetails.mjs.map +1 -0
  204. package/dist/list/types/ListItemStatus.d.mts +15 -0
  205. package/dist/list/types/ListItemStatus.d.mts.map +1 -0
  206. package/dist/list/types/ListItemStatus.mjs +18 -0
  207. package/dist/list/types/ListItemStatus.mjs.map +1 -0
  208. package/dist/list/types/ListsContaining.d.mts +31 -0
  209. package/dist/list/types/ListsContaining.d.mts.map +1 -0
  210. package/dist/list/types/ListsContaining.mjs +32 -0
  211. package/dist/list/types/ListsContaining.mjs.map +1 -0
  212. package/dist/list/types/index.d.mts +4 -0
  213. package/dist/list/types/index.mjs +4 -0
  214. package/dist/movie/getLatestMovie.d.mts +9 -0
  215. package/dist/movie/getLatestMovie.d.mts.map +1 -0
  216. package/dist/movie/getLatestMovie.mjs +11 -0
  217. package/dist/movie/getLatestMovie.mjs.map +1 -0
  218. package/dist/movie/getMovie.d.mts +45 -0
  219. package/dist/movie/getMovie.d.mts.map +1 -0
  220. package/dist/movie/getMovie.mjs +36 -0
  221. package/dist/movie/getMovie.mjs.map +1 -0
  222. package/dist/movie/getMovieAlternativeTitles.d.mts +38 -0
  223. package/dist/movie/getMovieAlternativeTitles.d.mts.map +1 -0
  224. package/dist/movie/getMovieAlternativeTitles.mjs +19 -0
  225. package/dist/movie/getMovieAlternativeTitles.mjs.map +1 -0
  226. package/dist/movie/getMovieChangeList.d.mts +50 -0
  227. package/dist/movie/getMovieChangeList.d.mts.map +1 -0
  228. package/dist/movie/getMovieChangeList.mjs +19 -0
  229. package/dist/movie/getMovieChangeList.mjs.map +1 -0
  230. package/dist/movie/getMovieChanges.d.mts +51 -0
  231. package/dist/movie/getMovieChanges.d.mts.map +1 -0
  232. package/dist/movie/getMovieChanges.mjs +22 -0
  233. package/dist/movie/getMovieChanges.mjs.map +1 -0
  234. package/dist/movie/getMovieCredits.d.mts +37 -0
  235. package/dist/movie/getMovieCredits.d.mts.map +1 -0
  236. package/dist/movie/getMovieCredits.mjs +17 -0
  237. package/dist/movie/getMovieCredits.mjs.map +1 -0
  238. package/dist/movie/getMovieExternalIds.d.mts +13 -0
  239. package/dist/movie/getMovieExternalIds.d.mts.map +1 -0
  240. package/dist/movie/getMovieExternalIds.mjs +14 -0
  241. package/dist/movie/getMovieExternalIds.mjs.map +1 -0
  242. package/dist/movie/getMovieImages.d.mts +45 -0
  243. package/dist/movie/getMovieImages.d.mts.map +1 -0
  244. package/dist/movie/getMovieImages.mjs +21 -0
  245. package/dist/movie/getMovieImages.mjs.map +1 -0
  246. package/dist/movie/getMovieKeywords.d.mts +13 -0
  247. package/dist/movie/getMovieKeywords.d.mts.map +1 -0
  248. package/dist/movie/getMovieKeywords.mjs +13 -0
  249. package/dist/movie/getMovieKeywords.mjs.map +1 -0
  250. package/dist/movie/getMovieLists.d.mts +44 -0
  251. package/dist/movie/getMovieLists.d.mts.map +1 -0
  252. package/dist/movie/getMovieLists.mjs +20 -0
  253. package/dist/movie/getMovieLists.mjs.map +1 -0
  254. package/dist/movie/getMovieRecommendations.d.mts +44 -0
  255. package/dist/movie/getMovieRecommendations.d.mts.map +1 -0
  256. package/dist/movie/getMovieRecommendations.mjs +20 -0
  257. package/dist/movie/getMovieRecommendations.mjs.map +1 -0
  258. package/dist/movie/getMovieReleaseDates.d.mts +13 -0
  259. package/dist/movie/getMovieReleaseDates.d.mts.map +1 -0
  260. package/dist/movie/getMovieReleaseDates.mjs +14 -0
  261. package/dist/movie/getMovieReleaseDates.mjs.map +1 -0
  262. package/dist/movie/getMovieReviews.d.mts +44 -0
  263. package/dist/movie/getMovieReviews.d.mts.map +1 -0
  264. package/dist/movie/getMovieReviews.mjs +20 -0
  265. package/dist/movie/getMovieReviews.mjs.map +1 -0
  266. package/dist/movie/getMovieTranslations.d.mts +13 -0
  267. package/dist/movie/getMovieTranslations.d.mts.map +1 -0
  268. package/dist/movie/getMovieTranslations.mjs +14 -0
  269. package/dist/movie/getMovieTranslations.mjs.map +1 -0
  270. package/dist/movie/getMovieVideos.d.mts +37 -0
  271. package/dist/movie/getMovieVideos.d.mts.map +1 -0
  272. package/dist/movie/getMovieVideos.mjs +17 -0
  273. package/dist/movie/getMovieVideos.mjs.map +1 -0
  274. package/dist/movie/getMovieWatchProviders.d.mts +13 -0
  275. package/dist/movie/getMovieWatchProviders.d.mts.map +1 -0
  276. package/dist/movie/getMovieWatchProviders.mjs +14 -0
  277. package/dist/movie/getMovieWatchProviders.mjs.map +1 -0
  278. package/dist/movie/getNowPlayingMovies.d.mts +51 -0
  279. package/dist/movie/getNowPlayingMovies.d.mts.map +1 -0
  280. package/dist/movie/getNowPlayingMovies.mjs +19 -0
  281. package/dist/movie/getNowPlayingMovies.mjs.map +1 -0
  282. package/dist/movie/getPopularMovies.d.mts +51 -0
  283. package/dist/movie/getPopularMovies.d.mts.map +1 -0
  284. package/dist/movie/getPopularMovies.mjs +19 -0
  285. package/dist/movie/getPopularMovies.mjs.map +1 -0
  286. package/dist/movie/getSimilarMovies.d.mts +44 -0
  287. package/dist/movie/getSimilarMovies.d.mts.map +1 -0
  288. package/dist/movie/getSimilarMovies.mjs +20 -0
  289. package/dist/movie/getSimilarMovies.mjs.map +1 -0
  290. package/dist/movie/getTopRatedMovies.d.mts +51 -0
  291. package/dist/movie/getTopRatedMovies.d.mts.map +1 -0
  292. package/dist/movie/getTopRatedMovies.mjs +19 -0
  293. package/dist/movie/getTopRatedMovies.mjs.map +1 -0
  294. package/dist/movie/getUpcomingMovies.d.mts +51 -0
  295. package/dist/movie/getUpcomingMovies.d.mts.map +1 -0
  296. package/dist/movie/getUpcomingMovies.mjs +19 -0
  297. package/dist/movie/getUpcomingMovies.mjs.map +1 -0
  298. package/dist/movie/index.d.mts +31 -0
  299. package/dist/movie/index.mjs +30 -0
  300. package/dist/movie/types/MovieAlternativeTitles.d.mts +20 -0
  301. package/dist/movie/types/MovieAlternativeTitles.d.mts.map +1 -0
  302. package/dist/movie/types/MovieAlternativeTitles.mjs +23 -0
  303. package/dist/movie/types/MovieAlternativeTitles.mjs.map +1 -0
  304. package/dist/movie/types/MovieCredits.d.mts +39 -0
  305. package/dist/movie/types/MovieCredits.d.mts.map +1 -0
  306. package/dist/movie/types/MovieCredits.mjs +30 -0
  307. package/dist/movie/types/MovieCredits.mjs.map +1 -0
  308. package/dist/movie/types/MovieDetails.d.mts +145 -0
  309. package/dist/movie/types/MovieDetails.d.mts.map +1 -0
  310. package/dist/movie/types/MovieDetails.mjs +94 -0
  311. package/dist/movie/types/MovieDetails.mjs.map +1 -0
  312. package/dist/movie/types/MovieExternalIds.d.mts +19 -0
  313. package/dist/movie/types/MovieExternalIds.d.mts.map +1 -0
  314. package/dist/movie/types/MovieExternalIds.mjs +22 -0
  315. package/dist/movie/types/MovieExternalIds.mjs.map +1 -0
  316. package/dist/movie/types/MovieKeywords.d.mts +16 -0
  317. package/dist/movie/types/MovieKeywords.d.mts.map +1 -0
  318. package/dist/movie/types/MovieKeywords.mjs +18 -0
  319. package/dist/movie/types/MovieKeywords.mjs.map +1 -0
  320. package/dist/movie/types/MovieListItem.d.mts +116 -0
  321. package/dist/movie/types/MovieListItem.d.mts.map +1 -0
  322. package/dist/movie/types/MovieListItem.mjs +57 -0
  323. package/dist/movie/types/MovieListItem.mjs.map +1 -0
  324. package/dist/movie/types/MovieReleaseDates.d.mts +36 -0
  325. package/dist/movie/types/MovieReleaseDates.d.mts.map +1 -0
  326. package/dist/movie/types/MovieReleaseDates.mjs +45 -0
  327. package/dist/movie/types/MovieReleaseDates.mjs.map +1 -0
  328. package/dist/movie/types/MovieTranslations.d.mts +20 -0
  329. package/dist/movie/types/MovieTranslations.d.mts.map +1 -0
  330. package/dist/movie/types/MovieTranslations.mjs +22 -0
  331. package/dist/movie/types/MovieTranslations.mjs.map +1 -0
  332. package/dist/movie/types/index.d.mts +9 -0
  333. package/dist/movie/types/index.mjs +9 -0
  334. package/dist/network/getNetwork.d.mts +13 -0
  335. package/dist/network/getNetwork.d.mts.map +1 -0
  336. package/dist/network/getNetwork.mjs +14 -0
  337. package/dist/network/getNetwork.mjs.map +1 -0
  338. package/dist/network/getNetworkAlternativeNames.d.mts +13 -0
  339. package/dist/network/getNetworkAlternativeNames.d.mts.map +1 -0
  340. package/dist/network/getNetworkAlternativeNames.mjs +14 -0
  341. package/dist/network/getNetworkAlternativeNames.mjs.map +1 -0
  342. package/dist/network/getNetworkImages.d.mts +13 -0
  343. package/dist/network/getNetworkImages.d.mts.map +1 -0
  344. package/dist/network/getNetworkImages.mjs +14 -0
  345. package/dist/network/getNetworkImages.mjs.map +1 -0
  346. package/dist/network/index.d.mts +6 -0
  347. package/dist/network/index.mjs +5 -0
  348. package/dist/network/types/NetworkDetails.d.mts +19 -0
  349. package/dist/network/types/NetworkDetails.d.mts.map +1 -0
  350. package/dist/network/types/NetworkDetails.mjs +22 -0
  351. package/dist/network/types/NetworkDetails.mjs.map +1 -0
  352. package/dist/network/types/index.d.mts +2 -0
  353. package/dist/network/types/index.mjs +1 -0
  354. package/dist/person/getLatestPerson.d.mts +9 -0
  355. package/dist/person/getLatestPerson.d.mts.map +1 -0
  356. package/dist/person/getLatestPerson.mjs +11 -0
  357. package/dist/person/getLatestPerson.mjs.map +1 -0
  358. package/dist/person/getPerson.d.mts +45 -0
  359. package/dist/person/getPerson.d.mts.map +1 -0
  360. package/dist/person/getPerson.mjs +30 -0
  361. package/dist/person/getPerson.mjs.map +1 -0
  362. package/dist/person/getPersonChangeList.d.mts +50 -0
  363. package/dist/person/getPersonChangeList.d.mts.map +1 -0
  364. package/dist/person/getPersonChangeList.mjs +19 -0
  365. package/dist/person/getPersonChangeList.mjs.map +1 -0
  366. package/dist/person/getPersonChanges.d.mts +51 -0
  367. package/dist/person/getPersonChanges.d.mts.map +1 -0
  368. package/dist/person/getPersonChanges.mjs +22 -0
  369. package/dist/person/getPersonChanges.mjs.map +1 -0
  370. package/dist/person/getPersonCombinedCredits.d.mts +37 -0
  371. package/dist/person/getPersonCombinedCredits.d.mts.map +1 -0
  372. package/dist/person/getPersonCombinedCredits.mjs +16 -0
  373. package/dist/person/getPersonCombinedCredits.mjs.map +1 -0
  374. package/dist/person/getPersonExternalIds.d.mts +13 -0
  375. package/dist/person/getPersonExternalIds.d.mts.map +1 -0
  376. package/dist/person/getPersonExternalIds.mjs +14 -0
  377. package/dist/person/getPersonExternalIds.mjs.map +1 -0
  378. package/dist/person/getPersonImages.d.mts +13 -0
  379. package/dist/person/getPersonImages.d.mts.map +1 -0
  380. package/dist/person/getPersonImages.mjs +14 -0
  381. package/dist/person/getPersonImages.mjs.map +1 -0
  382. package/dist/person/getPersonMovieCredits.d.mts +37 -0
  383. package/dist/person/getPersonMovieCredits.d.mts.map +1 -0
  384. package/dist/person/getPersonMovieCredits.mjs +17 -0
  385. package/dist/person/getPersonMovieCredits.mjs.map +1 -0
  386. package/dist/person/getPersonTaggedImages.d.mts +37 -0
  387. package/dist/person/getPersonTaggedImages.d.mts.map +1 -0
  388. package/dist/person/getPersonTaggedImages.mjs +17 -0
  389. package/dist/person/getPersonTaggedImages.mjs.map +1 -0
  390. package/dist/person/getPersonTranslations.d.mts +13 -0
  391. package/dist/person/getPersonTranslations.d.mts.map +1 -0
  392. package/dist/person/getPersonTranslations.mjs +14 -0
  393. package/dist/person/getPersonTranslations.mjs.map +1 -0
  394. package/dist/person/getPersonTvCredits.d.mts +37 -0
  395. package/dist/person/getPersonTvCredits.d.mts.map +1 -0
  396. package/dist/person/getPersonTvCredits.mjs +17 -0
  397. package/dist/person/getPersonTvCredits.mjs.map +1 -0
  398. package/dist/person/getPopularPeople.d.mts +43 -0
  399. package/dist/person/getPopularPeople.d.mts.map +1 -0
  400. package/dist/person/getPopularPeople.mjs +17 -0
  401. package/dist/person/getPopularPeople.mjs.map +1 -0
  402. package/dist/person/index.d.mts +20 -0
  403. package/dist/person/index.mjs +19 -0
  404. package/dist/person/types/PersonCredits.d.mts +127 -0
  405. package/dist/person/types/PersonCredits.d.mts.map +1 -0
  406. package/dist/person/types/PersonCredits.mjs +81 -0
  407. package/dist/person/types/PersonCredits.mjs.map +1 -0
  408. package/dist/person/types/PersonDetails.d.mts +78 -0
  409. package/dist/person/types/PersonDetails.d.mts.map +1 -0
  410. package/dist/person/types/PersonDetails.mjs +55 -0
  411. package/dist/person/types/PersonDetails.mjs.map +1 -0
  412. package/dist/person/types/PersonExternalIds.d.mts +26 -0
  413. package/dist/person/types/PersonExternalIds.d.mts.map +1 -0
  414. package/dist/person/types/PersonExternalIds.mjs +30 -0
  415. package/dist/person/types/PersonExternalIds.mjs.map +1 -0
  416. package/dist/person/types/PersonListItem.d.mts +75 -0
  417. package/dist/person/types/PersonListItem.d.mts.map +1 -0
  418. package/dist/person/types/PersonListItem.mjs +46 -0
  419. package/dist/person/types/PersonListItem.mjs.map +1 -0
  420. package/dist/person/types/PersonTranslations.d.mts +18 -0
  421. package/dist/person/types/PersonTranslations.d.mts.map +1 -0
  422. package/dist/person/types/PersonTranslations.mjs +19 -0
  423. package/dist/person/types/PersonTranslations.mjs.map +1 -0
  424. package/dist/person/types/TaggedImages.d.mts +36 -0
  425. package/dist/person/types/TaggedImages.d.mts.map +1 -0
  426. package/dist/person/types/TaggedImages.mjs +31 -0
  427. package/dist/person/types/TaggedImages.mjs.map +1 -0
  428. package/dist/person/types/index.d.mts +7 -0
  429. package/dist/person/types/index.mjs +7 -0
  430. package/dist/requests/TmdbSession.d.mts +91 -0
  431. package/dist/requests/TmdbSession.d.mts.map +1 -0
  432. package/dist/requests/TmdbSession.mjs +203 -0
  433. package/dist/requests/TmdbSession.mjs.map +1 -0
  434. package/dist/requests/addParams.d.mts +15 -0
  435. package/dist/requests/addParams.d.mts.map +1 -0
  436. package/dist/requests/addParams.mjs +27 -0
  437. package/dist/requests/addParams.mjs.map +1 -0
  438. package/dist/requests/buildURL.d.mts +11 -0
  439. package/dist/requests/buildURL.d.mts.map +1 -0
  440. package/dist/requests/buildURL.mjs +15 -0
  441. package/dist/requests/buildURL.mjs.map +1 -0
  442. package/dist/requests/index.d.mts +7 -0
  443. package/dist/requests/index.mjs +7 -0
  444. package/dist/requests/methods.d.mts +22 -0
  445. package/dist/requests/methods.d.mts.map +1 -0
  446. package/dist/requests/methods.mjs +16 -0
  447. package/dist/requests/methods.mjs.map +1 -0
  448. package/dist/requests/request.d.mts +28 -0
  449. package/dist/requests/request.d.mts.map +1 -0
  450. package/dist/requests/request.mjs +62 -0
  451. package/dist/requests/request.mjs.map +1 -0
  452. package/dist/requests/toValidated.d.mts +11 -0
  453. package/dist/requests/toValidated.d.mts.map +1 -0
  454. package/dist/requests/toValidated.mjs +24 -0
  455. package/dist/requests/toValidated.mjs.map +1 -0
  456. package/dist/review/getReview.d.mts +13 -0
  457. package/dist/review/getReview.d.mts.map +1 -0
  458. package/dist/review/getReview.mjs +13 -0
  459. package/dist/review/getReview.mjs.map +1 -0
  460. package/dist/review/index.d.mts +4 -0
  461. package/dist/review/index.mjs +3 -0
  462. package/dist/review/types/Review.d.mts +79 -0
  463. package/dist/review/types/Review.d.mts.map +1 -0
  464. package/dist/review/types/Review.mjs +49 -0
  465. package/dist/review/types/Review.mjs.map +1 -0
  466. package/dist/review/types/index.d.mts +2 -0
  467. package/dist/review/types/index.mjs +1 -0
  468. package/dist/search/index.d.mts +8 -0
  469. package/dist/search/index.mjs +8 -0
  470. package/dist/search/searchCollections.d.mts +58 -0
  471. package/dist/search/searchCollections.d.mts.map +1 -0
  472. package/dist/search/searchCollections.mjs +25 -0
  473. package/dist/search/searchCollections.mjs.map +1 -0
  474. package/dist/search/searchCompanies.d.mts +37 -0
  475. package/dist/search/searchCompanies.d.mts.map +1 -0
  476. package/dist/search/searchCompanies.mjs +20 -0
  477. package/dist/search/searchCompanies.mjs.map +1 -0
  478. package/dist/search/searchKeywords.d.mts +37 -0
  479. package/dist/search/searchKeywords.d.mts.map +1 -0
  480. package/dist/search/searchKeywords.mjs +20 -0
  481. package/dist/search/searchKeywords.mjs.map +1 -0
  482. package/dist/search/searchMovies.d.mts +73 -0
  483. package/dist/search/searchMovies.d.mts.map +1 -0
  484. package/dist/search/searchMovies.mjs +28 -0
  485. package/dist/search/searchMovies.mjs.map +1 -0
  486. package/dist/search/searchMulti.d.mts +51 -0
  487. package/dist/search/searchMulti.d.mts.map +1 -0
  488. package/dist/search/searchMulti.mjs +24 -0
  489. package/dist/search/searchMulti.mjs.map +1 -0
  490. package/dist/search/searchPeople.d.mts +51 -0
  491. package/dist/search/searchPeople.d.mts.map +1 -0
  492. package/dist/search/searchPeople.mjs +24 -0
  493. package/dist/search/searchPeople.mjs.map +1 -0
  494. package/dist/search/searchTvSeries.d.mts +67 -0
  495. package/dist/search/searchTvSeries.d.mts.map +1 -0
  496. package/dist/search/searchTvSeries.mjs +28 -0
  497. package/dist/search/searchTvSeries.mjs.map +1 -0
  498. package/dist/trending/getTrending.d.mts +38 -0
  499. package/dist/trending/getTrending.d.mts.map +1 -0
  500. package/dist/trending/getTrending.mjs +18 -0
  501. package/dist/trending/getTrending.mjs.map +1 -0
  502. package/dist/trending/getTrendingMovies.d.mts +38 -0
  503. package/dist/trending/getTrendingMovies.d.mts.map +1 -0
  504. package/dist/trending/getTrendingMovies.mjs +18 -0
  505. package/dist/trending/getTrendingMovies.mjs.map +1 -0
  506. package/dist/trending/getTrendingPeople.d.mts +38 -0
  507. package/dist/trending/getTrendingPeople.d.mts.map +1 -0
  508. package/dist/trending/getTrendingPeople.mjs +18 -0
  509. package/dist/trending/getTrendingPeople.mjs.map +1 -0
  510. package/dist/trending/getTrendingTvSeries.d.mts +38 -0
  511. package/dist/trending/getTrendingTvSeries.d.mts.map +1 -0
  512. package/dist/trending/getTrendingTvSeries.mjs +18 -0
  513. package/dist/trending/getTrendingTvSeries.mjs.map +1 -0
  514. package/dist/trending/index.d.mts +5 -0
  515. package/dist/trending/index.mjs +5 -0
  516. package/dist/tv/getLatestTvSeries.d.mts +9 -0
  517. package/dist/tv/getLatestTvSeries.d.mts.map +1 -0
  518. package/dist/tv/getLatestTvSeries.mjs +11 -0
  519. package/dist/tv/getLatestTvSeries.mjs.map +1 -0
  520. package/dist/tv/getPopularTvSeries.d.mts +43 -0
  521. package/dist/tv/getPopularTvSeries.d.mts.map +1 -0
  522. package/dist/tv/getPopularTvSeries.mjs +17 -0
  523. package/dist/tv/getPopularTvSeries.mjs.map +1 -0
  524. package/dist/tv/getSimilarTvSeries.d.mts +44 -0
  525. package/dist/tv/getSimilarTvSeries.d.mts.map +1 -0
  526. package/dist/tv/getSimilarTvSeries.mjs +20 -0
  527. package/dist/tv/getSimilarTvSeries.mjs.map +1 -0
  528. package/dist/tv/getTopRatedTvSeries.d.mts +43 -0
  529. package/dist/tv/getTopRatedTvSeries.d.mts.map +1 -0
  530. package/dist/tv/getTopRatedTvSeries.mjs +17 -0
  531. package/dist/tv/getTopRatedTvSeries.mjs.map +1 -0
  532. package/dist/tv/getTvChangeList.d.mts +50 -0
  533. package/dist/tv/getTvChangeList.d.mts.map +1 -0
  534. package/dist/tv/getTvChangeList.mjs +19 -0
  535. package/dist/tv/getTvChangeList.mjs.map +1 -0
  536. package/dist/tv/getTvEpisode.d.mts +47 -0
  537. package/dist/tv/getTvEpisode.d.mts.map +1 -0
  538. package/dist/tv/getTvEpisode.mjs +29 -0
  539. package/dist/tv/getTvEpisode.mjs.map +1 -0
  540. package/dist/tv/getTvEpisodeChanges.d.mts +13 -0
  541. package/dist/tv/getTvEpisodeChanges.d.mts.map +1 -0
  542. package/dist/tv/getTvEpisodeChanges.mjs +14 -0
  543. package/dist/tv/getTvEpisodeChanges.mjs.map +1 -0
  544. package/dist/tv/getTvEpisodeCredits.d.mts +39 -0
  545. package/dist/tv/getTvEpisodeCredits.d.mts.map +1 -0
  546. package/dist/tv/getTvEpisodeCredits.mjs +19 -0
  547. package/dist/tv/getTvEpisodeCredits.mjs.map +1 -0
  548. package/dist/tv/getTvEpisodeExternalIds.d.mts +15 -0
  549. package/dist/tv/getTvEpisodeExternalIds.d.mts.map +1 -0
  550. package/dist/tv/getTvEpisodeExternalIds.mjs +18 -0
  551. package/dist/tv/getTvEpisodeExternalIds.mjs.map +1 -0
  552. package/dist/tv/getTvEpisodeGroup.d.mts +13 -0
  553. package/dist/tv/getTvEpisodeGroup.d.mts.map +1 -0
  554. package/dist/tv/getTvEpisodeGroup.mjs +13 -0
  555. package/dist/tv/getTvEpisodeGroup.mjs.map +1 -0
  556. package/dist/tv/getTvEpisodeImages.d.mts +47 -0
  557. package/dist/tv/getTvEpisodeImages.d.mts.map +1 -0
  558. package/dist/tv/getTvEpisodeImages.mjs +23 -0
  559. package/dist/tv/getTvEpisodeImages.mjs.map +1 -0
  560. package/dist/tv/getTvEpisodeTranslations.d.mts +15 -0
  561. package/dist/tv/getTvEpisodeTranslations.d.mts.map +1 -0
  562. package/dist/tv/getTvEpisodeTranslations.mjs +18 -0
  563. package/dist/tv/getTvEpisodeTranslations.mjs.map +1 -0
  564. package/dist/tv/getTvEpisodeVideos.d.mts +47 -0
  565. package/dist/tv/getTvEpisodeVideos.d.mts.map +1 -0
  566. package/dist/tv/getTvEpisodeVideos.mjs +23 -0
  567. package/dist/tv/getTvEpisodeVideos.mjs.map +1 -0
  568. package/dist/tv/getTvSeason.d.mts +46 -0
  569. package/dist/tv/getTvSeason.d.mts.map +1 -0
  570. package/dist/tv/getTvSeason.mjs +30 -0
  571. package/dist/tv/getTvSeason.mjs.map +1 -0
  572. package/dist/tv/getTvSeasonAggregateCredits.d.mts +38 -0
  573. package/dist/tv/getTvSeasonAggregateCredits.d.mts.map +1 -0
  574. package/dist/tv/getTvSeasonAggregateCredits.mjs +18 -0
  575. package/dist/tv/getTvSeasonAggregateCredits.mjs.map +1 -0
  576. package/dist/tv/getTvSeasonChanges.d.mts +51 -0
  577. package/dist/tv/getTvSeasonChanges.d.mts.map +1 -0
  578. package/dist/tv/getTvSeasonChanges.mjs +21 -0
  579. package/dist/tv/getTvSeasonChanges.mjs.map +1 -0
  580. package/dist/tv/getTvSeasonCredits.d.mts +38 -0
  581. package/dist/tv/getTvSeasonCredits.d.mts.map +1 -0
  582. package/dist/tv/getTvSeasonCredits.mjs +18 -0
  583. package/dist/tv/getTvSeasonCredits.mjs.map +1 -0
  584. package/dist/tv/getTvSeasonExternalIds.d.mts +14 -0
  585. package/dist/tv/getTvSeasonExternalIds.d.mts.map +1 -0
  586. package/dist/tv/getTvSeasonExternalIds.mjs +17 -0
  587. package/dist/tv/getTvSeasonExternalIds.mjs.map +1 -0
  588. package/dist/tv/getTvSeasonImages.d.mts +46 -0
  589. package/dist/tv/getTvSeasonImages.d.mts.map +1 -0
  590. package/dist/tv/getTvSeasonImages.mjs +22 -0
  591. package/dist/tv/getTvSeasonImages.mjs.map +1 -0
  592. package/dist/tv/getTvSeasonTranslations.d.mts +14 -0
  593. package/dist/tv/getTvSeasonTranslations.d.mts.map +1 -0
  594. package/dist/tv/getTvSeasonTranslations.mjs +17 -0
  595. package/dist/tv/getTvSeasonTranslations.mjs.map +1 -0
  596. package/dist/tv/getTvSeasonVideos.d.mts +46 -0
  597. package/dist/tv/getTvSeasonVideos.d.mts.map +1 -0
  598. package/dist/tv/getTvSeasonVideos.mjs +22 -0
  599. package/dist/tv/getTvSeasonVideos.mjs.map +1 -0
  600. package/dist/tv/getTvSeasonWatchProviders.d.mts +38 -0
  601. package/dist/tv/getTvSeasonWatchProviders.d.mts.map +1 -0
  602. package/dist/tv/getTvSeasonWatchProviders.mjs +18 -0
  603. package/dist/tv/getTvSeasonWatchProviders.mjs.map +1 -0
  604. package/dist/tv/getTvSeries.d.mts +45 -0
  605. package/dist/tv/getTvSeries.d.mts.map +1 -0
  606. package/dist/tv/getTvSeries.mjs +39 -0
  607. package/dist/tv/getTvSeries.mjs.map +1 -0
  608. package/dist/tv/getTvSeriesAggregateCredits.d.mts +37 -0
  609. package/dist/tv/getTvSeriesAggregateCredits.d.mts.map +1 -0
  610. package/dist/tv/getTvSeriesAggregateCredits.mjs +17 -0
  611. package/dist/tv/getTvSeriesAggregateCredits.mjs.map +1 -0
  612. package/dist/tv/getTvSeriesAiringToday.d.mts +50 -0
  613. package/dist/tv/getTvSeriesAiringToday.d.mts.map +1 -0
  614. package/dist/tv/getTvSeriesAiringToday.mjs +18 -0
  615. package/dist/tv/getTvSeriesAiringToday.mjs.map +1 -0
  616. package/dist/tv/getTvSeriesAlternativeTitles.d.mts +13 -0
  617. package/dist/tv/getTvSeriesAlternativeTitles.d.mts.map +1 -0
  618. package/dist/tv/getTvSeriesAlternativeTitles.mjs +14 -0
  619. package/dist/tv/getTvSeriesAlternativeTitles.mjs.map +1 -0
  620. package/dist/tv/getTvSeriesChanges.d.mts +51 -0
  621. package/dist/tv/getTvSeriesChanges.d.mts.map +1 -0
  622. package/dist/tv/getTvSeriesChanges.mjs +21 -0
  623. package/dist/tv/getTvSeriesChanges.mjs.map +1 -0
  624. package/dist/tv/getTvSeriesContentRatings.d.mts +13 -0
  625. package/dist/tv/getTvSeriesContentRatings.d.mts.map +1 -0
  626. package/dist/tv/getTvSeriesContentRatings.mjs +14 -0
  627. package/dist/tv/getTvSeriesContentRatings.mjs.map +1 -0
  628. package/dist/tv/getTvSeriesCredits.d.mts +37 -0
  629. package/dist/tv/getTvSeriesCredits.d.mts.map +1 -0
  630. package/dist/tv/getTvSeriesCredits.mjs +17 -0
  631. package/dist/tv/getTvSeriesCredits.mjs.map +1 -0
  632. package/dist/tv/getTvSeriesEpisodeGroups.d.mts +13 -0
  633. package/dist/tv/getTvSeriesEpisodeGroups.d.mts.map +1 -0
  634. package/dist/tv/getTvSeriesEpisodeGroups.mjs +14 -0
  635. package/dist/tv/getTvSeriesEpisodeGroups.mjs.map +1 -0
  636. package/dist/tv/getTvSeriesExternalIds.d.mts +13 -0
  637. package/dist/tv/getTvSeriesExternalIds.d.mts.map +1 -0
  638. package/dist/tv/getTvSeriesExternalIds.mjs +14 -0
  639. package/dist/tv/getTvSeriesExternalIds.mjs.map +1 -0
  640. package/dist/tv/getTvSeriesImages.d.mts +45 -0
  641. package/dist/tv/getTvSeriesImages.d.mts.map +1 -0
  642. package/dist/tv/getTvSeriesImages.mjs +21 -0
  643. package/dist/tv/getTvSeriesImages.mjs.map +1 -0
  644. package/dist/tv/getTvSeriesKeywords.d.mts +13 -0
  645. package/dist/tv/getTvSeriesKeywords.d.mts.map +1 -0
  646. package/dist/tv/getTvSeriesKeywords.mjs +14 -0
  647. package/dist/tv/getTvSeriesKeywords.mjs.map +1 -0
  648. package/dist/tv/getTvSeriesLists.d.mts +44 -0
  649. package/dist/tv/getTvSeriesLists.d.mts.map +1 -0
  650. package/dist/tv/getTvSeriesLists.mjs +20 -0
  651. package/dist/tv/getTvSeriesLists.mjs.map +1 -0
  652. package/dist/tv/getTvSeriesOnTheAir.d.mts +50 -0
  653. package/dist/tv/getTvSeriesOnTheAir.d.mts.map +1 -0
  654. package/dist/tv/getTvSeriesOnTheAir.mjs +18 -0
  655. package/dist/tv/getTvSeriesOnTheAir.mjs.map +1 -0
  656. package/dist/tv/getTvSeriesRecommendations.d.mts +44 -0
  657. package/dist/tv/getTvSeriesRecommendations.d.mts.map +1 -0
  658. package/dist/tv/getTvSeriesRecommendations.mjs +20 -0
  659. package/dist/tv/getTvSeriesRecommendations.mjs.map +1 -0
  660. package/dist/tv/getTvSeriesReviews.d.mts +44 -0
  661. package/dist/tv/getTvSeriesReviews.d.mts.map +1 -0
  662. package/dist/tv/getTvSeriesReviews.mjs +20 -0
  663. package/dist/tv/getTvSeriesReviews.mjs.map +1 -0
  664. package/dist/tv/getTvSeriesScreenedTheatrically.d.mts +13 -0
  665. package/dist/tv/getTvSeriesScreenedTheatrically.d.mts.map +1 -0
  666. package/dist/tv/getTvSeriesScreenedTheatrically.mjs +14 -0
  667. package/dist/tv/getTvSeriesScreenedTheatrically.mjs.map +1 -0
  668. package/dist/tv/getTvSeriesTranslations.d.mts +13 -0
  669. package/dist/tv/getTvSeriesTranslations.d.mts.map +1 -0
  670. package/dist/tv/getTvSeriesTranslations.mjs +14 -0
  671. package/dist/tv/getTvSeriesTranslations.mjs.map +1 -0
  672. package/dist/tv/getTvSeriesVideos.d.mts +45 -0
  673. package/dist/tv/getTvSeriesVideos.d.mts.map +1 -0
  674. package/dist/tv/getTvSeriesVideos.mjs +21 -0
  675. package/dist/tv/getTvSeriesVideos.mjs.map +1 -0
  676. package/dist/tv/getTvSeriesWatchProviders.d.mts +13 -0
  677. package/dist/tv/getTvSeriesWatchProviders.d.mts.map +1 -0
  678. package/dist/tv/getTvSeriesWatchProviders.mjs +14 -0
  679. package/dist/tv/getTvSeriesWatchProviders.mjs.map +1 -0
  680. package/dist/tv/index.d.mts +57 -0
  681. package/dist/tv/index.mjs +56 -0
  682. package/dist/tv/types/AggregateCredits.d.mts +53 -0
  683. package/dist/tv/types/AggregateCredits.d.mts.map +1 -0
  684. package/dist/tv/types/AggregateCredits.mjs +41 -0
  685. package/dist/tv/types/AggregateCredits.mjs.map +1 -0
  686. package/dist/tv/types/ContentRatings.d.mts +21 -0
  687. package/dist/tv/types/ContentRatings.d.mts.map +1 -0
  688. package/dist/tv/types/ContentRatings.mjs +24 -0
  689. package/dist/tv/types/ContentRatings.mjs.map +1 -0
  690. package/dist/tv/types/EpisodeGroups.d.mts +64 -0
  691. package/dist/tv/types/EpisodeGroups.d.mts.map +1 -0
  692. package/dist/tv/types/EpisodeGroups.mjs +52 -0
  693. package/dist/tv/types/EpisodeGroups.mjs.map +1 -0
  694. package/dist/tv/types/ScreenedTheatrically.d.mts +19 -0
  695. package/dist/tv/types/ScreenedTheatrically.d.mts.map +1 -0
  696. package/dist/tv/types/ScreenedTheatrically.mjs +22 -0
  697. package/dist/tv/types/ScreenedTheatrically.mjs.map +1 -0
  698. package/dist/tv/types/TvAlternativeTitles.d.mts +20 -0
  699. package/dist/tv/types/TvAlternativeTitles.d.mts.map +1 -0
  700. package/dist/tv/types/TvAlternativeTitles.mjs +23 -0
  701. package/dist/tv/types/TvAlternativeTitles.mjs.map +1 -0
  702. package/dist/tv/types/TvCredits.d.mts +26 -0
  703. package/dist/tv/types/TvCredits.d.mts.map +1 -0
  704. package/dist/tv/types/TvCredits.mjs +27 -0
  705. package/dist/tv/types/TvCredits.mjs.map +1 -0
  706. package/dist/tv/types/TvEpisode.d.mts +48 -0
  707. package/dist/tv/types/TvEpisode.d.mts.map +1 -0
  708. package/dist/tv/types/TvEpisode.mjs +36 -0
  709. package/dist/tv/types/TvEpisode.mjs.map +1 -0
  710. package/dist/tv/types/TvEpisodeDetails.d.mts +62 -0
  711. package/dist/tv/types/TvEpisodeDetails.d.mts.map +1 -0
  712. package/dist/tv/types/TvEpisodeDetails.mjs +36 -0
  713. package/dist/tv/types/TvEpisodeDetails.mjs.map +1 -0
  714. package/dist/tv/types/TvExternalIds.d.mts +47 -0
  715. package/dist/tv/types/TvExternalIds.d.mts.map +1 -0
  716. package/dist/tv/types/TvExternalIds.mjs +50 -0
  717. package/dist/tv/types/TvExternalIds.mjs.map +1 -0
  718. package/dist/tv/types/TvKeywords.d.mts +16 -0
  719. package/dist/tv/types/TvKeywords.d.mts.map +1 -0
  720. package/dist/tv/types/TvKeywords.mjs +18 -0
  721. package/dist/tv/types/TvKeywords.mjs.map +1 -0
  722. package/dist/tv/types/TvListItem.d.mts +106 -0
  723. package/dist/tv/types/TvListItem.d.mts.map +1 -0
  724. package/dist/tv/types/TvListItem.mjs +47 -0
  725. package/dist/tv/types/TvListItem.mjs.map +1 -0
  726. package/dist/tv/types/TvSeasonDetails.d.mts +99 -0
  727. package/dist/tv/types/TvSeasonDetails.d.mts.map +1 -0
  728. package/dist/tv/types/TvSeasonDetails.mjs +57 -0
  729. package/dist/tv/types/TvSeasonDetails.mjs.map +1 -0
  730. package/dist/tv/types/TvSeriesDetails.d.mts +193 -0
  731. package/dist/tv/types/TvSeriesDetails.d.mts.map +1 -0
  732. package/dist/tv/types/TvSeriesDetails.mjs +120 -0
  733. package/dist/tv/types/TvSeriesDetails.mjs.map +1 -0
  734. package/dist/tv/types/TvTranslations.d.mts +26 -0
  735. package/dist/tv/types/TvTranslations.d.mts.map +1 -0
  736. package/dist/tv/types/TvTranslations.mjs +25 -0
  737. package/dist/tv/types/TvTranslations.mjs.map +1 -0
  738. package/dist/tv/types/index.d.mts +15 -0
  739. package/dist/tv/types/index.mjs +15 -0
  740. package/dist/types/AlternativeNames.d.mts +18 -0
  741. package/dist/types/AlternativeNames.d.mts.map +1 -0
  742. package/dist/types/AlternativeNames.mjs +21 -0
  743. package/dist/types/AlternativeNames.mjs.map +1 -0
  744. package/dist/types/ChangeList.d.mts +17 -0
  745. package/dist/types/ChangeList.d.mts.map +1 -0
  746. package/dist/types/ChangeList.mjs +19 -0
  747. package/dist/types/ChangeList.mjs.map +1 -0
  748. package/dist/types/Changes.d.mts +46 -0
  749. package/dist/types/Changes.d.mts.map +1 -0
  750. package/dist/types/Changes.mjs +32 -0
  751. package/dist/types/Changes.mjs.map +1 -0
  752. package/dist/types/Credit.d.mts +89 -0
  753. package/dist/types/Credit.d.mts.map +1 -0
  754. package/dist/types/Credit.mjs +47 -0
  755. package/dist/types/Credit.mjs.map +1 -0
  756. package/dist/types/Genre.d.mts +18 -0
  757. package/dist/types/Genre.d.mts.map +1 -0
  758. package/dist/types/Genre.mjs +18 -0
  759. package/dist/types/Genre.mjs.map +1 -0
  760. package/dist/types/Images.d.mts +99 -0
  761. package/dist/types/Images.d.mts.map +1 -0
  762. package/dist/types/Images.mjs +75 -0
  763. package/dist/types/Images.mjs.map +1 -0
  764. package/dist/types/Keyword.d.mts +22 -0
  765. package/dist/types/Keyword.d.mts.map +1 -0
  766. package/dist/types/Keyword.mjs +21 -0
  767. package/dist/types/Keyword.mjs.map +1 -0
  768. package/dist/types/MediaListItem.d.mts +15 -0
  769. package/dist/types/MediaListItem.d.mts.map +1 -0
  770. package/dist/types/MediaListItem.mjs +21 -0
  771. package/dist/types/MediaListItem.mjs.map +1 -0
  772. package/dist/types/PagedResults.d.mts +26 -0
  773. package/dist/types/PagedResults.d.mts.map +1 -0
  774. package/dist/types/PagedResults.mjs +22 -0
  775. package/dist/types/PagedResults.mjs.map +1 -0
  776. package/dist/types/ProductionCompany.d.mts +24 -0
  777. package/dist/types/ProductionCompany.d.mts.map +1 -0
  778. package/dist/types/ProductionCompany.mjs +21 -0
  779. package/dist/types/ProductionCompany.mjs.map +1 -0
  780. package/dist/types/ProductionCountry.d.mts +20 -0
  781. package/dist/types/ProductionCountry.d.mts.map +1 -0
  782. package/dist/types/ProductionCountry.mjs +18 -0
  783. package/dist/types/ProductionCountry.mjs.map +1 -0
  784. package/dist/types/SpokenLanguage.d.mts +24 -0
  785. package/dist/types/SpokenLanguage.d.mts.map +1 -0
  786. package/dist/types/SpokenLanguage.mjs +20 -0
  787. package/dist/types/SpokenLanguage.mjs.map +1 -0
  788. package/dist/types/Translation.d.mts +27 -0
  789. package/dist/types/Translation.d.mts.map +1 -0
  790. package/dist/types/Translation.mjs +30 -0
  791. package/dist/types/Translation.mjs.map +1 -0
  792. package/dist/types/Video.d.mts +51 -0
  793. package/dist/types/Video.d.mts.map +1 -0
  794. package/dist/types/Video.mjs +37 -0
  795. package/dist/types/Video.mjs.map +1 -0
  796. package/dist/types/index.d.mts +15 -0
  797. package/dist/types/index.mjs +15 -0
  798. package/dist/utils/isNonNullable.d.mts +8 -0
  799. package/dist/utils/isNonNullable.d.mts.map +1 -0
  800. package/dist/utils/isNonNullable.mjs +10 -0
  801. package/dist/utils/isNonNullable.mjs.map +1 -0
  802. package/dist/utils/isObject.d.mts +2 -0
  803. package/dist/utils/isObject.d.mts.map +1 -0
  804. package/dist/utils/isObject.mjs +5 -0
  805. package/dist/utils/isObject.mjs.map +1 -0
  806. package/dist/utils/sleep.d.mts +5 -0
  807. package/dist/utils/sleep.d.mts.map +1 -0
  808. package/dist/utils/sleep.mjs +29 -0
  809. package/dist/utils/sleep.mjs.map +1 -0
  810. package/dist/utils/toCamelCase.d.mts +8 -0
  811. package/dist/utils/toCamelCase.d.mts.map +1 -0
  812. package/dist/utils/toCamelCase.mjs +11 -0
  813. package/dist/utils/toCamelCase.mjs.map +1 -0
  814. package/dist/utils/toCamelKeys.d.mts +17 -0
  815. package/dist/utils/toCamelKeys.d.mts.map +1 -0
  816. package/dist/utils/toCamelKeys.mjs +18 -0
  817. package/dist/utils/toCamelKeys.mjs.map +1 -0
  818. package/dist/utils/toSnakeCase.d.mts +2 -0
  819. package/dist/utils/toSnakeCase.d.mts.map +1 -0
  820. package/dist/utils/toSnakeCase.mjs +5 -0
  821. package/dist/utils/toSnakeCase.mjs.map +1 -0
  822. package/dist/utils/toSnakeKeys.d.mts +21 -0
  823. package/dist/utils/toSnakeKeys.d.mts.map +1 -0
  824. package/dist/utils/toSnakeKeys.mjs +18 -0
  825. package/dist/utils/toSnakeKeys.mjs.map +1 -0
  826. package/dist/validations/index.d.mts +4 -0
  827. package/dist/validations/index.mjs +4 -0
  828. package/dist/validations/integer.d.mts +8 -0
  829. package/dist/validations/integer.d.mts.map +1 -0
  830. package/dist/validations/integer.mjs +11 -0
  831. package/dist/validations/integer.mjs.map +1 -0
  832. package/dist/validations/isoDate.d.mts +4 -0
  833. package/dist/validations/isoDate.d.mts.map +1 -0
  834. package/dist/validations/isoDate.mjs +7 -0
  835. package/dist/validations/isoDate.mjs.map +1 -0
  836. package/dist/validations/schema.d.mts +96 -0
  837. package/dist/validations/schema.d.mts.map +1 -0
  838. package/dist/validations/schema.mjs +118 -0
  839. package/dist/validations/schema.mjs.map +1 -0
  840. package/dist/watch-providers/getMovieWatchProviderList.d.mts +43 -0
  841. package/dist/watch-providers/getMovieWatchProviderList.d.mts.map +1 -0
  842. package/dist/watch-providers/getMovieWatchProviderList.mjs +16 -0
  843. package/dist/watch-providers/getMovieWatchProviderList.mjs.map +1 -0
  844. package/dist/watch-providers/getTvWatchProviderList.d.mts +43 -0
  845. package/dist/watch-providers/getTvWatchProviderList.d.mts.map +1 -0
  846. package/dist/watch-providers/getTvWatchProviderList.mjs +16 -0
  847. package/dist/watch-providers/getTvWatchProviderList.mjs.map +1 -0
  848. package/dist/watch-providers/getWatchProviderRegions.d.mts +36 -0
  849. package/dist/watch-providers/getWatchProviderRegions.d.mts.map +1 -0
  850. package/dist/watch-providers/getWatchProviderRegions.mjs +13 -0
  851. package/dist/watch-providers/getWatchProviderRegions.mjs.map +1 -0
  852. package/dist/watch-providers/index.d.mts +8 -0
  853. package/dist/watch-providers/index.mjs +7 -0
  854. package/dist/watch-providers/types/WatchProviderList.d.mts +22 -0
  855. package/dist/watch-providers/types/WatchProviderList.d.mts.map +1 -0
  856. package/dist/watch-providers/types/WatchProviderList.mjs +22 -0
  857. package/dist/watch-providers/types/WatchProviderList.mjs.map +1 -0
  858. package/dist/watch-providers/types/WatchProviderRegion.d.mts +15 -0
  859. package/dist/watch-providers/types/WatchProviderRegion.d.mts.map +1 -0
  860. package/dist/watch-providers/types/WatchProviderRegion.mjs +14 -0
  861. package/dist/watch-providers/types/WatchProviderRegion.mjs.map +1 -0
  862. package/dist/watch-providers/types/WatchProviders.d.mts +33 -0
  863. package/dist/watch-providers/types/WatchProviders.d.mts.map +1 -0
  864. package/dist/watch-providers/types/WatchProviders.mjs +35 -0
  865. package/dist/watch-providers/types/WatchProviders.mjs.map +1 -0
  866. package/dist/watch-providers/types/index.d.mts +4 -0
  867. package/dist/watch-providers/types/index.mjs +4 -0
  868. package/package.json +39 -3
@@ -0,0 +1,62 @@
1
+ import { tmdb } from "./TmdbSession.mjs";
2
+ import { isObject } from "../utils/isObject.mjs";
3
+ import { toCamelKeys } from "../utils/toCamelKeys.mjs";
4
+ import { toSnakeKeys } from "../utils/toSnakeKeys.mjs";
5
+ // src/requests/request.ts
6
+ /**
7
+ * A structured error thrown when the TMDB API responds with a non-2xx status. TMDB reports failures as `{ status_code, status_message }` in the body; `statusCode` is `0` when the body didn't carry one.
8
+ *
9
+ * The message names the method and path but never the query string, which can hold a v3 `api_key`.
10
+ */
11
+ var TmdbApiError = class extends Error {
12
+ status;
13
+ statusCode;
14
+ statusMessage;
15
+ constructor(status, statusCode, statusMessage, request) {
16
+ const where = request ? ` for ${request.method} ${request.path}` : ``;
17
+ super(`TMDB API error ${status} (${statusCode})${where}: ${statusMessage}`);
18
+ this.name = `TmdbApiError`;
19
+ this.status = status;
20
+ this.statusCode = statusCode;
21
+ this.statusMessage = statusMessage;
22
+ }
23
+ };
24
+ const request = async (resource, method = `GET`, body, options) => {
25
+ if (!tmdb.hasAuth) tmdb.resolveAuth();
26
+ /**
27
+ * Serialize the body. TMDB expects snake_case keys, so the (camelCase) request object is converted before it is stringified.
28
+ */
29
+ const serializeBody = () => {
30
+ if (!body) return body;
31
+ try {
32
+ return JSON.stringify(toSnakeKeys(body));
33
+ } catch (cause) {
34
+ throw new Error(`Failed to serialize request body!`, { cause });
35
+ }
36
+ };
37
+ const res = await tmdb.fetch(resource, {
38
+ method,
39
+ body: serializeBody(),
40
+ signal: options?.signal
41
+ });
42
+ if (!res.ok) {
43
+ let statusCode = 0;
44
+ let statusMessage = res.statusText;
45
+ try {
46
+ const err = await res.json();
47
+ if (isObject(err)) {
48
+ if (typeof err.status_code === `number`) statusCode = err.status_code;
49
+ if (typeof err.status_message === `string`) statusMessage = err.status_message;
50
+ }
51
+ } catch {}
52
+ throw new TmdbApiError(res.status, statusCode, statusMessage, {
53
+ method,
54
+ path: resource.pathname
55
+ });
56
+ }
57
+ if (res.status === 204) return;
58
+ return toCamelKeys(await res.json());
59
+ };
60
+ export { TmdbApiError, request };
61
+
62
+ //# sourceMappingURL=request.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.mjs","names":[],"sources":["../../src/requests/request.ts"],"sourcesContent":["import { tmdb } from \"./TmdbSession.js\";\nimport { isObject } from \"../utils/isObject.js\";\nimport { toCamelKeys } from \"../utils/toCamelKeys.js\";\nimport { toSnakeKeys } from \"../utils/toSnakeKeys.js\";\n\nexport type RequestBody = object | null | undefined;\n\n/**\n * The HTTP methods the TMDB REST API uses, and the only ones the typed helpers in `methods.ts` emit. Most of TMDB is read-only `GET`; the account, list, rating and session endpoints also `POST` and `DELETE`.\n */\nexport type RequestMethod = `GET` | `POST` | `PUT` | `PATCH` | `DELETE`;\n\n/**\n * Per-call options a {@link Fetcher} accepts as its last argument and forwards to the request layer.\n */\nexport interface RequestOptions {\n /** Abort the request: while it waits for a rate-limit slot, while it is in flight, or while it backs off before a retry. */\n signal?: AbortSignal;\n}\n\n/**\n * A structured error thrown when the TMDB API responds with a non-2xx status. TMDB reports failures as `{ status_code, status_message }` in the body; `statusCode` is `0` when the body didn't carry one.\n *\n * The message names the method and path but never the query string, which can hold a v3 `api_key`.\n */\nexport class TmdbApiError extends Error {\n readonly status: number;\n readonly statusCode: number;\n readonly statusMessage: string;\n\n constructor(\n status: number,\n statusCode: number,\n statusMessage: string,\n request?: { method: RequestMethod; path: string }\n ) {\n const where = request ? ` for ${request.method} ${request.path}` : ``;\n super(`TMDB API error ${status} (${statusCode})${where}: ${statusMessage}`);\n this.name = `TmdbApiError`;\n this.status = status;\n this.statusCode = statusCode;\n this.statusMessage = statusMessage;\n }\n}\n\nexport const request = async <T>(\n resource: URL,\n method: RequestMethod = `GET`,\n body?: RequestBody,\n options?: RequestOptions\n): Promise<T> => {\n // Fail early with a clear message if no credentials are configured.\n if (!tmdb.hasAuth) {\n tmdb.resolveAuth(); // throws the canonical \"No TMDB credentials\" error\n }\n\n /**\n * Serialize the body. TMDB expects snake_case keys, so the (camelCase) request object is converted before it is stringified.\n */\n const serializeBody = (): string | null | undefined => {\n if (!body) return body;\n try {\n return JSON.stringify(toSnakeKeys(body));\n } catch (cause) {\n throw new Error(`Failed to serialize request body!`, { cause });\n }\n };\n\n const res = await tmdb.fetch(resource, {\n method,\n body: serializeBody(),\n signal: options?.signal\n });\n\n if (!res.ok) {\n let statusCode = 0;\n let statusMessage = res.statusText;\n try {\n const err: unknown = await res.json();\n if (isObject(err)) {\n if (typeof err.status_code === `number`) statusCode = err.status_code;\n if (typeof err.status_message === `string`) {\n statusMessage = err.status_message;\n }\n }\n } catch {\n // Body was not JSON — fall back to the status text.\n }\n throw new TmdbApiError(res.status, statusCode, statusMessage, {\n method,\n path: resource.pathname\n });\n }\n\n // Return `void` on `204 No Content` responses.\n if (res.status === 204) {\n // @ts-expect-error\n return;\n }\n\n // TMDB is snake_case on the wire; convert to camelCase at the boundary so the rest of the app is camelCase.\n return toCamelKeys(await res.json());\n};\n"],"mappings":";;;;;;;;;;AAyBA,IAAa,eAAb,cAAkC,MAAM;CACtC;CACA;CACA;CAEA,YACE,QACA,YACA,eACA,SACA;EACA,MAAM,QAAQ,UAAU,QAAQ,QAAQ,OAAO,GAAG,QAAQ,SAAS;EACnE,MAAM,kBAAkB,OAAO,IAAI,WAAW,GAAG,MAAM,IAAI,eAAe;EAC1E,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,aAAa;EAClB,KAAK,gBAAgB;CACvB;AACF;AAEA,MAAa,UAAU,OACrB,UACA,SAAwB,OACxB,MACA,YACe;CAEf,IAAI,CAAC,KAAK,SACR,KAAK,YAAY;;;;CAMnB,MAAM,sBAAiD;EACrD,IAAI,CAAC,MAAM,OAAO;EAClB,IAAI;GACF,OAAO,KAAK,UAAU,YAAY,IAAI,CAAC;EACzC,SAAS,OAAO;GACd,MAAM,IAAI,MAAM,qCAAqC,EAAE,MAAM,CAAC;EAChE;CACF;CAEA,MAAM,MAAM,MAAM,KAAK,MAAM,UAAU;EACrC;EACA,MAAM,cAAc;EACpB,QAAQ,SAAS;CACnB,CAAC;CAED,IAAI,CAAC,IAAI,IAAI;EACX,IAAI,aAAa;EACjB,IAAI,gBAAgB,IAAI;EACxB,IAAI;GACF,MAAM,MAAe,MAAM,IAAI,KAAK;GACpC,IAAI,SAAS,GAAG,GAAG;IACjB,IAAI,OAAO,IAAI,gBAAgB,UAAU,aAAa,IAAI;IAC1D,IAAI,OAAO,IAAI,mBAAmB,UAChC,gBAAgB,IAAI;GAExB;EACF,QAAQ,CAER;EACA,MAAM,IAAI,aAAa,IAAI,QAAQ,YAAY,eAAe;GAC5D;GACA,MAAM,SAAS;EACjB,CAAC;CACH;CAGA,IAAI,IAAI,WAAW,KAEjB;CAIF,OAAO,YAAY,MAAM,IAAI,KAAK,CAAC;AACrC"}
@@ -0,0 +1,11 @@
1
+ import { Fetcher } from "./methods.mjs";
2
+ import { GenericSchema, GenericSchemaAsync } from "valibot";
3
+ /**
4
+ * Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.
5
+ *
6
+ * The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.
7
+ *
8
+ * @__NO_SIDE_EFFECTS__
9
+ */
10
+ export declare const toValidated: <S extends GenericSchema | GenericSchemaAsync | null = null, R = void>(fn: Fetcher<S, R>, input?: S | null, output?: GenericSchema<unknown, R> | GenericSchemaAsync<unknown, R>) => Fetcher<S, R>;
11
+ //# sourceMappingURL=toValidated.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toValidated.d.mts","names":[],"sources":["../../src/requests/toValidated.ts"],"mappings":";;;;;;;;;qBAgBa,cACX,UAAU,gBAAgB,kCAC1B,UAEA,IAAI,QAAQ,GAAG,IACf,QAAQ,UACR,SAAS,uBAAuB,KAAK,4BAA4B,OAChE,QAAQ,GAAG"}
@@ -0,0 +1,24 @@
1
+ import { isOfKind, safeParseAsync, summarize } from "valibot";
2
+ // src/requests/toValidated.ts
3
+ /**
4
+ * Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.
5
+ *
6
+ * The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.
7
+ *
8
+ * @__NO_SIDE_EFFECTS__
9
+ */
10
+ const toValidated = (fn, input, output) => new Proxy(fn, { async apply(target, _, args) {
11
+ if (input && isOfKind(`schema`, input)) {
12
+ const { issues } = await safeParseAsync(input, args[0]);
13
+ if (issues) throw new Error(`Failed to parse input schema: ${input.reference.name}\n\n${summarize(issues)}`);
14
+ }
15
+ const result = await target(...args);
16
+ if (output && isOfKind(`schema`, output)) {
17
+ const { issues } = await safeParseAsync(output, result);
18
+ if (issues) throw new Error(`Failed to parse output schema: ${output.reference.name}\n\n${summarize(issues)}`);
19
+ }
20
+ return result;
21
+ } });
22
+ export { toValidated };
23
+
24
+ //# sourceMappingURL=toValidated.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toValidated.mjs","names":["call"],"sources":["../../src/requests/toValidated.ts"],"sourcesContent":["import {\n type GenericSchema,\n type GenericSchemaAsync,\n isOfKind,\n safeParseAsync,\n summarize\n} from \"valibot\";\nimport type { Fetcher } from \"./methods.js\";\n\n/**\n * Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.\n *\n * The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const toValidated = <\n S extends GenericSchema | GenericSchemaAsync | null = null,\n R = void\n>(\n fn: Fetcher<S, R>,\n input?: S | null,\n output?: GenericSchema<unknown, R> | GenericSchemaAsync<unknown, R>\n): Fetcher<S, R> =>\n new Proxy<Fetcher<S, R>>(fn, {\n async apply(target, _, args: unknown[]): Promise<R> {\n // Validate the fetcher args before fetching. Fetchers without an input schema take only the options.\n if (input && isOfKind(`schema`, input)) {\n const { issues } = await safeParseAsync(input, args[0]);\n if (issues) {\n throw new Error(\n `Failed to parse input schema: ${input.reference.name}\\n\\n${summarize(issues)}`\n );\n }\n }\n\n // Forward every argument, including the per-call options (signal). `Fetcher<S, R>` is a conditional type, so the proxy target can't be called without erasing it first; the result is `R` by the fetcher's own signature.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const call = target as unknown as (\n ...rest: unknown[]\n ) => Promise<unknown>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const result = (await call(...args)) as R;\n\n // Validate the result of the fetch call before returning.\n if (output && isOfKind(`schema`, output)) {\n const { issues } = await safeParseAsync(output, result);\n if (issues) {\n throw new Error(\n `Failed to parse output schema: ${output.reference.name}\\n\\n${summarize(issues)}`\n );\n }\n }\n\n return result;\n }\n });\n"],"mappings":";;;;;;;;;AAgBA,MAAa,eAIX,IACA,OACA,WAEA,IAAI,MAAqB,IAAI,EAC3B,MAAM,MAAM,QAAQ,GAAG,MAA6B;CAElD,IAAI,SAAS,SAAS,UAAU,KAAK,GAAG;EACtC,MAAM,EAAE,WAAW,MAAM,eAAe,OAAO,KAAK,EAAE;EACtD,IAAI,QACF,MAAM,IAAI,MACR,iCAAiC,MAAM,UAAU,KAAK,MAAM,UAAU,MAAM,GAC9E;CAEJ;CAQA,MAAM,SAAU,MAAMA,OAAK,GAAG,IAAI;CAGlC,IAAI,UAAU,SAAS,UAAU,MAAM,GAAG;EACxC,MAAM,EAAE,WAAW,MAAM,eAAe,QAAQ,MAAM;EACtD,IAAI,QACF,MAAM,IAAI,MACR,kCAAkC,OAAO,UAAU,KAAK,MAAM,UAAU,MAAM,GAChF;CAEJ;CAEA,OAAO;AACT,EACF,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Fetcher } from "../requests/methods.mjs";
2
+ import { ReviewDetails } from "./types/Review.mjs";
3
+ import * as v from "valibot";
4
+ export declare const getReviewSchema: v.ObjectSchema<{
5
+ readonly reviewId: v.StringSchema<undefined>;
6
+ }, undefined>;
7
+ /**
8
+ * ### [Details](https://developer.themoviedb.org/reference/review-details)
9
+ *
10
+ * **GET** `/review/{review_id}`
11
+ */
12
+ export declare const getReview: Fetcher<typeof getReviewSchema, ReviewDetails>;
13
+ //# sourceMappingURL=getReview.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getReview.d.mts","names":[],"sources":["../../src/review/getReview.ts"],"mappings":";;;qBAIa,iBAAe,EAAA;;;;;;;;qBASf,WAAW,eAAe,iBAAiB"}
@@ -0,0 +1,13 @@
1
+ import { get } from "../requests/methods.mjs";
2
+ import * as v from "valibot";
3
+ // src/review/getReview.ts
4
+ const getReviewSchema = v.object({ reviewId: v.string() });
5
+ /**
6
+ * ### [Details](https://developer.themoviedb.org/reference/review-details)
7
+ *
8
+ * **GET** `/review/{review_id}`
9
+ */
10
+ const getReview = async ({ reviewId }, options) => get(`/review/${encodeURIComponent(reviewId)}`, void 0, options);
11
+ export { getReview, getReviewSchema };
12
+
13
+ //# sourceMappingURL=getReview.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getReview.mjs","names":[],"sources":["../../src/review/getReview.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport type { ReviewDetails } from \"./types/Review.js\";\n\nexport const getReviewSchema = v.object({\n reviewId: v.string()\n});\n\n/**\n * ### [Details](https://developer.themoviedb.org/reference/review-details)\n *\n * **GET** `/review/{review_id}`\n */\nexport const getReview: Fetcher<typeof getReviewSchema, ReviewDetails> = async (\n { reviewId },\n options\n) => get(`/review/${encodeURIComponent(reviewId)}`, undefined, options);\n"],"mappings":";;;AAIA,MAAa,kBAAkB,EAAE,OAAO,EACtC,UAAU,EAAE,OAAO,EACrB,CAAC;;;;;;AAOD,MAAa,YAA4D,OACvE,EAAE,YACF,YACG,IAAI,WAAW,mBAAmB,QAAQ,KAAK,KAAA,GAAW,OAAO"}
@@ -0,0 +1,4 @@
1
+ import { Review, ReviewDetails, Reviews, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./types/Review.mjs";
2
+ import { getReview, getReviewSchema } from "./getReview.mjs";
3
+ import "./types/index.mjs";
4
+ export { Review, ReviewDetails, Reviews, getReview, getReviewSchema, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
@@ -0,0 +1,3 @@
1
+ import { reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./types/Review.mjs";
2
+ import { getReview, getReviewSchema } from "./getReview.mjs";
3
+ export { getReview, getReviewSchema, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
@@ -0,0 +1,79 @@
1
+ import * as v from "valibot";
2
+ export declare const reviewEntries: {
3
+ readonly id: v.StringSchema<undefined>;
4
+ readonly author: v.StringSchema<undefined>;
5
+ readonly authorDetails: v.ObjectSchema<{
6
+ /** `""` when the author hasn't set one. */
7
+ readonly name: v.StringSchema<undefined>;
8
+ readonly username: v.StringSchema<undefined>;
9
+ readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10
+ /** Out of 10, or `null` when the review has no rating. */
11
+ readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
12
+ }, undefined>;
13
+ readonly content: v.StringSchema<undefined>;
14
+ /** ISO 8601 timestamp. */
15
+ readonly createdAt: v.StringSchema<undefined>;
16
+ readonly updatedAt: v.StringSchema<undefined>;
17
+ readonly url: v.StringSchema<undefined>;
18
+ };
19
+ declare const _reviewSchema: v.ObjectSchema<{
20
+ readonly id: v.StringSchema<undefined>;
21
+ readonly author: v.StringSchema<undefined>;
22
+ readonly authorDetails: v.ObjectSchema<{
23
+ /** `""` when the author hasn't set one. */
24
+ readonly name: v.StringSchema<undefined>;
25
+ readonly username: v.StringSchema<undefined>;
26
+ readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
27
+ /** Out of 10, or `null` when the review has no rating. */
28
+ readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
29
+ }, undefined>;
30
+ readonly content: v.StringSchema<undefined>;
31
+ /** ISO 8601 timestamp. */
32
+ readonly createdAt: v.StringSchema<undefined>;
33
+ readonly updatedAt: v.StringSchema<undefined>;
34
+ readonly url: v.StringSchema<undefined>;
35
+ }, undefined>;
36
+ export interface Review extends v.InferOutput<typeof _reviewSchema> {}
37
+ /**
38
+ * ### Review
39
+ *
40
+ * A user review of a movie or TV series.
41
+ */
42
+ export declare const reviewSchema: v.GenericSchema<Review>;
43
+ declare const _reviewsSchema: v.ObjectSchema<{
44
+ readonly results: v.ArraySchema<v.GenericSchema<Review>, undefined>;
45
+ readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
46
+ readonly totalPages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
47
+ readonly totalResults: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
48
+ readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
49
+ }, undefined>;
50
+ export interface Reviews extends v.InferOutput<typeof _reviewsSchema> {}
51
+ /** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */
52
+ export declare const reviewsSchema: v.GenericSchema<Reviews>;
53
+ declare const _reviewDetailsSchema: v.ObjectSchema<{
54
+ readonly iso_639_1: v.StringSchema<undefined>;
55
+ readonly mediaId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
56
+ readonly mediaTitle: v.StringSchema<undefined>;
57
+ /** `movie` or `tv`. */
58
+ readonly mediaType: v.StringSchema<undefined>;
59
+ readonly id: v.StringSchema<undefined>;
60
+ readonly author: v.StringSchema<undefined>;
61
+ readonly authorDetails: v.ObjectSchema<{
62
+ /** `""` when the author hasn't set one. */
63
+ readonly name: v.StringSchema<undefined>;
64
+ readonly username: v.StringSchema<undefined>;
65
+ readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
66
+ /** Out of 10, or `null` when the review has no rating. */
67
+ readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
68
+ }, undefined>;
69
+ readonly content: v.StringSchema<undefined>;
70
+ /** ISO 8601 timestamp. */
71
+ readonly createdAt: v.StringSchema<undefined>;
72
+ readonly updatedAt: v.StringSchema<undefined>;
73
+ readonly url: v.StringSchema<undefined>;
74
+ }, undefined>;
75
+ export interface ReviewDetails extends v.InferOutput<typeof _reviewDetailsSchema> {}
76
+ /** One review with the title it's about (`getReview`). */
77
+ export declare const reviewDetailsSchema: v.GenericSchema<ReviewDetails>;
78
+ export {};
79
+ //# sourceMappingURL=Review.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Review.d.mts","names":[],"sources":["../../../src/review/types/Review.ts"],"mappings":";qBAKa;;;;;;;;;;;;;;;;;cAkBP,eAAa,EAAA;;;;;;;;;;;;;;;;;iBAEF,eAAe,EAAE,mBAAmB;;;;;;qBAOxC,cAAY,EAAA,cAAA;cAEnB,gBAAc,EAAA;;;;;;;iBAMH,gBAAgB,EAAE,mBAAmB;;qBAGzC,eAAa,EAAA,cAAA;cAEpB,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;iBAST,sBAAsB,EAAE,mBAChC;;qBAII,qBAAmB,EAAA,cAAA"}
@@ -0,0 +1,49 @@
1
+ import { schema } from "../../validations/schema.mjs";
2
+ import { integer } from "../../validations/integer.mjs";
3
+ import { pageEntries } from "../../types/PagedResults.mjs";
4
+ import * as v from "valibot";
5
+ // src/review/types/Review.ts
6
+ const reviewEntries = {
7
+ id: v.string(),
8
+ author: v.string(),
9
+ authorDetails: v.object({
10
+ /** `""` when the author hasn't set one. */
11
+ name: v.string(),
12
+ username: v.string(),
13
+ avatarPath: v.nullable(v.string()),
14
+ /** Out of 10, or `null` when the review has no rating. */
15
+ rating: v.nullable(v.number())
16
+ }),
17
+ content: v.string(),
18
+ /** ISO 8601 timestamp. */
19
+ createdAt: v.string(),
20
+ updatedAt: v.string(),
21
+ url: v.string()
22
+ };
23
+ const _reviewSchema = v.object(reviewEntries);
24
+ /**
25
+ * ### Review
26
+ *
27
+ * A user review of a movie or TV series.
28
+ */
29
+ const reviewSchema = schema(_reviewSchema);
30
+ const _reviewsSchema = v.object({
31
+ id: integer,
32
+ ...pageEntries,
33
+ results: v.array(reviewSchema)
34
+ });
35
+ /** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */
36
+ const reviewsSchema = schema(_reviewsSchema);
37
+ const _reviewDetailsSchema = v.object({
38
+ ...reviewEntries,
39
+ iso_639_1: v.string(),
40
+ mediaId: integer,
41
+ mediaTitle: v.string(),
42
+ /** `movie` or `tv`. */
43
+ mediaType: v.string()
44
+ });
45
+ /** One review with the title it's about (`getReview`). */
46
+ const reviewDetailsSchema = schema(_reviewDetailsSchema);
47
+ export { reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
48
+
49
+ //# sourceMappingURL=Review.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Review.mjs","names":[],"sources":["../../../src/review/types/Review.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\nimport { pageEntries } from \"../../types/PagedResults.js\";\n\nexport const reviewEntries = {\n id: v.string(),\n author: v.string(),\n authorDetails: v.object({\n /** `\"\"` when the author hasn't set one. */\n name: v.string(),\n username: v.string(),\n avatarPath: v.nullable(v.string()),\n /** Out of 10, or `null` when the review has no rating. */\n rating: v.nullable(v.number())\n }),\n content: v.string(),\n /** ISO 8601 timestamp. */\n createdAt: v.string(),\n updatedAt: v.string(),\n url: v.string()\n} as const;\n\nconst _reviewSchema = v.object(reviewEntries);\n\nexport interface Review extends v.InferOutput<typeof _reviewSchema> {}\n\n/**\n * ### Review\n *\n * A user review of a movie or TV series.\n */\nexport const reviewSchema = schema<Review>(_reviewSchema);\n\nconst _reviewsSchema = v.object({\n id: integer,\n ...pageEntries,\n results: v.array(reviewSchema)\n});\n\nexport interface Reviews extends v.InferOutput<typeof _reviewsSchema> {}\n\n/** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */\nexport const reviewsSchema = schema<Reviews>(_reviewsSchema);\n\nconst _reviewDetailsSchema = v.object({\n ...reviewEntries,\n iso_639_1: v.string(),\n mediaId: integer,\n mediaTitle: v.string(),\n /** `movie` or `tv`. */\n mediaType: v.string()\n});\n\nexport interface ReviewDetails extends v.InferOutput<\n typeof _reviewDetailsSchema\n> {}\n\n/** One review with the title it's about (`getReview`). */\nexport const reviewDetailsSchema = schema<ReviewDetails>(_reviewDetailsSchema);\n"],"mappings":";;;;;AAKA,MAAa,gBAAgB;CAC3B,IAAI,EAAE,OAAO;CACb,QAAQ,EAAE,OAAO;CACjB,eAAe,EAAE,OAAO;;EAEtB,MAAM,EAAE,OAAO;EACf,UAAU,EAAE,OAAO;EACnB,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC;;EAEjC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,CAAC;CACD,SAAS,EAAE,OAAO;;CAElB,WAAW,EAAE,OAAO;CACpB,WAAW,EAAE,OAAO;CACpB,KAAK,EAAE,OAAO;AAChB;AAEA,MAAM,gBAAgB,EAAE,OAAO,aAAa;;;;;;AAS5C,MAAa,eAAe,OAAe,aAAa;AAExD,MAAM,iBAAiB,EAAE,OAAO;CAC9B,IAAI;CACJ,GAAG;CACH,SAAS,EAAE,MAAM,YAAY;AAC/B,CAAC;;AAKD,MAAa,gBAAgB,OAAgB,cAAc;AAE3D,MAAM,uBAAuB,EAAE,OAAO;CACpC,GAAG;CACH,WAAW,EAAE,OAAO;CACpB,SAAS;CACT,YAAY,EAAE,OAAO;;CAErB,WAAW,EAAE,OAAO;AACtB,CAAC;;AAOD,MAAa,sBAAsB,OAAsB,oBAAoB"}
@@ -0,0 +1,2 @@
1
+ import { Review, ReviewDetails, Reviews, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./Review.mjs";
2
+ export { Review, ReviewDetails, Reviews, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
@@ -0,0 +1 @@
1
+ export { reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./Review.mjs";
@@ -0,0 +1,8 @@
1
+ import { searchCollections, searchCollectionsSchema } from "./searchCollections.mjs";
2
+ import { searchCompanies, searchCompaniesSchema } from "./searchCompanies.mjs";
3
+ import { searchKeywords, searchKeywordsSchema } from "./searchKeywords.mjs";
4
+ import { searchMovies, searchMoviesSchema } from "./searchMovies.mjs";
5
+ import { searchMulti, searchMultiSchema } from "./searchMulti.mjs";
6
+ import { searchPeople, searchPeopleSchema } from "./searchPeople.mjs";
7
+ import { searchTvSeries, searchTvSeriesSchema } from "./searchTvSeries.mjs";
8
+ export { searchCollections, searchCollectionsSchema, searchCompanies, searchCompaniesSchema, searchKeywords, searchKeywordsSchema, searchMovies, searchMoviesSchema, searchMulti, searchMultiSchema, searchPeople, searchPeopleSchema, searchTvSeries, searchTvSeriesSchema };
@@ -0,0 +1,8 @@
1
+ import { searchCollections, searchCollectionsSchema } from "./searchCollections.mjs";
2
+ import { searchCompanies, searchCompaniesSchema } from "./searchCompanies.mjs";
3
+ import { searchKeywords, searchKeywordsSchema } from "./searchKeywords.mjs";
4
+ import { searchMovies, searchMoviesSchema } from "./searchMovies.mjs";
5
+ import { searchMulti, searchMultiSchema } from "./searchMulti.mjs";
6
+ import { searchPeople, searchPeopleSchema } from "./searchPeople.mjs";
7
+ import { searchTvSeries, searchTvSeriesSchema } from "./searchTvSeries.mjs";
8
+ export { searchCollections, searchCollectionsSchema, searchCompanies, searchCompaniesSchema, searchKeywords, searchKeywordsSchema, searchMovies, searchMoviesSchema, searchMulti, searchMultiSchema, searchPeople, searchPeopleSchema, searchTvSeries, searchTvSeriesSchema };
@@ -0,0 +1,58 @@
1
+ import { Fetcher } from "../requests/methods.mjs";
2
+ import { PagedCollectionResults } from "../collection/types/CollectionListItem.mjs";
3
+ import * as v from "valibot";
4
+ export declare const searchCollectionsSchema: v.ObjectSchema<{
5
+ readonly query: v.StringSchema<undefined>;
6
+ readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
7
+ readonly includeAdult: v.BooleanSchema<undefined>;
8
+ readonly language: v.StringSchema<undefined>;
9
+ readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
10
+ readonly region: v.StringSchema<undefined>;
11
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
12
+ readonly entries: {
13
+ readonly includeAdult: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
14
+ readonly language: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
15
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
16
+ readonly region: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
17
+ };
18
+ readonly "~standard": v.StandardProps<{
19
+ includeAdult?: boolean | undefined;
20
+ language?: string | undefined;
21
+ page?: number | undefined;
22
+ region?: string | undefined;
23
+ }, {
24
+ includeAdult?: boolean | undefined;
25
+ language?: string | undefined;
26
+ page?: number | undefined;
27
+ region?: string | undefined;
28
+ }>;
29
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
30
+ includeAdult?: boolean | undefined;
31
+ language?: string | undefined;
32
+ page?: number | undefined;
33
+ region?: string | undefined;
34
+ }, v.StringIssue | v.ObjectIssue | v.BooleanIssue | v.NumberIssue | v.IntegerIssue<number>>;
35
+ readonly "~types"?: {
36
+ readonly input: {
37
+ includeAdult?: boolean | undefined;
38
+ language?: string | undefined;
39
+ page?: number | undefined;
40
+ region?: string | undefined;
41
+ };
42
+ readonly output: {
43
+ includeAdult?: boolean | undefined;
44
+ language?: string | undefined;
45
+ page?: number | undefined;
46
+ region?: string | undefined;
47
+ };
48
+ readonly issue: v.StringIssue | v.ObjectIssue | v.BooleanIssue | v.NumberIssue | v.IntegerIssue<number>;
49
+ } | undefined;
50
+ }, undefined>;
51
+ }, undefined>;
52
+ /**
53
+ * ### [Collection](https://developer.themoviedb.org/reference/search-collection)
54
+ *
55
+ * **GET** `/search/collection`
56
+ */
57
+ export declare const searchCollections: Fetcher<typeof searchCollectionsSchema, PagedCollectionResults>;
58
+ //# sourceMappingURL=searchCollections.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchCollections.d.mts","names":[],"sources":["../../src/search/searchCollections.ts"],"mappings":";;;qBAKa,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmBvB,mBAAmB,eACvB,yBACP"}
@@ -0,0 +1,25 @@
1
+ import { get } from "../requests/methods.mjs";
2
+ import { integer } from "../validations/integer.mjs";
3
+ import * as v from "valibot";
4
+ // src/search/searchCollections.ts
5
+ const searchCollectionsSchema = v.object({
6
+ query: v.string(),
7
+ params: v.exactOptional(v.partial(v.object({
8
+ includeAdult: v.boolean(),
9
+ language: v.string(),
10
+ page: integer,
11
+ region: v.string()
12
+ })))
13
+ });
14
+ /**
15
+ * ### [Collection](https://developer.themoviedb.org/reference/search-collection)
16
+ *
17
+ * **GET** `/search/collection`
18
+ */
19
+ const searchCollections = async ({ query, params }, options) => get(`/search/collection`, {
20
+ ...params,
21
+ query
22
+ }, options);
23
+ export { searchCollections, searchCollectionsSchema };
24
+
25
+ //# sourceMappingURL=searchCollections.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchCollections.mjs","names":[],"sources":["../../src/search/searchCollections.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedCollectionResults } from \"../collection/types/CollectionListItem.js\";\n\nexport const searchCollectionsSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n includeAdult: v.boolean(),\n language: v.string(),\n page: integer,\n region: v.string()\n })\n )\n )\n});\n\n/**\n * ### [Collection](https://developer.themoviedb.org/reference/search-collection)\n *\n * **GET** `/search/collection`\n */\nexport const searchCollections: Fetcher<\n typeof searchCollectionsSchema,\n PagedCollectionResults\n> = async ({ query, params }, options) =>\n get(`/search/collection`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO;EACP,cAAc,EAAE,QAAQ;EACxB,UAAU,EAAE,OAAO;EACnB,MAAM;EACN,QAAQ,EAAE,OAAO;CACnB,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,oBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,sBAAsB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}
@@ -0,0 +1,37 @@
1
+ import { Fetcher } from "../requests/methods.mjs";
2
+ import { PagedCompanyResults } from "../company/types/CompanyListItem.mjs";
3
+ import * as v from "valibot";
4
+ export declare const searchCompaniesSchema: v.ObjectSchema<{
5
+ readonly query: v.StringSchema<undefined>;
6
+ readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
7
+ readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
8
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
9
+ readonly entries: {
10
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
11
+ };
12
+ readonly "~standard": v.StandardProps<{
13
+ page?: number | undefined;
14
+ }, {
15
+ page?: number | undefined;
16
+ }>;
17
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
18
+ page?: number | undefined;
19
+ }, v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>>;
20
+ readonly "~types"?: {
21
+ readonly input: {
22
+ page?: number | undefined;
23
+ };
24
+ readonly output: {
25
+ page?: number | undefined;
26
+ };
27
+ readonly issue: v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>;
28
+ } | undefined;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ /**
32
+ * ### [Company](https://developer.themoviedb.org/reference/search-company)
33
+ *
34
+ * **GET** `/search/company`
35
+ */
36
+ export declare const searchCompanies: Fetcher<typeof searchCompaniesSchema, PagedCompanyResults>;
37
+ //# sourceMappingURL=searchCompanies.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchCompanies.d.mts","names":[],"sources":["../../src/search/searchCompanies.ts"],"mappings":";;;qBAKa,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgBrB,iBAAiB,eACrB,uBACP"}
@@ -0,0 +1,20 @@
1
+ import { get } from "../requests/methods.mjs";
2
+ import { integer } from "../validations/integer.mjs";
3
+ import * as v from "valibot";
4
+ // src/search/searchCompanies.ts
5
+ const searchCompaniesSchema = v.object({
6
+ query: v.string(),
7
+ params: v.exactOptional(v.partial(v.object({ page: integer })))
8
+ });
9
+ /**
10
+ * ### [Company](https://developer.themoviedb.org/reference/search-company)
11
+ *
12
+ * **GET** `/search/company`
13
+ */
14
+ const searchCompanies = async ({ query, params }, options) => get(`/search/company`, {
15
+ ...params,
16
+ query
17
+ }, options);
18
+ export { searchCompanies, searchCompaniesSchema };
19
+
20
+ //# sourceMappingURL=searchCompanies.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchCompanies.mjs","names":[],"sources":["../../src/search/searchCompanies.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedCompanyResults } from \"../company/types/CompanyListItem.js\";\n\nexport const searchCompaniesSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n page: integer\n })\n )\n )\n});\n\n/**\n * ### [Company](https://developer.themoviedb.org/reference/search-company)\n *\n * **GET** `/search/company`\n */\nexport const searchCompanies: Fetcher<\n typeof searchCompaniesSchema,\n PagedCompanyResults\n> = async ({ query, params }, options) =>\n get(`/search/company`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO,EACP,MAAM,QACR,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,kBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,mBAAmB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}
@@ -0,0 +1,37 @@
1
+ import { Fetcher } from "../requests/methods.mjs";
2
+ import { PagedKeywordResults } from "../types/Keyword.mjs";
3
+ import * as v from "valibot";
4
+ export declare const searchKeywordsSchema: v.ObjectSchema<{
5
+ readonly query: v.StringSchema<undefined>;
6
+ readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
7
+ readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
8
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
9
+ readonly entries: {
10
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
11
+ };
12
+ readonly "~standard": v.StandardProps<{
13
+ page?: number | undefined;
14
+ }, {
15
+ page?: number | undefined;
16
+ }>;
17
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
18
+ page?: number | undefined;
19
+ }, v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>>;
20
+ readonly "~types"?: {
21
+ readonly input: {
22
+ page?: number | undefined;
23
+ };
24
+ readonly output: {
25
+ page?: number | undefined;
26
+ };
27
+ readonly issue: v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>;
28
+ } | undefined;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ /**
32
+ * ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)
33
+ *
34
+ * **GET** `/search/keyword`
35
+ */
36
+ export declare const searchKeywords: Fetcher<typeof searchKeywordsSchema, PagedKeywordResults>;
37
+ //# sourceMappingURL=searchKeywords.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchKeywords.d.mts","names":[],"sources":["../../src/search/searchKeywords.ts"],"mappings":";;;qBAKa,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgBpB,gBAAgB,eACpB,sBACP"}
@@ -0,0 +1,20 @@
1
+ import { get } from "../requests/methods.mjs";
2
+ import { integer } from "../validations/integer.mjs";
3
+ import * as v from "valibot";
4
+ // src/search/searchKeywords.ts
5
+ const searchKeywordsSchema = v.object({
6
+ query: v.string(),
7
+ params: v.exactOptional(v.partial(v.object({ page: integer })))
8
+ });
9
+ /**
10
+ * ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)
11
+ *
12
+ * **GET** `/search/keyword`
13
+ */
14
+ const searchKeywords = async ({ query, params }, options) => get(`/search/keyword`, {
15
+ ...params,
16
+ query
17
+ }, options);
18
+ export { searchKeywords, searchKeywordsSchema };
19
+
20
+ //# sourceMappingURL=searchKeywords.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchKeywords.mjs","names":[],"sources":["../../src/search/searchKeywords.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedKeywordResults } from \"../types/Keyword.js\";\n\nexport const searchKeywordsSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n page: integer\n })\n )\n )\n});\n\n/**\n * ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)\n *\n * **GET** `/search/keyword`\n */\nexport const searchKeywords: Fetcher<\n typeof searchKeywordsSchema,\n PagedKeywordResults\n> = async ({ query, params }, options) =>\n get(`/search/keyword`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO,EACP,MAAM,QACR,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,iBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,mBAAmB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}