@keystrokehq/reddit 0.1.4 → 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 -20
  6. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  7. package/dist/actions/create-reddit-post.d.mts +3 -20
  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 -15
  14. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  15. package/dist/actions/delete-reddit-comment.d.mts +3 -15
  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 -15
  22. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  23. package/dist/actions/delete-reddit-post.d.mts +3 -15
  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 -16
  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 -16
  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 -18
  38. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  39. package/dist/actions/get-controversial-posts.d.mts +3 -18
  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 -15
  46. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  47. package/dist/actions/get-me-prefs.d.mts +3 -15
  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 -22
  54. package/dist/actions/get-r-top.d.cts.map +1 -1
  55. package/dist/actions/get-r-top.d.mts +3 -22
  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 -15
  62. package/dist/actions/get-random.d.cts.map +1 -1
  63. package/dist/actions/get-random.d.mts +3 -15
  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 -15
  70. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  71. package/dist/actions/get-reddit-user-about.d.mts +3 -15
  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 -13
  78. package/dist/actions/get-scopes.d.cts.map +1 -1
  79. package/dist/actions/get-scopes.d.mts +3 -13
  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 -16
  86. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  87. package/dist/actions/get-subreddit-rules.d.mts +3 -16
  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 -23
  94. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  95. package/dist/actions/get-subreddits-search.d.mts +3 -23
  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 -18
  102. package/dist/actions/get-user-flair.d.cts.map +1 -1
  103. package/dist/actions/get-user-flair.d.mts +3 -18
  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 -15
  110. package/dist/actions/get-username-available.d.cts.map +1 -1
  111. package/dist/actions/get-username-available.d.mts +3 -15
  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 -21
  118. package/dist/actions/get.d.cts.map +1 -1
  119. package/dist/actions/get.d.mts +3 -21
  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 -15
  126. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  127. package/dist/actions/list-subreddit-post-flairs.d.mts +3 -15
  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 -16
  134. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  135. package/dist/actions/post-reddit-comment.d.mts +3 -16
  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 -15
  142. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  143. package/dist/actions/retrieve-post-comments.d.mts +3 -15
  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 -17
  150. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  151. package/dist/actions/retrieve-reddit-post.d.mts +3 -17
  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 -15
  158. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  159. package/dist/actions/retrieve-specific-comment.d.mts +3 -15
  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 -21
  166. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  167. package/dist/actions/search-across-subreddits.d.mts +4 -21
  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 -16
  174. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  175. package/dist/actions/toggle-inbox-replies.d.mts +3 -16
  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 +2 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +4 -6
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +4 -6
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +0 -1
  186. package/dist/app.mjs.map +1 -1
  187. package/dist/index.d.cts +1 -1
  188. package/dist/index.d.mts +1 -1
  189. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
1
+ {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;;;cAMa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,EAAW,SAAA,QACf,cAAA,SACA,eAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get.d.ts
@@ -45,27 +47,7 @@ declare const RedditGetOutput: z.ZodObject<{
45
47
  }, z.core.$loose>>;
46
48
  kind: z.ZodNullable<z.ZodString>;
47
49
  }, z.core.$loose>;
48
- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
- sort: string;
50
- show?: string | undefined;
51
- after?: string | undefined;
52
- count?: number | undefined;
53
- limit?: number | undefined;
54
- before?: string | undefined;
55
- time_filter?: string | undefined;
56
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- accessToken: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- accessToken: z.ZodString;
68
- }, z.core.$strip>>]>;
50
+ declare const redditGet: AppAction<typeof RedditGetInput, typeof RedditGetOutput, typeof reddit.credential>;
69
51
  //#endregion
70
52
  export { redditGet };
71
53
  //# sourceMappingURL=get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
