From bebdc970f5a61f995bd3d03433adfec3f0f37045 Mon Sep 17 00:00:00 2001 From: ArthurHeitmann <37270165+ArthurHeitmann@users.noreply.github.com> Date: Sun, 25 Feb 2024 09:31:10 +0100 Subject: [PATCH] Updated schemas --- schemas/RC.ts | 20 +- schemas/RC/2006.ts | 6 +- schemas/RC/2019.ts | 16 +- schemas/RC/2021.ts | 2 +- schemas/RS.ts | 108 +- schemas/RS/2006.ts | 10 +- schemas/RS/2007.ts | 10 +- schemas/RS/2008.ts | 4 +- schemas/RS/2009.ts | 6 +- schemas/RS/2013.ts | 2 +- schemas/RS/2015.ts | 4 +- schemas/RS/2016.ts | 4 +- schemas/RS/2017.ts | 14 +- schemas/RS/2018.ts | 16 +- schemas/RS/2019.ts | 24 +- schemas/RS/2020.ts | 12 +- schemas/RS/2021.ts | 10 +- schemas/RS/2022.ts | 28 +- schemas/RS/2023.ts | 24 +- schemas/subreddits.ts | 131 ++ schemas/subreddits/subreddits_2024-01.json | 2065 +++++++++++++++++ schemas/subreddits/subreddits_2024-01.ts | 131 ++ .../subreddits_meta_only_2024-01.json | 140 ++ .../subreddits_meta_only_2024-01.ts | 13 + 24 files changed, 2640 insertions(+), 160 deletions(-) create mode 100644 schemas/subreddits.ts create mode 100644 schemas/subreddits/subreddits_2024-01.json create mode 100644 schemas/subreddits/subreddits_2024-01.ts create mode 100644 schemas/subreddits/subreddits_meta_only_2024-01.json create mode 100644 schemas/subreddits/subreddits_meta_only_2024-01.ts diff --git a/schemas/RC.ts b/schemas/RC.ts index 6b8951a..9b7944a 100644 --- a/schemas/RC.ts +++ b/schemas/RC.ts @@ -16,17 +16,17 @@ interface RedditComment { count: number, days_of_drip_extension: number|null, days_of_premium: number|null, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"PNG"|"APNG"|"JPG", icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"Lemon Cake"|"Iron Coin"|"Apt Analysis"|"Greenseer"|"Hand of the Queen"|"Crying MJ"|"Crown"|"Hodor"|"Perfect Murder"|"Most Valuable"|"Quality OC"|"Tinfoil"|null, + name: string|null, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -93,7 +93,7 @@ interface RedditComment { icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new: boolean, name: string, @@ -156,14 +156,14 @@ interface RedditComment { u?: string, }[], author_flair_template_id?: null|string, - author_flair_text: null|"PhD | Computer Science"|"BS | Physics"|"PhD | Robotics"|"Canada"|"MD | OB/GYN | GYN Oncology"|"Professor | Computer Science"|"Nürnberg"|"BS|Chemical Engineering"|"BS | Physics and Astronomy|Education"|"Professor|Computing|Machine Learning"|"BS | Zoology | Ecology and Entomology"|"PhD | Synthetic Organic Chemistry", + author_flair_text: null|string, author_flair_text_color?: null|"dark"|"light"|"", author_flair_type?: "text"|"richtext", author_fullname?: string|null, author_is_blocked?: boolean, author_patreon_flair?: boolean, author_premium?: boolean, - awarders?: ("Bioniclegenius"|"Belli91"|"shuntzu7"|"wearewildwinter"|"ucbsuperfreak"|"Dragonster82"|"NovaKevin"|"Dev_h1pp0p0t4mu5"|"ForgottenLoreInAutum")[], + awarders?: string[], banned_at_utc?: null, banned_by?: null, body: string, @@ -224,7 +224,7 @@ interface RedditComment { [key: string]: { e?: "AnimatedImage"|"Image", ext?: string, - id?: "emote|emo_pack_1|dance"|"emote|emo_pack_1|clappy"|"emote|emo_pack_1|dab"|"emote|emo_pack_1|respect"|"emote|emo_pack_1|uNfOrTuNaTeLy"|"emote|emo_pack_1|confused"|"emote|emo_pack_1|bush"|"emote|emo_pack_1|cuddle"|"emote|emo_pack_1|oof"|"emote|emo_pack_1|wow"|"emote|emo_pack_1|chug"|"emote|emo_pack_1|default"|"emote|emo_pack_1|blink"|"emote|free_emotes_pack|facepalm"|"emote|emo_pack_1|soon", + id?: string, m?: "image/gif"|"image/png"|"image/jpeg", p?: { u: string, @@ -265,13 +265,13 @@ interface RedditComment { send_replies?: boolean, steward_reports?: [], stickied?: boolean, - subreddit: "reddit.com"|"nsfw"|"programming"|"features"|"joel"|"ja"|"request"|"ru"|"de"|"tr"|"no"|"pl"|"es"|"fr"|"it", - subreddit_id: "t5_6"|"t5_vf2"|"t5_2fwo"|"t5_21n6"|"t5_3b8o"|"t5_22i6"|"t5_21nj"|"t5_247i"|"t5_22i0"|"t5_2478"|"t5_247e"|"t5_2475"|"t5_22i2"|"t5_22i1"|"t5_247c", + subreddit: string, + subreddit_id: string, subreddit_name_prefixed?: string, subreddit_type?: "public"|"restricted"|"user"|"archived"|"private"|"gold_restricted", top_awarded_type?: null, total_awards_received?: number, - treatment_tags?: ("econ:render:lottie:redstar"|"econ:render:lottie:bulb"|"econ:render:lottie:sunny2"|"econ:render:lottie:cutie"|"econ:render:glow:ff0000"|"econ:render:bubble:flame"|"econ:render:lottie:heartbeat"|"econ:render:lottie:champagne"|"econ:render:lottie:sunny"|"econ:render:lottie:halloween2020"|"econ:render:lottie:santasnoo")[], + treatment_tags?: string[], unrepliable_reason?: null|"NEAR_BLOCKER", ups?: number, user_reports?: []|null, diff --git a/schemas/RC/2006.ts b/schemas/RC/2006.ts index ca6c5a6..92d6c00 100644 --- a/schemas/RC/2006.ts +++ b/schemas/RC/2006.ts @@ -1,7 +1,7 @@ interface RedditComment_2006 { author: string, author_flair_css_class: null|"compsci"|"ca", - author_flair_text: null|"PhD | Computer Science"|"Canada", + author_flair_text: null|string, body: string, controversiality: number, created_utc: number, @@ -14,7 +14,7 @@ interface RedditComment_2006 { retrieved_on: number, score: number, stickied: boolean, - subreddit: "reddit.com"|"nsfw"|"programming"|"features"|"joel"|"ja"|"request"|"ru"|"de"|"tr"|"no"|"pl"|"es"|"fr"|"it", - subreddit_id: "t5_6"|"t5_vf2"|"t5_2fwo"|"t5_21n6"|"t5_3b8o"|"t5_22i6"|"t5_21nj"|"t5_247i"|"t5_22i0"|"t5_2478"|"t5_247e"|"t5_2475"|"t5_22i2"|"t5_22i1"|"t5_247c", + subreddit: string, + subreddit_id: string, ups: number, } diff --git a/schemas/RC/2019.ts b/schemas/RC/2019.ts index 3cd7aec..e4f3e81 100644 --- a/schemas/RC/2019.ts +++ b/schemas/RC/2019.ts @@ -7,17 +7,17 @@ interface RedditComment_2019 { count: number, days_of_drip_extension: number, days_of_premium: number, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"PNG", icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"Lemon Cake"|"Iron Coin"|"Apt Analysis"|"Greenseer"|"Hand of the Queen"|"Crying MJ"|"Crown"|"Hodor"|"Perfect Murder"|"Most Valuable"|"Quality OC"|"Tinfoil"|null, + name: string|null, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -27,7 +27,7 @@ interface RedditComment_2019 { }[], start_date?: null|number, subreddit_coin_reward?: number, - subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_m1n8r"|"t5_2tk95"|"t5_mouw"|"t5_35fmc", + subreddit_id: null|string, }[], archived?: boolean, associated_award?: null|{ @@ -44,10 +44,10 @@ interface RedditComment_2019 { icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new: boolean, - name: "Silver"|"Gold"|"Platinum"|"Musical skills!"|"Doggles"|"Artistic skills!"|"SHOW ME YOUR FRIDGE"|"Eek!"|"Gamer alert!"|"Top chef!"|"Bee Happy"|"Thirsty..."|"Space Goat"|"PANANAS"|"Golden PAN", + name: string, penny_donate?: null, penny_price?: null, resized_icons: { @@ -77,7 +77,7 @@ interface RedditComment_2019 { author_fullname: string|null, author_patreon_flair?: boolean, author_premium?: boolean, - awarders?: ("Bioniclegenius"|"Belli91"|"shuntzu7"|"wearewildwinter"|"ucbsuperfreak"|"Dragonster82"|"NovaKevin"|"Dev_h1pp0p0t4mu5"|"ForgottenLoreInAutum")[], + awarders?: string[], body: string, can_gild: boolean, can_mod_post: boolean, @@ -102,7 +102,7 @@ interface RedditComment_2019 { [key: string]: { e: "AnimatedImage", ext?: string, - id: "emote|emo_pack_1|dance"|"emote|emo_pack_1|clappy"|"emote|emo_pack_1|dab"|"emote|emo_pack_1|respect"|"emote|emo_pack_1|uNfOrTuNaTeLy"|"emote|emo_pack_1|confused"|"emote|emo_pack_1|bush"|"emote|emo_pack_1|cuddle"|"emote|emo_pack_1|oof"|"emote|emo_pack_1|wow"|"emote|emo_pack_1|chug"|"emote|emo_pack_1|default"|"emote|emo_pack_1|blink"|"emote|free_emotes_pack|facepalm"|"emote|emo_pack_1|soon", + id: string, m: "image/gif", p?: { u: string, diff --git a/schemas/RC/2021.ts b/schemas/RC/2021.ts index 56072b0..b71c195 100644 --- a/schemas/RC/2021.ts +++ b/schemas/RC/2021.ts @@ -217,6 +217,6 @@ interface RedditComment_2021 { subreddit_type: "public"|"restricted"|"user"|"archived"|"private", top_awarded_type: null, total_awards_received: number, - treatment_tags: ("econ:render:lottie:redstar"|"econ:render:lottie:bulb"|"econ:render:lottie:sunny2"|"econ:render:lottie:cutie"|"econ:render:lottie:champagne")[], + treatment_tags: string[], unrepliable_reason?: null, } diff --git a/schemas/RS.ts b/schemas/RS.ts index b23f785..f662997 100644 --- a/schemas/RS.ts +++ b/schemas/RS.ts @@ -20,7 +20,7 @@ interface RedditPost { count: number, days_of_drip_extension: null|number, days_of_premium: null|number, - description: "A glowing commendation for all to see"|"Shows the Silver Award... and that's it."|"Everything is better with a good hug", + description: string, end_date: null, giver_coin_reward: null, icon_format: "PNG"|"APNG"|null, @@ -63,11 +63,11 @@ interface RedditPost { author_flair_richtext?: { a?: ":Bowser:"|":invincible3:"|":Chiefs:"|":Broncos:"|":robot2:"|":burgermarttrash:"|":dudeisawit:"|":snoo_dealwithit:", e: "text"|"emoji", - t?: "r/Movies contributor"|"Good Burger > The Godfather"|" Chiefs"|" Broncos"|"Citizen Detective"|"Heliotrope"|"Platinum"|"Diamond"|"Soldier Boy"|" TV Fan"|" Robot"|" Simon Racioppa - Showrunner"|" Burger Mart Trash Bag"|" \"Dude, I saw it on Reddit\" ", + t?: string, u?: string, }[], author_flair_template_id: null|string, - author_flair_text: null|"r/Movies contributor"|"Good Burger > The Godfather"|":Chiefs: Chiefs"|":Broncos: Broncos"|"Citizen Detective"|"Heliotrope"|"Platinum"|":Bowser:"|"Diamond"|"Soldier Boy"|"Agents of S.H.I.E.L.D."|"The League"|"Orphan Black"|":invincible3: TV Fan"|":robot2: Robot", + author_flair_text: null|string, author_flair_text_color: null|"dark"|"light", author_flair_type?: "text"|"richtext", author_fullname?: string, @@ -145,7 +145,7 @@ interface RedditPost { media: null|{ oembed?: { author_name: "Paramount Pictures"|"Lionsgate Movies"|"The Tonight Show Starring Jimmy Fallon"|"Illumination"|"STARZ", - author_url: "https://www.youtube.com/@LionsgateMovies"|"https://www.youtube.com/@fallontonight"|"https://www.youtube.com/@illumination"|"https://www.youtube.com/@Starz", + author_url: string, height: number, html: string, provider_name: "YouTube", @@ -258,7 +258,7 @@ interface RedditPost { secure_media: null|{ oembed?: { author_name: "Paramount Pictures"|"Lionsgate Movies"|"The Tonight Show Starring Jimmy Fallon"|"Illumination"|"STARZ", - author_url: "https://www.youtube.com/@LionsgateMovies"|"https://www.youtube.com/@fallontonight"|"https://www.youtube.com/@illumination"|"https://www.youtube.com/@Starz", + author_url: string, height: number, html: string, provider_name: "YouTube", @@ -300,7 +300,7 @@ interface RedditPost { accept_followers: boolean, allow_chat_post_creation?: boolean, allowed_media_in_comments: ("animated"|"giphy"|"static"|"expression")[], - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string|null, created?: number, @@ -311,7 +311,7 @@ interface RedditPost { display_name: string, display_name_prefixed: string, free_form_reports: boolean, - header_img: ""|null, + header_img: string|null, header_size: null|number[], icon_color: "", icon_img: string, @@ -380,7 +380,7 @@ interface RedditPost { count: number, days_of_drip_extension: number|null, days_of_premium: number|null, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"PNG"|"APNG"|"JPG", @@ -390,7 +390,7 @@ interface RedditPost { id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"sadasdasdasd"|"11"|"6"|"4"|"16"|" communauté", + name: string, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -409,7 +409,7 @@ interface RedditPost { static_icon_width?: number, sticky_duration_seconds?: null, subreddit_coin_reward?: number, - subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_m1n8r"|"t5_2tk95"|"t5_mouw"|"t5_2wb7y"|"t5_2qmg3"|"t5_2tx47"|"t5_43zwn1", + subreddit_id: null|string, tiers_by_required_awardings?: null|{ [key: string]: { awardings_required: number, @@ -447,16 +447,16 @@ interface RedditPost { author?: string, author_cakeday?: boolean, author_created_utc?: number|null, - author_flair_background_color?: null|""|"#edeff1", + author_flair_background_color?: null|string, author_flair_css_class: null|string, author_flair_richtext?: { - a?: ":bastok:"|":illuminati:"|":Waterloo-sm:", + a?: string, e: "text"|"emoji", t?: string, u?: string, }[], author_flair_template_id?: null|string, - author_flair_text: null|"BS | Zoology | Ecology and Entomology"|"PhD | Robotics"|"MS | Computer Science"|"PhD | Synthetic Organic Chemistry"|"PhD | Computer Science"|"BS | Computer Science"|"North Carolina"|"New York"|"Brian Howard | Writer"|"California"|"Alabama"|"Arkansas"|"Colorado"|"BS | Physics and Astronomy|Education"|"Foreign", + author_flair_text: null|string, author_flair_text_color?: null|"dark"|"light"|"", author_flair_type?: "text"|"richtext", author_fullname?: string|null, @@ -476,11 +476,11 @@ interface RedditPost { category?: null|string, clicked?: boolean, collections?: { - author_id: "t2_xrnc7wf"|"t2_240rydgk"|"t2_ryprsip"|"t2_9eisf"|"t2_9qf0f"|"t2_tkm12"|"t2_17aq3ltt"|"t2_nimfq"|"t2_10q8f9"|"t2_zvwma"|"t2_5uijg"|"t2_7nuof"|"t2_d5h4t"|"t2_cf7aq"|"t2_5g3tq", - author_name: "KpKrunal"|"lss_ev1"|"RLMatchThreads"|"Chtorrr"|"NicholasCajun"|"RSurvivorMods"|"kp-krunal"|"Vino_7s"|"Rocked03"|"ShuichiRL"|"listn2moremetal"|"ZoomBoingDing"|"optimalg"|"dmziggy"|"Jankinator", - collection_id: "45655ba2-0baa-468a-b8f9-a443381c15b4"|"ae841be6-c163-4dc1-8656-a23b8973dd35"|"2f23ec07-cbca-4eff-ab4b-00e0e4bfe6c5"|"ae9cdb06-24e7-40a5-a09e-6fa7b48e3bf0"|"e58b0a7f-8b7f-4ba4-94c8-961e8c752fea"|"00215223-88d0-4326-b19b-9cb9e15cc25a"|"ab52d33f-497d-4bfb-bc47-ec74e19f01dd"|"c3ac1ba3-cc96-485c-a63c-b2eafcd58ef7"|"c77c2d24-e672-4336-9e65-e2abf979d952"|"1013cf77-cf0a-4b8a-963a-635bb03f1276"|"cda86efb-d27f-4024-bdc8-f48acd425701"|"84058501-22f8-4de5-9afc-3b9306eaa656"|"e7542cc6-f3ea-49cd-b90f-a4f8b46ed07a"|"5e084a52-b40e-4aa1-b717-c5d17f1afa5f"|"51e73dec-6089-4a43-aa86-58d58dd2902c", + author_id: string, + author_name: string, + collection_id: string, created_at_utc: number, - description?: ""|null, + description?: string|null, display_layout?: null|"GALLERY"|"TIMELINE", last_update_utc: number, link_ids: string[], @@ -527,17 +527,17 @@ interface RedditPost { count: number, days_of_drip_extension: number|null, days_of_premium: number|null, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"JPG"|"PNG"|"APNG", icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"Crown"|"Greenseer"|"Lemon Cake"|"Hand of the Queen"|"Iron Coin"|"A Perfect Murder"|"Crying MJ"|"Tinfoil"|"Perfect Murder"|"Most Valuable"|"Historic Highlight"|"Quality OC", + name: string, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -556,7 +556,7 @@ interface RedditPost { static_icon_width?: number, sticky_duration_seconds?: null, subreddit_coin_reward?: number, - subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_mouw"|"t5_2tk95", + subreddit_id: null|string, tiers_by_required_awardings?: null|{ [key: string]: { awardings_required: number, @@ -591,7 +591,7 @@ interface RedditPost { archived: boolean, author: string, author_cakeday?: boolean, - author_flair_background_color?: null|"", + author_flair_background_color?: null|string, author_flair_css_class: null|string, author_flair_richtext?: { a?: string, @@ -621,20 +621,20 @@ interface RedditPost { author_name: string, collection_id: string, created_at_utc: number, - description?: ""|null, + description?: string|null, display_layout?: null|"GALLERY"|"TIMELINE", last_update_utc: number, link_ids: string[], permalink: string, sr_detail?: { - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string, created: number, created_utc: number, display_name: string, display_name_prefixed: string, - icon_img: "", + icon_img: string, icon_size: null|number[], key_color: ""|"#46d160"|"#545452"|"#222222"|"#7e53c1"|"#ea0027"|"#ddbd37"|"#0079d3"|"#ff8717", mod_permissions: [], @@ -693,7 +693,7 @@ interface RedditPost { is_self: boolean, is_video: boolean, likes: null|boolean, - link_flair_background_color?: ""|"#dadada"|"#ffd635"|"#00a6a5"|"#ff66ac"|"#ffb000"|null, + link_flair_background_color?: string|null, link_flair_css_class: null|string, link_flair_richtext?: { a?: string, @@ -729,13 +729,13 @@ interface RedditPost { html?: string, mean_alpha?: number, provider_name?: string, - provider_url?: "https://www.youtube.com/"|"http://gfycat.com"|"http://imgur.com"|"https://www.streamable.com"|"https://www.instagram.com"|"http://i.imgur.com"|"https://www.kickstarter.com/"|"https://oddshot.tv"|"https://vimeo.com/"|"vid.me"|"https://imgur.com", + provider_url?: string, thumbnail_height?: number|null, thumbnail_url?: string, thumbnail_width?: number|null, title?: string, type?: "video"|"rich", - url?: "http://i.imgur.com/n10d5BFh.jpg"|"https://vid.me/lqs7D", + url?: string, version?: "1.0", width?: number, }, @@ -749,11 +749,11 @@ interface RedditPost { hls_url?: string, is_gif?: boolean, scrubber_media_url?: string, - transcoding_message?: "No tasks are completed"|"[Generic Error] No tasks are completed", + transcoding_message?: string, transcoding_status: "completed"|"error", width?: number|null, }, - type?: "youtube.com"|"gfycat.com"|"imgur.com"|"streamable.com"|"instagram.com"|"liveupdate"|"i.imgur.com"|"kickstarter.com"|"oddshot.tv"|"vimeo.com"|"vid.me", + type?: string, width?: number, }, media_embed: { @@ -933,13 +933,13 @@ interface RedditPost { html?: string, mean_alpha?: number, provider_name?: string, - provider_url?: "https://www.youtube.com/"|"http://gfycat.com"|"http://imgur.com"|"https://www.streamable.com"|"https://www.instagram.com"|"https://www.kickstarter.com/"|"https://oddshot.tv"|"https://vimeo.com/"|"vid.me"|"https://imgur.com", + provider_url?: string, thumbnail_height?: number|null, thumbnail_url?: string, thumbnail_width?: number|null, title?: string, type?: "video"|"rich", - url?: "http://i.imgur.com/n10d5BFh.jpg"|"https://vid.me/lqs7D", + url?: string, version?: "1.0", width?: number, }, @@ -953,11 +953,11 @@ interface RedditPost { hls_url?: string, is_gif?: boolean, scrubber_media_url?: string, - transcoding_message?: "No tasks are completed"|"[Generic Error] No tasks are completed", + transcoding_message?: string, transcoding_status: "completed"|"error", width?: number|null, }, - type?: "youtube.com"|"gfycat.com"|"imgur.com"|"streamable.com"|"instagram.com"|"liveupdate"|"kickstarter.com"|"oddshot.tv"|"vimeo.com"|"vid.me", + type?: string, width?: number, }, secure_media_embed: { @@ -1034,7 +1034,7 @@ interface RedditPost { discussion_type?: null|"CHAT", distinguished: null|"moderator"|"admin"|"special", domain: string|null, - domain_override?: null|"youtube.com"|"http://www.civilization5.com/"|"reviews.cnet.com"|"fordvehicles.com"|"thefordstory.com"|"usatoday.com"|"esquire.com"|"autoblog.com"|"appdeveloper.intel.com"|"freep.com"|"techland.com"|"facebook.com"|"secure.syncmyride.com"|"ibm.com"|"parentsconnect.com", + domain_override?: null|string, downs?: number, edited: boolean|number, embed_type?: null|"scrape"|"iframe", @@ -1053,12 +1053,12 @@ interface RedditPost { caption?: string, display_url?: string, id: number, - media_id: "zh1b5vm1nx751"|"e2sc7vm1nx751", + media_id: string, outbound_url?: string, product?: { - description: "test description", + description: string, price?: string, - title: "Kevin test product #2"|"Kevin test product #6"|"Kevin test product #4", + title: string, }, }[], }|null, @@ -1088,10 +1088,10 @@ interface RedditPost { is_survey_ad?: boolean, is_video?: boolean, likes?: null|boolean, - link_flair_background_color?: ""|"#e9987b"|null, + link_flair_background_color?: string|null, link_flair_css_class: null|string, link_flair_richtext?: { - a?: ":snoo_facepalm:"|":snoo_hearteyes:"|":thumbsup:"|":snoo_dealwithit:"|":snoo_shrug:"|":partyparrot:"|":snoo_simple_smile:", + a?: string, e: "text"|"emoji", t?: string, u?: string, @@ -1107,7 +1107,7 @@ interface RedditPost { recording_fallback_url?: string, recording_hls_url?: "", recording_status?: number, - room_id: "992d5196-249f-4774-8202-a8ea7f544634"|"9c24ffc6-dd4e-4c94-989a-2c75257f8881"|"c8022880-ced2-4347-a163-98e9338025de", + room_id: string, room_status?: number, }, locked?: boolean, @@ -1117,7 +1117,7 @@ interface RedditPost { height?: number|null, oembed?: { author_name?: string, - author_url?: "http://www.youtube.com/user/Zoltarkill"|"http://www.youtube.com/user/lincolnshep"|"https://www.youtube.com/user/chrisofduke"|"https://www.youtube.com/user/sevim1987"|"http://www.youtube.com/user/Ikoniak"|"https://www.youtube.com/user/SirChaos"|"https://www.youtube.com/user/Google"|"https://www.youtube.com/user/vortexblade"|"https://www.youtube.com/user/mafoisabo"|"https://www.youtube.com/user/kayaness1"|"https://www.youtube.com/user/yourweek"|"https://www.youtube.com/user/discofrisko"|"https://www.youtube.com/user/boburnham", + author_url?: string, cache_age?: number, description?: string, dominant_colors?: { @@ -1144,7 +1144,7 @@ interface RedditPost { yt$name: "default"|"hqdefault"|"start"|"middle"|"end", }[], thumbnail_width?: number|null, - title?: "Pac Man: The Movie"|"The Wilhelm Scream Compilation"|"kaybolan yillar klip(sevim1987)"|"How to: Magic Smoking Fingers"|"baghdad"|"Police Officer steals Marijuana."|"Tech Talk: Linus Torvalds on git"|"Hardware Wars 1 of 2"|"Penn and Teller - The FCC"|"Kiai Master vs MMA"|"Planning to Fail"|"Get Your Tax Rebate: General Taxpayers"|"spanking the cat 2"|"Hand Han Solo - Boob Grope", + title?: string, type?: "video"|"rich", url?: string, version?: "1.0", @@ -1206,7 +1206,7 @@ interface RedditPost { y: number, }[], s?: { - gif?: "https://i.redd.it/1jb76jalx0121.gif", + gif?: string, mp4?: string, u?: string, x: number, @@ -1218,7 +1218,7 @@ interface RedditPost { }, }, media_only?: boolean, - mobile_ad_url?: "", + mobile_ad_url?: string, mod_note?: null, mod_reason_by?: null, mod_reason_title?: null, @@ -1366,7 +1366,7 @@ interface RedditPost { height?: number|null, oembed?: { author_name?: string, - author_url?: "http://www.youtube.com/user/Zoltarkill"|"http://www.youtube.com/user/lincolnshep"|"https://www.youtube.com/user/chrisofduke"|"https://www.youtube.com/user/sevim1987"|"http://www.youtube.com/user/Ikoniak"|"https://www.youtube.com/user/SirChaos"|"https://www.youtube.com/user/Google"|"https://www.youtube.com/user/vortexblade"|"https://www.youtube.com/user/mafoisabo"|"https://www.youtube.com/user/kayaness1"|"https://www.youtube.com/user/yourweek"|"https://www.youtube.com/user/discofrisko"|"https://www.youtube.com/user/boburnham", + author_url?: string, cache_age?: number, description?: string, height?: number|null, @@ -1379,7 +1379,7 @@ interface RedditPost { thumbnail_height?: number|null, thumbnail_url?: string, thumbnail_width?: number|null, - title?: "Pac Man: The Movie"|"The Wilhelm Scream Compilation"|"kaybolan yillar klip(sevim1987)"|"How to: Magic Smoking Fingers"|"baghdad"|"Police Officer steals Marijuana."|"Tech Talk: Linus Torvalds on git"|"Hardware Wars 1 of 2"|"Penn and Teller - The FCC"|"Kiai Master vs MMA"|"Planning to Fail"|"Get Your Tax Rebate: General Taxpayers"|"spanking the cat 2"|"Hand Han Solo - Boob Grope", + title?: string, type?: "video"|"rich", url?: string, version?: "1.0", @@ -1409,7 +1409,7 @@ interface RedditPost { scrolling?: boolean, width?: number, }, - selftext: ""|"[deleted]"|"[removed]", + selftext: string, selftext_html?: null|string, send_replies?: boolean, show_media?: boolean, @@ -1418,16 +1418,16 @@ interface RedditPost { spoiler?: boolean|null, steward_reports?: [], stickied?: boolean, - subcaption?: "$5.00"|"$25.00"|"$309.99"|"$399.99"|"$0.50"|null, - subreddit?: "reddit.com"|"nsfw", - subreddit_id?: "t5_6"|"t5_vf2"|null, - subreddit_name_prefixed?: "r/reddit.com"|"r/nsfw", + subcaption?: string|null, + subreddit?: string, + subreddit_id?: string|null, + subreddit_name_prefixed?: string, subreddit_subscribers?: number, subreddit_type?: "public"|"restricted"|"archived"|"user"|"gold_restricted"|"private"|"gold_only"|"employees_only", suggested_sort?: null|"new"|"confidence"|"top"|"old"|"qa"|"controversial"|"random"|"live", - third_party_trackers?: ("https://www.google.com"|"https://www.reddit.com"|"wikipedia.com"|"www.wikipedia.com"|"google.com")[]|null, + third_party_trackers?: string[]|null, third_party_tracking?: null|string, - third_party_tracking_2?: null|"https://www.yahoo.com/"|"https://ebay.com"|"http://zeantsoi.com"|"https://google.com"|"https://example.com/i.gif?v=2"|"http://dhunten.com", + third_party_tracking_2?: null|string, thumbnail: string|null, thumbnail_height?: null|number, thumbnail_width?: null|number, diff --git a/schemas/RS/2006.ts b/schemas/RS/2006.ts index 00fed2a..2c0ebb9 100644 --- a/schemas/RS/2006.ts +++ b/schemas/RS/2006.ts @@ -46,7 +46,7 @@ interface RedditPost_2006 { thumbnail_height: number, thumbnail_url: string, thumbnail_width: number, - title?: "Pac Man: The Movie", + title?: string, type: "video", url: string, version: "1.0", @@ -126,7 +126,7 @@ interface RedditPost_2006 { thumbnail_height: number, thumbnail_url: string, thumbnail_width: number, - title?: "Pac Man: The Movie", + title?: string, type: "video", url: string, version: "1.0", @@ -146,9 +146,9 @@ interface RedditPost_2006 { spam?: boolean, spoiler: boolean, stickied: boolean, - subreddit: "reddit.com"|"nsfw", - subreddit_id: "t5_6"|"t5_vf2", - subreddit_name_prefixed: "r/reddit.com"|"r/nsfw", + subreddit: string, + subreddit_id: string, + subreddit_name_prefixed: string, subreddit_type: "archived"|"public"|"restricted", suggested_sort: null|"new"|"confidence", thumbnail: string, diff --git a/schemas/RS/2007.ts b/schemas/RS/2007.ts index 8cc8038..4130f9d 100644 --- a/schemas/RS/2007.ts +++ b/schemas/RS/2007.ts @@ -9,7 +9,7 @@ interface RedditPost_2007 { e: "text", t: string, }[], - author_flair_text: null|"BS | Zoology | Ecology and Entomology"|"PhD | Robotics"|"PhD | Synthetic Organic Chemistry"|"MS | Computer Science"|"BS | Computer Science"|"North Carolina"|"New York"|"Brian Howard | Writer"|"California"|"Alabama"|"Arkansas"|"Colorado"|"BS | Physics and Astronomy|Education"|"Foreign", + author_flair_text: null|string, author_flair_text_color: null|"dark", author_flair_type?: "text"|"richtext", brand_safe: boolean, @@ -41,7 +41,7 @@ interface RedditPost_2007 { media: null|{ oembed: { author_name?: "chrisofduke"|"sevim1987"|"Josh McAdams"|"Chase Nunes"|"Google"|"HardwareWars"|"CanadiansNanaimo"|"Sidewinder77"|"J"|"chatni02"|"MadGangster"|"dayjoborchestra", - author_url?: "https://www.youtube.com/user/chrisofduke"|"https://www.youtube.com/user/sevim1987"|"http://www.youtube.com/user/Ikoniak"|"https://www.youtube.com/user/SirChaos"|"https://www.youtube.com/user/Google"|"https://www.youtube.com/user/vortexblade", + author_url?: string, description?: string, height: number, html: string, @@ -50,7 +50,7 @@ interface RedditPost_2007 { thumbnail_height: number, thumbnail_url: string, thumbnail_width: number, - title?: "The Wilhelm Scream Compilation"|"kaybolan yillar klip(sevim1987)"|"How to: Magic Smoking Fingers"|"baghdad"|"Police Officer steals Marijuana."|"Tech Talk: Linus Torvalds on git"|"Hardware Wars 1 of 2"|"Penn and Teller - The FCC"|"Kiai Master vs MMA", + title?: string, type: "video"|"rich", url?: string, version: "1.0", @@ -145,7 +145,7 @@ interface RedditPost_2007 { secure_media: null|{ oembed: { author_name?: "chrisofduke"|"sevim1987"|"Josh McAdams"|"Chase Nunes"|"Google"|"HardwareWars"|"CanadiansNanaimo"|"Sidewinder77"|"J"|"chatni02"|"MadGangster"|"dayjoborchestra", - author_url?: "https://www.youtube.com/user/chrisofduke"|"https://www.youtube.com/user/sevim1987"|"http://www.youtube.com/user/Ikoniak"|"https://www.youtube.com/user/SirChaos"|"https://www.youtube.com/user/Google"|"https://www.youtube.com/user/vortexblade", + author_url?: string, description?: string, height: number, html: string, @@ -154,7 +154,7 @@ interface RedditPost_2007 { thumbnail_height: number, thumbnail_url: string, thumbnail_width: number, - title?: "The Wilhelm Scream Compilation"|"kaybolan yillar klip(sevim1987)"|"How to: Magic Smoking Fingers"|"baghdad"|"Police Officer steals Marijuana."|"Tech Talk: Linus Torvalds on git"|"Hardware Wars 1 of 2"|"Penn and Teller - The FCC"|"Kiai Master vs MMA", + title?: string, type: "video"|"rich", url?: string, version: "1.0", diff --git a/schemas/RS/2008.ts b/schemas/RS/2008.ts index b053b14..d3e0d51 100644 --- a/schemas/RS/2008.ts +++ b/schemas/RS/2008.ts @@ -56,7 +56,7 @@ interface RedditPost_2008 { author_name?: string, author_url?: string, cache_age?: number, - description?: "found this via some links on wikipedia", + description?: string, height: number, html: string, provider_name: "YouTube"|"Google Maps"|"Trailer Addict"|"SlideShare"|"Vimeo"|"Scribd"|"Behance", @@ -173,7 +173,7 @@ interface RedditPost_2008 { author_name?: string, author_url?: string, cache_age?: number, - description?: "found this via some links on wikipedia", + description?: string, height: number, html: string, provider_name: "YouTube"|"Google Maps"|"Trailer Addict"|"SlideShare"|"Vimeo"|"Scribd"|"Behance", diff --git a/schemas/RS/2009.ts b/schemas/RS/2009.ts index b739052..e23edc5 100644 --- a/schemas/RS/2009.ts +++ b/schemas/RS/2009.ts @@ -16,7 +16,7 @@ interface RedditPost_2009 { author_flair_text: null|string, author_flair_text_color: null|"dark", author_flair_type?: "text"|"richtext", - author_id?: "t2_1wh0"|"t2_1ed7b"|"t2_3gycq"|"t2_ormx"|"t2_1s9v"|"t2_1w72"|null, + author_id?: string|null, brand_safe: boolean, can_gild: boolean, contest_mode: boolean, @@ -87,7 +87,7 @@ interface RedditPost_2009 { outbound_link?: { created?: number|null, expiration?: number|null, - url?: "http://scifi.reddit.com", + url?: string, }, over_18: boolean, parent_whitelist_status: "all_ads"|"promo_specified"|"promo_adult_nsfw"|"promo_adult"|"no_ads"|"promo_all"|"house_only"|null, @@ -207,7 +207,7 @@ interface RedditPost_2009 { scrolling?: boolean, width?: number, }, - selftext: ""|"[deleted]"|"[removed]", + selftext: string, send_replies: boolean, spam?: boolean, spoiler: boolean, diff --git a/schemas/RS/2013.ts b/schemas/RS/2013.ts index 3484a1c..a2b4fac 100644 --- a/schemas/RS/2013.ts +++ b/schemas/RS/2013.ts @@ -76,7 +76,7 @@ interface RedditPost_2013 { version: "1.0", width: number, }, - type: "youtube.com"|"youtu.be"|"soundcloud.com"|"vimeo.com"|"m.youtube.com", + type: string, }, secure_media_embed: { content?: string, diff --git a/schemas/RS/2015.ts b/schemas/RS/2015.ts index 9bf47f5..9892e04 100644 --- a/schemas/RS/2015.ts +++ b/schemas/RS/2015.ts @@ -56,7 +56,7 @@ interface RedditPost_2015 { scrolling?: boolean, width?: number, }, - mobile_ad_url?: "", + mobile_ad_url?: string, name: string, num_comments: number, over_18: boolean, @@ -96,7 +96,7 @@ interface RedditPost_2015 { height: number, html: string, mean_alpha?: number, - provider_name: "YouTube"|"SoundCloud"|"Vimeo"|"SlideShare"|"Wistia, Inc."|"Imgur"|"Slideshare"|"Google Maps"|"Streamable"|"iframe embed"|"Vine"|"Soundcloud"|"Facebook"|"gfycat", + provider_name: string, provider_url: string, thumbnail_height?: number, thumbnail_url?: string, diff --git a/schemas/RS/2016.ts b/schemas/RS/2016.ts index f037dba..2049162 100644 --- a/schemas/RS/2016.ts +++ b/schemas/RS/2016.ts @@ -171,8 +171,8 @@ interface RedditPost_2016 { stickied: boolean, subreddit?: string, subreddit_id?: string, - third_party_tracking?: null|"http://example.com/1x1.gif"|"https://example.com/i.gif"|"https://example.com", - third_party_tracking_2?: null|"https://example.com/i.gif?v=2"|"http://dhunten.com", + third_party_tracking?: null|string, + third_party_tracking_2?: null|string, thumbnail: string|null, title: string, ups: number, diff --git a/schemas/RS/2017.ts b/schemas/RS/2017.ts index 3d2e882..cd2e67d 100644 --- a/schemas/RS/2017.ts +++ b/schemas/RS/2017.ts @@ -59,13 +59,13 @@ interface RedditPost_2017 { html: string, mean_alpha?: number, provider_name: string, - provider_url: "https://www.youtube.com/"|"http://gfycat.com"|"http://imgur.com"|"https://www.streamable.com"|"https://www.instagram.com"|"http://i.imgur.com"|"https://www.kickstarter.com/"|"https://oddshot.tv"|"https://vimeo.com/"|"vid.me"|"https://imgur.com", + provider_url: string, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title?: string, type: "video"|"rich", - url?: "http://i.imgur.com/n10d5BFh.jpg"|"https://vid.me/lqs7D", + url?: string, version: "1.0", width: number, }, @@ -80,7 +80,7 @@ interface RedditPost_2017 { transcoding_status: "completed", width: number, }, - type?: "youtube.com"|"gfycat.com"|"imgur.com"|"streamable.com"|"instagram.com"|"liveupdate"|"i.imgur.com"|"kickstarter.com"|"oddshot.tv"|"vimeo.com"|"vid.me", + type?: string, }, media_embed: { content?: string, @@ -183,17 +183,17 @@ interface RedditPost_2017 { html: string, mean_alpha?: number, provider_name: string, - provider_url: "https://www.youtube.com/"|"http://gfycat.com"|"http://imgur.com"|"https://www.streamable.com"|"https://www.instagram.com"|"https://www.kickstarter.com/"|"https://oddshot.tv"|"https://vimeo.com/"|"vid.me"|"https://imgur.com", + provider_url: string, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title?: string, type: "video"|"rich", - url?: "http://i.imgur.com/n10d5BFh.jpg"|"https://vid.me/lqs7D", + url?: string, version: "1.0", width: number, }, - type: "youtube.com"|"gfycat.com"|"imgur.com"|"streamable.com"|"instagram.com"|"liveupdate"|"kickstarter.com"|"oddshot.tv"|"vimeo.com"|"vid.me", + type: string, }, secure_media_embed: { content?: string, @@ -421,7 +421,7 @@ interface RedditPost_2017 { subreddit_id: string|null, subreddit_type?: "public"|"restricted"|"user"|"gold_restricted", suggested_sort: null|"confidence"|"new"|"top"|"qa"|"old"|"controversial"|"random"|"live", - third_party_trackers?: null|("https://www.google.com"|"https://www.reddit.com"|"wikipedia.com"|"www.wikipedia.com"|"google.com")[], + third_party_trackers?: null|string[], third_party_tracking?: null|string, third_party_tracking_2?: null|string, thumbnail: string|null, diff --git a/schemas/RS/2018.ts b/schemas/RS/2018.ts index 48be26a..dfa9554 100644 --- a/schemas/RS/2018.ts +++ b/schemas/RS/2018.ts @@ -6,7 +6,7 @@ interface RedditPost_2018 { author: string, author_cakeday?: boolean, author_created_utc?: number|null, - author_flair_background_color?: null|"", + author_flair_background_color?: null|string, author_flair_css_class: null|string, author_flair_richtext?: { a?: string, @@ -29,9 +29,9 @@ interface RedditPost_2018 { category?: null|string, clicked?: boolean, collections?: { - author_id: "t2_xrnc7wf"|"t2_240rydgk"|"t2_ryprsip"|"t2_9eisf"|"t2_9qf0f"|"t2_tkm12"|"t2_17aq3ltt"|"t2_nimfq"|"t2_10q8f9"|"t2_zvwma"|"t2_5uijg"|"t2_7nuof"|"t2_d5h4t"|"t2_cf7aq"|"t2_5g3tq", - author_name: "KpKrunal"|"lss_ev1"|"RLMatchThreads"|"Chtorrr"|"NicholasCajun"|"RSurvivorMods"|"kp-krunal"|"Vino_7s"|"Rocked03"|"ShuichiRL"|"listn2moremetal"|"ZoomBoingDing"|"optimalg"|"dmziggy"|"Jankinator", - collection_id: "45655ba2-0baa-468a-b8f9-a443381c15b4"|"ae841be6-c163-4dc1-8656-a23b8973dd35"|"2f23ec07-cbca-4eff-ab4b-00e0e4bfe6c5"|"ae9cdb06-24e7-40a5-a09e-6fa7b48e3bf0"|"e58b0a7f-8b7f-4ba4-94c8-961e8c752fea"|"00215223-88d0-4326-b19b-9cb9e15cc25a"|"ab52d33f-497d-4bfb-bc47-ec74e19f01dd"|"c3ac1ba3-cc96-485c-a63c-b2eafcd58ef7"|"c77c2d24-e672-4336-9e65-e2abf979d952"|"1013cf77-cf0a-4b8a-963a-635bb03f1276"|"cda86efb-d27f-4024-bdc8-f48acd425701"|"84058501-22f8-4de5-9afc-3b9306eaa656"|"e7542cc6-f3ea-49cd-b90f-a4f8b46ed07a"|"5e084a52-b40e-4aa1-b717-c5d17f1afa5f"|"51e73dec-6089-4a43-aa86-58d58dd2902c", + author_id: string, + author_name: string, + collection_id: string, created_at_utc: number, description?: null|"", display_layout?: null, @@ -52,7 +52,7 @@ interface RedditPost_2018 { archived: boolean, author: string, author_cakeday?: boolean, - author_flair_background_color?: null|"", + author_flair_background_color?: null|string, author_flair_css_class: null|string, author_flair_richtext?: { a?: string, @@ -114,7 +114,7 @@ interface RedditPost_2018 { is_self: boolean, is_video: boolean, likes: null, - link_flair_background_color?: ""|"#dadada"|"#ffd635"|"#00a6a5"|"#ff66ac"|"#ffb000", + link_flair_background_color?: string, link_flair_css_class: null|string, link_flair_richtext?: { a?: string, @@ -393,7 +393,7 @@ interface RedditPost_2018 { link_flair_background_color?: string, link_flair_css_class: null|string, link_flair_richtext?: { - a?: ":snoo_facepalm:"|":snoo_hearteyes:"|":thumbsup:"|":snoo_dealwithit:"|":snoo_shrug:"|":partyparrot:"|":snoo_simple_smile:", + a?: string, e: "text"|"emoji", t?: string, u?: string, @@ -458,7 +458,7 @@ interface RedditPost_2018 { isGif?: boolean, m?: "image/jpg"|"image/png"|"image/gif", s?: { - gif?: "https://i.redd.it/1jb76jalx0121.gif", + gif?: string, mp4?: string, u?: string, x: number, diff --git a/schemas/RS/2019.ts b/schemas/RS/2019.ts index f4edcd3..21bf90f 100644 --- a/schemas/RS/2019.ts +++ b/schemas/RS/2019.ts @@ -9,7 +9,7 @@ interface RedditPost_2019 { count: number, days_of_drip_extension: number, days_of_premium: number, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"JPG"|"PNG"|"APNG", @@ -19,7 +19,7 @@ interface RedditPost_2019 { id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"sadasdasdasd"|"11"|"6"|"4"|"16"|" communauté", + name: string, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -29,7 +29,7 @@ interface RedditPost_2019 { }[], start_date?: null|number, subreddit_coin_reward?: number, - subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_m1n8r"|"t5_2tk95"|"t5_mouw"|"t5_2wb7y", + subreddit_id: null|string, }[], allow_live_comments?: boolean, archived?: boolean, @@ -103,17 +103,17 @@ interface RedditPost_2019 { count: number, days_of_drip_extension: number, days_of_premium: number, - description: "Silver Award"|"Gold Award"|"Platinum Award"|null, + description: string|null, end_date?: null|number, giver_coin_reward?: null|number, icon_format?: null|"JPG"|"PNG"|"APNG", icon_height: number, icon_url: string, icon_width: number, - id: "gid_1"|"gid_2"|"gid_3", + id: string, is_enabled: boolean, is_new?: boolean, - name: "Silver"|"Gold"|"Platinum"|"Crown"|"Greenseer"|"Lemon Cake"|"Hand of the Queen"|"Iron Coin"|"A Perfect Murder"|"Crying MJ"|"Tinfoil"|"Perfect Murder"|"Most Valuable"|"Historic Highlight"|"Quality OC", + name: string, penny_donate?: null|number, penny_price?: null|number, resized_icons: { @@ -123,7 +123,7 @@ interface RedditPost_2019 { }[], start_date?: null|number, subreddit_coin_reward?: number, - subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_mouw"|"t5_2tk95", + subreddit_id: null|string, }[], allow_live_comments?: boolean, approved_at_utc: null, @@ -155,17 +155,17 @@ interface RedditPost_2019 { category: null|"drawing_and_painting"|"photography"|"gaming"|"animals"|"entertainment"|"diy_and_crafts"|"videos"|"music"|"memes"|""|"food"|"funny"|"writing"|"pics_and_gifs"|"art", clicked: boolean, collections?: { - author_id: "t2_zvwma"|"t2_4x3vt"|"t2_f82y4"|"t2_5niui"|"t2_zmjf4"|"t2_xrnc7wf"|"t2_czene"|"t2_ryprsip"|"t2_3rgg2"|"t2_17aq3ltt"|"t2_d5h4t"|"t2_jv2kx"|"t2_fpdxd"|"t2_16iwg5", - author_name: "ShuichiRL"|"ijm8710"|"Haveireddit"|"SirBuckeye"|"Racer_77"|"KpKrunal"|"LordKeren"|"RLMatchThreads"|"Musely"|"kp-krunal"|"optimalg"|"BWPhoenix"|"J4ckrh"|"jeypiti", + author_id: string, + author_name: string, collection_id: string, created_at_utc: number, - description: ""|null, + description: string|null, display_layout: null|"GALLERY"|"TIMELINE", last_update_utc: number, link_ids: string[], permalink: string, - subreddit_id: "t5_39cf6"|"t5_2rmtr"|"t5_2t7hh"|"t5_2r1ox"|"t5_3aobb"|"t5_kpka5"|"t5_2t1bl"|"t5_3lspr"|"t5_2cneq"|"t5_2rjz2"|"t5_2qhqt", - title: "WSOE 4 Main Event"|"Changelogs for Android and iOS"|"Posts By Epic"|"r/kpop AMAs"|"Modposts", + subreddit_id: string, + title: string, }[], content_categories: null|("photography"|"drawing_and_painting"|"gaming"|"comics"|"entertainment"|"diy_and_crafts"|"writing"|"videos"|"music")[], contest_mode: boolean, diff --git a/schemas/RS/2020.ts b/schemas/RS/2020.ts index c3c224a..26972e0 100644 --- a/schemas/RS/2020.ts +++ b/schemas/RS/2020.ts @@ -104,7 +104,7 @@ interface RedditPost_2020 { link_ids: string[], permalink: string, sr_detail?: { - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string, created: number, @@ -324,7 +324,7 @@ interface RedditPost_2020 { hls_url?: string, is_gif?: boolean, scrubber_media_url?: string, - transcoding_message?: "No tasks are completed", + transcoding_message?: string, transcoding_status: "completed"|"error", width?: number, }, @@ -517,7 +517,7 @@ interface RedditPost_2020 { hls_url?: string, is_gif?: boolean, scrubber_media_url?: string, - transcoding_message?: "No tasks are completed", + transcoding_message?: string, transcoding_status: "completed"|"error", width?: number, }, @@ -576,7 +576,7 @@ interface RedditPost_2020 { caption?: string, display_url?: string, id: number, - media_id: "zh1b5vm1nx751"|"e2sc7vm1nx751", + media_id: string, outbound_url?: string, }[], }|null, @@ -616,7 +616,7 @@ interface RedditPost_2020 { link_flair_type: "text"|"richtext", locked: boolean, media: null|{ - event_id?: "14d816ty1ylvo"|"14mpc1u5zq28o"|"14x7jcyn7h7fx"|"14j4tfj9egfds"|"14y2kkzfls9bi"|"14yfgzskx6ixc"|"14ylk4atxhf3l"|"14yqv010rha10"|"14yytlncxz4x5"|"14yyumkgu980z"|"14zhlibyvj2o4"|"150kzr5qr8hdi"|"1514otayqzge8"|"151lh9fqtg8yp", + event_id?: string, oembed?: { author_name?: string, author_url?: string, @@ -818,7 +818,7 @@ interface RedditPost_2020 { }, score: number, secure_media: null|{ - event_id?: "14d816ty1ylvo"|"14mpc1u5zq28o"|"14x7jcyn7h7fx"|"14j4tfj9egfds"|"14y2kkzfls9bi"|"14yfgzskx6ixc"|"14ylk4atxhf3l"|"14yqv010rha10"|"14yytlncxz4x5"|"14yyumkgu980z"|"14zhlibyvj2o4"|"150kzr5qr8hdi"|"1514otayqzge8"|"151lh9fqtg8yp", + event_id?: string, oembed?: { author_name?: string, author_url?: string, diff --git a/schemas/RS/2021.ts b/schemas/RS/2021.ts index b94233a..ab0e872 100644 --- a/schemas/RS/2021.ts +++ b/schemas/RS/2021.ts @@ -92,7 +92,7 @@ interface RedditPost_2021 { author_premium?: boolean, awarders?: [], banned_by?: null, - call_to_action?: "Learn More"|"Shop Now"|"Sign Up"|"Download"|"Install"|"View More"|"Play Now"|"Watch Now"|"Apply Now"|"Contact Us"|"Get a Quote"|"See Menu"|"Get Showtimes"|""|"Pre-order Now", + call_to_action?: string, can_gild: boolean, can_mod_post?: boolean, category: null|"drawing_and_painting"|"gaming"|"photography"|"animals"|"entertainment"|""|"diy_and_crafts"|"videos"|"memes"|"food"|"funny"|"music"|"writing", @@ -109,7 +109,7 @@ interface RedditPost_2021 { sr_detail?: { banner_img: string, banner_size: null|number[], - community_icon: "", + community_icon: string, created: number, created_utc: number, display_name: "soccer"|"HardwareSwapUK"|"MagicArena"|"travel"|"AEWOfficial"|"OtomeIsekai"|"DontDiddleDecember"|"incremental_games"|"Lineman"|"CKsTechNews", @@ -125,7 +125,7 @@ interface RedditPost_2021 { sr_display_name_prefixed: "r/soccer"|"r/HardwareSwapUK"|"r/MagicArena"|"r/travel"|"r/AEWOfficial"|"r/OtomeIsekai"|"r/DontDiddleDecember"|"r/incremental_games"|"r/Lineman"|"r/CKsTechNews", subreddit_type: "public", subscribers: number, - title: "The back page of the internet "|"Magic The Gathering: Arena"|"travel"|"All Elite Wrestling"|"Otome Isekai", + title: string, url: "/r/soccer/"|"/r/HardwareSwapUK/"|"/r/MagicArena/"|"/r/travel/"|"/r/AEWOfficial/"|"/r/OtomeIsekai/"|"/r/DontDiddleDecember/"|"/r/incremental_games/"|"/r/Lineman/"|"/r/CKsTechNews/", user_can_crosspost: boolean, whitelist_status: "all_ads"|"no_ads"|"some_ads"|null, @@ -645,7 +645,7 @@ interface RedditPost_2021 { items: { call_to_action?: "Learn More"|"Shop Now"|"Download"|"View More"|"Install"|"Watch Now"|"Play Now"|"Get Showtimes"|"Sign Up"|"Apply Now"|"Pre-order Now"|"See Menu"|"Contact Us"|"Get a Quote"|"Order Now", caption?: string, - display_url?: "timhortons.ca"|"tntdrama.com/Snowpiercer"|"www.amcplus.com"|"samsung.com"|"BestBuy.com"|"www.amcplus.com/drama"|"rockstargames.com/newswire"|"http://microsoft.com/teams"|"microsoft.com/teams"|"https://lvl.co"|"navy.com"|"google.com"|"reddit.com", + display_url?: string, id: number, media_id: string, outbound_url?: string, @@ -691,7 +691,7 @@ interface RedditPost_2021 { recording_duration_seconds?: number, recording_fallback_url?: string, recording_status?: number, - room_id: "992d5196-249f-4774-8202-a8ea7f544634"|"9c24ffc6-dd4e-4c94-989a-2c75257f8881"|"c8022880-ced2-4347-a163-98e9338025de", + room_id: string, }, locked: boolean, media: null|{ diff --git a/schemas/RS/2022.ts b/schemas/RS/2022.ts index 4710420..f0c6330 100644 --- a/schemas/RS/2022.ts +++ b/schemas/RS/2022.ts @@ -11,7 +11,7 @@ interface RedditPost_2022 { count: number, days_of_drip_extension: null|number, days_of_premium: null|number, - description: "A glowing commendation for all to see", + description: string, end_date: null, giver_coin_reward: null, icon_format: "APNG"|"PNG"|null, @@ -21,7 +21,7 @@ interface RedditPost_2022 { id: string, is_enabled: boolean, is_new: boolean, - name: "All-Seeing Upvote"|"Helpful"|"Silver"|"Wholesome"|"Starstruck"|"Endless Coolness"|"I'll Drink to That"|"Gold"|"LOVE!"|"1800"|"Take My Energy"|"Helpful (Pro)"|"Powerups Post", + name: string, penny_donate: null, penny_price: null|number, resized_icons: { @@ -47,7 +47,7 @@ interface RedditPost_2022 { approved_at_utc: null, approved_by: null, archived: boolean, - author: "WinterPlanet"|"[deleted]"|"AutoModerator"|"psoj4"|"twenty_yard_driver"|"ProETC"|"imaginfinite"|"chuckiemag99"|"DagmarTheCat"|"Cement-umbrella"|"KushPiglet"|"nycspine"|"beer-isgood45"|"OG-JRICH", + author: string, author_flair_background_color: null|""|"transparent", author_flair_css_class: null, author_flair_richtext?: { @@ -60,7 +60,7 @@ interface RedditPost_2022 { author_flair_text: null|":Chiefs: Chiefs"|":Broncos: Broncos", author_flair_text_color: null|"dark", author_flair_type?: "text"|"richtext", - author_fullname?: "t2_3e0vvbj8"|"t2_6l4z3"|"t2_10y5ylp7"|"t2_lubatj0m"|"t2_k1p9tbh9"|"t2_93x4z"|"t2_cmpgc7nw"|"t2_5z9fl859"|"t2_bletih9o"|"t2_832i41ks"|"t2_54sb5aqr"|"t2_4h7r2yjx"|"t2_4fv7llin", + author_fullname?: string, author_is_blocked: boolean, author_patreon_flair?: boolean, author_premium?: boolean, @@ -107,7 +107,7 @@ interface RedditPost_2022 { }, hidden: boolean, hide_score: boolean, - id: "yfmath"|"yfsjwb"|"xkv5ko"|"xewicg"|"yg2t6f"|"yxdv4x"|"ypufmb"|"yj741n"|"yo17rw"|"za615e"|"zcqqjy"|"u64fh6"|"zg1rpi"|"sprnec", + id: string, is_created_from_ads_ui: boolean, is_crosspostable: boolean, is_gallery?: boolean, @@ -168,7 +168,7 @@ interface RedditPost_2022 { mod_reason_by: null, mod_reason_title: null, mod_reports: [], - name: "t3_yfmath"|"t3_yfsjwb"|"t3_xkv5ko"|"t3_xewicg"|"t3_yg2t6f"|"t3_yxdv4x"|"t3_ypufmb"|"t3_yj741n"|"t3_yo17rw"|"t3_za615e"|"t3_zcqqjy"|"t3_u64fh6"|"t3_zg1rpi"|"t3_sprnec", + name: string, no_follow: boolean, num_comments: number, num_crossposts: number, @@ -229,7 +229,7 @@ interface RedditPost_2022 { accept_followers: boolean, allow_chat_post_creation?: boolean, allowed_media_in_comments: ("static"|"animated"|"giphy")[], - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string|null, created?: number, @@ -240,7 +240,7 @@ interface RedditPost_2022 { display_name: "worldnews"|"churningcanada"|"u_twenty_yard_driver"|"space"|"Images"|"AnarchyChess"|"fidelityinvestments"|"nfl"|"BoiseTech"|"BeMesmerized"|"redditads"|"japanesestreetwear"|"qa_ads_native_video"|"fanduel"|"cats", display_name_prefixed: "r/worldnews"|"r/churningcanada"|"u/twenty_yard_driver"|"r/space"|"r/Images"|"r/AnarchyChess"|"r/fidelityinvestments"|"r/nfl"|"r/BoiseTech"|"r/BeMesmerized"|"r/redditads"|"r/japanesestreetwear"|"r/qa_ads_native_video"|"r/fanduel"|"r/cats", free_form_reports: boolean, - header_img: ""|null, + header_img: string|null, header_size: null|number[], icon_color: "", icon_img: string, @@ -405,7 +405,7 @@ interface RedditPost_2022 { link_ids: string[], permalink: string, sr_detail?: { - banner_img: ""|null, + banner_img: string|null, banner_size: null|number[], community_icon: string, created: number, @@ -562,7 +562,7 @@ interface RedditPost_2022 { sr_display_name_prefixed: "r/NASCAR"|"r/chloe"|"r/NikuNikuNii"|"r/BestofRedditorUpdates"|"r/Superstonk"|"r/CelebsArchive"|"r/AIRemastered"|"r/audiophile", subreddit_type: "public"|"restricted", subscribers: number, - title: "NASCAR on Reddit: News from the track"|"Chloe"|"Niku Niku Nii"|"BestofRedditorUpdates"|"💎🙌Superstonk🚀🦍"|"Celebs Pictures, Gifs, and Videos"|"AIRemastered", + title: string, url: "/r/NASCAR/"|"/r/chloe/"|"/r/NikuNikuNii/"|"/r/BestofRedditorUpdates/"|"/r/Superstonk/"|"/r/CelebsArchive/"|"/r/AIRemastered/"|"/r/audiophile/", user_can_crosspost: boolean|null, whitelist_status: "all_ads"|"no_ads"|null, @@ -889,7 +889,7 @@ interface RedditPost_2022 { total_awards_received: number, tournament_data?: { currency: "GAME_TOKENS", - name: "NFL Week 15-18"|"Prediction Tournament"|"r/CryptoCurrency Predictions Tournament "|"2022 Predictions"|"Apple Card New Features (iOS 15.4)"|"Predictions Tournament", + name: string, predictions: { body: string, created_at: number, @@ -953,9 +953,9 @@ interface RedditPost_2022 { media_id: string, outbound_url?: string, product?: { - description: "test description", + description: string, price?: string, - title: "Kevin test product #2"|"Kevin test product #6"|"Kevin test product #4", + title: string, }, }[], }|null, @@ -1257,7 +1257,7 @@ interface RedditPost_2022 { sk_ad_network_data?: null, spoiler: boolean, stickied: boolean, - subcaption?: null|"$5.00"|"$25.00"|"$309.99"|"$399.99"|"$0.50", + subcaption?: null|string, subreddit: string, subreddit_id: string, subreddit_name_prefixed: string, diff --git a/schemas/RS/2023.ts b/schemas/RS/2023.ts index dc985be..92444d2 100644 --- a/schemas/RS/2023.ts +++ b/schemas/RS/2023.ts @@ -61,11 +61,11 @@ interface RedditPost_2023 { author_flair_richtext?: { a?: ":Bowser:"|":invincible3:"|":robot2:"|":burgermarttrash:"|":dudeisawit:"|":snoo_dealwithit:", e: "text"|"emoji", - t?: "r/Movies contributor"|"Good Burger > The Godfather"|"Citizen Detective"|"Heliotrope"|"Platinum"|"Diamond"|"Soldier Boy"|" TV Fan"|" Robot"|" Simon Racioppa - Showrunner"|" Burger Mart Trash Bag"|" \"Dude, I saw it on Reddit\" ", + t?: string, u?: string, }[], author_flair_template_id: null|string, - author_flair_text: null|"r/Movies contributor"|"Good Burger > The Godfather"|"Citizen Detective"|"Heliotrope"|"Platinum"|":Bowser:"|"Diamond"|"Soldier Boy"|"Agents of S.H.I.E.L.D."|"The League"|"Orphan Black"|":invincible3: TV Fan"|":robot2: Robot", + author_flair_text: null|string, author_flair_text_color: null|"dark"|"light", author_flair_type?: "text"|"richtext", author_fullname?: string, @@ -130,7 +130,7 @@ interface RedditPost_2023 { media: null|{ oembed?: { author_name: "Paramount Pictures"|"Lionsgate Movies"|"The Tonight Show Starring Jimmy Fallon"|"Illumination"|"STARZ", - author_url: "https://www.youtube.com/@LionsgateMovies"|"https://www.youtube.com/@fallontonight"|"https://www.youtube.com/@illumination"|"https://www.youtube.com/@Starz", + author_url: string, height: number, html: string, provider_name: "YouTube", @@ -242,7 +242,7 @@ interface RedditPost_2023 { secure_media: null|{ oembed?: { author_name: "Paramount Pictures"|"Lionsgate Movies"|"The Tonight Show Starring Jimmy Fallon"|"Illumination"|"STARZ", - author_url: "https://www.youtube.com/@LionsgateMovies"|"https://www.youtube.com/@fallontonight"|"https://www.youtube.com/@illumination"|"https://www.youtube.com/@Starz", + author_url: string, height: number, html: string, provider_name: "YouTube", @@ -276,7 +276,7 @@ interface RedditPost_2023 { scrolling?: boolean, width?: number, }, - selftext: "", + selftext: string, selftext_html: null|string, send_replies: boolean, spoiler: boolean, @@ -284,7 +284,7 @@ interface RedditPost_2023 { accept_followers: boolean, allow_chat_post_creation: boolean, allowed_media_in_comments: ("giphy"|"animated"|"static"|"expression")[], - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string|null, created: number, @@ -298,7 +298,7 @@ interface RedditPost_2023 { header_img: string|null, header_size: null|number[], icon_color: "", - icon_img: "", + icon_img: string, icon_size: null|number[], is_chat_post_feature_enabled: boolean, key_color: ""|"#ea0027"|"#24a0ed"|"#ff8717"|"#a5a4a4"|"#545452"|"#0079d3"|"#222222"|"#ddbd37"|"#ff4500", @@ -332,7 +332,7 @@ interface RedditPost_2023 { subreddit_subscribers: number, subreddit_type: "public"|"restricted", suggested_sort: null|"new"|"confidence"|"qa", - thumbnail: "default"|"image", + thumbnail: string, thumbnail_height: number|null, thumbnail_width: number|null, title: string, @@ -341,8 +341,8 @@ interface RedditPost_2023 { treatment_tags: [], ups: number, upvote_ratio: number, - url: "https://i.redd.it/b0xbc5o28nz51.jpg"|"https://www.reddit.com/gallery/v2jw5p"|"https://www.reddit.com/gallery/rljfgs"|"https://i.redd.it/sxs7ea7bafub1.jpg"|"https://i.redd.it/dzby6idoaaub1.jpg"|"https://i.redd.it/yep9g1o8wsub1.jpg"|"https://i.redd.it/wti28v5p0qwb1.jpg"|"https://i.redd.it/9n7r3lpg8rwb1.jpg"|"https://i.redd.it/5ojiql7y6swb1.jpg", - url_overridden_by_dest?: "https://i.redd.it/b0xbc5o28nz51.jpg"|"https://www.reddit.com/gallery/v2jw5p"|"https://www.reddit.com/gallery/rljfgs"|"https://i.redd.it/sxs7ea7bafub1.jpg"|"https://i.redd.it/dzby6idoaaub1.jpg"|"https://i.redd.it/yep9g1o8wsub1.jpg"|"https://i.redd.it/wti28v5p0qwb1.jpg"|"https://i.redd.it/9n7r3lpg8rwb1.jpg"|"https://i.redd.it/5ojiql7y6swb1.jpg"|"https://i.redd.it/hslxppbn5myb1.png"|"https://www.reddit.com/gallery/17ndu18", + url: string, + url_overridden_by_dest?: string, user_reports: [], view_count: null, visited: boolean, @@ -579,14 +579,14 @@ interface RedditPost_2023 { link_ids: string[], permalink: string, sr_detail?: { - banner_img: "", + banner_img: string, banner_size: null|number[], community_icon: string, created: number, created_utc: number, display_name: string, display_name_prefixed: string, - icon_img: "", + icon_img: string, icon_size: null|number[], key_color: ""|"#545452"|"#7e53c1"|"#222222"|"#46d160"|"#ea0027"|"#ddbd37"|"#0079d3"|"#ff8717", mod_permissions: [], diff --git a/schemas/subreddits.ts b/schemas/subreddits.ts new file mode 100644 index 0000000..76878ca --- /dev/null +++ b/schemas/subreddits.ts @@ -0,0 +1,131 @@ +interface Subreddit { + _meta: { + earliest_comment_at: null|number, + earliest_post_at: number|null, + num_comments: number, + num_comments_updated_at: null|number, + num_posts: number, + num_posts_updated_at: number|null, + }, + accept_followers: boolean|null, + accounts_active: null, + accounts_active_is_fuzzed: boolean|null, + active_user_count: null, + advertiser_category: ""|"Lifestyles"|"Sports"|"Technology"|"Games"|"Automotive"|"Entertainment"|"College / University"|"Local"|"Health"|"Business / Finance"|"Family & Youth"|"Retail"|"Travel"|null, + all_original_content: boolean|null, + allow_discovery: boolean|null, + allow_galleries: boolean|null, + allow_images: boolean|null, + allow_polls: boolean|null, + allow_prediction_contributors: boolean, + allow_predictions: boolean, + allow_predictions_tournament: boolean, + allow_talks: boolean, + allow_videogifs: boolean, + allow_videos: boolean, + allowed_media_in_comments: ("giphy"|"static"|"animated"|"expression")[], + banner_background_color: string|null, + banner_background_image: string, + banner_img: string|null, + banner_size: null|number[], + can_assign_link_flair: boolean, + can_assign_user_flair: boolean, + collapse_deleted_comments: boolean|null, + comment_contribution_settings: { + allowed_media_types?: null|("giphy"|"static"|"animated"|"expression")[], + }, + comment_score_hide_mins: number|null, + community_icon: string, + community_reviewed: boolean|null, + content_category?: "photography"|"drawing_and_painting"|"gaming"|"entertainment"|"videos"|"animals"|"food"|"music"|"diy_and_crafts"|"memes"|"funny"|"writing", + created: number, + created_utc: number, + description: string|null, + disable_contributor_requests: boolean|null, + display_name: string, + display_name_prefixed: string, + emojis_custom_size: null|number[], + emojis_enabled: boolean, + free_form_reports: boolean|null, + has_menu_widget: boolean, + header_img: null|string, + header_size: null|number[], + header_title: string|null, + hide_ads: boolean|null, + icon_img: string|null, + icon_size: null|number[], + id: string, + interstitial_warning_message?: string, + is_crosspostable_subreddit: boolean|null, + is_default_banner?: boolean, + is_default_icon?: boolean[], + is_enrolled_in_new_modmail: null, + key_color: string|null, + lang: string|null, + link_flair_enabled: boolean|null, + link_flair_position: ""|"right"|"left"|null, + mobile_banner_image: string|null, + name: string, + notification_level: null|"low", + original_content_tag_enabled: boolean|null, + over18: boolean|null, + prediction_leaderboard_entry_type: number|null, + primary_color: string|null, + public_description: string, + public_traffic: boolean|null, + quarantine: boolean|null, + quarantine_message?: string, + quarantine_message_html?: string, + quarantine_permissions?: { + crossposts: boolean, + galleries: boolean, + images: boolean, + media: boolean, + polls: boolean, + sharing: boolean, + sr_images: boolean, + styles: boolean, + subscriber_count: boolean, + videos: boolean, + }, + restrict_commenting: boolean|null, + restrict_posting: boolean|null, + retrieved_on: number, + should_archive_posts: boolean|null, + should_show_media_in_comments_setting: boolean, + show_media: boolean|null, + show_media_preview: boolean|null, + spoilers_enabled: boolean|null, + submission_type: "any"|"self"|"link"|null, + submit_link_label: string|null, + submit_text: string|null, + submit_text_html: null|string, + submit_text_label: string|null, + subreddit_type: "user"|"public"|"restricted"|"private"|"employees_only"|"archived"|"gold_only", + subscribers: number|null, + suggested_comment_sort: "qa"|"new"|"confidence"|"top"|"blank"|"old"|"controversial"|"live"|"random"|null, + title: string, + url: string, + user_can_flair_in_sr: null, + user_flair_background_color: null, + user_flair_css_class: null, + user_flair_enabled_in_sr: boolean|null, + user_flair_position: "right"|"left"|""|null, + user_flair_richtext: [], + user_flair_template_id: null|string, + user_flair_text: null, + user_flair_text_color: null|string, + user_flair_type: "text"|"richtext", + user_has_favorited: null|boolean, + user_is_banned: null|boolean, + user_is_contributor: null|boolean, + user_is_moderator: null|boolean, + user_is_muted: null|boolean, + user_is_subscriber: null|boolean, + user_sr_flair_enabled: null, + user_sr_theme_enabled: boolean|null, + videostream_links_count?: number, + whitelist_status: null|"all_ads"|"some_ads"|"house_only"|"promo_all"|"promo_adult_nsfw", + wiki_enabled: null|boolean, + wls: null|number, +} diff --git a/schemas/subreddits/subreddits_2024-01.json b/schemas/subreddits/subreddits_2024-01.json new file mode 100644 index 0000000..8e96206 --- /dev/null +++ b/schemas/subreddits/subreddits_2024-01.json @@ -0,0 +1,2065 @@ +[ + { + "type": "object", + "usage": "always", + "schema": { + "_meta": [ + { + "type": "object", + "usage": "always", + "schema": { + "earliest_comment_at": [ + { + "type": "null", + "usage": 0.75, + "schema": null + }, + { + "type": "int", + "usage": 0.25, + "schema": { + "min_value": 0, + "max_value": 1707541585, + "avr_value": 1615923856.42 + } + } + ], + "earliest_post_at": [ + { + "type": "int", + "usage": 0.99, + "schema": { + "min_value": 0, + "max_value": 1707339213, + "avr_value": 1624640603.46 + } + }, + { + "type": "null", + "usage": 0.01, + "schema": null + } + ], + "num_comments": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 772130512, + "avr_value": 1055.55 + } + } + ], + "num_comments_updated_at": [ + { + "type": "null", + "usage": 0.75, + "schema": null + }, + { + "type": "int", + "usage": 0.25, + "schema": { + "min_value": 0, + "max_value": 1707541748, + "avr_value": 1707541748.0 + } + } + ], + "num_posts": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 37209780, + "avr_value": 146.38 + } + } + ], + "num_posts_updated_at": [ + { + "type": "int", + "usage": 0.99, + "schema": { + "min_value": 0, + "max_value": 1707519565, + "avr_value": 1707519565.0 + } + }, + { + "type": "null", + "usage": 0.01, + "schema": null + } + ] + } + } + ], + "accept_followers": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12171522, + "false": 297276 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "accounts_active": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "accounts_active_is_fuzzed": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 0, + "false": 12468798 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "active_user_count": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "advertiser_category": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 20, + "avr_length": 0.0, + "values": [ + { + "value": "", + "usage": 1.0 + }, + { + "value": "Local", + "usage": 0.0 + }, + { + "value": "Technology", + "usage": 0.0 + }, + { + "value": "Lifestyles", + "usage": 0.0 + }, + { + "value": "Sports", + "usage": 0.0 + }, + { + "value": "Games", + "usage": 0.0 + }, + { + "value": "Entertainment", + "usage": 0.0 + }, + { + "value": "College / University", + "usage": 0.0 + }, + { + "value": "Travel", + "usage": 0.0 + }, + { + "value": "Health", + "usage": 0.0 + }, + { + "value": "Business / Finance", + "usage": 0.0 + }, + { + "value": "Automotive", + "usage": 0.0 + }, + { + "value": "Family & Youth", + "usage": 0.0 + }, + { + "value": "Retail", + "usage": 0.0 + } + ] + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "all_original_content": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 397, + "false": 12468401 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "allow_discovery": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12454112, + "false": 14686 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "allow_galleries": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12456435, + "false": 12363 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "allow_images": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12443564, + "false": 25234 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "allow_polls": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12370102, + "false": 98696 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "allow_prediction_contributors": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 16680905 + } + } + ], + "allow_predictions": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 16680905 + } + } + ], + "allow_predictions_tournament": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 16680905 + } + } + ], + "allow_talks": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 3, + "false": 16680902 + } + } + ], + "allow_videogifs": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 16618233, + "false": 62672 + } + } + ], + "allow_videos": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 12490250, + "false": 4190655 + } + } + ], + "allowed_media_in_comments": [ + { + "type": "array", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 10000, + "avr_length": 0.22, + "schema": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 10, + "avr_length": 6.75, + "values": [ + { + "value": "giphy", + "usage": 0.32 + }, + { + "value": "static", + "usage": 0.28 + }, + { + "value": "animated", + "usage": 0.28 + }, + { + "value": "expression", + "usage": 0.13 + } + ] + } + } + ] + } + } + ], + "banner_background_color": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 7, + "avr_length": 0.05 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "banner_background_image": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 152, + "avr_length": 2.32 + } + } + ], + "banner_img": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 172, + "avr_length": 38.74 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "banner_size": [ + { + "type": "null", + "usage": 0.82, + "schema": null + }, + { + "type": "array", + "usage": 0.18, + "schema": { + "min_length": 0, + "max_length": 2, + "avr_length": 2.0, + "schema": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 1280, + "avr_value": 831.08 + } + } + ] + } + } + ], + "can_assign_link_flair": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 275820, + "false": 16405085 + } + } + ], + "can_assign_user_flair": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 218597, + "false": 16462308 + } + } + ], + "collapse_deleted_comments": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 11045003, + "false": 1423795 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "comment_contribution_settings": [ + { + "type": "object", + "usage": "always", + "schema": { + "allowed_media_types": [ + { + "type": "null", + "usage": 0.67, + "schema": null + }, + { + "type": "array", + "usage": 0.33, + "schema": { + "min_length": 0, + "max_length": 10000, + "avr_length": 3.02, + "schema": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 10, + "avr_length": 6.78, + "values": [ + { + "value": "expression", + "usage": 0.14 + }, + { + "value": "giphy", + "usage": 0.32 + }, + { + "value": "static", + "usage": 0.27 + }, + { + "value": "animated", + "usage": 0.27 + } + ] + } + } + ] + } + } + ] + } + } + ], + "comment_score_hide_mins": [ + { + "type": "int", + "usage": 0.75, + "schema": { + "min_value": 0, + "max_value": 1440, + "avr_value": 0.44 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "community_icon": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 143, + "avr_length": 10.7 + } + } + ], + "community_reviewed": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 66872, + "false": 12401926 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "created": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 1707432777, + "avr_value": 1612924394.66 + } + } + ], + "created_utc": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 1707432777, + "avr_value": 1612924394.66 + } + } + ], + "description": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 10240, + "avr_length": 15.63 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "disable_contributor_requests": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 14243, + "false": 12454555 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "display_name": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 24, + "avr_length": 14.41 + } + } + ], + "display_name_prefixed": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 26, + "avr_length": 14.85 + } + } + ], + "emojis_custom_size": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "array", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 2, + "avr_length": 2.0, + "schema": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 40, + "avr_value": 32.29 + } + } + ] + } + } + ], + "emojis_enabled": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 72472, + "false": 16608433 + } + } + ], + "free_form_reports": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 11138551, + "false": 1330247 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "has_menu_widget": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 16680905 + } + } + ], + "header_img": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "string", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 80, + "avr_length": 72.39 + } + } + ], + "header_size": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "array", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 2, + "avr_length": 2.0, + "schema": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 29000, + "avr_value": 396.16 + } + } + ] + } + } + ], + "header_title": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 500, + "avr_length": 0.08 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "hide_ads": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 9, + "false": 12468789 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "icon_img": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 295, + "avr_length": 118.63 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "icon_size": [ + { + "type": "array", + "usage": 0.63, + "schema": { + "min_length": 0, + "max_length": 2, + "avr_length": 2.0, + "schema": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 256, + "avr_value": 256.0 + } + } + ] + } + }, + { + "type": "null", + "usage": 0.37, + "schema": null + } + ], + "id": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 6, + "avr_length": 5.81 + } + } + ], + "is_crosspostable_subreddit": [ + { + "type": "bool", + "usage": 1.0, + "schema": { + "true": 1177486, + "false": 15488400 + } + }, + { + "type": "null", + "usage": 0.0, + "schema": null + } + ], + "is_enrolled_in_new_modmail": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "key_color": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 7, + "avr_length": 0.1 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "lang": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 5, + "avr_length": 2.0 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "link_flair_enabled": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 316941, + "false": 12151857 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "link_flair_position": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 5, + "avr_length": 0.12, + "values": [ + { + "value": "", + "usage": 0.97 + }, + { + "value": "right", + "usage": 0.02 + }, + { + "value": "left", + "usage": 0.0 + } + ] + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "mobile_banner_image": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 84, + "avr_length": 0.53 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "name": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 9, + "avr_length": 8.81 + } + } + ], + "notification_level": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "string", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 3, + "avr_length": 3.0, + "values": [ + { + "value": "low", + "usage": "always" + } + ] + } + } + ], + "original_content_tag_enabled": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 14021, + "false": 12454777 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "over18": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 2439777, + "false": 10029021 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "prediction_leaderboard_entry_type": [ + { + "type": "int", + "usage": 0.75, + "schema": { + "min_value": 0, + "max_value": 2, + "avr_value": 1.0 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "primary_color": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 7, + "avr_length": 0.13 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "public_description": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 500, + "avr_length": 29.24 + } + } + ], + "public_traffic": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 0, + "false": 12468798 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "quarantine": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 2, + "false": 12468796 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "restrict_commenting": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 9467, + "false": 12459331 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "restrict_posting": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12467243, + "false": 1555 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "retrieved_on": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 1707438463, + "avr_value": 1707396520.18 + } + } + ], + "should_archive_posts": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 21120, + "false": 12447678 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "should_show_media_in_comments_setting": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 12655831, + "false": 4025074 + } + } + ], + "show_media": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12363850, + "false": 104948 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "show_media_preview": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12459930, + "false": 8868 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "spoilers_enabled": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12447856, + "false": 20942 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "submission_type": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 4, + "avr_length": 3.0, + "values": [ + { + "value": "any", + "usage": 1.0 + }, + { + "value": "link", + "usage": 0.0 + }, + { + "value": "self", + "usage": 0.0 + } + ] + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "submit_link_label": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 60, + "avr_length": 0.05 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "submit_text": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 1024, + "avr_length": 1.16 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "submit_text_html": [ + { + "type": "null", + "usage": 0.99, + "schema": null + }, + { + "type": "string", + "usage": 0.01, + "schema": { + "min_length": 0, + "max_length": 3125, + "avr_length": 197.62 + } + } + ], + "submit_text_label": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 60, + "avr_length": 0.05 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "subreddit_type": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 14, + "avr_length": 4.79, + "values": [ + { + "value": "archived", + "usage": 0.0 + }, + { + "value": "public", + "usage": 0.13 + }, + { + "value": "restricted", + "usage": 0.08 + }, + { + "value": "private", + "usage": 0.01 + }, + { + "value": "employees_only", + "usage": 0.0 + }, + { + "value": "gold_only", + "usage": 0.0 + }, + { + "value": "user", + "usage": 0.78 + } + ] + } + } + ], + "subscribers": [ + { + "type": "int", + "usage": 0.75, + "schema": { + "min_value": -663, + "max_value": 281150154, + "avr_value": 550.73 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "suggested_comment_sort": [ + { + "type": "string", + "usage": 0.63, + "schema": { + "min_length": 0, + "max_length": 13, + "avr_length": 2.01, + "values": [ + { + "value": "confidence", + "usage": 0.0 + }, + { + "value": "top", + "usage": 0.0 + }, + { + "value": "new", + "usage": 0.0 + }, + { + "value": "qa", + "usage": 1.0 + }, + { + "value": "blank", + "usage": 0.0 + }, + { + "value": "old", + "usage": 0.0 + }, + { + "value": "controversial", + "usage": 0.0 + }, + { + "value": "live", + "usage": 0.0 + }, + { + "value": "random", + "usage": 0.0 + } + ] + } + }, + { + "type": "null", + "usage": 0.37, + "schema": null + } + ], + "title": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 100, + "avr_length": 6.03 + } + } + ], + "url": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 28, + "avr_length": 19.18 + } + } + ], + "user_can_flair_in_sr": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "user_flair_background_color": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "user_flair_css_class": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "user_flair_enabled_in_sr": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 0, + "false": 12468798 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "user_flair_position": [ + { + "type": "string", + "usage": 0.75, + "schema": { + "min_length": 0, + "max_length": 5, + "avr_length": 5.0, + "values": [ + { + "value": "right", + "usage": 1.0 + }, + { + "value": "left", + "usage": 0.0 + }, + { + "value": "", + "usage": 0.0 + } + ] + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "user_flair_richtext": [ + { + "type": "array", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 1, + "avr_length": 0.0, + "schema": [ + { + "type": "object", + "usage": "always", + "schema": { + "e": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 4, + "avr_length": 4.0, + "values": [ + { + "value": "text", + "usage": "always" + } + ] + } + } + ], + "t": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 18, + "avr_length": 18.0, + "values": [ + { + "value": "full-stack (kinda)", + "usage": "always" + } + ] + } + } + ] + } + } + ] + } + } + ], + "user_flair_template_id": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "string", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 36, + "avr_length": 36.0, + "values": [ + { + "value": "4b63d8b4-7508-11e5-9b1e-0eb6627f4805", + "usage": "always" + } + ] + } + } + ], + "user_flair_text": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "user_flair_text_color": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "string", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 4, + "avr_length": 4.0, + "values": [ + { + "value": "dark", + "usage": "always" + } + ] + } + } + ], + "user_flair_type": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 8, + "avr_length": 4.0, + "values": [ + { + "value": "text", + "usage": 1.0 + }, + { + "value": "richtext", + "usage": 0.0 + } + ] + } + } + ], + "user_has_favorited": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 0, + "false": 7248646 + } + } + ], + "user_is_banned": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 1, + "false": 7248645 + } + } + ], + "user_is_contributor": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 0, + "false": 7248646 + } + } + ], + "user_is_moderator": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 0, + "false": 7248646 + } + } + ], + "user_is_muted": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 0, + "false": 7248646 + } + } + ], + "user_is_subscriber": [ + { + "type": "null", + "usage": 0.57, + "schema": null + }, + { + "type": "bool", + "usage": 0.43, + "schema": { + "true": 3, + "false": 7248643 + } + } + ], + "user_sr_flair_enabled": [ + { + "type": "null", + "usage": "always", + "schema": null + } + ], + "user_sr_theme_enabled": [ + { + "type": "bool", + "usage": 0.75, + "schema": { + "true": 12468798, + "false": 0 + } + }, + { + "type": "null", + "usage": 0.25, + "schema": null + } + ], + "whitelist_status": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "string", + "usage": 0.0, + "schema": { + "min_length": 0, + "max_length": 16, + "avr_length": 7.13, + "values": [ + { + "value": "all_ads", + "usage": 0.88 + }, + { + "value": "some_ads", + "usage": 0.12 + }, + { + "value": "promo_all", + "usage": 0.0 + }, + { + "value": "house_only", + "usage": 0.0 + }, + { + "value": "promo_adult_nsfw", + "usage": 0.0 + } + ] + } + } + ], + "wiki_enabled": [ + { + "type": "null", + "usage": 0.68, + "schema": null + }, + { + "type": "bool", + "usage": 0.32, + "schema": { + "true": 79025, + "false": 5187429 + } + } + ], + "wls": [ + { + "type": "null", + "usage": 1.0, + "schema": null + }, + { + "type": "int", + "usage": 0.0, + "schema": { + "min_value": 0, + "max_value": 7, + "avr_value": 6.12 + } + } + ], + "is_default_banner": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 9534858, + "false": 3444832 + } + } + ], + "is_default_icon": [ + { + "type": "array", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 1, + "avr_length": 1.0, + "schema": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 5223336, + "false": 7756354 + } + } + ] + } + } + ], + "videostream_links_count": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 100, + "avr_value": 0.0 + } + } + ], + "quarantine_message": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 992, + "avr_length": 132.5 + } + } + ], + "quarantine_message_html": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 1105, + "avr_length": 199.04 + } + } + ], + "quarantine_permissions": [ + { + "type": "object", + "usage": "always", + "schema": { + "crossposts": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 1, + "false": 376 + } + } + ], + "galleries": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 377 + } + } + ], + "images": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 377 + } + } + ], + "media": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 239, + "false": 138 + } + } + ], + "polls": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 377 + } + } + ], + "sharing": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 377 + } + } + ], + "sr_images": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 242, + "false": 135 + } + } + ], + "styles": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 306, + "false": 71 + } + } + ], + "subscriber_count": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 62, + "false": 315 + } + } + ], + "videos": [ + { + "type": "bool", + "usage": "always", + "schema": { + "true": 0, + "false": 377 + } + } + ] + } + } + ], + "interstitial_warning_message": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 842, + "avr_length": 451.01 + } + } + ], + "content_category": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 20, + "avr_length": 9.21, + "values": [ + { + "value": "photography", + "usage": 0.13 + }, + { + "value": "animals", + "usage": 0.08 + }, + { + "value": "entertainment", + "usage": 0.1 + }, + { + "value": "drawing_and_painting", + "usage": 0.11 + }, + { + "value": "diy_and_crafts", + "usage": 0.07 + }, + { + "value": "food", + "usage": 0.08 + }, + { + "value": "videos", + "usage": 0.1 + }, + { + "value": "gaming", + "usage": 0.11 + }, + { + "value": "music", + "usage": 0.08 + }, + { + "value": "funny", + "usage": 0.05 + }, + { + "value": "writing", + "usage": 0.02 + }, + { + "value": "memes", + "usage": 0.07 + } + ] + } + } + ] + } + } +] \ No newline at end of file diff --git a/schemas/subreddits/subreddits_2024-01.ts b/schemas/subreddits/subreddits_2024-01.ts new file mode 100644 index 0000000..38749e7 --- /dev/null +++ b/schemas/subreddits/subreddits_2024-01.ts @@ -0,0 +1,131 @@ +interface Subreddit { + _meta: { + earliest_comment_at: null|number, + earliest_post_at: number|null, + num_comments: number, + num_comments_updated_at: null|number, + num_posts: number, + num_posts_updated_at: number|null, + }, + accept_followers: boolean|null, + accounts_active: null, + accounts_active_is_fuzzed: boolean|null, + active_user_count: null, + advertiser_category: ""|"Lifestyles"|"Sports"|"Technology"|"Games"|"Automotive"|"Entertainment"|"College / University"|"Local"|"Health"|"Business / Finance"|"Family & Youth"|"Retail"|"Travel"|null, + all_original_content: boolean|null, + allow_discovery: boolean|null, + allow_galleries: boolean|null, + allow_images: boolean|null, + allow_polls: boolean|null, + allow_prediction_contributors: boolean, + allow_predictions: boolean, + allow_predictions_tournament: boolean, + allow_talks: boolean, + allow_videogifs: boolean, + allow_videos: boolean, + allowed_media_in_comments: ("giphy"|"static"|"animated"|"expression")[], + banner_background_color: string|null, + banner_background_image: string, + banner_img: string|null, + banner_size: null|number[], + can_assign_link_flair: boolean, + can_assign_user_flair: boolean, + collapse_deleted_comments: boolean|null, + comment_contribution_settings: { + allowed_media_types?: null|("giphy"|"static"|"animated"|"expression")[], // 5375491/16680905 (32.23%) + }, + comment_score_hide_mins: number|null, + community_icon: string, + community_reviewed: boolean|null, + content_category?: "photography"|"drawing_and_painting"|"gaming"|"entertainment"|"videos"|"animals"|"food"|"music"|"diy_and_crafts"|"memes"|"funny"|"writing", // 61/16680905 (0.00%) + created: number, + created_utc: number, + description: string|null, + disable_contributor_requests: boolean|null, + display_name: string, + display_name_prefixed: string, + emojis_custom_size: null|number[], + emojis_enabled: boolean, + free_form_reports: boolean|null, + has_menu_widget: boolean, + header_img: null|string, + header_size: null|number[], + header_title: string|null, + hide_ads: boolean|null, + icon_img: string|null, + icon_size: number[]|null, + id: string, + interstitial_warning_message?: string, // 97/16680905 (0.00%) + is_crosspostable_subreddit: boolean|null, + is_default_banner?: boolean, // 12979690/16680905 (77.81%) + is_default_icon?: boolean[], // 12979690/16680905 (77.81%) + is_enrolled_in_new_modmail: null, + key_color: string|null, + lang: string|null, + link_flair_enabled: boolean|null, + link_flair_position: ""|"right"|"left"|null, + mobile_banner_image: string|null, + name: string, + notification_level: null|"low", + original_content_tag_enabled: boolean|null, + over18: boolean|null, + prediction_leaderboard_entry_type: number|null, + primary_color: string|null, + public_description: string, + public_traffic: boolean|null, + quarantine: boolean|null, + quarantine_message?: string, // 377/16680905 (0.00%) + quarantine_message_html?: string, // 377/16680905 (0.00%) + quarantine_permissions?: { + crossposts: boolean, + galleries: boolean, + images: boolean, + media: boolean, + polls: boolean, + sharing: boolean, + sr_images: boolean, + styles: boolean, + subscriber_count: boolean, + videos: boolean, + }, // 377/16680905 (0.00%) + restrict_commenting: boolean|null, + restrict_posting: boolean|null, + retrieved_on: number, + should_archive_posts: boolean|null, + should_show_media_in_comments_setting: boolean, + show_media: boolean|null, + show_media_preview: boolean|null, + spoilers_enabled: boolean|null, + submission_type: "any"|"self"|"link"|null, + submit_link_label: string|null, + submit_text: string|null, + submit_text_html: null|string, + submit_text_label: string|null, + subreddit_type: "user"|"public"|"restricted"|"private"|"employees_only"|"archived"|"gold_only", + subscribers: number|null, + suggested_comment_sort: "qa"|"new"|"confidence"|"top"|"blank"|"old"|"controversial"|"live"|"random"|null, + title: string, + url: string, + user_can_flair_in_sr: null, + user_flair_background_color: null, + user_flair_css_class: null, + user_flair_enabled_in_sr: boolean|null, + user_flair_position: "right"|"left"|""|null, + user_flair_richtext: [], + user_flair_template_id: null|string, + user_flair_text: null, + user_flair_text_color: null|string, + user_flair_type: "text"|"richtext", + user_has_favorited: null|boolean, + user_is_banned: null|boolean, + user_is_contributor: null|boolean, + user_is_moderator: null|boolean, + user_is_muted: null|boolean, + user_is_subscriber: null|boolean, + user_sr_flair_enabled: null, + user_sr_theme_enabled: boolean|null, + videostream_links_count?: number, // 12490250/16680905 (74.88%) + whitelist_status: null|"all_ads"|"some_ads"|"house_only"|"promo_all"|"promo_adult_nsfw", + wiki_enabled: null|boolean, + wls: null|number, +} \ No newline at end of file diff --git a/schemas/subreddits/subreddits_meta_only_2024-01.json b/schemas/subreddits/subreddits_meta_only_2024-01.json new file mode 100644 index 0000000..25260af --- /dev/null +++ b/schemas/subreddits/subreddits_meta_only_2024-01.json @@ -0,0 +1,140 @@ +[ + { + "type": "object", + "usage": "always", + "schema": { + "_meta": [ + { + "type": "object", + "usage": "always", + "schema": { + "earliest_comment_at": [ + { + "type": "null", + "usage": 0.69, + "schema": null + }, + { + "type": "int", + "usage": 0.31, + "schema": { + "min_value": 0, + "max_value": 1707541598, + "avr_value": 1551808794.13 + } + } + ], + "earliest_post_at": [ + { + "type": "int", + "usage": 1.0, + "schema": { + "min_value": 0, + "max_value": 1707519460, + "avr_value": 1580958520.48 + } + }, + { + "type": "null", + "usage": 0.0, + "schema": null + } + ], + "num_comments": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 96135, + "avr_value": 3.11 + } + } + ], + "num_comments_updated_at": [ + { + "type": "null", + "usage": 0.69, + "schema": null + }, + { + "type": "int", + "usage": 0.31, + "schema": { + "min_value": 0, + "max_value": 1707541748, + "avr_value": 1707541748.0 + } + } + ], + "num_posts": [ + { + "type": "int", + "usage": "always", + "schema": { + "min_value": 0, + "max_value": 27439, + "avr_value": 3.53 + } + } + ], + "num_posts_updated_at": [ + { + "type": "int", + "usage": 1.0, + "schema": { + "min_value": 0, + "max_value": 1707519565, + "avr_value": 1707519565.0 + } + }, + { + "type": "null", + "usage": 0.0, + "schema": null + } + ] + } + } + ], + "display_name": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 25, + "avr_length": 12.91 + } + } + ], + "id": [ + { + "type": "string", + "usage": "always", + "schema": { + "min_length": 0, + "max_length": 6, + "avr_length": 5.74 + } + } + ], + "subreddit_subscribers": [ + { + "type": "int", + "usage": 0.84, + "schema": { + "min_value": -29, + "max_value": 22568653, + "avr_value": 20.81 + } + }, + { + "type": "null", + "usage": 0.16, + "schema": null + } + ] + } + } +] \ No newline at end of file diff --git a/schemas/subreddits/subreddits_meta_only_2024-01.ts b/schemas/subreddits/subreddits_meta_only_2024-01.ts new file mode 100644 index 0000000..3559118 --- /dev/null +++ b/schemas/subreddits/subreddits_meta_only_2024-01.ts @@ -0,0 +1,13 @@ +interface Subreddit { + _meta: { + earliest_comment_at: null|number, + earliest_post_at: number|null, + num_comments: number, + num_comments_updated_at: null|number, + num_posts: number, + num_posts_updated_at: number|null, + }, + display_name: string, + id: string, + subreddit_subscribers: number|null, +} \ No newline at end of file