@fubar-it-co/tmdb-client 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/CHANGELOG.md +256 -0
- package/LICENSE +21 -0
- package/README.md +122 -0
- package/eslint.config.js +15 -0
- package/openapi-ts.config.ts +43 -0
- package/package.json +46 -0
- package/publish-local.sh +86 -0
- package/publish.sh +114 -0
- package/scripts/add-ts-nocheck.js +85 -0
- package/src/client/@tanstack/react-query.gen.ts +4398 -0
- package/src/client/client/client.gen.ts +289 -0
- package/src/client/client/index.ts +26 -0
- package/src/client/client/types.gen.ts +214 -0
- package/src/client/client/utils.gen.ts +317 -0
- package/src/client/client.gen.ts +19 -0
- package/src/client/core/auth.gen.ts +42 -0
- package/src/client/core/bodySerializer.gen.ts +85 -0
- package/src/client/core/params.gen.ts +170 -0
- package/src/client/core/pathSerializer.gen.ts +172 -0
- package/src/client/core/queryKeySerializer.gen.ts +118 -0
- package/src/client/core/serverSentEvents.gen.ts +244 -0
- package/src/client/core/types.gen.ts +105 -0
- package/src/client/core/utils.gen.ts +141 -0
- package/src/client/index.ts +6 -0
- package/src/client/sdk.gen.ts +1682 -0
- package/src/client/types.gen.ts +9574 -0
- package/src/index.ts +28 -0
- package/src/tmdb-config.ts +47 -0
- package/src/types/errors.ts +32 -0
- package/src/vite-env.d.ts +9 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,1682 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
5
|
+
import { client } from './client.gen';
|
|
6
|
+
import type { AccountAddFavoriteData, AccountAddFavoriteResponses, AccountAddToWatchlistData, AccountAddToWatchlistResponses, AccountDetailsData, AccountDetailsResponses, AccountFavoriteTvData, AccountFavoriteTvResponses, AccountGetFavoritesData, AccountGetFavoritesResponses, AccountListsData, AccountListsResponses, AccountRatedMoviesData, AccountRatedMoviesResponses, AccountRatedTvData, AccountRatedTvEpisodesData, AccountRatedTvEpisodesResponses, AccountRatedTvResponses, AccountWatchlistMoviesData, AccountWatchlistMoviesResponses, AccountWatchlistTvData, AccountWatchlistTvResponses, AlternativeNamesCopyData, AlternativeNamesCopyResponses, AuthenticationCreateGuestSessionData, AuthenticationCreateGuestSessionResponses, AuthenticationCreateRequestTokenData, AuthenticationCreateRequestTokenResponses, AuthenticationCreateSessionData, AuthenticationCreateSessionFromLoginData, AuthenticationCreateSessionFromLoginResponses, AuthenticationCreateSessionFromV4TokenData, AuthenticationCreateSessionFromV4TokenResponses, AuthenticationCreateSessionResponses, AuthenticationDeleteSessionData, AuthenticationDeleteSessionResponses, AuthenticationValidateKeyData, AuthenticationValidateKeyErrors, AuthenticationValidateKeyResponses, CertificationMovieListData, CertificationMovieListResponses, CertificationsTvListData, CertificationsTvListResponses, ChangesMovieListData, ChangesMovieListResponses, ChangesPeopleListData, ChangesPeopleListResponses, ChangesTvListData, ChangesTvListResponses, CollectionDetailsData, CollectionDetailsResponses, CollectionImagesData, CollectionImagesResponses, CollectionTranslationsData, CollectionTranslationsResponses, CompanyAlternativeNamesData, CompanyAlternativeNamesResponses, CompanyDetailsData, CompanyDetailsResponses, CompanyImagesData, CompanyImagesResponses, ConfigurationCountriesData, ConfigurationCountriesResponses, ConfigurationDetailsData, ConfigurationDetailsResponses, ConfigurationJobsData, ConfigurationJobsResponses, ConfigurationLanguagesData, ConfigurationLanguagesResponses, ConfigurationPrimaryTranslationsData, ConfigurationPrimaryTranslationsResponses, ConfigurationTimezonesData, ConfigurationTimezonesResponses, CreditDetailsData, CreditDetailsResponses, DetailsCopyData, DetailsCopyResponses, DiscoverMovieData, DiscoverMovieResponses, DiscoverTvData, DiscoverTvResponses, FindByIdData, FindByIdResponses, GenreMovieListData, GenreMovieListResponses, GenreTvListData, GenreTvListResponses, GuestSessionRatedMoviesData, GuestSessionRatedMoviesResponses, GuestSessionRatedTvData, GuestSessionRatedTvEpisodesData, GuestSessionRatedTvEpisodesResponses, GuestSessionRatedTvResponses, KeywordDetailsData, KeywordDetailsResponses, KeywordMoviesData, KeywordMoviesResponses, ListAddMovieData, ListAddMovieResponses, ListCheckItemStatusData, ListCheckItemStatusResponses, ListClearData, ListClearResponses, ListCreateData, ListCreateResponses, ListDeleteData, ListDeleteResponses, ListDetailsData, ListDetailsResponses, ListRemoveMovieData, ListRemoveMovieResponses, ListsCopyData, ListsCopyResponses, MovieAccountStatesData, MovieAccountStatesResponses, MovieAddRatingData, MovieAddRatingResponses, MovieAlternativeTitlesData, MovieAlternativeTitlesResponses, MovieChangesData, MovieChangesResponses, MovieCreditsData, MovieCreditsResponses, MovieDeleteRatingData, MovieDeleteRatingResponses, MovieDetailsData, MovieDetailsResponses, MovieExternalIdsData, MovieExternalIdsResponses, MovieImagesData, MovieImagesResponses, MovieKeywordsData, MovieKeywordsResponses, MovieLatestIdData, MovieLatestIdResponses, MovieListsData, MovieListsResponses, MovieNowPlayingListData, MovieNowPlayingListResponses, MoviePopularListData, MoviePopularListResponses, MovieRecommendationsData, MovieRecommendationsResponses, MovieReleaseDatesData, MovieReleaseDatesResponses, MovieReviewsData, MovieReviewsResponses, MovieSimilarData, MovieSimilarResponses, MovieTopRatedListData, MovieTopRatedListResponses, MovieTranslationsData, MovieTranslationsResponses, MovieUpcomingListData, MovieUpcomingListResponses, MovieVideosData, MovieVideosResponses, MovieWatchProvidersData, MovieWatchProvidersResponses, NetworkDetailsData, NetworkDetailsResponses, PersonChangesData, PersonChangesResponses, PersonCombinedCreditsData, PersonCombinedCreditsResponses, PersonDetailsData, PersonDetailsResponses, PersonExternalIdsData, PersonExternalIdsResponses, PersonImagesData, PersonImagesResponses, PersonLatestIdData, PersonLatestIdResponses, PersonMovieCreditsData, PersonMovieCreditsResponses, PersonPopularListData, PersonPopularListResponses, PersonTaggedImagesData, PersonTaggedImagesResponses, PersonTvCreditsData, PersonTvCreditsResponses, ReviewDetailsData, ReviewDetailsResponses, SearchCollectionData, SearchCollectionResponses, SearchCompanyData, SearchCompanyResponses, SearchKeywordData, SearchKeywordResponses, SearchMovieData, SearchMovieResponses, SearchMultiData, SearchMultiResponses, SearchPersonData, SearchPersonResponses, SearchTvData, SearchTvResponses, TranslationsData, TranslationsResponses, TrendingAllData, TrendingAllResponses, TrendingMoviesData, TrendingMoviesResponses, TrendingPeopleData, TrendingPeopleResponses, TrendingTvData, TrendingTvResponses, TvEpisodeAccountStatesData, TvEpisodeAccountStatesResponses, TvEpisodeAddRatingData, TvEpisodeAddRatingResponses, TvEpisodeChangesByIdData, TvEpisodeChangesByIdResponses, TvEpisodeCreditsData, TvEpisodeCreditsResponses, TvEpisodeDeleteRatingData, TvEpisodeDeleteRatingResponses, TvEpisodeDetailsData, TvEpisodeDetailsResponses, TvEpisodeExternalIdsData, TvEpisodeExternalIdsResponses, TvEpisodeGroupDetailsData, TvEpisodeGroupDetailsResponses, TvEpisodeImagesData, TvEpisodeImagesResponses, TvEpisodeTranslationsData, TvEpisodeTranslationsResponses, TvEpisodeVideosData, TvEpisodeVideosResponses, TvSeasonAccountStatesData, TvSeasonAccountStatesResponses, TvSeasonAggregateCreditsData, TvSeasonAggregateCreditsResponses, TvSeasonChangesByIdData, TvSeasonChangesByIdResponses, TvSeasonCreditsData, TvSeasonCreditsResponses, TvSeasonDetailsData, TvSeasonDetailsResponses, TvSeasonExternalIdsData, TvSeasonExternalIdsResponses, TvSeasonImagesData, TvSeasonImagesResponses, TvSeasonTranslationsData, TvSeasonTranslationsResponses, TvSeasonVideosData, TvSeasonVideosResponses, TvSeasonWatchProvidersData, TvSeasonWatchProvidersResponses, TvSeriesAccountStatesData, TvSeriesAccountStatesResponses, TvSeriesAddRatingData, TvSeriesAddRatingResponses, TvSeriesAggregateCreditsData, TvSeriesAggregateCreditsResponses, TvSeriesAiringTodayListData, TvSeriesAiringTodayListResponses, TvSeriesAlternativeTitlesData, TvSeriesAlternativeTitlesResponses, TvSeriesChangesData, TvSeriesChangesResponses, TvSeriesContentRatingsData, TvSeriesContentRatingsResponses, TvSeriesCreditsData, TvSeriesCreditsResponses, TvSeriesDeleteRatingData, TvSeriesDeleteRatingResponses, TvSeriesDetailsData, TvSeriesDetailsResponses, TvSeriesEpisodeGroupsData, TvSeriesEpisodeGroupsResponses, TvSeriesExternalIdsData, TvSeriesExternalIdsResponses, TvSeriesImagesData, TvSeriesImagesResponses, TvSeriesKeywordsData, TvSeriesKeywordsResponses, TvSeriesLatestIdData, TvSeriesLatestIdResponses, TvSeriesOnTheAirListData, TvSeriesOnTheAirListResponses, TvSeriesPopularListData, TvSeriesPopularListResponses, TvSeriesRecommendationsData, TvSeriesRecommendationsResponses, TvSeriesReviewsData, TvSeriesReviewsResponses, TvSeriesScreenedTheatricallyData, TvSeriesScreenedTheatricallyResponses, TvSeriesSimilarData, TvSeriesSimilarResponses, TvSeriesTopRatedListData, TvSeriesTopRatedListResponses, TvSeriesTranslationsData, TvSeriesTranslationsResponses, TvSeriesVideosData, TvSeriesVideosResponses, TvSeriesWatchProvidersData, TvSeriesWatchProvidersResponses, WatchProvidersAvailableRegionsData, WatchProvidersAvailableRegionsResponses, WatchProvidersMovieListData, WatchProvidersMovieListResponses, WatchProviderTvListData, WatchProviderTvListResponses } from './types.gen';
|
|
7
|
+
|
|
8
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
9
|
+
/**
|
|
10
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
11
|
+
* individual options. This might be also useful if you want to implement a
|
|
12
|
+
* custom client.
|
|
13
|
+
*/
|
|
14
|
+
client?: Client;
|
|
15
|
+
/**
|
|
16
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
17
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
18
|
+
*/
|
|
19
|
+
meta?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Validate Key
|
|
24
|
+
*
|
|
25
|
+
* Test your API Key to see if it's valid.
|
|
26
|
+
*/
|
|
27
|
+
export const authenticationValidateKey = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationValidateKeyData, ThrowOnError>) => (options?.client ?? client).get<AuthenticationValidateKeyResponses, AuthenticationValidateKeyErrors, ThrowOnError>({
|
|
28
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
29
|
+
url: '/3/authentication',
|
|
30
|
+
...options
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Details
|
|
35
|
+
*
|
|
36
|
+
* Get the public details of an account on TMDB.
|
|
37
|
+
*/
|
|
38
|
+
export const accountDetails = <ThrowOnError extends boolean = false>(options: Options<AccountDetailsData, ThrowOnError>) => (options.client ?? client).get<AccountDetailsResponses, unknown, ThrowOnError>({
|
|
39
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
40
|
+
url: '/3/account/{account_id}',
|
|
41
|
+
...options
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Add Favorite
|
|
46
|
+
*
|
|
47
|
+
* Mark a movie or TV show as a favourite.
|
|
48
|
+
*/
|
|
49
|
+
export const accountAddFavorite = <ThrowOnError extends boolean = false>(options: Options<AccountAddFavoriteData, ThrowOnError>) => (options.client ?? client).post<AccountAddFavoriteResponses, unknown, ThrowOnError>({
|
|
50
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
51
|
+
url: '/3/account/{account_id}/favorite',
|
|
52
|
+
...options,
|
|
53
|
+
headers: {
|
|
54
|
+
'Content-Type': 'application/json',
|
|
55
|
+
...options.headers
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Add To Watchlist
|
|
61
|
+
*
|
|
62
|
+
* Add a movie or TV show to your watchlist.
|
|
63
|
+
*/
|
|
64
|
+
export const accountAddToWatchlist = <ThrowOnError extends boolean = false>(options: Options<AccountAddToWatchlistData, ThrowOnError>) => (options.client ?? client).post<AccountAddToWatchlistResponses, unknown, ThrowOnError>({
|
|
65
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
66
|
+
url: '/3/account/{account_id}/watchlist',
|
|
67
|
+
...options,
|
|
68
|
+
headers: {
|
|
69
|
+
'Content-Type': 'application/json',
|
|
70
|
+
...options.headers
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Favorite Movies
|
|
76
|
+
*
|
|
77
|
+
* Get a users list of favourite movies.
|
|
78
|
+
*/
|
|
79
|
+
export const accountGetFavorites = <ThrowOnError extends boolean = false>(options: Options<AccountGetFavoritesData, ThrowOnError>) => (options.client ?? client).get<AccountGetFavoritesResponses, unknown, ThrowOnError>({
|
|
80
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
81
|
+
url: '/3/account/{account_id}/favorite/movies',
|
|
82
|
+
...options
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Favorite TV
|
|
87
|
+
*
|
|
88
|
+
* Get a users list of favourite TV shows.
|
|
89
|
+
*/
|
|
90
|
+
export const accountFavoriteTv = <ThrowOnError extends boolean = false>(options: Options<AccountFavoriteTvData, ThrowOnError>) => (options.client ?? client).get<AccountFavoriteTvResponses, unknown, ThrowOnError>({
|
|
91
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
92
|
+
url: '/3/account/{account_id}/favorite/tv',
|
|
93
|
+
...options
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Lists
|
|
98
|
+
*
|
|
99
|
+
* Get a users list of custom lists.
|
|
100
|
+
*/
|
|
101
|
+
export const accountLists = <ThrowOnError extends boolean = false>(options: Options<AccountListsData, ThrowOnError>) => (options.client ?? client).get<AccountListsResponses, unknown, ThrowOnError>({
|
|
102
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
103
|
+
url: '/3/account/{account_id}/lists',
|
|
104
|
+
...options
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Rated Movies
|
|
109
|
+
*
|
|
110
|
+
* Get a users list of rated movies.
|
|
111
|
+
*/
|
|
112
|
+
export const accountRatedMovies = <ThrowOnError extends boolean = false>(options: Options<AccountRatedMoviesData, ThrowOnError>) => (options.client ?? client).get<AccountRatedMoviesResponses, unknown, ThrowOnError>({
|
|
113
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
114
|
+
url: '/3/account/{account_id}/rated/movies',
|
|
115
|
+
...options
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Rated TV
|
|
120
|
+
*
|
|
121
|
+
* Get a users list of rated TV shows.
|
|
122
|
+
*/
|
|
123
|
+
export const accountRatedTv = <ThrowOnError extends boolean = false>(options: Options<AccountRatedTvData, ThrowOnError>) => (options.client ?? client).get<AccountRatedTvResponses, unknown, ThrowOnError>({
|
|
124
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
125
|
+
url: '/3/account/{account_id}/rated/tv',
|
|
126
|
+
...options
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Rated TV Episodes
|
|
131
|
+
*
|
|
132
|
+
* Get a users list of rated TV episodes.
|
|
133
|
+
*/
|
|
134
|
+
export const accountRatedTvEpisodes = <ThrowOnError extends boolean = false>(options: Options<AccountRatedTvEpisodesData, ThrowOnError>) => (options.client ?? client).get<AccountRatedTvEpisodesResponses, unknown, ThrowOnError>({
|
|
135
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
136
|
+
url: '/3/account/{account_id}/rated/tv/episodes',
|
|
137
|
+
...options
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Watchlist Movies
|
|
142
|
+
*
|
|
143
|
+
* Get a list of movies added to a users watchlist.
|
|
144
|
+
*/
|
|
145
|
+
export const accountWatchlistMovies = <ThrowOnError extends boolean = false>(options: Options<AccountWatchlistMoviesData, ThrowOnError>) => (options.client ?? client).get<AccountWatchlistMoviesResponses, unknown, ThrowOnError>({
|
|
146
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
147
|
+
url: '/3/account/{account_id}/watchlist/movies',
|
|
148
|
+
...options
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Watchlist TV
|
|
153
|
+
*
|
|
154
|
+
* Get a list of TV shows added to a users watchlist.
|
|
155
|
+
*/
|
|
156
|
+
export const accountWatchlistTv = <ThrowOnError extends boolean = false>(options: Options<AccountWatchlistTvData, ThrowOnError>) => (options.client ?? client).get<AccountWatchlistTvResponses, unknown, ThrowOnError>({
|
|
157
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
158
|
+
url: '/3/account/{account_id}/watchlist/tv',
|
|
159
|
+
...options
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Create Guest Session
|
|
164
|
+
*/
|
|
165
|
+
export const authenticationCreateGuestSession = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationCreateGuestSessionData, ThrowOnError>) => (options?.client ?? client).get<AuthenticationCreateGuestSessionResponses, unknown, ThrowOnError>({
|
|
166
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
167
|
+
url: '/3/authentication/guest_session/new',
|
|
168
|
+
...options
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Create Request Token
|
|
173
|
+
*/
|
|
174
|
+
export const authenticationCreateRequestToken = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationCreateRequestTokenData, ThrowOnError>) => (options?.client ?? client).get<AuthenticationCreateRequestTokenResponses, unknown, ThrowOnError>({
|
|
175
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
176
|
+
url: '/3/authentication/token/new',
|
|
177
|
+
...options
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Create Session
|
|
182
|
+
*/
|
|
183
|
+
export const authenticationCreateSession = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationCreateSessionData, ThrowOnError>) => (options?.client ?? client).post<AuthenticationCreateSessionResponses, unknown, ThrowOnError>({
|
|
184
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
185
|
+
url: '/3/authentication/session/new',
|
|
186
|
+
...options,
|
|
187
|
+
headers: {
|
|
188
|
+
'Content-Type': 'application/json',
|
|
189
|
+
...options?.headers
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Create Session (from v4 token)
|
|
195
|
+
*/
|
|
196
|
+
export const authenticationCreateSessionFromV4Token = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationCreateSessionFromV4TokenData, ThrowOnError>) => (options?.client ?? client).post<AuthenticationCreateSessionFromV4TokenResponses, unknown, ThrowOnError>({
|
|
197
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
198
|
+
url: '/3/authentication/session/convert/4',
|
|
199
|
+
...options,
|
|
200
|
+
headers: {
|
|
201
|
+
'Content-Type': 'application/json',
|
|
202
|
+
...options?.headers
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Create Session (with login)
|
|
208
|
+
*
|
|
209
|
+
* This method allows an application to validate a request token by entering a username and password.
|
|
210
|
+
*/
|
|
211
|
+
export const authenticationCreateSessionFromLogin = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationCreateSessionFromLoginData, ThrowOnError>) => (options?.client ?? client).post<AuthenticationCreateSessionFromLoginResponses, unknown, ThrowOnError>({
|
|
212
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
213
|
+
url: '/3/authentication/token/validate_with_login',
|
|
214
|
+
...options,
|
|
215
|
+
headers: {
|
|
216
|
+
'Content-Type': 'application/json',
|
|
217
|
+
...options?.headers
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Delete Session
|
|
223
|
+
*/
|
|
224
|
+
export const authenticationDeleteSession = <ThrowOnError extends boolean = false>(options?: Options<AuthenticationDeleteSessionData, ThrowOnError>) => (options?.client ?? client).delete<AuthenticationDeleteSessionResponses, unknown, ThrowOnError>({
|
|
225
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
226
|
+
url: '/3/authentication/session',
|
|
227
|
+
...options,
|
|
228
|
+
headers: {
|
|
229
|
+
'Content-Type': 'application/json',
|
|
230
|
+
...options?.headers
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Movie Certifications
|
|
236
|
+
*
|
|
237
|
+
* Get an up to date list of the officially supported movie certifications on TMDB.
|
|
238
|
+
*/
|
|
239
|
+
export const certificationMovieList = <ThrowOnError extends boolean = false>(options?: Options<CertificationMovieListData, ThrowOnError>) => (options?.client ?? client).get<CertificationMovieListResponses, unknown, ThrowOnError>({
|
|
240
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
241
|
+
url: '/3/certification/movie/list',
|
|
242
|
+
...options
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* TV Certifications
|
|
247
|
+
*/
|
|
248
|
+
export const certificationsTvList = <ThrowOnError extends boolean = false>(options?: Options<CertificationsTvListData, ThrowOnError>) => (options?.client ?? client).get<CertificationsTvListResponses, unknown, ThrowOnError>({
|
|
249
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
250
|
+
url: '/3/certification/tv/list',
|
|
251
|
+
...options
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Movie List
|
|
256
|
+
*
|
|
257
|
+
* Get a list of all of the movie ids that have been changed in the past 24 hours.
|
|
258
|
+
*/
|
|
259
|
+
export const changesMovieList = <ThrowOnError extends boolean = false>(options?: Options<ChangesMovieListData, ThrowOnError>) => (options?.client ?? client).get<ChangesMovieListResponses, unknown, ThrowOnError>({
|
|
260
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
261
|
+
url: '/3/movie/changes',
|
|
262
|
+
...options
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* People List
|
|
267
|
+
*/
|
|
268
|
+
export const changesPeopleList = <ThrowOnError extends boolean = false>(options?: Options<ChangesPeopleListData, ThrowOnError>) => (options?.client ?? client).get<ChangesPeopleListResponses, unknown, ThrowOnError>({
|
|
269
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
270
|
+
url: '/3/person/changes',
|
|
271
|
+
...options
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* TV List
|
|
276
|
+
*/
|
|
277
|
+
export const changesTvList = <ThrowOnError extends boolean = false>(options?: Options<ChangesTvListData, ThrowOnError>) => (options?.client ?? client).get<ChangesTvListResponses, unknown, ThrowOnError>({
|
|
278
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
279
|
+
url: '/3/tv/changes',
|
|
280
|
+
...options
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Details
|
|
285
|
+
*
|
|
286
|
+
* Get collection details by ID.
|
|
287
|
+
*/
|
|
288
|
+
export const collectionDetails = <ThrowOnError extends boolean = false>(options: Options<CollectionDetailsData, ThrowOnError>) => (options.client ?? client).get<CollectionDetailsResponses, unknown, ThrowOnError>({
|
|
289
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
290
|
+
url: '/3/collection/{collection_id}',
|
|
291
|
+
...options
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Images
|
|
296
|
+
*
|
|
297
|
+
* Get the images that belong to a collection.
|
|
298
|
+
*/
|
|
299
|
+
export const collectionImages = <ThrowOnError extends boolean = false>(options: Options<CollectionImagesData, ThrowOnError>) => (options.client ?? client).get<CollectionImagesResponses, unknown, ThrowOnError>({
|
|
300
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
301
|
+
url: '/3/collection/{collection_id}/images',
|
|
302
|
+
...options
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Translations
|
|
307
|
+
*/
|
|
308
|
+
export const collectionTranslations = <ThrowOnError extends boolean = false>(options: Options<CollectionTranslationsData, ThrowOnError>) => (options.client ?? client).get<CollectionTranslationsResponses, unknown, ThrowOnError>({
|
|
309
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
310
|
+
url: '/3/collection/{collection_id}/translations',
|
|
311
|
+
...options
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Details
|
|
316
|
+
*
|
|
317
|
+
* Get the company details by ID.
|
|
318
|
+
*/
|
|
319
|
+
export const companyDetails = <ThrowOnError extends boolean = false>(options: Options<CompanyDetailsData, ThrowOnError>) => (options.client ?? client).get<CompanyDetailsResponses, unknown, ThrowOnError>({
|
|
320
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
321
|
+
url: '/3/company/{company_id}',
|
|
322
|
+
...options
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Alternative Names
|
|
327
|
+
*
|
|
328
|
+
* Get the company details by ID.
|
|
329
|
+
*/
|
|
330
|
+
export const companyAlternativeNames = <ThrowOnError extends boolean = false>(options: Options<CompanyAlternativeNamesData, ThrowOnError>) => (options.client ?? client).get<CompanyAlternativeNamesResponses, unknown, ThrowOnError>({
|
|
331
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
332
|
+
url: '/3/company/{company_id}/alternative_names',
|
|
333
|
+
...options
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Images
|
|
338
|
+
*
|
|
339
|
+
* Get the company logos by id.
|
|
340
|
+
*/
|
|
341
|
+
export const companyImages = <ThrowOnError extends boolean = false>(options: Options<CompanyImagesData, ThrowOnError>) => (options.client ?? client).get<CompanyImagesResponses, unknown, ThrowOnError>({
|
|
342
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
343
|
+
url: '/3/company/{company_id}/images',
|
|
344
|
+
...options
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Details
|
|
349
|
+
*
|
|
350
|
+
* Query the API configuration details.
|
|
351
|
+
*/
|
|
352
|
+
export const configurationDetails = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationDetailsData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationDetailsResponses, unknown, ThrowOnError>({
|
|
353
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
354
|
+
url: '/3/configuration',
|
|
355
|
+
...options
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Countries
|
|
360
|
+
*
|
|
361
|
+
* Get the list of countries (ISO 3166-1 tags) used throughout TMDB.
|
|
362
|
+
*/
|
|
363
|
+
export const configurationCountries = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationCountriesData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationCountriesResponses, unknown, ThrowOnError>({
|
|
364
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
365
|
+
url: '/3/configuration/countries',
|
|
366
|
+
...options
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Jobs
|
|
371
|
+
*
|
|
372
|
+
* Get the list of the jobs and departments we use on TMDB.
|
|
373
|
+
*/
|
|
374
|
+
export const configurationJobs = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationJobsData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationJobsResponses, unknown, ThrowOnError>({
|
|
375
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
376
|
+
url: '/3/configuration/jobs',
|
|
377
|
+
...options
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Languages
|
|
382
|
+
*
|
|
383
|
+
* Get the list of languages (ISO 639-1 tags) used throughout TMDB.
|
|
384
|
+
*/
|
|
385
|
+
export const configurationLanguages = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationLanguagesData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationLanguagesResponses, unknown, ThrowOnError>({
|
|
386
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
387
|
+
url: '/3/configuration/languages',
|
|
388
|
+
...options
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Primary Translations
|
|
393
|
+
*
|
|
394
|
+
* Get a list of the officially supported translations on TMDB.
|
|
395
|
+
*/
|
|
396
|
+
export const configurationPrimaryTranslations = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationPrimaryTranslationsData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationPrimaryTranslationsResponses, unknown, ThrowOnError>({
|
|
397
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
398
|
+
url: '/3/configuration/primary_translations',
|
|
399
|
+
...options
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Timezones
|
|
404
|
+
*
|
|
405
|
+
* Get the list of timezones used throughout TMDB.
|
|
406
|
+
*/
|
|
407
|
+
export const configurationTimezones = <ThrowOnError extends boolean = false>(options?: Options<ConfigurationTimezonesData, ThrowOnError>) => (options?.client ?? client).get<ConfigurationTimezonesResponses, unknown, ThrowOnError>({
|
|
408
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
409
|
+
url: '/3/configuration/timezones',
|
|
410
|
+
...options
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Details
|
|
415
|
+
*
|
|
416
|
+
* Get a movie or TV credit details by ID.
|
|
417
|
+
*/
|
|
418
|
+
export const creditDetails = <ThrowOnError extends boolean = false>(options: Options<CreditDetailsData, ThrowOnError>) => (options.client ?? client).get<CreditDetailsResponses, unknown, ThrowOnError>({
|
|
419
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
420
|
+
url: '/3/credit/{credit_id}',
|
|
421
|
+
...options
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Movie
|
|
426
|
+
*
|
|
427
|
+
* Find movies using over 30 filters and sort options.
|
|
428
|
+
*/
|
|
429
|
+
export const discoverMovie = <ThrowOnError extends boolean = false>(options?: Options<DiscoverMovieData, ThrowOnError>) => (options?.client ?? client).get<DiscoverMovieResponses, unknown, ThrowOnError>({
|
|
430
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
431
|
+
url: '/3/discover/movie',
|
|
432
|
+
...options
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* TV
|
|
437
|
+
*
|
|
438
|
+
* Find TV shows using over 30 filters and sort options.
|
|
439
|
+
*/
|
|
440
|
+
export const discoverTv = <ThrowOnError extends boolean = false>(options?: Options<DiscoverTvData, ThrowOnError>) => (options?.client ?? client).get<DiscoverTvResponses, unknown, ThrowOnError>({
|
|
441
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
442
|
+
url: '/3/discover/tv',
|
|
443
|
+
...options
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Find By ID
|
|
448
|
+
*
|
|
449
|
+
* Find data by external ID's.
|
|
450
|
+
*/
|
|
451
|
+
export const findById = <ThrowOnError extends boolean = false>(options: Options<FindByIdData, ThrowOnError>) => (options.client ?? client).get<FindByIdResponses, unknown, ThrowOnError>({
|
|
452
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
453
|
+
url: '/3/find/{external_id}',
|
|
454
|
+
...options
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Movie List
|
|
459
|
+
*
|
|
460
|
+
* Get the list of official genres for movies.
|
|
461
|
+
*/
|
|
462
|
+
export const genreMovieList = <ThrowOnError extends boolean = false>(options?: Options<GenreMovieListData, ThrowOnError>) => (options?.client ?? client).get<GenreMovieListResponses, unknown, ThrowOnError>({
|
|
463
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
464
|
+
url: '/3/genre/movie/list',
|
|
465
|
+
...options
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* TV List
|
|
470
|
+
*
|
|
471
|
+
* Get the list of official genres for TV shows.
|
|
472
|
+
*/
|
|
473
|
+
export const genreTvList = <ThrowOnError extends boolean = false>(options?: Options<GenreTvListData, ThrowOnError>) => (options?.client ?? client).get<GenreTvListResponses, unknown, ThrowOnError>({
|
|
474
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
475
|
+
url: '/3/genre/tv/list',
|
|
476
|
+
...options
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Rated Movies
|
|
481
|
+
*
|
|
482
|
+
* Get the rated movies for a guest session.
|
|
483
|
+
*/
|
|
484
|
+
export const guestSessionRatedMovies = <ThrowOnError extends boolean = false>(options: Options<GuestSessionRatedMoviesData, ThrowOnError>) => (options.client ?? client).get<GuestSessionRatedMoviesResponses, unknown, ThrowOnError>({
|
|
485
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
486
|
+
url: '/3/guest_session/{guest_session_id}/rated/movies',
|
|
487
|
+
...options
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Rated TV
|
|
492
|
+
*
|
|
493
|
+
* Get the rated TV shows for a guest session.
|
|
494
|
+
*/
|
|
495
|
+
export const guestSessionRatedTv = <ThrowOnError extends boolean = false>(options: Options<GuestSessionRatedTvData, ThrowOnError>) => (options.client ?? client).get<GuestSessionRatedTvResponses, unknown, ThrowOnError>({
|
|
496
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
497
|
+
url: '/3/guest_session/{guest_session_id}/rated/tv',
|
|
498
|
+
...options
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Rated TV Episodes
|
|
503
|
+
*
|
|
504
|
+
* Get the rated TV episodes for a guest session.
|
|
505
|
+
*/
|
|
506
|
+
export const guestSessionRatedTvEpisodes = <ThrowOnError extends boolean = false>(options: Options<GuestSessionRatedTvEpisodesData, ThrowOnError>) => (options.client ?? client).get<GuestSessionRatedTvEpisodesResponses, unknown, ThrowOnError>({
|
|
507
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
508
|
+
url: '/3/guest_session/{guest_session_id}/rated/tv/episodes',
|
|
509
|
+
...options
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Details
|
|
514
|
+
*/
|
|
515
|
+
export const keywordDetails = <ThrowOnError extends boolean = false>(options: Options<KeywordDetailsData, ThrowOnError>) => (options.client ?? client).get<KeywordDetailsResponses, unknown, ThrowOnError>({
|
|
516
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
517
|
+
url: '/3/keyword/{keyword_id}',
|
|
518
|
+
...options
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Movies
|
|
523
|
+
*/
|
|
524
|
+
export const keywordMovies = <ThrowOnError extends boolean = false>(options: Options<KeywordMoviesData, ThrowOnError>) => (options.client ?? client).get<KeywordMoviesResponses, unknown, ThrowOnError>({
|
|
525
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
526
|
+
url: '/3/keyword/{keyword_id}/movies',
|
|
527
|
+
...options
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Add Movie
|
|
532
|
+
*
|
|
533
|
+
* Add a movie to a list.
|
|
534
|
+
*/
|
|
535
|
+
export const listAddMovie = <ThrowOnError extends boolean = false>(options: Options<ListAddMovieData, ThrowOnError>) => (options.client ?? client).post<ListAddMovieResponses, unknown, ThrowOnError>({
|
|
536
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
537
|
+
url: '/3/list/{list_id}/add_item',
|
|
538
|
+
...options,
|
|
539
|
+
headers: {
|
|
540
|
+
'Content-Type': 'application/json',
|
|
541
|
+
...options.headers
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Check Item Status
|
|
547
|
+
*
|
|
548
|
+
* Use this method to check if an item has already been added to the list.
|
|
549
|
+
*/
|
|
550
|
+
export const listCheckItemStatus = <ThrowOnError extends boolean = false>(options: Options<ListCheckItemStatusData, ThrowOnError>) => (options.client ?? client).get<ListCheckItemStatusResponses, unknown, ThrowOnError>({
|
|
551
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
552
|
+
url: '/3/list/{list_id}/item_status',
|
|
553
|
+
...options
|
|
554
|
+
});
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Clear
|
|
558
|
+
*
|
|
559
|
+
* Clear all items from a list.
|
|
560
|
+
*/
|
|
561
|
+
export const listClear = <ThrowOnError extends boolean = false>(options: Options<ListClearData, ThrowOnError>) => (options.client ?? client).post<ListClearResponses, unknown, ThrowOnError>({
|
|
562
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
563
|
+
url: '/3/list/{list_id}/clear',
|
|
564
|
+
...options
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Create
|
|
569
|
+
*/
|
|
570
|
+
export const listCreate = <ThrowOnError extends boolean = false>(options: Options<ListCreateData, ThrowOnError>) => (options.client ?? client).post<ListCreateResponses, unknown, ThrowOnError>({
|
|
571
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
572
|
+
url: '/3/list',
|
|
573
|
+
...options,
|
|
574
|
+
headers: {
|
|
575
|
+
'Content-Type': 'application/json',
|
|
576
|
+
...options.headers
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Delete
|
|
582
|
+
*
|
|
583
|
+
* Delete a list.
|
|
584
|
+
*/
|
|
585
|
+
export const listDelete = <ThrowOnError extends boolean = false>(options: Options<ListDeleteData, ThrowOnError>) => (options.client ?? client).delete<ListDeleteResponses, unknown, ThrowOnError>({
|
|
586
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
587
|
+
url: '/3/list/{list_id}',
|
|
588
|
+
...options
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Details
|
|
593
|
+
*/
|
|
594
|
+
export const listDetails = <ThrowOnError extends boolean = false>(options: Options<ListDetailsData, ThrowOnError>) => (options.client ?? client).get<ListDetailsResponses, unknown, ThrowOnError>({
|
|
595
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
596
|
+
url: '/3/list/{list_id}',
|
|
597
|
+
...options
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Remove Movie
|
|
602
|
+
*
|
|
603
|
+
* Remove a movie from a list.
|
|
604
|
+
*/
|
|
605
|
+
export const listRemoveMovie = <ThrowOnError extends boolean = false>(options: Options<ListRemoveMovieData, ThrowOnError>) => (options.client ?? client).post<ListRemoveMovieResponses, unknown, ThrowOnError>({
|
|
606
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
607
|
+
url: '/3/list/{list_id}/remove_item',
|
|
608
|
+
...options,
|
|
609
|
+
headers: {
|
|
610
|
+
'Content-Type': 'application/json',
|
|
611
|
+
...options.headers
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Now Playing
|
|
617
|
+
*
|
|
618
|
+
* Get a list of movies that are currently in theatres.
|
|
619
|
+
*/
|
|
620
|
+
export const movieNowPlayingList = <ThrowOnError extends boolean = false>(options?: Options<MovieNowPlayingListData, ThrowOnError>) => (options?.client ?? client).get<MovieNowPlayingListResponses, unknown, ThrowOnError>({
|
|
621
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
622
|
+
url: '/3/movie/now_playing',
|
|
623
|
+
...options
|
|
624
|
+
});
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Popular
|
|
628
|
+
*
|
|
629
|
+
* Get a list of movies ordered by popularity.
|
|
630
|
+
*/
|
|
631
|
+
export const moviePopularList = <ThrowOnError extends boolean = false>(options?: Options<MoviePopularListData, ThrowOnError>) => (options?.client ?? client).get<MoviePopularListResponses, unknown, ThrowOnError>({
|
|
632
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
633
|
+
url: '/3/movie/popular',
|
|
634
|
+
...options
|
|
635
|
+
});
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Top Rated
|
|
639
|
+
*
|
|
640
|
+
* Get a list of movies ordered by rating.
|
|
641
|
+
*/
|
|
642
|
+
export const movieTopRatedList = <ThrowOnError extends boolean = false>(options?: Options<MovieTopRatedListData, ThrowOnError>) => (options?.client ?? client).get<MovieTopRatedListResponses, unknown, ThrowOnError>({
|
|
643
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
644
|
+
url: '/3/movie/top_rated',
|
|
645
|
+
...options
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Upcoming
|
|
650
|
+
*
|
|
651
|
+
* Get a list of movies that are being released soon.
|
|
652
|
+
*/
|
|
653
|
+
export const movieUpcomingList = <ThrowOnError extends boolean = false>(options?: Options<MovieUpcomingListData, ThrowOnError>) => (options?.client ?? client).get<MovieUpcomingListResponses, unknown, ThrowOnError>({
|
|
654
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
655
|
+
url: '/3/movie/upcoming',
|
|
656
|
+
...options
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Details
|
|
661
|
+
*
|
|
662
|
+
* Get the top level details of a movie by ID.
|
|
663
|
+
*/
|
|
664
|
+
export const movieDetails = <ThrowOnError extends boolean = false>(options: Options<MovieDetailsData, ThrowOnError>) => (options.client ?? client).get<MovieDetailsResponses, unknown, ThrowOnError>({
|
|
665
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
666
|
+
url: '/3/movie/{movie_id}',
|
|
667
|
+
...options
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Account States
|
|
672
|
+
*
|
|
673
|
+
* Get the rating, watchlist and favourite status of an account.
|
|
674
|
+
*/
|
|
675
|
+
export const movieAccountStates = <ThrowOnError extends boolean = false>(options: Options<MovieAccountStatesData, ThrowOnError>) => (options.client ?? client).get<MovieAccountStatesResponses, unknown, ThrowOnError>({
|
|
676
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
677
|
+
url: '/3/movie/{movie_id}/account_states',
|
|
678
|
+
...options
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Alternative Titles
|
|
683
|
+
*
|
|
684
|
+
* Get the alternative titles for a movie.
|
|
685
|
+
*/
|
|
686
|
+
export const movieAlternativeTitles = <ThrowOnError extends boolean = false>(options: Options<MovieAlternativeTitlesData, ThrowOnError>) => (options.client ?? client).get<MovieAlternativeTitlesResponses, unknown, ThrowOnError>({
|
|
687
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
688
|
+
url: '/3/movie/{movie_id}/alternative_titles',
|
|
689
|
+
...options
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Changes
|
|
694
|
+
*
|
|
695
|
+
* Get the recent changes for a movie.
|
|
696
|
+
*/
|
|
697
|
+
export const movieChanges = <ThrowOnError extends boolean = false>(options: Options<MovieChangesData, ThrowOnError>) => (options.client ?? client).get<MovieChangesResponses, unknown, ThrowOnError>({
|
|
698
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
699
|
+
url: '/3/movie/{movie_id}/changes',
|
|
700
|
+
...options
|
|
701
|
+
});
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Credits
|
|
705
|
+
*/
|
|
706
|
+
export const movieCredits = <ThrowOnError extends boolean = false>(options: Options<MovieCreditsData, ThrowOnError>) => (options.client ?? client).get<MovieCreditsResponses, unknown, ThrowOnError>({
|
|
707
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
708
|
+
url: '/3/movie/{movie_id}/credits',
|
|
709
|
+
...options
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* External IDs
|
|
714
|
+
*/
|
|
715
|
+
export const movieExternalIds = <ThrowOnError extends boolean = false>(options: Options<MovieExternalIdsData, ThrowOnError>) => (options.client ?? client).get<MovieExternalIdsResponses, unknown, ThrowOnError>({
|
|
716
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
717
|
+
url: '/3/movie/{movie_id}/external_ids',
|
|
718
|
+
...options
|
|
719
|
+
});
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Images
|
|
723
|
+
*
|
|
724
|
+
* Get the images that belong to a movie.
|
|
725
|
+
*/
|
|
726
|
+
export const movieImages = <ThrowOnError extends boolean = false>(options: Options<MovieImagesData, ThrowOnError>) => (options.client ?? client).get<MovieImagesResponses, unknown, ThrowOnError>({
|
|
727
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
728
|
+
url: '/3/movie/{movie_id}/images',
|
|
729
|
+
...options
|
|
730
|
+
});
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Keywords
|
|
734
|
+
*/
|
|
735
|
+
export const movieKeywords = <ThrowOnError extends boolean = false>(options: Options<MovieKeywordsData, ThrowOnError>) => (options.client ?? client).get<MovieKeywordsResponses, unknown, ThrowOnError>({
|
|
736
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
737
|
+
url: '/3/movie/{movie_id}/keywords',
|
|
738
|
+
...options
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Latest
|
|
743
|
+
*
|
|
744
|
+
* Get the newest movie ID.
|
|
745
|
+
*/
|
|
746
|
+
export const movieLatestId = <ThrowOnError extends boolean = false>(options?: Options<MovieLatestIdData, ThrowOnError>) => (options?.client ?? client).get<MovieLatestIdResponses, unknown, ThrowOnError>({
|
|
747
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
748
|
+
url: '/3/movie/latest',
|
|
749
|
+
...options
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Lists
|
|
754
|
+
*
|
|
755
|
+
* Get the lists that a movie has been added to.
|
|
756
|
+
*/
|
|
757
|
+
export const movieLists = <ThrowOnError extends boolean = false>(options: Options<MovieListsData, ThrowOnError>) => (options.client ?? client).get<MovieListsResponses, unknown, ThrowOnError>({
|
|
758
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
759
|
+
url: '/3/movie/{movie_id}/lists',
|
|
760
|
+
...options
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Recommendations
|
|
765
|
+
*/
|
|
766
|
+
export const movieRecommendations = <ThrowOnError extends boolean = false>(options: Options<MovieRecommendationsData, ThrowOnError>) => (options.client ?? client).get<MovieRecommendationsResponses, unknown, ThrowOnError>({
|
|
767
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
768
|
+
url: '/3/movie/{movie_id}/recommendations',
|
|
769
|
+
...options
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Release Dates
|
|
774
|
+
*
|
|
775
|
+
* Get the release dates and certifications for a movie.
|
|
776
|
+
*/
|
|
777
|
+
export const movieReleaseDates = <ThrowOnError extends boolean = false>(options: Options<MovieReleaseDatesData, ThrowOnError>) => (options.client ?? client).get<MovieReleaseDatesResponses, unknown, ThrowOnError>({
|
|
778
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
779
|
+
url: '/3/movie/{movie_id}/release_dates',
|
|
780
|
+
...options
|
|
781
|
+
});
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Reviews
|
|
785
|
+
*
|
|
786
|
+
* Get the user reviews for a movie.
|
|
787
|
+
*/
|
|
788
|
+
export const movieReviews = <ThrowOnError extends boolean = false>(options: Options<MovieReviewsData, ThrowOnError>) => (options.client ?? client).get<MovieReviewsResponses, unknown, ThrowOnError>({
|
|
789
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
790
|
+
url: '/3/movie/{movie_id}/reviews',
|
|
791
|
+
...options
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Similar
|
|
796
|
+
*
|
|
797
|
+
* Get the similar movies based on genres and keywords.
|
|
798
|
+
*/
|
|
799
|
+
export const movieSimilar = <ThrowOnError extends boolean = false>(options: Options<MovieSimilarData, ThrowOnError>) => (options.client ?? client).get<MovieSimilarResponses, unknown, ThrowOnError>({
|
|
800
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
801
|
+
url: '/3/movie/{movie_id}/similar',
|
|
802
|
+
...options
|
|
803
|
+
});
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Translations
|
|
807
|
+
*
|
|
808
|
+
* Get the translations for a movie.
|
|
809
|
+
*/
|
|
810
|
+
export const movieTranslations = <ThrowOnError extends boolean = false>(options: Options<MovieTranslationsData, ThrowOnError>) => (options.client ?? client).get<MovieTranslationsResponses, unknown, ThrowOnError>({
|
|
811
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
812
|
+
url: '/3/movie/{movie_id}/translations',
|
|
813
|
+
...options
|
|
814
|
+
});
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Videos
|
|
818
|
+
*/
|
|
819
|
+
export const movieVideos = <ThrowOnError extends boolean = false>(options: Options<MovieVideosData, ThrowOnError>) => (options.client ?? client).get<MovieVideosResponses, unknown, ThrowOnError>({
|
|
820
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
821
|
+
url: '/3/movie/{movie_id}/videos',
|
|
822
|
+
...options
|
|
823
|
+
});
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Watch Providers
|
|
827
|
+
*
|
|
828
|
+
* Get the list of streaming providers we have for a movie.
|
|
829
|
+
*/
|
|
830
|
+
export const movieWatchProviders = <ThrowOnError extends boolean = false>(options: Options<MovieWatchProvidersData, ThrowOnError>) => (options.client ?? client).get<MovieWatchProvidersResponses, unknown, ThrowOnError>({
|
|
831
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
832
|
+
url: '/3/movie/{movie_id}/watch/providers',
|
|
833
|
+
...options
|
|
834
|
+
});
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Delete Rating
|
|
838
|
+
*
|
|
839
|
+
* Delete a user rating.
|
|
840
|
+
*/
|
|
841
|
+
export const movieDeleteRating = <ThrowOnError extends boolean = false>(options: Options<MovieDeleteRatingData, ThrowOnError>) => (options.client ?? client).delete<MovieDeleteRatingResponses, unknown, ThrowOnError>({
|
|
842
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
843
|
+
url: '/3/movie/{movie_id}/rating',
|
|
844
|
+
...options
|
|
845
|
+
});
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Add Rating
|
|
849
|
+
*
|
|
850
|
+
* Rate a movie and save it to your rated list.
|
|
851
|
+
*/
|
|
852
|
+
export const movieAddRating = <ThrowOnError extends boolean = false>(options: Options<MovieAddRatingData, ThrowOnError>) => (options.client ?? client).post<MovieAddRatingResponses, unknown, ThrowOnError>({
|
|
853
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
854
|
+
url: '/3/movie/{movie_id}/rating',
|
|
855
|
+
...options
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Details
|
|
860
|
+
*/
|
|
861
|
+
export const networkDetails = <ThrowOnError extends boolean = false>(options: Options<NetworkDetailsData, ThrowOnError>) => (options.client ?? client).get<NetworkDetailsResponses, unknown, ThrowOnError>({
|
|
862
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
863
|
+
url: '/3/network/{network_id}',
|
|
864
|
+
...options
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Alternative Names
|
|
869
|
+
*
|
|
870
|
+
* Get the alternative names of a network.
|
|
871
|
+
*/
|
|
872
|
+
export const detailsCopy = <ThrowOnError extends boolean = false>(options: Options<DetailsCopyData, ThrowOnError>) => (options.client ?? client).get<DetailsCopyResponses, unknown, ThrowOnError>({
|
|
873
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
874
|
+
url: '/3/network/{network_id}/alternative_names',
|
|
875
|
+
...options
|
|
876
|
+
});
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Images
|
|
880
|
+
*
|
|
881
|
+
* Get the TV network logos by id.
|
|
882
|
+
*/
|
|
883
|
+
export const alternativeNamesCopy = <ThrowOnError extends boolean = false>(options: Options<AlternativeNamesCopyData, ThrowOnError>) => (options.client ?? client).get<AlternativeNamesCopyResponses, unknown, ThrowOnError>({
|
|
884
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
885
|
+
url: '/3/network/{network_id}/images',
|
|
886
|
+
...options
|
|
887
|
+
});
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Popular
|
|
891
|
+
*
|
|
892
|
+
* Get a list of people ordered by popularity.
|
|
893
|
+
*/
|
|
894
|
+
export const personPopularList = <ThrowOnError extends boolean = false>(options?: Options<PersonPopularListData, ThrowOnError>) => (options?.client ?? client).get<PersonPopularListResponses, unknown, ThrowOnError>({
|
|
895
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
896
|
+
url: '/3/person/popular',
|
|
897
|
+
...options
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Details
|
|
902
|
+
*
|
|
903
|
+
* Query the top level details of a person.
|
|
904
|
+
*/
|
|
905
|
+
export const personDetails = <ThrowOnError extends boolean = false>(options: Options<PersonDetailsData, ThrowOnError>) => (options.client ?? client).get<PersonDetailsResponses, unknown, ThrowOnError>({
|
|
906
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
907
|
+
url: '/3/person/{person_id}',
|
|
908
|
+
...options
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Changes
|
|
913
|
+
*
|
|
914
|
+
* Get the recent changes for a person.
|
|
915
|
+
*/
|
|
916
|
+
export const personChanges = <ThrowOnError extends boolean = false>(options: Options<PersonChangesData, ThrowOnError>) => (options.client ?? client).get<PersonChangesResponses, unknown, ThrowOnError>({
|
|
917
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
918
|
+
url: '/3/person/{person_id}/changes',
|
|
919
|
+
...options
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Combined Credits
|
|
924
|
+
*
|
|
925
|
+
* Get the combined movie and TV credits that belong to a person.
|
|
926
|
+
*/
|
|
927
|
+
export const personCombinedCredits = <ThrowOnError extends boolean = false>(options: Options<PersonCombinedCreditsData, ThrowOnError>) => (options.client ?? client).get<PersonCombinedCreditsResponses, unknown, ThrowOnError>({
|
|
928
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
929
|
+
url: '/3/person/{person_id}/combined_credits',
|
|
930
|
+
...options
|
|
931
|
+
});
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* External IDs
|
|
935
|
+
*
|
|
936
|
+
* Get the external ID's that belong to a person.
|
|
937
|
+
*/
|
|
938
|
+
export const personExternalIds = <ThrowOnError extends boolean = false>(options: Options<PersonExternalIdsData, ThrowOnError>) => (options.client ?? client).get<PersonExternalIdsResponses, unknown, ThrowOnError>({
|
|
939
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
940
|
+
url: '/3/person/{person_id}/external_ids',
|
|
941
|
+
...options
|
|
942
|
+
});
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Images
|
|
946
|
+
*
|
|
947
|
+
* Get the profile images that belong to a person.
|
|
948
|
+
*/
|
|
949
|
+
export const personImages = <ThrowOnError extends boolean = false>(options: Options<PersonImagesData, ThrowOnError>) => (options.client ?? client).get<PersonImagesResponses, unknown, ThrowOnError>({
|
|
950
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
951
|
+
url: '/3/person/{person_id}/images',
|
|
952
|
+
...options
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Latest
|
|
957
|
+
*
|
|
958
|
+
* Get the newest created person. This is a live response and will continuously change.
|
|
959
|
+
*/
|
|
960
|
+
export const personLatestId = <ThrowOnError extends boolean = false>(options?: Options<PersonLatestIdData, ThrowOnError>) => (options?.client ?? client).get<PersonLatestIdResponses, unknown, ThrowOnError>({
|
|
961
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
962
|
+
url: '/3/person/latest',
|
|
963
|
+
...options
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Movie Credits
|
|
968
|
+
*
|
|
969
|
+
* Get the movie credits for a person.
|
|
970
|
+
*/
|
|
971
|
+
export const personMovieCredits = <ThrowOnError extends boolean = false>(options: Options<PersonMovieCreditsData, ThrowOnError>) => (options.client ?? client).get<PersonMovieCreditsResponses, unknown, ThrowOnError>({
|
|
972
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
973
|
+
url: '/3/person/{person_id}/movie_credits',
|
|
974
|
+
...options
|
|
975
|
+
});
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* TV Credits
|
|
979
|
+
*
|
|
980
|
+
* Get the TV credits that belong to a person.
|
|
981
|
+
*/
|
|
982
|
+
export const personTvCredits = <ThrowOnError extends boolean = false>(options: Options<PersonTvCreditsData, ThrowOnError>) => (options.client ?? client).get<PersonTvCreditsResponses, unknown, ThrowOnError>({
|
|
983
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
984
|
+
url: '/3/person/{person_id}/tv_credits',
|
|
985
|
+
...options
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Tagged Images
|
|
990
|
+
*
|
|
991
|
+
* Get the tagged images for a person.
|
|
992
|
+
*/
|
|
993
|
+
export const personTaggedImages = <ThrowOnError extends boolean = false>(options: Options<PersonTaggedImagesData, ThrowOnError>) => (options.client ?? client).get<PersonTaggedImagesResponses, unknown, ThrowOnError>({
|
|
994
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
995
|
+
url: '/3/person/{person_id}/tagged_images',
|
|
996
|
+
...options
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Translations
|
|
1001
|
+
*
|
|
1002
|
+
* Get the translations that belong to a person.
|
|
1003
|
+
*/
|
|
1004
|
+
export const translations = <ThrowOnError extends boolean = false>(options: Options<TranslationsData, ThrowOnError>) => (options.client ?? client).get<TranslationsResponses, unknown, ThrowOnError>({
|
|
1005
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1006
|
+
url: '/3/person/{person_id}/translations',
|
|
1007
|
+
...options
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Details
|
|
1012
|
+
*
|
|
1013
|
+
* Retrieve the details of a movie or TV show review.
|
|
1014
|
+
*/
|
|
1015
|
+
export const reviewDetails = <ThrowOnError extends boolean = false>(options: Options<ReviewDetailsData, ThrowOnError>) => (options.client ?? client).get<ReviewDetailsResponses, unknown, ThrowOnError>({
|
|
1016
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1017
|
+
url: '/3/review/{review_id}',
|
|
1018
|
+
...options
|
|
1019
|
+
});
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Collection
|
|
1023
|
+
*
|
|
1024
|
+
* Search for collections by their original, translated and alternative names.
|
|
1025
|
+
*/
|
|
1026
|
+
export const searchCollection = <ThrowOnError extends boolean = false>(options: Options<SearchCollectionData, ThrowOnError>) => (options.client ?? client).get<SearchCollectionResponses, unknown, ThrowOnError>({
|
|
1027
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1028
|
+
url: '/3/search/collection',
|
|
1029
|
+
...options
|
|
1030
|
+
});
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Company
|
|
1034
|
+
*
|
|
1035
|
+
* Search for companies by their original and alternative names.
|
|
1036
|
+
*/
|
|
1037
|
+
export const searchCompany = <ThrowOnError extends boolean = false>(options: Options<SearchCompanyData, ThrowOnError>) => (options.client ?? client).get<SearchCompanyResponses, unknown, ThrowOnError>({
|
|
1038
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1039
|
+
url: '/3/search/company',
|
|
1040
|
+
...options
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Keyword
|
|
1045
|
+
*
|
|
1046
|
+
* Search for keywords by their name.
|
|
1047
|
+
*/
|
|
1048
|
+
export const searchKeyword = <ThrowOnError extends boolean = false>(options: Options<SearchKeywordData, ThrowOnError>) => (options.client ?? client).get<SearchKeywordResponses, unknown, ThrowOnError>({
|
|
1049
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1050
|
+
url: '/3/search/keyword',
|
|
1051
|
+
...options
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Movie
|
|
1056
|
+
*
|
|
1057
|
+
* Search for movies by their original, translated and alternative titles.
|
|
1058
|
+
*/
|
|
1059
|
+
export const searchMovie = <ThrowOnError extends boolean = false>(options: Options<SearchMovieData, ThrowOnError>) => (options.client ?? client).get<SearchMovieResponses, unknown, ThrowOnError>({
|
|
1060
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1061
|
+
url: '/3/search/movie',
|
|
1062
|
+
...options
|
|
1063
|
+
});
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Multi
|
|
1067
|
+
*
|
|
1068
|
+
* Use multi search when you want to search for movies, TV shows and people in a single request.
|
|
1069
|
+
*/
|
|
1070
|
+
export const searchMulti = <ThrowOnError extends boolean = false>(options: Options<SearchMultiData, ThrowOnError>) => (options.client ?? client).get<SearchMultiResponses, unknown, ThrowOnError>({
|
|
1071
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1072
|
+
url: '/3/search/multi',
|
|
1073
|
+
...options
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Person
|
|
1078
|
+
*
|
|
1079
|
+
* Search for people by their name and also known as names.
|
|
1080
|
+
*/
|
|
1081
|
+
export const searchPerson = <ThrowOnError extends boolean = false>(options: Options<SearchPersonData, ThrowOnError>) => (options.client ?? client).get<SearchPersonResponses, unknown, ThrowOnError>({
|
|
1082
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1083
|
+
url: '/3/search/person',
|
|
1084
|
+
...options
|
|
1085
|
+
});
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* TV
|
|
1089
|
+
*
|
|
1090
|
+
* Search for TV shows by their original, translated and also known as names.
|
|
1091
|
+
*/
|
|
1092
|
+
export const searchTv = <ThrowOnError extends boolean = false>(options: Options<SearchTvData, ThrowOnError>) => (options.client ?? client).get<SearchTvResponses, unknown, ThrowOnError>({
|
|
1093
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1094
|
+
url: '/3/search/tv',
|
|
1095
|
+
...options
|
|
1096
|
+
});
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* All
|
|
1100
|
+
*
|
|
1101
|
+
* Get the trending movies, TV shows and people.
|
|
1102
|
+
*/
|
|
1103
|
+
export const trendingAll = <ThrowOnError extends boolean = false>(options: Options<TrendingAllData, ThrowOnError>) => (options.client ?? client).get<TrendingAllResponses, unknown, ThrowOnError>({
|
|
1104
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1105
|
+
url: '/3/trending/all/{time_window}',
|
|
1106
|
+
...options
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Movies
|
|
1111
|
+
*
|
|
1112
|
+
* Get the trending movies on TMDB.
|
|
1113
|
+
*/
|
|
1114
|
+
export const trendingMovies = <ThrowOnError extends boolean = false>(options: Options<TrendingMoviesData, ThrowOnError>) => (options.client ?? client).get<TrendingMoviesResponses, unknown, ThrowOnError>({
|
|
1115
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1116
|
+
url: '/3/trending/movie/{time_window}',
|
|
1117
|
+
...options
|
|
1118
|
+
});
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* People
|
|
1122
|
+
*
|
|
1123
|
+
* Get the trending people on TMDB.
|
|
1124
|
+
*/
|
|
1125
|
+
export const trendingPeople = <ThrowOnError extends boolean = false>(options: Options<TrendingPeopleData, ThrowOnError>) => (options.client ?? client).get<TrendingPeopleResponses, unknown, ThrowOnError>({
|
|
1126
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1127
|
+
url: '/3/trending/person/{time_window}',
|
|
1128
|
+
...options
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* TV
|
|
1133
|
+
*
|
|
1134
|
+
* Get the trending TV shows on TMDB.
|
|
1135
|
+
*/
|
|
1136
|
+
export const trendingTv = <ThrowOnError extends boolean = false>(options: Options<TrendingTvData, ThrowOnError>) => (options.client ?? client).get<TrendingTvResponses, unknown, ThrowOnError>({
|
|
1137
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1138
|
+
url: '/3/trending/tv/{time_window}',
|
|
1139
|
+
...options
|
|
1140
|
+
});
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Airing Today
|
|
1144
|
+
*
|
|
1145
|
+
* Get a list of TV shows airing today.
|
|
1146
|
+
*/
|
|
1147
|
+
export const tvSeriesAiringTodayList = <ThrowOnError extends boolean = false>(options?: Options<TvSeriesAiringTodayListData, ThrowOnError>) => (options?.client ?? client).get<TvSeriesAiringTodayListResponses, unknown, ThrowOnError>({
|
|
1148
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1149
|
+
url: '/3/tv/airing_today',
|
|
1150
|
+
...options
|
|
1151
|
+
});
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* On The Air
|
|
1155
|
+
*
|
|
1156
|
+
* Get a list of TV shows that air in the next 7 days.
|
|
1157
|
+
*/
|
|
1158
|
+
export const tvSeriesOnTheAirList = <ThrowOnError extends boolean = false>(options?: Options<TvSeriesOnTheAirListData, ThrowOnError>) => (options?.client ?? client).get<TvSeriesOnTheAirListResponses, unknown, ThrowOnError>({
|
|
1159
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1160
|
+
url: '/3/tv/on_the_air',
|
|
1161
|
+
...options
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Popular
|
|
1166
|
+
*
|
|
1167
|
+
* Get a list of TV shows ordered by popularity.
|
|
1168
|
+
*/
|
|
1169
|
+
export const tvSeriesPopularList = <ThrowOnError extends boolean = false>(options?: Options<TvSeriesPopularListData, ThrowOnError>) => (options?.client ?? client).get<TvSeriesPopularListResponses, unknown, ThrowOnError>({
|
|
1170
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1171
|
+
url: '/3/tv/popular',
|
|
1172
|
+
...options
|
|
1173
|
+
});
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Top Rated
|
|
1177
|
+
*
|
|
1178
|
+
* Get a list of TV shows ordered by rating.
|
|
1179
|
+
*/
|
|
1180
|
+
export const tvSeriesTopRatedList = <ThrowOnError extends boolean = false>(options?: Options<TvSeriesTopRatedListData, ThrowOnError>) => (options?.client ?? client).get<TvSeriesTopRatedListResponses, unknown, ThrowOnError>({
|
|
1181
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1182
|
+
url: '/3/tv/top_rated',
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Details
|
|
1188
|
+
*
|
|
1189
|
+
* Get the details of a TV show.
|
|
1190
|
+
*/
|
|
1191
|
+
export const tvSeriesDetails = <ThrowOnError extends boolean = false>(options: Options<TvSeriesDetailsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesDetailsResponses, unknown, ThrowOnError>({
|
|
1192
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1193
|
+
url: '/3/tv/{series_id}',
|
|
1194
|
+
...options
|
|
1195
|
+
});
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Account States
|
|
1199
|
+
*
|
|
1200
|
+
* Get the rating, watchlist and favourite status.
|
|
1201
|
+
*/
|
|
1202
|
+
export const tvSeriesAccountStates = <ThrowOnError extends boolean = false>(options: Options<TvSeriesAccountStatesData, ThrowOnError>) => (options.client ?? client).get<TvSeriesAccountStatesResponses, unknown, ThrowOnError>({
|
|
1203
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1204
|
+
url: '/3/tv/{series_id}/account_states',
|
|
1205
|
+
...options
|
|
1206
|
+
});
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Aggregate Credits
|
|
1210
|
+
*
|
|
1211
|
+
* Get the aggregate credits (cast and crew) that have been added to a TV show.
|
|
1212
|
+
*/
|
|
1213
|
+
export const tvSeriesAggregateCredits = <ThrowOnError extends boolean = false>(options: Options<TvSeriesAggregateCreditsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesAggregateCreditsResponses, unknown, ThrowOnError>({
|
|
1214
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1215
|
+
url: '/3/tv/{series_id}/aggregate_credits',
|
|
1216
|
+
...options
|
|
1217
|
+
});
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Alternative Titles
|
|
1221
|
+
*
|
|
1222
|
+
* Get the alternative titles that have been added to a TV show.
|
|
1223
|
+
*/
|
|
1224
|
+
export const tvSeriesAlternativeTitles = <ThrowOnError extends boolean = false>(options: Options<TvSeriesAlternativeTitlesData, ThrowOnError>) => (options.client ?? client).get<TvSeriesAlternativeTitlesResponses, unknown, ThrowOnError>({
|
|
1225
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1226
|
+
url: '/3/tv/{series_id}/alternative_titles',
|
|
1227
|
+
...options
|
|
1228
|
+
});
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Changes
|
|
1232
|
+
*
|
|
1233
|
+
* Get the recent changes for a TV show.
|
|
1234
|
+
*/
|
|
1235
|
+
export const tvSeriesChanges = <ThrowOnError extends boolean = false>(options: Options<TvSeriesChangesData, ThrowOnError>) => (options.client ?? client).get<TvSeriesChangesResponses, unknown, ThrowOnError>({
|
|
1236
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1237
|
+
url: '/3/tv/{series_id}/changes',
|
|
1238
|
+
...options
|
|
1239
|
+
});
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Content Ratings
|
|
1243
|
+
*
|
|
1244
|
+
* Get the content ratings that have been added to a TV show.
|
|
1245
|
+
*/
|
|
1246
|
+
export const tvSeriesContentRatings = <ThrowOnError extends boolean = false>(options: Options<TvSeriesContentRatingsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesContentRatingsResponses, unknown, ThrowOnError>({
|
|
1247
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1248
|
+
url: '/3/tv/{series_id}/content_ratings',
|
|
1249
|
+
...options
|
|
1250
|
+
});
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* Credits
|
|
1254
|
+
*
|
|
1255
|
+
* Get the latest season credits of a TV show.
|
|
1256
|
+
*/
|
|
1257
|
+
export const tvSeriesCredits = <ThrowOnError extends boolean = false>(options: Options<TvSeriesCreditsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesCreditsResponses, unknown, ThrowOnError>({
|
|
1258
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1259
|
+
url: '/3/tv/{series_id}/credits',
|
|
1260
|
+
...options
|
|
1261
|
+
});
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Episode Groups
|
|
1265
|
+
*
|
|
1266
|
+
* Get the episode groups that have been added to a TV show.
|
|
1267
|
+
*/
|
|
1268
|
+
export const tvSeriesEpisodeGroups = <ThrowOnError extends boolean = false>(options: Options<TvSeriesEpisodeGroupsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesEpisodeGroupsResponses, unknown, ThrowOnError>({
|
|
1269
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1270
|
+
url: '/3/tv/{series_id}/episode_groups',
|
|
1271
|
+
...options
|
|
1272
|
+
});
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* External IDs
|
|
1276
|
+
*
|
|
1277
|
+
* Get a list of external IDs that have been added to a TV show.
|
|
1278
|
+
*/
|
|
1279
|
+
export const tvSeriesExternalIds = <ThrowOnError extends boolean = false>(options: Options<TvSeriesExternalIdsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesExternalIdsResponses, unknown, ThrowOnError>({
|
|
1280
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1281
|
+
url: '/3/tv/{series_id}/external_ids',
|
|
1282
|
+
...options
|
|
1283
|
+
});
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Images
|
|
1287
|
+
*
|
|
1288
|
+
* Get the images that belong to a TV series.
|
|
1289
|
+
*/
|
|
1290
|
+
export const tvSeriesImages = <ThrowOnError extends boolean = false>(options: Options<TvSeriesImagesData, ThrowOnError>) => (options.client ?? client).get<TvSeriesImagesResponses, unknown, ThrowOnError>({
|
|
1291
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1292
|
+
url: '/3/tv/{series_id}/images',
|
|
1293
|
+
...options
|
|
1294
|
+
});
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Keywords
|
|
1298
|
+
*
|
|
1299
|
+
* Get a list of keywords that have been added to a TV show.
|
|
1300
|
+
*/
|
|
1301
|
+
export const tvSeriesKeywords = <ThrowOnError extends boolean = false>(options: Options<TvSeriesKeywordsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesKeywordsResponses, unknown, ThrowOnError>({
|
|
1302
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1303
|
+
url: '/3/tv/{series_id}/keywords',
|
|
1304
|
+
...options
|
|
1305
|
+
});
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Latest
|
|
1309
|
+
*
|
|
1310
|
+
* Get the newest TV show ID.
|
|
1311
|
+
*/
|
|
1312
|
+
export const tvSeriesLatestId = <ThrowOnError extends boolean = false>(options?: Options<TvSeriesLatestIdData, ThrowOnError>) => (options?.client ?? client).get<TvSeriesLatestIdResponses, unknown, ThrowOnError>({
|
|
1313
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1314
|
+
url: '/3/tv/latest',
|
|
1315
|
+
...options
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Lists
|
|
1320
|
+
*
|
|
1321
|
+
* Get the lists that a TV series has been added to.
|
|
1322
|
+
*/
|
|
1323
|
+
export const listsCopy = <ThrowOnError extends boolean = false>(options: Options<ListsCopyData, ThrowOnError>) => (options.client ?? client).get<ListsCopyResponses, unknown, ThrowOnError>({
|
|
1324
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1325
|
+
url: '/3/tv/{series_id}/lists',
|
|
1326
|
+
...options
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Recommendations
|
|
1331
|
+
*/
|
|
1332
|
+
export const tvSeriesRecommendations = <ThrowOnError extends boolean = false>(options: Options<TvSeriesRecommendationsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesRecommendationsResponses, unknown, ThrowOnError>({
|
|
1333
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1334
|
+
url: '/3/tv/{series_id}/recommendations',
|
|
1335
|
+
...options
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Reviews
|
|
1340
|
+
*
|
|
1341
|
+
* Get the reviews that have been added to a TV show.
|
|
1342
|
+
*/
|
|
1343
|
+
export const tvSeriesReviews = <ThrowOnError extends boolean = false>(options: Options<TvSeriesReviewsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesReviewsResponses, unknown, ThrowOnError>({
|
|
1344
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1345
|
+
url: '/3/tv/{series_id}/reviews',
|
|
1346
|
+
...options
|
|
1347
|
+
});
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Screened Theatrically
|
|
1351
|
+
*
|
|
1352
|
+
* Get the seasons and episodes that have screened theatrically.
|
|
1353
|
+
*/
|
|
1354
|
+
export const tvSeriesScreenedTheatrically = <ThrowOnError extends boolean = false>(options: Options<TvSeriesScreenedTheatricallyData, ThrowOnError>) => (options.client ?? client).get<TvSeriesScreenedTheatricallyResponses, unknown, ThrowOnError>({
|
|
1355
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1356
|
+
url: '/3/tv/{series_id}/screened_theatrically',
|
|
1357
|
+
...options
|
|
1358
|
+
});
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Similar
|
|
1362
|
+
*
|
|
1363
|
+
* Get the similar TV shows.
|
|
1364
|
+
*/
|
|
1365
|
+
export const tvSeriesSimilar = <ThrowOnError extends boolean = false>(options: Options<TvSeriesSimilarData, ThrowOnError>) => (options.client ?? client).get<TvSeriesSimilarResponses, unknown, ThrowOnError>({
|
|
1366
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1367
|
+
url: '/3/tv/{series_id}/similar',
|
|
1368
|
+
...options
|
|
1369
|
+
});
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* Translations
|
|
1373
|
+
*
|
|
1374
|
+
* Get the translations that have been added to a TV show.
|
|
1375
|
+
*/
|
|
1376
|
+
export const tvSeriesTranslations = <ThrowOnError extends boolean = false>(options: Options<TvSeriesTranslationsData, ThrowOnError>) => (options.client ?? client).get<TvSeriesTranslationsResponses, unknown, ThrowOnError>({
|
|
1377
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1378
|
+
url: '/3/tv/{series_id}/translations',
|
|
1379
|
+
...options
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Videos
|
|
1384
|
+
*
|
|
1385
|
+
* Get the videos that belong to a TV show.
|
|
1386
|
+
*/
|
|
1387
|
+
export const tvSeriesVideos = <ThrowOnError extends boolean = false>(options: Options<TvSeriesVideosData, ThrowOnError>) => (options.client ?? client).get<TvSeriesVideosResponses, unknown, ThrowOnError>({
|
|
1388
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1389
|
+
url: '/3/tv/{series_id}/videos',
|
|
1390
|
+
...options
|
|
1391
|
+
});
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Watch Providers
|
|
1395
|
+
*
|
|
1396
|
+
* Get the list of streaming providers we have for a TV show.
|
|
1397
|
+
*/
|
|
1398
|
+
export const tvSeriesWatchProviders = <ThrowOnError extends boolean = false>(options: Options<TvSeriesWatchProvidersData, ThrowOnError>) => (options.client ?? client).get<TvSeriesWatchProvidersResponses, unknown, ThrowOnError>({
|
|
1399
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1400
|
+
url: '/3/tv/{series_id}/watch/providers',
|
|
1401
|
+
...options
|
|
1402
|
+
});
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Delete Rating
|
|
1406
|
+
*/
|
|
1407
|
+
export const tvSeriesDeleteRating = <ThrowOnError extends boolean = false>(options: Options<TvSeriesDeleteRatingData, ThrowOnError>) => (options.client ?? client).delete<TvSeriesDeleteRatingResponses, unknown, ThrowOnError>({
|
|
1408
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1409
|
+
url: '/3/tv/{series_id}/rating',
|
|
1410
|
+
...options
|
|
1411
|
+
});
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Add Rating
|
|
1415
|
+
*
|
|
1416
|
+
* Rate a TV show and save it to your rated list.
|
|
1417
|
+
*/
|
|
1418
|
+
export const tvSeriesAddRating = <ThrowOnError extends boolean = false>(options: Options<TvSeriesAddRatingData, ThrowOnError>) => (options.client ?? client).post<TvSeriesAddRatingResponses, unknown, ThrowOnError>({
|
|
1419
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1420
|
+
url: '/3/tv/{series_id}/rating',
|
|
1421
|
+
...options
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Details
|
|
1426
|
+
*
|
|
1427
|
+
* Query the details of a TV season.
|
|
1428
|
+
*/
|
|
1429
|
+
export const tvSeasonDetails = <ThrowOnError extends boolean = false>(options: Options<TvSeasonDetailsData, ThrowOnError>) => (options.client ?? client).get<TvSeasonDetailsResponses, unknown, ThrowOnError>({
|
|
1430
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1431
|
+
url: '/3/tv/{series_id}/season/{season_number}',
|
|
1432
|
+
...options
|
|
1433
|
+
});
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Account States
|
|
1437
|
+
*
|
|
1438
|
+
* Get the rating, watchlist and favourite status.
|
|
1439
|
+
*/
|
|
1440
|
+
export const tvSeasonAccountStates = <ThrowOnError extends boolean = false>(options: Options<TvSeasonAccountStatesData, ThrowOnError>) => (options.client ?? client).get<TvSeasonAccountStatesResponses, unknown, ThrowOnError>({
|
|
1441
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1442
|
+
url: '/3/tv/{series_id}/season/{season_number}/account_states',
|
|
1443
|
+
...options
|
|
1444
|
+
});
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* Aggregate Credits
|
|
1448
|
+
*
|
|
1449
|
+
* Get the aggregate credits (cast and crew) that have been added to a TV season.
|
|
1450
|
+
*/
|
|
1451
|
+
export const tvSeasonAggregateCredits = <ThrowOnError extends boolean = false>(options: Options<TvSeasonAggregateCreditsData, ThrowOnError>) => (options.client ?? client).get<TvSeasonAggregateCreditsResponses, unknown, ThrowOnError>({
|
|
1452
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1453
|
+
url: '/3/tv/{series_id}/season/{season_number}/aggregate_credits',
|
|
1454
|
+
...options
|
|
1455
|
+
});
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Changes
|
|
1459
|
+
*
|
|
1460
|
+
* Get the recent changes for a TV season.
|
|
1461
|
+
*/
|
|
1462
|
+
export const tvSeasonChangesById = <ThrowOnError extends boolean = false>(options: Options<TvSeasonChangesByIdData, ThrowOnError>) => (options.client ?? client).get<TvSeasonChangesByIdResponses, unknown, ThrowOnError>({
|
|
1463
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1464
|
+
url: '/3/tv/season/{season_id}/changes',
|
|
1465
|
+
...options
|
|
1466
|
+
});
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Credits
|
|
1470
|
+
*/
|
|
1471
|
+
export const tvSeasonCredits = <ThrowOnError extends boolean = false>(options: Options<TvSeasonCreditsData, ThrowOnError>) => (options.client ?? client).get<TvSeasonCreditsResponses, unknown, ThrowOnError>({
|
|
1472
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1473
|
+
url: '/3/tv/{series_id}/season/{season_number}/credits',
|
|
1474
|
+
...options
|
|
1475
|
+
});
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* External IDs
|
|
1479
|
+
*
|
|
1480
|
+
* Get a list of external IDs that have been added to a TV season.
|
|
1481
|
+
*/
|
|
1482
|
+
export const tvSeasonExternalIds = <ThrowOnError extends boolean = false>(options: Options<TvSeasonExternalIdsData, ThrowOnError>) => (options.client ?? client).get<TvSeasonExternalIdsResponses, unknown, ThrowOnError>({
|
|
1483
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1484
|
+
url: '/3/tv/{series_id}/season/{season_number}/external_ids',
|
|
1485
|
+
...options
|
|
1486
|
+
});
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Images
|
|
1490
|
+
*
|
|
1491
|
+
* Get the images that belong to a TV season.
|
|
1492
|
+
*/
|
|
1493
|
+
export const tvSeasonImages = <ThrowOnError extends boolean = false>(options: Options<TvSeasonImagesData, ThrowOnError>) => (options.client ?? client).get<TvSeasonImagesResponses, unknown, ThrowOnError>({
|
|
1494
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1495
|
+
url: '/3/tv/{series_id}/season/{season_number}/images',
|
|
1496
|
+
...options
|
|
1497
|
+
});
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Translations
|
|
1501
|
+
*
|
|
1502
|
+
* Get the translations for a TV season.
|
|
1503
|
+
*/
|
|
1504
|
+
export const tvSeasonTranslations = <ThrowOnError extends boolean = false>(options: Options<TvSeasonTranslationsData, ThrowOnError>) => (options.client ?? client).get<TvSeasonTranslationsResponses, unknown, ThrowOnError>({
|
|
1505
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1506
|
+
url: '/3/tv/{series_id}/season/{season_number}/translations',
|
|
1507
|
+
...options
|
|
1508
|
+
});
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Videos
|
|
1512
|
+
*
|
|
1513
|
+
* Get the videos that belong to a TV season.
|
|
1514
|
+
*/
|
|
1515
|
+
export const tvSeasonVideos = <ThrowOnError extends boolean = false>(options: Options<TvSeasonVideosData, ThrowOnError>) => (options.client ?? client).get<TvSeasonVideosResponses, unknown, ThrowOnError>({
|
|
1516
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1517
|
+
url: '/3/tv/{series_id}/season/{season_number}/videos',
|
|
1518
|
+
...options
|
|
1519
|
+
});
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Watch Providers
|
|
1523
|
+
*
|
|
1524
|
+
* Get the list of streaming providers we have for a TV season.
|
|
1525
|
+
*/
|
|
1526
|
+
export const tvSeasonWatchProviders = <ThrowOnError extends boolean = false>(options: Options<TvSeasonWatchProvidersData, ThrowOnError>) => (options.client ?? client).get<TvSeasonWatchProvidersResponses, unknown, ThrowOnError>({
|
|
1527
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1528
|
+
url: '/3/tv/{series_id}/season/{season_number}/watch/providers',
|
|
1529
|
+
...options
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Details
|
|
1534
|
+
*
|
|
1535
|
+
* Query the details of a TV episode.
|
|
1536
|
+
*/
|
|
1537
|
+
export const tvEpisodeDetails = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeDetailsData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeDetailsResponses, unknown, ThrowOnError>({
|
|
1538
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1539
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}',
|
|
1540
|
+
...options
|
|
1541
|
+
});
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Account States
|
|
1545
|
+
*
|
|
1546
|
+
* Get the rating, watchlist and favourite status.
|
|
1547
|
+
*/
|
|
1548
|
+
export const tvEpisodeAccountStates = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeAccountStatesData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeAccountStatesResponses, unknown, ThrowOnError>({
|
|
1549
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1550
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/account_states',
|
|
1551
|
+
...options
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Changes
|
|
1556
|
+
*
|
|
1557
|
+
* Get the recent changes for a TV episode.
|
|
1558
|
+
*/
|
|
1559
|
+
export const tvEpisodeChangesById = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeChangesByIdData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeChangesByIdResponses, unknown, ThrowOnError>({
|
|
1560
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1561
|
+
url: '/3/tv/episode/{episode_id}/changes',
|
|
1562
|
+
...options
|
|
1563
|
+
});
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Credits
|
|
1567
|
+
*/
|
|
1568
|
+
export const tvEpisodeCredits = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeCreditsData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeCreditsResponses, unknown, ThrowOnError>({
|
|
1569
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1570
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/credits',
|
|
1571
|
+
...options
|
|
1572
|
+
});
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* External IDs
|
|
1576
|
+
*
|
|
1577
|
+
* Get a list of external IDs that have been added to a TV episode.
|
|
1578
|
+
*/
|
|
1579
|
+
export const tvEpisodeExternalIds = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeExternalIdsData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeExternalIdsResponses, unknown, ThrowOnError>({
|
|
1580
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1581
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/external_ids',
|
|
1582
|
+
...options
|
|
1583
|
+
});
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Images
|
|
1587
|
+
*
|
|
1588
|
+
* Get the images that belong to a TV episode.
|
|
1589
|
+
*/
|
|
1590
|
+
export const tvEpisodeImages = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeImagesData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeImagesResponses, unknown, ThrowOnError>({
|
|
1591
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1592
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/images',
|
|
1593
|
+
...options
|
|
1594
|
+
});
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Translations
|
|
1598
|
+
*
|
|
1599
|
+
* Get the translations that have been added to a TV episode.
|
|
1600
|
+
*/
|
|
1601
|
+
export const tvEpisodeTranslations = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeTranslationsData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeTranslationsResponses, unknown, ThrowOnError>({
|
|
1602
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1603
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/translations',
|
|
1604
|
+
...options
|
|
1605
|
+
});
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Videos
|
|
1609
|
+
*
|
|
1610
|
+
* Get the videos that belong to a TV episode.
|
|
1611
|
+
*/
|
|
1612
|
+
export const tvEpisodeVideos = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeVideosData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeVideosResponses, unknown, ThrowOnError>({
|
|
1613
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1614
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/videos',
|
|
1615
|
+
...options
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Delete Rating
|
|
1620
|
+
*
|
|
1621
|
+
* Delete your rating on a TV episode.
|
|
1622
|
+
*/
|
|
1623
|
+
export const tvEpisodeDeleteRating = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeDeleteRatingData, ThrowOnError>) => (options.client ?? client).delete<TvEpisodeDeleteRatingResponses, unknown, ThrowOnError>({
|
|
1624
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1625
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/rating',
|
|
1626
|
+
...options
|
|
1627
|
+
});
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Add Rating
|
|
1631
|
+
*
|
|
1632
|
+
* Rate a TV episode and save it to your rated list.
|
|
1633
|
+
*/
|
|
1634
|
+
export const tvEpisodeAddRating = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeAddRatingData, ThrowOnError>) => (options.client ?? client).post<TvEpisodeAddRatingResponses, unknown, ThrowOnError>({
|
|
1635
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1636
|
+
url: '/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/rating',
|
|
1637
|
+
...options
|
|
1638
|
+
});
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Details
|
|
1642
|
+
*
|
|
1643
|
+
* Get the details of a TV episode group.
|
|
1644
|
+
*/
|
|
1645
|
+
export const tvEpisodeGroupDetails = <ThrowOnError extends boolean = false>(options: Options<TvEpisodeGroupDetailsData, ThrowOnError>) => (options.client ?? client).get<TvEpisodeGroupDetailsResponses, unknown, ThrowOnError>({
|
|
1646
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1647
|
+
url: '/3/tv/episode_group/{tv_episode_group_id}',
|
|
1648
|
+
...options
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Available Regions
|
|
1653
|
+
*
|
|
1654
|
+
* Get the list of the countries we have watch provider (OTT/streaming) data for.
|
|
1655
|
+
*/
|
|
1656
|
+
export const watchProvidersAvailableRegions = <ThrowOnError extends boolean = false>(options?: Options<WatchProvidersAvailableRegionsData, ThrowOnError>) => (options?.client ?? client).get<WatchProvidersAvailableRegionsResponses, unknown, ThrowOnError>({
|
|
1657
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1658
|
+
url: '/3/watch/providers/regions',
|
|
1659
|
+
...options
|
|
1660
|
+
});
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Movie Providers
|
|
1664
|
+
*
|
|
1665
|
+
* Get the list of streaming providers we have for movies.
|
|
1666
|
+
*/
|
|
1667
|
+
export const watchProvidersMovieList = <ThrowOnError extends boolean = false>(options?: Options<WatchProvidersMovieListData, ThrowOnError>) => (options?.client ?? client).get<WatchProvidersMovieListResponses, unknown, ThrowOnError>({
|
|
1668
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1669
|
+
url: '/3/watch/providers/movie',
|
|
1670
|
+
...options
|
|
1671
|
+
});
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* TV Providers
|
|
1675
|
+
*
|
|
1676
|
+
* Get the list of streaming providers we have for TV shows.
|
|
1677
|
+
*/
|
|
1678
|
+
export const watchProviderTvList = <ThrowOnError extends boolean = false>(options?: Options<WatchProviderTvListData, ThrowOnError>) => (options?.client ?? client).get<WatchProviderTvListResponses, unknown, ThrowOnError>({
|
|
1679
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1680
|
+
url: '/3/watch/providers/tv',
|
|
1681
|
+
...options
|
|
1682
|
+
});
|