@keystrokehq/reddit 0.1.0 → 0.1.3

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.
Files changed (184) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/create-reddit-post.cjs +2 -2
  5. package/dist/actions/create-reddit-post.cjs.map +1 -1
  6. package/dist/actions/create-reddit-post.d.cts +29 -3
  7. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  8. package/dist/actions/create-reddit-post.d.mts +29 -3
  9. package/dist/actions/create-reddit-post.d.mts.map +1 -1
  10. package/dist/actions/create-reddit-post.mjs +2 -2
  11. package/dist/actions/create-reddit-post.mjs.map +1 -1
  12. package/dist/actions/delete-reddit-comment.cjs +1 -1
  13. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  14. package/dist/actions/delete-reddit-comment.d.cts +7 -3
  15. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  16. package/dist/actions/delete-reddit-comment.d.mts +7 -3
  17. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  18. package/dist/actions/delete-reddit-comment.mjs +1 -1
  19. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  20. package/dist/actions/delete-reddit-post.cjs +1 -1
  21. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  22. package/dist/actions/delete-reddit-post.d.cts +7 -3
  23. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  24. package/dist/actions/delete-reddit-post.d.mts +7 -3
  25. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  26. package/dist/actions/delete-reddit-post.mjs +1 -1
  27. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  28. package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
  29. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  30. package/dist/actions/edit-reddit-comment-or-post.d.cts +64 -3
  31. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  32. package/dist/actions/edit-reddit-comment-or-post.d.mts +64 -3
  33. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  34. package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
  35. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  36. package/dist/actions/get-controversial-posts.cjs +6 -6
  37. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  38. package/dist/actions/get-controversial-posts.d.cts +79 -3
  39. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  40. package/dist/actions/get-controversial-posts.d.mts +79 -3
  41. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  42. package/dist/actions/get-controversial-posts.mjs +6 -6
  43. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  44. package/dist/actions/get-me-prefs.cjs +1 -1
  45. package/dist/actions/get-me-prefs.cjs.map +1 -1
  46. package/dist/actions/get-me-prefs.d.cts +69 -3
  47. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  48. package/dist/actions/get-me-prefs.d.mts +69 -3
  49. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  50. package/dist/actions/get-me-prefs.mjs +1 -1
  51. package/dist/actions/get-me-prefs.mjs.map +1 -1
  52. package/dist/actions/get-r-top.cjs +6 -6
  53. package/dist/actions/get-r-top.cjs.map +1 -1
  54. package/dist/actions/get-r-top.d.cts +57 -3
  55. package/dist/actions/get-r-top.d.cts.map +1 -1
  56. package/dist/actions/get-r-top.d.mts +57 -3
  57. package/dist/actions/get-r-top.d.mts.map +1 -1
  58. package/dist/actions/get-r-top.mjs +6 -6
  59. package/dist/actions/get-r-top.mjs.map +1 -1
  60. package/dist/actions/get-random.cjs +18 -18
  61. package/dist/actions/get-random.cjs.map +1 -1
  62. package/dist/actions/get-random.d.cts +41 -3
  63. package/dist/actions/get-random.d.cts.map +1 -1
  64. package/dist/actions/get-random.d.mts +41 -3
  65. package/dist/actions/get-random.d.mts.map +1 -1
  66. package/dist/actions/get-random.mjs +18 -18
  67. package/dist/actions/get-random.mjs.map +1 -1
  68. package/dist/actions/get-reddit-user-about.cjs +11 -11
  69. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  70. package/dist/actions/get-reddit-user-about.d.cts +75 -3
  71. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  72. package/dist/actions/get-reddit-user-about.d.mts +75 -3
  73. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  74. package/dist/actions/get-reddit-user-about.mjs +11 -11
  75. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  76. package/dist/actions/get-scopes.cjs +1 -1
  77. package/dist/actions/get-scopes.cjs.map +1 -1
  78. package/dist/actions/get-scopes.d.cts +5 -3
  79. package/dist/actions/get-scopes.d.cts.map +1 -1
  80. package/dist/actions/get-scopes.d.mts +5 -3
  81. package/dist/actions/get-scopes.d.mts.map +1 -1
  82. package/dist/actions/get-scopes.mjs +1 -1
  83. package/dist/actions/get-scopes.mjs.map +1 -1
  84. package/dist/actions/get-subreddit-rules.cjs +7 -7
  85. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  86. package/dist/actions/get-subreddit-rules.d.cts +21 -3
  87. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  88. package/dist/actions/get-subreddit-rules.d.mts +21 -3
  89. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  90. package/dist/actions/get-subreddit-rules.mjs +7 -7
  91. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  92. package/dist/actions/get-subreddits-search.cjs +6 -6
  93. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  94. package/dist/actions/get-subreddits-search.d.cts +67 -3
  95. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  96. package/dist/actions/get-subreddits-search.d.mts +67 -3
  97. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  98. package/dist/actions/get-subreddits-search.mjs +6 -6
  99. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  100. package/dist/actions/get-user-flair.cjs +3 -3
  101. package/dist/actions/get-user-flair.cjs.map +1 -1
  102. package/dist/actions/get-user-flair.d.cts +21 -3
  103. package/dist/actions/get-user-flair.d.cts.map +1 -1
  104. package/dist/actions/get-user-flair.d.mts +21 -3
  105. package/dist/actions/get-user-flair.d.mts.map +1 -1
  106. package/dist/actions/get-user-flair.mjs +3 -3
  107. package/dist/actions/get-user-flair.mjs.map +1 -1
  108. package/dist/actions/get-username-available.cjs +3 -3
  109. package/dist/actions/get-username-available.cjs.map +1 -1
  110. package/dist/actions/get-username-available.d.cts +10 -3
  111. package/dist/actions/get-username-available.d.cts.map +1 -1
  112. package/dist/actions/get-username-available.d.mts +10 -3
  113. package/dist/actions/get-username-available.d.mts.map +1 -1
  114. package/dist/actions/get-username-available.mjs +3 -3
  115. package/dist/actions/get-username-available.mjs.map +1 -1
  116. package/dist/actions/get.cjs +18 -18
  117. package/dist/actions/get.cjs.map +1 -1
  118. package/dist/actions/get.d.cts +53 -3
  119. package/dist/actions/get.d.cts.map +1 -1
  120. package/dist/actions/get.d.mts +53 -3
  121. package/dist/actions/get.d.mts.map +1 -1
  122. package/dist/actions/get.mjs +18 -18
  123. package/dist/actions/get.mjs.map +1 -1
  124. package/dist/actions/list-subreddit-post-flairs.cjs +6 -6
  125. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  126. package/dist/actions/list-subreddit-post-flairs.d.cts +27 -3
  127. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  128. package/dist/actions/list-subreddit-post-flairs.d.mts +27 -3
  129. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  130. package/dist/actions/list-subreddit-post-flairs.mjs +6 -6
  131. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  132. package/dist/actions/post-reddit-comment.cjs +26 -26
  133. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  134. package/dist/actions/post-reddit-comment.d.cts +54 -3
  135. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  136. package/dist/actions/post-reddit-comment.d.mts +54 -3
  137. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  138. package/dist/actions/post-reddit-comment.mjs +26 -26
  139. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  140. package/dist/actions/retrieve-post-comments.cjs +7 -7
  141. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  142. package/dist/actions/retrieve-post-comments.d.cts +72 -3
  143. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  144. package/dist/actions/retrieve-post-comments.d.mts +72 -3
  145. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  146. package/dist/actions/retrieve-post-comments.mjs +7 -7
  147. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  148. package/dist/actions/retrieve-reddit-post.cjs +21 -21
  149. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  150. package/dist/actions/retrieve-reddit-post.d.cts +47 -3
  151. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  152. package/dist/actions/retrieve-reddit-post.d.mts +47 -3
  153. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  154. package/dist/actions/retrieve-reddit-post.mjs +21 -21
  155. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  156. package/dist/actions/retrieve-specific-comment.cjs +11 -11
  157. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  158. package/dist/actions/retrieve-specific-comment.d.cts +47 -3
  159. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  160. package/dist/actions/retrieve-specific-comment.d.mts +47 -3
  161. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  162. package/dist/actions/retrieve-specific-comment.mjs +11 -11
  163. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  164. package/dist/actions/search-across-subreddits.cjs +16 -16
  165. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  166. package/dist/actions/search-across-subreddits.d.cts +43 -3
  167. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  168. package/dist/actions/search-across-subreddits.d.mts +43 -3
  169. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  170. package/dist/actions/search-across-subreddits.mjs +16 -16
  171. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  172. package/dist/actions/toggle-inbox-replies.cjs +1 -1
  173. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  174. package/dist/actions/toggle-inbox-replies.d.cts +9 -3
  175. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  176. package/dist/actions/toggle-inbox-replies.d.mts +9 -3
  177. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  178. package/dist/actions/toggle-inbox-replies.mjs +1 -1
  179. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  180. package/dist/execute.cjs +1 -1
  181. package/dist/execute.cjs.map +1 -1
  182. package/dist/execute.mjs +1 -1
  183. package/dist/execute.mjs.map +1 -1
  184. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-r-top.mjs","names":[],"sources":["../../src/actions/get-r-top.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRTopInput: z.ZodTypeAny = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking top posts. Specifies the time period for top posts: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n show: z.string().describe(\"Display filtering option. Use 'all' to return items that would normally be omitted (e.g., posts you have hidden).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n count: z.number().int().describe(\"Used by Reddit to number listings after the first page for pagination. Represents the number of items already seen.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of top posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits detail in response. Set to true to get more detailed subreddit information.\").optional(),\n subreddit: z.string().describe(\"Subreddit name (without 'r/' prefix). Must contain only letters, numbers, and underscores. No spaces or special characters allowed. Case-insensitive.\"),\n});\nconst RedditGetRTop_TopPostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRTop_TopPostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGetRTop_TopPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\"),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRTop_TopListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRTop_TopPostChildSchema).describe(\"Array of top post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetRTopOutput: z.ZodTypeAny = z.object({\n data: RedditGetRTop_TopListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\"),\n}).describe(\"Response from retrieving top posts from a subreddit.\");\n\nexport const redditGetRTop = action(\"REDDIT_GET_R_TOP\", {\n slug: \"reddit-get-r-top\",\n name: \"Get top posts from subreddit\",\n description: \"Tool to retrieve top-rated posts from a subreddit with time filters. Use when you need to find the most popular posts from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by score within the specified time frame.\",\n input: RedditGetRTopInput,\n output: RedditGetRTopOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,GAAG,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACvO,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACjK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,OAAO,CAAC,CA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CAAmC,SAAS;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-r-top.mjs","names":[],"sources":["../../src/actions/get-r-top.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRTopInput = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking top posts. Specifies the time period for top posts: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n show: z.string().describe(\"Display filtering option. Use 'all' to return items that would normally be omitted (e.g., posts you have hidden).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n count: z.number().int().describe(\"Used by Reddit to number listings after the first page for pagination. Represents the number of items already seen.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of top posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits detail in response. Set to true to get more detailed subreddit information.\").optional(),\n subreddit: z.string().describe(\"Subreddit name (without 'r/' prefix). Must contain only letters, numbers, and underscores. No spaces or special characters allowed. Case-insensitive.\"),\n});\nconst RedditGetRTop_TopPostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRTop_TopPostChildSchema = z.object({\n data: RedditGetRTop_TopPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRTop_TopListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRTop_TopPostChildSchema).describe(\"Array of top post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRTopOutput = z.object({\n data: RedditGetRTop_TopListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\").nullable(),\n}).passthrough().describe(\"Response from retrieving top posts from a subreddit.\");\n\nexport const redditGetRTop = action(\"REDDIT_GET_R_TOP\", {\n slug: \"reddit-get-r-top\",\n name: \"Get top posts from subreddit\",\n description: \"Tool to retrieve top-rated posts from a subreddit with time filters. Use when you need to find the most popular posts from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by score within the specified time frame.\",\n input: RedditGetRTopInput,\n output: RedditGetRTopOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,GAAG,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACvO,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACjK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC7J,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;AACxL,CAAC;AACD,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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zF,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,gCAAgC,SAAS;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,4BAA4B;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,gBAAgB,OAAO,oBAAoB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViC,EAAE,OAAO;EAC1C,MAAM,mCAAmC,SAAS;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -3,43 +3,43 @@ let zod = require("zod");
3
3
  //#region src/actions/get-random.ts
4
4
  const RedditGetRandomInput = zod.z.object({ subreddit: zod.z.string().describe("Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.").optional() }).describe("Request model for getting a random Reddit post.");
5
5
  const RedditGetRandom_PostDataSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier of the post in base36 format."),
7
- ups: zod.z.number().int().describe("Number of upvotes received."),
8
- url: zod.z.string().describe("URL the post links to, or the permalink if a self post."),
9
- name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
10
- score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
11
- title: zod.z.string().describe("The title of the post."),
6
+ id: zod.z.string().describe("Unique identifier of the post in base36 format.").nullable(),
7
+ ups: zod.z.number().int().describe("Number of upvotes received.").nullable(),
8
+ url: zod.z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
9
+ name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
10
+ score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
11
+ title: zod.z.string().describe("The title of the post.").nullable(),
12
12
  author: zod.z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
13
13
  locked: zod.z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
14
- is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
15
- over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
14
+ is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
15
+ over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
16
16
  spoiler: zod.z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
17
17
  is_video: zod.z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
18
18
  selftext: zod.z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
19
19
  stickied: zod.z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
20
- permalink: zod.z.string().describe("Relative URL path to the permanent link of the post."),
21
- subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix."),
20
+ permalink: zod.z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
21
+ subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
22
22
  thumbnail: zod.z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
23
- created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
24
- num_comments: zod.z.number().int().describe("Total number of comments on the post."),
23
+ created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
24
+ num_comments: zod.z.number().int().describe("Total number of comments on the post.").nullable(),
25
25
  upvote_ratio: zod.z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
26
26
  subreddit_name_prefixed: zod.z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
27
- }).describe("The actual post data object containing essential post fields.");
27
+ }).passthrough().describe("The actual post data object containing essential post fields.");
28
28
  const RedditGetRandom_PostChildSchema = zod.z.object({
29
29
  data: RedditGetRandom_PostDataSchema.nullable(),
30
- kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
31
- }).describe("Wrapper object for each post in the children array.");
30
+ kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
31
+ }).passthrough().describe("Wrapper object for each post in the children array.");
32
32
  const RedditGetRandom_ListingDataSchema = zod.z.object({
33
33
  dist: zod.z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
34
34
  after: zod.z.string().describe("Fullname of the last item in the listing, used for pagination.").nullable().optional(),
35
35
  before: zod.z.string().describe("Fullname of the first item in the listing, used for pagination.").nullable().optional(),
36
36
  modhash: zod.z.string().describe("Modhash token for the current session.").nullable().optional(),
37
37
  children: zod.z.array(RedditGetRandom_PostChildSchema).describe("Array of post objects.")
38
- }).describe("Container object holding the listing response data.");
38
+ }).passthrough().describe("Container object holding the listing response data.");
39
39
  const RedditGetRandomOutput = zod.z.object({
40
40
  data: RedditGetRandom_ListingDataSchema.nullable(),
41
- kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
42
- }).describe("Response from getting a random Reddit post.");
41
+ kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
42
+ }).passthrough().describe("Response from getting a random Reddit post.");
43
43
  const redditGetRandom = require_action.action("REDDIT_GET_RANDOM", {
44
44
  slug: "reddit-get-random",
45
45
  name: "Get random Reddit post",
@@ -1 +1 @@
1
- {"version":3,"file":"get-random.cjs","names":["z","action"],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput: z.ZodTypeAny = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\"),\n ups: z.number().int().describe(\"Number of upvotes received.\"),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\"),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\"),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\"),\n title: z.string().describe(\"The title of the post.\"),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\"),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\"),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\"),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\"),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\"),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\"),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\"),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput: z.ZodTypeAny = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,O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,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,kCAAkC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-random.cjs","names":["z","action"],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous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AAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAM,kCAAkC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-random.d.ts
4
- declare const RedditGetRandomInput: z.ZodTypeAny;
5
- declare const RedditGetRandomOutput: z.ZodTypeAny;
6
- declare const redditGetRandom: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetRandomInput: z.ZodObject<{
5
+ subreddit: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const RedditGetRandomOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ children: z.ZodArray<z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ ups: z.ZodNullable<z.ZodNumber>;
17
+ url: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ score: z.ZodNullable<z.ZodNumber>;
20
+ title: z.ZodNullable<z.ZodString>;
21
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
+ is_self: z.ZodNullable<z.ZodBoolean>;
24
+ over_18: z.ZodNullable<z.ZodBoolean>;
25
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
27
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ permalink: z.ZodNullable<z.ZodString>;
30
+ subreddit: z.ZodNullable<z.ZodString>;
31
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ created_utc: z.ZodNullable<z.ZodNumber>;
33
+ num_comments: z.ZodNullable<z.ZodNumber>;
34
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ }, z.core.$loose>>;
37
+ kind: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$loose>>;
39
+ }, z.core.$loose>>;
40
+ kind: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>;
42
+ declare const redditGetRandom: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ subreddit?: string | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { redditGetRandom };
9
47
  //# sourceMappingURL=get-random.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-random.d.cts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEyB;AAAA,cAmCjD,qBAAA,EAAuB,CAAA,CAAE,UAGoB;AAAA,cAE7C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-random.d.cts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAqCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-random.d.ts
4
- declare const RedditGetRandomInput: z.ZodTypeAny;
5
- declare const RedditGetRandomOutput: z.ZodTypeAny;
6
- declare const redditGetRandom: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetRandomInput: z.ZodObject<{
5
+ subreddit: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const RedditGetRandomOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ children: z.ZodArray<z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ ups: z.ZodNullable<z.ZodNumber>;
17
+ url: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ score: z.ZodNullable<z.ZodNumber>;
20
+ title: z.ZodNullable<z.ZodString>;
21
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
+ is_self: z.ZodNullable<z.ZodBoolean>;
24
+ over_18: z.ZodNullable<z.ZodBoolean>;
25
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
27
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ permalink: z.ZodNullable<z.ZodString>;
30
+ subreddit: z.ZodNullable<z.ZodString>;
31
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ created_utc: z.ZodNullable<z.ZodNumber>;
33
+ num_comments: z.ZodNullable<z.ZodNumber>;
34
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ }, z.core.$loose>>;
37
+ kind: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$loose>>;
39
+ }, z.core.$loose>>;
40
+ kind: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>;
42
+ declare const redditGetRandom: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ subreddit?: string | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { redditGetRandom };
9
47
  //# sourceMappingURL=get-random.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-random.d.mts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEyB;AAAA,cAmCjD,qBAAA,EAAuB,CAAA,CAAE,UAGoB;AAAA,cAE7C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-random.d.mts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAqCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
@@ -3,39 +3,39 @@ import { z } from "zod";
3
3
  //#region src/actions/get-random.ts
4
4
  const RedditGetRandomInput = z.object({ subreddit: z.string().describe("Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.").optional() }).describe("Request model for getting a random Reddit post.");
5
5
  const RedditGetRandom_PostDataSchema = z.object({
6
- id: z.string().describe("Unique identifier of the post in base36 format."),
7
- ups: z.number().int().describe("Number of upvotes received."),
8
- url: z.string().describe("URL the post links to, or the permalink if a self post."),
9
- name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
10
- score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
11
- title: z.string().describe("The title of the post."),
6
+ id: z.string().describe("Unique identifier of the post in base36 format.").nullable(),
7
+ ups: z.number().int().describe("Number of upvotes received.").nullable(),
8
+ url: z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
9
+ name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
10
+ score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
11
+ title: z.string().describe("The title of the post.").nullable(),
12
12
  author: z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
13
13
  locked: z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
14
- is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
15
- over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
14
+ is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
15
+ over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
16
16
  spoiler: z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
17
17
  is_video: z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
18
18
  selftext: z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
19
19
  stickied: z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
20
- permalink: z.string().describe("Relative URL path to the permanent link of the post."),
21
- subreddit: z.string().describe("Name of the subreddit without the /r/ prefix."),
20
+ permalink: z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
21
+ subreddit: z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
22
22
  thumbnail: z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
23
- created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
24
- num_comments: z.number().int().describe("Total number of comments on the post."),
23
+ created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
24
+ num_comments: z.number().int().describe("Total number of comments on the post.").nullable(),
25
25
  upvote_ratio: z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
26
26
  subreddit_name_prefixed: z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
27
- }).describe("The actual post data object containing essential post fields.");
27
+ }).passthrough().describe("The actual post data object containing essential post fields.");
28
28
  const RedditGetRandom_PostChildSchema = z.object({
29
29
  data: RedditGetRandom_PostDataSchema.nullable(),
30
- kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
31
- }).describe("Wrapper object for each post in the children array.");
30
+ kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
31
+ }).passthrough().describe("Wrapper object for each post in the children array.");
32
32
  const RedditGetRandom_ListingDataSchema = z.object({
33
33
  dist: z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
34
34
  after: z.string().describe("Fullname of the last item in the listing, used for pagination.").nullable().optional(),
35
35
  before: z.string().describe("Fullname of the first item in the listing, used for pagination.").nullable().optional(),
36
36
  modhash: z.string().describe("Modhash token for the current session.").nullable().optional(),
37
37
  children: z.array(RedditGetRandom_PostChildSchema).describe("Array of post objects.")
38
- }).describe("Container object holding the listing response data.");
38
+ }).passthrough().describe("Container object holding the listing response data.");
39
39
  const redditGetRandom = action("REDDIT_GET_RANDOM", {
40
40
  slug: "reddit-get-random",
41
41
  name: "Get random Reddit post",
@@ -43,8 +43,8 @@ const redditGetRandom = action("REDDIT_GET_RANDOM", {
43
43
  input: RedditGetRandomInput,
44
44
  output: z.object({
45
45
  data: RedditGetRandom_ListingDataSchema.nullable(),
46
- kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
47
- }).describe("Response from getting a random Reddit post.")
46
+ kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
47
+ }).passthrough().describe("Response from getting a random Reddit post.")
48
48
  });
