@tdanks2000/tmdb-wrapper 1.6.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.cts CHANGED
@@ -87,17 +87,17 @@ interface CollectionImageOptions extends LanguageOption {
87
87
  interface CompanyDetails {
88
88
  description: string;
89
89
  headquarters: string;
90
- homepage: string;
90
+ homepage: Nullable<string>;
91
91
  id: number;
92
- logo_path: string;
92
+ logo_path: Nullable<string>;
93
93
  name: string;
94
94
  origin_country: string;
95
- parent_company: ParentCompany;
95
+ parent_company: Nullable<ParentCompany>;
96
96
  }
97
97
  interface ParentCompany {
98
98
  name: string;
99
99
  id: number;
100
- logo_path: string;
100
+ logo_path: Nullable<string>;
101
101
  }
102
102
  interface AlternativeNames {
103
103
  id: number;
@@ -228,7 +228,7 @@ interface CreditSeason {
228
228
  season_number?: number;
229
229
  }
230
230
  interface Media$1 {
231
- i?: number;
231
+ id?: number;
232
232
  name?: string;
233
233
  first_air_date?: string;
234
234
  vote_count?: number;
@@ -439,17 +439,17 @@ interface ExternalIdOptions {
439
439
  external_source: ExternalSource;
440
440
  language?: string;
441
441
  }
442
- type MediaTagged<T> = T & {
443
- media_type: MediaType;
442
+ type MediaTagged<T, TMediaType extends string> = T & {
443
+ media_type: TMediaType;
444
444
  };
445
445
  interface FindResult {
446
- movie_results: MediaTagged<Movie>[];
447
- person_results: MediaTagged<Person>[];
448
- tv_results: MediaTagged<TV>[];
449
- 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">[];
450
450
  tv_season_results: MediaTagged<Season & {
451
- show_id: string;
452
- }>[];
451
+ show_id: number;
452
+ }, "tv_season">[];
453
453
  }
454
454
  //#endregion
455
455
  //#region src/@types/endpoints/genre.d.ts
@@ -512,7 +512,7 @@ type AppendToResponse<K, T extends AppendToResponseAllKeys[] | undefined, Media
512
512
  } : object) & ("watch/providers" extends T[number] ? {
513
513
  "watch/providers": Omit<WatchProviders, "id">;
514
514
  } : object) & ("aggregate_credits" extends T[number] ? {
515
- aggregate_credits: Omit<Credits, "id">;
515
+ aggregate_credits: Omit<AggregateCredits, "id">;
516
516
  } : object) & ("episode_groups" extends T[number] ? {
517
517
  episode_groups: Omit<EpisodeGroups, "id">;
518
518
  } : object) & ("screened_theatrically" extends T[number] ? {
@@ -562,12 +562,12 @@ interface BelongsToCollection {
562
562
  interface MovieDetails {
563
563
  adult: boolean;
564
564
  backdrop_path: Nullable<string>;
565
- belongs_to_collection?: BelongsToCollection;
565
+ belongs_to_collection?: Nullable<BelongsToCollection>;
566
566
  budget: number;
567
567
  genres: Genre[];
568
- homepage: string;
568
+ homepage: Nullable<string>;
569
569
  id: number;
570
- imdb_id: string;
570
+ imdb_id: Nullable<string>;
571
571
  original_language: string;
572
572
  original_title: string;
573
573
  overview: string;
@@ -577,10 +577,10 @@ interface MovieDetails {
577
577
  production_countries: ProductionCountry[];
578
578
  release_date: string;
579
579
  revenue: number;
580
- runtime: number;
580
+ runtime: Nullable<number>;
581
581
  spoken_languages: SpokenLanguage[];
582
582
  status: string;
583
- tagline: string;
583
+ tagline: Nullable<string>;
584
584
  title: string;
585
585
  video: boolean;
586
586
  vote_average: number;
@@ -635,12 +635,12 @@ interface MovieLists {
635
635
  interface LatestMovie {
636
636
  adult: boolean;
637
637
  backdrop_path: Nullable<string>;
638
- belongs_to_collection?: BelongsToCollection;
638
+ belongs_to_collection?: Nullable<BelongsToCollection>;
639
639
  budget: number;
640
640
  genres: Genre[];
641
- homepage: string;
641
+ homepage: Nullable<string>;
642
642
  id: number;
643
- imdb_id: string;
643
+ imdb_id: Nullable<string>;
644
644
  original_language: string;
645
645
  original_title: string;
646
646
  overview: string;
@@ -650,10 +650,10 @@ interface LatestMovie {
650
650
  production_countries: ProductionCountry[];
651
651
  release_date: string;
652
652
  revenue: number;
653
- runtime: number;
653
+ runtime: Nullable<number>;
654
654
  spoken_languages: SpokenLanguage[];
655
655
  status: string;
656
- tagline: string;
656
+ tagline: Nullable<string>;
657
657
  title: string;
658
658
  video: boolean;
659
659
  vote_average: number;
@@ -706,9 +706,9 @@ interface MoviesImageSearchOptions extends LanguageOption {
706
706
  //#region src/@types/endpoints/networks.d.ts
707
707
  interface NetworkDetails {
708
708
  headquarters: string;
709
- homepage: string;
709
+ homepage: Nullable<string>;
710
710
  id: number;
711
- logo_path: string;
711
+ logo_path: Nullable<string>;
712
712
  name: string;
713
713
  origin_country: string;
714
714
  }
@@ -785,25 +785,25 @@ interface PersonTvShowCredit {
785
785
  id: number;
786
786
  }
787
787
  interface PersonCombinedCredits {
788
- cast: (PersonMovieCast & PersonTvShowCast)[];
789
- crew: (PersonMovieCrew & PersonTvShowCrew)[];
788
+ cast: Array<PersonMovieCast | PersonTvShowCast>;
789
+ crew: Array<PersonMovieCrew | PersonTvShowCrew>;
790
790
  id: number;
791
791
  }
792
792
  interface PersonDetails {
793
- birthday: string;
793
+ birthday: Nullable<string>;
794
794
  known_for_department: string;
795
- deathday: string;
795
+ deathday: Nullable<string>;
796
796
  id: number;
797
797
  name: string;
798
798
  also_known_as: string[];
799
799
  gender: number;
800
800
  biography: string;
801
801
  popularity: number;
802
- place_of_birth: string;
802
+ place_of_birth: Nullable<string>;
803
803
  profile_path: Nullable<string>;
804
804
  adult: boolean;
805
- imdb_id: string;
806
- homepage: string;
805
+ imdb_id: Nullable<string>;
806
+ homepage: Nullable<string>;
807
807
  }
808
808
  type PersonChangeValue = string | {
809
809
  profile: {
@@ -825,12 +825,12 @@ interface TaggedImage {
825
825
  file_path: Nullable<string>;
826
826
  height: number;
827
827
  id: string;
828
- iso_639_1: string;
828
+ iso_639_1: Nullable<string>;
829
829
  vote_average: number;
830
830
  vote_count: number;
831
831
  width: number;
832
832
  image_type: string;
833
- media_type: string;
833
+ media_type: "movie" | "tv";
834
834
  media: Movie | TV;
835
835
  }
836
836
  interface TaggedImages {
@@ -857,7 +857,7 @@ interface ReviewDetails extends Review {
857
857
  iso_639_1: string;
858
858
  media_id: number;
859
859
  media_title: string;
860
- media_type: number;
860
+ media_type: "movie" | "tv";
861
861
  }
862
862
  //# sourceMappingURL=review.d.ts.map
863
863
  //#endregion
@@ -921,7 +921,7 @@ interface Episode {
921
921
  overview: string;
922
922
  production_code: string;
923
923
  season_number: number;
924
- still_path: string;
924
+ still_path: Nullable<string>;
925
925
  vote_average: number;
926
926
  vote_count: number;
927
927
  runtime: number;
@@ -945,7 +945,7 @@ interface TvEpisodeCredit extends Credits {
945
945
  }
946
946
  interface TvEpisodeTranslations {
947
947
  id: number;
948
- translations: {
948
+ translations: Array<{
949
949
  iso_3166_1: string;
950
950
  iso_639_1: string;
951
951
  name: string;
@@ -954,7 +954,7 @@ interface TvEpisodeTranslations {
954
954
  name: string;
955
955
  overview: string;
956
956
  };
957
- };
957
+ }>;
958
958
  }
959
959
  type TvEpisodeChangeValue = string | unknown;
960
960
  interface TvEpisodeImageSearchOptions extends LanguageOption {
@@ -1020,7 +1020,7 @@ interface NextEpisodeToAir {
1020
1020
  air_date: string;
1021
1021
  episode_number: number;
1022
1022
  production_code: string;
1023
- runtime: number;
1023
+ runtime: Nullable<number>;
1024
1024
  season_number: number;
1025
1025
  show_id: number;
1026
1026
  still_path: Nullable<string>;
@@ -1038,9 +1038,9 @@ interface LastEpisodeToAir {
1038
1038
  vote_count: number;
1039
1039
  }
1040
1040
  interface Network {
1041
- name: string;
1042
1041
  id: number;
1043
1042
  logo_path: Nullable<string>;
1043
+ name: string;
1044
1044
  origin_country: string;
1045
1045
  }
1046
1046
  interface Season {
@@ -1058,14 +1058,14 @@ interface TvShowDetails {
1058
1058
  episode_run_time: number[];
1059
1059
  first_air_date: string;
1060
1060
  genres: Genre[];
1061
- homepage: string;
1061
+ homepage: Nullable<string>;
1062
1062
  id: number;
1063
1063
  in_production: boolean;
1064
1064
  languages: string[];
1065
1065
  last_air_date: string;
1066
- last_episode_to_air: LastEpisodeToAir;
1066
+ last_episode_to_air: Nullable<LastEpisodeToAir>;
1067
1067
  name: string;
1068
- next_episode_to_air?: NextEpisodeToAir;
1068
+ next_episode_to_air?: Nullable<NextEpisodeToAir>;
1069
1069
  networks: Network[];
1070
1070
  number_of_episodes: number;
1071
1071
  number_of_seasons: number;
@@ -1080,17 +1080,11 @@ interface TvShowDetails {
1080
1080
  seasons: Season[];
1081
1081
  spoken_languages: SpokenLanguage[];
1082
1082
  status: string;
1083
- tagline: string;
1083
+ tagline: Nullable<string>;
1084
1084
  type: string;
1085
1085
  vote_average: number;
1086
1086
  vote_count: number;
1087
1087
  }
1088
- interface Network {
1089
- id: number;
1090
- logo_path: Nullable<string>;
1091
- name: string;
1092
- origin_country: string;
1093
- }
1094
1088
  interface EpisodeGroup {
1095
1089
  description: string;
1096
1090
  episode_count: number;
@@ -1140,7 +1134,7 @@ interface Latesttv {
1140
1134
  episode_run_time: number[];
1141
1135
  first_air_date: string;
1142
1136
  genres: Genre[];
1143
- homepage: string;
1137
+ homepage: Nullable<string>;
1144
1138
  id: number;
1145
1139
  in_production: boolean;
1146
1140
  languages: string[];
@@ -1152,7 +1146,7 @@ interface Latesttv {
1152
1146
  origin_country: string[];
1153
1147
  original_language: string;
1154
1148
  original_name: string;
1155
- overview?: string;
1149
+ overview?: Nullable<string>;
1156
1150
  popularity: number;
1157
1151
  poster_path: Nullable<string>;
1158
1152
  production_companies: ProductionCompany[];
@@ -1331,6 +1325,12 @@ interface RequestOptions<Q extends object = object> {
1331
1325
  retries?: number;
1332
1326
  retryDelayMs?: number;
1333
1327
  }
1328
+ interface RequestConfig {
1329
+ signal?: AbortSignal;
1330
+ timeoutMs?: number;
1331
+ retries?: number;
1332
+ retryDelayMs?: number;
1333
+ }
1334
1334
  declare class TMDBError extends Error {
1335
1335
  readonly status: number;
1336
1336
  readonly url: string;
@@ -1338,6 +1338,8 @@ declare class TMDBError extends Error {
1338
1338
  constructor(message: string, status: number, url: string, payload?: unknown | undefined);
1339
1339
  }
1340
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>;
1341
1343
  declare class API {
1342
1344
  private apiKey?;
1343
1345
  private accessToken?;
@@ -1388,15 +1390,15 @@ type MediaType = "movie" | "tv" | "person";
1388
1390
  interface AuthorDetails {
1389
1391
  name: string;
1390
1392
  username: string;
1391
- avatar_path: string;
1392
- rating?: number;
1393
+ avatar_path: Nullable<string>;
1394
+ rating?: Nullable<number>;
1393
1395
  }
1394
1396
  type KnownFor = MovieWithMediaType | TVWithMediaType;
1395
1397
  interface Person {
1396
1398
  id: number;
1397
1399
  name: string;
1398
1400
  known_for: KnownFor[];
1399
- profile_path: string;
1401
+ profile_path: Nullable<string>;
1400
1402
  adult: boolean;
1401
1403
  known_for_department: string;
1402
1404
  gender: number;
@@ -1426,7 +1428,7 @@ interface MovieWithMediaType extends Movie {
1426
1428
  }
1427
1429
  interface Company {
1428
1430
  id: number;
1429
- logo_path: string;
1431
+ logo_path: Nullable<string>;
1430
1432
  name: string;
1431
1433
  origin_country: string;
1432
1434
  }
@@ -1453,15 +1455,15 @@ interface Genre {
1453
1455
  name: string;
1454
1456
  }
1455
1457
  interface ExternalIds {
1456
- imdb_id: string;
1457
- facebook_id: string;
1458
- instagram_id: string;
1459
- twitter_id: string;
1458
+ imdb_id: Nullable<string>;
1459
+ facebook_id: Nullable<string>;
1460
+ instagram_id: Nullable<string>;
1461
+ twitter_id: Nullable<string>;
1460
1462
  id: number;
1461
1463
  }
1462
1464
  interface ProductionCompany {
1463
1465
  id: number;
1464
- logo_path: string;
1466
+ logo_path: Nullable<string>;
1465
1467
  name: string;
1466
1468
  origin_country: string;
1467
1469
  }
@@ -1541,7 +1543,7 @@ interface Image {
1541
1543
  aspect_ratio: number;
1542
1544
  file_path: string;
1543
1545
  height: number;
1544
- iso_639_1: string;
1546
+ iso_639_1: Nullable<string>;
1545
1547
  vote_average: number;
1546
1548
  vote_count: number;
1547
1549
  width: number;
@@ -1552,10 +1554,13 @@ interface Images {
1552
1554
  logos: Image[];
1553
1555
  posters: Image[];
1554
1556
  }
1555
- interface TMDBConfig {
1557
+ type TMDBConfig = {
1558
+ accessToken: string;
1556
1559
  apiKey?: string;
1560
+ } | {
1561
+ apiKey: string;
1557
1562
  accessToken?: string;
1558
- }
1563
+ };
1559
1564
  type TokenType = string | TMDBConfig;
1560
1565
  //# sourceMappingURL=types.d.ts.map
1561
1566
  //#endregion
@@ -1701,33 +1706,46 @@ declare class ChangeEndpoint extends BaseEndpoint {
1701
1706
  * Represents an endpoint for accessing collections and their details.
1702
1707
  */
1703
1708
  declare class CollectionsEndpoint extends BaseEndpoint {
1704
- protected readonly access_token: TokenType;
1709
+ protected readonly auth: TokenType;
1705
1710
  /**
1706
1711
  * Constructs a new CollectionsEndpoint instance.
1707
- * @param {string} access_token - The access token used for authentication.
1712
+ *
1713
+ * @param {TokenType} auth - The authentication configuration.
1708
1714
  */
1709
- constructor(access_token: TokenType);
1715
+ constructor(auth: TokenType);
1710
1716
  /**
1711
1717
  * Retrieves details of a specific collection asynchronously.
1718
+ *
1712
1719
  * @param {number} id - The ID of the collection.
1713
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1714
- * @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.
1715
1725
  */
1716
- details(id: number, options?: LanguageOption): Promise<DetailedCollection>;
1726
+ details(id: number, options?: LanguageOption, request?: RequestConfig): Promise<DetailedCollection>;
1717
1727
  /**
1718
1728
  * Retrieves images associated with a specific collection asynchronously.
1729
+ *
1719
1730
  * @param {number} id - The ID of the collection.
1720
- * @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
1721
- * @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.
1722
1736
  */
1723
- images(id: number, options?: CollectionImageOptions): Promise<ImageCollection>;
1737
+ images(id: number, options?: CollectionImageOptions, request?: RequestConfig): Promise<ImageCollection>;
1724
1738
  /**
1725
1739
  * Retrieves translations for a specific collection asynchronously.
1740
+ *
1726
1741
  * @param {number} id - The ID of the collection.
1727
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1728
- * @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.
1729
1747
  */
1730
- translations(id: number, options?: LanguageOption): Promise<Translations>;
1748
+ translations(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Translations>;
1731
1749
  }
1732
1750
  //# sourceMappingURL=collections.d.ts.map
1733
1751
  //#endregion
@@ -1736,28 +1754,35 @@ declare class CollectionsEndpoint extends BaseEndpoint {
1736
1754
  * Represents an endpoint for accessing company details and related information.
1737
1755
  */
1738
1756
  declare class CompaniesEndpoint extends BaseEndpoint {
1739
- protected readonly access_token: TokenType;
1757
+ protected readonly auth: TokenType;
1740
1758
  /**
1741
1759
  * Constructs a new CompaniesEndpoint instance.
1742
- * @param {string} access_token - The access token used for authentication.
1760
+ *
1761
+ * @param {TokenType} auth - The authentication configuration.
1743
1762
  */
1744
- constructor(access_token: TokenType);
1763
+ constructor(auth: TokenType);
1745
1764
  /**
1746
1765
  * Retrieves details of a specific company asynchronously.
1766
+ *
1747
1767
  * @param {number} id - The ID of the company.
1748
- * @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.
1749
1770
  */
1750
1771
  details(id: number): Promise<CompanyDetails>;
1751
1772
  /**
1752
1773
  * Retrieves alternative names of a specific company asynchronously.
1774
+ *
1753
1775
  * @param {number} id - The ID of the company.
1754
- * @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.
1755
1778
  */
1756
1779
  alternativeNames(id: number): Promise<AlternativeNames>;
1757
1780
  /**
1758
1781
  * Retrieves images associated with a specific company asynchronously.
1782
+ *
1759
1783
  * @param {number} id - The ID of the company.
1760
- * @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.
1761
1786
  */
1762
1787
  images(id: number): Promise<CompanyImages>;
1763
1788
  }
@@ -1768,15 +1793,18 @@ declare class CompaniesEndpoint extends BaseEndpoint {
1768
1793
  * Represents an endpoint for retrieving current system configuration.
1769
1794
  */
1770
1795
  declare class ConfigurationEndpoint extends BaseEndpoint {
1771
- protected readonly access_token: TokenType;
1796
+ protected readonly auth: TokenType;
1772
1797
  /**
1773
1798
  * Constructs a new ConfigurationEndpoint instance.
1774
- * @param {string} access_token - The access token used for authentication.
1799
+ *
1800
+ * @param {TokenType} auth - The authentication configuration.
1775
1801
  */
1776
- constructor(access_token: TokenType);
1802
+ constructor(auth: TokenType);
1777
1803
  /**
1778
1804
  * Retrieves the current system configuration asynchronously.
1779
- * @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.
1780
1808
  */
1781
1809
  getCurrent(): Promise<Configuration>;
1782
1810
  }
@@ -1787,16 +1815,19 @@ declare class ConfigurationEndpoint extends BaseEndpoint {
1787
1815
  * Represents an endpoint for retrieving credit details.
1788
1816
  */
1789
1817
  declare class CreditsEndpoint extends BaseEndpoint {
1790
- protected readonly access_token: TokenType;
1818
+ protected readonly auth: TokenType;
1791
1819
  /**
1792
1820
  * Constructs a new CreditsEndpoint instance.
1793
- * @param {string} access_token - The access token used for authentication.
1821
+ *
1822
+ * @param {TokenType} auth - The authentication configuration.
1794
1823
  */
1795
- constructor(access_token: TokenType);
1824
+ constructor(auth: TokenType);
1796
1825
  /**
1797
1826
  * Retrieves credit details by ID asynchronously.
1827
+ *
1798
1828
  * @param {string} id - The ID of the credit.
1799
- * @returns {Promise<CreditResponse>} A Promise that resolves with the credit details.
1829
+ * @returns {Promise<CreditResponse>} A Promise that resolves with the credit
1830
+ * details.
1800
1831
  */
1801
1832
  getById(id: string): Promise<CreditResponse>;
1802
1833
  }
@@ -1804,7 +1835,8 @@ declare class CreditsEndpoint extends BaseEndpoint {
1804
1835
  //#endregion
1805
1836
  //#region src/endpoints/discover.d.ts
1806
1837
  /**
1807
- * 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.
1808
1840
  *
1809
1841
  * TMDB v3 reference:
1810
1842
  * - GET /discover/movie
@@ -1819,23 +1851,27 @@ declare class DiscoverEndpoint extends BaseEndpoint {
1819
1851
  */
1820
1852
  constructor(access_token: TokenType);
1821
1853
  /**
1822
- * Retrieves a list of movies based on the provided query options asynchronously.
1823
- *
1824
- * TMDB: GET /discover/movie
1854
+ * Retrieves a list of movies based on the provided query options
1855
+ * asynchronously.
1825
1856
  *
1826
- * @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
1827
- * @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.
1828
1862
  */
1829
- movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
1863
+ movie(options?: MovieQueryOptions, request?: RequestConfig): Promise<MovieDiscoverResult>;
1830
1864
  /**
1831
- * Retrieves a list of TV shows based on the provided query options asynchronously.
1832
- *
1833
- * TMDB: GET /discover/tv
1865
+ * Retrieves a list of TV shows based on the provided query options
1866
+ * asynchronously.
1834
1867
  *
1835
- * @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
1836
- * @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.
1837
1873
  */
1838
- tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
1874
+ tvShow(options?: TvShowQueryOptions, request?: RequestConfig): Promise<TvShowDiscoverResult>;
1839
1875
  }
1840
1876
  //# sourceMappingURL=discover.d.ts.map
1841
1877
  //#endregion
@@ -1844,17 +1880,21 @@ declare class DiscoverEndpoint extends BaseEndpoint {
1844
1880
  * Represents an endpoint for finding media by external ID.
1845
1881
  */
1846
1882
  declare class FindEndpoint extends BaseEndpoint {
1847
- protected readonly access_token: TokenType;
1883
+ protected readonly auth: TokenType;
1848
1884
  /**
1849
1885
  * Constructs a new FindEndpoint instance.
1850
- * @param {string} access_token - The access token used for authentication.
1886
+ *
1887
+ * @param {TokenType} auth - The authentication configuration.
1851
1888
  */
1852
- constructor(access_token: TokenType);
1889
+ constructor(auth: TokenType);
1853
1890
  /**
1854
1891
  * Retrieves media by external ID asynchronously.
1892
+ *
1855
1893
  * @param {string} externalId - The external ID of the media.
1856
- * @param {ExternalIdOptions} options - Options for finding media by external ID.
1857
- * @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.
1858
1898
  */
1859
1899
  byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
1860
1900
  }
@@ -1862,25 +1902,33 @@ declare class FindEndpoint extends BaseEndpoint {
1862
1902
  //#endregion
1863
1903
  //#region src/endpoints/genre.d.ts
1864
1904
  /**
1865
- * 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.
1866
1907
  */
1867
1908
  declare class GenreEndpoint extends BaseEndpoint {
1868
- protected readonly access_token: TokenType;
1909
+ protected readonly auth: TokenType;
1869
1910
  /**
1870
1911
  * Constructs a new GenreEndpoint instance.
1871
- * @param {string} access_token - The access token used for authentication.
1912
+ *
1913
+ * @param {TokenType} auth - The authentication configuration.
1872
1914
  */
1873
- constructor(access_token: TokenType);
1915
+ constructor(auth: TokenType);
1874
1916
  /**
1875
1917
  * Retrieves genre information for movies asynchronously.
1876
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1877
- * @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.
1878
1923
  */
1879
1924
  movies(options?: LanguageOption): Promise<Genres>;
1880
1925
  /**
1881
1926
  * Retrieves genre information for TV shows asynchronously.
1882
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1883
- * @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.
1884
1932
  */
1885
1933
  tv(options?: LanguageOption): Promise<Genres>;
1886
1934
  }
@@ -1891,23 +1939,29 @@ declare class GenreEndpoint extends BaseEndpoint {
1891
1939
  * Represents an endpoint for accessing keyword details and related movies.
1892
1940
  */
1893
1941
  declare class KeywordsEndpoint extends BaseEndpoint {
1894
- protected readonly access_token: TokenType;
1942
+ protected readonly auth: TokenType;
1895
1943
  /**
1896
1944
  * Constructs a new KeywordsEndpoint instance.
1897
- * @param {string} access_token - The access token used for authentication.
1945
+ *
1946
+ * @param {TokenType} auth - The authentication configuration.
1898
1947
  */
1899
- constructor(access_token: TokenType);
1948
+ constructor(auth: TokenType);
1900
1949
  /**
1901
1950
  * Retrieves details of a specific keyword asynchronously.
1951
+ *
1902
1952
  * @param {number} keywordId - The ID of the keyword.
1903
- * @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.
1904
1955
  */
1905
1956
  details(keywordId: number): Promise<Keyword>;
1906
1957
  /**
1907
1958
  * Retrieves movies belonging to a specific keyword asynchronously.
1959
+ *
1908
1960
  * @param {number} keywordId - The ID of the keyword.
1909
- * @param {KeywordsOptions} [options] - Optional parameters for refining the search.
1910
- * @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.
1911
1965
  */
1912
1966
  belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
1913
1967
  }
@@ -1918,141 +1972,216 @@ declare class KeywordsEndpoint extends BaseEndpoint {
1918
1972
  * Represents an endpoint for accessing movie-related information.
1919
1973
  */
1920
1974
  declare class MoviesEndpoint extends BaseEndpoint {
1921
- protected readonly access_token: TokenType;
1975
+ protected readonly auth: TokenType;
1922
1976
  /**
1923
1977
  * Constructs a new MoviesEndpoint instance.
1924
- * @param {string} access_token - The access token used for authentication.
1978
+ *
1979
+ * @param {TokenType} auth - The authentication configuration.
1925
1980
  */
1926
- constructor(access_token: TokenType);
1981
+ constructor(auth: TokenType);
1927
1982
  /**
1928
1983
  * Retrieves details of a specific movie asynchronously.
1984
+ *
1929
1985
  * @param {number} id - The ID of the movie.
1930
- * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
1931
- * @param {string} [language] - Optional parameter for specifying the language.
1932
- * @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.
1933
1993
  */
1934
- 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">>;
1935
1995
  /**
1936
1996
  * Retrieves alternative titles of a specific movie asynchronously.
1997
+ *
1937
1998
  * @param {number} id - The ID of the movie.
1938
- * @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.
1939
2002
  */
1940
- alternativeTitles(id: number): Promise<AlternativeTitles>;
2003
+ alternativeTitles(id: number, request?: RequestConfig): Promise<AlternativeTitles>;
1941
2004
  /**
1942
2005
  * Retrieves changes made to a specific movie asynchronously.
2006
+ *
1943
2007
  * @param {number} id - The ID of the movie.
1944
- * @param {ChangeOption} [options] - Optional parameters for filtering changes.
1945
- * @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.
1946
2013
  */
1947
- changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
2014
+ changes(id: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<MovieChangeValue>>;
1948
2015
  /**
1949
2016
  * Retrieves credits of a specific movie asynchronously.
2017
+ *
1950
2018
  * @param {number} id - The ID of the movie.
1951
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
1952
- * @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.
1953
2024
  */
1954
- credits(id: number, options?: LanguageOption): Promise<Credits>;
2025
+ credits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Credits>;
1955
2026
  /**
1956
2027
  * Retrieves external IDs of a specific movie asynchronously.
2028
+ *
1957
2029
  * @param {number} id - The ID of the movie.
1958
- * @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.
1959
2033
  */
1960
- externalIds(id: number): Promise<ExternalIds>;
2034
+ externalIds(id: number, request?: RequestConfig): Promise<ExternalIds>;
1961
2035
  /**
1962
2036
  * Retrieves images of a specific movie asynchronously.
2037
+ *
1963
2038
  * @param {number} id - The ID of the movie.
1964
- * @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
1965
- * @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.
1966
2044
  */
1967
- images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
2045
+ images(id: number, options?: MoviesImageSearchOptions, request?: RequestConfig): Promise<Images>;
1968
2046
  /**
1969
2047
  * Retrieves keywords of a specific movie asynchronously.
2048
+ *
1970
2049
  * @param {number} id - The ID of the movie.
1971
- * @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.
1972
2053
  */
1973
- keywords(id: number): Promise<Keywords>;
2054
+ keywords(id: number, request?: RequestConfig): Promise<Keywords>;
1974
2055
  /**
1975
2056
  * Retrieves lists containing a specific movie asynchronously.
2057
+ *
1976
2058
  * @param {number} id - The ID of the movie.
1977
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
1978
- * @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.
1979
2064
  */
1980
- lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
2065
+ lists(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<MovieLists>;
1981
2066
  /**
1982
2067
  * Retrieves recommendations for a specific movie asynchronously.
2068
+ *
1983
2069
  * @param {number} id - The ID of the movie.
1984
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
1985
- * @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.
1986
2075
  */
1987
- recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
2076
+ recommendations(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<Recommendations>;
1988
2077
  /**
1989
2078
  * Retrieves release dates of a specific movie asynchronously.
2079
+ *
1990
2080
  * @param {number} id - The ID of the movie.
1991
- * @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.
1992
2084
  */
1993
- releaseDates(id: number): Promise<ReleaseDates>;
2085
+ releaseDates(id: number, request?: RequestConfig): Promise<ReleaseDates>;
1994
2086
  /**
1995
2087
  * Retrieves reviews for a specific movie asynchronously.
2088
+ *
1996
2089
  * @param {number} id - The ID of the movie.
1997
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
1998
- * @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.
1999
2095
  */
2000
- reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
2096
+ reviews(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<Reviews>;
2001
2097
  /**
2002
2098
  * Retrieves similar movies for a specific movie asynchronously.
2099
+ *
2003
2100
  * @param {number} id - The ID of the movie.
2004
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2005
- * @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.
2006
2106
  */
2007
- similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
2107
+ similar(id: number, options?: LanguageOption & PageOption, request?: RequestConfig): Promise<SimilarMovies>;
2008
2108
  /**
2009
2109
  * Retrieves translations of a specific movie asynchronously.
2110
+ *
2010
2111
  * @param {number} id - The ID of the movie.
2011
- * @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.
2012
2115
  */
2013
- translations(id: number): Promise<Translations>;
2116
+ translations(id: number, request?: RequestConfig): Promise<Translations>;
2014
2117
  /**
2015
2118
  * Retrieves videos of a specific movie asynchronously.
2119
+ *
2016
2120
  * @param {number} id - The ID of the movie.
2017
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2018
- * @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.
2019
2126
  */
2020
- videos(id: number, options?: LanguageOption): Promise<Videos>;
2127
+ videos(id: number, options?: LanguageOption, request?: RequestConfig): Promise<Videos>;
2021
2128
  /**
2022
2129
  * Retrieves watch providers of a specific movie asynchronously.
2130
+ *
2023
2131
  * @param {number} id - The ID of the movie.
2024
- * @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.
2025
2135
  */
2026
- watchProviders(id: number): Promise<WatchProviders>;
2136
+ watchProviders(id: number, request?: RequestConfig): Promise<WatchProviders>;
2027
2137
  /**
2028
2138
  * Retrieves details of the latest movie asynchronously.
2029
- * @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.
2030
2143
  */
2031
- latest(): Promise<LatestMovie>;
2144
+ latest(request?: RequestConfig): Promise<LatestMovie>;
2032
2145
  /**
2033
2146
  * Retrieves movies playing now asynchronously.
2034
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2035
- * @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.
2036
2153
  */
2037
- nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
2154
+ nowPlaying(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<MoviesPlayingNow>;
2038
2155
  /**
2039
2156
  * Retrieves popular movies asynchronously.
2040
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2041
- * @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.
2042
2163
  */
2043
- popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
2164
+ popular(options?: LanguageOption & PageOption, request?: RequestConfig): Promise<PopularMovies>;
2044
2165
  /**
2045
2166
  * Retrieves top rated movies asynchronously.
2046
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2047
- * @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.
2048
2173
  */
2049
- topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
2174
+ topRated(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<TopRatedMovies>;
2050
2175
  /**
2051
2176
  * Retrieves upcoming movies asynchronously.
2052
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
2053
- * @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.
2054
2183
  */
2055
- upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
2184
+ upcoming(options?: PageOption & LanguageOption & RegionOption, request?: RequestConfig): Promise<UpcomingMovies>;
2056
2185
  }
2057
2186
  //# sourceMappingURL=movies.d.ts.map
2058
2187
  //#endregion
@@ -2061,28 +2190,35 @@ declare class MoviesEndpoint extends BaseEndpoint {
2061
2190
  * Represents an endpoint for accessing network details.
2062
2191
  */
2063
2192
  declare class NetworksEndpoint extends BaseEndpoint {
2064
- protected readonly access_token: TokenType;
2193
+ protected readonly auth: TokenType;
2065
2194
  /**
2066
2195
  * Constructs a new NetworksEndpoint instance.
2067
- * @param {string} access_token - The access token used for authentication.
2196
+ *
2197
+ * @param {TokenType} auth - The authentication configuration.
2068
2198
  */
2069
- constructor(access_token: TokenType);
2199
+ constructor(auth: TokenType);
2070
2200
  /**
2071
2201
  * Retrieves details of a specific network asynchronously.
2202
+ *
2072
2203
  * @param {number} id - The ID of the network.
2073
- * @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.
2074
2206
  */
2075
2207
  details(id: number): Promise<NetworkDetails>;
2076
2208
  /**
2077
2209
  * Retrieves alternative names of a specific network asynchronously.
2210
+ *
2078
2211
  * @param {number} id - The ID of the network.
2079
- * @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.
2080
2214
  */
2081
2215
  alternativeNames(id: number): Promise<AlternativeNames>;
2082
2216
  /**
2083
2217
  * Retrieves images of a specific network asynchronously.
2218
+ *
2084
2219
  * @param {number} id - The ID of the network.
2085
- * @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.
2086
2222
  */
2087
2223
  images(id: number): Promise<NetworkImages>;
2088
2224
  }
@@ -2093,84 +2229,126 @@ declare class NetworksEndpoint extends BaseEndpoint {
2093
2229
  * Represents an endpoint for accessing information about people.
2094
2230
  */
2095
2231
  declare class PeopleEndpoint extends BaseEndpoint {
2096
- protected readonly access_token: TokenType;
2232
+ protected readonly auth: TokenType;
2097
2233
  /**
2098
2234
  * Constructs a new PeopleEndpoint instance.
2099
- * @param {string} access_token - The access token used for authentication.
2235
+ *
2236
+ * @param {TokenType} auth - The authentication configuration.
2100
2237
  */
2101
- constructor(access_token: TokenType);
2238
+ constructor(auth: TokenType);
2102
2239
  /**
2103
2240
  * Retrieves details of a specific person asynchronously.
2241
+ *
2104
2242
  * @param {number} id - The ID of the person.
2105
- * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
2106
- * @param {string} [language] - Optional parameter for specifying the language.
2107
- * @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.
2108
2250
  */
2109
- 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">>;
2110
2252
  /**
2111
2253
  * Retrieves changes made to a specific person asynchronously.
2254
+ *
2112
2255
  * @param {number} id - The ID of the person.
2113
- * @param {ChangeOption} [options] - Optional parameters for filtering changes.
2114
- * @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.
2115
2261
  */
2116
- changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
2262
+ changes(id: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<PersonChangeValue>>;
2117
2263
  /**
2118
2264
  * Retrieves movie credits of a specific person asynchronously.
2265
+ *
2119
2266
  * @param {number} id - The ID of the person.
2120
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2121
- * @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.
2122
2272
  */
2123
- movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
2273
+ movieCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonMovieCredit>;
2124
2274
  /**
2125
2275
  * Retrieves TV show credits of a specific person asynchronously.
2276
+ *
2126
2277
  * @param {number} id - The ID of the person.
2127
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2128
- * @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.
2129
2283
  */
2130
- tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
2284
+ tvShowCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonTvShowCredit>;
2131
2285
  /**
2132
2286
  * Retrieves combined credits of a specific person asynchronously.
2287
+ *
2133
2288
  * @param {number} id - The ID of the person.
2134
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2135
- * @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.
2136
2294
  */
2137
- combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
2295
+ combinedCredits(id: number, options?: LanguageOption, request?: RequestConfig): Promise<PersonCombinedCredits>;
2138
2296
  /**
2139
2297
  * Retrieves external IDs of a specific person asynchronously.
2298
+ *
2140
2299
  * @param {number} id - The ID of the person.
2141
- * @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.
2142
2303
  */
2143
- externalId(id: number): Promise<ExternalIds>;
2304
+ externalId(id: number, request?: RequestConfig): Promise<ExternalIds>;
2144
2305
  /**
2145
2306
  * Retrieves images of a specific person asynchronously.
2307
+ *
2146
2308
  * @param {number} id - The ID of the person.
2147
- * @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.
2148
2312
  */
2149
- images(id: number): Promise<PeopleImages>;
2313
+ images(id: number, request?: RequestConfig): Promise<PeopleImages>;
2150
2314
  /**
2151
2315
  * Retrieves tagged images of a specific person asynchronously.
2316
+ *
2152
2317
  * @param {number} id - The ID of the person.
2153
- * @param {PageOption} [options] - Optional parameters for specifying pagination options.
2154
- * @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.
2155
2323
  */
2156
- taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
2324
+ taggedImages(id: number, options?: PageOption, request?: RequestConfig): Promise<TaggedImages>;
2157
2325
  /**
2158
2326
  * Retrieves translations of a specific person asynchronously.
2327
+ *
2159
2328
  * @param {number} id - The ID of the person.
2160
- * @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.
2161
2332
  */
2162
- translation(id: number): Promise<PersonTranslations>;
2333
+ translation(id: number, request?: RequestConfig): Promise<PersonTranslations>;
2163
2334
  /**
2164
2335
  * Retrieves details of the latest person asynchronously.
2165
- * @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.
2166
2340
  */
2167
- latest(): Promise<PersonDetails>;
2341
+ latest(request?: RequestConfig): Promise<PersonDetails>;
2168
2342
  /**
2169
2343
  * Retrieves popular persons asynchronously.
2170
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
2171
- * @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.
2172
2350
  */
2173
- popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
2351
+ popular(options?: LanguageOption & PageOption, request?: RequestConfig): Promise<PopularPersons>;
2174
2352
  }
2175
2353
  //# sourceMappingURL=people.d.ts.map
2176
2354
  //#endregion
@@ -2179,16 +2357,19 @@ declare class PeopleEndpoint extends BaseEndpoint {
2179
2357
  * Represents an endpoint for accessing review details.
2180
2358
  */
2181
2359
  declare class ReviewEndpoint extends BaseEndpoint {
2182
- protected readonly access_token: TokenType;
2360
+ protected readonly auth: TokenType;
2183
2361
  /**
2184
2362
  * Constructs a new ReviewEndpoint instance.
2185
- * @param {string} access_token - The access token used for authentication.
2363
+ *
2364
+ * @param {TokenType} auth - The authentication configuration.
2186
2365
  */
2187
- constructor(access_token: TokenType);
2366
+ constructor(auth: TokenType);
2188
2367
  /**
2189
2368
  * Retrieves details of a specific review asynchronously.
2369
+ *
2190
2370
  * @param {string} id - The ID of the review.
2191
- * @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.
2192
2373
  */
2193
2374
  details(id: string): Promise<ReviewDetails>;
2194
2375
  }
@@ -2202,54 +2383,76 @@ declare class SearchEndpoint extends BaseEndpoint {
2202
2383
  protected readonly access_token: TokenType;
2203
2384
  /**
2204
2385
  * Constructs a new SearchEndpoint instance.
2205
- * @param {string} access_token - The access token used for authentication.
2386
+ *
2387
+ * @param {TokenType} access_token - The access token used for authentication.
2206
2388
  */
2207
2389
  constructor(access_token: TokenType);
2208
2390
  /**
2209
2391
  * Searches for companies asynchronously.
2392
+ *
2210
2393
  * @param {SearchOptions} options - The search options.
2211
- * @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.
2212
2397
  */
2213
- companies(options: SearchOptions): Promise<Search<Company>>;
2398
+ companies(options: SearchOptions, request?: RequestConfig): Promise<Search<Company>>;
2214
2399
  /**
2215
2400
  * Searches for collections asynchronously.
2216
- * @param {SearchOptions} options - The search options.
2217
- * @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.
2218
2406
  */
2219
- collections(options: SearchOptions): Promise<Search<Collection>>;
2407
+ collections(options: CollectionSearchOptions, request?: RequestConfig): Promise<Search<Collection>>;
2220
2408
  /**
2221
2409
  * Searches for keywords asynchronously.
2410
+ *
2222
2411
  * @param {SearchOptions} options - The search options.
2223
- * @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.
2224
2415
  */
2225
- keywords(options: SearchOptions): Promise<Search<{
2416
+ keywords(options: SearchOptions, request?: RequestConfig): Promise<Search<{
2226
2417
  id: string;
2227
2418
  name: string;
2228
2419
  }>>;
2229
2420
  /**
2230
2421
  * Searches for movies asynchronously.
2422
+ *
2231
2423
  * @param {MovieSearchOptions} options - The search options.
2232
- * @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.
2233
2427
  */
2234
- movies(options: MovieSearchOptions): Promise<Search<Movie>>;
2428
+ movies(options: MovieSearchOptions, request?: RequestConfig): Promise<Search<Movie>>;
2235
2429
  /**
2236
2430
  * Searches for people asynchronously.
2431
+ *
2237
2432
  * @param {PeopleSearchOptions} options - The search options.
2238
- * @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.
2239
2436
  */
2240
- people(options: PeopleSearchOptions): Promise<Search<Person>>;
2437
+ people(options: PeopleSearchOptions, request?: RequestConfig): Promise<Search<Person>>;
2241
2438
  /**
2242
2439
  * Searches for TV shows asynchronously.
2440
+ *
2243
2441
  * @param {TvSearchOptions} options - The search options.
2244
- * @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.
2245
2445
  */
2246
- tv(options: TvSearchOptions): Promise<Search<TV>>;
2446
+ tv(options: TvSearchOptions, request?: RequestConfig): Promise<Search<TV>>;
2247
2447
  /**
2248
2448
  * Performs a multi-search asynchronously.
2449
+ *
2249
2450
  * @param {MultiSearchOptions} options - The search options.
2250
- * @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.
2251
2454
  */
2252
- multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
2455
+ multi(options: MultiSearchOptions, request?: RequestConfig): Promise<Search<MultiSearchResult>>;
2253
2456
  }
2254
2457
  //# sourceMappingURL=search.d.ts.map
2255
2458
  //#endregion
@@ -2258,21 +2461,27 @@ declare class SearchEndpoint extends BaseEndpoint {
2258
2461
  * Represents an endpoint for retrieving trending content.
2259
2462
  */
2260
2463
  declare class TrendingEndpoint extends BaseEndpoint {
2261
- protected readonly access_token: TokenType;
2464
+ protected readonly auth: TokenType;
2262
2465
  /**
2263
2466
  * Constructs a new TrendingEndpoint instance.
2264
- * @param {string} access_token - The access token used for authentication.
2467
+ *
2468
+ * @param {TokenType} auth - The authentication configuration.
2265
2469
  */
2266
- constructor(access_token: TokenType);
2470
+ constructor(auth: TokenType);
2267
2471
  /**
2268
- * Retrieves trending content asynchronously based on media type and time window.
2269
- * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
2270
- * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
2271
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
2272
- * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
2273
- * @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.
2274
2483
  */
2275
- 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>>;
2276
2485
  }
2277
2486
  //# sourceMappingURL=trending.d.ts.map
2278
2487
  //#endregion
@@ -2281,61 +2490,95 @@ declare class TrendingEndpoint extends BaseEndpoint {
2281
2490
  * Represents an endpoint for accessing TV episode-related information.
2282
2491
  */
2283
2492
  declare class TvEpisodesEndpoint extends BaseEndpoint {
2284
- protected readonly access_token: TokenType;
2493
+ protected readonly auth: TokenType;
2285
2494
  /**
2286
2495
  * Constructs a new TvEpisodesEndpoint instance.
2287
- * @param {string} access_token - The access token used for authentication.
2496
+ *
2497
+ * @param {TokenType} auth - The authentication configuration.
2288
2498
  */
2289
- constructor(access_token: TokenType);
2499
+ constructor(auth: TokenType);
2290
2500
  /**
2291
2501
  * Retrieves details of a specific TV episode asynchronously.
2292
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2293
- * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
2294
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2295
- * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
2296
- * A Promise that resolves with the details of the TV episode.
2297
- */
2298
- 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">>;
2299
2515
  /**
2300
2516
  * Retrieves changes related to a specific TV episode asynchronously.
2517
+ *
2301
2518
  * @param {number} episodeID - The ID of the TV episode.
2302
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
2303
- * @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.
2304
2524
  */
2305
- changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
2525
+ changes(episodeID: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<TvEpisodeChangeValue>>;
2306
2526
  /**
2307
2527
  * Retrieves credits for a specific TV episode asynchronously.
2308
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2309
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2310
- * @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.
2311
2536
  */
2312
- credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
2537
+ credits(episodeSelection: EpisodeSelection, options?: LanguageOption, request?: RequestConfig): Promise<TvEpisodeCredit>;
2313
2538
  /**
2314
2539
  * Retrieves external IDs for a specific TV episode asynchronously.
2315
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2316
- * @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.
2317
2546
  */
2318
- externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
2547
+ externalIds(episodeSelection: EpisodeSelection, request?: RequestConfig): Promise<ExternalIds>;
2319
2548
  /**
2320
2549
  * Retrieves images for a specific TV episode asynchronously.
2321
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2322
- * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
2323
- * @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.
2324
2558
  */
2325
- images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
2559
+ images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions, request?: RequestConfig): Promise<Images>;
2326
2560
  /**
2327
2561
  * Retrieves translations for a specific TV episode asynchronously.
2328
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2329
- * @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.
2330
2568
  */
2331
- translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
2569
+ translations(episodeSelection: EpisodeSelection, request?: RequestConfig): Promise<TvEpisodeTranslations>;
2332
2570
  /**
2333
2571
  * Retrieves videos for a specific TV episode asynchronously.
2334
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
2335
- * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
2336
- * @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.
2337
2580
  */
2338
- videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
2581
+ videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions, request?: RequestConfig): Promise<Videos>;
2339
2582
  }
2340
2583
  //# sourceMappingURL=tvEpisodes.d.ts.map
2341
2584
  //#endregion
@@ -2344,70 +2587,110 @@ declare class TvEpisodesEndpoint extends BaseEndpoint {
2344
2587
  * Represents an endpoint for accessing TV season-related information.
2345
2588
  */
2346
2589
  declare class TvSeasonsEndpoint extends BaseEndpoint {
2347
- protected readonly access_token: TokenType;
2590
+ protected readonly auth: TokenType;
2348
2591
  /**
2349
2592
  * Constructs a new TvSeasonsEndpoint instance.
2350
- * @param {string} access_token - The access token used for authentication.
2593
+ *
2594
+ * @param {TokenType} auth - The authentication configuration.
2351
2595
  */
2352
- constructor(access_token: TokenType);
2596
+ constructor(auth: TokenType);
2353
2597
  /**
2354
2598
  * Retrieves details of a specific TV season asynchronously.
2355
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2356
- * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
2357
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2358
- * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
2359
- * A Promise that resolves with the details of the TV season.
2360
- */
2361
- 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">>;
2362
2611
  /**
2363
2612
  * Retrieves aggregate credits for a specific TV season asynchronously.
2364
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2365
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2366
- * @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.
2367
2621
  */
2368
- aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
2622
+ aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<AggregateCredits>;
2369
2623
  /**
2370
2624
  * Retrieves changes related to a specific TV season asynchronously.
2625
+ *
2371
2626
  * @param {number} seasonId - The ID of the TV season.
2372
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
2373
- * @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.
2374
2632
  */
2375
- changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
2633
+ changes(seasonId: number, options?: ChangeOption, request?: RequestConfig): Promise<Changes<TvSeasonChangeValue>>;
2376
2634
  /**
2377
2635
  * Retrieves credits for a specific TV season asynchronously.
2378
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2379
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2380
- * @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.
2381
2644
  */
2382
- credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
2645
+ credits(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<Credits>;
2383
2646
  /**
2384
2647
  * Retrieves external IDs for a specific TV season asynchronously.
2385
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2386
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2387
- * @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.
2388
2656
  */
2389
- externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
2657
+ externalIds(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<ExternalIds>;
2390
2658
  /**
2391
2659
  * Retrieves images for a specific TV season asynchronously.
2392
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2393
- * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
2394
- * @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.
2395
2668
  */
2396
- images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
2669
+ images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions, request?: RequestConfig): Promise<Images>;
2397
2670
  /**
2398
2671
  * Retrieves videos for a specific TV season asynchronously.
2399
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2400
- * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
2401
- * @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.
2402
2680
  */
2403
- videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
2681
+ videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions, request?: RequestConfig): Promise<Videos>;
2404
2682
  /**
2405
2683
  * Retrieves translations for a specific TV season asynchronously.
2406
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
2407
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
2408
- * @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.
2409
2692
  */
2410
- translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
2693
+ translations(seasonSelection: SeasonSelection, options?: LanguageOption, request?: RequestConfig): Promise<Translations>;
2411
2694
  }
2412
2695
  //# sourceMappingURL=tvSeasons.d.ts.map
2413
2696
  //#endregion
@@ -2416,161 +2699,217 @@ declare class TvSeasonsEndpoint extends BaseEndpoint {
2416
2699
  * Represents an endpoint for accessing TV show-related information.
2417
2700
  */
2418
2701
  declare class TvShowsEndpoint extends BaseEndpoint {
2419
- protected readonly access_token: TokenType;
2702
+ protected readonly auth: TokenType;
2420
2703
  /**
2421
2704
  * Constructs a new TvShowsEndpoint instance.
2422
- * @param {string} access_token - The access token used for authentication.
2705
+ *
2706
+ * @param {TokenType} auth - The authentication configuration.
2423
2707
  */
2424
- constructor(access_token: TokenType);
2708
+ constructor(auth: TokenType);
2425
2709
  /**
2426
2710
  * Retrieves details of a specific TV show asynchronously.
2711
+ *
2427
2712
  * @param {number} id - The ID of the TV show.
2428
- * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
2713
+ * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to
2714
+ * append to the response.
2429
2715
  * @param {string} [language] - The language for the response.
2430
- * @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
2431
- * 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.
2432
2718
  */
2433
2719
  details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, "tvShow">>;
2434
2720
  /**
2435
2721
  * Retrieves alternative titles of a specific TV show asynchronously.
2722
+ *
2436
2723
  * @param {number} id - The ID of the TV show.
2437
- * @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.
2438
2726
  */
2439
2727
  alternativeTitles(id: number): Promise<AlternativeTitles>;
2440
2728
  /**
2441
2729
  * Retrieves changes for a specific TV show asynchronously.
2730
+ *
2442
2731
  * @param {number} id - The ID of the TV show.
2443
2732
  * @param {ChangeOption} [options] - Additional options for the request.
2444
- * @returns {Promise<Changes<TvShowChangeValue>>}
2445
- * 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.
2446
2735
  */
2447
2736
  changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
2448
2737
  /**
2449
2738
  * Retrieves content ratings for a specific TV show asynchronously.
2739
+ *
2450
2740
  * @param {number} id - The ID of the TV show.
2451
- * @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.
2452
2743
  */
2453
2744
  contentRatings(id: number): Promise<ContentRatings>;
2454
2745
  /**
2455
2746
  * Retrieves aggregate credits for a specific TV show asynchronously.
2747
+ *
2456
2748
  * @param {number} id - The ID of the TV show.
2457
2749
  * @param {LanguageOption} [options] - Additional options for the request.
2458
- * @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.
2459
2752
  */
2460
2753
  aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
2461
2754
  /**
2462
2755
  * Retrieves credits for a specific TV show asynchronously.
2756
+ *
2463
2757
  * @param {number} id - The ID of the TV show.
2464
2758
  * @param {LanguageOption} [options] - Additional options for the request.
2465
- * @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.
2466
2761
  */
2467
2762
  credits(id: number, options?: LanguageOption): Promise<Credits>;
2468
2763
  /**
2469
2764
  * Retrieves details of a specific season of a TV show asynchronously.
2765
+ *
2470
2766
  * @param {number} tvId - The ID of the TV show.
2471
2767
  * @param {number} seasonNumber - The season number.
2472
- * @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.
2473
2770
  */
2474
2771
  season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
2475
2772
  /**
2476
2773
  * Retrieves episode groups for a specific TV show asynchronously.
2774
+ *
2477
2775
  * @param {number} id - The ID of the TV show.
2478
- * @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.
2479
2778
  */
2480
2779
  episodeGroups(id: number): Promise<EpisodeGroups>;
2481
2780
  /**
2482
2781
  * Retrieves external IDs for a specific TV show asynchronously.
2782
+ *
2483
2783
  * @param {number} id - The ID of the TV show.
2484
- * @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.
2485
2786
  */
2486
2787
  externalIds(id: number): Promise<ExternalIds>;
2487
2788
  /**
2488
2789
  * Retrieves images for a specific TV show asynchronously.
2790
+ *
2489
2791
  * @param {number} id - The ID of the TV show.
2490
- * @param {TvShowImageOptions} [options] - Additional options for the request.
2491
- * @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.
2492
2796
  */
2493
2797
  images(id: number, options?: TvShowImageOptions): Promise<Images>;
2494
2798
  /**
2495
2799
  * Retrieves keywords for a specific TV show asynchronously.
2800
+ *
2496
2801
  * @param {number} id - The ID of the TV show.
2497
- * @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.
2498
2804
  */
2499
2805
  keywords(id: number): Promise<Keywords>;
2500
2806
  /**
2501
2807
  * Retrieves recommendations for a specific TV show asynchronously.
2808
+ *
2502
2809
  * @param {number} id - The ID of the TV show.
2503
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2504
- * @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.
2505
2814
  */
2506
2815
  recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
2507
2816
  /**
2508
2817
  * Retrieves reviews for a specific TV show asynchronously.
2818
+ *
2509
2819
  * @param {number} id - The ID of the TV show.
2510
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2511
- * @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.
2512
2824
  */
2513
2825
  reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
2514
2826
  /**
2515
- * 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
+ *
2516
2830
  * @param {number} id - The ID of the TV show.
2517
- * @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.
2518
2833
  */
2519
2834
  screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
2520
2835
  /**
2521
2836
  * Retrieves similar TV shows for a specific TV show asynchronously.
2837
+ *
2522
2838
  * @param {number} id - The ID of the TV show.
2523
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
2524
- * @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.
2525
2843
  */
2526
2844
  similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
2527
2845
  /**
2528
2846
  * Retrieves translations for a specific TV show asynchronously.
2847
+ *
2529
2848
  * @param {number} id - The ID of the TV show.
2530
- * @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.
2531
2851
  */
2532
2852
  translations(id: number): Promise<Translations>;
2533
2853
  /**
2534
2854
  * Retrieves videos for a specific TV show asynchronously.
2855
+ *
2535
2856
  * @param {number} id - The ID of the TV show.
2536
- * @param {TvShowVideoOptions} [options] - Additional options for the request.
2537
- * @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.
2538
2861
  */
2539
2862
  videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
2540
2863
  /**
2541
2864
  * Retrieves watch providers for a specific TV show asynchronously.
2542
2865
  * Powered by JustWatch.
2866
+ *
2543
2867
  * @param {number} id - The ID of the TV show.
2544
- * @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.
2545
2870
  */
2546
2871
  watchProviders(id: number): Promise<WatchProviders>;
2547
2872
  /**
2548
2873
  * Retrieves the latest TV show asynchronously.
2549
- * @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.
2550
2877
  */
2551
2878
  latest(): Promise<Latesttv>;
2552
2879
  /**
2553
2880
  * Retrieves TV shows that are currently on the air asynchronously.
2554
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
2555
- * @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.
2556
2886
  */
2557
2887
  onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
2558
2888
  /**
2559
2889
  * Retrieves TV shows that are airing today asynchronously.
2560
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
2561
- * @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.
2562
2895
  */
2563
2896
  airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
2564
2897
  /**
2565
2898
  * Retrieves popular TV shows asynchronously.
2566
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
2567
- * @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.
2568
2904
  */
2569
2905
  popular(options?: PageOption & LanguageOption): Promise<Populartv>;
2570
2906
  /**
2571
2907
  * Retrieves top-rated TV shows asynchronously.
2572
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
2573
- * @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.
2574
2913
  */
2575
2914
  topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
2576
2915
  }
@@ -2584,52 +2923,59 @@ declare class WatchProvidersEndpoint extends BaseEndpoint {
2584
2923
  protected readonly access_token: TokenType;
2585
2924
  /**
2586
2925
  * Constructs a new WatchProvidersEndpoint instance.
2587
- * @param {string} access_token - The access token used for authentication.
2926
+ *
2927
+ * @param {TokenType} access_token - The access token used for authentication.
2588
2928
  */
2589
2929
  constructor(access_token: TokenType);
2590
2930
  /**
2591
2931
  * Retrieves a list of watch providers for movies.
2592
- * @returns {Promise<WatchProviderListResponse>} 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.
2593
2935
  */
2594
2936
  movie(): Promise<WatchProviderListResponse>;
2595
2937
  /**
2596
2938
  * Retrieves a list of watch providers for TV shows.
2597
- * @returns {Promise<WatchProviderListResponse>} 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.
2598
2942
  */
2599
2943
  tv(): Promise<WatchProviderListResponse>;
2600
2944
  /**
2601
2945
  * Retrieves a list of available regions for watch providers.
2602
- * @returns {Promise<WatchProviderListResponse>} A Promise that resolves with the list of available regions.
2946
+ *
2947
+ * @returns {Promise<WatchRegionsResponse>} A Promise that resolves with the
2948
+ * list of available regions.
2603
2949
  */
2604
- regions(): Promise<WatchProviderListResponse>;
2950
+ regions(): Promise<WatchRegionsResponse>;
2605
2951
  }
2606
2952
  //# sourceMappingURL=watchProviders.d.ts.map
2607
2953
  //#endregion
2608
2954
  //#region src/index.d.ts
2609
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;
2610
2977
  constructor(auth: TokenType);
2611
- account: AccountEndpoint;
2612
- certification: CertificationEndpoint;
2613
- changes: ChangeEndpoint;
2614
- collections: CollectionsEndpoint;
2615
- companies: CompaniesEndpoint;
2616
- configuration: ConfigurationEndpoint;
2617
- credits: CreditsEndpoint;
2618
- discover: DiscoverEndpoint;
2619
- find: FindEndpoint;
2620
- genre: GenreEndpoint;
2621
- keywords: KeywordsEndpoint;
2622
- movies: MoviesEndpoint;
2623
- networks: NetworksEndpoint;
2624
- people: PeopleEndpoint;
2625
- review: ReviewEndpoint;
2626
- search: SearchEndpoint;
2627
- trending: TrendingEndpoint;
2628
- tvEpisodes: TvEpisodesEndpoint;
2629
- tvSeasons: TvSeasonsEndpoint;
2630
- tvShows: TvShowsEndpoint;
2631
- watchProviders: WatchProvidersEndpoint;
2632
2978
  }
2633
2979
  //#endregion
2634
- 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, 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, 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 };
2635
2981
  //# sourceMappingURL=index.d.cts.map