@keystrokehq/reddit 0.1.3 → 0.1.5

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 (189) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-reddit-post.cjs +1 -0
  4. package/dist/actions/create-reddit-post.cjs.map +1 -1
  5. package/dist/actions/create-reddit-post.d.cts +3 -8
  6. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  7. package/dist/actions/create-reddit-post.d.mts +3 -8
  8. package/dist/actions/create-reddit-post.d.mts.map +1 -1
  9. package/dist/actions/create-reddit-post.mjs +1 -0
  10. package/dist/actions/create-reddit-post.mjs.map +1 -1
  11. package/dist/actions/delete-reddit-comment.cjs +1 -0
  12. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  13. package/dist/actions/delete-reddit-comment.d.cts +3 -3
  14. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  15. package/dist/actions/delete-reddit-comment.d.mts +3 -3
  16. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  17. package/dist/actions/delete-reddit-comment.mjs +1 -0
  18. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  19. package/dist/actions/delete-reddit-post.cjs +1 -0
  20. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  21. package/dist/actions/delete-reddit-post.d.cts +3 -3
  22. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  23. package/dist/actions/delete-reddit-post.d.mts +3 -3
  24. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  25. package/dist/actions/delete-reddit-post.mjs +1 -0
  26. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  27. package/dist/actions/edit-reddit-comment-or-post.cjs +1 -0
  28. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  29. package/dist/actions/edit-reddit-comment-or-post.d.cts +3 -4
  30. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  31. package/dist/actions/edit-reddit-comment-or-post.d.mts +3 -4
  32. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  33. package/dist/actions/edit-reddit-comment-or-post.mjs +1 -0
  34. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  35. package/dist/actions/get-controversial-posts.cjs +1 -0
  36. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  37. package/dist/actions/get-controversial-posts.d.cts +3 -6
  38. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  39. package/dist/actions/get-controversial-posts.d.mts +3 -6
  40. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  41. package/dist/actions/get-controversial-posts.mjs +1 -0
  42. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  43. package/dist/actions/get-me-prefs.cjs +1 -0
  44. package/dist/actions/get-me-prefs.cjs.map +1 -1
  45. package/dist/actions/get-me-prefs.d.cts +3 -3
  46. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  47. package/dist/actions/get-me-prefs.d.mts +3 -3
  48. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  49. package/dist/actions/get-me-prefs.mjs +1 -0
  50. package/dist/actions/get-me-prefs.mjs.map +1 -1
  51. package/dist/actions/get-r-top.cjs +1 -0
  52. package/dist/actions/get-r-top.cjs.map +1 -1
  53. package/dist/actions/get-r-top.d.cts +3 -10
  54. package/dist/actions/get-r-top.d.cts.map +1 -1
  55. package/dist/actions/get-r-top.d.mts +3 -10
  56. package/dist/actions/get-r-top.d.mts.map +1 -1
  57. package/dist/actions/get-r-top.mjs +1 -0
  58. package/dist/actions/get-r-top.mjs.map +1 -1
  59. package/dist/actions/get-random.cjs +1 -0
  60. package/dist/actions/get-random.cjs.map +1 -1
  61. package/dist/actions/get-random.d.cts +3 -3
  62. package/dist/actions/get-random.d.cts.map +1 -1
  63. package/dist/actions/get-random.d.mts +3 -3
  64. package/dist/actions/get-random.d.mts.map +1 -1
  65. package/dist/actions/get-random.mjs +1 -0
  66. package/dist/actions/get-random.mjs.map +1 -1
  67. package/dist/actions/get-reddit-user-about.cjs +1 -0
  68. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  69. package/dist/actions/get-reddit-user-about.d.cts +3 -3
  70. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  71. package/dist/actions/get-reddit-user-about.d.mts +3 -3
  72. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  73. package/dist/actions/get-reddit-user-about.mjs +1 -0
  74. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  75. package/dist/actions/get-scopes.cjs +1 -0
  76. package/dist/actions/get-scopes.cjs.map +1 -1
  77. package/dist/actions/get-scopes.d.cts +3 -1
  78. package/dist/actions/get-scopes.d.cts.map +1 -1
  79. package/dist/actions/get-scopes.d.mts +3 -1
  80. package/dist/actions/get-scopes.d.mts.map +1 -1
  81. package/dist/actions/get-scopes.mjs +1 -0
  82. package/dist/actions/get-scopes.mjs.map +1 -1
  83. package/dist/actions/get-subreddit-rules.cjs +1 -0
  84. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  85. package/dist/actions/get-subreddit-rules.d.cts +3 -4
  86. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  87. package/dist/actions/get-subreddit-rules.d.mts +3 -4
  88. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  89. package/dist/actions/get-subreddit-rules.mjs +1 -0
  90. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  91. package/dist/actions/get-subreddits-search.cjs +1 -0
  92. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  93. package/dist/actions/get-subreddits-search.d.cts +3 -11
  94. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  95. package/dist/actions/get-subreddits-search.d.mts +3 -11
  96. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  97. package/dist/actions/get-subreddits-search.mjs +1 -0
  98. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  99. package/dist/actions/get-user-flair.cjs +1 -0
  100. package/dist/actions/get-user-flair.cjs.map +1 -1
  101. package/dist/actions/get-user-flair.d.cts +3 -6
  102. package/dist/actions/get-user-flair.d.cts.map +1 -1
  103. package/dist/actions/get-user-flair.d.mts +3 -6
  104. package/dist/actions/get-user-flair.d.mts.map +1 -1
  105. package/dist/actions/get-user-flair.mjs +1 -0
  106. package/dist/actions/get-user-flair.mjs.map +1 -1
  107. package/dist/actions/get-username-available.cjs +1 -0
  108. package/dist/actions/get-username-available.cjs.map +1 -1
  109. package/dist/actions/get-username-available.d.cts +3 -3
  110. package/dist/actions/get-username-available.d.cts.map +1 -1
  111. package/dist/actions/get-username-available.d.mts +3 -3
  112. package/dist/actions/get-username-available.d.mts.map +1 -1
  113. package/dist/actions/get-username-available.mjs +1 -0
  114. package/dist/actions/get-username-available.mjs.map +1 -1
  115. package/dist/actions/get.cjs +1 -0
  116. package/dist/actions/get.cjs.map +1 -1
  117. package/dist/actions/get.d.cts +3 -9
  118. package/dist/actions/get.d.cts.map +1 -1
  119. package/dist/actions/get.d.mts +3 -9
  120. package/dist/actions/get.d.mts.map +1 -1
  121. package/dist/actions/get.mjs +1 -0
  122. package/dist/actions/get.mjs.map +1 -1
  123. package/dist/actions/list-subreddit-post-flairs.cjs +1 -0
  124. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  125. package/dist/actions/list-subreddit-post-flairs.d.cts +3 -3
  126. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  127. package/dist/actions/list-subreddit-post-flairs.d.mts +3 -3
  128. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  129. package/dist/actions/list-subreddit-post-flairs.mjs +1 -0
  130. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  131. package/dist/actions/post-reddit-comment.cjs +1 -0
  132. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  133. package/dist/actions/post-reddit-comment.d.cts +3 -4
  134. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  135. package/dist/actions/post-reddit-comment.d.mts +3 -4
  136. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  137. package/dist/actions/post-reddit-comment.mjs +1 -0
  138. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  139. package/dist/actions/retrieve-post-comments.cjs +1 -0
  140. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  141. package/dist/actions/retrieve-post-comments.d.cts +3 -3
  142. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  143. package/dist/actions/retrieve-post-comments.d.mts +3 -3
  144. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  145. package/dist/actions/retrieve-post-comments.mjs +1 -0
  146. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  147. package/dist/actions/retrieve-reddit-post.cjs +1 -0
  148. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  149. package/dist/actions/retrieve-reddit-post.d.cts +3 -5
  150. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  151. package/dist/actions/retrieve-reddit-post.d.mts +3 -5
  152. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  153. package/dist/actions/retrieve-reddit-post.mjs +1 -0
  154. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  155. package/dist/actions/retrieve-specific-comment.cjs +1 -0
  156. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  157. package/dist/actions/retrieve-specific-comment.d.cts +3 -3
  158. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  159. package/dist/actions/retrieve-specific-comment.d.mts +3 -3
  160. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  161. package/dist/actions/retrieve-specific-comment.mjs +1 -0
  162. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  163. package/dist/actions/search-across-subreddits.cjs +1 -0
  164. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  165. package/dist/actions/search-across-subreddits.d.cts +4 -9
  166. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  167. package/dist/actions/search-across-subreddits.d.mts +4 -9
  168. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  169. package/dist/actions/search-across-subreddits.mjs +1 -0
  170. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  171. package/dist/actions/toggle-inbox-replies.cjs +1 -0
  172. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  173. package/dist/actions/toggle-inbox-replies.d.cts +3 -4
  174. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  175. package/dist/actions/toggle-inbox-replies.d.mts +3 -4
  176. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  177. package/dist/actions/toggle-inbox-replies.mjs +1 -0
  178. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  179. package/dist/app.cjs +5 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +7 -1
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +7 -1
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +3 -2
  186. package/dist/app.mjs.map +1 -1
  187. package/dist/index.d.cts +1 -1
  188. package/dist/index.d.mts +1 -1
  189. package/package.json +2 -2