49
49
  //#endregion
50
50
  export { redditGetRandom };
@@ -1 +1 @@
1
- {"version":3,"file":"get-random.mjs","names":[],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput: z.ZodTypeAny = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\"),\n ups: z.number().int().describe(\"Number of upvotes received.\"),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\"),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\"),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\"),\n title: z.string().describe(\"The title of the post.\"),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\"),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\"),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\"),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\"),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\"),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\"),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\"),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput: z.ZodTypeAny = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,EACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,QAAQ,CAAC,CA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AM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAMjE,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,kCAAkC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC7G,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-random.mjs","names":[],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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C,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,MAAM,kCAAkC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -45,34 +45,34 @@ const RedditGetRedditUserAbout_UserSubredditSchema = zod.z.object({
45
45
  display_name_prefixed: zod.z.string().describe("Display name with prefix (e.g., 'u/username').").nullable().optional(),
46
46
  allowed_media_in_comments: zod.z.array(zod.z.string()).describe("List of allowed media types in comments.").nullable().optional(),
47
47
  disable_contributor_requests: zod.z.boolean().describe("Whether contributor requests are disabled.").nullable().optional()
48
- }).describe("User's profile subreddit information.");
48
+ }).passthrough().describe("User's profile subreddit information.");
49
49
  const RedditGetRedditUserAbout_UserDataSchema = zod.z.object({
50
- id: zod.z.string().describe("Unique identifier of the user account in base36 format."),
51
- name: zod.z.string().describe("Username of the Reddit account."),
50
+ id: zod.z.string().describe("Unique identifier of the user account in base36 format.").nullable(),
51
+ name: zod.z.string().describe("Username of the Reddit account.").nullable(),
52
52
  is_mod: zod.z.boolean().describe("Whether the user is a moderator of any subreddit.").nullable().optional(),
53
- created: zod.z.number().describe("Unix timestamp when the account was created in local epoch-seconds."),
54
- is_gold: zod.z.boolean().describe("Whether the user has an active Reddit Premium (formerly Gold) subscription."),
53
+ created: zod.z.number().describe("Unix timestamp when the account was created in local epoch-seconds.").nullable(),
54
+ is_gold: zod.z.boolean().describe("Whether the user has an active Reddit Premium (formerly Gold) subscription.").nullable(),
55
55
  icon_img: zod.z.string().describe("URL to the user's profile icon/avatar image.").nullable().optional(),
56
56
  verified: zod.z.boolean().describe("Whether the user account is verified.").nullable().optional(),
57
57
  subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),
58
- link_karma: zod.z.number().int().describe("Total karma points earned from submitted posts/links."),
59
- created_utc: zod.z.number().describe("Unix timestamp when the account was created in UTC epoch-seconds."),
58
+ link_karma: zod.z.number().int().describe("Total karma points earned from submitted posts/links.").nullable(),
59
+ created_utc: zod.z.number().describe("Unix timestamp when the account was created in UTC epoch-seconds.").nullable(),
60
60
  is_employee: zod.z.boolean().describe("Whether the user is a Reddit employee.").nullable().optional(),
61
61
  total_karma: zod.z.number().int().describe("Combined total karma from all sources.").nullable().optional(),
62
62
  awardee_karma: zod.z.number().int().describe("Karma earned from receiving awards.").nullable().optional(),
63
63
  awarder_karma: zod.z.number().int().describe("Karma earned from giving awards.").nullable().optional(),
64
- comment_karma: zod.z.number().int().describe("Total karma points earned from comments."),
64
+ comment_karma: zod.z.number().int().describe("Total karma points earned from comments.").nullable(),
65
65
  snoovatar_img: zod.z.string().describe("URL to the user's Snoo avatar image if customized.").nullable().optional(),
66
66
  snoovatar_size: zod.z.array(zod.z.number().int()).describe("Dimensions of the Snoo avatar image.").nullable().optional(),
67
67
  accept_followers: zod.z.boolean().describe("Whether the user accepts followers.").nullable().optional(),
68
68
  hide_from_robots: zod.z.boolean().describe("Whether the user has opted to hide their profile from search engines.").nullable().optional(),
69
69
  has_verified_email: zod.z.boolean().describe("Whether the user has verified their email address.").nullable().optional(),
70
70
  pref_show_snoovatar: zod.z.boolean().describe("Whether the user prefers to show their Snoo avatar.").nullable().optional()
71
- }).describe("User profile data returned by Reddit API.");
71
+ }).passthrough().describe("User profile data returned by Reddit API.");
72
72
  const RedditGetRedditUserAboutOutput = zod.z.object({
73
73
  data: RedditGetRedditUserAbout_UserDataSchema.nullable(),
74
- kind: zod.z.string().describe("Type identifier for the response object, typically 't2' for user accounts.")
75
- }).describe("Response from getting user information from Reddit.");
74
+ kind: zod.z.string().describe("Type identifier for the response object, typically 't2' for user accounts.").nullable()
75
+ }).passthrough().describe("Response from getting user information from Reddit.");
76
76
  const redditGetRedditUserAbout = require_action.action("REDDIT_GET_REDDIT_USER_ABOUT", {
77
77
  slug: "reddit-get-reddit-user-about",
78
78
  name: "Get user information",
@@ -1 +1 @@
1
- {"version":3,"file":"get-reddit-user-about.cjs","names":["z","action"],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRedditUserAboutInput: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\"),\n name: z.string().describe(\"Username of the Reddit account.\"),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\"),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\"),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\"),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\"),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\"),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput: z.ZodTypeAny = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\"),\n}).describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAboutInput,\n output: RedditGetRedditUserAboutOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,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gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-reddit-user-about.cjs","names":["z","action"],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRedditUserAboutInput = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).passthrough().describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\").nullable(),\n name: z.string().describe(\"Username of the Reddit account.\").nullable(),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\").nullable(),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\").nullable(),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\").nullable(),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\").nullable(),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).passthrough().describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\").nullable(),\n}).passthrough().describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAboutInput,\n output: RedditGetRedditUserAboutOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B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,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,wCAAwC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,81 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-reddit-user-about.d.ts
4
- declare const RedditGetRedditUserAboutInput: z.ZodTypeAny;
5
- declare const RedditGetRedditUserAboutOutput: z.ZodTypeAny;
6
- declare const redditGetRedditUserAbout: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetRedditUserAboutInput: z.ZodObject<{
5
+ username: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditGetRedditUserAboutOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ is_mod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12
+ created: z.ZodNullable<z.ZodNumber>;
13
+ is_gold: z.ZodNullable<z.ZodBoolean>;
14
+ icon_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
16
+ subreddit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ coins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ over_18: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
+ icon_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ icon_size: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
24
+ key_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ banner_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ header_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ icon_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ quarantine: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ show_media: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
30
+ banner_size: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
31
+ default_set: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ header_size: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
34
+ subscribers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ primary_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ user_is_muted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ community_icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ previous_names: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
40
+ subreddit_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ user_is_banned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
42
+ is_default_icon: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
+ accept_followers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
+ restrict_posting: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
45
+ free_form_reports: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
46
+ is_default_banner: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
47
+ submit_link_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ submit_text_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ user_is_moderator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
+ link_flair_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
51
+ public_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ user_is_subscriber: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
53
+ link_flair_position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ restrict_commenting: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
55
+ user_is_contributor: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ display_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ allowed_media_in_comments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
58
+ disable_contributor_requests: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
59
+ }, z.core.$loose>>>;
60
+ link_karma: z.ZodNullable<z.ZodNumber>;
61
+ created_utc: z.ZodNullable<z.ZodNumber>;
62
+ is_employee: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
63
+ total_karma: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ awardee_karma: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
+ awarder_karma: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ comment_karma: z.ZodNullable<z.ZodNumber>;
67
+ snoovatar_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ snoovatar_size: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
69
+ accept_followers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
70
+ hide_from_robots: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
71
+ has_verified_email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
72
+ pref_show_snoovatar: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
73
+ }, z.core.$loose>>;
74
+ kind: z.ZodNullable<z.ZodString>;
75
+ }, z.core.$loose>;
76
+ declare const redditGetRedditUserAbout: import("@keystrokehq/action").WorkflowActionDefinition<{
77
+ username: string;
78
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
79
  //#endregion
8
80
  export { redditGetRedditUserAbout };
9
81
  //# sourceMappingURL=get-reddit-user-about.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-reddit-user-about.d.cts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAoEW,8BAAA,EAAgC,CAAA,CAAE,UAGmB;AAAA,cAErD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-reddit-user-about.d.cts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}