scavio 0.7.0 → 0.8.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
@@ -924,7 +924,7 @@ declare class YouTubeNamespace {
924
924
  streams(options: YouTubeStreamsOptions): Promise<Record<string, unknown>>;
925
925
  }
926
926
 
927
- interface TwitterSearchOptions {
927
+ interface XSearchOptions {
928
928
  /** Search query (1-500 characters). */
929
929
  search: string;
930
930
  /** Result category (default 'Top'). */
@@ -933,12 +933,12 @@ interface TwitterSearchOptions {
933
933
  cursor?: string;
934
934
  [key: string]: unknown;
935
935
  }
936
- interface TwitterTweetOptions {
936
+ interface XTweetOptions {
937
937
  /** Tweet id. */
938
938
  tweet_id: string;
939
939
  [key: string]: unknown;
940
940
  }
941
- interface TwitterTweetCommentsOptions {
941
+ interface XTweetCommentsOptions {
942
942
  /** Tweet id. */
943
943
  tweet_id: string;
944
944
  /** 'top' (ranked) or 'latest' (chronological); default 'top'. */
@@ -947,44 +947,44 @@ interface TwitterTweetCommentsOptions {
947
947
  cursor?: string;
948
948
  [key: string]: unknown;
949
949
  }
950
- interface TwitterTweetRetweetersOptions {
950
+ interface XTweetRetweetersOptions {
951
951
  /** Tweet id. */
952
952
  tweet_id: string;
953
953
  /** Pagination cursor from a prior response. */
954
954
  cursor?: string;
955
955
  [key: string]: unknown;
956
956
  }
957
- interface TwitterUserOptions {
958
- /** A Twitter handle (without the @). */
957
+ interface XUserOptions {
958
+ /** An X handle (without the @). */
959
959
  screen_name: string;
960
960
  [key: string]: unknown;
961
961
  }
962
- interface TwitterUserFeedOptions {
963
- /** A Twitter handle (without the @). */
962
+ interface XUserFeedOptions {
963
+ /** An X handle (without the @). */
964
964
  screen_name: string;
965
965
  /** Pagination cursor from a prior response. */
966
966
  cursor?: string;
967
967
  [key: string]: unknown;
968
968
  }
969
- interface TwitterTrendingOptions {
969
+ interface XTrendingOptions {
970
970
  /** Country name (default 'UnitedStates'). */
971
971
  country?: string;
972
972
  [key: string]: unknown;
973
973
  }
974
- declare class TwitterNamespace {
974
+ declare class XNamespace {
975
975
  private client;
976
976
  constructor(client: Scavio);
977
- search(options: TwitterSearchOptions): Promise<Record<string, unknown>>;
978
- tweet(options: TwitterTweetOptions): Promise<Record<string, unknown>>;
979
- tweetComments(options: TwitterTweetCommentsOptions): Promise<Record<string, unknown>>;
980
- tweetRetweeters(options: TwitterTweetRetweetersOptions): Promise<Record<string, unknown>>;
981
- user(options: TwitterUserOptions): Promise<Record<string, unknown>>;
982
- userTweets(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
983
- userReplies(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
984
- userMedia(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
985
- userFollowers(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
986
- userFollowings(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
987
- trending(options?: TwitterTrendingOptions): Promise<Record<string, unknown>>;
977
+ search(options: XSearchOptions): Promise<Record<string, unknown>>;
978
+ tweet(options: XTweetOptions): Promise<Record<string, unknown>>;
979
+ tweetComments(options: XTweetCommentsOptions): Promise<Record<string, unknown>>;
980
+ tweetRetweeters(options: XTweetRetweetersOptions): Promise<Record<string, unknown>>;
981
+ user(options: XUserOptions): Promise<Record<string, unknown>>;
982
+ userTweets(options: XUserFeedOptions): Promise<Record<string, unknown>>;
983
+ userReplies(options: XUserFeedOptions): Promise<Record<string, unknown>>;
984
+ userMedia(options: XUserFeedOptions): Promise<Record<string, unknown>>;
985
+ userFollowers(options: XUserFeedOptions): Promise<Record<string, unknown>>;
986
+ userFollowings(options: XUserFeedOptions): Promise<Record<string, unknown>>;
987
+ trending(options?: XTrendingOptions): Promise<Record<string, unknown>>;
988
988
  }
989
989
 
990
990
  interface LinkedInPersonOptions {
@@ -1153,7 +1153,7 @@ declare class Scavio {
1153
1153
  readonly reddit: RedditNamespace;
1154
1154
  readonly tiktok: TikTokNamespace;
1155
1155
  readonly instagram: InstagramNamespace;
1156
- readonly twitter: TwitterNamespace;
1156
+ readonly x: XNamespace;
1157
1157
  readonly linkedin: LinkedInNamespace;
1158
1158
  private readonly apiKey;
1159
1159
  private readonly baseUrl;
@@ -1214,4 +1214,4 @@ declare class ScavioAPIError extends ScavioError {
1214
1214
  constructor(statusCode: number, message: string, responseBody?: Record<string, unknown>);
1215
1215
  }
1216
1216
 
1217
- export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type TwitterSearchOptions, type TwitterTrendingOptions, type TwitterTweetCommentsOptions, type TwitterTweetOptions, type TwitterTweetRetweetersOptions, type TwitterUserFeedOptions, type TwitterUserOptions, type WalmartProductOptions, type WalmartSearchOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
1217
+ export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
package/dist/index.d.ts CHANGED
@@ -924,7 +924,7 @@ declare class YouTubeNamespace {
924
924
  streams(options: YouTubeStreamsOptions): Promise<Record<string, unknown>>;
925
925
  }
926
926
 
927
- interface TwitterSearchOptions {
927
+ interface XSearchOptions {
928
928
  /** Search query (1-500 characters). */
929
929
  search: string;
930
930
  /** Result category (default 'Top'). */
@@ -933,12 +933,12 @@ interface TwitterSearchOptions {
933
933
  cursor?: string;
934
934
  [key: string]: unknown;
935
935
  }
936
- interface TwitterTweetOptions {
936
+ interface XTweetOptions {
937
937
  /** Tweet id. */
938
938
  tweet_id: string;
939
939
  [key: string]: unknown;
940
940
  }
941
- interface TwitterTweetCommentsOptions {
941
+ interface XTweetCommentsOptions {
942
942
  /** Tweet id. */
943
943
  tweet_id: string;
944
944
  /** 'top' (ranked) or 'latest' (chronological); default 'top'. */
@@ -947,44 +947,44 @@ interface TwitterTweetCommentsOptions {
947
947
  cursor?: string;
948
948
  [key: string]: unknown;
949
949
  }
950
- interface TwitterTweetRetweetersOptions {
950
+ interface XTweetRetweetersOptions {
951
951
  /** Tweet id. */
952
952
  tweet_id: string;
953
953
  /** Pagination cursor from a prior response. */
954
954
  cursor?: string;
955
955
  [key: string]: unknown;
956
956
  }
957
- interface TwitterUserOptions {
958
- /** A Twitter handle (without the @). */
957
+ interface XUserOptions {
958
+ /** An X handle (without the @). */
959
959
  screen_name: string;
960
960
  [key: string]: unknown;
961
961
  }
962
- interface TwitterUserFeedOptions {
963
- /** A Twitter handle (without the @). */
962
+ interface XUserFeedOptions {
963
+ /** An X handle (without the @). */
964
964
  screen_name: string;
965
965
  /** Pagination cursor from a prior response. */
966
966
  cursor?: string;
967
967
  [key: string]: unknown;
968
968
  }
969
- interface TwitterTrendingOptions {
969
+ interface XTrendingOptions {
970
970
  /** Country name (default 'UnitedStates'). */
971
971
  country?: string;
972
972
  [key: string]: unknown;
973
973
  }
974
- declare class TwitterNamespace {
974
+ declare class XNamespace {
975
975
  private client;
976
976
  constructor(client: Scavio);
977
- search(options: TwitterSearchOptions): Promise<Record<string, unknown>>;
978
- tweet(options: TwitterTweetOptions): Promise<Record<string, unknown>>;
979
- tweetComments(options: TwitterTweetCommentsOptions): Promise<Record<string, unknown>>;
980
- tweetRetweeters(options: TwitterTweetRetweetersOptions): Promise<Record<string, unknown>>;
981
- user(options: TwitterUserOptions): Promise<Record<string, unknown>>;
982
- userTweets(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
983
- userReplies(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
984
- userMedia(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
985
- userFollowers(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
986
- userFollowings(options: TwitterUserFeedOptions): Promise<Record<string, unknown>>;
987
- trending(options?: TwitterTrendingOptions): Promise<Record<string, unknown>>;
977
+ search(options: XSearchOptions): Promise<Record<string, unknown>>;
978
+ tweet(options: XTweetOptions): Promise<Record<string, unknown>>;
979
+ tweetComments(options: XTweetCommentsOptions): Promise<Record<string, unknown>>;
980
+ tweetRetweeters(options: XTweetRetweetersOptions): Promise<Record<string, unknown>>;
981
+ user(options: XUserOptions): Promise<Record<string, unknown>>;
982
+ userTweets(options: XUserFeedOptions): Promise<Record<string, unknown>>;
983
+ userReplies(options: XUserFeedOptions): Promise<Record<string, unknown>>;
984
+ userMedia(options: XUserFeedOptions): Promise<Record<string, unknown>>;
985
+ userFollowers(options: XUserFeedOptions): Promise<Record<string, unknown>>;
986
+ userFollowings(options: XUserFeedOptions): Promise<Record<string, unknown>>;
987
+ trending(options?: XTrendingOptions): Promise<Record<string, unknown>>;
988
988
  }
989
989
 
990
990
  interface LinkedInPersonOptions {
@@ -1153,7 +1153,7 @@ declare class Scavio {
1153
1153
  readonly reddit: RedditNamespace;
1154
1154
  readonly tiktok: TikTokNamespace;
1155
1155
  readonly instagram: InstagramNamespace;
1156
- readonly twitter: TwitterNamespace;
1156
+ readonly x: XNamespace;
1157
1157
  readonly linkedin: LinkedInNamespace;
1158
1158
  private readonly apiKey;
1159
1159
  private readonly baseUrl;
@@ -1214,4 +1214,4 @@ declare class ScavioAPIError extends ScavioError {
1214
1214
  constructor(statusCode: number, message: string, responseBody?: Record<string, unknown>);
1215
1215
  }
1216
1216
 
1217
- export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type TwitterSearchOptions, type TwitterTrendingOptions, type TwitterTweetCommentsOptions, type TwitterTweetOptions, type TwitterTweetRetweetersOptions, type TwitterUserFeedOptions, type TwitterUserOptions, type WalmartProductOptions, type WalmartSearchOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
1217
+ export { type AmazonProductOptions, type AmazonSearchOptions, BadRequestError, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, type GoogleNewsOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyRefOptions, type LinkedInJobOptions, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RedditCommentRepliesOptions, type RedditFeedSort, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioTimeoutError, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokProfileOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPostsOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type WalmartProductOptions, type WalmartSearchOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeMetadataOptions, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions };
package/dist/index.js CHANGED
@@ -565,44 +565,44 @@ var YouTubeNamespace = class {
565
565
  }
566
566
  };
567
567
 
568
- // src/namespaces/twitter.ts
569
- var TwitterNamespace = class {
568
+ // src/namespaces/x.ts
569
+ var XNamespace = class {
570
570
  constructor(client) {
571
571
  this.client = client;
572
572
  }
573
573
  client;
574
574
  async search(options) {
575
- return this.client._post("/api/v1/twitter/search", options);
575
+ return this.client._post("/api/v1/x/search", options);
576
576
  }
577
577
  async tweet(options) {
578
- return this.client._post("/api/v1/twitter/tweet", options);
578
+ return this.client._post("/api/v1/x/tweet", options);
579
579
  }
580
580
  async tweetComments(options) {
581
- return this.client._post("/api/v1/twitter/tweet/comments", options);
581
+ return this.client._post("/api/v1/x/tweet/comments", options);
582
582
  }
583
583
  async tweetRetweeters(options) {
584
- return this.client._post("/api/v1/twitter/tweet/retweeters", options);
584
+ return this.client._post("/api/v1/x/tweet/retweeters", options);
585
585
  }
586
586
  async user(options) {
587
- return this.client._post("/api/v1/twitter/user", options);
587
+ return this.client._post("/api/v1/x/user", options);
588
588
  }
589
589
  async userTweets(options) {
590
- return this.client._post("/api/v1/twitter/user/tweets", options);
590
+ return this.client._post("/api/v1/x/user/tweets", options);
591
591
  }
592
592
  async userReplies(options) {
593
- return this.client._post("/api/v1/twitter/user/replies", options);
593
+ return this.client._post("/api/v1/x/user/replies", options);
594
594
  }
595
595
  async userMedia(options) {
596
- return this.client._post("/api/v1/twitter/user/media", options);
596
+ return this.client._post("/api/v1/x/user/media", options);
597
597
  }
598
598
  async userFollowers(options) {
599
- return this.client._post("/api/v1/twitter/user/followers", options);
599
+ return this.client._post("/api/v1/x/user/followers", options);
600
600
  }
601
601
  async userFollowings(options) {
602
- return this.client._post("/api/v1/twitter/user/followings", options);
602
+ return this.client._post("/api/v1/x/user/followings", options);
603
603
  }
604
604
  async trending(options = {}) {
605
- return this.client._post("/api/v1/twitter/trending", options);
605
+ return this.client._post("/api/v1/x/trending", options);
606
606
  }
607
607
  };
608
608
 
@@ -665,7 +665,7 @@ var Scavio = class {
665
665
  reddit;
666
666
  tiktok;
667
667
  instagram;
668
- twitter;
668
+ x;
669
669
  linkedin;
670
670
  apiKey;
671
671
  baseUrl;
@@ -692,7 +692,7 @@ var Scavio = class {
692
692
  this.reddit = new RedditNamespace(this);
693
693
  this.tiktok = new TikTokNamespace(this);
694
694
  this.instagram = new InstagramNamespace(this);
695
- this.twitter = new TwitterNamespace(this);
695
+ this.x = new XNamespace(this);
696
696
  this.linkedin = new LinkedInNamespace(this);
697
697
  }
698
698
  /** @internal */