@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.cjs","names":["z","action"],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput: z.ZodTypeAny = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_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 RedditGet_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGet_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 RedditGet_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(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput: z.ZodTypeAny = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,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MAAa,kBAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,4BAA4B,SAAS;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;AAC7G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,YAAYC,eAAAA,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get.cjs","names":["z","action"],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_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 RedditGet_PostChildSchema = z.object({\n data: RedditGet_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 RedditGet_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(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_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 listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAA2BA,IAAAA,EAAE,OAAO;CACxC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EA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AC,SAAS,qDAAqD;AAC/E,MAAa,kBAAkBA,IAAAA,EAAE,OAAO;CACtC,MAAM,4BAA4B,SAAS;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,YAAYC,eAAAA,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get.d.ts
4
- declare const RedditGetInput: z.ZodTypeAny;
5
- declare const RedditGetOutput: z.ZodTypeAny;
6
- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetInput: z.ZodObject<{
5
+ show: z.ZodOptional<z.ZodString>;
6
+ sort: z.ZodString;
7
+ after: z.ZodOptional<z.ZodString>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ before: z.ZodOptional<z.ZodString>;
11
+ time_filter: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const RedditGetOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ children: z.ZodArray<z.ZodObject<{
20
+ data: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ ups: z.ZodNullable<z.ZodNumber>;
23
+ url: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ is_self: z.ZodNullable<z.ZodBoolean>;
30
+ over_18: z.ZodNullable<z.ZodBoolean>;
31
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
+ permalink: z.ZodNullable<z.ZodString>;
36
+ subreddit: z.ZodNullable<z.ZodString>;
37
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_utc: z.ZodNullable<z.ZodNumber>;
39
+ num_comments: z.ZodNullable<z.ZodNumber>;
40
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ kind: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>;
45
+ }, z.core.$loose>>;
46
+ kind: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$loose>;
48
+ declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ sort: string;
50
+ show?: string | undefined;
51
+ after?: string | undefined;
52
+ count?: number | undefined;
53
+ limit?: number | undefined;
54
+ before?: string | undefined;
55
+ time_filter?: string | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { redditGet };
9
59
  //# sourceMappingURL=get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UAQgE;AAAA,cAmClF,eAAA,EAAiB,CAAA,CAAE,UAG+B;AAAA,cAElD,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get.d.ts
4
- declare const RedditGetInput: z.ZodTypeAny;
5
- declare const RedditGetOutput: z.ZodTypeAny;
6
- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetInput: z.ZodObject<{
5
+ show: z.ZodOptional<z.ZodString>;
6
+ sort: z.ZodString;
7
+ after: z.ZodOptional<z.ZodString>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ before: z.ZodOptional<z.ZodString>;
11
+ time_filter: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const RedditGetOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ children: z.ZodArray<z.ZodObject<{
20
+ data: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ ups: z.ZodNullable<z.ZodNumber>;
23
+ url: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ is_self: z.ZodNullable<z.ZodBoolean>;
30
+ over_18: z.ZodNullable<z.ZodBoolean>;
31
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
+ permalink: z.ZodNullable<z.ZodString>;
36
+ subreddit: z.ZodNullable<z.ZodString>;
37
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_utc: z.ZodNullable<z.ZodNumber>;
39
+ num_comments: z.ZodNullable<z.ZodNumber>;
40
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ kind: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>;
45
+ }, z.core.$loose>>;
46
+ kind: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$loose>;
48
+ declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ sort: string;
50
+ show?: string | undefined;
51
+ after?: string | undefined;
52
+ count?: number | undefined;
53
+ limit?: number | undefined;
54
+ before?: string | undefined;
55
+ time_filter?: string | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { redditGet };
9
59
  //# sourceMappingURL=get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UAQgE;AAAA,cAmClF,eAAA,EAAiB,CAAA,CAAE,UAG+B;AAAA,cAElD,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
@@ -11,39 +11,39 @@ const RedditGetInput = z.object({
11
11
  time_filter: z.string().describe("Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.").optional()
12
12
  }).describe("Request model for getting a listing of Reddit posts sorted by a specific method.");
13
13
  const RedditGet_PostDataSchema = z.object({
14
- id: z.string().describe("Unique identifier of the post in base36 format."),
15
- ups: z.number().int().describe("Number of upvotes received."),
16
- url: z.string().describe("URL the post links to, or the permalink if a self post."),
17
- name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
18
- score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
19
- title: z.string().describe("The title of the post."),
14
+ id: z.string().describe("Unique identifier of the post in base36 format.").nullable(),
15
+ ups: z.number().int().describe("Number of upvotes received.").nullable(),
16
+ url: z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
17
+ name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
18
+ score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
19
+ title: z.string().describe("The title of the post.").nullable(),
20
20
  author: z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
21
21
  locked: z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
22
- is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
23
- over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
22
+ is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
23
+ over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
24
24
  spoiler: z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
25
25
  is_video: z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
26
26
  selftext: z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
27
27
  stickied: z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
28
- permalink: z.string().describe("Relative URL path to the permanent link of the post."),
29
- subreddit: z.string().describe("Name of the subreddit without the /r/ prefix."),
28
+ permalink: z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
29
+ subreddit: z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
30
30
  thumbnail: z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
31
- created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
32
- num_comments: z.number().int().describe("Total number of comments on the post."),
31
+ created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
32
+ num_comments: z.number().int().describe("Total number of comments on the post.").nullable(),
33
33
  upvote_ratio: z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
34
34
  subreddit_name_prefixed: z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
35
- }).describe("The actual post data object containing essential post fields.");
35
+ }).passthrough().describe("The actual post data object containing essential post fields.");
36
36
  const RedditGet_PostChildSchema = z.object({
37
37
  data: RedditGet_PostDataSchema.nullable(),
38
- kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
39
- }).describe("Wrapper object for each post in the children array.");
38
+ kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
39
+ }).passthrough().describe("Wrapper object for each post in the children array.");
40
40
  const RedditGet_ListingDataSchema = z.object({
41
41
  dist: z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
42
42
  after: z.string().describe("Fullname of the last item in the listing, used for pagination.").nullable().optional(),
43
43
  before: z.string().describe("Fullname of the first item in the listing, used for pagination.").nullable().optional(),
44
44
  modhash: z.string().describe("Modhash token for the current session.").nullable().optional(),
45
45
  children: z.array(RedditGet_PostChildSchema).describe("Array of post objects.")
46
- }).describe("Container object holding the listing response data.");
46
+ }).passthrough().describe("Container object holding the listing response data.");
47
47
  const redditGet = action("REDDIT_GET", {
48
48
  slug: "reddit-get",
49
49
  name: "Get Reddit listing by sort",
@@ -51,8 +51,8 @@ const redditGet = action("REDDIT_GET", {
51
51
  input: RedditGetInput,
52
52
  output: z.object({
53
53
  data: RedditGet_ListingDataSchema.nullable(),
54
- kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
55
- }).describe("Response from getting a listing of Reddit posts.")
54
+ kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
55
+ }).passthrough().describe("Response from getting a listing of Reddit posts.")
56
56
  });