@@ -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.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,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,CAAC,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"}
1
+ {"version":3,"file":"get-random.mjs","names":[],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\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: AppAction<\n typeof RedditGetRandomInput,\n typeof RedditGetRandomOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,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,CA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actions/get-reddit-user-about.ts
@@ -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.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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAA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,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
+ {"version":3,"file":"get-reddit-user-about.cjs","names":["z","action"],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\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: AppAction<\n typeof RedditGetRedditUserAboutInput,\n typeof RedditGetRedditUserAboutOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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AAkBA,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,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-reddit-user-about.d.ts
@@ -73,9 +75,7 @@ declare const RedditGetRedditUserAboutOutput: z.ZodObject<{
73
75
  }, z.core.$loose>>;
74
76
  kind: z.ZodNullable<z.ZodString>;
75
77
  }, 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]>;
78
+ declare const redditGetRedditUserAbout: AppAction<typeof RedditGetRedditUserAboutInput, typeof RedditGetRedditUserAboutOutput, typeof reddit.credential>;
79
79
  //#endregion
80
80
  export { redditGetRedditUserAbout };
81
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,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-reddit-user-about.d.cts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-reddit-user-about.d.ts
@@ -73,9 +75,7 @@ declare const RedditGetRedditUserAboutOutput: z.ZodObject<{
73
75
  }, z.core.$loose>>;