1
+ {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;;;cAMa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,EAAW,SAAA,QACf,cAAA,SACA,eAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get.mjs","names":[],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAA2B,EAAE,OAAO;CACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC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port { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet: AppAction<\n typeof RedditGetInput,\n typeof RedditGetOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAA2B,EAAE,OAAO;CACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CA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E,OAAO;CACzC,MAAM,yBAAyB,SAAS;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,8BAA8B,EAAE,OAAO;CAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,wBAAwB;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,YAIT,OAAO,cAAc;CACvB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6B,EAAE,OAAO;EACtC,MAAM,4BAA4B,SAAS;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;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/list-subreddit-post-flairs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAA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flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.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 RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs: AppAction<\n typeof RedditListSubredditPostFlairsInput,\n typeof RedditListSubredditPostFlairsOutput,\n typeof reddit.credential\n> = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,oDAAoDA,IAAAA,EAA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EAC1D,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,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/list-subreddit-post-flairs.d.ts
@@ -25,21 +27,7 @@ declare const RedditListSubredditPostFlairsOutput: z.ZodObject<{
25
27
  flair_template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>;
28
- declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- subreddit: string;
30
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- accessToken: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- accessToken: z.ZodString;
42
- }, z.core.$strip>>]>;
30
+ declare const redditListSubredditPostFlairs: AppAction<typeof RedditListSubredditPostFlairsInput, typeof RedditListSubredditPostFlairsOutput, typeof reddit.credential>;
43
31
  //#endregion
44
32
  export { redditListSubredditPostFlairs };
45
33
  //# sourceMappingURL=list-subreddit-post-flairs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,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/list-subreddit-post-flairs.d.ts
@@ -25,21 +27,7 @@ declare const RedditListSubredditPostFlairsOutput: z.ZodObject<{
25
27
  flair_template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>;
28
- declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- subreddit: string;
30
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- accessToken: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- accessToken: z.ZodString;
42
- }, z.core.$strip>>]>;
30
+ declare const redditListSubredditPostFlairs: AppAction<typeof RedditListSubredditPostFlairsInput, typeof RedditListSubredditPostFlairsOutput, typeof reddit.credential>;
43
31
  //#endregion
44
32
  export { redditListSubredditPostFlairs };
45
33
  //# sourceMappingURL=list-subreddit-post-flairs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.d.mts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.d.mts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,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/list-subreddit-post-flairs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.mjs","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditP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AAC,SAAS,CAAC,CAAC,SAAS;CACxG,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAKlG,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.mjs","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.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 RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).passthrough().describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs: AppAction<\n typeof RedditListSubredditPostFlairsInput,\n typeof RedditListSubredditPostFlairsOutput,\n typeof reddit.credential\n> = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a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AY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACtH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAKlG,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAWhB;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/post-reddit-comment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI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AClE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAM,kDAAkD,SAAS;CACjE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,iDAAiD,SAAS;CAChE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"post-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/post-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 RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment: AppAction<\n typeof RedditPostRedditCommentInput,\n typeof RedditPostRedditCommentOutput,\n typeof reddit.credential\n> = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,QAA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,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAM,kDAAkD,SAAS;CACjE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,iDAAiD,SAAS;CAChE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/post-reddit-comment.d.ts
@@ -51,22 +53,7 @@ declare const RedditPostRedditCommentOutput: z.ZodObject<{
51
53
  }, z.core.$loose>>;
52
54
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
55
  }, z.core.$loose>;
54
- declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
55
- text: string;
56
- thing_id: string;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- accessToken: z.ZodString;
63
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- accessToken: z.ZodString;
69
- }, z.core.$strip>>]>;
56
+ declare const redditPostRedditComment: AppAction<typeof RedditPostRedditCommentInput, typeof RedditPostRedditCommentOutput, typeof reddit.credential>;
70
57
  //#endregion
71
58
  export { redditPostRedditComment };
72
59
  //# sourceMappingURL=post-reddit-comment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.d.cts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"post-reddit-comment.d.cts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/post-reddit-comment.d.ts
@@ -51,22 +53,7 @@ declare const RedditPostRedditCommentOutput: z.ZodObject<{
51
53
  }, z.core.$loose>>;
52
54
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
55
  }, z.core.$loose>;
54
- declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
55
- text: string;
56
- thing_id: string;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- accessToken: z.ZodString;
63
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- accessToken: z.ZodString;
69
- }, z.core.$strip>>]>;
56
+ declare const redditPostRedditComment: AppAction<typeof RedditPostRedditCommentInput, typeof RedditPostRedditCommentOutput, typeof reddit.credential>;
70
57
  //#endregion
71
58
  export { redditPostRedditComment };
