@@ -37,22 +37,41 @@ export interface RadarItem {
3737
3838 createdAt : string ;
3939
40+ /**
41+ * BCP-47 language code. und means the source did not identify a language.
42+ */
4043 language : string ;
4144
4245 /**
4346 * Source-specific fields. Shape varies per source:
4447 *
45- * - reddit: { subreddit: string, author: string }
48+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
49+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
50+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
51+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
52+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
53+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
54+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
55+ * public net score. Exact public upvote and downvote counts are not available.
56+ * Estimated counts derive from the public score and upvote ratio, which Reddit
57+ * may fuzz. Comment bodies are not included. Current items combine public
58+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
59+ * `json` and `rss` remain for legacy rows.
4660 * - github: { starsToday: number }
4761 * - hacker_news: { points: number, numberComments: number }
4862 * - google_trends: { approxTraffic: number }
4963 * - polymarket: { volume24hr: number }
5064 * - wikipedia: { views: number }
5165 * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
5266 * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
53- * growthMrrPercent?, multiple?, paymentProvider?, rank? }
67+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
68+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
69+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
70+ * growth source, xHandle is the founder's X username without @. The rank field
71+ * is the source's revenue rank. Result order represents reported 30-day
72+ * revenue-growth rank.
5473 */
55- metadata : { [ key : string ] : unknown } ;
74+ metadata : RadarItem . Metadata ;
5675
5776 publishedAt : string ;
5877
@@ -71,11 +90,72 @@ export interface RadarItem {
7190
7291 description ?: string ;
7392
93+ /**
94+ * Source image. Startup growth items return the logo here.
95+ */
7496 imageUrl ?: string ;
7597
7698 url ?: string ;
7799}
78100
101+ export namespace RadarItem {
102+ /**
103+ * Source-specific fields. Shape varies per source:
104+ *
105+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
106+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
107+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
108+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
109+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
110+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
111+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
112+ * public net score. Exact public upvote and downvote counts are not available.
113+ * Estimated counts derive from the public score and upvote ratio, which Reddit
114+ * may fuzz. Comment bodies are not included. Current items combine public
115+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
116+ * `json` and `rss` remain for legacy rows.
117+ * - github: { starsToday: number }
118+ * - hacker_news: { points: number, numberComments: number }
119+ * - google_trends: { approxTraffic: number }
120+ * - polymarket: { volume24hr: number }
121+ * - wikipedia: { views: number }
122+ * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
123+ * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
124+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
125+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
126+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
127+ * growth source, xHandle is the founder's X username without @. The rank field
128+ * is the source's revenue rank. Result order represents reported 30-day
129+ * revenue-growth rank.
130+ */
131+ export interface Metadata {
132+ author ?: string ;
133+
134+ contentUrl ?: string ;
135+
136+ estimatedDownvotes ?: number ;
137+
138+ estimatedUpvotes ?: number ;
139+
140+ numberComments ?: number ;
141+
142+ score ?: number ;
143+
144+ selftext ?: string ;
145+
146+ /**
147+ * Current items use html. json and rss are retained for legacy rows.
148+ */
149+ sourceFormat ?: 'html' | 'json' | 'rss' ;
150+
151+ subreddit ?: string ;
152+
153+ upvoteRatio ?: number ;
154+
155+ [ k : string ] : unknown ;
156+ }
157+ }
158+
79159export interface RadarRetrieveTrendingTopicsResponse {
80160 hasMore : boolean ;
81161
0 commit comments