scrapebadger 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +0 -269
- package/dist/index.d.ts +0 -269
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1985,45 +1985,6 @@ declare class GoogleClient {
|
|
|
1985
1985
|
*
|
|
1986
1986
|
* This module contains all the data types used by the Reddit API client.
|
|
1987
1987
|
*/
|
|
1988
|
-
/**
|
|
1989
|
-
* A preview image with dimensions.
|
|
1990
|
-
*/
|
|
1991
|
-
interface RedditPreviewImage {
|
|
1992
|
-
/** Image URL */
|
|
1993
|
-
url: string;
|
|
1994
|
-
/** Image width in pixels */
|
|
1995
|
-
width: number;
|
|
1996
|
-
/** Image height in pixels */
|
|
1997
|
-
height: number;
|
|
1998
|
-
}
|
|
1999
|
-
/**
|
|
2000
|
-
* Embedded media attached to a post.
|
|
2001
|
-
*/
|
|
2002
|
-
interface RedditMedia {
|
|
2003
|
-
/** Media type identifier */
|
|
2004
|
-
type: string | null;
|
|
2005
|
-
/** Direct media URL */
|
|
2006
|
-
url: string | null;
|
|
2007
|
-
/** Thumbnail URL */
|
|
2008
|
-
thumbnail_url: string | null;
|
|
2009
|
-
/** Media width in pixels */
|
|
2010
|
-
width: number | null;
|
|
2011
|
-
/** Media height in pixels */
|
|
2012
|
-
height: number | null;
|
|
2013
|
-
}
|
|
2014
|
-
/**
|
|
2015
|
-
* An award given to a post or comment.
|
|
2016
|
-
*/
|
|
2017
|
-
interface RedditAward {
|
|
2018
|
-
/** Award ID */
|
|
2019
|
-
id: string | null;
|
|
2020
|
-
/** Award name */
|
|
2021
|
-
name: string;
|
|
2022
|
-
/** Number of this award given */
|
|
2023
|
-
count: number;
|
|
2024
|
-
/** Award icon URL */
|
|
2025
|
-
icon_url: string | null;
|
|
2026
|
-
}
|
|
2027
1988
|
/**
|
|
2028
1989
|
* A Reddit post (link or self post).
|
|
2029
1990
|
*/
|
|
@@ -2048,12 +2009,6 @@ interface RedditPost {
|
|
|
2048
2009
|
author: string;
|
|
2049
2010
|
/** Author fullname (t2_ prefixed) */
|
|
2050
2011
|
author_fullname: string | null;
|
|
2051
|
-
/** Author flair text */
|
|
2052
|
-
author_flair_text: string | null;
|
|
2053
|
-
/** Author flair type (text or richtext) */
|
|
2054
|
-
author_flair_type: string | null;
|
|
2055
|
-
/** Author flair template ID */
|
|
2056
|
-
author_flair_template_id: string | null;
|
|
2057
2012
|
/** Subreddit name (without r/ prefix) */
|
|
2058
2013
|
subreddit: string;
|
|
2059
2014
|
/** Subreddit fullname (t5_ prefixed) */
|
|
@@ -2062,104 +2017,32 @@ interface RedditPost {
|
|
|
2062
2017
|
subreddit_name_prefixed: string | null;
|
|
2063
2018
|
/** Subreddit type (public, private, restricted, etc.) */
|
|
2064
2019
|
subreddit_type: string | null;
|
|
2065
|
-
/** Number of subscribers in the subreddit */
|
|
2066
|
-
subreddit_subscribers: number | null;
|
|
2067
2020
|
/** Post score (upvotes minus downvotes) */
|
|
2068
2021
|
score: number;
|
|
2069
|
-
/** Raw upvotes */
|
|
2070
|
-
ups: number;
|
|
2071
|
-
/** Raw downvotes */
|
|
2072
|
-
downs: number;
|
|
2073
|
-
/** Upvote ratio as a decimal (e.g. 0.95) */
|
|
2074
|
-
upvote_ratio: number | null;
|
|
2075
2022
|
/** Number of comments */
|
|
2076
2023
|
num_comments: number;
|
|
2077
2024
|
/** Number of crossposts */
|
|
2078
2025
|
num_crossposts: number;
|
|
2079
|
-
/** Number of duplicate submissions */
|
|
2080
|
-
num_duplicates: number | null;
|
|
2081
|
-
/** View count (null if not available) */
|
|
2082
|
-
view_count: number | null;
|
|
2083
2026
|
/** Post creation timestamp (Unix) */
|
|
2084
2027
|
created_utc: number;
|
|
2085
2028
|
/** Post creation time as ISO 8601 UTC string */
|
|
2086
2029
|
created_at: string | null;
|
|
2087
|
-
/** Edited timestamp as float, false if not edited, or null */
|
|
2088
|
-
edited: number | boolean | null;
|
|
2089
|
-
/** Edit time as ISO 8601 UTC string (null if not edited) */
|
|
2090
|
-
edited_at: string | null;
|
|
2091
2030
|
/** Whether the post is a self (text) post */
|
|
2092
2031
|
is_self: boolean;
|
|
2093
|
-
/** Whether the post is a video */
|
|
2094
|
-
is_video: boolean;
|
|
2095
2032
|
/** Whether the post is a gallery */
|
|
2096
2033
|
is_gallery: boolean;
|
|
2097
2034
|
/** Whether the post is marked NSFW */
|
|
2098
2035
|
is_nsfw: boolean;
|
|
2099
2036
|
/** Whether the post is marked as a spoiler */
|
|
2100
2037
|
is_spoiler: boolean;
|
|
2101
|
-
/** Whether the post is locked */
|
|
2102
|
-
is_locked: boolean;
|
|
2103
2038
|
/** Whether the post is stickied */
|
|
2104
2039
|
is_stickied: boolean;
|
|
2105
|
-
/** Whether the post is archived */
|
|
2106
|
-
is_archived: boolean;
|
|
2107
|
-
/** Whether the post is pinned */
|
|
2108
|
-
is_pinned: boolean;
|
|
2109
2040
|
/** Whether the post is original content */
|
|
2110
2041
|
is_original_content: boolean;
|
|
2111
|
-
/** Whether the post is robot-indexable */
|
|
2112
|
-
is_robot_indexable: boolean;
|
|
2113
|
-
/** Whether the post is a meta post */
|
|
2114
|
-
is_meta: boolean;
|
|
2115
|
-
/** Whether the post can be crossposted */
|
|
2116
|
-
is_crosspostable: boolean;
|
|
2117
|
-
/** Whether to send reply notifications */
|
|
2118
|
-
send_replies: boolean;
|
|
2119
2042
|
/** Post flair text (null if no flair) */
|
|
2120
2043
|
link_flair_text: string | null;
|
|
2121
|
-
/** Post flair background color */
|
|
2122
|
-
link_flair_background_color: string | null;
|
|
2123
|
-
/** Post flair text color */
|
|
2124
|
-
link_flair_text_color: string | null;
|
|
2125
|
-
/** Post flair template ID */
|
|
2126
|
-
link_flair_template_id: string | null;
|
|
2127
|
-
/** Post flair type (text or richtext) */
|
|
2128
|
-
link_flair_type: string | null;
|
|
2129
|
-
/** Post flair CSS class */
|
|
2130
|
-
link_flair_css_class: string | null;
|
|
2131
|
-
/** Distinguished status (moderator, admin, or null) */
|
|
2132
|
-
distinguished: string | null;
|
|
2133
|
-
/** Post thumbnail URL (may be "self", "default", or "nsfw") */
|
|
2134
|
-
thumbnail: string | null;
|
|
2135
|
-
/** Thumbnail width in pixels */
|
|
2136
|
-
thumbnail_width: number | null;
|
|
2137
|
-
/** Thumbnail height in pixels */
|
|
2138
|
-
thumbnail_height: number | null;
|
|
2139
|
-
/** Post hint (image, video, link, self, etc.) */
|
|
2140
|
-
post_hint: string | null;
|
|
2141
|
-
/** Preview images */
|
|
2142
|
-
preview_images: RedditPreviewImage[];
|
|
2143
|
-
/** Embedded media metadata */
|
|
2144
|
-
media: RedditMedia | null;
|
|
2145
|
-
/** Gallery item data */
|
|
2146
|
-
gallery_data: Record<string, unknown>[] | null;
|
|
2147
|
-
/** Parent post fullname if this is a crosspost */
|
|
2148
|
-
crosspost_parent: string | null;
|
|
2149
|
-
/** Suggested sort for comments (null if default) */
|
|
2150
|
-
suggested_sort: string | null;
|
|
2151
|
-
/** Total awards received */
|
|
2152
|
-
total_awards: number;
|
|
2153
|
-
/** Award details */
|
|
2154
|
-
awards: RedditAward[];
|
|
2155
2044
|
/** Number of gildings */
|
|
2156
2045
|
gilded: number;
|
|
2157
|
-
/** Content categories */
|
|
2158
|
-
content_categories: string[] | null;
|
|
2159
|
-
/** Removal category (null if not removed) */
|
|
2160
|
-
removed_by_category: string | null;
|
|
2161
|
-
/** Treatment tags */
|
|
2162
|
-
treatment_tags: string[];
|
|
2163
2046
|
}
|
|
2164
2047
|
/**
|
|
2165
2048
|
* A Reddit comment.
|
|
@@ -2177,60 +2060,26 @@ interface RedditComment {
|
|
|
2177
2060
|
author: string;
|
|
2178
2061
|
/** Author fullname (t2_ prefixed) */
|
|
2179
2062
|
author_fullname: string | null;
|
|
2180
|
-
/** Author flair text */
|
|
2181
|
-
author_flair_text: string | null;
|
|
2182
|
-
/** Author flair type (text or richtext) */
|
|
2183
|
-
author_flair_type: string | null;
|
|
2184
2063
|
/** Subreddit name (without r/ prefix) */
|
|
2185
2064
|
subreddit: string;
|
|
2186
2065
|
/** Subreddit fullname (t5_ prefixed) */
|
|
2187
2066
|
subreddit_id: string | null;
|
|
2188
2067
|
/** Subreddit with r/ prefix */
|
|
2189
2068
|
subreddit_name_prefixed: string | null;
|
|
2190
|
-
/** Subreddit type (public, private, restricted, etc.) */
|
|
2191
|
-
subreddit_type: string | null;
|
|
2192
2069
|
/** Post ID this comment belongs to */
|
|
2193
2070
|
post_id: string | null;
|
|
2194
|
-
/** Title of the parent post */
|
|
2195
|
-
post_title: string | null;
|
|
2196
|
-
/** Parent ID (t3_ for top-level, t1_ for reply) */
|
|
2197
|
-
parent_id: string | null;
|
|
2198
2071
|
/** Permalink to comment */
|
|
2199
2072
|
permalink: string;
|
|
2200
2073
|
/** Comment score (upvotes minus downvotes) */
|
|
2201
2074
|
score: number;
|
|
2202
|
-
/** Raw upvotes */
|
|
2203
|
-
ups: number;
|
|
2204
|
-
/** Raw downvotes */
|
|
2205
|
-
downs: number;
|
|
2206
|
-
/** Controversiality score */
|
|
2207
|
-
controversiality: number;
|
|
2208
2075
|
/** Depth level (0 for top-level comments) */
|
|
2209
2076
|
depth: number;
|
|
2210
2077
|
/** Comment creation timestamp (Unix) */
|
|
2211
2078
|
created_utc: number;
|
|
2212
2079
|
/** Comment creation time as ISO 8601 UTC string */
|
|
2213
2080
|
created_at: string | null;
|
|
2214
|
-
/** Edited timestamp as float, false if not edited, or null */
|
|
2215
|
-
edited: number | boolean | null;
|
|
2216
|
-
/** Edit time as ISO 8601 UTC string (null if not edited) */
|
|
2217
|
-
edited_at: string | null;
|
|
2218
|
-
/** Whether the author is the post submitter */
|
|
2219
|
-
is_submitter: boolean;
|
|
2220
2081
|
/** Whether the comment is stickied */
|
|
2221
2082
|
is_stickied: boolean;
|
|
2222
|
-
/** Whether the comment is locked */
|
|
2223
|
-
is_locked: boolean;
|
|
2224
|
-
/** Whether the comment score is hidden */
|
|
2225
|
-
is_score_hidden: boolean;
|
|
2226
|
-
/** Whether to send reply notifications */
|
|
2227
|
-
send_replies: boolean;
|
|
2228
|
-
/** Distinguished status (moderator, admin, or null) */
|
|
2229
|
-
distinguished: string | null;
|
|
2230
|
-
/** Total awards received */
|
|
2231
|
-
total_awards: number;
|
|
2232
|
-
/** Number of gildings */
|
|
2233
|
-
gilded: number;
|
|
2234
2083
|
/** Nested replies (empty array if none) */
|
|
2235
2084
|
replies: RedditComment[];
|
|
2236
2085
|
}
|
|
@@ -2250,149 +2099,37 @@ interface RedditSubreddit {
|
|
|
2250
2099
|
title: string;
|
|
2251
2100
|
/** Full sidebar description (markdown) */
|
|
2252
2101
|
description: string;
|
|
2253
|
-
/** Full sidebar description as HTML */
|
|
2254
|
-
description_html: string | null;
|
|
2255
2102
|
/** Short public description */
|
|
2256
2103
|
public_description: string;
|
|
2257
|
-
/** Short public description as HTML */
|
|
2258
|
-
public_description_html: string | null;
|
|
2259
|
-
/** Text shown when submitting a new post */
|
|
2260
|
-
submit_text: string;
|
|
2261
|
-
/** Submit text as HTML */
|
|
2262
|
-
submit_text_html: string | null;
|
|
2263
|
-
/** Header title text */
|
|
2264
|
-
header_title: string | null;
|
|
2265
2104
|
/** Subreddit URL path */
|
|
2266
2105
|
url: string;
|
|
2267
|
-
/** Subreddit type (public, private, restricted, etc.) */
|
|
2268
|
-
type: string;
|
|
2269
|
-
/** Allowed submission type (any, link, self) */
|
|
2270
|
-
submission_type: string | null;
|
|
2271
|
-
/** Number of subscribers */
|
|
2272
|
-
subscribers: number;
|
|
2273
|
-
/** Number of users currently online */
|
|
2274
|
-
active_users: number | null;
|
|
2275
2106
|
/** Creation timestamp (Unix) */
|
|
2276
2107
|
created_utc: number;
|
|
2277
2108
|
/** Creation time as ISO 8601 UTC string */
|
|
2278
2109
|
created_at: string | null;
|
|
2279
2110
|
/** Whether the subreddit is marked NSFW */
|
|
2280
2111
|
is_nsfw: boolean;
|
|
2281
|
-
/** Whether the subreddit is quarantined */
|
|
2282
|
-
is_quarantined: boolean;
|
|
2283
|
-
/** Whether the subreddit is advertiser-friendly */
|
|
2284
|
-
is_advertiser_friendly: boolean;
|
|
2285
|
-
/** Advertiser category */
|
|
2286
|
-
advertiser_category: string | null;
|
|
2287
|
-
/** Subreddit language code */
|
|
2288
|
-
language: string | null;
|
|
2289
|
-
/** Subreddit icon URL */
|
|
2290
|
-
icon_url: string | null;
|
|
2291
|
-
/** Header image URL */
|
|
2292
|
-
header_url: string | null;
|
|
2293
|
-
/** Banner image URL */
|
|
2294
|
-
banner_url: string | null;
|
|
2295
|
-
/** Banner background color (hex) */
|
|
2296
|
-
banner_background_color: string | null;
|
|
2297
|
-
/** Primary theme color (hex) */
|
|
2298
|
-
primary_color: string | null;
|
|
2299
|
-
/** Key theme color (hex) */
|
|
2300
|
-
key_color: string | null;
|
|
2301
|
-
/** Whether the wiki is enabled */
|
|
2302
|
-
wiki_enabled: boolean;
|
|
2303
|
-
/** Whether image posts are allowed */
|
|
2304
|
-
allow_images: boolean;
|
|
2305
|
-
/** Whether video posts are allowed */
|
|
2306
|
-
allow_videos: boolean;
|
|
2307
|
-
/** Whether gallery posts are allowed */
|
|
2308
|
-
allow_galleries: boolean;
|
|
2309
|
-
/** Whether polls are allowed */
|
|
2310
|
-
allow_polls: boolean;
|
|
2311
|
-
/** Whether the subreddit appears in discovery feeds */
|
|
2312
|
-
allow_discovery: boolean;
|
|
2313
|
-
/** Whether spoiler tags are enabled */
|
|
2314
|
-
spoilers_enabled: boolean;
|
|
2315
|
-
/** Whether custom emojis are enabled */
|
|
2316
|
-
emojis_enabled: boolean;
|
|
2317
|
-
/** Whether free-form reports are enabled */
|
|
2318
|
-
free_form_reports: boolean;
|
|
2319
|
-
/** Whether the subreddit accepts followers */
|
|
2320
|
-
accept_followers: boolean;
|
|
2321
|
-
/** Whether posting is restricted */
|
|
2322
|
-
restrict_posting: boolean;
|
|
2323
|
-
/** Whether link flairs are enabled */
|
|
2324
|
-
link_flair_enabled: boolean;
|
|
2325
|
-
/** Position of link flair (left, right, or null) */
|
|
2326
|
-
link_flair_position: string | null;
|
|
2327
|
-
/** Whether user flairs are enabled */
|
|
2328
|
-
user_flair_enabled: boolean;
|
|
2329
|
-
/** Position of user flair (left, right, or null) */
|
|
2330
|
-
user_flair_position: string | null;
|
|
2331
|
-
/** Minutes before comment scores are shown */
|
|
2332
|
-
comment_score_hide_mins: number;
|
|
2333
|
-
/** Whether posts are automatically archived */
|
|
2334
|
-
should_archive_posts: boolean;
|
|
2335
|
-
/** Media types allowed in comments */
|
|
2336
|
-
allowed_media_in_comments: string[];
|
|
2337
2112
|
}
|
|
2338
2113
|
/**
|
|
2339
2114
|
* A Reddit user profile.
|
|
2340
2115
|
*/
|
|
2341
2116
|
interface RedditUser {
|
|
2342
|
-
/** Unique user identifier */
|
|
2343
|
-
id: string;
|
|
2344
|
-
/** Fullname with t2_ prefix */
|
|
2345
|
-
fullname: string | null;
|
|
2346
2117
|
/** Username (without u/ prefix) */
|
|
2347
2118
|
name: string;
|
|
2348
2119
|
/** Username with u/ prefix */
|
|
2349
2120
|
display_name_prefixed: string | null;
|
|
2350
|
-
/** Avatar/profile icon URL */
|
|
2351
|
-
icon_url: string | null;
|
|
2352
|
-
/** Snoovatar image URL */
|
|
2353
|
-
snoovatar_url: string | null;
|
|
2354
|
-
/** Profile banner URL */
|
|
2355
|
-
banner_url: string | null;
|
|
2356
|
-
/** Profile title/tagline */
|
|
2357
|
-
profile_title: string | null;
|
|
2358
|
-
/** Profile page URL */
|
|
2359
|
-
profile_url: string | null;
|
|
2360
|
-
/** User description / about text */
|
|
2361
|
-
description: string;
|
|
2362
2121
|
/** Post karma */
|
|
2363
2122
|
link_karma: number;
|
|
2364
2123
|
/** Comment karma */
|
|
2365
2124
|
comment_karma: number;
|
|
2366
|
-
/** Karma from received awards */
|
|
2367
|
-
awardee_karma: number;
|
|
2368
|
-
/** Karma from given awards */
|
|
2369
|
-
awarder_karma: number;
|
|
2370
2125
|
/** Combined total karma */
|
|
2371
2126
|
total_karma: number;
|
|
2372
2127
|
/** Account creation timestamp (Unix) */
|
|
2373
2128
|
created_utc: number;
|
|
2374
2129
|
/** Account creation time as ISO 8601 UTC string */
|
|
2375
2130
|
created_at: string | null;
|
|
2376
|
-
/** Whether the account email is verified */
|
|
2377
|
-
has_verified_email: boolean;
|
|
2378
|
-
/** Whether the account is verified */
|
|
2379
|
-
verified: boolean;
|
|
2380
|
-
/** Whether the account accepts followers */
|
|
2381
|
-
accepts_followers: boolean;
|
|
2382
|
-
/** Whether the account has subscribed to Reddit */
|
|
2383
|
-
has_subscribed: boolean;
|
|
2384
|
-
/** Whether the account is a Reddit employee */
|
|
2385
|
-
is_employee: boolean;
|
|
2386
|
-
/** Whether the account is a moderator somewhere */
|
|
2387
|
-
is_mod: boolean;
|
|
2388
2131
|
/** Whether the account has Reddit Premium */
|
|
2389
2132
|
is_gold: boolean;
|
|
2390
|
-
/** Whether the account is suspended */
|
|
2391
|
-
is_suspended: boolean;
|
|
2392
|
-
/** Whether the profile is NSFW */
|
|
2393
|
-
is_nsfw: boolean;
|
|
2394
|
-
/** Whether the snoovatar is shown in comments */
|
|
2395
|
-
pref_show_snoovatar: boolean;
|
|
2396
2133
|
}
|
|
2397
2134
|
/**
|
|
2398
2135
|
* A subreddit rule.
|
|
@@ -2404,12 +2141,6 @@ interface RedditRule {
|
|
|
2404
2141
|
short_name: string;
|
|
2405
2142
|
/** Full rule description (markdown) */
|
|
2406
2143
|
description: string;
|
|
2407
|
-
/** Full rule description as HTML */
|
|
2408
|
-
description_html: string | null;
|
|
2409
|
-
/** What the rule applies to (link, comment, all) */
|
|
2410
|
-
kind: "link" | "comment" | "all" | string;
|
|
2411
|
-
/** Violation reason label */
|
|
2412
|
-
violation_reason: string | null;
|
|
2413
2144
|
}
|
|
2414
2145
|
/**
|
|
2415
2146
|
* A subreddit wiki page.
|
package/dist/index.d.ts
CHANGED
|
@@ -1985,45 +1985,6 @@ declare class GoogleClient {
|
|
|
1985
1985
|
*
|
|
1986
1986
|
* This module contains all the data types used by the Reddit API client.
|
|
1987
1987
|
*/
|
|
1988
|
-
/**
|
|
1989
|
-
* A preview image with dimensions.
|
|
1990
|
-
*/
|
|
1991
|
-
interface RedditPreviewImage {
|
|
1992
|
-
/** Image URL */
|
|
1993
|
-
url: string;
|
|
1994
|
-
/** Image width in pixels */
|
|
1995
|
-
width: number;
|
|
1996
|
-
/** Image height in pixels */
|
|
1997
|
-
height: number;
|
|
1998
|
-
}
|
|
1999
|
-
/**
|
|
2000
|
-
* Embedded media attached to a post.
|
|
2001
|
-
*/
|
|
2002
|
-
interface RedditMedia {
|
|
2003
|
-
/** Media type identifier */
|
|
2004
|
-
type: string | null;
|
|
2005
|
-
/** Direct media URL */
|
|
2006
|
-
url: string | null;
|
|
2007
|
-
/** Thumbnail URL */
|
|
2008
|
-
thumbnail_url: string | null;
|
|
2009
|
-
/** Media width in pixels */
|
|
2010
|
-
width: number | null;
|
|
2011
|
-
/** Media height in pixels */
|
|
2012
|
-
height: number | null;
|
|
2013
|
-
}
|
|
2014
|
-
/**
|
|
2015
|
-
* An award given to a post or comment.
|
|
2016
|
-
*/
|
|
2017
|
-
interface RedditAward {
|
|
2018
|
-
/** Award ID */
|
|
2019
|
-
id: string | null;
|
|
2020
|
-
/** Award name */
|
|
2021
|
-
name: string;
|
|
2022
|
-
/** Number of this award given */
|
|
2023
|
-
count: number;
|
|
2024
|
-
/** Award icon URL */
|
|
2025
|
-
icon_url: string | null;
|
|
2026
|
-
}
|
|
2027
1988
|
/**
|
|
2028
1989
|
* A Reddit post (link or self post).
|
|
2029
1990
|
*/
|
|
@@ -2048,12 +2009,6 @@ interface RedditPost {
|
|
|
2048
2009
|
author: string;
|
|
2049
2010
|
/** Author fullname (t2_ prefixed) */
|
|
2050
2011
|
author_fullname: string | null;
|
|
2051
|
-
/** Author flair text */
|
|
2052
|
-
author_flair_text: string | null;
|
|
2053
|
-
/** Author flair type (text or richtext) */
|
|
2054
|
-
author_flair_type: string | null;
|
|
2055
|
-
/** Author flair template ID */
|
|
2056
|
-
author_flair_template_id: string | null;
|
|
2057
2012
|
/** Subreddit name (without r/ prefix) */
|
|
2058
2013
|
subreddit: string;
|
|
2059
2014
|
/** Subreddit fullname (t5_ prefixed) */
|
|
@@ -2062,104 +2017,32 @@ interface RedditPost {
|
|
|
2062
2017
|
subreddit_name_prefixed: string | null;
|
|
2063
2018
|
/** Subreddit type (public, private, restricted, etc.) */
|
|
2064
2019
|
subreddit_type: string | null;
|
|
2065
|
-
/** Number of subscribers in the subreddit */
|
|
2066
|
-
subreddit_subscribers: number | null;
|
|
2067
2020
|
/** Post score (upvotes minus downvotes) */
|
|
2068
2021
|
score: number;
|
|
2069
|
-
/** Raw upvotes */
|
|
2070
|
-
ups: number;
|
|
2071
|
-
/** Raw downvotes */
|
|
2072
|
-
downs: number;
|
|
2073
|
-
/** Upvote ratio as a decimal (e.g. 0.95) */
|
|
2074
|
-
upvote_ratio: number | null;
|
|
2075
2022
|
/** Number of comments */
|
|
2076
2023
|
num_comments: number;
|
|
2077
2024
|
/** Number of crossposts */
|
|
2078
2025
|
num_crossposts: number;
|
|
2079
|
-
/** Number of duplicate submissions */
|
|
2080
|
-
num_duplicates: number | null;
|
|
2081
|
-
/** View count (null if not available) */
|
|
2082
|
-
view_count: number | null;
|
|
2083
2026
|
/** Post creation timestamp (Unix) */
|
|
2084
2027
|
created_utc: number;
|
|
2085
2028
|
/** Post creation time as ISO 8601 UTC string */
|
|
2086
2029
|
created_at: string | null;
|
|
2087
|
-
/** Edited timestamp as float, false if not edited, or null */
|
|
2088
|
-
edited: number | boolean | null;
|
|
2089
|
-
/** Edit time as ISO 8601 UTC string (null if not edited) */
|
|
2090
|
-
edited_at: string | null;
|
|
2091
2030
|
/** Whether the post is a self (text) post */
|
|
2092
2031
|
is_self: boolean;
|
|
2093
|
-
/** Whether the post is a video */
|
|
2094
|
-
is_video: boolean;
|
|
2095
2032
|
/** Whether the post is a gallery */
|
|
2096
2033
|
is_gallery: boolean;
|
|
2097
2034
|
/** Whether the post is marked NSFW */
|
|
2098
2035
|
is_nsfw: boolean;
|
|
2099
2036
|
/** Whether the post is marked as a spoiler */
|
|
2100
2037
|
is_spoiler: boolean;
|
|
2101
|
-
/** Whether the post is locked */
|
|
2102
|
-
is_locked: boolean;
|
|
2103
2038
|
/** Whether the post is stickied */
|
|
2104
2039
|
is_stickied: boolean;
|
|
2105
|
-
/** Whether the post is archived */
|
|
2106
|
-
is_archived: boolean;
|
|
2107
|
-
/** Whether the post is pinned */
|
|
2108
|
-
is_pinned: boolean;
|
|
2109
2040
|
/** Whether the post is original content */
|
|
2110
2041
|
is_original_content: boolean;
|
|
2111
|
-
/** Whether the post is robot-indexable */
|
|
2112
|
-
is_robot_indexable: boolean;
|
|
2113
|
-
/** Whether the post is a meta post */
|
|
2114
|
-
is_meta: boolean;
|
|
2115
|
-
/** Whether the post can be crossposted */
|
|
2116
|
-
is_crosspostable: boolean;
|
|
2117
|
-
/** Whether to send reply notifications */
|
|
2118
|
-
send_replies: boolean;
|
|
2119
2042
|
/** Post flair text (null if no flair) */
|
|
2120
2043
|
link_flair_text: string | null;
|
|
2121
|
-
/** Post flair background color */
|
|
2122
|
-
link_flair_background_color: string | null;
|
|
2123
|
-
/** Post flair text color */
|
|
2124
|
-
link_flair_text_color: string | null;
|
|
2125
|
-
/** Post flair template ID */
|
|
2126
|
-
link_flair_template_id: string | null;
|
|
2127
|
-
/** Post flair type (text or richtext) */
|
|
2128
|
-
link_flair_type: string | null;
|
|
2129
|
-
/** Post flair CSS class */
|
|
2130
|
-
link_flair_css_class: string | null;
|
|
2131
|
-
/** Distinguished status (moderator, admin, or null) */
|
|
2132
|
-
distinguished: string | null;
|
|
2133
|
-
/** Post thumbnail URL (may be "self", "default", or "nsfw") */
|
|
2134
|
-
thumbnail: string | null;
|
|
2135
|
-
/** Thumbnail width in pixels */
|
|
2136
|
-
thumbnail_width: number | null;
|
|
2137
|
-
/** Thumbnail height in pixels */
|
|
2138
|
-
thumbnail_height: number | null;
|
|
2139
|
-
/** Post hint (image, video, link, self, etc.) */
|
|
2140
|
-
post_hint: string | null;
|
|
2141
|
-
/** Preview images */
|
|
2142
|
-
preview_images: RedditPreviewImage[];
|
|
2143
|
-
/** Embedded media metadata */
|
|
2144
|
-
media: RedditMedia | null;
|
|
2145
|
-
/** Gallery item data */
|
|
2146
|
-
gallery_data: Record<string, unknown>[] | null;
|
|
2147
|
-
/** Parent post fullname if this is a crosspost */
|
|
2148
|
-
crosspost_parent: string | null;
|
|
2149
|
-
/** Suggested sort for comments (null if default) */
|
|
2150
|
-
suggested_sort: string | null;
|
|
2151
|
-
/** Total awards received */
|
|
2152
|
-
total_awards: number;
|
|
2153
|
-
/** Award details */
|
|
2154
|
-
awards: RedditAward[];
|
|
2155
2044
|
/** Number of gildings */
|
|
2156
2045
|
gilded: number;
|
|
2157
|
-
/** Content categories */
|
|
2158
|
-
content_categories: string[] | null;
|
|
2159
|
-
/** Removal category (null if not removed) */
|
|
2160
|
-
removed_by_category: string | null;
|
|
2161
|
-
/** Treatment tags */
|
|
2162
|
-
treatment_tags: string[];
|
|
2163
2046
|
}
|
|
2164
2047
|
/**
|
|
2165
2048
|
* A Reddit comment.
|
|
@@ -2177,60 +2060,26 @@ interface RedditComment {
|
|
|
2177
2060
|
author: string;
|
|
2178
2061
|
/** Author fullname (t2_ prefixed) */
|
|
2179
2062
|
author_fullname: string | null;
|
|
2180
|
-
/** Author flair text */
|
|
2181
|
-
author_flair_text: string | null;
|
|
2182
|
-
/** Author flair type (text or richtext) */
|
|
2183
|
-
author_flair_type: string | null;
|
|
2184
2063
|
/** Subreddit name (without r/ prefix) */
|
|
2185
2064
|
subreddit: string;
|
|
2186
2065
|
/** Subreddit fullname (t5_ prefixed) */
|
|
2187
2066
|
subreddit_id: string | null;
|
|
2188
2067
|
/** Subreddit with r/ prefix */
|
|
2189
2068
|
subreddit_name_prefixed: string | null;
|
|
2190
|
-
/** Subreddit type (public, private, restricted, etc.) */
|
|
2191
|
-
subreddit_type: string | null;
|
|
2192
2069
|
/** Post ID this comment belongs to */
|
|
2193
2070
|
post_id: string | null;
|
|
2194
|
-
/** Title of the parent post */
|
|
2195
|
-
post_title: string | null;
|
|
2196
|
-
/** Parent ID (t3_ for top-level, t1_ for reply) */
|
|
2197
|
-
parent_id: string | null;
|
|
2198
2071
|
/** Permalink to comment */
|
|
2199
2072
|
permalink: string;
|
|
2200
2073
|
/** Comment score (upvotes minus downvotes) */
|
|
2201
2074
|
score: number;
|
|
2202
|
-
/** Raw upvotes */
|
|
2203
|
-
ups: number;
|
|
2204
|
-
/** Raw downvotes */
|
|
2205
|
-
downs: number;
|
|
2206
|
-
/** Controversiality score */
|
|
2207
|
-
controversiality: number;
|
|
2208
2075
|
/** Depth level (0 for top-level comments) */
|
|
2209
2076
|
depth: number;
|
|
2210
2077
|
/** Comment creation timestamp (Unix) */
|
|
2211
2078
|
created_utc: number;
|
|
2212
2079
|
/** Comment creation time as ISO 8601 UTC string */
|
|
2213
2080
|
created_at: string | null;
|
|
2214
|
-
/** Edited timestamp as float, false if not edited, or null */
|
|
2215
|
-
edited: number | boolean | null;
|
|
2216
|
-
/** Edit time as ISO 8601 UTC string (null if not edited) */
|
|
2217
|
-
edited_at: string | null;
|
|
2218
|
-
/** Whether the author is the post submitter */
|
|
2219
|
-
is_submitter: boolean;
|
|
2220
2081
|
/** Whether the comment is stickied */
|
|
2221
2082
|
is_stickied: boolean;
|
|
2222
|
-
/** Whether the comment is locked */
|
|
2223
|
-
is_locked: boolean;
|
|
2224
|
-
/** Whether the comment score is hidden */
|
|
2225
|
-
is_score_hidden: boolean;
|
|
2226
|
-
/** Whether to send reply notifications */
|
|
2227
|
-
send_replies: boolean;
|
|
2228
|
-
/** Distinguished status (moderator, admin, or null) */
|
|
2229
|
-
distinguished: string | null;
|
|
2230
|
-
/** Total awards received */
|
|
2231
|
-
total_awards: number;
|
|
2232
|
-
/** Number of gildings */
|
|
2233
|
-
gilded: number;
|
|
2234
2083
|
/** Nested replies (empty array if none) */
|
|
2235
2084
|
replies: RedditComment[];
|
|
2236
2085
|
}
|
|
@@ -2250,149 +2099,37 @@ interface RedditSubreddit {
|
|
|
2250
2099
|
title: string;
|
|
2251
2100
|
/** Full sidebar description (markdown) */
|
|
2252
2101
|
description: string;
|
|
2253
|
-
/** Full sidebar description as HTML */
|
|
2254
|
-
description_html: string | null;
|
|
2255
2102
|
/** Short public description */
|
|
2256
2103
|
public_description: string;
|
|
2257
|
-
/** Short public description as HTML */
|
|
2258
|
-
public_description_html: string | null;
|
|
2259
|
-
/** Text shown when submitting a new post */
|
|
2260
|
-
submit_text: string;
|
|
2261
|
-
/** Submit text as HTML */
|
|
2262
|
-
submit_text_html: string | null;
|
|
2263
|
-
/** Header title text */
|
|
2264
|
-
header_title: string | null;
|
|
2265
2104
|
/** Subreddit URL path */
|
|
2266
2105
|
url: string;
|
|
2267
|
-
/** Subreddit type (public, private, restricted, etc.) */
|
|
2268
|
-
type: string;
|
|
2269
|
-
/** Allowed submission type (any, link, self) */
|
|
2270
|
-
submission_type: string | null;
|
|
2271
|
-
/** Number of subscribers */
|
|
2272
|
-
subscribers: number;
|
|
2273
|
-
/** Number of users currently online */
|
|
2274
|
-
active_users: number | null;
|
|
2275
2106
|
/** Creation timestamp (Unix) */
|
|
2276
2107
|
created_utc: number;
|
|
2277
2108
|
/** Creation time as ISO 8601 UTC string */
|
|
2278
2109
|
created_at: string | null;
|
|
2279
2110
|
/** Whether the subreddit is marked NSFW */
|
|
2280
2111
|
is_nsfw: boolean;
|
|
2281
|
-
/** Whether the subreddit is quarantined */
|
|
2282
|
-
is_quarantined: boolean;
|
|
2283
|
-
/** Whether the subreddit is advertiser-friendly */
|
|
2284
|
-
is_advertiser_friendly: boolean;
|
|
2285
|
-
/** Advertiser category */
|
|
2286
|
-
advertiser_category: string | null;
|
|
2287
|
-
/** Subreddit language code */
|
|
2288
|
-
language: string | null;
|
|
2289
|
-
/** Subreddit icon URL */
|
|
2290
|
-
icon_url: string | null;
|
|
2291
|
-
/** Header image URL */
|
|
2292
|
-
header_url: string | null;
|
|
2293
|
-
/** Banner image URL */
|
|
2294
|
-
banner_url: string | null;
|
|
2295
|
-
/** Banner background color (hex) */
|
|
2296
|
-
banner_background_color: string | null;
|
|
2297
|
-
/** Primary theme color (hex) */
|
|
2298
|
-
primary_color: string | null;
|
|
2299
|
-
/** Key theme color (hex) */
|
|
2300
|
-
key_color: string | null;
|
|
2301
|
-
/** Whether the wiki is enabled */
|
|
2302
|
-
wiki_enabled: boolean;
|
|
2303
|
-
/** Whether image posts are allowed */
|
|
2304
|
-
allow_images: boolean;
|
|
2305
|
-
/** Whether video posts are allowed */
|
|
2306
|
-
allow_videos: boolean;
|
|
2307
|
-
/** Whether gallery posts are allowed */
|
|
2308
|
-
allow_galleries: boolean;
|
|
2309
|
-
/** Whether polls are allowed */
|
|
2310
|
-
allow_polls: boolean;
|
|
2311
|
-
/** Whether the subreddit appears in discovery feeds */
|
|
2312
|
-
allow_discovery: boolean;
|
|
2313
|
-
/** Whether spoiler tags are enabled */
|
|
2314
|
-
spoilers_enabled: boolean;
|
|
2315
|
-
/** Whether custom emojis are enabled */
|
|
2316
|
-
emojis_enabled: boolean;
|
|
2317
|
-
/** Whether free-form reports are enabled */
|
|
2318
|
-
free_form_reports: boolean;
|
|
2319
|
-
/** Whether the subreddit accepts followers */
|
|
2320
|
-
accept_followers: boolean;
|
|
2321
|
-
/** Whether posting is restricted */
|
|
2322
|
-
restrict_posting: boolean;
|
|
2323
|
-
/** Whether link flairs are enabled */
|
|
2324
|
-
link_flair_enabled: boolean;
|
|
2325
|
-
/** Position of link flair (left, right, or null) */
|
|
2326
|
-
link_flair_position: string | null;
|
|
2327
|
-
/** Whether user flairs are enabled */
|
|
2328
|
-
user_flair_enabled: boolean;
|
|
2329
|
-
/** Position of user flair (left, right, or null) */
|
|
2330
|
-
user_flair_position: string | null;
|
|
2331
|
-
/** Minutes before comment scores are shown */
|
|
2332
|
-
comment_score_hide_mins: number;
|
|
2333
|
-
/** Whether posts are automatically archived */
|
|
2334
|
-
should_archive_posts: boolean;
|
|
2335
|
-
/** Media types allowed in comments */
|
|
2336
|
-
allowed_media_in_comments: string[];
|
|
2337
2112
|
}
|
|
2338
2113
|
/**
|
|
2339
2114
|
* A Reddit user profile.
|
|
2340
2115
|
*/
|
|
2341
2116
|
interface RedditUser {
|
|
2342
|
-
/** Unique user identifier */
|
|
2343
|
-
id: string;
|
|
2344
|
-
/** Fullname with t2_ prefix */
|
|
2345
|
-
fullname: string | null;
|
|
2346
2117
|
/** Username (without u/ prefix) */
|
|
2347
2118
|
name: string;
|
|
2348
2119
|
/** Username with u/ prefix */
|
|
2349
2120
|
display_name_prefixed: string | null;
|
|
2350
|
-
/** Avatar/profile icon URL */
|
|
2351
|
-
icon_url: string | null;
|
|
2352
|
-
/** Snoovatar image URL */
|
|
2353
|
-
snoovatar_url: string | null;
|
|
2354
|
-
/** Profile banner URL */
|
|
2355
|
-
banner_url: string | null;
|
|
2356
|
-
/** Profile title/tagline */
|
|
2357
|
-
profile_title: string | null;
|
|
2358
|
-
/** Profile page URL */
|
|
2359
|
-
profile_url: string | null;
|
|
2360
|
-
/** User description / about text */
|
|
2361
|
-
description: string;
|
|
2362
2121
|
/** Post karma */
|
|
2363
2122
|
link_karma: number;
|
|
2364
2123
|
/** Comment karma */
|
|
2365
2124
|
comment_karma: number;
|
|
2366
|
-
/** Karma from received awards */
|
|
2367
|
-
awardee_karma: number;
|
|
2368
|
-
/** Karma from given awards */
|
|
2369
|
-
awarder_karma: number;
|
|
2370
2125
|
/** Combined total karma */
|
|
2371
2126
|
total_karma: number;
|
|
2372
2127
|
/** Account creation timestamp (Unix) */
|
|
2373
2128
|
created_utc: number;
|
|
2374
2129
|
/** Account creation time as ISO 8601 UTC string */
|
|
2375
2130
|
created_at: string | null;
|
|
2376
|
-
/** Whether the account email is verified */
|
|
2377
|
-
has_verified_email: boolean;
|
|
2378
|
-
/** Whether the account is verified */
|
|
2379
|
-
verified: boolean;
|
|
2380
|
-
/** Whether the account accepts followers */
|
|
2381
|
-
accepts_followers: boolean;
|
|
2382
|
-
/** Whether the account has subscribed to Reddit */
|
|
2383
|
-
has_subscribed: boolean;
|
|
2384
|
-
/** Whether the account is a Reddit employee */
|
|
2385
|
-
is_employee: boolean;
|
|
2386
|
-
/** Whether the account is a moderator somewhere */
|
|
2387
|
-
is_mod: boolean;
|
|
2388
2131
|
/** Whether the account has Reddit Premium */
|
|
2389
2132
|
is_gold: boolean;
|
|
2390
|
-
/** Whether the account is suspended */
|
|
2391
|
-
is_suspended: boolean;
|
|
2392
|
-
/** Whether the profile is NSFW */
|
|
2393
|
-
is_nsfw: boolean;
|
|
2394
|
-
/** Whether the snoovatar is shown in comments */
|
|
2395
|
-
pref_show_snoovatar: boolean;
|
|
2396
2133
|
}
|
|
2397
2134
|
/**
|
|
2398
2135
|
* A subreddit rule.
|
|
@@ -2404,12 +2141,6 @@ interface RedditRule {
|
|
|
2404
2141
|
short_name: string;
|
|
2405
2142
|
/** Full rule description (markdown) */
|
|
2406
2143
|
description: string;
|
|
2407
|
-
/** Full rule description as HTML */
|
|
2408
|
-
description_html: string | null;
|
|
2409
|
-
/** What the rule applies to (link, comment, all) */
|
|
2410
|
-
kind: "link" | "comment" | "all" | string;
|
|
2411
|
-
/** Violation reason label */
|
|
2412
|
-
violation_reason: string | null;
|
|
2413
2144
|
}
|
|
2414
2145
|
/**
|
|
2415
2146
|
* A subreddit wiki page.
|
package/package.json
CHANGED