72
59
  //# sourceMappingURL=post-reddit-comment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.d.mts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"post-reddit-comment.d.mts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/post-reddit-comment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.mjs","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,C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AAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,0CAA0C,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,oDAAoD,EAAE,OAAO,EACjE,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,kDAAkD,SAAS;CACjE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAMvE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,iDAAiD,SAAS;EAChE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"post-reddit-comment.mjs","names":[],"sources":["../../src/actions/post-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 RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment: AppAction<\n typeof RedditPostRedditCommentInput,\n typeof RedditPostRedditCommentOutput,\n typeof reddit.credential\n> = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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;AACtE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,kDAAkD,SAAS;CACjE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAMvE,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,MAAM,iDAAiD,SAAS;EAChE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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/retrieve-post-comments.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-post-comments.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-post-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrievePostCommentsInput = z.object({\n article: z.string().describe(\"Base-36 ID of the Reddit post (e.g., 'q5u7q5'), typically found in the post's URL and not including the 't3_' prefix.\"),\n});\nconst RedditRetrievePostComments_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post (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.\").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.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n 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.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit post (t3 kind).\");\nconst RedditRetrievePostComments_PostThingSchema = z.object({\n data: RedditRetrievePostComments_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't3' for posts.\").nullable(),\n}).passthrough().describe(\"Wrapped post object with kind and data.\");\nconst RedditRetrievePostComments_PostListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(RedditRetrievePostComments_PostThingSchema).describe(\"Array containing the post object.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the first listing containing the post.\");\nconst RedditRetrievePostComments_PostListingSchema = z.object({\n data: RedditRetrievePostComments_PostListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing the post (first listing in response).\");\nconst RedditRetrievePostComments_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment in base36 format.\").nullable().optional(),\n body: z.string().describe(\"Raw text of the comment with markdown.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the comment (e.g., 't1_abc123').\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree (0 = top-level).\").nullable().optional(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes).\").nullable().optional(),\n author: z.string().describe(\"Username of the comment author, null if deleted.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment (t1_) or post (t3_).\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of creation in UTC epoch-seconds.\").nullable().optional(),\n has_replies: z.boolean().describe(\"Whether this comment has nested replies.\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the author is also the post submitter.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status: null, 'moderator', 'admin', or 'special'.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit comment (t1 kind).\");\nconst RedditRetrievePostComments_CommentThingSchema = z.object({\n data: RedditRetrievePostComments_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't1' for comments.\").nullable(),\n}).passthrough().describe(\"Wrapped comment object with kind and data.\");\nconst RedditRetrievePostComments_MoreDataSchema = z.object({\n id: z.string().describe(\"Identifier for this more object.\").nullable().optional(),\n name: z.string().describe(\"Fullname of this more object.\").nullable().optional(),\n count: z.number().int().describe(\"Number of additional comments available.\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree.\").nullable().optional(),\n children: z.array(z.string()).describe(\"Array of comment IDs that can be loaded using the morechildren endpoint.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment or post.\").nullable().optional(),\n}).passthrough().describe(\"Data for a 'more' object that holds IDs of additional comments to load.\");\nconst RedditRetrievePostComments_MoreThingSchema = z.object({\n data: RedditRetrievePostComments_MoreDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 'more'.\").nullable(),\n}).passthrough().describe(\"Wrapped 'more' object for loading additional comments.\");\nconst RedditRetrievePostComments_CommentListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(z.union([RedditRetrievePostComments_CommentThingSchema, RedditRetrievePostComments_MoreThingSchema])).describe(\"Array of comment objects and 'more' placeholders.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the second listing containing comments.\");\nconst RedditRetrievePostComments_CommentListingSchema = z.object({\n data: RedditRetrievePostComments_CommentListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing comments (second listing in response).\");\nexport const RedditRetrievePostCommentsOutput = z.object({\n post_listing: RedditRetrievePostComments_PostListingSchema.nullable(),\n comments_listing: RedditRetrievePostComments_CommentListingSchema.nullable(),\n}).passthrough().describe(\"Response containing two Listing objects from Reddit API.\\nThe first listing contains the submission/post object, and the second\\nlisting contains the top-level comments with nested replies.\");\n\nexport const redditRetrievePostComments = action(\"REDDIT_RETRIEVE_POST_COMMENTS\", {\n slug: \"reddit-retrieve-post-comments\",\n name: \"Retrieve Comments for a Post\",\n description: \"Retrieves all comments for a Reddit post given its base-36 article ID. Response is a two-element listings array: post metadata in `listings[0]`; comments in `listings[1].data.children` with text at each `[].data.body` and nested replies under each comment's `replies` field. Replies require recursive traversal to capture full discussion. Large, locked, or archived threads may return truncated trees or `more` placeholders rather than full results. Filter out comments where `body` is `[deleted]` or `[removed]`; use `parent_id` to reconstruct conversation flow. No time-filter parameter — compare `created_utc` against a UTC cutoff to filter by date.\",\n input: RedditRetrievePostCommentsInput,\n output: RedditRetrievePostCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACtJ,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EA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,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,+CAA+C,0CAA0C,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACpL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAM,oDAAoD,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AACvG,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,cAAc,6CAA6C,SAAS;CACpE,kBAAkB,gDAAgD,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+LAA+L;AAEzN,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-post-comments.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-post-comments.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 RedditRetrievePostCommentsInput = z.object({\n article: z.string().describe(\"Base-36 ID of the Reddit post (e.g., 'q5u7q5'), typically found in the post's URL and not including the 't3_' prefix.\"),\n});\nconst RedditRetrievePostComments_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post (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.\").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.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n 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.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit post (t3 kind).\");\nconst RedditRetrievePostComments_PostThingSchema = z.object({\n data: RedditRetrievePostComments_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't3' for posts.\").nullable(),\n}).passthrough().describe(\"Wrapped post object with kind and data.\");\nconst RedditRetrievePostComments_PostListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(RedditRetrievePostComments_PostThingSchema).describe(\"Array containing the post object.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the first listing containing the post.\");\nconst RedditRetrievePostComments_PostListingSchema = z.object({\n data: RedditRetrievePostComments_PostListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing the post (first listing in response).\");\nconst RedditRetrievePostComments_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment in base36 format.\").nullable().optional(),\n body: z.string().describe(\"Raw text of the comment with markdown.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the comment (e.g., 't1_abc123').\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree (0 = top-level).\").nullable().optional(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes).\").nullable().optional(),\n author: z.string().describe(\"Username of the comment author, null if deleted.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment (t1_) or post (t3_).\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of creation in UTC epoch-seconds.\").nullable().optional(),\n has_replies: z.boolean().describe(\"Whether this comment has nested replies.\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the author is also the post submitter.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status: null, 'moderator', 'admin', or 'special'.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit comment (t1 kind).\");\nconst RedditRetrievePostComments_CommentThingSchema = z.object({\n data: RedditRetrievePostComments_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't1' for comments.\").nullable(),\n}).passthrough().describe(\"Wrapped comment object with kind and data.\");\nconst RedditRetrievePostComments_MoreDataSchema = z.object({\n id: z.string().describe(\"Identifier for this more object.\").nullable().optional(),\n name: z.string().describe(\"Fullname of this more object.\").nullable().optional(),\n count: z.number().int().describe(\"Number of additional comments available.\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree.\").nullable().optional(),\n children: z.array(z.string()).describe(\"Array of comment IDs that can be loaded using the morechildren endpoint.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment or post.\").nullable().optional(),\n}).passthrough().describe(\"Data for a 'more' object that holds IDs of additional comments to load.\");\nconst RedditRetrievePostComments_MoreThingSchema = z.object({\n data: RedditRetrievePostComments_MoreDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 'more'.\").nullable(),\n}).passthrough().describe(\"Wrapped 'more' object for loading additional comments.\");\nconst RedditRetrievePostComments_CommentListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(z.union([RedditRetrievePostComments_CommentThingSchema, RedditRetrievePostComments_MoreThingSchema])).describe(\"Array of comment objects and 'more' placeholders.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the second listing containing comments.\");\nconst RedditRetrievePostComments_CommentListingSchema = z.object({\n data: RedditRetrievePostComments_CommentListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing comments (second listing in response).\");\nexport const RedditRetrievePostCommentsOutput = z.object({\n post_listing: RedditRetrievePostComments_PostListingSchema.nullable(),\n comments_listing: RedditRetrievePostComments_CommentListingSchema.nullable(),\n}).passthrough().describe(\"Response containing two Listing objects from Reddit API.\\nThe first listing contains the submission/post object, and the second\\nlisting contains the top-level comments with nested replies.\");\n\nexport const redditRetrievePostComments: AppAction<\n typeof RedditRetrievePostCommentsInput,\n typeof RedditRetrievePostCommentsOutput,\n typeof reddit.credential\n> = action(\"REDDIT_RETRIEVE_POST_COMMENTS\", {\n slug: \"reddit-retrieve-post-comments\",\n name: \"Retrieve Comments for a Post\",\n description: \"Retrieves all comments for a Reddit post given its base-36 article ID. Response is a two-element listings array: post metadata in `listings[0]`; comments in `listings[1].data.children` with text at each `[].data.body` and nested replies under each comment's `replies` field. Replies require recursive traversal to capture full discussion. Large, locked, or archived threads may return truncated trees or `more` placeholders rather than full results. Filter out comments where `body` is `[deleted]` or `[removed]`; use `parent_id` to reconstruct conversation flow. No time-filter parameter — compare `created_utc` against a UTC cutoff to filter by date.\",\n input: RedditRetrievePostCommentsInput,\n output: RedditRetrievePostCommentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACtJ,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAA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AAS,+LAA+L;AAEzN,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/retrieve-post-comments.d.ts
