Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Convert X (Twitter) tweets, threads, and articles to Markdown with YAML front matter via reverse-engineered API.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/types.ts
1export type CookieLike = {2name?: string;3value?: string;4domain?: string;5path?: string;6url?: string;7};89export type ArticleQueryInfo = {10queryId: string;11featureSwitches: string[];12fieldToggles: string[];13html: string;14};1516export type ArticleEntityRange = {17key?: number;18offset?: number;19length?: number;20};2122export type ArticleBlock = {23type?: string;24text?: string;25entityRanges?: ArticleEntityRange[];26};2728export type ArticleEntityMapMediaItem = {29mediaId?: string;30media_id?: string;31localMediaId?: string;32};3334export type ArticleEntityMapEntry = {35key?: string;36value?: {37type?: string;38mutability?: string;39data?: {40caption?: string;41markdown?: string;42mediaItems?: ArticleEntityMapMediaItem[];43url?: string;44tweetId?: string;45};46};47};4849export type ArticleContentState = {50blocks?: ArticleBlock[];51entityMap?: Record<string, ArticleEntityMapEntry>;52};5354export type ArticleMediaInfo = {55__typename?: string;56original_img_url?: string;57preview_image?: {58original_img_url?: string;59};60variants?: Array<{61content_type?: string;62url?: string;63bit_rate?: number;64}>;65};6667export type ArticleMediaEntity = {68media_id?: string;69media_info?: ArticleMediaInfo;70};7172export type ArticleEntity = {73title?: string;74plain_text?: string;75preview_text?: string;76content_state?: ArticleContentState;77cover_media?: {78media_info?: ArticleMediaInfo;79};80media_entities?: ArticleMediaEntity[];81};82