74
76
  kind: z.ZodNullable<z.ZodString>;
75
77
  }, 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]>;
78
+ declare const redditGetRedditUserAbout: AppAction<typeof RedditGetRedditUserAboutInput, typeof RedditGetRedditUserAboutOutput, typeof reddit.credential>;
79
79
  //#endregion
80
80
  export { redditGetRedditUserAbout };
81
81
  //# sourceMappingURL=get-reddit-user-about.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-reddit-user-about.d.mts","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"}
1
+ {"version":3,"file":"get-reddit-user-about.d.mts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-reddit-user-about.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-reddit-user-about.mjs","names":[],"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,gCAAgC,EAAE,OAAO,EACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS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AAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAMrE,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,wCAAwC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-reddit-user-about.mjs","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\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: AppAction<\n typeof RedditGetRedditUserAboutInput,\n typeof RedditGetRedditUserAboutOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,UAAU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AAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-scopes.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-scopes.cjs","names":["z","action"],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-scopes.cjs","names":["z","action"],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes: AppAction<\n typeof RedditGetScopesInput,\n typeof RedditGetScopesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-scopes.d.ts
@@ -5,7 +7,7 @@ declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const RedditGetScopesOutput: z.ZodObject<{
6
8
  scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
9
  }, z.core.$loose>;
8
- declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditGetScopes: AppAction<typeof RedditGetScopesInput, typeof RedditGetScopesOutput, typeof reddit.credential>;
9
11
  //#endregion
10
12
  export { redditGetScopes };
11
13
  //# sourceMappingURL=get-scopes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-scopes.d.ts
@@ -5,7 +7,7 @@ declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const RedditGetScopesOutput: z.ZodObject<{
6
8
  scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
9
  }, z.core.$loose>;
8
- declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditGetScopes: AppAction<typeof RedditGetScopesInput, typeof RedditGetScopesOutput, typeof reddit.credential>;
9
11
  //#endregion
10
12
  export { redditGetScopes };
11
13
  //# sourceMappingURL=get-scopes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const redditGetScopes = action("REDDIT_GET_SCOPES", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-scopes.mjs","names":[],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;AASA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATkC,EAAE,OAAO,CAAC,CASrC;CACP,QATmC,EAAE,OAAO,EAC5C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-scopes.mjs","names":[],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes: AppAction<\n typeof RedditGetScopesInput,\n typeof RedditGetScopesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;;AAWA,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkC,EAAE,OAAO,CAAC,CAarC;CACP,QAbmC,EAAE,OAAO,EAC5C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-subreddit-rules.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;AACnH,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC5K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yGAAyG;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACzH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAA8G;AAExI,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddit-rules.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules: AppAction<\n typeof RedditGetSubredditRulesInput,\n typeof RedditGetSubredditRulesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n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,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAA8G;AAExI,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddit-rules.d.ts
@@ -18,10 +20,7 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
18
20
  site_rules: z.ZodArray<z.ZodString>;
19
21
  site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
22
  }, z.core.$loose>;