@@ -70,21 +72,7 @@ declare const RedditRetrievePostCommentsOutput: z.ZodObject<{
70
72
  kind: z.ZodNullable<z.ZodString>;
71
73
  }, z.core.$loose>>;
72
74
  }, z.core.$loose>;
73
- declare const redditRetrievePostComments: import("@keystrokehq/action").WorkflowActionDefinition<{
74
- article: string;
75
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
76
- connectionId: z.ZodString;
77
- entityId: z.ZodString;
78
- instanceId: z.ZodString;
79
- }, z.core.$strip>, z.ZodObject<{
80
- accessToken: z.ZodString;
81
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
82
- connectionId: z.ZodString;
83
- entityId: z.ZodString;
84
- instanceId: z.ZodString;
85
- }, z.core.$strip>, z.ZodObject<{
86
- accessToken: z.ZodString;
87
- }, z.core.$strip>>]>;
75
+ declare const redditRetrievePostComments: AppAction<typeof RedditRetrievePostCommentsInput, typeof RedditRetrievePostCommentsOutput, typeof reddit.credential>;
88
76
  //#endregion
89
77
  export { redditRetrievePostComments };
90
78
  //# sourceMappingURL=retrieve-post-comments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-post-comments.d.cts","names":[],"sources":["../../src/actions/retrieve-post-comments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cA2E/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"retrieve-post-comments.d.cts","names":[],"sources":["../../src/actions/retrieve-post-comments.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cA2E/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,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/retrieve-post-comments.d.ts
