Files
dependabot[bot]andTony 07834413f5 chore(deps-dev): bump eslint-plugin-unicorn from 64.0.0 to 65.0.0 (#22219)
* chore(deps-dev): bump eslint-plugin-unicorn from 64.0.0 to 65.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 64.0.0 to 65.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v64.0.0...v65.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-version: 65.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: no-array-from-fill

* fix: unicorn-js/no-duplicate-set-values

* fix: no-this-outside-of-class

* fix: no-unnecessary-nested-ternary

* fix: prefer-array-last-methods

* fix: prefer-queue-microtask

* fix: prefer-split-limit

* fix: no-array-from-fill

* fix: no-unused-array-method-return

* fix: prefer-single-call

* fix: prefer-includes-over-repeated-comparisons

* fix: consistent-compound-words

* fix: prefer-includes-over-repeated-comparisons

* chore: add eslint-plugin-unicorn v65 recommended preset

* fix: correct duration parsing logic in parseDuration function

* fix: update oxlint-disable

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2026-06-09 00:08:15 +08:00

87 lines
3.9 KiB
TypeScript

const baseUrl = 'https://api.x.com';
const consumerKey = '3nVuSoBZnx6U4vzUxf5w';
const consumerSecret = 'Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys';
const graphQLEndpointsPlain = [
'/graphql/u7wQyGi6oExe8_TRWGMq4Q/UserResultByScreenNameQuery',
'/graphql/oPppcargziU1uDQHAUmH-A/UserResultByIdQuery',
'/graphql/3JNH4e9dq1BifLxAa3UMWg/UserWithProfileTweetsQueryV2',
'/graphql/8IS8MaO-2EN6GZZZb8jF0g/UserWithProfileTweetsAndRepliesQueryV2',
'/graphql/PDfFf8hGeJvUCiTyWtw4wQ/MediaTimelineV2',
'/graphql/q94uRCEn65LZThakYcPT6g/TweetDetail',
'/graphql/sITyJdhRPpvpEjg4waUmTA/TweetResultByIdQuery',
'/graphql/gkjsKepM6gl_HmFWoWKfgg/SearchTimeline',
'/graphql/iTpgCtbdxrsJfyx0cFjHqg/ListByRestId',
'/graphql/-kmqNvm5Y-cVrfvBy6docg/ListBySlug',
'/graphql/P4NpVZDqUD_7MEM84L-8nw/ListMembers',
'/graphql/BbGLL1ZfMibdFNWlk7a0Pw/ListTimeline',
];
const gqlMap = Object.fromEntries(graphQLEndpointsPlain.map((endpoint) => [endpoint.split('/', 4)[3].replace(/V2$|Query$|QueryV2$/, ''), endpoint]));
const gqlFeatures = JSON.stringify({
android_graphql_skip_api_media_color_palette: false,
blue_business_profile_image_shape_enabled: false,
creator_subscriptions_subscription_count_enabled: false,
creator_subscriptions_tweet_preview_api_enabled: true,
freedom_of_speech_not_reach_fetch_enabled: false,
graphql_is_translatable_rweb_tweet_is_translatable_enabled: false,
hidden_profile_likes_enabled: false,
highlights_tweets_tab_ui_enabled: false,
interactive_text_enabled: false,
longform_notetweets_consumption_enabled: true,
longform_notetweets_inline_media_enabled: false,
longform_notetweets_richtext_consumption_enabled: true,
longform_notetweets_rich_text_read_enabled: false,
responsive_web_edit_tweet_api_enabled: false,
responsive_web_enhance_cards_enabled: false,
responsive_web_graphql_exclude_directive_enabled: true,
responsive_web_graphql_skip_user_profile_image_extensions_enabled: false,
responsive_web_graphql_timeline_navigation_enabled: false,
responsive_web_media_download_video_enabled: false,
responsive_web_text_conversations_enabled: false,
responsive_web_twitter_article_tweet_consumption_enabled: false,
responsive_web_twitter_blue_verified_badge_is_enabled: true,
rweb_lists_timeline_redesign_enabled: true,
spaces_2022_h2_clipping: true,
spaces_2022_h2_spaces_communities: true,
standardized_nudges_misinfo: false,
subscriptions_verification_info_enabled: true,
subscriptions_verification_info_reason_enabled: true,
subscriptions_verification_info_verified_since_enabled: true,
super_follow_badge_privacy_enabled: false,
super_follow_exclusive_tweet_notifications_enabled: false,
super_follow_tweet_api_enabled: false,
super_follow_user_api_enabled: false,
tweet_awards_web_tipping_enabled: false,
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: false,
tweetypie_unmention_optimization_enabled: false,
unified_cards_ad_metadata_container_dynamic_card_content_query_enabled: false,
verified_phone_label_enabled: false,
vibe_api_enabled: false,
view_counts_everywhere_api_enabled: false,
});
const timelineParams = {
include_can_media_tag: 1,
include_cards: 1,
include_entities: 1,
include_profile_interstitial_type: 0,
include_quote_count: 0,
include_reply_count: 0,
include_user_entities: 0,
include_ext_reply_count: 0,
include_ext_media_color: 0,
cards_platform: 'Web-13',
tweet_mode: 'extended',
send_error_codes: 1,
simple_quoted_tweet: 1,
};
const bearerToken = 'Bearer AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F';
const guestActivateUrl = baseUrl + '/1.1/guest/activate.json';
export { baseUrl, bearerToken, consumerKey, consumerSecret, gqlFeatures, gqlMap, guestActivateUrl, timelineParams };