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