21
- declare const redditGetSubredditRules: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- subreddit: string;
23
- raw_json?: boolean | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const redditGetSubredditRules: AppAction<typeof RedditGetSubredditRulesInput, typeof RedditGetSubredditRulesOutput, typeof reddit.credential>;
25
24
  //#endregion
26
25
  export { redditGetSubredditRules };
27
26
  //# sourceMappingURL=get-subreddit-rules.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.d.cts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-subreddit-rules.d.cts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddit-rules.d.ts
@@ -18,10 +20,7 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
18
20
  site_rules: z.ZodArray<z.ZodString>;
19
21
  site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
22
  }, z.core.$loose>;
21
- declare const redditGetSubredditRules: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- subreddit: string;
23
- raw_json?: boolean | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const redditGetSubredditRules: AppAction<typeof RedditGetSubredditRulesInput, typeof RedditGetSubredditRulesOutput, typeof reddit.credential>;
25
24
  //#endregion
26
25
  export { redditGetSubredditRules };
27
26
  //# sourceMappingURL=get-subreddit-rules.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.d.mts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-subreddit-rules.d.mts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-subreddit-rules.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.mjs","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;AACnH,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC5K,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX2C,EAAE,OAAO;EACpD,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yGAAyG;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACzH,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddit-rules.mjs","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules: AppAction<\n typeof RedditGetSubredditRulesInput,\n typeof RedditGetSubredditRulesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAW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-subreddits-search.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACpN,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACnL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAg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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,kDAAkD,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddits-search.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch: AppAction<\n typeof RedditGetSubredditsSearchInput,\n typeof RedditGetSubredditsSearchOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACpN,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACnL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC5K,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAClJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC7L,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AAC5J,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC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C;AAE/D,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddits-search.d.ts
@@ -57,17 +59,7 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  kind: z.ZodNullable<z.ZodString>;
59
61
  }, z.core.$loose>;
60
- declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- show?: string | undefined;
63
- sort?: "relevance" | "activity" | undefined;
64
- after?: string | undefined;
65
- count?: number | undefined;
66
- limit?: number | undefined;
67
- before?: string | undefined;
68
- sr_detail?: boolean | undefined;
69
- show_users?: boolean | undefined;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ declare const redditGetSubredditsSearch: AppAction<typeof RedditGetSubredditsSearchInput, typeof RedditGetSubredditsSearchOutput, typeof reddit.credential>;
71
63
  //#endregion
72
64
  export { redditGetSubredditsSearch };
73
65
  //# sourceMappingURL=get-subreddits-search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddits-search.d.ts
@@ -57,17 +59,7 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  kind: z.ZodNullable<z.ZodString>;
59
61
  }, z.core.$loose>;
60
- declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- show?: string | undefined;
63
- sort?: "relevance" | "activity" | undefined;
64
- after?: string | undefined;
65
- count?: number | undefined;
66
- limit?: number | undefined;
67
- before?: string | undefined;
68
- sr_detail?: boolean | undefined;
69
- show_users?: boolean | undefined;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ declare const redditGetSubredditsSearch: AppAction<typeof RedditGetSubredditsSearchInput, typeof RedditGetSubredditsSearchOutput, typeof reddit.credential>;
71
63
  //#endregion
72
64
  export { redditGetSubredditsSearch };
73
65
  //# sourceMappingURL=get-subreddits-search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-subreddits-search.ts