57
57
  //#endregion
58
58
  export { redditGet };
@@ -1 +1 @@
1
- {"version":3,"file":"get.mjs","names":[],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput: z.ZodTypeAny = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_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 RedditGet_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGet_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 RedditGet_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(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput: z.ZodTypeAny = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAA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4BAA4B,SAAS;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC7G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get.mjs","names":[],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_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 RedditGet_PostChildSchema = z.object({\n data: RedditGet_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 RedditGet_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(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_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 listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAA2B,EAAE,OAAO;CACxC,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,wBA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S,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AACzF,MAAM,4BAA4B,EAAE,OAAO;CACzC,MAAM,yBAAyB,SAAS;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,8BAA8B,EAAE,OAAO;CAC3C,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,yBAAyB,CAAC,CAAC,SAAS,wBAAwB;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,YAAY,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6B,EAAE,OAAO;EACtC,MAAM,4BAA4B,SAAS;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -4,25 +4,25 @@ let zod = require("zod");
4
4
  const RedditListSubredditPostFlairsInput = zod.z.object({ subreddit: zod.z.string().describe("The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.") });
5
5
  const RedditListSubredditPostFlairs_FlairRichtextElementSchema = zod.z.object({
6
6
  a: zod.z.string().describe("Emoji shortcode for 'emoji' type elements.").nullable().optional(),
7
- e: zod.z.string().describe("Element type (e.g., 'text', 'emoji')."),
7
+ e: zod.z.string().describe("Element type (e.g., 'text', 'emoji').").nullable(),
8
8
  t: zod.z.string().describe("Text content for 'text' type elements.").nullable().optional(),
9
9
  u: zod.z.string().describe("URL for emoji image.").nullable().optional()
10
10
  }).passthrough().describe("Element in a richtext flair array.");
11
11
  const RedditListSubredditPostFlairs_FlairTemplateSchema = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier for the flair template (same as flair_template_id)."),
13
- text: zod.z.string().describe("Display text content of the flair."),
12
+ id: zod.z.string().describe("Unique identifier for the flair template (same as flair_template_id).").nullable(),
13
+ text: zod.z.string().describe("Display text content of the flair.").nullable(),
14
14
  type: zod.z.string().describe("Type of the flair template (e.g., 'text', 'richtext').").nullable().optional(),
15
15
  mod_only: zod.z.boolean().describe("Whether this flair is restricted to moderators only.").nullable().optional(),
16
16
  richtext: zod.z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe("Rich text formatting information for the flair, containing emoji and text elements.").nullable().optional(),
17
17
  css_class: zod.z.string().describe("CSS class name applied to the flair for styling.").nullable().optional(),
18
18
  max_emojis: zod.z.number().int().describe("Maximum number of emojis allowed in the flair text.").nullable().optional(),
19
19
  text_color: zod.z.string().describe("Color of the flair text (e.g., 'dark', 'light').").nullable().optional(),
20
- text_editable: zod.z.boolean().describe("Whether users can edit the flair text when applying it to their post."),
20
+ text_editable: zod.z.boolean().describe("Whether users can edit the flair text when applying it to their post.").nullable(),
21
21
  background_color: zod.z.string().describe("Background color of the flair (hex color code or named color).").nullable().optional(),
22
22
  allowable_content: zod.z.string().describe("Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').").nullable().optional(),
23
23
  flair_template_id: zod.z.string().describe("Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.").nullable().optional()
24
- }).describe("Represents a single link/post flair template available in a subreddit.");
25
- const RedditListSubredditPostFlairsOutput = zod.z.object({ flairs: zod.z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe("Array of flair templates available for posts/links in the subreddit.") }).describe("Response containing the list of available post/link flair templates for a subreddit.");
24
+ }).passthrough().describe("Represents a single link/post flair template available in a subreddit.");
25
+ const RedditListSubredditPostFlairsOutput = zod.z.object({ flairs: zod.z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe("Array of flair templates available for posts/links in the subreddit.") }).passthrough().describe("Response containing the list of available post/link flair templates for a subreddit.");
26
26
  const redditListSubredditPostFlairs = require_action.action("REDDIT_LIST_SUBREDDIT_POST_FLAIRS", {
27
27
  slug: "reddit-list-subreddit-post-flairs",
28
28
  name: "List subreddit post flairs",
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput: z.ZodTypeAny = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema: z.ZodTypeAny = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\"),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\"),\n text: z.string().describe(\"Display text content of the flair.\"),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\"),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput: z.ZodTypeAny = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4C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E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,GAAGA,IAAAA,EAAE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AC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACtH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAClG,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-subreddit-post-flairs.d.ts
4
- declare const RedditListSubredditPostFlairsInput: z.ZodTypeAny;
5
- declare const RedditListSubredditPostFlairsOutput: z.ZodTypeAny;
6
- declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditListSubredditPostFlairsInput: z.ZodObject<{
5
+ subreddit: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditListSubredditPostFlairsOutput: z.ZodObject<{
8
+ flairs: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ text: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ mod_only: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ richtext: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ e: z.ZodNullable<z.ZodString>;
16
+ t: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ u: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ max_emojis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ text_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ text_editable: z.ZodNullable<z.ZodBoolean>;
23
+ background_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ allowable_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ flair_template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>;
28
+ declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ subreddit: string;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { redditListSubredditPostFlairs };
9
33
  //# sourceMappingURL=list-subreddit-post-flairs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAqBW,mCAAA,EAAqC,CAAA,CAAE,UAE+C;AAAA,cAEtF,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-subreddit-post-flairs.d.ts
4
- declare const RedditListSubredditPostFlairsInput: z.ZodTypeAny;
5
- declare const RedditListSubredditPostFlairsOutput: z.ZodTypeAny;
6
- declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditListSubredditPostFlairsInput: z.ZodObject<{
5
+ subreddit: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditListSubredditPostFlairsOutput: z.ZodObject<{
8
+ flairs: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ text: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ mod_only: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ richtext: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ e: z.ZodNullable<z.ZodString>;
16
+ t: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ u: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ max_emojis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ text_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ text_editable: z.ZodNullable<z.ZodBoolean>;
23
+ background_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ allowable_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ flair_template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>;
28
+ declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ subreddit: string;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { redditListSubredditPostFlairs };
9
33
  //# sourceMappingURL=list-subreddit-post-flairs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.d.mts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAqBW,mCAAA,EAAqC,CAAA,CAAE,UAE+C;AAAA,cAEtF,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.d.mts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
@@ -4,30 +4,30 @@ import { z } from "zod";
4
4
  const RedditListSubredditPostFlairsInput = z.object({ subreddit: z.string().describe("The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.") });
5
5
  const RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({
6
6
  a: z.string().describe("Emoji shortcode for 'emoji' type elements.").nullable().optional(),
7
- e: z.string().describe("Element type (e.g., 'text', 'emoji')."),
7
+ e: z.string().describe("Element type (e.g., 'text', 'emoji').").nullable(),
8
8
  t: z.string().describe("Text content for 'text' type elements.").nullable().optional(),
9
9
  u: z.string().describe("URL for emoji image.").nullable().optional()
10
10
  }).passthrough().describe("Element in a richtext flair array.");
11
11
  const RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({
12
- id: z.string().describe("Unique identifier for the flair template (same as flair_template_id)."),
13
- text: z.string().describe("Display text content of the flair."),
12
+ id: z.string().describe("Unique identifier for the flair template (same as flair_template_id).").nullable(),
13
+ text: z.string().describe("Display text content of the flair.").nullable(),
14
14
  type: z.string().describe("Type of the flair template (e.g., 'text', 'richtext').").nullable().optional(),
15
15
  mod_only: z.boolean().describe("Whether this flair is restricted to moderators only.").nullable().optional(),
16
16
  richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe("Rich text formatting information for the flair, containing emoji and text elements.").nullable().optional(),
17
17
  css_class: z.string().describe("CSS class name applied to the flair for styling.").nullable().optional(),
18
18
  max_emojis: z.number().int().describe("Maximum number of emojis allowed in the flair text.").nullable().optional(),
19
19
  text_color: z.string().describe("Color of the flair text (e.g., 'dark', 'light').").nullable().optional(),
20
- text_editable: z.boolean().describe("Whether users can edit the flair text when applying it to their post."),
20
+ text_editable: z.boolean().describe("Whether users can edit the flair text when applying it to their post.").nullable(),
21
21
  background_color: z.string().describe("Background color of the flair (hex color code or named color).").nullable().optional(),
22
22
  allowable_content: z.string().describe("Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').").nullable().optional(),
23
23
  flair_template_id: z.string().describe("Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.").nullable().optional()
24
- }).describe("Represents a single link/post flair template available in a subreddit.");
24
+ }).passthrough().describe("Represents a single link/post flair template available in a subreddit.");
25
25
  const redditListSubredditPostFlairs = action("REDDIT_LIST_SUBREDDIT_POST_FLAIRS", {
26
26
  slug: "reddit-list-subreddit-post-flairs",
27
27
  name: "List subreddit post flairs",
28
28
  description: "List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.",
29
29
  input: RedditListSubredditPostFlairsInput,
30
- output: z.object({ flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe("Array of flair templates available for posts/links in the subreddit.") }).describe("Response containing the list of available post/link flair templates for a subreddit.")
30
+ output: z.object({ flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe("Array of flair templates available for posts/links in the subreddit.") }).passthrough().describe("Response containing the list of available post/link flair templates for a subreddit.")
31
31
  });
32
32
  //#endregion
33
33
  export { redditListSubredditPostFlairs };
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.mjs","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput: z.ZodTypeAny = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema: z.ZodTypeAny = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\"),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\"),\n text: z.string().describe(\"Display text content of the flair.\"),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\"),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput: z.ZodTypeAny = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO,EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAAyE,EAAE,OAAO;CACtF,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC9D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.mjs","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAA2D,EAAE,OAAO;CACxE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,oDAAoD,EAAE,OA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