@tdanks2000/tmdb-wrapper 1.5.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -23,17 +23,7 @@ interface Certification {
23
23
  order: number;
24
24
  }
25
25
  interface Certifications {
26
- certifications: {
27
- US: Certification[];
28
- CA: Certification[];
29
- DE: Certification[];
30
- GB: Certification[];
31
- AU: Certification[];
32
- BR: Certification[];
33
- FR: Certification[];
34
- NZ: Certification[];
35
- IN: Certification[];
36
- };
26
+ certifications: Record<string, Certification[]>;
37
27
  }
38
28
  //# sourceMappingURL=certification.d.ts.map
39
29
  //#endregion
@@ -65,12 +55,18 @@ interface ChangeItem<T> {
65
55
  }
66
56
  //# sourceMappingURL=changes.d.ts.map
67
57
  //#endregion
58
+ //#region src/@types/wire.d.ts
59
+ type TMDBDate = string;
60
+ type TMDBDateTime = string;
61
+ type Nullable<T> = T | null;
62
+ //# sourceMappingURL=wire.d.ts.map
63
+ //#endregion
68
64
  //#region src/@types/endpoints/collection.d.ts
69
65
  interface Collection {
70
66
  id: number;
71
- backdrop_path: string;
67
+ backdrop_path: Nullable<string>;
72
68
  name: string;
73
- poster_path: string;
69
+ poster_path: Nullable<string>;
74
70
  adult: boolean;
75
71
  original_language: string;
76
72
  original_name: string;
@@ -91,17 +87,17 @@ interface CollectionImageOptions extends LanguageOption {
91
87
  interface CompanyDetails {
92
88
  description: string;
93
89
  headquarters: string;
94
- homepage: string;
90
+ homepage: Nullable<string>;
95
91
  id: number;
96
- logo_path: string;
92
+ logo_path: Nullable<string>;
97
93
  name: string;
98
94
  origin_country: string;
99
- parent_company: ParentCompany;
95
+ parent_company: Nullable<ParentCompany>;
100
96
  }
101
97
  interface ParentCompany {
102
98
  name: string;
103
99
  id: number;
104
- logo_path: string;
100
+ logo_path: Nullable<string>;
105
101
  }
106
102
  interface AlternativeNames {
107
103
  id: number;
@@ -228,21 +224,21 @@ declare enum ChangeKeys {
228
224
  //#region src/@types/endpoints/credits.d.ts
229
225
  interface CreditSeason {
230
226
  air_date?: string;
231
- poster_path?: string;
227
+ poster_path: Nullable<string>;
232
228
  season_number?: number;
233
229
  }
234
230
  interface Media$1 {
235
- i?: number;
231
+ id?: number;
236
232
  name?: string;
237
233
  first_air_date?: string;
238
234
  vote_count?: number;
239
235
  overview?: string;
240
236
  vote_average?: number;
241
- backdrop_path?: string;
237
+ backdrop_path: Nullable<string>;
242
238
  genre_ids?: number[];
243
239
  original_name?: string;
244
240
  origin_country?: string[];
245
- poster_path?: string;
241
+ poster_path: Nullable<string>;
246
242
  original_language?: string;
247
243
  popularity?: number;
248
244
  character?: string;
@@ -275,7 +271,7 @@ interface Cast {
275
271
  name: string;
276
272
  original_name: string;
277
273
  popularity: number;
278
- profile_path: string;
274
+ profile_path: Nullable<string>;
279
275
  cast_id: number;
280
276
  character: string;
281
277
  credit_id: string;
@@ -289,7 +285,7 @@ interface Crew {
289
285
  name: string;
290
286
  original_name: string;
291
287
  popularity: number;
292
- profile_path: string;
288
+ profile_path: Nullable<string>;
293
289
  credit_id: string;
294
290
  department: string;
295
291
  job: string;
@@ -336,7 +332,7 @@ interface AggregateCast {
336
332
  name: string;
337
333
  original_name: string;
338
334
  popularity: number;
339
- profile_path: string;
335
+ profile_path: Nullable<string>;
340
336
  roles: CastRole[];
341
337
  total_episode_count: number;
342
338
  order: number;
@@ -354,7 +350,7 @@ interface AggregateCrew {
354
350
  name: string;
355
351
  original_name: string;
356
352
  popularity: number;
357
- profile_path: string;
353
+ profile_path: Nullable<string>;
358
354
  jobs: CrewJob[];
359
355
  department: string;
360
356
  total_episode_count: number;
@@ -443,17 +439,17 @@ interface ExternalIdOptions {
443
439
  external_source: ExternalSource;
444
440
  language?: string;
445
441
  }
446
- type MediaTagged<T> = T & {
447
- media_type: MediaType;
442
+ type MediaTagged<T, TMediaType extends string> = T & {
443
+ media_type: TMediaType;
448
444
  };
449
445
  interface FindResult {
450
- movie_results: MediaTagged<Movie>[];
451
- person_results: MediaTagged<Person>[];
452
- tv_results: MediaTagged<TV>[];
453
- tv_episode_results: MediaTagged<Episode>[];
446
+ movie_results: MediaTagged<Movie, "movie">[];
447
+ person_results: MediaTagged<Person, "person">[];
448
+ tv_results: MediaTagged<TV, "tv">[];
449
+ tv_episode_results: MediaTagged<Episode, "tv_episode">[];
454
450
  tv_season_results: MediaTagged<Season & {
455
- show_id: string;
456
- }>[];
451
+ show_id: number;
452
+ }, "tv_season">[];
457
453
  }
458
454
  //#endregion
459
455
  //#region src/@types/endpoints/genre.d.ts
@@ -479,8 +475,8 @@ interface PageOption {
479
475
  page?: number;
480
476
  }
481
477
  interface ChangeOption extends PageOption {
482
- start_date?: Date;
483
- end_date?: Date;
478
+ start_date?: TMDBDate;
479
+ end_date?: TMDBDate;
484
480
  }
485
481
  type AppendToResponseMovieKey = "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "lists" | "release_dates" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "keywords";
486
482
  type AppendToResponseTvKey = "content_ratings" | "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "aggregate_credits" | "episode_groups" | "screened_theatrically" | "keywords";
@@ -516,7 +512,7 @@ type AppendToResponse<K, T extends AppendToResponseAllKeys[] | undefined, Media
516
512
  } : object) & ("watch/providers" extends T[number] ? {
517
513
  "watch/providers": Omit<WatchProviders, "id">;
518
514
  } : object) & ("aggregate_credits" extends T[number] ? {
519
- aggregate_credits: Omit<Credits, "id">;
515
+ aggregate_credits: Omit<AggregateCredits, "id">;
520
516
  } : object) & ("episode_groups" extends T[number] ? {
521
517
  episode_groups: Omit<EpisodeGroups, "id">;
522
518
  } : object) & ("screened_theatrically" extends T[number] ? {
@@ -560,31 +556,31 @@ interface Keywords {
560
556
  interface BelongsToCollection {
561
557
  id: number;
562
558
  name: string;
563
- poster_path: string;
564
- backdrop_path: string;
559
+ poster_path: Nullable<string>;
560
+ backdrop_path: Nullable<string>;
565
561
  }
566
562
  interface MovieDetails {
567
563
  adult: boolean;
568
- backdrop_path: string;
569
- belongs_to_collection?: BelongsToCollection;
564
+ backdrop_path: Nullable<string>;
565
+ belongs_to_collection?: Nullable<BelongsToCollection>;
570
566
  budget: number;
571
567
  genres: Genre[];
572
- homepage: string;
568
+ homepage: Nullable<string>;
573
569
  id: number;
574
- imdb_id: string;
570
+ imdb_id: Nullable<string>;
575
571
  original_language: string;
576
572
  original_title: string;
577
573
  overview: string;
578
574
  popularity: number;
579
- poster_path?: string;
575
+ poster_path: Nullable<string>;
580
576
  production_companies: ProductionCompany[];
581
577
  production_countries: ProductionCountry[];
582
578
  release_date: string;
583
579
  revenue: number;
584
- runtime: number;
580
+ runtime: Nullable<number>;
585
581
  spoken_languages: SpokenLanguage[];
586
582
  status: string;
587
- tagline: string;
583
+ tagline: Nullable<string>;
588
584
  title: string;
589
585
  video: boolean;
590
586
  vote_average: number;
@@ -601,7 +597,7 @@ declare enum ReleaseDateType {
601
597
  interface ReleaseDate {
602
598
  certification: string;
603
599
  iso_639_1: string;
604
- release_date: Date;
600
+ release_date: TMDBDateTime;
605
601
  type: ReleaseDateType;
606
602
  note: string;
607
603
  }
@@ -627,7 +623,7 @@ interface MovieList {
627
623
  iso_639_1: string;
628
624
  list_type: string;
629
625
  name: string;
630
- poster_path: string;
626
+ poster_path: Nullable<string>;
631
627
  }
632
628
  interface MovieLists {
633
629
  id: number;
@@ -638,26 +634,26 @@ interface MovieLists {
638
634
  }
639
635
  interface LatestMovie {
640
636
  adult: boolean;
641
- backdrop_path?: string;
642
- belongs_to_collection?: BelongsToCollection;
637
+ backdrop_path: Nullable<string>;
638
+ belongs_to_collection?: Nullable<BelongsToCollection>;
643
639
  budget: number;
644
640
  genres: Genre[];
645
- homepage: string;
641
+ homepage: Nullable<string>;
646
642
  id: number;
647
- imdb_id: string;
643
+ imdb_id: Nullable<string>;
648
644
  original_language: string;
649
645
  original_title: string;
650
646
  overview: string;
651
647
  popularity: number;
652
- poster_path: string;
648
+ poster_path: Nullable<string>;
653
649
  production_companies: ProductionCompany[];
654
650
  production_countries: ProductionCountry[];
655
651
  release_date: string;
656
652
  revenue: number;
657
- runtime: number;
653
+ runtime: Nullable<number>;
658
654
  spoken_languages: SpokenLanguage[];
659
655
  status: string;
660
- tagline: string;
656
+ tagline: Nullable<string>;
661
657
  title: string;
662
658
  video: boolean;
663
659
  vote_average: number;
@@ -710,9 +706,9 @@ interface MoviesImageSearchOptions extends LanguageOption {
710
706
  //#region src/@types/endpoints/networks.d.ts
711
707
  interface NetworkDetails {
712
708
  headquarters: string;
713
- homepage: string;
709
+ homepage: Nullable<string>;
714
710
  id: number;
715
- logo_path: string;
711
+ logo_path: Nullable<string>;
716
712
  name: string;
717
713
  origin_country: string;
718
714
  }
@@ -728,8 +724,8 @@ interface Cast$1 {
728
724
  credit_id: string;
729
725
  vote_count: number;
730
726
  id: number;
731
- backdrop_path: string;
732
- poster_path: string;
727
+ backdrop_path: Nullable<string>;
728
+ poster_path: Nullable<string>;
733
729
  original_language: string;
734
730
  vote_average: number;
735
731
  genre_ids: number[];
@@ -743,8 +739,8 @@ interface Crew$1 {
743
739
  credit_id: string;
744
740
  overview: string;
745
741
  vote_count: number;
746
- poster_path: string;
747
- backdrop_path: string;
742
+ poster_path: Nullable<string>;
743
+ backdrop_path: Nullable<string>;
748
744
  popularity: number;
749
745
  genre_ids: number[];
750
746
  job: string;
@@ -789,29 +785,29 @@ interface PersonTvShowCredit {
789
785
  id: number;
790
786
  }
791
787
  interface PersonCombinedCredits {
792
- cast: (PersonMovieCast & PersonTvShowCast)[];
793
- crew: (PersonMovieCrew & PersonTvShowCrew)[];
788
+ cast: Array<PersonMovieCast | PersonTvShowCast>;
789
+ crew: Array<PersonMovieCrew | PersonTvShowCrew>;
794
790
  id: number;
795
791
  }
796
792
  interface PersonDetails {
797
- birthday: string;
793
+ birthday: Nullable<string>;
798
794
  known_for_department: string;
799
- deathday: string;
795
+ deathday: Nullable<string>;
800
796
  id: number;
801
797
  name: string;
802
798
  also_known_as: string[];
803
799
  gender: number;
804
800
  biography: string;
805
801
  popularity: number;
806
- place_of_birth: string;
807
- profile_path: string;
802
+ place_of_birth: Nullable<string>;
803
+ profile_path: Nullable<string>;
808
804
  adult: boolean;
809
- imdb_id: string;
810
- homepage: string;
805
+ imdb_id: Nullable<string>;
806
+ homepage: Nullable<string>;
811
807
  }
812
808
  type PersonChangeValue = string | {
813
809
  profile: {
814
- file_path: string;
810
+ file_path: Nullable<string>;
815
811
  };
816
812
  };
817
813
  interface PopularPersons {
@@ -826,15 +822,15 @@ interface PeopleImages {
826
822
  }
827
823
  interface TaggedImage {
828
824
  aspect_ratio: number;
829
- file_path: string;
825
+ file_path: Nullable<string>;
830
826
  height: number;
831
827
  id: string;
832
- iso_639_1: string;
828
+ iso_639_1: Nullable<string>;
833
829
  vote_average: number;
834
830
  vote_count: number;
835
831
  width: number;
836
832
  image_type: string;
837
- media_type: string;
833
+ media_type: "movie" | "tv";
838
834
  media: Movie | TV;
839
835
  }
840
836
  interface TaggedImages {
@@ -845,7 +841,7 @@ interface TaggedImages {
845
841
  }
846
842
  interface PersonTranslations {
847
843
  id: number;
848
- translations: {
844
+ translations: Array<{
849
845
  iso_3166_1: string;
850
846
  iso_639_1: string;
851
847
  name: string;
@@ -853,15 +849,15 @@ interface PersonTranslations {
853
849
  data: {
854
850
  biography: string;
855
851
  };
856
- };
852
+ }>;
857
853
  }
858
854
  //#endregion
859
855
  //#region src/@types/endpoints/review.d.ts
860
856
  interface ReviewDetails extends Review {
861
857
  iso_639_1: string;
862
858
  media_id: number;
863
- media_title: number;
864
- media_type: number;
859
+ media_title: string;
860
+ media_type: "movie" | "tv";
865
861
  }
866
862
  //# sourceMappingURL=review.d.ts.map
867
863
  //#endregion
@@ -925,7 +921,7 @@ interface Episode {
925
921
  overview: string;
926
922
  production_code: string;
927
923
  season_number: number;
928
- still_path: string;
924
+ still_path: Nullable<string>;
929
925
  vote_average: number;
930
926
  vote_count: number;
931
927
  runtime: number;
@@ -949,7 +945,7 @@ interface TvEpisodeCredit extends Credits {
949
945
  }
950
946
  interface TvEpisodeTranslations {
951
947
  id: number;
952
- translations: {
948
+ translations: Array<{
953
949
  iso_3166_1: string;
954
950
  iso_639_1: string;
955
951
  name: string;
@@ -958,7 +954,7 @@ interface TvEpisodeTranslations {
958
954
  name: string;
959
955
  overview: string;
960
956
  };
961
- };
957
+ }>;
962
958
  }
963
959
  type TvEpisodeChangeValue = string | unknown;
964
960
  interface TvEpisodeImageSearchOptions extends LanguageOption {
@@ -986,7 +982,7 @@ interface SeasonDetails {
986
982
  name: string;
987
983
  overview: string;
988
984
  id: number;
989
- poster_path: string | null;
985
+ poster_path: Nullable<string>;
990
986
  season_number: number;
991
987
  }
992
988
  type TvSeasonChangeValue = string | {
@@ -1013,7 +1009,7 @@ interface CreatedBy {
1013
1009
  credit_id: string;
1014
1010
  name: string;
1015
1011
  gender: number;
1016
- profile_path: string;
1012
+ profile_path: Nullable<string>;
1017
1013
  }
1018
1014
  interface NextEpisodeToAir {
1019
1015
  id: number;
@@ -1024,10 +1020,10 @@ interface NextEpisodeToAir {
1024
1020
  air_date: string;
1025
1021
  episode_number: number;
1026
1022
  production_code: string;
1027
- runtime: number;
1023
+ runtime: Nullable<number>;
1028
1024
  season_number: number;
1029
1025
  show_id: number;
1030
- still_path: string;
1026
+ still_path: Nullable<string>;
1031
1027
  }
1032
1028
  interface LastEpisodeToAir {
1033
1029
  air_date: string;
@@ -1037,14 +1033,14 @@ interface LastEpisodeToAir {
1037
1033
  overview: string;
1038
1034
  production_code: string;
1039
1035
  season_number: number;
1040
- still_path: string;
1036
+ still_path: Nullable<string>;
1041
1037
  vote_average: number;
1042
1038
  vote_count: number;
1043
1039
  }
1044
1040
  interface Network {
1045
- name: string;
1046
1041
  id: number;
1047
- logo_path: string;
1042
+ logo_path: Nullable<string>;
1043
+ name: string;
1048
1044
  origin_country: string;
1049
1045
  }
1050
1046
  interface Season {
@@ -1053,23 +1049,23 @@ interface Season {
1053
1049
  id: number;
1054
1050
  name: string;
1055
1051
  overview: string;
1056
- poster_path: string;
1052
+ poster_path: Nullable<string>;
1057
1053
  season_number: number;
1058
1054
  }
1059
1055
  interface TvShowDetails {
1060
- backdrop_path: string;
1056
+ backdrop_path: Nullable<string>;
1061
1057
  created_by: CreatedBy[];
1062
1058
  episode_run_time: number[];
1063
1059
  first_air_date: string;
1064
1060
  genres: Genre[];
1065
- homepage: string;
1061
+ homepage: Nullable<string>;
1066
1062
  id: number;
1067
1063
  in_production: boolean;
1068
1064
  languages: string[];
1069
1065
  last_air_date: string;
1070
- last_episode_to_air: LastEpisodeToAir;
1066
+ last_episode_to_air: Nullable<LastEpisodeToAir>;
1071
1067
  name: string;
1072
- next_episode_to_air?: NextEpisodeToAir;
1068
+ next_episode_to_air?: Nullable<NextEpisodeToAir>;
1073
1069
  networks: Network[];
1074
1070
  number_of_episodes: number;
1075
1071
  number_of_seasons: number;
@@ -1078,23 +1074,17 @@ interface TvShowDetails {
1078
1074
  original_name: string;
1079
1075
  overview: string;
1080
1076
  popularity: number;
1081
- poster_path: string;
1077
+ poster_path: Nullable<string>;
1082
1078
  production_companies: ProductionCompany[];
1083
1079
  production_countries: ProductionCountry[];
1084
1080
  seasons: Season[];
1085
1081
  spoken_languages: SpokenLanguage[];
1086
1082
  status: string;
1087
- tagline: string;
1083
+ tagline: Nullable<string>;
1088
1084
  type: string;
1089
1085
  vote_average: number;
1090
1086
  vote_count: number;
1091
1087
  }
1092
- interface Network {
1093
- id: number;
1094
- logo_path: string;
1095
- name: string;
1096
- origin_country: string;
1097
- }
1098
1088
  interface EpisodeGroup {
1099
1089
  description: string;
1100
1090
  episode_count: number;
@@ -1118,7 +1108,7 @@ interface ScreenedTheatrically {
1118
1108
  results: ScreenedTheatricallyResult[];
1119
1109
  }
1120
1110
  interface SimilarTvShow {
1121
- backdrop_path: string;
1111
+ backdrop_path: Nullable<string>;
1122
1112
  first_air_date: string;
1123
1113
  genre_ids: number[];
1124
1114
  id: number;
@@ -1126,7 +1116,7 @@ interface SimilarTvShow {
1126
1116
  original_name: string;
1127
1117
  overview: string;
1128
1118
  origin_country: string[];
1129
- poster_path: string;
1119
+ poster_path: Nullable<string>;
1130
1120
  popularity: number;
1131
1121
  name: string;
1132
1122
  vote_average: number;
@@ -1139,12 +1129,12 @@ interface Similartv {
1139
1129
  total_results: number;
1140
1130
  }
1141
1131
  interface Latesttv {
1142
- backdrop_path?: string;
1132
+ backdrop_path: Nullable<string>;
1143
1133
  created_by: CreatedBy[];
1144
1134
  episode_run_time: number[];
1145
1135
  first_air_date: string;
1146
1136
  genres: Genre[];
1147
- homepage: string;
1137
+ homepage: Nullable<string>;
1148
1138
  id: number;
1149
1139
  in_production: boolean;
1150
1140
  languages: string[];
@@ -1156,9 +1146,9 @@ interface Latesttv {
1156
1146
  origin_country: string[];
1157
1147
  original_language: string;
1158
1148
  original_name: string;
1159
- overview?: string;
1149
+ overview?: Nullable<string>;
1160
1150
  popularity: number;
1161
- poster_path?: string;
1151
+ poster_path: Nullable<string>;
1162
1152
  production_companies: ProductionCompany[];
1163
1153
  seasons: Season[];
1164
1154
  status: string;
@@ -1167,10 +1157,10 @@ interface Latesttv {
1167
1157
  vote_count: number;
1168
1158
  }
1169
1159
  interface OnTheAirResult {
1170
- poster_path: string;
1160
+ poster_path: Nullable<string>;
1171
1161
  popularity: number;
1172
1162
  id: number;
1173
- backdrop_path: string;
1163
+ backdrop_path: Nullable<string>;
1174
1164
  vote_average: number;
1175
1165
  overview: string;
1176
1166
  first_air_date: string;
@@ -1188,10 +1178,10 @@ interface OnTheAir {
1188
1178
  total_pages: number;
1189
1179
  }
1190
1180
  interface AiringTodayResult {
1191
- poster_path: string;
1181
+ poster_path: Nullable<string>;
1192
1182
  popularity: number;
1193
1183
  id: number;
1194
- backdrop_path: string;
1184
+ backdrop_path: Nullable<string>;
1195
1185
  vote_average: number;
1196
1186
  overview: string;
1197
1187
  first_air_date: string;
@@ -1209,10 +1199,10 @@ interface tvAiringToday {
1209
1199
  total_pages: number;
1210
1200
  }
1211
1201
  interface PopularTvShowResult {
1212
- poster_path: string;
1202
+ poster_path: Nullable<string>;
1213
1203
  popularity: number;
1214
1204
  id: number;
1215
- backdrop_path: string;
1205
+ backdrop_path: Nullable<string>;
1216
1206
  vote_average: number;
1217
1207
  overview: string;
1218
1208
  first_air_date: string;
@@ -1230,10 +1220,10 @@ interface Populartv {
1230
1220
  total_pages: number;
1231
1221
  }
1232
1222
  interface TopRatedTvShowResult {
1233
- poster_path: string;
1223
+ poster_path: Nullable<string>;
1234
1224
  popularity: number;
1235
1225
  id: number;
1236
- backdrop_path: string;
1226
+ backdrop_path: Nullable<string>;
1237
1227
  vote_average: number;
1238
1228
  overview: string;
1239
1229
  first_air_date: string;
@@ -1295,337 +1285,67 @@ interface WatchRegion {
1295
1285
  interface WatchRegionsResponse {
1296
1286
  results: WatchRegion[];
1297
1287
  }
1298
- interface WatchLocale {
1299
- AR: {
1300
- link: string;
1301
- flatrate: Flatrate[];
1302
- rent: Rent[];
1303
- buy: Buy[];
1304
- };
1305
- AT: {
1306
- link: string;
1307
- rent: Rent[];
1308
- buy: Buy[];
1309
- };
1310
- AU: {
1311
- link: string;
1312
- flatrate: Flatrate[];
1313
- rent: Rent[];
1314
- buy: Buy[];
1315
- };
1316
- BE: {
1317
- link: string;
1318
- buy: Buy[];
1319
- flatrate: Flatrate[];
1320
- rent: Rent[];
1321
- };
1322
- BR: {
1323
- link: string;
1324
- rent: Rent[];
1325
- buy: Buy[];
1326
- flatrate: Flatrate[];
1327
- };
1328
- CA: {
1329
- link: string;
1330
- rent: Rent[];
1331
- flatrate: Flatrate[];
1332
- buy: Buy[];
1333
- };
1334
- CH: {
1335
- link: string;
1336
- rent: Rent[];
1337
- buy: Buy[];
1338
- flatrate: Flatrate[];
1339
- };
1340
- CL: {
1341
- link: string;
1342
- flatrate: Flatrate[];
1343
- buy: Buy[];
1344
- rent: Rent[];
1345
- };
1346
- CO: {
1347
- link: string;
1348
- flatrate: Flatrate[];
1349
- rent: Rent[];
1350
- buy: Buy[];
1351
- };
1352
- CZ: {
1353
- link: string;
1354
- buy: Buy[];
1355
- flatrate: Flatrate[];
1356
- rent: Rent[];
1357
- };
1358
- DE: {
1359
- link: string;
1360
- rent: Rent[];
1361
- buy: Buy[];
1362
- };
1363
- DK: {
1364
- link: string;
1365
- rent: Rent[];
1366
- buy: Buy[];
1367
- flatrate: Flatrate[];
1368
- };
1369
- EC: {
1370
- link: string;
1371
- flatrate: Flatrate[];
1372
- buy: Buy[];
1373
- rent: Rent[];
1374
- };
1375
- EE: {
1376
- link: string;
1377
- flatrate: Flatrate[];
1378
- buy: Buy[];
1379
- rent: Rent[];
1380
- };
1381
- ES: {
1382
- link: string;
1383
- rent: Rent[];
1384
- flatrate: Flatrate[];
1385
- buy: Buy[];
1386
- };
1387
- FI: {
1388
- link: string;
1389
- buy: Buy[];
1390
- flatrate: Flatrate[];
1391
- rent: Rent[];
1392
- };
1393
- FR: {
1394
- link: string;
1395
- flatrate: Flatrate[];
1396
- buy: Buy[];
1397
- rent: Rent[];
1398
- };
1399
- GB: {
1400
- link: string;
1401
- rent: Rent[];
1402
- flatrate: Flatrate[];
1403
- buy: Buy[];
1404
- };
1405
- GR: {
1406
- link: string;
1407
- flatrate: Flatrate[];
1408
- rent: Rent[];
1409
- buy: Buy[];
1410
- };
1411
- HU: {
1412
- link: string;
1413
- rent: Rent[];
1414
- buy: Buy[];
1415
- flatrate: Flatrate[];
1416
- };
1417
- ID: {
1418
- link: string;
1419
- flatrate: Flatrate[];
1420
- rent: Rent[];
1421
- buy: Buy[];
1422
- };
1423
- IE: {
1424
- link: string;
1425
- rent: Rent[];
1426
- flatrate: Flatrate[];
1427
- buy: Buy[];
1428
- };
1429
- IN: {
1430
- link: string;
1431
- buy: Buy[];
1432
- flatrate: Flatrate[];
1433
- rent: Rent[];
1434
- };
1435
- IT: {
1436
- link: string;
1437
- buy: Buy[];
1438
- flatrate: Flatrate[];
1439
- rent: Rent[];
1440
- };
1441
- JP: {
1442
- link: string;
1443
- rent: Rent[];
1444
- flatrate: Flatrate[];
1445
- buy: Buy[];
1446
- };
1447
- KR: {
1448
- link: string;
1449
- buy: Buy[];
1450
- rent: Rent[];
1451
- flatrate: Flatrate[];
1452
- };
1453
- LT: {
1454
- link: string;
1455
- buy: Buy[];
1456
- flatrate: Flatrate[];
1457
- };
1458
- LV: {
1459
- link: string;
1460
- buy: Buy[];
1461
- flatrate: Flatrate[];
1462
- };
1463
- MX: {
1464
- link: string;
1465
- flatrate: Flatrate[];
1466
- rent: Rent[];
1467
- buy: Buy[];
1468
- };
1469
- MY: {
1470
- link: string;
1471
- rent: Rent[];
1472
- flatrate: Flatrate[];
1473
- buy: Buy[];
1474
- };
1475
- NL: {
1476
- link: string;
1477
- flatrate: Flatrate[];
1478
- buy: Buy[];
1479
- rent: Rent[];
1480
- };
1481
- NO: {
1482
- link: string;
1483
- buy: Buy[];
1484
- rent: Rent[];
1485
- flatrate: Flatrate[];
1486
- };
1487
- NZ: {
1488
- link: string;
1489
- buy: Buy[];
1490
- rent: Rent[];
1491
- flatrate: Flatrate[];
1492
- };
1493
- PE: {
1494
- link: string;
1495
- flatrate: Flatrate[];
1496
- rent: Rent[];
1497
- buy: Buy[];
1498
- };
1499
- PH: {
1500
- link: string;
1501
- rent: Rent[];
1502
- buy: Buy[];
1503
- flatrate: Flatrate[];
1504
- };
1505
- PL: {
1506
- link: string;
1507
- rent: Rent[];
1508
- flatrate: Flatrate[];
1509
- buy: Buy[];
1510
- };
1511
- PT: {
1512
- link: string;
1513
- rent: Rent[];
1514
- flatrate: Flatrate[];
1515
- buy: Buy[];
1516
- };
1517
- RO: {
1518
- link: string;
1519
- flatrate: Flatrate[];
1520
- };
1521
- RU: {
1522
- link: string;
1523
- rent: Rent[];
1524
- flatrate: Flatrate[];
1525
- buy: Buy[];
1526
- };
1527
- SE: {
1528
- link: string;
1529
- rent: Rent[];
1530
- flatrate: Flatrate[];
1531
- buy: Buy[];
1532
- };
1533
- SG: {
1534
- link: string;
1535
- flatrate: Flatrate[];
1536
- buy: Buy[];
1537
- rent: Rent[];
1538
- };
1539
- TH: {
1540
- link: string;
1541
- flatrate: Flatrate[];
1542
- rent: Rent[];
1543
- buy: Buy[];
1544
- };
1545
- TR: {
1546
- link: string;
1547
- buy: Buy[];
1548
- rent: Rent[];
1549
- flatrate: Flatrate[];
1550
- };
1551
- US: {
1552
- link: string;
1553
- rent: Rent[];
1554
- buy: Buy[];
1555
- flatrate: Flatrate[];
1556
- };
1557
- VE: {
1558
- link: string;
1559
- flatrate: Flatrate[];
1560
- rent: Rent[];
1561
- buy: Buy[];
1562
- };
1563
- ZA: {
1564
- link: string;
1565
- rent: Rent[];
1566
- buy: Buy[];
1567
- flatrate: Flatrate[];
1568
- };
1288
+ interface WatchProviderEntry {
1289
+ display_priority: number;
1290
+ logo_path: string | null;
1291
+ provider_id: number;
1292
+ provider_name: string;
1569
1293
  }
1294
+ type WatchLocale = Record<string, {
1295
+ link: string;
1296
+ flatrate?: WatchProviderEntry[];
1297
+ rent?: WatchProviderEntry[];
1298
+ buy?: WatchProviderEntry[];
1299
+ free?: WatchProviderEntry[];
1300
+ ads?: WatchProviderEntry[];
1301
+ }>;
1570
1302
  interface WatchProviders {
1571
1303
  id: number;
1572
1304
  results: WatchLocale;
1573
1305
  }
1306
+ interface WatchProviderListItem {
1307
+ display_priority: number;
1308
+ logo_path: string | null;
1309
+ provider_id: number;
1310
+ provider_name: string;
1311
+ }
1312
+ interface WatchProviderListResponse {
1313
+ results: WatchProviderListItem[];
1314
+ }
1574
1315
  //# sourceMappingURL=watchProviders.d.ts.map
1575
1316
  //#endregion
1576
1317
  //#region src/utils/api.d.ts
1577
- /**
1578
- * Lightweight TMDB v3 API client.
1579
- *
1580
- * - Sends requests to `https://api.themoviedb.org/3`.
1581
- * - Supports authentication via:
1582
- * - v4 API Read Access Token (Bearer), and/or
1583
- * - v3 API key via `api_key` query parameter.
1584
- *
1585
- * Notes:
1586
- * - Many endpoints accept either method depending on your TMDB settings.
1587
- * - When an API key is present, it is appended as `api_key` in the query string.
1588
- */
1318
+ type Primitive = string | number | boolean;
1319
+ type QueryValue = Primitive | null | undefined | Array<Primitive | null | undefined>;
1320
+ type Query = Record<string, QueryValue>;
1321
+ interface RequestOptions<Q extends object = object> {
1322
+ query?: Q;
1323
+ signal?: AbortSignal;
1324
+ timeoutMs?: number;
1325
+ retries?: number;
1326
+ retryDelayMs?: number;
1327
+ }
1328
+ interface RequestConfig {
1329
+ signal?: AbortSignal;
1330
+ timeoutMs?: number;
1331
+ retries?: number;
1332
+ retryDelayMs?: number;
1333
+ }
1334
+ declare class TMDBError extends Error {
1335
+ readonly status: number;
1336
+ readonly url: string;
1337
+ readonly payload?: unknown | undefined;
1338
+ constructor(message: string, status: number, url: string, payload?: unknown | undefined);
1339
+ }
1340
+ declare const parseOptions: (options?: Query) => string;
1341
+ declare const csv: (values?: ReadonlyArray<Primitive | null | undefined>) => string | undefined;
1342
+ declare const withQuery: <Q extends object>(query?: Q, config?: RequestConfig) => RequestOptions<Q>;
1589
1343
  declare class API {
1590
- /**
1591
- * Optional v3 API key (sent as `api_key` query param).
1592
- */
1593
1344
  private apiKey?;
1594
- /**
1595
- * Optional v4 read access token (sent as `Authorization: Bearer ...`).
1596
- */
1597
1345
  private accessToken?;
1598
- /**
1599
- * Create a new API client.
1600
- *
1601
- * @param {TokenType} auth - Authentication information.
1602
- */
1603
1346
  constructor(auth: TokenType);
1604
- /**
1605
- * Generic HTTP GET request.
1606
- *
1607
- * @template T - Response JSON type.
1608
- * @template O - Query options (query params) type.
1609
- *
1610
- * @param {string} path - The TMDB path beginning with `/`, e.g. `/movie/550`.
1611
- * @param {O} [options] - Query parameters to serialize.
1612
- *
1613
- * @returns {Promise<T>} Resolves with parsed JSON typed as `T`.
1614
- * @throws {ErrorResponse} Rejects with parsed TMDB error payload when `response.ok` is false.
1615
- */
1616
- get<T, O extends Record<string, unknown> = Record<string, unknown>>(path: string, options?: O): Promise<T>;
1347
+ get<T, Q extends object = object>(path: string, opts?: RequestOptions<Q>): Promise<T>;
1617
1348
  }
1618
- /**
1619
- * Serializes an options object into a query string.
1620
- *
1621
- * - Skips `undefined` and `null`.
1622
- * - Arrays are expanded into repeated keys:
1623
- * `{ with_genres: ["12", "16"] }` -> `with_genres=12&with_genres=16`
1624
- *
1625
- * @param {Record<string, unknown>} [options] - Options to serialize.
1626
- * @returns {string} Query string without the leading `?`.
1627
- */
1628
- declare const parseOptions: (options?: Record<string, unknown>) => string;
1629
1349
  //# sourceMappingURL=api.d.ts.map
1630
1350
  //#endregion
1631
1351
  //#region src/utils/getimagePath.d.ts
@@ -1670,15 +1390,15 @@ type MediaType = "movie" | "tv" | "person";
1670
1390
  interface AuthorDetails {
1671
1391
  name: string;
1672
1392
  username: string;
1673
- avatar_path: string;
1674
- rating?: number;
1393
+ avatar_path: Nullable<string>;
1394
+ rating?: Nullable<number>;
1675
1395
  }
1676
1396
  type KnownFor = MovieWithMediaType | TVWithMediaType;
1677
1397
  interface Person {
1678
1398
  id: number;
1679
1399
  name: string;
1680
1400
  known_for: KnownFor[];
1681
- profile_path: string;
1401
+ profile_path: Nullable<string>;
1682
1402
  adult: boolean;
1683
1403
  known_for_department: string;
1684
1404
  gender: number;
@@ -1689,7 +1409,7 @@ interface PersonWithMediaType extends Person {
1689
1409
  }
1690
1410
  interface Movie {
1691
1411
  id: number;
1692
- poster_path: string;
1412
+ poster_path: Nullable<string>;
1693
1413
  adult: boolean;
1694
1414
  overview: string;
1695
1415
  release_date: string;
@@ -1697,7 +1417,7 @@ interface Movie {
1697
1417
  original_title: string;
1698
1418
  original_language: string;
1699
1419
  title: string;
1700
- backdrop_path: string;
1420
+ backdrop_path: Nullable<string>;
1701
1421
  popularity: number;
1702
1422
  vote_count: number;
1703
1423
  video: boolean;
@@ -1708,7 +1428,7 @@ interface MovieWithMediaType extends Movie {
1708
1428
  }
1709
1429
  interface Company {
1710
1430
  id: number;
1711
- logo_path: string;
1431
+ logo_path: Nullable<string>;
1712
1432
  name: string;
1713
1433
  origin_country: string;
1714
1434
  }
@@ -1716,13 +1436,13 @@ interface TV {
1716
1436
  id: number;
1717
1437
  name: string;
1718
1438
  first_air_date: string;
1719
- backdrop_path: string;
1439
+ backdrop_path: Nullable<string>;
1720
1440
  genre_ids: number[];
1721
1441
  origin_country: string[];
1722
1442
  original_language: string;
1723
1443
  original_name: string;
1724
1444
  overview: string;
1725
- poster_path: string;
1445
+ poster_path: Nullable<string>;
1726
1446
  popularity: number;
1727
1447
  vote_count: number;
1728
1448
  vote_average: number;
@@ -1735,15 +1455,15 @@ interface Genre {
1735
1455
  name: string;
1736
1456
  }
1737
1457
  interface ExternalIds {
1738
- imdb_id: string;
1739
- facebook_id: string;
1740
- instagram_id: string;
1741
- twitter_id: string;
1458
+ imdb_id: Nullable<string>;
1459
+ facebook_id: Nullable<string>;
1460
+ instagram_id: Nullable<string>;
1461
+ twitter_id: Nullable<string>;
1742
1462
  id: number;
1743
1463
  }
1744
1464
  interface ProductionCompany {
1745
1465
  id: number;
1746
- logo_path: string;
1466
+ logo_path: Nullable<string>;
1747
1467
  name: string;
1748
1468
  origin_country: string;
1749
1469
  }
@@ -1791,9 +1511,9 @@ interface Review {
1791
1511
  author: string;
1792
1512
  author_details: AuthorDetails;
1793
1513
  content: string;
1794
- created_at: Date;
1514
+ created_at: TMDBDateTime;
1795
1515
  id: string;
1796
- updated_at: Date;
1516
+ updated_at: TMDBDateTime;
1797
1517
  url: string;
1798
1518
  }
1799
1519
  interface Reviews {
@@ -1823,7 +1543,7 @@ interface Image {
1823
1543
  aspect_ratio: number;
1824
1544
  file_path: string;
1825
1545
  height: number;
1826
- iso_639_1: string;
1546
+ iso_639_1: Nullable<string>;
1827
1547
  vote_average: number;
1828
1548
  vote_count: number;
1829
1549
  width: number;
@@ -1834,10 +1554,13 @@ interface Images {
1834
1554
  logos: Image[];
1835
1555
  posters: Image[];
1836
1556
  }
1837
- interface TMDBConfig {
1557
+ type TMDBConfig = {
1558
+ accessToken: string;
1838
1559
  apiKey?: string;
1560
+ } | {
1561
+ apiKey: string;
1839
1562
  accessToken?: string;
1840
- }
1563
+ };
1841
1564
  type TokenType = string | TMDBConfig;
1842
1565
  //# sourceMappingURL=types.d.ts.map
1843
1566
  //#endregion
@@ -1852,13 +1575,13 @@ declare class BaseEndpoint {
1852
1575
  /**
1853
1576
  * Low-level HTTP client wrapper used by all endpoints.
1854
1577
  */
1855
- protected api: API;
1578
+ protected readonly api: API;
1856
1579
  /**
1857
1580
  * Create a new endpoint instance.
1858
1581
  *
1859
1582
  * @param {TokenType} auth - Authentication information.
1860
1583
  * - If a string: treated as a v4 API Read Access Token (Bearer token).
1861
- * - If an object: can include an API key and/or access token, depending on your {@link TokenType}.
1584
+ * - If an object: can include an API key and/or access token.
1862
1585
  */
1863
1586
  constructor(auth: TokenType);
1864
1587
  }
@@ -1983,33 +1706,46 @@ declare class ChangeEndpoint extends BaseEndpoint {
1983
1706
  * Represents an endpoint for accessing collections and their details.
1984
1707
  */
1985
1708
  declare class CollectionsEndpoint extends BaseEndpoint {
1986
- protected readonly access_token: TokenType;
1709
+ protected readonly auth: TokenType;
1987
1710
  /**
1988
1711
  * Constructs a new CollectionsEndpoint instance.
1989
- * @param {string} access_token - The access token used for authentication.
1712
+ *
1713
+ * @param {TokenType} auth - The authentication configuration.
1990
1714
  */
1991
- constructor(access_token: TokenType);
1715
+ constructor(auth: TokenType);
1992
1716
  /**
1993
1717
  * Retrieves details of a specific collection asynchronously.
1718
+ *
1994
1719
  * @param {number} id - The ID of the collection.
1995
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1996
- * @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
1720
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
1721
+ * language.
1722
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1723
+ * @returns {Promise<DetailedCollection>} A Promise that resolves with the
1724
+ * detailed information of the collection.
1997
1725
  */
1998
- details(id: number, options?: LanguageOption): Promise<DetailedCollection>;
1726
+ details(id: number, options?: LanguageOption, request?: RequestConfig): Promise<DetailedCollection>;
1999
1727
  /**
2000
1728
  * Retrieves images associated with a specific collection asynchronously.
1729
+ *
2001
1730
  * @param {number} id - The ID of the collection.
2002
- * @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
2003
- * @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
1731
+ * @param {CollectionImageOptions} [options] - Optional parameters for
1732
+ * specifying image options.
1733
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1734
+ * @returns {Promise<ImageCollection>} A Promise that resolves with the
1735
+ * collection images.
2004
1736
  */
2005
- images(id: number, options?: CollectionImageOptions): Promise<ImageCollection>;
1737
+ images(id: number, options?: CollectionImageOptions, request?: RequestConfig): Promise<ImageCollection>;
2006
1738
  /**
2007
1739
  * Retrieves translations for a specific collection asynchronously.
1740
+ *
2008
1741
  * @param {number} id - The ID of the collection.
2009
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2010
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
1742
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
1743
+ * language.
1744
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1745
+ * @returns {Promise<Translations>} A Promise that resolves with the
1746
+ * translations of the collection.
2011
1747
  */
2012
- translations(id: number, options?: LanguageOption): Promise<Translations>;
1748
+ translations(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Translations>;
2013
1749
  }
2014
1750
  //# sourceMappingURL=collections.d.ts.map
2015
1751
  //#endregion
@@ -2018,28 +1754,35 @@ declare class CollectionsEndpoint extends BaseEndpoint {
2018
1754
  * Represents an endpoint for accessing company details and related information.
2019
1755
  */
2020
1756
  declare class CompaniesEndpoint extends BaseEndpoint {
2021
- protected readonly access_token: TokenType;
1757
+ protected readonly auth: TokenType;
2022
1758
  /**
2023
1759
  * Constructs a new CompaniesEndpoint instance.
2024
- * @param {string} access_token - The access token used for authentication.
1760
+ *
1761
+ * @param {TokenType} auth - The authentication configuration.
2025
1762
  */
2026
- constructor(access_token: TokenType);
1763
+ constructor(auth: TokenType);
2027
1764
  /**
2028
1765
  * Retrieves details of a specific company asynchronously.
1766
+ *
2029
1767
  * @param {number} id - The ID of the company.
2030
- * @returns {Promise<CompanyDetails>} A Promise that resolves with the detailed information of the company.
1768
+ * @returns {Promise<CompanyDetails>} A Promise that resolves with the
1769
+ * detailed information of the company.
2031
1770
  */
2032
1771
  details(id: number): Promise<CompanyDetails>;
2033
1772
  /**
2034
1773
  * Retrieves alternative names of a specific company asynchronously.
1774
+ *
2035
1775
  * @param {number} id - The ID of the company.
2036
- * @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the company.
1776
+ * @returns {Promise<AlternativeNames>} A Promise that resolves with the
1777
+ * alternative names of the company.
2037
1778
  */
2038
1779
  alternativeNames(id: number): Promise<AlternativeNames>;
2039
1780
  /**
2040
1781
  * Retrieves images associated with a specific company asynchronously.
1782
+ *
2041
1783
  * @param {number} id - The ID of the company.
2042
- * @returns {Promise<CompanyImages>} A Promise that resolves with the images of the company.
1784
+ * @returns {Promise<CompanyImages>} A Promise that resolves with the images
1785
+ * of the company.
2043
1786
  */
2044
1787
  images(id: number): Promise<CompanyImages>;
2045
1788
  }
@@ -2050,15 +1793,18 @@ declare class CompaniesEndpoint extends BaseEndpoint {
2050
1793
  * Represents an endpoint for retrieving current system configuration.
2051
1794
  */
2052
1795
  declare class ConfigurationEndpoint extends BaseEndpoint {
2053
- protected readonly access_token: TokenType;
1796
+ protected readonly auth: TokenType;
2054
1797
  /**
2055
1798
  * Constructs a new ConfigurationEndpoint instance.
2056
- * @param {string} access_token - The access token used for authentication.
1799
+ *
1800
+ * @param {TokenType} auth - The authentication configuration.
2057
1801
  */
2058
- constructor(access_token: TokenType);
1802
+ constructor(auth: TokenType);
2059
1803
  /**
2060
1804
  * Retrieves the current system configuration asynchronously.
2061
- * @returns {Promise<Configuration>} A Promise that resolves with the current system configuration.
1805
+ *
1806
+ * @returns {Promise<Configuration>} A Promise that resolves with the current
1807
+ * system configuration.
2062
1808
  */
2063
1809
  getCurrent(): Promise<Configuration>;
2064
1810
  }
@@ -2069,16 +1815,19 @@ declare class ConfigurationEndpoint extends BaseEndpoint {
2069
1815
  * Represents an endpoint for retrieving credit details.
2070
1816
  */
2071
1817
  declare class CreditsEndpoint extends BaseEndpoint {
2072
- protected readonly access_token: TokenType;
1818
+ protected readonly auth: TokenType;
2073
1819
  /**
2074
1820
  * Constructs a new CreditsEndpoint instance.
2075
- * @param {string} access_token - The access token used for authentication.
1821
+ *
1822
+ * @param {TokenType} auth - The authentication configuration.
2076
1823
  */
2077
- constructor(access_token: TokenType);
1824
+ constructor(auth: TokenType);
2078
1825
  /**
2079
1826
  * Retrieves credit details by ID asynchronously.
1827
+ *
2080
1828
  * @param {string} id - The ID of the credit.
2081
- * @returns {Promise<CreditResponse>} A Promise that resolves with the credit details.
1829
+ * @returns {Promise<CreditResponse>} A Promise that resolves with the credit
1830
+ * details.
2082
1831
  */
2083
1832
  getById(id: string): Promise<CreditResponse>;
2084
1833
  }
@@ -2086,7 +1835,8 @@ declare class CreditsEndpoint extends BaseEndpoint {
2086
1835
  //#endregion
2087
1836
  //#region src/endpoints/discover.d.ts
2088
1837
  /**
2089
- * Represents an endpoint for discovering movies and TV shows based on various criteria.
1838
+ * Represents an endpoint for discovering movies and TV shows based on various
1839
+ * criteria.
2090
1840
  *
2091
1841
  * TMDB v3 reference:
2092
1842
  * - GET /discover/movie
@@ -2101,23 +1851,27 @@ declare class DiscoverEndpoint extends BaseEndpoint {
2101
1851
  */
2102
1852
  constructor(access_token: TokenType);
2103
1853
  /**
2104
- * Retrieves a list of movies based on the provided query options asynchronously.
2105
- *
2106
- * TMDB: GET /discover/movie
1854
+ * Retrieves a list of movies based on the provided query options
1855
+ * asynchronously.
2107
1856
  *
2108
- * @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
2109
- * @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
1857
+ * @param {MovieQueryOptions} [options] - Optional parameters for refining the
1858
+ * movie discovery.
1859
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1860
+ * @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the
1861
+ * movie discovery results.
2110
1862
  */
2111
- movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
1863
+ movie(options?: MovieQueryOptions, request?: RequestConfig): Promise<MovieDiscoverResult>;
2112
1864
  /**
2113
- * Retrieves a list of TV shows based on the provided query options asynchronously.
2114
- *
2115
- * TMDB: GET /discover/tv
1865
+ * Retrieves a list of TV shows based on the provided query options
1866
+ * asynchronously.
2116
1867
  *
2117
- * @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
2118
- * @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
1868
+ * @param {TvShowQueryOptions} [options] - Optional parameters for refining
1869
+ * the TV show discovery.
1870
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1871
+ * @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the
1872
+ * TV show discovery results.
2119
1873
  */
2120
- tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
1874
+ tvShow(options?: TvShowQueryOptions, request?: RequestConfig): Promise<TvShowDiscoverResult>;
2121
1875
  }
2122
1876
  //# sourceMappingURL=discover.d.ts.map
2123
1877
  //#endregion
@@ -2126,17 +1880,21 @@ declare class DiscoverEndpoint extends BaseEndpoint {
2126
1880
  * Represents an endpoint for finding media by external ID.
2127
1881
  */
2128
1882
  declare class FindEndpoint extends BaseEndpoint {
2129
- protected readonly access_token: TokenType;
1883
+ protected readonly auth: TokenType;
2130
1884
  /**
2131
1885
  * Constructs a new FindEndpoint instance.
2132
- * @param {string} access_token - The access token used for authentication.
1886
+ *
1887
+ * @param {TokenType} auth - The authentication configuration.
2133
1888
  */
2134
- constructor(access_token: TokenType);
1889
+ constructor(auth: TokenType);
2135
1890
  /**
2136
1891
  * Retrieves media by external ID asynchronously.
1892
+ *
2137
1893
  * @param {string} externalId - The external ID of the media.
2138
- * @param {ExternalIdOptions} options - Options for finding media by external ID.
2139
- * @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
1894
+ * @param {ExternalIdOptions} options - Options for finding media by external
1895
+ * ID.
1896
+ * @returns {Promise<FindResult>} A Promise that resolves with the result of
1897
+ * the find operation.
2140
1898
  */
2141
1899
  byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
2142
1900
  }
@@ -2144,25 +1902,33 @@ declare class FindEndpoint extends BaseEndpoint {
2144
1902
  //#endregion
2145
1903
  //#region src/endpoints/genre.d.ts
2146
1904
  /**
2147
- * Represents an endpoint for retrieving genre information for movies and TV shows.
1905
+ * Represents an endpoint for retrieving genre information for movies and TV
1906
+ * shows.
2148
1907
  */
2149
1908
  declare class GenreEndpoint extends BaseEndpoint {
2150
- protected readonly access_token: TokenType;
1909
+ protected readonly auth: TokenType;
2151
1910
  /**
2152
1911
  * Constructs a new GenreEndpoint instance.
2153
- * @param {string} access_token - The access token used for authentication.
1912
+ *
1913
+ * @param {TokenType} auth - The authentication configuration.
2154
1914
  */
2155
- constructor(access_token: TokenType);
1915
+ constructor(auth: TokenType);
2156
1916
  /**
2157
1917
  * Retrieves genre information for movies asynchronously.
2158
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2159
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for movies.
1918
+ *
1919
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
1920
+ * language.
1921
+ * @returns {Promise<Genres>} A Promise that resolves with the genre
1922
+ * information for movies.
2160
1923
  */
2161
1924
  movies(options?: LanguageOption): Promise<Genres>;
2162
1925
  /**
2163
1926
  * Retrieves genre information for TV shows asynchronously.
2164
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2165
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for TV shows.
1927
+ *
1928
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
1929
+ * language.
1930
+ * @returns {Promise<Genres>} A Promise that resolves with the genre
1931
+ * information for TV shows.
2166
1932
  */
2167
1933
  tv(options?: LanguageOption): Promise<Genres>;
2168
1934
  }
@@ -2173,23 +1939,29 @@ declare class GenreEndpoint extends BaseEndpoint {
2173
1939
  * Represents an endpoint for accessing keyword details and related movies.
2174
1940
  */
2175
1941
  declare class KeywordsEndpoint extends BaseEndpoint {
2176
- protected readonly access_token: TokenType;
1942
+ protected readonly auth: TokenType;
2177
1943
  /**
2178
1944
  * Constructs a new KeywordsEndpoint instance.
2179
- * @param {string} access_token - The access token used for authentication.
1945
+ *
1946
+ * @param {TokenType} auth - The authentication configuration.
2180
1947
  */
2181
- constructor(access_token: TokenType);
1948
+ constructor(auth: TokenType);
2182
1949
  /**
2183
1950
  * Retrieves details of a specific keyword asynchronously.
1951
+ *
2184
1952
  * @param {number} keywordId - The ID of the keyword.
2185
- * @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
1953
+ * @returns {Promise<Keyword>} A Promise that resolves with the details of
1954
+ * the keyword.
2186
1955
  */
2187
1956
  details(keywordId: number): Promise<Keyword>;
2188
1957
  /**
2189
1958
  * Retrieves movies belonging to a specific keyword asynchronously.
1959
+ *
2190
1960
  * @param {number} keywordId - The ID of the keyword.
2191
- * @param {KeywordsOptions} [options] - Optional parameters for refining the search.
2192
- * @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
1961
+ * @param {KeywordsOptions} [options] - Optional parameters for refining the
1962
+ * search.
1963
+ * @returns {Promise<BelongingMovies>} A Promise that resolves with the
1964
+ * movies belonging to the keyword.
2193
1965
  */
2194
1966
  belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
2195
1967
  }
@@ -2200,141 +1972,216 @@ declare class KeywordsEndpoint extends BaseEndpoint {
2200
1972
  * Represents an endpoint for accessing movie-related information.
2201
1973
  */
2202
1974
  declare class MoviesEndpoint extends BaseEndpoint {
2203
- protected readonly access_token: TokenType;
1975
+ protected readonly auth: TokenType;
2204
1976
  /**
2205
1977
  * Constructs a new MoviesEndpoint instance.
2206
- * @param {string} access_token - The access token used for authentication.
1978
+ *
1979
+ * @param {TokenType} auth - The authentication configuration.
2207
1980
  */
2208
- constructor(access_token: TokenType);
1981
+ constructor(auth: TokenType);
2209
1982
  /**
2210
1983
  * Retrieves details of a specific movie asynchronously.
1984
+ *
2211
1985
  * @param {number} id - The ID of the movie.
2212
- * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
2213
- * @param {string} [language] - Optional parameter for specifying the language.
2214
- * @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
1986
+ * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to
1987
+ * append to the response.
1988
+ * @param {string} [language] - Optional parameter for specifying the
1989
+ * language.
1990
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
1991
+ * @returns {Promise<AppendToResponse<MovieDetails, T, "movie">>} A Promise
1992
+ * that resolves with the details of the movie.
2215
1993
  */
2216
- details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<MovieDetails, T, "movie">>;
1994
+ details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string, request?: RequestConfig): Promise<AppendToResponse<MovieDetails, T, "movie">>;
2217
1995
  /**
2218
1996
  * Retrieves alternative titles of a specific movie asynchronously.
1997
+ *
2219
1998
  * @param {number} id - The ID of the movie.
2220
- * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
1999
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2000
+ * @returns {Promise<AlternativeTitles>} A Promise that resolves with the
2001
+ * alternative titles of the movie.
2221
2002
  */
2222
- alternativeTitles(id: number): Promise<AlternativeTitles>;
2003
+ alternativeTitles(id: number, request?: RequestConfig): Promise<AlternativeTitles>;
2223
2004
  /**
2224
2005
  * Retrieves changes made to a specific movie asynchronously.
2006
+ *
2225
2007
  * @param {number} id - The ID of the movie.
2226
- * @param {ChangeOption} [options] - Optional parameters for filtering changes.
2227
- * @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
2008
+ * @param {ChangeOption} [options] - Optional parameters for filtering
2009
+ * changes.
2010
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2011
+ * @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with
2012
+ * the changes made to the movie.
2228
2013
  */
2229
- changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
2014
+ changes(id: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<MovieChangeValue>>;
2230
2015
  /**
2231
2016
  * Retrieves credits of a specific movie asynchronously.
2017
+ *
2232
2018
  * @param {number} id - The ID of the movie.
2233
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2234
- * @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
2019
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2020
+ * language.
2021
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2022
+ * @returns {Promise<Credits>} A Promise that resolves with the credits of
2023
+ * the movie.
2235
2024
  */
2236
- credits(id: number, options?: LanguageOption): Promise<Credits>;
2025
+ credits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Credits>;
2237
2026
  /**
2238
2027
  * Retrieves external IDs of a specific movie asynchronously.
2028
+ *
2239
2029
  * @param {number} id - The ID of the movie.
2240
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
2030
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2031
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external
2032
+ * IDs of the movie.
2241
2033
  */
2242
- externalIds(id: number): Promise<ExternalIds>;
2034
+ externalIds(id: number, request?: RequestConfig): Promise<ExternalIds>;
2243
2035
  /**
2244
2036
  * Retrieves images of a specific movie asynchronously.
2037
+ *
2245
2038
  * @param {number} id - The ID of the movie.
2246
- * @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
2247
- * @returns {Promise<Images>} A Promise that resolves with the images of the movie.
2039
+ * @param {MoviesImageSearchOptions} [options] - Optional parameters for
2040
+ * specifying image search options.
2041
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2042
+ * @returns {Promise<Images>} A Promise that resolves with the images of the
2043
+ * movie.
2248
2044
  */
2249
- images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
2045
+ images(id: number, options?: MoviesImageSearchOptions, request?: RequestConfig): Promise<Images>;
2250
2046
  /**
2251
2047
  * Retrieves keywords of a specific movie asynchronously.
2048
+ *
2252
2049
  * @param {number} id - The ID of the movie.
2253
- * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
2050
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2051
+ * @returns {Promise<Keywords>} A Promise that resolves with the keywords of
2052
+ * the movie.
2254
2053
  */
2255
- keywords(id: number): Promise<Keywords>;
2054
+ keywords(id: number, request?: RequestConfig): Promise<Keywords>;
2256
2055
  /**
2257
2056
  * Retrieves lists containing a specific movie asynchronously.
2057
+ *
2258
2058
  * @param {number} id - The ID of the movie.
2259
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2260
- * @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
2059
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2060
+ * specifying language and pagination options.
2061
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2062
+ * @returns {Promise<MovieLists>} A Promise that resolves with the lists
2063
+ * containing the movie.
2261
2064
  */
2262
- lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
2065
+ lists(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<MovieLists>;
2263
2066
  /**
2264
2067
  * Retrieves recommendations for a specific movie asynchronously.
2068
+ *
2265
2069
  * @param {number} id - The ID of the movie.
2266
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2267
- * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
2070
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2071
+ * specifying language and pagination options.
2072
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2073
+ * @returns {Promise<Recommendations>} A Promise that resolves with the
2074
+ * recommendations for the movie.
2268
2075
  */
2269
- recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
2076
+ recommendations(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<Recommendations>;
2270
2077
  /**
2271
2078
  * Retrieves release dates of a specific movie asynchronously.
2079
+ *
2272
2080
  * @param {number} id - The ID of the movie.
2273
- * @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
2081
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2082
+ * @returns {Promise<ReleaseDates>} A Promise that resolves with the release
2083
+ * dates of the movie.
2274
2084
  */
2275
- releaseDates(id: number): Promise<ReleaseDates>;
2085
+ releaseDates(id: number, request?: RequestConfig): Promise<ReleaseDates>;
2276
2086
  /**
2277
2087
  * Retrieves reviews for a specific movie asynchronously.
2088
+ *
2278
2089
  * @param {number} id - The ID of the movie.
2279
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2280
- * @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
2090
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2091
+ * specifying language and pagination options.
2092
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2093
+ * @returns {Promise<Reviews>} A Promise that resolves with the reviews for
2094
+ * the movie.
2281
2095
  */
2282
- reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
2096
+ reviews(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<Reviews>;
2283
2097
  /**
2284
2098
  * Retrieves similar movies for a specific movie asynchronously.
2099
+ *
2285
2100
  * @param {number} id - The ID of the movie.
2286
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2287
- * @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
2101
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2102
+ * specifying language and pagination options.
2103
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2104
+ * @returns {Promise<SimilarMovies>} A Promise that resolves with the similar
2105
+ * movies for the movie.
2288
2106
  */
2289
- similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
2107
+ similar(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<SimilarMovies>;
2290
2108
  /**
2291
2109
  * Retrieves translations of a specific movie asynchronously.
2110
+ *
2292
2111
  * @param {number} id - The ID of the movie.
2293
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
2112
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2113
+ * @returns {Promise<Translations>} A Promise that resolves with the
2114
+ * translations of the movie.
2294
2115
  */
2295
- translations(id: number): Promise<Translations>;
2116
+ translations(id: number, request?: RequestConfig): Promise<Translations>;
2296
2117
  /**
2297
2118
  * Retrieves videos of a specific movie asynchronously.
2119
+ *
2298
2120
  * @param {number} id - The ID of the movie.
2299
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2300
- * @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
2121
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2122
+ * language.
2123
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2124
+ * @returns {Promise<Videos>} A Promise that resolves with the videos of the
2125
+ * movie.
2301
2126
  */
2302
- videos(id: number, options?: LanguageOption): Promise<Videos>;
2127
+ videos(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Videos>;
2303
2128
  /**
2304
2129
  * Retrieves watch providers of a specific movie asynchronously.
2130
+ *
2305
2131
  * @param {number} id - The ID of the movie.
2306
- * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
2132
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2133
+ * @returns {Promise<WatchProviders>} A Promise that resolves with the watch
2134
+ * providers of the movie.
2307
2135
  */
2308
- watchProviders(id: number): Promise<WatchProviders>;
2136
+ watchProviders(id: number, request?: RequestConfig): Promise<WatchProviders>;
2309
2137
  /**
2310
2138
  * Retrieves details of the latest movie asynchronously.
2311
- * @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
2139
+ *
2140
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2141
+ * @returns {Promise<LatestMovie>} A Promise that resolves with the details
2142
+ * of the latest movie.
2312
2143
  */
2313
- latest(): Promise<LatestMovie>;
2144
+ latest(request?: RequestConfig): Promise<LatestMovie>;
2314
2145
  /**
2315
2146
  * Retrieves movies playing now asynchronously.
2316
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2317
- * @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
2147
+ *
2148
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional
2149
+ * parameters for specifying language, region, and pagination options.
2150
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2151
+ * @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the
2152
+ * movies playing now.
2318
2153
  */
2319
- nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
2154
+ nowPlaying(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<MoviesPlayingNow>;
2320
2155
  /**
2321
2156
  * Retrieves popular movies asynchronously.
2322
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2323
- * @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
2157
+ *
2158
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2159
+ * specifying language and pagination options.
2160
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2161
+ * @returns {Promise<PopularMovies>} A Promise that resolves with the popular
2162
+ * movies.
2324
2163
  */
2325
- popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
2164
+ popular(options?: LanguageOption & PageOption, request?: RequestConfig): Promise<PopularMovies>;
2326
2165
  /**
2327
2166
  * Retrieves top rated movies asynchronously.
2328
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2329
- * @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
2167
+ *
2168
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional
2169
+ * parameters for specifying language, region, and pagination options.
2170
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2171
+ * @returns {Promise<TopRatedMovies>} A Promise that resolves with the top
2172
+ * rated movies.
2330
2173
  */
2331
- topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
2174
+ topRated(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<TopRatedMovies>;
2332
2175
  /**
2333
2176
  * Retrieves upcoming movies asynchronously.
2334
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2335
- * @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
2177
+ *
2178
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional
2179
+ * parameters for specifying language, region, and pagination options.
2180
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2181
+ * @returns {Promise<UpcomingMovies>} A Promise that resolves with the
2182
+ * upcoming movies.
2336
2183
  */
2337
- upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
2184
+ upcoming(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<UpcomingMovies>;
2338
2185
  }
2339
2186
  //# sourceMappingURL=movies.d.ts.map
2340
2187
  //#endregion
@@ -2343,28 +2190,35 @@ declare class MoviesEndpoint extends BaseEndpoint {
2343
2190
  * Represents an endpoint for accessing network details.
2344
2191
  */
2345
2192
  declare class NetworksEndpoint extends BaseEndpoint {
2346
- protected readonly access_token: TokenType;
2193
+ protected readonly auth: TokenType;
2347
2194
  /**
2348
2195
  * Constructs a new NetworksEndpoint instance.
2349
- * @param {string} access_token - The access token used for authentication.
2196
+ *
2197
+ * @param {TokenType} auth - The authentication configuration.
2350
2198
  */
2351
- constructor(access_token: TokenType);
2199
+ constructor(auth: TokenType);
2352
2200
  /**
2353
2201
  * Retrieves details of a specific network asynchronously.
2202
+ *
2354
2203
  * @param {number} id - The ID of the network.
2355
- * @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
2204
+ * @returns {Promise<NetworkDetails>} A Promise that resolves with the
2205
+ * details of the network.
2356
2206
  */
2357
2207
  details(id: number): Promise<NetworkDetails>;
2358
2208
  /**
2359
2209
  * Retrieves alternative names of a specific network asynchronously.
2210
+ *
2360
2211
  * @param {number} id - The ID of the network.
2361
- * @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
2212
+ * @returns {Promise<AlternativeNames>} A Promise that resolves with the
2213
+ * alternative names of the network.
2362
2214
  */
2363
2215
  alternativeNames(id: number): Promise<AlternativeNames>;
2364
2216
  /**
2365
2217
  * Retrieves images of a specific network asynchronously.
2218
+ *
2366
2219
  * @param {number} id - The ID of the network.
2367
- * @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
2220
+ * @returns {Promise<NetworkImages>} A Promise that resolves with the images
2221
+ * of the network.
2368
2222
  */
2369
2223
  images(id: number): Promise<NetworkImages>;
2370
2224
  }
@@ -2375,84 +2229,126 @@ declare class NetworksEndpoint extends BaseEndpoint {
2375
2229
  * Represents an endpoint for accessing information about people.
2376
2230
  */
2377
2231
  declare class PeopleEndpoint extends BaseEndpoint {
2378
- protected readonly access_token: TokenType;
2232
+ protected readonly auth: TokenType;
2379
2233
  /**
2380
2234
  * Constructs a new PeopleEndpoint instance.
2381
- * @param {string} access_token - The access token used for authentication.
2235
+ *
2236
+ * @param {TokenType} auth - The authentication configuration.
2382
2237
  */
2383
- constructor(access_token: TokenType);
2238
+ constructor(auth: TokenType);
2384
2239
  /**
2385
2240
  * Retrieves details of a specific person asynchronously.
2241
+ *
2386
2242
  * @param {number} id - The ID of the person.
2387
- * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
2388
- * @param {string} [language] - Optional parameter for specifying the language.
2389
- * @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
2243
+ * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to
2244
+ * append to the response.
2245
+ * @param {string} [language] - Optional parameter for specifying the
2246
+ * language.
2247
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2248
+ * @returns {Promise<AppendToResponse<PersonDetails, T, "person">>} A
2249
+ * Promise that resolves with the details of the person.
2390
2250
  */
2391
- details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
2251
+ details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string, request?: RequestConfig): Promise<AppendToResponse<PersonDetails, T, "person">>;
2392
2252
  /**
2393
2253
  * Retrieves changes made to a specific person asynchronously.
2254
+ *
2394
2255
  * @param {number} id - The ID of the person.
2395
- * @param {ChangeOption} [options] - Optional parameters for filtering changes.
2396
- * @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
2256
+ * @param {ChangeOption} [options] - Optional parameters for filtering
2257
+ * changes.
2258
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2259
+ * @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves
2260
+ * with the changes made to the person.
2397
2261
  */
2398
- changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
2262
+ changes(id: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<PersonChangeValue>>;
2399
2263
  /**
2400
2264
  * Retrieves movie credits of a specific person asynchronously.
2265
+ *
2401
2266
  * @param {number} id - The ID of the person.
2402
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2403
- * @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
2267
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2268
+ * language.
2269
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2270
+ * @returns {Promise<PersonMovieCredit>} A Promise that resolves with the
2271
+ * movie credits of the person.
2404
2272
  */
2405
- movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
2273
+ movieCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonMovieCredit>;
2406
2274
  /**
2407
2275
  * Retrieves TV show credits of a specific person asynchronously.
2276
+ *
2408
2277
  * @param {number} id - The ID of the person.
2409
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2410
- * @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
2278
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2279
+ * language.
2280
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2281
+ * @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the
2282
+ * TV show credits of the person.
2411
2283
  */
2412
- tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
2284
+ tvShowCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonTvShowCredit>;
2413
2285
  /**
2414
2286
  * Retrieves combined credits of a specific person asynchronously.
2287
+ *
2415
2288
  * @param {number} id - The ID of the person.
2416
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2417
- * @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
2289
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2290
+ * language.
2291
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2292
+ * @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the
2293
+ * combined credits of the person.
2418
2294
  */
2419
- combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
2295
+ combinedCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonCombinedCredits>;
2420
2296
  /**
2421
2297
  * Retrieves external IDs of a specific person asynchronously.
2298
+ *
2422
2299
  * @param {number} id - The ID of the person.
2423
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
2300
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2301
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external
2302
+ * IDs of the person.
2424
2303
  */
2425
- externalId(id: number): Promise<ExternalIds>;
2304
+ externalId(id: number, request?: RequestConfig): Promise<ExternalIds>;
2426
2305
  /**
2427
2306
  * Retrieves images of a specific person asynchronously.
2307
+ *
2428
2308
  * @param {number} id - The ID of the person.
2429
- * @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
2309
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2310
+ * @returns {Promise<PeopleImages>} A Promise that resolves with the images
2311
+ * of the person.
2430
2312
  */
2431
- images(id: number): Promise<PeopleImages>;
2313
+ images(id: number, request?: RequestConfig): Promise<PeopleImages>;
2432
2314
  /**
2433
2315
  * Retrieves tagged images of a specific person asynchronously.
2316
+ *
2434
2317
  * @param {number} id - The ID of the person.
2435
- * @param {PageOption} [options] - Optional parameters for specifying pagination options.
2436
- * @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
2318
+ * @param {PageOption} [options] - Optional parameters for specifying
2319
+ * pagination options.
2320
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2321
+ * @returns {Promise<TaggedImages>} A Promise that resolves with the tagged
2322
+ * images of the person.
2437
2323
  */
2438
- taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
2324
+ taggedImages(id: number, options?: PageOption, request?: RequestConfig): Promise<TaggedImages>;
2439
2325
  /**
2440
2326
  * Retrieves translations of a specific person asynchronously.
2327
+ *
2441
2328
  * @param {number} id - The ID of the person.
2442
- * @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
2329
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2330
+ * @returns {Promise<PersonTranslations>} A Promise that resolves with the
2331
+ * translations of the person.
2443
2332
  */
2444
- translation(id: number): Promise<PersonTranslations>;
2333
+ translation(id: number, request?: RequestConfig): Promise<PersonTranslations>;
2445
2334
  /**
2446
2335
  * Retrieves details of the latest person asynchronously.
2447
- * @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
2336
+ *
2337
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2338
+ * @returns {Promise<PersonDetails>} A Promise that resolves with the details
2339
+ * of the latest person.
2448
2340
  */
2449
- latest(): Promise<PersonDetails>;
2341
+ latest(request?: RequestConfig): Promise<PersonDetails>;
2450
2342
  /**
2451
2343
  * Retrieves popular persons asynchronously.
2452
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2453
- * @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
2344
+ *
2345
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2346
+ * specifying language and pagination options.
2347
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2348
+ * @returns {Promise<PopularPersons>} A Promise that resolves with the
2349
+ * popular persons.
2454
2350
  */
2455
- popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
2351
+ popular(options?: LanguageOption & PageOption, request?: RequestConfig): Promise<PopularPersons>;
2456
2352
  }
2457
2353
  //# sourceMappingURL=people.d.ts.map
2458
2354
  //#endregion
@@ -2461,16 +2357,19 @@ declare class PeopleEndpoint extends BaseEndpoint {
2461
2357
  * Represents an endpoint for accessing review details.
2462
2358
  */
2463
2359
  declare class ReviewEndpoint extends BaseEndpoint {
2464
- protected readonly access_token: TokenType;
2360
+ protected readonly auth: TokenType;
2465
2361
  /**
2466
2362
  * Constructs a new ReviewEndpoint instance.
2467
- * @param {string} access_token - The access token used for authentication.
2363
+ *
2364
+ * @param {TokenType} auth - The authentication configuration.
2468
2365
  */
2469
- constructor(access_token: TokenType);
2366
+ constructor(auth: TokenType);
2470
2367
  /**
2471
2368
  * Retrieves details of a specific review asynchronously.
2369
+ *
2472
2370
  * @param {string} id - The ID of the review.
2473
- * @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
2371
+ * @returns {Promise<ReviewDetails>} A Promise that resolves with the details
2372
+ * of the review.
2474
2373
  */
2475
2374
  details(id: string): Promise<ReviewDetails>;
2476
2375
  }
@@ -2484,54 +2383,76 @@ declare class SearchEndpoint extends BaseEndpoint {
2484
2383
  protected readonly access_token: TokenType;
2485
2384
  /**
2486
2385
  * Constructs a new SearchEndpoint instance.
2487
- * @param {string} access_token - The access token used for authentication.
2386
+ *
2387
+ * @param {TokenType} access_token - The access token used for authentication.
2488
2388
  */
2489
2389
  constructor(access_token: TokenType);
2490
2390
  /**
2491
2391
  * Searches for companies asynchronously.
2392
+ *
2492
2393
  * @param {SearchOptions} options - The search options.
2493
- * @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
2394
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2395
+ * @returns {Promise<Search<Company>>} A Promise that resolves with the
2396
+ * search results for companies.
2494
2397
  */
2495
- companies(options: SearchOptions): Promise<Search<Company>>;
2398
+ companies(options: SearchOptions, request?: RequestConfig): Promise<Search<Company>>;
2496
2399
  /**
2497
2400
  * Searches for collections asynchronously.
2498
- * @param {SearchOptions} options - The search options.
2499
- * @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
2401
+ *
2402
+ * @param {CollectionSearchOptions} options - The search options.
2403
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2404
+ * @returns {Promise<Search<Collection>>} A Promise that resolves with the
2405
+ * search results for collections.
2500
2406
  */
2501
- collections(options: SearchOptions): Promise<Search<Collection>>;
2407
+ collections(options: CollectionSearchOptions, request?: RequestConfig): Promise<Search<Collection>>;
2502
2408
  /**
2503
2409
  * Searches for keywords asynchronously.
2410
+ *
2504
2411
  * @param {SearchOptions} options - The search options.
2505
- * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
2412
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2413
+ * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that
2414
+ * resolves with the search results for keywords.
2506
2415
  */
2507
- keywords(options: SearchOptions): Promise<Search<{
2416
+ keywords(options: SearchOptions, request?: RequestConfig): Promise<Search<{
2508
2417
  id: string;
2509
2418
  name: string;
2510
2419
  }>>;
2511
2420
  /**
2512
2421
  * Searches for movies asynchronously.
2422
+ *
2513
2423
  * @param {MovieSearchOptions} options - The search options.
2514
- * @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
2424
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2425
+ * @returns {Promise<Search<Movie>>} A Promise that resolves with the search
2426
+ * results for movies.
2515
2427
  */
2516
- movies(options: MovieSearchOptions): Promise<Search<Movie>>;
2428
+ movies(options: MovieSearchOptions, request?: RequestConfig): Promise<Search<Movie>>;
2517
2429
  /**
2518
2430
  * Searches for people asynchronously.
2431
+ *
2519
2432
  * @param {PeopleSearchOptions} options - The search options.
2520
- * @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
2433
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2434
+ * @returns {Promise<Search<Person>>} A Promise that resolves with the search
2435
+ * results for people.
2521
2436
  */
2522
- people(options: PeopleSearchOptions): Promise<Search<Person>>;
2437
+ people(options: PeopleSearchOptions, request?: RequestConfig): Promise<Search<Person>>;
2523
2438
  /**
2524
2439
  * Searches for TV shows asynchronously.
2440
+ *
2525
2441
  * @param {TvSearchOptions} options - The search options.
2526
- * @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
2442
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2443
+ * @returns {Promise<Search<TV>>} A Promise that resolves with the search
2444
+ * results for TV shows.
2527
2445
  */
2528
- tv(options: TvSearchOptions): Promise<Search<TV>>;
2446
+ tv(options: TvSearchOptions, request?: RequestConfig): Promise<Search<TV>>;
2529
2447
  /**
2530
2448
  * Performs a multi-search asynchronously.
2449
+ *
2531
2450
  * @param {MultiSearchOptions} options - The search options.
2532
- * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
2451
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2452
+ * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with
2453
+ * the multi-search results.
2533
2454
  */
2534
- multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
2455
+ multi(options: MultiSearchOptions, request?: RequestConfig): Promise<Search<MultiSearchResult>>;
2535
2456
  }
2536
2457
  //# sourceMappingURL=search.d.ts.map
2537
2458
  //#endregion
@@ -2540,21 +2461,27 @@ declare class SearchEndpoint extends BaseEndpoint {
2540
2461
  * Represents an endpoint for retrieving trending content.
2541
2462
  */
2542
2463
  declare class TrendingEndpoint extends BaseEndpoint {
2543
- protected readonly access_token: TokenType;
2464
+ protected readonly auth: TokenType;
2544
2465
  /**
2545
2466
  * Constructs a new TrendingEndpoint instance.
2546
- * @param {string} access_token - The access token used for authentication.
2467
+ *
2468
+ * @param {TokenType} auth - The authentication configuration.
2547
2469
  */
2548
- constructor(access_token: TokenType);
2470
+ constructor(auth: TokenType);
2549
2471
  /**
2550
- * Retrieves trending content asynchronously based on media type and time window.
2551
- * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
2552
- * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
2553
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
2554
- * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
2555
- * @template T - The type of media being searched for (e.g., 'movie', 'tv').
2472
+ * Retrieves trending content asynchronously based on media type and time
2473
+ * window.
2474
+ *
2475
+ * @param {TrendingMediaType} mediaType - The type of media.
2476
+ * @param {TimeWindow} timeWindow - The time window for trending content.
2477
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for
2478
+ * specifying the language and pagination.
2479
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2480
+ * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the
2481
+ * trending results.
2482
+ * @template T - The type of media being searched for.
2556
2483
  */
2557
- trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
2484
+ trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<TrendingResults<T>>;
2558
2485
  }
2559
2486
  //# sourceMappingURL=trending.d.ts.map
2560
2487
  //#endregion
@@ -2563,61 +2490,95 @@ declare class TrendingEndpoint extends BaseEndpoint {
2563
2490
  * Represents an endpoint for accessing TV episode-related information.
2564
2491
  */
2565
2492
  declare class TvEpisodesEndpoint extends BaseEndpoint {
2566
- protected readonly access_token: TokenType;
2493
+ protected readonly auth: TokenType;
2567
2494
  /**
2568
2495
  * Constructs a new TvEpisodesEndpoint instance.
2569
- * @param {string} access_token - The access token used for authentication.
2496
+ *
2497
+ * @param {TokenType} auth - The authentication configuration.
2570
2498
  */
2571
- constructor(access_token: TokenType);
2499
+ constructor(auth: TokenType);
2572
2500
  /**
2573
2501
  * Retrieves details of a specific TV episode asynchronously.
2574
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2575
- * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
2576
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2577
- * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
2578
- * A Promise that resolves with the details of the TV episode.
2579
- */
2580
- details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
2502
+ *
2503
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2504
+ * the TV episode.
2505
+ * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional
2506
+ * data to append to the response.
2507
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2508
+ * language.
2509
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2510
+ * @returns {Promise<AppendToResponse<Omit<Episode, "show_id">, T,
2511
+ * "tvEpisode">>} A Promise that resolves with the details of the TV
2512
+ * episode.
2513
+ */
2514
+ details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption, request?: RequestConfig): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
2581
2515
  /**
2582
2516
  * Retrieves changes related to a specific TV episode asynchronously.
2517
+ *
2583
2518
  * @param {number} episodeID - The ID of the TV episode.
2584
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
2585
- * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
2519
+ * @param {ChangeOption} [options] - Optional parameters for specifying
2520
+ * changes.
2521
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2522
+ * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves
2523
+ * with the changes related to the TV episode.
2586
2524
  */
2587
- changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
2525
+ changes(episodeID: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<TvEpisodeChangeValue>>;
2588
2526
  /**
2589
2527
  * Retrieves credits for a specific TV episode asynchronously.
2590
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2591
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2592
- * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
2528
+ *
2529
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2530
+ * the TV episode.
2531
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2532
+ * language.
2533
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2534
+ * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the
2535
+ * credits for the TV episode.
2593
2536
  */
2594
- credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
2537
+ credits(episodeSelection: EpisodeSelection, options?: LanguageOption, request?: RequestConfig): Promise<TvEpisodeCredit>;
2595
2538
  /**
2596
2539
  * Retrieves external IDs for a specific TV episode asynchronously.
2597
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2598
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
2540
+ *
2541
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2542
+ * the TV episode.
2543
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2544
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external
2545
+ * IDs for the TV episode.
2599
2546
  */
2600
- externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
2547
+ externalIds(episodeSelection: EpisodeSelection, request?: RequestConfig): Promise<ExternalIds>;
2601
2548
  /**
2602
2549
  * Retrieves images for a specific TV episode asynchronously.
2603
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2604
- * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
2605
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
2550
+ *
2551
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2552
+ * the TV episode.
2553
+ * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for
2554
+ * specifying image search options.
2555
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2556
+ * @returns {Promise<Images>} A Promise that resolves with the images for the
2557
+ * TV episode.
2606
2558
  */
2607
- images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
2559
+ images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions, request?: RequestConfig): Promise<Images>;
2608
2560
  /**
2609
2561
  * Retrieves translations for a specific TV episode asynchronously.
2610
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2611
- * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
2562
+ *
2563
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2564
+ * the TV episode.
2565
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2566
+ * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the
2567
+ * translations for the TV episode.
2612
2568
  */
2613
- translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
2569
+ translations(episodeSelection: EpisodeSelection, request?: RequestConfig): Promise<TvEpisodeTranslations>;
2614
2570
  /**
2615
2571
  * Retrieves videos for a specific TV episode asynchronously.
2616
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2617
- * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
2618
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
2572
+ *
2573
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for
2574
+ * the TV episode.
2575
+ * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for
2576
+ * specifying video search options.
2577
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2578
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the
2579
+ * TV episode.
2619
2580
  */
2620
- videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
2581
+ videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions, request?: RequestConfig): Promise<Videos>;
2621
2582
  }
2622
2583
  //# sourceMappingURL=tvEpisodes.d.ts.map
2623
2584
  //#endregion
@@ -2626,70 +2587,110 @@ declare class TvEpisodesEndpoint extends BaseEndpoint {
2626
2587
  * Represents an endpoint for accessing TV season-related information.
2627
2588
  */
2628
2589
  declare class TvSeasonsEndpoint extends BaseEndpoint {
2629
- protected readonly access_token: TokenType;
2590
+ protected readonly auth: TokenType;
2630
2591
  /**
2631
2592
  * Constructs a new TvSeasonsEndpoint instance.
2632
- * @param {string} access_token - The access token used for authentication.
2593
+ *
2594
+ * @param {TokenType} auth - The authentication configuration.
2633
2595
  */
2634
- constructor(access_token: TokenType);
2596
+ constructor(auth: TokenType);
2635
2597
  /**
2636
2598
  * Retrieves details of a specific TV season asynchronously.
2637
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2638
- * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
2639
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2640
- * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
2641
- * A Promise that resolves with the details of the TV season.
2642
- */
2643
- details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
2599
+ *
2600
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2601
+ * TV season.
2602
+ * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional
2603
+ * data to append to the response.
2604
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2605
+ * language.
2606
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2607
+ * @returns {Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>} A
2608
+ * Promise that resolves with the details of the TV season.
2609
+ */
2610
+ details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption, request?: RequestConfig): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
2644
2611
  /**
2645
2612
  * Retrieves aggregate credits for a specific TV season asynchronously.
2646
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2647
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2648
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
2613
+ *
2614
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2615
+ * TV season.
2616
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2617
+ * language.
2618
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2619
+ * @returns {Promise<AggregateCredits>} A Promise that resolves with the
2620
+ * aggregate credits for the TV season.
2649
2621
  */
2650
- aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
2622
+ aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<AggregateCredits>;
2651
2623
  /**
2652
2624
  * Retrieves changes related to a specific TV season asynchronously.
2625
+ *
2653
2626
  * @param {number} seasonId - The ID of the TV season.
2654
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
2655
- * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
2627
+ * @param {ChangeOption} [options] - Optional parameters for specifying
2628
+ * changes.
2629
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2630
+ * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves
2631
+ * with the changes related to the TV season.
2656
2632
  */
2657
- changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
2633
+ changes(seasonId: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<TvSeasonChangeValue>>;
2658
2634
  /**
2659
2635
  * Retrieves credits for a specific TV season asynchronously.
2660
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2661
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2662
- * @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
2636
+ *
2637
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2638
+ * TV season.
2639
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2640
+ * language.
2641
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2642
+ * @returns {Promise<Credits>} A Promise that resolves with the credits for
2643
+ * the TV season.
2663
2644
  */
2664
- credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
2645
+ credits(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<Credits>;
2665
2646
  /**
2666
2647
  * Retrieves external IDs for a specific TV season asynchronously.
2667
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2668
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2669
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
2648
+ *
2649
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2650
+ * TV season.
2651
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2652
+ * language.
2653
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2654
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external
2655
+ * IDs for the TV season.
2670
2656
  */
2671
- externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
2657
+ externalIds(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<ExternalIds>;
2672
2658
  /**
2673
2659
  * Retrieves images for a specific TV season asynchronously.
2674
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2675
- * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
2676
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
2660
+ *
2661
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2662
+ * TV season.
2663
+ * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for
2664
+ * specifying image search options.
2665
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2666
+ * @returns {Promise<Images>} A Promise that resolves with the images for the
2667
+ * TV season.
2677
2668
  */
2678
- images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
2669
+ images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions, request?: RequestConfig): Promise<Images>;
2679
2670
  /**
2680
2671
  * Retrieves videos for a specific TV season asynchronously.
2681
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2682
- * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
2683
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
2672
+ *
2673
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2674
+ * TV season.
2675
+ * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for
2676
+ * specifying video search options.
2677
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2678
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the
2679
+ * TV season.
2684
2680
  */
2685
- videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
2681
+ videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions, request?: RequestConfig): Promise<Videos>;
2686
2682
  /**
2687
2683
  * Retrieves translations for a specific TV season asynchronously.
2688
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2689
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2690
- * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
2684
+ *
2685
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the
2686
+ * TV season.
2687
+ * @param {LanguageOption} [options] - Optional parameters for specifying the
2688
+ * language.
2689
+ * @param {RequestConfig} [request] - Optional request behavior overrides.
2690
+ * @returns {Promise<Translations>} A Promise that resolves with the
2691
+ * translations for the TV season.
2691
2692
  */
2692
- translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
2693
+ translations(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<Translations>;
2693
2694
  }
2694
2695
  //# sourceMappingURL=tvSeasons.d.ts.map
2695
2696
  //#endregion
@@ -2698,161 +2699,217 @@ declare class TvSeasonsEndpoint extends BaseEndpoint {
2698
2699
  * Represents an endpoint for accessing TV show-related information.
2699
2700
  */
2700
2701
  declare class TvShowsEndpoint extends BaseEndpoint {
2701
- protected readonly access_token: TokenType;
2702
+ protected readonly auth: TokenType;
2702
2703
  /**
2703
2704
  * Constructs a new TvShowsEndpoint instance.
2704
- * @param {string} access_token - The access token used for authentication.
2705
+ *
2706
+ * @param {TokenType} auth - The authentication configuration.
2705
2707
  */
2706
- constructor(access_token: TokenType);
2708
+ constructor(auth: TokenType);
2707
2709
  /**
2708
2710
  * Retrieves details of a specific TV show asynchronously.
2711
+ *
2709
2712
  * @param {number} id - The ID of the TV show.
2710
- * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
2713
+ * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to
2714
+ * append to the response.
2711
2715
  * @param {string} [language] - The language for the response.
2712
- * @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
2713
- * A Promise that resolves with the details of the TV show.
2716
+ * @returns {Promise<AppendToResponse<TvShowDetails, T, "tvShow">>} A
2717
+ * Promise that resolves with the details of the TV show.
2714
2718
  */
2715
2719
  details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, "tvShow">>;
2716
2720
  /**
2717
2721
  * Retrieves alternative titles of a specific TV show asynchronously.
2722
+ *
2718
2723
  * @param {number} id - The ID of the TV show.
2719
- * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
2724
+ * @returns {Promise<AlternativeTitles>} A Promise that resolves with the
2725
+ * alternative titles of the TV show.
2720
2726
  */
2721
2727
  alternativeTitles(id: number): Promise<AlternativeTitles>;
2722
2728
  /**
2723
2729
  * Retrieves changes for a specific TV show asynchronously.
2730
+ *
2724
2731
  * @param {number} id - The ID of the TV show.
2725
2732
  * @param {ChangeOption} [options] - Additional options for the request.
2726
- * @returns {Promise<Changes<TvShowChangeValue>>}
2727
- * A Promise that resolves with the changes for the TV show.
2733
+ * @returns {Promise<Changes<TvShowChangeValue>>} A Promise that resolves
2734
+ * with the changes for the TV show.
2728
2735
  */
2729
2736
  changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
2730
2737
  /**
2731
2738
  * Retrieves content ratings for a specific TV show asynchronously.
2739
+ *
2732
2740
  * @param {number} id - The ID of the TV show.
2733
- * @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
2741
+ * @returns {Promise<ContentRatings>} A Promise that resolves with the
2742
+ * content ratings of the TV show.
2734
2743
  */
2735
2744
  contentRatings(id: number): Promise<ContentRatings>;
2736
2745
  /**
2737
2746
  * Retrieves aggregate credits for a specific TV show asynchronously.
2747
+ *
2738
2748
  * @param {number} id - The ID of the TV show.
2739
2749
  * @param {LanguageOption} [options] - Additional options for the request.
2740
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
2750
+ * @returns {Promise<AggregateCredits>} A Promise that resolves with the
2751
+ * aggregate credits of the TV show.
2741
2752
  */
2742
2753
  aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
2743
2754
  /**
2744
2755
  * Retrieves credits for a specific TV show asynchronously.
2756
+ *
2745
2757
  * @param {number} id - The ID of the TV show.
2746
2758
  * @param {LanguageOption} [options] - Additional options for the request.
2747
- * @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
2759
+ * @returns {Promise<Credits>} A Promise that resolves with the credits of
2760
+ * the TV show.
2748
2761
  */
2749
2762
  credits(id: number, options?: LanguageOption): Promise<Credits>;
2750
2763
  /**
2751
2764
  * Retrieves details of a specific season of a TV show asynchronously.
2765
+ *
2752
2766
  * @param {number} tvId - The ID of the TV show.
2753
2767
  * @param {number} seasonNumber - The season number.
2754
- * @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
2768
+ * @returns {Promise<SeasonDetails>} A Promise that resolves with the details
2769
+ * of the season.
2755
2770
  */
2756
2771
  season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
2757
2772
  /**
2758
2773
  * Retrieves episode groups for a specific TV show asynchronously.
2774
+ *
2759
2775
  * @param {number} id - The ID of the TV show.
2760
- * @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
2776
+ * @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode
2777
+ * groups of the TV show.
2761
2778
  */
2762
2779
  episodeGroups(id: number): Promise<EpisodeGroups>;
2763
2780
  /**
2764
2781
  * Retrieves external IDs for a specific TV show asynchronously.
2782
+ *
2765
2783
  * @param {number} id - The ID of the TV show.
2766
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
2784
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external
2785
+ * IDs of the TV show.
2767
2786
  */
2768
2787
  externalIds(id: number): Promise<ExternalIds>;
2769
2788
  /**
2770
2789
  * Retrieves images for a specific TV show asynchronously.
2790
+ *
2771
2791
  * @param {number} id - The ID of the TV show.
2772
- * @param {TvShowImageOptions} [options] - Additional options for the request.
2773
- * @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
2792
+ * @param {TvShowImageOptions} [options] - Additional options for the
2793
+ * request.
2794
+ * @returns {Promise<Images>} A Promise that resolves with the images of the
2795
+ * TV show.
2774
2796
  */
2775
2797
  images(id: number, options?: TvShowImageOptions): Promise<Images>;
2776
2798
  /**
2777
2799
  * Retrieves keywords for a specific TV show asynchronously.
2800
+ *
2778
2801
  * @param {number} id - The ID of the TV show.
2779
- * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
2802
+ * @returns {Promise<Keywords>} A Promise that resolves with the keywords of
2803
+ * the TV show.
2780
2804
  */
2781
2805
  keywords(id: number): Promise<Keywords>;
2782
2806
  /**
2783
2807
  * Retrieves recommendations for a specific TV show asynchronously.
2808
+ *
2784
2809
  * @param {number} id - The ID of the TV show.
2785
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2786
- * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
2810
+ * @param {LanguageOption & PageOption} [options] - Additional options for
2811
+ * the request.
2812
+ * @returns {Promise<Recommendations>} A Promise that resolves with the
2813
+ * recommendations for the TV show.
2787
2814
  */
2788
2815
  recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
2789
2816
  /**
2790
2817
  * Retrieves reviews for a specific TV show asynchronously.
2818
+ *
2791
2819
  * @param {number} id - The ID of the TV show.
2792
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2793
- * @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
2820
+ * @param {LanguageOption & PageOption} [options] - Additional options for
2821
+ * the request.
2822
+ * @returns {Promise<Reviews>} A Promise that resolves with the reviews of
2823
+ * the TV show.
2794
2824
  */
2795
2825
  reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
2796
2826
  /**
2797
- * Retrieves information about whether the TV show was screened theatrically asynchronously.
2827
+ * Retrieves information about whether the TV show was screened theatrically
2828
+ * asynchronously.
2829
+ *
2798
2830
  * @param {number} id - The ID of the TV show.
2799
- * @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
2831
+ * @returns {Promise<ScreenedTheatrically>} A Promise that resolves with
2832
+ * information about theatrical screenings.
2800
2833
  */
2801
2834
  screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
2802
2835
  /**
2803
2836
  * Retrieves similar TV shows for a specific TV show asynchronously.
2837
+ *
2804
2838
  * @param {number} id - The ID of the TV show.
2805
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2806
- * @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
2839
+ * @param {LanguageOption & PageOption} [options] - Additional options for
2840
+ * the request.
2841
+ * @returns {Promise<Similartv>} A Promise that resolves with the similar TV
2842
+ * shows.
2807
2843
  */
2808
2844
  similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
2809
2845
  /**
2810
2846
  * Retrieves translations for a specific TV show asynchronously.
2847
+ *
2811
2848
  * @param {number} id - The ID of the TV show.
2812
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
2849
+ * @returns {Promise<Translations>} A Promise that resolves with the
2850
+ * translations of the TV show.
2813
2851
  */
2814
2852
  translations(id: number): Promise<Translations>;
2815
2853
  /**
2816
2854
  * Retrieves videos for a specific TV show asynchronously.
2855
+ *
2817
2856
  * @param {number} id - The ID of the TV show.
2818
- * @param {TvShowVideoOptions} [options] - Additional options for the request.
2819
- * @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
2857
+ * @param {TvShowVideoOptions} [options] - Additional options for the
2858
+ * request.
2859
+ * @returns {Promise<Videos>} A Promise that resolves with the videos of the
2860
+ * TV show.
2820
2861
  */
2821
2862
  videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
2822
2863
  /**
2823
2864
  * Retrieves watch providers for a specific TV show asynchronously.
2824
2865
  * Powered by JustWatch.
2866
+ *
2825
2867
  * @param {number} id - The ID of the TV show.
2826
- * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
2868
+ * @returns {Promise<WatchProviders>} A Promise that resolves with the watch
2869
+ * providers of the TV show.
2827
2870
  */
2828
2871
  watchProviders(id: number): Promise<WatchProviders>;
2829
2872
  /**
2830
2873
  * Retrieves the latest TV show asynchronously.
2831
- * @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
2874
+ *
2875
+ * @returns {Promise<Latesttv>} A Promise that resolves with the latest TV
2876
+ * show.
2832
2877
  */
2833
2878
  latest(): Promise<Latesttv>;
2834
2879
  /**
2835
2880
  * Retrieves TV shows that are currently on the air asynchronously.
2836
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
2837
- * @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
2881
+ *
2882
+ * @param {PageOption & LanguageOption & TimezoneOption} [options] -
2883
+ * Additional options for the request.
2884
+ * @returns {Promise<OnTheAir>} A Promise that resolves with TV shows
2885
+ * currently on the air.
2838
2886
  */
2839
2887
  onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
2840
2888
  /**
2841
2889
  * Retrieves TV shows that are airing today asynchronously.
2842
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
2843
- * @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
2890
+ *
2891
+ * @param {PageOption & LanguageOption & TimezoneOption} [options] -
2892
+ * Additional options for the request.
2893
+ * @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows
2894
+ * airing today.
2844
2895
  */
2845
2896
  airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
2846
2897
  /**
2847
2898
  * Retrieves popular TV shows asynchronously.
2848
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
2849
- * @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
2899
+ *
2900
+ * @param {PageOption & LanguageOption} [options] - Additional options for
2901
+ * the request.
2902
+ * @returns {Promise<Populartv>} A Promise that resolves with popular TV
2903
+ * shows.
2850
2904
  */
2851
2905
  popular(options?: PageOption & LanguageOption): Promise<Populartv>;
2852
2906
  /**
2853
2907
  * Retrieves top-rated TV shows asynchronously.
2854
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
2855
- * @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
2908
+ *
2909
+ * @param {PageOption & LanguageOption} [options] - Additional options for
2910
+ * the request.
2911
+ * @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV
2912
+ * shows.
2856
2913
  */
2857
2914
  topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
2858
2915
  }
@@ -2866,57 +2923,59 @@ declare class WatchProvidersEndpoint extends BaseEndpoint {
2866
2923
  protected readonly access_token: TokenType;
2867
2924
  /**
2868
2925
  * Constructs a new WatchProvidersEndpoint instance.
2869
- * @param {string} access_token - The access token used for authentication.
2926
+ *
2927
+ * @param {TokenType} access_token - The access token used for authentication.
2870
2928
  */
2871
2929
  constructor(access_token: TokenType);
2872
- /**
2873
- * Retrieves a list of all available watch providers (streaming services).
2874
- * @returns {Promise<WatchProviders>} A Promise that resolves with the list of watch providers.
2875
- */
2876
- available(): Promise<WatchProviders>;
2877
- /**
2878
- * Retrieves a list of available regions for watch providers.
2879
- * @returns {Promise<WatchRegionsResponse>} A Promise that resolves with the list of available regions.
2880
- */
2881
- regions(): Promise<WatchRegionsResponse>;
2882
2930
  /**
2883
2931
  * Retrieves a list of watch providers for movies.
2884
- * @returns {Promise<WatchProviders>} A Promise that resolves with the list of movie watch providers.
2932
+ *
2933
+ * @returns {Promise<WatchProviderListResponse>} A Promise that resolves with
2934
+ * the list of movie watch providers.
2885
2935
  */
2886
- movie(): Promise<WatchProviders>;
2936
+ movie(): Promise<WatchProviderListResponse>;
2887
2937
  /**
2888
2938
  * Retrieves a list of watch providers for TV shows.
2889
- * @returns {Promise<WatchProviders>} A Promise that resolves with the list of TV watch providers.
2939
+ *
2940
+ * @returns {Promise<WatchProviderListResponse>} A Promise that resolves with
2941
+ * the list of TV watch providers.
2890
2942
  */
2891
- tv(): Promise<WatchProviders>;
2943
+ tv(): Promise<WatchProviderListResponse>;
2944
+ /**
2945
+ * Retrieves a list of available regions for watch providers.
2946
+ *
2947
+ * @returns {Promise<WatchRegionsResponse>} A Promise that resolves with the
2948
+ * list of available regions.
2949
+ */
2950
+ regions(): Promise<WatchRegionsResponse>;
2892
2951
  }
2893
2952
  //# sourceMappingURL=watchProviders.d.ts.map
2894
2953
  //#endregion
2895
2954
  //#region src/index.d.ts
2896
2955
  declare class TMDB {
2956
+ readonly account: AccountEndpoint;
2957
+ readonly certification: CertificationEndpoint;
2958
+ readonly changes: ChangeEndpoint;
2959
+ readonly collections: CollectionsEndpoint;
2960
+ readonly companies: CompaniesEndpoint;
2961
+ readonly configuration: ConfigurationEndpoint;
2962
+ readonly credits: CreditsEndpoint;
2963
+ readonly discover: DiscoverEndpoint;
2964
+ readonly find: FindEndpoint;
2965
+ readonly genre: GenreEndpoint;
2966
+ readonly keywords: KeywordsEndpoint;
2967
+ readonly movies: MoviesEndpoint;
2968
+ readonly networks: NetworksEndpoint;
2969
+ readonly people: PeopleEndpoint;
2970
+ readonly review: ReviewEndpoint;
2971
+ readonly search: SearchEndpoint;
2972
+ readonly trending: TrendingEndpoint;
2973
+ readonly tvEpisodes: TvEpisodesEndpoint;
2974
+ readonly tvSeasons: TvSeasonsEndpoint;
2975
+ readonly tvShows: TvShowsEndpoint;
2976
+ readonly watchProviders: WatchProvidersEndpoint;
2897
2977
  constructor(auth: TokenType);
2898
- account: AccountEndpoint;
2899
- certification: CertificationEndpoint;
2900
- changes: ChangeEndpoint;
2901
- collections: CollectionsEndpoint;
2902
- companies: CompaniesEndpoint;
2903
- configuration: ConfigurationEndpoint;
2904
- credits: CreditsEndpoint;
2905
- discover: DiscoverEndpoint;
2906
- find: FindEndpoint;
2907
- genre: GenreEndpoint;
2908
- keywords: KeywordsEndpoint;
2909
- movies: MoviesEndpoint;
2910
- networks: NetworksEndpoint;
2911
- people: PeopleEndpoint;
2912
- review: ReviewEndpoint;
2913
- search: SearchEndpoint;
2914
- trending: TrendingEndpoint;
2915
- tvEpisodes: TvEpisodesEndpoint;
2916
- tvSeasons: TvSeasonsEndpoint;
2917
- tvShows: TvShowsEndpoint;
2918
- watchProviders: WatchProvidersEndpoint;
2919
2978
  }
2920
2979
  //#endregion
2921
- export { API, AccountDetails, AggregateCast, AggregateCredits, AggregateCrew, AiringTodayResult, AlternativeNames, AlternativeTitles, AppendToResponse, AppendToResponseMediaType, AppendToResponseMovieKey, AppendToResponsePersonKey, AppendToResponseTvEpisodeKey, AppendToResponseTvKey, AppendToResponseTvSeasonKey, AuthorDetails, Avatar, BackdropSizes, BaseEndpoint, BelongingMovies, BelongsToCollection, Buy, Cast, CastRole, Certification, Certifications, Change, ChangeItem, ChangeKeys, ChangeOption, Changes, Collection, CollectionImageOptions, CollectionSearchOptions, Company, CompanyDetails, CompanyImages, Configuration, ContentRatings, ContentRatingsResult, CreatedBy, CreditResponse, CreditSeason, Credits, Crew, CrewJob, Dates, DetailedCollection, DiscoverQueryOptions, Episode, EpisodeGroup, EpisodeGroups, EpisodeSelection, ErrorResponse, ExternalIdOptions, ExternalIds, ExternalSource, FindResult, Flatrate, Genre, Genres, Gravatar, GuestStar, Image, ImageCollection, ImageConfiguration, ImageFormat, ImageFormats, ImageSize, ImageSizes, Images, Keyword, Keywords, KeywordsOptions, KnownFor, LanguageOption, LastEpisodeToAir, LatestMovie, Latesttv, LogoSizes, Media$1 as Media, MediaChange, MediaChanges, MediaType, Movie, MovieChangeValue, MovieDetails, MovieDiscoverResult, MovieList, MovieLists, MovieQueryOptions, MovieSearchOptions, MovieSortOption, MovieWithMediaType, MoviesImageSearchOptions, MoviesPlayingNow, MultiSearchOptions, MultiSearchResult, Name, Network, NetworkDetails, NetworkImages, NextEpisodeToAir, OnTheAir, OnTheAirResult, PageOption, ParentCompany, PeopleImages, PeopleSearchOptions, Person, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCast, PersonMovieCredit, PersonMovieCrew, PersonTranslations, PersonTvShowCast, PersonTvShowCredit, PersonTvShowCrew, PersonWithMediaType, PopularMovies, PopularPersons, PopularTvShowResult, Populartv, PosterSizes, ProductionCompany, ProductionCountry, ProfileSizes, Recommendation, Recommendations, RegionOption, ReleaseDate, ReleaseDateResult, ReleaseDateType, ReleaseDates, Rent, Review, ReviewDetails, Reviews, ScreenedTheatrically, ScreenedTheatricallyResult, Search, SearchOptions, Season, SeasonDetails, SeasonSelection, SimilarMovies, SimilarTvShow, Similartv, SpokenLanguage, StillSizes, TMDB, TMDBConfig, TMDB_IMAGE_BASE_URL, TV, TVWithMediaType, TaggedImage, TaggedImages, TimeWindow, TimezoneOption, Title, TokenType, TopRatedMovies, TopRatedTvShowResult, TopRatedtv, Translation, TranslationData, Translations, TrendingMediaType, TrendingResults, TvEpisodeChangeValue, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, TvSearchOptions, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, TvShowChangeValue, TvShowDetails, TvShowDiscoverResult, TvShowImageOptions, TvShowQueryOptions, TvShowVideoOptions, TvSortOption, UpcomingMovies, Video, Videos, WatchLocale, WatchMonetizationType, WatchProviders, WatchRegion, WatchRegionsResponse, formImage, getFullImagePath, parseOptions, tvAiringToday };
2980
+ export { API, AccountDetails, AggregateCast, AggregateCredits, AggregateCrew, AiringTodayResult, AlternativeNames, AlternativeTitles, AppendToResponse, AppendToResponseMediaType, AppendToResponseMovieKey, AppendToResponsePersonKey, AppendToResponseTvEpisodeKey, AppendToResponseTvKey, AppendToResponseTvSeasonKey, AuthorDetails, Avatar, BackdropSizes, BaseEndpoint, BelongingMovies, BelongsToCollection, Buy, Cast, CastRole, Certification, Certifications, Change, ChangeItem, ChangeKeys, ChangeOption, Changes, Collection, CollectionImageOptions, CollectionSearchOptions, Company, CompanyDetails, CompanyImages, Configuration, ContentRatings, ContentRatingsResult, CreatedBy, CreditResponse, CreditSeason, Credits, Crew, CrewJob, Dates, DetailedCollection, DiscoverQueryOptions, Episode, EpisodeGroup, EpisodeGroups, EpisodeSelection, ErrorResponse, ExternalIdOptions, ExternalIds, ExternalSource, FindResult, Flatrate, Genre, Genres, Gravatar, GuestStar, Image, ImageCollection, ImageConfiguration, ImageFormat, ImageFormats, ImageSize, ImageSizes, Images, Keyword, Keywords, KeywordsOptions, KnownFor, LanguageOption, LastEpisodeToAir, LatestMovie, Latesttv, LogoSizes, Media$1 as Media, MediaChange, MediaChanges, MediaType, Movie, MovieChangeValue, MovieDetails, MovieDiscoverResult, MovieList, MovieLists, MovieQueryOptions, MovieSearchOptions, MovieSortOption, MovieWithMediaType, MoviesImageSearchOptions, MoviesPlayingNow, MultiSearchOptions, MultiSearchResult, Name, Network, NetworkDetails, NetworkImages, NextEpisodeToAir, OnTheAir, OnTheAirResult, PageOption, ParentCompany, PeopleImages, PeopleSearchOptions, Person, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCast, PersonMovieCredit, PersonMovieCrew, PersonTranslations, PersonTvShowCast, PersonTvShowCredit, PersonTvShowCrew, PersonWithMediaType, PopularMovies, PopularPersons, PopularTvShowResult, Populartv, PosterSizes, Primitive, ProductionCompany, ProductionCountry, ProfileSizes, Query, QueryValue, Recommendation, Recommendations, RegionOption, ReleaseDate, ReleaseDateResult, ReleaseDateType, ReleaseDates, Rent, RequestConfig, RequestOptions, Review, ReviewDetails, Reviews, ScreenedTheatrically, ScreenedTheatricallyResult, Search, SearchOptions, Season, SeasonDetails, SeasonSelection, SimilarMovies, SimilarTvShow, Similartv, SpokenLanguage, StillSizes, TMDB, TMDBConfig, TMDBError, TMDB_IMAGE_BASE_URL, TV, TVWithMediaType, TaggedImage, TaggedImages, TimeWindow, TimezoneOption, Title, TokenType, TopRatedMovies, TopRatedTvShowResult, TopRatedtv, Translation, TranslationData, Translations, TrendingMediaType, TrendingResults, TvEpisodeChangeValue, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, TvSearchOptions, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, TvShowChangeValue, TvShowDetails, TvShowDiscoverResult, TvShowImageOptions, TvShowQueryOptions, TvShowVideoOptions, TvSortOption, UpcomingMovies, Video, Videos, WatchLocale, WatchMonetizationType, WatchProviderEntry, WatchProviderListItem, WatchProviderListResponse, WatchProviders, WatchRegion, WatchRegionsResponse, csv, formImage, getFullImagePath, parseOptions, tvAiringToday, withQuery };
2922
2981
  //# sourceMappingURL=index.d.mts.map