@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":"action.cjs","names":["reddit","executeRedditTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { reddit } from \"./app\";\nimport { executeRedditTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return reddit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRedditTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["reddit","executeRedditTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { reddit } from \"./app\";\nimport { executeRedditTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof reddit.credential> {\n return reddit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRedditTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { reddit } from \"./app\";\nimport { executeRedditTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return reddit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRedditTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { reddit } from \"./app\";\nimport { executeRedditTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof reddit.credential> {\n return reddit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRedditTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -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/create-reddit-post.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-reddit-post.cjs","names":["z","action"],"sources":["../../src/actions/create-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditCreateRedditPostInput = z.object({\n url: z.string().describe(\"The URL for a 'link' post. Required if `kind` is 'link'.\").optional(),\n kind: z.enum([\"link\", \"self\"]).describe(\"The type of the post. Use 'self' for a text-based post (when providing 'text') or 'link' for a post that links to an external URL (when providing 'url'). If omitted, it is automatically inferred: 'self' when 'text' is provided, 'link' when 'url' is provided.\").optional(),\n text: z.string().describe(\"The markdown-formatted text content for a 'self' post. Required if `kind` is 'self'. Body must not exceed ~40,000 characters.\").optional(),\n title: z.string().describe(\"The title of the post. Must be 300 characters or less.\"),\n flair_id: z.string().describe(\"ID of the post flair template (UUID format). Must be a valid flair template ID that exists for this specific subreddit. To get valid flair IDs, first use LIST_SUBREDDIT_POST_FLAIRS action for the target subreddit. Do not pass generic strings like 'general' or 'news' - these are not universal flair IDs. Some subreddits enforce mandatory flair; omitting or providing an invalid ID returns SUBMIT_VALIDATION_FLAIR_REQUIRED.\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit (without the 'r/' prefix) where the post will be submitted.\"),\n});\nexport const RedditCreateRedditPostOutput = z.object({\n id: z.string().describe(\"The post's unique identifier (short ID, e.g., '96ak55'). Present when post creation succeeds.\").nullable().optional(),\n url: z.string().describe(\"The full URL to the newly created post on Reddit. Present when post creation succeeds.\").nullable().optional(),\n name: z.string().describe(\"The post's fullname with type prefix (e.g., 't3_96ak55' where 't3' indicates it's a link/post). Present when post creation succeeds.\").nullable().optional(),\n success: z.boolean().describe(\"Whether the post was created successfully. If false, check 'validation_error' for details.\").nullable(),\n subreddit: z.string().describe(\"The subreddit name (without 'r/' prefix) - included when validation_error is present to help with flair lookup.\").nullable().optional(),\n drafts_count: z.number().int().describe(\"Count of draft submissions associated with the user account.\").nullable().optional(),\n validation_error: z.string().describe(\"Type of validation error if post creation failed due to subreddit requirements. Possible values include 'FLAIR_REQUIRED' (subreddit requires post flair), 'INVALID_FLAIR_ID' (provided flair_id is not valid for this subreddit), 'BODY_NOT_ALLOWED' (subreddit doesn't allow text posts), 'POST_GUIDANCE_VALIDATION_FAILED' (subreddit rules block this submission, often due to embedded URLs in text).\").nullable().optional(),\n validation_message: z.string().describe(\"Human-readable message explaining the validation error and how to resolve it.\").nullable().optional(),\n}).passthrough();\n\nexport const redditCreateRedditPost = action(\"REDDIT_CREATE_REDDIT_POST\", {\n slug: \"reddit-create-reddit-post\",\n name: \"Create a Reddit post\",\n description: \"Creates a new text or link post on a specified, existing Reddit subreddit, optionally applying a flair. Immediately publishes publicly visible content — confirm subreddit, title, and body with the user before executing. Posts may be silently removed post-submission by automoderator or subreddit rules (errors: SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING, POST_GUIDANCE_VALIDATION_FAILED); verify visibility via the returned permalink. Rapid consecutive calls trigger RATELIMIT errors with cooldown hints.\",\n input: RedditCreateRedditPostInput,\n output: RedditCreateRedditPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,oQAAoQ,CAAC,CAAC,SAAS;CACvT,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;CACjd,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;AACxH,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtL,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2YAA2Y,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvc,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-reddit-post.cjs","names":["z","action"],"sources":["../../src/actions/create-reddit-post.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 RedditCreateRedditPostInput = z.object({\n url: z.string().describe(\"The URL for a 'link' post. Required if `kind` is 'link'.\").optional(),\n kind: z.enum([\"link\", \"self\"]).describe(\"The type of the post. Use 'self' for a text-based post (when providing 'text') or 'link' for a post that links to an external URL (when providing 'url'). If omitted, it is automatically inferred: 'self' when 'text' is provided, 'link' when 'url' is provided.\").optional(),\n text: z.string().describe(\"The markdown-formatted text content for a 'self' post. Required if `kind` is 'self'. Body must not exceed ~40,000 characters.\").optional(),\n title: z.string().describe(\"The title of the post. Must be 300 characters or less.\"),\n flair_id: z.string().describe(\"ID of the post flair template (UUID format). Must be a valid flair template ID that exists for this specific subreddit. To get valid flair IDs, first use LIST_SUBREDDIT_POST_FLAIRS action for the target subreddit. Do not pass generic strings like 'general' or 'news' - these are not universal flair IDs. Some subreddits enforce mandatory flair; omitting or providing an invalid ID returns SUBMIT_VALIDATION_FLAIR_REQUIRED.\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit (without the 'r/' prefix) where the post will be submitted.\"),\n});\nexport const RedditCreateRedditPostOutput = z.object({\n id: z.string().describe(\"The post's unique identifier (short ID, e.g., '96ak55'). Present when post creation succeeds.\").nullable().optional(),\n url: z.string().describe(\"The full URL to the newly created post on Reddit. Present when post creation succeeds.\").nullable().optional(),\n name: z.string().describe(\"The post's fullname with type prefix (e.g., 't3_96ak55' where 't3' indicates it's a link/post). Present when post creation succeeds.\").nullable().optional(),\n success: z.boolean().describe(\"Whether the post was created successfully. If false, check 'validation_error' for details.\").nullable(),\n subreddit: z.string().describe(\"The subreddit name (without 'r/' prefix) - included when validation_error is present to help with flair lookup.\").nullable().optional(),\n drafts_count: z.number().int().describe(\"Count of draft submissions associated with the user account.\").nullable().optional(),\n validation_error: z.string().describe(\"Type of validation error if post creation failed due to subreddit requirements. Possible values include 'FLAIR_REQUIRED' (subreddit requires post flair), 'INVALID_FLAIR_ID' (provided flair_id is not valid for this subreddit), 'BODY_NOT_ALLOWED' (subreddit doesn't allow text posts), 'POST_GUIDANCE_VALIDATION_FAILED' (subreddit rules block this submission, often due to embedded URLs in text).\").nullable().optional(),\n validation_message: z.string().describe(\"Human-readable message explaining the validation error and how to resolve it.\").nullable().optional(),\n}).passthrough();\n\nexport const redditCreateRedditPost: AppAction<\n typeof RedditCreateRedditPostInput,\n typeof RedditCreateRedditPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_CREATE_REDDIT_POST\", {\n slug: \"reddit-create-reddit-post\",\n name: \"Create a Reddit post\",\n description: \"Creates a new text or link post on a specified, existing Reddit subreddit, optionally applying a flair. Immediately publishes publicly visible content — confirm subreddit, title, and body with the user before executing. Posts may be silently removed post-submission by automoderator or subreddit rules (errors: SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING, POST_GUIDANCE_VALIDATION_FAILED); verify visibility via the returned permalink. Rapid consecutive calls trigger RATELIMIT errors with cooldown hints.\",\n input: RedditCreateRedditPostInput,\n output: RedditCreateRedditPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,oQAAoQ,CAAC,CAAC,SAAS;CACvT,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACpK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;CACjd,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;AACxH,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtL,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2YAA2Y,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvc,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,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/create-reddit-post.d.ts
@@ -22,14 +24,7 @@ declare const RedditCreateRedditPostOutput: z.ZodObject<{
22
24
  validation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  validation_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>;
25
- declare const redditCreateRedditPost: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- title: string;
27
- subreddit: string;
28
- url?: string | undefined;
29
- kind?: "link" | "self" | undefined;
30
- text?: string | undefined;
31
- flair_id?: string | undefined;
32
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const redditCreateRedditPost: AppAction<typeof RedditCreateRedditPostInput, typeof RedditCreateRedditPostOutput, typeof reddit.credential>;
33
28
  //#endregion
34
29
  export { redditCreateRedditPost };
35
30
  //# sourceMappingURL=create-reddit-post.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-reddit-post.d.cts","names":[],"sources":["../../src/actions/create-reddit-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-reddit-post.d.cts","names":[],"sources":["../../src/actions/create-reddit-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/create-reddit-post.d.ts
@@ -22,14 +24,7 @@ declare const RedditCreateRedditPostOutput: z.ZodObject<{
22
24
  validation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  validation_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>;
25
- declare const redditCreateRedditPost: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- title: string;
27
- subreddit: string;
28
- url?: string | undefined;
29
- kind?: "link" | "self" | undefined;
30
- text?: string | undefined;
31
- flair_id?: string | undefined;
32
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const redditCreateRedditPost: AppAction<typeof RedditCreateRedditPostInput, typeof RedditCreateRedditPostOutput, typeof reddit.credential>;
33
28
  //#endregion
34
29
  export { redditCreateRedditPost };
35
30
  //# sourceMappingURL=create-reddit-post.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-reddit-post.d.mts","names":[],"sources":["../../src/actions/create-reddit-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-reddit-post.d.mts","names":[],"sources":["../../src/actions/create-reddit-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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 redditCreateRedditPost = action("REDDIT_CREATE_REDDIT_POST", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-reddit-post.mjs","names":[],"sources":["../../src/actions/create-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditCreateRedditPostInput = z.object({\n url: z.string().describe(\"The URL for a 'link' post. Required if `kind` is 'link'.\").optional(),\n kind: z.enum([\"link\", \"self\"]).describe(\"The type of the post. Use 'self' for a text-based post (when providing 'text') or 'link' for a post that links to an external URL (when providing 'url'). If omitted, it is automatically inferred: 'self' when 'text' is provided, 'link' when 'url' is provided.\").optional(),\n text: z.string().describe(\"The markdown-formatted text content for a 'self' post. Required if `kind` is 'self'. Body must not exceed ~40,000 characters.\").optional(),\n title: z.string().describe(\"The title of the post. Must be 300 characters or less.\"),\n flair_id: z.string().describe(\"ID of the post flair template (UUID format). Must be a valid flair template ID that exists for this specific subreddit. To get valid flair IDs, first use LIST_SUBREDDIT_POST_FLAIRS action for the target subreddit. Do not pass generic strings like 'general' or 'news' - these are not universal flair IDs. Some subreddits enforce mandatory flair; omitting or providing an invalid ID returns SUBMIT_VALIDATION_FLAIR_REQUIRED.\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit (without the 'r/' prefix) where the post will be submitted.\"),\n});\nexport const RedditCreateRedditPostOutput = z.object({\n id: z.string().describe(\"The post's unique identifier (short ID, e.g., '96ak55'). Present when post creation succeeds.\").nullable().optional(),\n url: z.string().describe(\"The full URL to the newly created post on Reddit. Present when post creation succeeds.\").nullable().optional(),\n name: z.string().describe(\"The post's fullname with type prefix (e.g., 't3_96ak55' where 't3' indicates it's a link/post). Present when post creation succeeds.\").nullable().optional(),\n success: z.boolean().describe(\"Whether the post was created successfully. If false, check 'validation_error' for details.\").nullable(),\n subreddit: z.string().describe(\"The subreddit name (without 'r/' prefix) - included when validation_error is present to help with flair lookup.\").nullable().optional(),\n drafts_count: z.number().int().describe(\"Count of draft submissions associated with the user account.\").nullable().optional(),\n validation_error: z.string().describe(\"Type of validation error if post creation failed due to subreddit requirements. Possible values include 'FLAIR_REQUIRED' (subreddit requires post flair), 'INVALID_FLAIR_ID' (provided flair_id is not valid for this subreddit), 'BODY_NOT_ALLOWED' (subreddit doesn't allow text posts), 'POST_GUIDANCE_VALIDATION_FAILED' (subreddit rules block this submission, often due to embedded URLs in text).\").nullable().optional(),\n validation_message: z.string().describe(\"Human-readable message explaining the validation error and how to resolve it.\").nullable().optional(),\n}).passthrough();\n\nexport const redditCreateRedditPost = action(\"REDDIT_CREATE_REDDIT_POST\", {\n slug: \"reddit-create-reddit-post\",\n name: \"Create a Reddit post\",\n description: \"Creates a new text or link post on a specified, existing Reddit subreddit, optionally applying a flair. Immediately publishes publicly visible content — confirm subreddit, title, and body with the user before executing. Posts may be silently removed post-submission by automoderator or subreddit rules (errors: SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING, POST_GUIDANCE_VALIDATION_FAILED); verify visibility via the returned permalink. Rapid consecutive calls trigger RATELIMIT errors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oB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-reddit-post.mjs","names":[],"sources":["../../src/actions/create-reddit-post.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 RedditCreateRedditPostInput = z.object({\n url: z.string().describe(\"The URL for a 'link' post. Required if `kind` is 'link'.\").optional(),\n kind: z.enum([\"link\", \"self\"]).describe(\"The type of the post. Use 'self' for a text-based post (when providing 'text') or 'link' for a post that links to an external URL (when providing 'url'). If omitted, it is automatically inferred: 'self' when 'text' is provided, 'link' when 'url' is provided.\").optional(),\n text: z.string().describe(\"The markdown-formatted text content for a 'self' post. Required if `kind` is 'self'. Body must not exceed ~40,000 characters.\").optional(),\n title: z.string().describe(\"The title of the post. Must be 300 characters or less.\"),\n flair_id: z.string().describe(\"ID of the post flair template (UUID format). Must be a valid flair template ID that exists for this specific subreddit. To get valid flair IDs, first use LIST_SUBREDDIT_POST_FLAIRS action for the target subreddit. Do not pass generic strings like 'general' or 'news' - these are not universal flair IDs. Some subreddits enforce mandatory flair; omitting or providing an invalid ID returns SUBMIT_VALIDATION_FLAIR_REQUIRED.\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit (without the 'r/' prefix) where the post will be submitted.\"),\n});\nexport const RedditCreateRedditPostOutput = z.object({\n id: z.string().describe(\"The post's unique identifier (short ID, e.g., '96ak55'). Present when post creation succeeds.\").nullable().optional(),\n url: z.string().describe(\"The full URL to the newly created post on Reddit. Present when post creation succeeds.\").nullable().optional(),\n name: z.string().describe(\"The post's fullname with type prefix (e.g., 't3_96ak55' where 't3' indicates it's a link/post). Present when post creation succeeds.\").nullable().optional(),\n success: z.boolean().describe(\"Whether the post was created successfully. If false, check 'validation_error' for details.\").nullable(),\n subreddit: z.string().describe(\"The subreddit name (without 'r/' prefix) - included when validation_error is present to help with flair lookup.\").nullable().optional(),\n drafts_count: z.number().int().describe(\"Count of draft submissions associated with the user account.\").nullable().optional(),\n validation_error: z.string().describe(\"Type of validation error if post creation failed due to subreddit requirements. Possible values include 'FLAIR_REQUIRED' (subreddit requires post flair), 'INVALID_FLAIR_ID' (provided flair_id is not valid for this subreddit), 'BODY_NOT_ALLOWED' (subreddit doesn't allow text posts), 'POST_GUIDANCE_VALIDATION_FAILED' (subreddit rules block this submission, often due to embedded URLs in text).\").nullable().optional(),\n validation_message: z.string().describe(\"Human-readable message explaining the validation error and how to resolve it.\").nullable().optional(),\n}).passthrough();\n\nexport const redditCreateRedditPost: AppAction<\n typeof RedditCreateRedditPostInput,\n typeof RedditCreateRedditPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_CREATE_REDDIT_POST\", {\n slug: \"reddit-create-reddit-post\",\n name: \"Create a Reddit post\",\n description: \"Creates a new text or link post on a specified, existing Reddit subreddit, optionally applying a flair. Immediately publishes publicly visible content — confirm subreddit, title, and body with the user before executing. Posts may be silently removed post-submission by automoderator or subreddit rules (errors: SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING, POST_GUIDANCE_VALIDATION_FAILED); verify visibility via the returned permalink. Rapid consecutive calls trigger RATELIMIT errors with cooldown hints.\",\n input: RedditCreateRedditPostInput,\n output: RedditCreateRedditPostOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3ByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,oQAAoQ,CAAC,CAAC,SAAS;EACvT,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EACpK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;EACjd,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACxH,CAoBS;CACP,QApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtL,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACrI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2YAA2Y,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvc,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAWO;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/delete-reddit-comment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/delete-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditDeleteRedditCommentInput = z.object({\n id: z.string().describe(\"The full 'thing ID' (fullname, e.g., 't1_c0s4w1c') of the comment to delete; typically starts with 't1_'.\"),\n});\nexport const RedditDeleteRedditCommentOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for comment deletion.\\n\\nReddit's /api/del endpoint uses the @noresponse decorator and returns an empty response body.\\nSuccess is indicated by the absence of errors and a successful HTTP status code.\");\n\nexport const redditDeleteRedditComment = action(\"REDDIT_DELETE_REDDIT_COMMENT\", {\n slug: \"reddit-delete-reddit-comment\",\n name: \"Delete Reddit comment\",\n description: \"Deletes a Reddit comment, identified by its fullname ID, if it was authored by the authenticated user. Deletion is permanent and irreversible.\",\n input: RedditDeleteRedditCommentInput,\n output: RedditDeleteRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EACrI,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yNAAyN;AAEnT,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/delete-reddit-comment.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 RedditDeleteRedditCommentInput = z.object({\n id: z.string().describe(\"The full 'thing ID' (fullname, e.g., 't1_c0s4w1c') of the comment to delete; typically starts with 't1_'.\"),\n});\nexport const RedditDeleteRedditCommentOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for comment deletion.\\n\\nReddit's /api/del endpoint uses the @noresponse decorator and returns an empty response body.\\nSuccess is indicated by the absence of errors and a successful HTTP status code.\");\n\nexport const redditDeleteRedditComment: AppAction<\n typeof RedditDeleteRedditCommentInput,\n typeof RedditDeleteRedditCommentOutput,\n typeof reddit.credential\n> = action(\"REDDIT_DELETE_REDDIT_COMMENT\", {\n slug: \"reddit-delete-reddit-comment\",\n name: \"Delete Reddit comment\",\n description: \"Deletes a Reddit comment, identified by its fullname ID, if it was authored by the authenticated user. Deletion is permanent and irreversible.\",\n input: RedditDeleteRedditCommentInput,\n output: RedditDeleteRedditCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EACrI,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yNAAyN;AAEnT,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/delete-reddit-comment.d.ts
@@ -5,9 +7,7 @@ declare const RedditDeleteRedditCommentInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const RedditDeleteRedditCommentOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const redditDeleteRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditDeleteRedditComment: AppAction<typeof RedditDeleteRedditCommentInput, typeof RedditDeleteRedditCommentOutput, typeof reddit.credential>;
11
11
  //#endregion
12
12
  export { redditDeleteRedditComment };
13
13
  //# sourceMappingURL=delete-reddit-comment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-comment.d.cts","names":[],"sources":["../../src/actions/delete-reddit-comment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-reddit-comment.d.cts","names":[],"sources":["../../src/actions/delete-reddit-comment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE/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/delete-reddit-comment.d.ts
@@ -5,9 +7,7 @@ declare const RedditDeleteRedditCommentInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const RedditDeleteRedditCommentOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const redditDeleteRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditDeleteRedditComment: AppAction<typeof RedditDeleteRedditCommentInput, typeof RedditDeleteRedditCommentOutput, typeof reddit.credential>;
11
11
  //#endregion
12
12
  export { redditDeleteRedditComment };
13
13
  //# sourceMappingURL=delete-reddit-comment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-comment.d.mts","names":[],"sources":["../../src/actions/delete-reddit-comment.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"delete-reddit-comment.d.mts","names":[],"sources":["../../src/actions/delete-reddit-comment.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE/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
  const redditDeleteRedditComment = action("REDDIT_DELETE_REDDIT_COMMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-comment.mjs","names":[],"sources":["../../src/actions/delete-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditDeleteRedditCommentInput = z.object({\n id: z.string().describe(\"The full 'thing ID' (fullname, e.g., 't1_c0s4w1c') of the comment to delete; typically starts with 't1_'.\"),\n});\nexport const RedditDeleteRedditCommentOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for comment deletion.\\n\\nReddit's /api/del endpoint uses the @noresponse decorator and returns an empty response body.\\nSuccess is indicated by the absence of errors and a successful HTTP status code.\");\n\nexport const redditDeleteRedditComment = action(\"REDDIT_DELETE_REDDIT_COMMENT\", {\n slug: \"reddit-delete-reddit-comment\",\n name: \"Delete Reddit comment\",\n description: \"Deletes a Reddit comment, identified by its fullname ID, if it was authored by the authenticated user. Deletion is permanent and irreversible.\",\n input: RedditDeleteRedditCommentInput,\n output: RedditDeleteRedditCommentOutput,\n});\n"],"mappings":";;AASA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT4C,EAAE,OAAO,EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EACrI,CAOS;CACP,QAP6C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yNAOhF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-reddit-comment.mjs","names":[],"sources":["../../src/actions/delete-reddit-comment.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 RedditDeleteRedditCommentInput = z.object({\n id: z.string().describe(\"The full 'thing ID' (fullname, e.g., 't1_c0s4w1c') of the comment to delete; typically starts with 't1_'.\"),\n});\nexport const RedditDeleteRedditCommentOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for comment deletion.\\n\\nReddit's /api/del endpoint uses the @noresponse decorator and returns an empty response body.\\nSuccess is indicated by the absence of errors and a successful HTTP status code.\");\n\nexport const redditDeleteRedditComment: AppAction<\n typeof RedditDeleteRedditCommentInput,\n typeof RedditDeleteRedditCommentOutput,\n typeof reddit.credential\n> = action(\"REDDIT_DELETE_REDDIT_COMMENT\", {\n slug: \"reddit-delete-reddit-comment\",\n name: \"Delete Reddit comment\",\n description: \"Deletes a Reddit comment, identified by its fullname ID, if it was authored by the authenticated user. Deletion is permanent and irreversible.\",\n input: RedditDeleteRedditCommentInput,\n output: RedditDeleteRedditCommentOutput,\n});\n"],"mappings":";;;AAWA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,EACrI,CAWS;CACP,QAX6C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yNAWhF;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/delete-reddit-post.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-post.cjs","names":["z","action"],"sources":["../../src/actions/delete-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditDeleteRedditPostInput = z.object({\n id: z.string().describe(\"The full name (fullname) of the Reddit post to be deleted. This ID must start with 't3_' followed by the post's unique base36 identifier.\"),\n});\nexport const RedditDeleteRedditPostOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/del endpoint.\\n\\nThe Reddit API /api/del endpoint returns an empty JSON object or empty response\\nupon successful deletion. Reddit does not provide confirmation data, status fields,\\nor deletion metadata in the response body. Success is indicated by HTTP status code\\n(200 or 204) and the absence of errors in the json.errors array when api_type=json\\nis used.\");\n\nexport const redditDeleteRedditPost = action(\"REDDIT_DELETE_REDDIT_POST\", {\n slug: \"reddit-delete-reddit-post\",\n name: \"Delete a Reddit post\",\n description: \"Permanently and irreversibly deletes a Reddit post by its ID. Confirm with the user before calling. Only works on posts authored by the authenticated account; attempting to delete another user's post will fail.\",\n input: RedditDeleteRedditPostInput,\n output: RedditDeleteRedditPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACrK,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sYAAsY;AAE7d,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-reddit-post.cjs","names":["z","action"],"sources":["../../src/actions/delete-reddit-post.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 RedditDeleteRedditPostInput = z.object({\n id: z.string().describe(\"The full name (fullname) of the Reddit post to be deleted. This ID must start with 't3_' followed by the post's unique base36 identifier.\"),\n});\nexport const RedditDeleteRedditPostOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/del endpoint.\\n\\nThe Reddit API /api/del endpoint returns an empty JSON object or empty response\\nupon successful deletion. Reddit does not provide confirmation data, status fields,\\nor deletion metadata in the response body. Success is indicated by HTTP status code\\n(200 or 204) and the absence of errors in the json.errors array when api_type=json\\nis used.\");\n\nexport const redditDeleteRedditPost: AppAction<\n typeof RedditDeleteRedditPostInput,\n typeof RedditDeleteRedditPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_DELETE_REDDIT_POST\", {\n slug: \"reddit-delete-reddit-post\",\n name: \"Delete a Reddit post\",\n description: \"Permanently and irreversibly deletes a Reddit post by its ID. Confirm with the user before calling. Only works on posts authored by the authenticated account; attempting to delete another user's post will fail.\",\n input: RedditDeleteRedditPostInput,\n output: RedditDeleteRedditPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACrK,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sYAAsY;AAE7d,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,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/delete-reddit-post.d.ts
@@ -5,9 +7,7 @@ declare const RedditDeleteRedditPostInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const RedditDeleteRedditPostOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const redditDeleteRedditPost: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditDeleteRedditPost: AppAction<typeof RedditDeleteRedditPostInput, typeof RedditDeleteRedditPostOutput, typeof reddit.credential>;
11
11
  //#endregion
12
12
  export { redditDeleteRedditPost };
13
13
  //# sourceMappingURL=delete-reddit-post.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-post.d.cts","names":[],"sources":["../../src/actions/delete-reddit-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-reddit-post.d.cts","names":[],"sources":["../../src/actions/delete-reddit-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/delete-reddit-post.d.ts
@@ -5,9 +7,7 @@ declare const RedditDeleteRedditPostInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const RedditDeleteRedditPostOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const redditDeleteRedditPost: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const redditDeleteRedditPost: AppAction<typeof RedditDeleteRedditPostInput, typeof RedditDeleteRedditPostOutput, typeof reddit.credential>;
11
11
  //#endregion
12
12
  export { redditDeleteRedditPost };
13
13
  //# sourceMappingURL=delete-reddit-post.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-post.d.mts","names":[],"sources":["../../src/actions/delete-reddit-post.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-reddit-post.d.mts","names":[],"sources":["../../src/actions/delete-reddit-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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 redditDeleteRedditPost = action("REDDIT_DELETE_REDDIT_POST", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reddit-post.mjs","names":[],"sources":["../../src/actions/delete-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditDeleteRedditPostInput = z.object({\n id: z.string().describe(\"The full name (fullname) of the Reddit post to be deleted. This ID must start with 't3_' followed by the post's unique base36 identifier.\"),\n});\nexport const RedditDeleteRedditPostOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/del endpoint.\\n\\nThe Reddit API /api/del endpoint returns an empty JSON object or empty response\\nupon successful deletion. Reddit does not provide confirmation data, status fields,\\nor deletion metadata in the response body. Success is indicated by HTTP status code\\n(200 or 204) and the absence of errors in the json.errors array when api_type=json\\nis used.\");\n\nexport const redditDeleteRedditPost = action(\"REDDIT_DELETE_REDDIT_POST\", {\n slug: \"reddit-delete-reddit-post\",\n name: \"Delete a Reddit post\",\n description: \"Permanently and irreversibly deletes a Reddit post by its ID. Confirm with the user before calling. Only works on posts authored by the authenticated account; attempting to delete another user's post will fail.\",\n input: RedditDeleteRedditPostInput,\n output: RedditDeleteRedditPostOutput,\n});\n"],"mappings":";;AASA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACrK,CAOS;CACP,QAP0C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sYAO7E;AACV,CAAC"}
1
+ {"version":3,"file":"delete-reddit-post.mjs","names":[],"sources":["../../src/actions/delete-reddit-post.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 RedditDeleteRedditPostInput = z.object({\n id: z.string().describe(\"The full name (fullname) of the Reddit post to be deleted. This ID must start with 't3_' followed by the post's unique base36 identifier.\"),\n});\nexport const RedditDeleteRedditPostOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/del endpoint.\\n\\nThe Reddit API /api/del endpoint returns an empty JSON object or empty response\\nupon successful deletion. Reddit does not provide confirmation data, status fields,\\nor deletion metadata in the response body. Success is indicated by HTTP status code\\n(200 or 204) and the absence of errors in the json.errors array when api_type=json\\nis used.\");\n\nexport const redditDeleteRedditPost: AppAction<\n typeof RedditDeleteRedditPostInput,\n typeof RedditDeleteRedditPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_DELETE_REDDIT_POST\", {\n slug: \"reddit-delete-reddit-post\",\n name: \"Delete a Reddit post\",\n description: \"Permanently and irreversibly deletes a Reddit post by its ID. Confirm with the user before calling. Only works on posts authored by the authenticated account; attempting to delete another user's post will fail.\",\n input: RedditDeleteRedditPostInput,\n output: RedditDeleteRedditPostOutput,\n});\n"],"mappings":";;;AAWA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACrK,CAWS;CACP,QAX0C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sYAW7E;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/edit-reddit-comment-or-post.ts
@@ -1 +1 @@
1
- {"version":3,"file":"edit-reddit-comment-or-post.cjs","names":["z","action"],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditEditRedditCommentOrPostInput = z.object({\n text: z.string().describe(\"The new raw markdown text for the body of the comment or self-post.\"),\n thing_id: z.string().describe(\"The full name (fullname) of the comment or self-post to edit. This is a combination of a prefix (e.g., 't1_' for comment, 't3_' for post) and the item's ID.\"),\n});\nconst RedditEditRedditCommentOrPost_EditedThingDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the comment or post.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes including the user's own vote.\").nullable().optional(),\n body: z.string().describe(\"The raw text content (for comments). This is the unformatted text which includes the raw markup characters.\").nullable().optional(),\n name: z.string().describe(\"The fullname of the thing (e.g., t1_abc123 for comment, t3_xyz789 for post).\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes including the user's own vote.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status. True for upvoted, False for downvoted, null if no vote.\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this item.\").nullable().optional(),\n score: z.number().int().describe(\"Net upvotes minus downvotes.\").nullable().optional(),\n author: z.string().describe(\"Account name of the author.\").nullable().optional(),\n edited: z.union([z.boolean(), z.number().int(), z.number()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the comment or post received Reddit gold.\").nullable().optional(),\n created: z.number().describe(\"Creation timestamp in local epoch-seconds.\").nullable().optional(),\n link_id: z.string().describe(\"Identifier of the parent link (for comments only).\").nullable().optional(),\n replies: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the item is archived.\").nullable().optional(),\n link_url: z.string().describe(\"URL of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n mod_note: z.string().describe(\"Moderator note on the item.\").nullable().optional(),\n banned_by: z.string().describe(\"Who removed this item. Null if nobody or you are not a mod.\").nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text as displayed on Reddit (for comments).\").nullable().optional(),\n no_follow: z.boolean().describe(\"Whether the item has a nofollow attribute.\").nullable().optional(),\n parent_id: z.string().describe(\"Identifier of the parent comment or link (for comments only).\").nullable().optional(),\n subreddit: z.string().describe(\"Subreddit name without /r/ prefix.\").nullable().optional(),\n link_title: z.string().describe(\"Title of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n approved_by: z.string().describe(\"Who approved this item. Null if nobody or you are not a mod.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in UTC epoch-seconds.\").nullable().optional(),\n link_author: z.string().describe(\"Author of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n num_reports: z.number().int().describe(\"Report count. Null if not a moderator.\").nullable().optional(),\n can_mod_post: z.boolean().describe(\"Whether the current user can moderate this post.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment (for comments only).\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the author of the submission (for comments only).\").nullable().optional(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden (for comments only).\").nullable().optional(),\n send_replies: z.boolean().describe(\"Whether to send inbox replies for responses to this item.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Identifier of the parent subreddit.\").nullable().optional(),\n all_awardings: z.array(z.record(z.string(), z.unknown())).describe(\"Array of all awards given to this item.\").nullable().optional(),\n banned_at_utc: z.number().describe(\"UTC timestamp when the item was banned/removed.\").nullable().optional(),\n distinguished: z.string().describe(\"Null for not distinguished, 'moderator' for the green [M], 'admin' for the red [A], or 'special' for various other special distinguishes.\").nullable().optional(),\n mod_reason_by: z.string().describe(\"Moderator who provided the removal reason.\").nullable().optional(),\n author_premium: z.boolean().describe(\"Whether the author has Reddit Premium.\").nullable().optional(),\n removal_reason: z.string().describe(\"Reason for removal if the item was removed.\").nullable().optional(),\n approved_at_utc: z.number().describe(\"UTC timestamp when the item was approved.\").nullable().optional(),\n author_fullname: z.string().describe(\"The fullname of the author account.\").nullable().optional(),\n mod_reason_title: z.string().describe(\"Title of the moderator's removal reason.\").nullable().optional(),\n author_flair_text: z.string().describe(\"The text of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_type: z.string().describe(\"The type of the author's flair.\").nullable().optional(),\n author_is_blocked: z.boolean().describe(\"Whether the author is blocked by the current user.\").nullable().optional(),\n collapsed_reason_code: z.string().describe(\"Code indicating why the comment is collapsed (for comments only).\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total number of awards received.\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"The CSS class of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_template_id: z.string().describe(\"The template ID of the author's flair.\").nullable().optional(),\n}).passthrough().describe(\"The edited thing's data attributes returned by the Reddit API editusertext endpoint.\");\nconst RedditEditRedditCommentOrPost_EditJsonResponseSchema = z.object({\n data: RedditEditRedditCommentOrPost_EditedThingDataSchema.nullable(),\n errors: z.array(z.array(z.string())).describe(\"Array of error messages. Empty array if the operation was successful.\"),\n}).passthrough().describe(\"The json wrapper for the edit response.\");\nexport const RedditEditRedditCommentOrPostOutput = z.object({\n json: RedditEditRedditCommentOrPost_EditJsonResponseSchema.nullable(),\n}).passthrough().describe(\"Response from editing a Reddit comment or post.\");\n\nexport const redditEditRedditCommentOrPost = action(\"REDDIT_EDIT_REDDIT_COMMENT_OR_POST\", {\n slug: \"reddit-edit-reddit-comment-or-post\",\n name: \"Edit comment or post\",\n description: \"Edits the body text of the authenticated user's own existing comment or self-post on Reddit; cannot edit link posts or titles.\",\n input: RedditEditRedditCommentOrPostInput,\n output: RedditEditRedditCommentOrPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;AAC9L,CAAC;AACD,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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oDAAoD,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"edit-reddit-comment-or-post.cjs","names":["z","action"],"sources":["../../src/actions/edit-reddit-comment-or-post.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 RedditEditRedditCommentOrPostInput = z.object({\n text: z.string().describe(\"The new raw markdown text for the body of the comment or self-post.\"),\n thing_id: z.string().describe(\"The full name (fullname) of the comment or self-post to edit. This is a combination of a prefix (e.g., 't1_' for comment, 't3_' for post) and the item's ID.\"),\n});\nconst RedditEditRedditCommentOrPost_EditedThingDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the comment or post.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes including the user's own vote.\").nullable().optional(),\n body: z.string().describe(\"The raw text content (for comments). This is the unformatted text which includes the raw markup characters.\").nullable().optional(),\n name: z.string().describe(\"The fullname of the thing (e.g., t1_abc123 for comment, t3_xyz789 for post).\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes including the user's own vote.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status. True for upvoted, False for downvoted, null if no vote.\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this item.\").nullable().optional(),\n score: z.number().int().describe(\"Net upvotes minus downvotes.\").nullable().optional(),\n author: z.string().describe(\"Account name of the author.\").nullable().optional(),\n edited: z.union([z.boolean(), z.number().int(), z.number()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the comment or post received Reddit gold.\").nullable().optional(),\n created: z.number().describe(\"Creation timestamp in local epoch-seconds.\").nullable().optional(),\n link_id: z.string().describe(\"Identifier of the parent link (for comments only).\").nullable().optional(),\n replies: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the item is archived.\").nullable().optional(),\n link_url: z.string().describe(\"URL of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n mod_note: z.string().describe(\"Moderator note on the item.\").nullable().optional(),\n banned_by: z.string().describe(\"Who removed this item. Null if nobody or you are not a mod.\").nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text as displayed on Reddit (for comments).\").nullable().optional(),\n no_follow: z.boolean().describe(\"Whether the item has a nofollow attribute.\").nullable().optional(),\n parent_id: z.string().describe(\"Identifier of the parent comment or link (for comments only).\").nullable().optional(),\n subreddit: z.string().describe(\"Subreddit name without /r/ prefix.\").nullable().optional(),\n link_title: z.string().describe(\"Title of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n approved_by: z.string().describe(\"Who approved this item. Null if nobody or you are not a mod.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in UTC epoch-seconds.\").nullable().optional(),\n link_author: z.string().describe(\"Author of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n num_reports: z.number().int().describe(\"Report count. Null if not a moderator.\").nullable().optional(),\n can_mod_post: z.boolean().describe(\"Whether the current user can moderate this post.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment (for comments only).\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the author of the submission (for comments only).\").nullable().optional(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden (for comments only).\").nullable().optional(),\n send_replies: z.boolean().describe(\"Whether to send inbox replies for responses to this item.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Identifier of the parent subreddit.\").nullable().optional(),\n all_awardings: z.array(z.record(z.string(), z.unknown())).describe(\"Array of all awards given to this item.\").nullable().optional(),\n banned_at_utc: z.number().describe(\"UTC timestamp when the item was banned/removed.\").nullable().optional(),\n distinguished: z.string().describe(\"Null for not distinguished, 'moderator' for the green [M], 'admin' for the red [A], or 'special' for various other special distinguishes.\").nullable().optional(),\n mod_reason_by: z.string().describe(\"Moderator who provided the removal reason.\").nullable().optional(),\n author_premium: z.boolean().describe(\"Whether the author has Reddit Premium.\").nullable().optional(),\n removal_reason: z.string().describe(\"Reason for removal if the item was removed.\").nullable().optional(),\n approved_at_utc: z.number().describe(\"UTC timestamp when the item was approved.\").nullable().optional(),\n author_fullname: z.string().describe(\"The fullname of the author account.\").nullable().optional(),\n mod_reason_title: z.string().describe(\"Title of the moderator's removal reason.\").nullable().optional(),\n author_flair_text: z.string().describe(\"The text of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_type: z.string().describe(\"The type of the author's flair.\").nullable().optional(),\n author_is_blocked: z.boolean().describe(\"Whether the author is blocked by the current user.\").nullable().optional(),\n collapsed_reason_code: z.string().describe(\"Code indicating why the comment is collapsed (for comments only).\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total number of awards received.\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"The CSS class of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_template_id: z.string().describe(\"The template ID of the author's flair.\").nullable().optional(),\n}).passthrough().describe(\"The edited thing's data attributes returned by the Reddit API editusertext endpoint.\");\nconst RedditEditRedditCommentOrPost_EditJsonResponseSchema = z.object({\n data: RedditEditRedditCommentOrPost_EditedThingDataSchema.nullable(),\n errors: z.array(z.array(z.string())).describe(\"Array of error messages. Empty array if the operation was successful.\"),\n}).passthrough().describe(\"The json wrapper for the edit response.\");\nexport const RedditEditRedditCommentOrPostOutput = z.object({\n json: RedditEditRedditCommentOrPost_EditJsonResponseSchema.nullable(),\n}).passthrough().describe(\"Response from editing a Reddit comment or post.\");\n\nexport const redditEditRedditCommentOrPost: AppAction<\n typeof RedditEditRedditCommentOrPostInput,\n typeof RedditEditRedditCommentOrPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_EDIT_REDDIT_COMMENT_OR_POST\", {\n slug: \"reddit-edit-reddit-comment-or-post\",\n name: \"Edit comment or post\",\n description: \"Edits the body text of the authenticated user's own existing comment or self-post on Reddit; cannot edit link posts or titles.\",\n input: RedditEditRedditCommentOrPostInput,\n output: RedditEditRedditCommentOrPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;AAC9L,CAAC;AACD,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAA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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/edit-reddit-comment-or-post.d.ts
@@ -61,10 +63,7 @@ declare const RedditEditRedditCommentOrPostOutput: z.ZodObject<{
61
63
  errors: z.ZodArray<z.ZodArray<z.ZodString>>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const redditEditRedditCommentOrPost: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- text: string;
66
- thing_id: string;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
66
+ declare const redditEditRedditCommentOrPost: AppAction<typeof RedditEditRedditCommentOrPostInput, typeof RedditEditRedditCommentOrPostOutput, typeof reddit.credential>;
68
67
  //#endregion
69
68
  export { redditEditRedditCommentOrPost };
70
69
  //# sourceMappingURL=edit-reddit-comment-or-post.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-reddit-comment-or-post.d.cts","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cA2DlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"edit-reddit-comment-or-post.d.cts","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cA2DlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,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/edit-reddit-comment-or-post.d.ts
@@ -61,10 +63,7 @@ declare const RedditEditRedditCommentOrPostOutput: z.ZodObject<{
61
63
  errors: z.ZodArray<z.ZodArray<z.ZodString>>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const redditEditRedditCommentOrPost: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- text: string;
66
- thing_id: string;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
66
+ declare const redditEditRedditCommentOrPost: AppAction<typeof RedditEditRedditCommentOrPostInput, typeof RedditEditRedditCommentOrPostOutput, typeof reddit.credential>;
68
67
  //#endregion
69
68
  export { redditEditRedditCommentOrPost };
70
69
  //# sourceMappingURL=edit-reddit-comment-or-post.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-reddit-comment-or-post.d.mts","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cA2DlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"edit-reddit-comment-or-post.d.mts","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cA2DlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,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/edit-reddit-comment-or-post.ts
@@ -1 +1 @@
1
- {"version":3,"file":"edit-reddit-comment-or-post.mjs","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditEditRedditCommentOrPostInput = z.object({\n text: z.string().describe(\"The new raw markdown text for the body of the comment or self-post.\"),\n thing_id: z.string().describe(\"The full name (fullname) of the comment or self-post to edit. This is a combination of a prefix (e.g., 't1_' for comment, 't3_' for post) and the item's ID.\"),\n});\nconst RedditEditRedditCommentOrPost_EditedThingDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the comment or post.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes including the user's own vote.\").nullable().optional(),\n body: z.string().describe(\"The raw text content (for comments). This is the unformatted text which includes the raw markup characters.\").nullable().optional(),\n name: z.string().describe(\"The fullname of the thing (e.g., t1_abc123 for comment, t3_xyz789 for post).\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes including the user's own vote.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status. True for upvoted, False for downvoted, null if no vote.\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this item.\").nullable().optional(),\n score: z.number().int().describe(\"Net upvotes minus downvotes.\").nullable().optional(),\n author: z.string().describe(\"Account name of the author.\").nullable().optional(),\n edited: z.union([z.boolean(), z.number().int(), z.number()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the comment or post received Reddit gold.\").nullable().optional(),\n created: z.number().describe(\"Creation timestamp in local epoch-seconds.\").nullable().optional(),\n link_id: z.string().describe(\"Identifier of the parent link (for comments only).\").nullable().optional(),\n replies: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the item is archived.\").nullable().optional(),\n link_url: z.string().describe(\"URL of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n mod_note: z.string().describe(\"Moderator note on the item.\").nullable().optional(),\n banned_by: z.string().describe(\"Who removed this item. Null if nobody or you are not a mod.\").nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text as displayed on Reddit (for comments).\").nullable().optional(),\n no_follow: z.boolean().describe(\"Whether the item has a nofollow attribute.\").nullable().optional(),\n parent_id: z.string().describe(\"Identifier of the parent comment or link (for comments only).\").nullable().optional(),\n subreddit: z.string().describe(\"Subreddit name without /r/ prefix.\").nullable().optional(),\n link_title: z.string().describe(\"Title of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n approved_by: z.string().describe(\"Who approved this item. Null if nobody or you are not a mod.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in UTC epoch-seconds.\").nullable().optional(),\n link_author: z.string().describe(\"Author of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n num_reports: z.number().int().describe(\"Report count. Null if not a moderator.\").nullable().optional(),\n can_mod_post: z.boolean().describe(\"Whether the current user can moderate this post.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment (for comments only).\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the author of the submission (for comments only).\").nullable().optional(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden (for comments only).\").nullable().optional(),\n send_replies: z.boolean().describe(\"Whether to send inbox replies for responses to this item.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Identifier of the parent subreddit.\").nullable().optional(),\n all_awardings: z.array(z.record(z.string(), z.unknown())).describe(\"Array of all awards given to this item.\").nullable().optional(),\n banned_at_utc: z.number().describe(\"UTC timestamp when the item was banned/removed.\").nullable().optional(),\n distinguished: z.string().describe(\"Null for not distinguished, 'moderator' for the green [M], 'admin' for the red [A], or 'special' for various other special distinguishes.\").nullable().optional(),\n mod_reason_by: z.string().describe(\"Moderator who provided the removal reason.\").nullable().optional(),\n author_premium: z.boolean().describe(\"Whether the author has Reddit Premium.\").nullable().optional(),\n removal_reason: z.string().describe(\"Reason for removal if the item was removed.\").nullable().optional(),\n approved_at_utc: z.number().describe(\"UTC timestamp when the item was approved.\").nullable().optional(),\n author_fullname: z.string().describe(\"The fullname of the author account.\").nullable().optional(),\n mod_reason_title: z.string().describe(\"Title of the moderator's removal reason.\").nullable().optional(),\n author_flair_text: z.string().describe(\"The text of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_type: z.string().describe(\"The type of the author's flair.\").nullable().optional(),\n author_is_blocked: z.boolean().describe(\"Whether the author is blocked by the current user.\").nullable().optional(),\n collapsed_reason_code: z.string().describe(\"Code indicating why the comment is collapsed (for comments only).\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total number of awards received.\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"The CSS class of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_template_id: z.string().describe(\"The template ID of the author's flair.\").nullable().optional(),\n}).passthrough().describe(\"The edited thing's data attributes returned by the Reddit API editusertext endpoint.\");\nconst RedditEditRedditCommentOrPost_EditJsonResponseSchema = z.object({\n data: RedditEditRedditCommentOrPost_EditedThingDataSchema.nullable(),\n errors: z.array(z.array(z.string())).describe(\"Array of error messages. Empty array if the operation was successful.\"),\n}).passthrough().describe(\"The json wrapper for the edit response.\");\nexport const RedditEditRedditCommentOrPostOutput = z.object({\n json: RedditEditRedditCommentOrPost_EditJsonResponseSchema.nullable(),\n}).passthrough().describe(\"Response from editing a Reddit comment or post.\");\n\nexport const redditEditRedditCommentOrPost = action(\"REDDIT_EDIT_REDDIT_COMMENT_OR_POST\", {\n slug: \"reddit-edit-reddit-comment-or-post\",\n name: \"Edit comment or post\",\n description: \"Edits the body text of the authenticated user's own existing comment or self-post on Reddit; cannot edit link posts or titles.\",\n input: RedditEditRedditCommentOrPostInput,\n output: RedditEditRedditCommentOrPostOutput,\n});\n"],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AM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"edit-reddit-comment-or-post.mjs","names":[],"sources":["../../src/actions/edit-reddit-comment-or-post.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 RedditEditRedditCommentOrPostInput = z.object({\n text: z.string().describe(\"The new raw markdown text for the body of the comment or self-post.\"),\n thing_id: z.string().describe(\"The full name (fullname) of the comment or self-post to edit. This is a combination of a prefix (e.g., 't1_' for comment, 't3_' for post) and the item's ID.\"),\n});\nconst RedditEditRedditCommentOrPost_EditedThingDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the comment or post.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes including the user's own vote.\").nullable().optional(),\n body: z.string().describe(\"The raw text content (for comments). This is the unformatted text which includes the raw markup characters.\").nullable().optional(),\n name: z.string().describe(\"The fullname of the thing (e.g., t1_abc123 for comment, t3_xyz789 for post).\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes including the user's own vote.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status. True for upvoted, False for downvoted, null if no vote.\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this item.\").nullable().optional(),\n score: z.number().int().describe(\"Net upvotes minus downvotes.\").nullable().optional(),\n author: z.string().describe(\"Account name of the author.\").nullable().optional(),\n edited: z.union([z.boolean(), z.number().int(), z.number()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the comment or post received Reddit gold.\").nullable().optional(),\n created: z.number().describe(\"Creation timestamp in local epoch-seconds.\").nullable().optional(),\n link_id: z.string().describe(\"Identifier of the parent link (for comments only).\").nullable().optional(),\n replies: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the item is archived.\").nullable().optional(),\n link_url: z.string().describe(\"URL of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n mod_note: z.string().describe(\"Moderator note on the item.\").nullable().optional(),\n banned_by: z.string().describe(\"Who removed this item. Null if nobody or you are not a mod.\").nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text as displayed on Reddit (for comments).\").nullable().optional(),\n no_follow: z.boolean().describe(\"Whether the item has a nofollow attribute.\").nullable().optional(),\n parent_id: z.string().describe(\"Identifier of the parent comment or link (for comments only).\").nullable().optional(),\n subreddit: z.string().describe(\"Subreddit name without /r/ prefix.\").nullable().optional(),\n link_title: z.string().describe(\"Title of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n approved_by: z.string().describe(\"Who approved this item. Null if nobody or you are not a mod.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in UTC epoch-seconds.\").nullable().optional(),\n link_author: z.string().describe(\"Author of the parent link when displayed outside its thread (for comments only).\").nullable().optional(),\n num_reports: z.number().int().describe(\"Report count. Null if not a moderator.\").nullable().optional(),\n can_mod_post: z.boolean().describe(\"Whether the current user can moderate this post.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment (for comments only).\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the author of the submission (for comments only).\").nullable().optional(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden (for comments only).\").nullable().optional(),\n send_replies: z.boolean().describe(\"Whether to send inbox replies for responses to this item.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Identifier of the parent subreddit.\").nullable().optional(),\n all_awardings: z.array(z.record(z.string(), z.unknown())).describe(\"Array of all awards given to this item.\").nullable().optional(),\n banned_at_utc: z.number().describe(\"UTC timestamp when the item was banned/removed.\").nullable().optional(),\n distinguished: z.string().describe(\"Null for not distinguished, 'moderator' for the green [M], 'admin' for the red [A], or 'special' for various other special distinguishes.\").nullable().optional(),\n mod_reason_by: z.string().describe(\"Moderator who provided the removal reason.\").nullable().optional(),\n author_premium: z.boolean().describe(\"Whether the author has Reddit Premium.\").nullable().optional(),\n removal_reason: z.string().describe(\"Reason for removal if the item was removed.\").nullable().optional(),\n approved_at_utc: z.number().describe(\"UTC timestamp when the item was approved.\").nullable().optional(),\n author_fullname: z.string().describe(\"The fullname of the author account.\").nullable().optional(),\n mod_reason_title: z.string().describe(\"Title of the moderator's removal reason.\").nullable().optional(),\n author_flair_text: z.string().describe(\"The text of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_type: z.string().describe(\"The type of the author's flair.\").nullable().optional(),\n author_is_blocked: z.boolean().describe(\"Whether the author is blocked by the current user.\").nullable().optional(),\n collapsed_reason_code: z.string().describe(\"Code indicating why the comment is collapsed (for comments only).\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total number of awards received.\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"The CSS class of the author's flair. Subreddit specific.\").nullable().optional(),\n author_flair_template_id: z.string().describe(\"The template ID of the author's flair.\").nullable().optional(),\n}).passthrough().describe(\"The edited thing's data attributes returned by the Reddit API editusertext endpoint.\");\nconst RedditEditRedditCommentOrPost_EditJsonResponseSchema = z.object({\n data: RedditEditRedditCommentOrPost_EditedThingDataSchema.nullable(),\n errors: z.array(z.array(z.string())).describe(\"Array of error messages. Empty array if the operation was successful.\"),\n}).passthrough().describe(\"The json wrapper for the edit response.\");\nexport const RedditEditRedditCommentOrPostOutput = z.object({\n json: RedditEditRedditCommentOrPost_EditJsonResponseSchema.nullable(),\n}).passthrough().describe(\"Response from editing a Reddit comment or post.\");\n\nexport const redditEditRedditCommentOrPost: AppAction<\n typeof RedditEditRedditCommentOrPostInput,\n typeof RedditEditRedditCommentOrPostOutput,\n typeof reddit.credential\n> = action(\"REDDIT_EDIT_REDDIT_COMMENT_OR_POST\", {\n slug: \"reddit-edit-reddit-comment-or-post\",\n name: \"Edit comment or post\",\n description: \"Edits the body text of the authenticated user's own existing comment or self-post on Reddit; cannot edit link posts or titles.\",\n input: RedditEditRedditCommentOrPostInput,\n output: RedditEditRedditCommentOrPostOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;AAC9L,CAAC;AACD,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,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AC,CAAC,SAAS;CAC5H,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAChH,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,oDAAoD,SAAS;CACnE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,gCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiD,EAAE,OAAO,EAC1D,MAAM,qDAAqD,SAAS,EACtE,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-controversial-posts.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-controversial-posts.cjs","names":["z","action"],"sources":["../../src/actions/get-controversial-posts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetControversialPostsInput = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking controversial posts. Specifies the time period: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of controversial posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n});\nconst RedditGetControversialPosts_ControversialPostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes received.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status: true (upvoted), false (downvoted), null (no vote).\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved the post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n edited: z.union([z.number(), z.boolean()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the post has been gilded.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether the logged-in user has hidden the post.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n pinned: z.boolean().describe(\"Whether the post is pinned to the top of the subreddit.\").nullable().optional(),\n clicked: z.boolean().describe(\"Whether the logged-in user has clicked the post.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of post creation in local epoch-seconds.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the post is archived and no longer accepts votes or comments.\").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().optional(),\n post_hint: z.string().describe(\"Hint about the post content type (e.g., 'image', 'link', 'video', 'self').\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status of the post: null (not distinguished), 'moderator' (green [M]), 'admin' (red [A]).\").nullable().optional(),\n selftext_html: z.string().describe(\"HTML-rendered version of the selftext with escaped characters.\").nullable().optional(),\n num_crossposts: z.number().int().describe(\"Number of times this post has been crossposted.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type classification of the subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n author_fullname: z.string().describe(\"Full identifier of the author with type prefix (e.g., 't2_xxxxx').\").nullable().optional(),\n link_flair_text: z.string().describe(\"Text content of the post's link flair.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n is_crosspostable: z.boolean().describe(\"Whether the post can be crossposted to other subreddits.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's flair, subreddit-specific.\").nullable().optional(),\n subreddit_subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total count of all awards received by the post.\").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 all post fields.\");\nconst RedditGetControversialPosts_ControversialPostChildSchema = z.object({\n data: RedditGetControversialPosts_ControversialPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetControversialPosts_ControversialListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetControversialPosts_ControversialPostChildSchema).describe(\"Array of controversial post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetControversialPostsOutput = z.object({\n data: RedditGetControversialPosts_ControversialListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\").nullable(),\n}).passthrough().describe(\"Response from retrieving controversial posts from all subreddits.\");\n\nexport const redditGetControversialPosts = action(\"REDDIT_GET_CONTROVERSIAL_POSTS\", {\n slug: \"reddit-get-controversial-posts\",\n name: \"Get controversial posts from all subreddits\",\n description: \"Tool to retrieve controversial posts from all subreddits with time filters. Use when you need to find the most controversial posts across Reddit from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by controversy within the specified time frame.\",\n input: RedditGetControversialPostsInput,\n output: RedditGetControversialPostsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,GAAGA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SA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names":["z","action"],"sources":["../../src/actions/get-controversial-posts.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 RedditGetControversialPostsInput = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking controversial posts. Specifies the time period: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of controversial posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n});\nconst RedditGetControversialPosts_ControversialPostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes received.\").nullable().optional(),\n likes: z.boolean().describe(\"User's vote status: true (upvoted), false (downvoted), null (no vote).\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved the post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n edited: z.union([z.number(), z.boolean()]).nullable().optional(),\n gilded: z.number().int().describe(\"Number of times the post has been gilded.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether the logged-in user has hidden the post.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n pinned: z.boolean().describe(\"Whether the post is pinned to the top of the subreddit.\").nullable().optional(),\n clicked: z.boolean().describe(\"Whether the logged-in user has clicked the post.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of post creation in local epoch-seconds.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the post is archived and no longer accepts votes or comments.\").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().optional(),\n post_hint: z.string().describe(\"Hint about the post content type (e.g., 'image', 'link', 'video', 'self').\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status of the post: null (not distinguished), 'moderator' (green [M]), 'admin' (red [A]).\").nullable().optional(),\n selftext_html: z.string().describe(\"HTML-rendered version of the selftext with escaped characters.\").nullable().optional(),\n num_crossposts: z.number().int().describe(\"Number of times this post has been crossposted.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type classification of the subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n author_fullname: z.string().describe(\"Full identifier of the author with type prefix (e.g., 't2_xxxxx').\").nullable().optional(),\n link_flair_text: z.string().describe(\"Text content of the post's link flair.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n is_crosspostable: z.boolean().describe(\"Whether the post can be crossposted to other subreddits.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's flair, subreddit-specific.\").nullable().optional(),\n subreddit_subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n total_awards_received: z.number().int().describe(\"Total count of all awards received by the post.\").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 all post fields.\");\nconst RedditGetControversialPosts_ControversialPostChildSchema = z.object({\n data: RedditGetControversialPosts_ControversialPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetControversialPosts_ControversialListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetControversialPosts_ControversialPostChildSchema).describe(\"Array of controversial post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetControversialPostsOutput = z.object({\n data: RedditGetControversialPosts_ControversialListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\").nullable(),\n}).passthrough().describe(\"Response from retrieving controversial posts from all subreddits.\");\n\nexport const redditGetControversialPosts: AppAction<\n typeof RedditGetControversialPostsInput,\n typeof RedditGetControversialPostsOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_CONTROVERSIAL_POSTS\", {\n slug: \"reddit-get-controversial-posts\",\n name: \"Get controversial posts from all subreddits\",\n description: \"Tool to retrieve controversial posts from all subreddits with time filters. Use when you need to find the most controversial posts across Reddit from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by controversy within the specified time frame.\",\n input: RedditGetControversialPostsInput,\n output: RedditGetControversialPostsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,GAAGA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACnO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC/J,CAAC;AACD,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDA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