@@ -70,21 +72,7 @@ declare const RedditRetrievePostCommentsOutput: z.ZodObject<{
70
72
  kind: z.ZodNullable<z.ZodString>;
71
73
  }, z.core.$loose>>;
72
74
  }, z.core.$loose>;
73
- declare const redditRetrievePostComments: import("@keystrokehq/action").WorkflowActionDefinition<{
74
- article: string;
75
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
76
- connectionId: z.ZodString;
77
- entityId: z.ZodString;
78
- instanceId: z.ZodString;
79
- }, z.core.$strip>, z.ZodObject<{
80
- accessToken: z.ZodString;
81
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
82
- connectionId: z.ZodString;
83
- entityId: z.ZodString;
84
- instanceId: z.ZodString;
85
- }, z.core.$strip>, z.ZodObject<{
86
- accessToken: z.ZodString;
87
- }, z.core.$strip>>]>;
75
+ declare const redditRetrievePostComments: AppAction<typeof RedditRetrievePostCommentsInput, typeof RedditRetrievePostCommentsOutput, typeof reddit.credential>;
88
76
  //#endregion
89
77
  export { redditRetrievePostComments };
90
78
  //# sourceMappingURL=retrieve-post-comments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-post-comments.d.mts","names":[],"sources":["../../src/actions/retrieve-post-comments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cA2E/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"retrieve-post-comments.d.mts","names":[],"sources":["../../src/actions/retrieve-post-comments.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cA2E/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,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/retrieve-post-comments.ts