@keystrokehq/reddit 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/create-reddit-post.cjs +2 -2
  5. package/dist/actions/create-reddit-post.cjs.map +1 -1
  6. package/dist/actions/create-reddit-post.d.cts +29 -3
  7. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  8. package/dist/actions/create-reddit-post.d.mts +29 -3
  9. package/dist/actions/create-reddit-post.d.mts.map +1 -1
  10. package/dist/actions/create-reddit-post.mjs +2 -2
  11. package/dist/actions/create-reddit-post.mjs.map +1 -1
  12. package/dist/actions/delete-reddit-comment.cjs +1 -1
  13. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  14. package/dist/actions/delete-reddit-comment.d.cts +7 -3
  15. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  16. package/dist/actions/delete-reddit-comment.d.mts +7 -3
  17. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  18. package/dist/actions/delete-reddit-comment.mjs +1 -1
  19. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  20. package/dist/actions/delete-reddit-post.cjs +1 -1
  21. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  22. package/dist/actions/delete-reddit-post.d.cts +7 -3
  23. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  24. package/dist/actions/delete-reddit-post.d.mts +7 -3
  25. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  26. package/dist/actions/delete-reddit-post.mjs +1 -1
  27. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  28. package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
  29. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  30. package/dist/actions/edit-reddit-comment-or-post.d.cts +64 -3
  31. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  32. package/dist/actions/edit-reddit-comment-or-post.d.mts +64 -3
  33. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  34. package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
  35. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  36. package/dist/actions/get-controversial-posts.cjs +6 -6
  37. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  38. package/dist/actions/get-controversial-posts.d.cts +79 -3
  39. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  40. package/dist/actions/get-controversial-posts.d.mts +79 -3
  41. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  42. package/dist/actions/get-controversial-posts.mjs +6 -6
  43. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  44. package/dist/actions/get-me-prefs.cjs +1 -1
  45. package/dist/actions/get-me-prefs.cjs.map +1 -1
  46. package/dist/actions/get-me-prefs.d.cts +69 -3
  47. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  48. package/dist/actions/get-me-prefs.d.mts +69 -3
  49. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  50. package/dist/actions/get-me-prefs.mjs +1 -1
  51. package/dist/actions/get-me-prefs.mjs.map +1 -1
  52. package/dist/actions/get-r-top.cjs +6 -6
  53. package/dist/actions/get-r-top.cjs.map +1 -1
  54. package/dist/actions/get-r-top.d.cts +57 -3
  55. package/dist/actions/get-r-top.d.cts.map +1 -1
  56. package/dist/actions/get-r-top.d.mts +57 -3
  57. package/dist/actions/get-r-top.d.mts.map +1 -1
  58. package/dist/actions/get-r-top.mjs +6 -6
  59. package/dist/actions/get-r-top.mjs.map +1 -1
  60. package/dist/actions/get-random.cjs +18 -18
  61. package/dist/actions/get-random.cjs.map +1 -1
  62. package/dist/actions/get-random.d.cts +41 -3
  63. package/dist/actions/get-random.d.cts.map +1 -1
  64. package/dist/actions/get-random.d.mts +41 -3
  65. package/dist/actions/get-random.d.mts.map +1 -1
  66. package/dist/actions/get-random.mjs +18 -18
  67. package/dist/actions/get-random.mjs.map +1 -1
  68. package/dist/actions/get-reddit-user-about.cjs +11 -11
  69. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  70. package/dist/actions/get-reddit-user-about.d.cts +75 -3
  71. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  72. package/dist/actions/get-reddit-user-about.d.mts +75 -3
  73. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  74. package/dist/actions/get-reddit-user-about.mjs +11 -11
  75. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  76. package/dist/actions/get-scopes.cjs +1 -1
  77. package/dist/actions/get-scopes.cjs.map +1 -1
  78. package/dist/actions/get-scopes.d.cts +5 -3
  79. package/dist/actions/get-scopes.d.cts.map +1 -1
  80. package/dist/actions/get-scopes.d.mts +5 -3
  81. package/dist/actions/get-scopes.d.mts.map +1 -1
  82. package/dist/actions/get-scopes.mjs +1 -1
  83. package/dist/actions/get-scopes.mjs.map +1 -1
  84. package/dist/actions/get-subreddit-rules.cjs +7 -7
  85. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  86. package/dist/actions/get-subreddit-rules.d.cts +21 -3
  87. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  88. package/dist/actions/get-subreddit-rules.d.mts +21 -3
  89. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  90. package/dist/actions/get-subreddit-rules.mjs +7 -7
  91. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  92. package/dist/actions/get-subreddits-search.cjs +6 -6
  93. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  94. package/dist/actions/get-subreddits-search.d.cts +67 -3
  95. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  96. package/dist/actions/get-subreddits-search.d.mts +67 -3
  97. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  98. package/dist/actions/get-subreddits-search.mjs +6 -6
  99. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  100. package/dist/actions/get-user-flair.cjs +3 -3
  101. package/dist/actions/get-user-flair.cjs.map +1 -1
  102. package/dist/actions/get-user-flair.d.cts +21 -3
  103. package/dist/actions/get-user-flair.d.cts.map +1 -1
  104. package/dist/actions/get-user-flair.d.mts +21 -3
  105. package/dist/actions/get-user-flair.d.mts.map +1 -1
  106. package/dist/actions/get-user-flair.mjs +3 -3
  107. package/dist/actions/get-user-flair.mjs.map +1 -1
  108. package/dist/actions/get-username-available.cjs +3 -3
  109. package/dist/actions/get-username-available.cjs.map +1 -1
  110. package/dist/actions/get-username-available.d.cts +10 -3
  111. package/dist/actions/get-username-available.d.cts.map +1 -1
  112. package/dist/actions/get-username-available.d.mts +10 -3
  113. package/dist/actions/get-username-available.d.mts.map +1 -1
  114. package/dist/actions/get-username-available.mjs +3 -3
  115. package/dist/actions/get-username-available.mjs.map +1 -1
  116. package/dist/actions/get.cjs +18 -18
  117. package/dist/actions/get.cjs.map +1 -1
  118. package/dist/actions/get.d.cts +53 -3
  119. package/dist/actions/get.d.cts.map +1 -1
  120. package/dist/actions/get.d.mts +53 -3
  121. package/dist/actions/get.d.mts.map +1 -1
  122. package/dist/actions/get.mjs +18 -18
  123. package/dist/actions/get.mjs.map +1 -1
  124. package/dist/actions/list-subreddit-post-flairs.cjs +6 -6
  125. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  126. package/dist/actions/list-subreddit-post-flairs.d.cts +27 -3
  127. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  128. package/dist/actions/list-subreddit-post-flairs.d.mts +27 -3
  129. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  130. package/dist/actions/list-subreddit-post-flairs.mjs +6 -6
  131. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  132. package/dist/actions/post-reddit-comment.cjs +26 -26
  133. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  134. package/dist/actions/post-reddit-comment.d.cts +54 -3
  135. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  136. package/dist/actions/post-reddit-comment.d.mts +54 -3
  137. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  138. package/dist/actions/post-reddit-comment.mjs +26 -26
  139. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  140. package/dist/actions/retrieve-post-comments.cjs +7 -7
  141. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  142. package/dist/actions/retrieve-post-comments.d.cts +72 -3
  143. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  144. package/dist/actions/retrieve-post-comments.d.mts +72 -3
  145. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  146. package/dist/actions/retrieve-post-comments.mjs +7 -7
  147. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  148. package/dist/actions/retrieve-reddit-post.cjs +21 -21
  149. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  150. package/dist/actions/retrieve-reddit-post.d.cts +47 -3
  151. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  152. package/dist/actions/retrieve-reddit-post.d.mts +47 -3
  153. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  154. package/dist/actions/retrieve-reddit-post.mjs +21 -21
  155. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  156. package/dist/actions/retrieve-specific-comment.cjs +11 -11
  157. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  158. package/dist/actions/retrieve-specific-comment.d.cts +47 -3
  159. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  160. package/dist/actions/retrieve-specific-comment.d.mts +47 -3
  161. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  162. package/dist/actions/retrieve-specific-comment.mjs +11 -11
  163. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  164. package/dist/actions/search-across-subreddits.cjs +16 -16
  165. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  166. package/dist/actions/search-across-subreddits.d.cts +43 -3
  167. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  168. package/dist/actions/search-across-subreddits.d.mts +43 -3
  169. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  170. package/dist/actions/search-across-subreddits.mjs +16 -16
  171. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  172. package/dist/actions/toggle-inbox-replies.cjs +1 -1
  173. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  174. package/dist/actions/toggle-inbox-replies.d.cts +9 -3
  175. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  176. package/dist/actions/toggle-inbox-replies.d.mts +9 -3
  177. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  178. package/dist/actions/toggle-inbox-replies.mjs +1 -1
  179. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  180. package/dist/execute.cjs +1 -1
  181. package/dist/execute.cjs.map +1 -1
  182. package/dist/execute.mjs +1 -1
  183. package/dist/execute.mjs.map +1 -1
  184. package/package.json +2 -2
@@ -16,21 +16,21 @@ const RedditSearchAcrossSubredditsInput = z.object({
16
16
  search_query: z.string().describe("The search query string. Supports Reddit search operators: 'title:', 'author:', 'subreddit:', 'url:', 'site:', 'flair:', 'self:yes/no', 'nsfw:yes/no', and boolean operators (AND, OR, NOT). Raw URLs (starting with http:// or https://) are not allowed - use the 'url:' or 'site:' operators instead (e.g., 'url:example.com' to find posts linking to that domain).")
17
17
  });
18
18
  const RedditSearchAcrossSubreddits_PostResultSchema = z.object({
19
- id: z.string().describe("Unique identifier of the post"),
20
- url: z.string().describe("URL the post links to (same as permalink for self-posts)"),
21
- score: z.number().int().describe("Net score (upvotes minus downvotes)"),
22
- title: z.string().describe("The title of the post"),
19
+ id: z.string().describe("Unique identifier of the post").nullable(),
20
+ url: z.string().describe("URL the post links to (same as permalink for self-posts)").nullable(),
21
+ score: z.number().int().describe("Net score (upvotes minus downvotes)").nullable(),
22
+ title: z.string().describe("The title of the post").nullable(),
23
23
  author: z.string().describe("Username of the post author (null for deleted accounts)").nullable().optional(),
24
- is_self: z.boolean().describe("Whether this is a self-post (text-only)"),
25
- over_18: z.boolean().describe("Whether the post is marked NSFW"),
26
- selftext: z.string().describe("Text content of the post body (empty string for link posts)"),
27
- permalink: z.string().describe("Full URL path to the post on Reddit"),
28
- subreddit: z.string().describe("Name of the subreddit (without r/ prefix)"),
29
- created_utc: z.number().describe("Unix timestamp of creation time in UTC"),
30
- num_comments: z.number().int().describe("Total number of comments on the post"),
31
- created_datetime: z.string().describe("Human-readable creation date in ISO format"),
32
- subreddit_prefixed: z.string().describe("Subreddit name with r/ prefix (e.g., r/programming)")
33
- }).describe("Streamlined post data containing only essential information for search results.");
24
+ is_self: z.boolean().describe("Whether this is a self-post (text-only)").nullable(),
25
+ over_18: z.boolean().describe("Whether the post is marked NSFW").nullable(),
26
+ selftext: z.string().describe("Text content of the post body (empty string for link posts)").nullable(),
27
+ permalink: z.string().describe("Full URL path to the post on Reddit").nullable(),
28
+ subreddit: z.string().describe("Name of the subreddit (without r/ prefix)").nullable(),
29
+ created_utc: z.number().describe("Unix timestamp of creation time in UTC").nullable(),
30
+ num_comments: z.number().int().describe("Total number of comments on the post").nullable(),
31
+ created_datetime: z.string().describe("Human-readable creation date in ISO format").nullable(),
32
+ subreddit_prefixed: z.string().describe("Subreddit name with r/ prefix (e.g., r/programming)").nullable()
33
+ }).passthrough().describe("Streamlined post data containing only essential information for search results.");
34
34
  const redditSearchAcrossSubreddits = action("REDDIT_SEARCH_ACROSS_SUBREDDITS", {
35
35
  slug: "reddit-search-across-subreddits",
36
36
  name: "Search across subreddits",
@@ -40,8 +40,8 @@ const redditSearchAcrossSubreddits = action("REDDIT_SEARCH_ACROSS_SUBREDDITS", {
40
40
  after: z.string().describe("Pagination cursor for the next page (null if no more results)").nullable().optional(),
41
41
  posts: z.array(RedditSearchAcrossSubreddits_PostResultSchema).describe("List of posts matching the search query"),
42
42
  before: z.string().describe("Pagination cursor for the previous page (null if at beginning)").nullable().optional(),
43
- total_results: z.number().int().describe("Number of posts returned in this response")
44
- }).describe("Streamlined Reddit search response containing only essential post information.")
43
+ total_results: z.number().int().describe("Number of posts returned in this response").nullable()
44
+ }).passthrough().describe("Streamlined Reddit search response containing only essential post information.")
45
45
  });
46
46
  //#endregion
47
47
  export { redditSearchAcrossSubreddits };
@@ -1 +1 @@
1
- {"version":3,"file":"search-across-subreddits.mjs","names":[],"sources":["../../src/actions/search-across-subreddits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditSearchAcrossSubredditsInput: z.ZodTypeAny = z.object({\n sort: z.enum([\"relevance\", \"hot\", \"new\", \"top\", \"comments\"]).default(\"relevance\").describe(\"The criterion for sorting search results. 'relevance' (default) sorts by relevance to the query. 'hot' sorts by trending posts with recent upvotes and activity. 'new' sorts by newest first. 'top' sorts by highest score (typically all-time). 'comments' sorts by the number of comments.\").optional(),\n after: z.string().describe(\"Pagination cursor to fetch the next page of results. Use the `after` value from the previous response to get subsequent results.\").optional(),\n limit: z.number().int().default(5).describe(\"The maximum number of search results to return. Default is 5. Maximum allowed value is 100. Paginate beyond the first page using the `after` cursor from `data.after` in the response; deduplicate results across pages by post `id`.\").optional(),\n before: z.string().describe(\"Pagination cursor to fetch the previous page of results. Use the `before` value from the previous response to get preceding results.\").optional(),\n restrict_sr: z.boolean().default(true).describe(\"If True (default), confines the search to posts and comments within subreddits. If False, the search scope is broader and may include matching subreddit names or other Reddit entities.\").optional(),\n search_query: z.string().describe(\"The search query string. Supports Reddit search operators: 'title:', 'author:', 'subreddit:', 'url:', 'site:', 'flair:', 'self:yes/no', 'nsfw:yes/no', and boolean operators (AND, OR, NOT). Raw URLs (starting with http:// or https://) are not allowed - use the 'url:' or 'site:' operators instead (e.g., 'url:example.com' to find posts linking to that domain).\"),\n});\nconst RedditSearchAcrossSubreddits_PostResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post\"),\n url: z.string().describe(\"URL the post links to (same as permalink for self-posts)\"),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes)\"),\n title: z.string().describe(\"The title of the post\"),\n author: z.string().describe(\"Username of the post author (null for deleted accounts)\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether this is a self-post (text-only)\"),\n over_18: z.boolean().describe(\"Whether the post is marked NSFW\"),\n selftext: z.string().describe(\"Text content of the post body (empty string for link posts)\"),\n permalink: z.string().describe(\"Full URL path to the post on Reddit\"),\n subreddit: z.string().describe(\"Name of the subreddit (without r/ prefix)\"),\n created_utc: z.number().describe(\"Unix timestamp of creation time in UTC\"),\n num_comments: z.number().int().describe(\"Total number of comments on the post\"),\n created_datetime: z.string().describe(\"Human-readable creation date in ISO format\"),\n subreddit_prefixed: z.string().describe(\"Subreddit name with r/ prefix (e.g., r/programming)\"),\n}).describe(\"Streamlined post data containing only essential information for search results.\");\nexport const RedditSearchAcrossSubredditsOutput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor for the next page (null if no more results)\").nullable().optional(),\n posts: z.array(RedditSearchAcrossSubreddits_PostResultSchema).describe(\"List of posts matching the search query\"),\n before: z.string().describe(\"Pagination cursor for the previous page (null if at beginning)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of posts returned in this response\"),\n}).describe(\"Streamlined Reddit search response containing only essential post information.\");\n\nexport const redditSearchAcrossSubreddits = action(\"REDDIT_SEARCH_ACROSS_SUBREDDITS\", {\n slug: \"reddit-search-across-subreddits\",\n name: \"Search across subreddits\",\n description: \"Searches Reddit for posts/comments using a query. Results nested under `data.children[i].data` (kind `t3` for posts); a `posts` array may also appear — inspect actual response path. No native time-range filter; compare `created_utc` (Unix epoch, UTC) client-side for recency filtering. Empty `children` is a valid no-results outcome. Key post fields: `score`, `num_comments`, `created_utc`, `permalink`. Rate limit: ~1–2 requests/sec; HTTP 429 indicates throttling.\",\n input: RedditSearchAcrossSubredditsInput,\n output: RedditSearchAcrossSubredditsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,MAAM,EAAE,KAAK;EAAC;EAAa;EAAO;EAAO;EAAO;CAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;CACpY,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACxK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;CAC9R,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC7K,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CACrP,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW;AAC7Y,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AAC/F,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAQ7F,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8D,EAAE,OAAO;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,OAAO,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,yCAAyC;EAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CACtF,CAAC,CAAC,CAAC,SAAS,gFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-across-subreddits.mjs","names":[],"sources":["../../src/actions/search-across-subreddits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditSearchAcrossSubredditsInput = z.object({\n sort: z.enum([\"relevance\", \"hot\", \"new\", \"top\", \"comments\"]).default(\"relevance\").describe(\"The criterion for sorting search results. 'relevance' (default) sorts by relevance to the query. 'hot' sorts by trending posts with recent upvotes and activity. 'new' sorts by newest first. 'top' sorts by highest score (typically all-time). 'comments' sorts by the number of comments.\").optional(),\n after: z.string().describe(\"Pagination cursor to fetch the next page of results. Use the `after` value from the previous response to get subsequent results.\").optional(),\n limit: z.number().int().default(5).describe(\"The maximum number of search results to return. Default is 5. Maximum allowed value is 100. Paginate beyond the first page using the `after` cursor from `data.after` in the response; deduplicate results across pages by post `id`.\").optional(),\n before: z.string().describe(\"Pagination cursor to fetch the previous page of results. Use the `before` value from the previous response to get preceding results.\").optional(),\n restrict_sr: z.boolean().default(true).describe(\"If True (default), confines the search to posts and comments within subreddits. If False, the search scope is broader and may include matching subreddit names or other Reddit entities.\").optional(),\n search_query: z.string().describe(\"The search query string. Supports Reddit search operators: 'title:', 'author:', 'subreddit:', 'url:', 'site:', 'flair:', 'self:yes/no', 'nsfw:yes/no', and boolean operators (AND, OR, NOT). Raw URLs (starting with http:// or https://) are not allowed - use the 'url:' or 'site:' operators instead (e.g., 'url:example.com' to find posts linking to that domain).\"),\n});\nconst RedditSearchAcrossSubreddits_PostResultSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post\").nullable(),\n url: z.string().describe(\"URL the post links to (same as permalink for self-posts)\").nullable(),\n score: z.number().int().describe(\"Net score (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 for deleted accounts)\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether this is a self-post (text-only)\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked NSFW\").nullable(),\n selftext: z.string().describe(\"Text content of the post body (empty string for link posts)\").nullable(),\n permalink: z.string().describe(\"Full URL path to the post on Reddit\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit (without r/ prefix)\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of creation time in UTC\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post\").nullable(),\n created_datetime: z.string().describe(\"Human-readable creation date in ISO format\").nullable(),\n subreddit_prefixed: z.string().describe(\"Subreddit name with r/ prefix (e.g., r/programming)\").nullable(),\n}).passthrough().describe(\"Streamlined post data containing only essential information for search results.\");\nexport const RedditSearchAcrossSubredditsOutput = z.object({\n after: z.string().describe(\"Pagination cursor for the next page (null if no more results)\").nullable().optional(),\n posts: z.array(RedditSearchAcrossSubreddits_PostResultSchema).describe(\"List of posts matching the search query\"),\n before: z.string().describe(\"Pagination cursor for the previous page (null if at beginning)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of posts returned in this response\").nullable(),\n}).passthrough().describe(\"Streamlined Reddit search response containing only essential post information.\");\n\nexport const redditSearchAcrossSubreddits = action(\"REDDIT_SEARCH_ACROSS_SUBREDDITS\", {\n slug: \"reddit-search-across-subreddits\",\n name: \"Search across subreddits\",\n description: \"Searches Reddit for posts/comments using a query. Results nested under `data.children[i].data` (kind `t3` for posts); a `posts` array may also appear — inspect actual response path. No native time-range filter; compare `created_utc` (Unix epoch, UTC) client-side for recency filtering. Empty `children` is a valid no-results outcome. Key post fields: `score`, `num_comments`, `created_utc`, `permalink`. Rate limit: ~1–2 requests/sec; HTTP 429 indicates throttling.\",\n input: RedditSearchAcrossSubredditsInput,\n output: RedditSearchAcrossSubredditsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,KAAK;EAAC;EAAa;EAAO;EAAO;EAAO;CAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;CACpY,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACxK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;CAC9R,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC7K,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CACrP,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW;AAC7Y,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAAiF;AAQ3G,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,OAAO,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,yCAAyC;EAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const RedditToggleInboxRepliesInput = zod.z.object({
5
5
  id: zod.z.string().describe("The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post."),
6
6
  state: zod.z.boolean().describe("Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.")
7
7
  });
8
- const RedditToggleInboxRepliesOutput = zod.z.object({}).describe("Response from Reddit's /api/sendreplies endpoint.\n\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\nor minimal response upon successful execution. Success is indicated by HTTP status\ncode (200 or 204) and the absence of errors.");
8
+ const RedditToggleInboxRepliesOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response from Reddit's /api/sendreplies endpoint.\n\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\nor minimal response upon successful execution. Success is indicated by HTTP status\ncode (200 or 204) and the absence of errors.");
9
9
  const redditToggleInboxReplies = require_action.action("REDDIT_TOGGLE_INBOX_REPLIES", {
10
10
  slug: "reddit-toggle-inbox-replies",
11
11
  name: "Enable or disable inbox replies",
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-inbox-replies.cjs","names":["z","action"],"sources":["../../src/actions/toggle-inbox-replies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditToggleInboxRepliesInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post.\"),\n state: z.boolean().describe(\"Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.\"),\n});\nexport const RedditToggleInboxRepliesOutput: z.ZodTypeAny = z.object({}).describe(\"Response from Reddit's /api/sendreplies endpoint.\\n\\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\\nor minimal response upon successful execution. Success is indicated by HTTP status\\ncode (200 or 204) and the absence of errors.\");\n\nexport const redditToggleInboxReplies = action(\"REDDIT_TOGGLE_INBOX_REPLIES\", {\n slug: \"reddit-toggle-inbox-replies\",\n name: \"Enable or disable inbox replies\",\n description: \"Enable or disable inbox replies for a submission or comment. Use when you want to control whether you receive inbox notifications for replies to your own posts or comments.\",\n input: RedditToggleInboxRepliesInput,\n output: RedditToggleInboxRepliesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K;CACtM,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gLAAgL;AAC9M,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wQAAwQ;AAE1V,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"toggle-inbox-replies.cjs","names":["z","action"],"sources":["../../src/actions/toggle-inbox-replies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditToggleInboxRepliesInput = z.object({\n id: z.string().describe(\"The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post.\"),\n state: z.boolean().describe(\"Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.\"),\n});\nexport const RedditToggleInboxRepliesOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/sendreplies endpoint.\\n\\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\\nor minimal response upon successful execution. Success is indicated by HTTP status\\ncode (200 or 204) and the absence of errors.\");\n\nexport const redditToggleInboxReplies = action(\"REDDIT_TOGGLE_INBOX_REPLIES\", {\n slug: \"reddit-toggle-inbox-replies\",\n name: \"Enable or disable inbox replies\",\n description: \"Enable or disable inbox replies for a submission or comment. Use when you want to control whether you receive inbox notifications for replies to your own posts or comments.\",\n input: RedditToggleInboxRepliesInput,\n output: RedditToggleInboxRepliesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K;CACtM,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gLAAgL;AAC9M,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wQAAwQ;AAEjW,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/toggle-inbox-replies.d.ts
4
- declare const RedditToggleInboxRepliesInput: z.ZodTypeAny;
5
- declare const RedditToggleInboxRepliesOutput: z.ZodTypeAny;
6
- declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditToggleInboxRepliesInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ state: z.ZodBoolean;
7
+ }, z.core.$strip>;
8
+ declare const RedditToggleInboxRepliesOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<{
10
+ id: string;
11
+ state: boolean;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { redditToggleInboxReplies };
9
15
  //# sourceMappingURL=toggle-inbox-replies.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-inbox-replies.d.cts","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAA4S;AAAA,cAE9U,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"toggle-inbox-replies.d.cts","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/toggle-inbox-replies.d.ts
4
- declare const RedditToggleInboxRepliesInput: z.ZodTypeAny;
5
- declare const RedditToggleInboxRepliesOutput: z.ZodTypeAny;
6
- declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditToggleInboxRepliesInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ state: z.ZodBoolean;
7
+ }, z.core.$strip>;
8
+ declare const RedditToggleInboxRepliesOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<{
10
+ id: string;
11
+ state: boolean;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { redditToggleInboxReplies };
9
15
  //# sourceMappingURL=toggle-inbox-replies.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-inbox-replies.d.mts","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAA4S;AAAA,cAE9U,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"toggle-inbox-replies.d.mts","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
@@ -8,7 +8,7 @@ const redditToggleInboxReplies = action("REDDIT_TOGGLE_INBOX_REPLIES", {
8
8
  id: z.string().describe("The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post."),
9
9
  state: z.boolean().describe("Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.")
10
10
  }),
11
- output: z.object({}).describe("Response from Reddit's /api/sendreplies endpoint.\n\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\nor minimal response upon successful execution. Success is indicated by HTTP status\ncode (200 or 204) and the absence of errors.")
11
+ output: z.record(z.string(), z.unknown()).describe("Response from Reddit's /api/sendreplies endpoint.\n\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\nor minimal response upon successful execution. Success is indicated by HTTP status\ncode (200 or 204) and the absence of errors.")
12
12
  });
13
13
  //#endregion
14
14
  export { redditToggleInboxReplies };
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-inbox-replies.mjs","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditToggleInboxRepliesInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post.\"),\n state: z.boolean().describe(\"Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.\"),\n});\nexport const RedditToggleInboxRepliesOutput: z.ZodTypeAny = z.object({}).describe(\"Response from Reddit's /api/sendreplies endpoint.\\n\\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\\nor minimal response upon successful execution. Success is indicated by HTTP status\\ncode (200 or 204) and the absence of errors.\");\n\nexport const redditToggleInboxReplies = action(\"REDDIT_TOGGLE_INBOX_REPLIES\", {\n slug: \"reddit-toggle-inbox-replies\",\n name: \"Enable or disable inbox replies\",\n description: \"Enable or disable inbox replies for a submission or comment. Use when you want to control whether you receive inbox notifications for replies to your own posts or comments.\",\n input: RedditToggleInboxRepliesInput,\n output: RedditToggleInboxRepliesOutput,\n});\n"],"mappings":";;AAUA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVyD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K;EACtM,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gLAAgL;CAC9M,CAOS;CACP,QAP0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wQAOxE;AACV,CAAC"}
1
+ {"version":3,"file":"toggle-inbox-replies.mjs","names":[],"sources":["../../src/actions/toggle-inbox-replies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditToggleInboxRepliesInput = z.object({\n id: z.string().describe(\"The fullname of a thing created by the user. Must be prefixed with the thing type (e.g., 't3_' for a submission/post, 't1_' for a comment). Example: 't3_abc123' for a post.\"),\n state: z.boolean().describe(\"Boolean value to enable or disable inbox replies. Set to true to enable receiving inbox notifications when users reply to this thing, or false to disable inbox notifications.\"),\n});\nexport const RedditToggleInboxRepliesOutput = z.record(z.string(), z.unknown()).describe(\"Response from Reddit's /api/sendreplies endpoint.\\n\\nThe Reddit API /api/sendreplies endpoint typically returns an empty JSON object\\nor minimal response upon successful execution. Success is indicated by HTTP status\\ncode (200 or 204) and the absence of errors.\");\n\nexport const redditToggleInboxReplies = action(\"REDDIT_TOGGLE_INBOX_REPLIES\", {\n slug: \"reddit-toggle-inbox-replies\",\n name: \"Enable or disable inbox replies\",\n description: \"Enable or disable inbox replies for a submission or comment. Use when you want to control whether you receive inbox notifications for replies to your own posts or comments.\",\n input: RedditToggleInboxRepliesInput,\n output: RedditToggleInboxRepliesOutput,\n});\n"],"mappings":";;AAUA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K;EACtM,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gLAAgL;CAC9M,CAOS;CACP,QAP4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wQAO/E;AACV,CAAC"}
package/dist/execute.cjs CHANGED
@@ -2,7 +2,7 @@ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
2
  //#region src/execute.ts
3
3
  const APP_SLUG = "reddit";
4
4
  /** Pinned app version — updated on regeneration. */
5
- const APP_VERSION = "20260615_00";
5
+ const APP_VERSION = "20260623_00";
6
6
  async function executeRedditTool(tool, args) {
7
7
  const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
8
  app: APP_SLUG,
@@ -1 +1 @@
1
- {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"reddit\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeRedditTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"reddit\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260623_00\";\n\nexport async function executeRedditTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/execute.mjs CHANGED
@@ -2,7 +2,7 @@ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
2
  //#region src/execute.ts
3
3
  const APP_SLUG = "reddit";
4
4
  /** Pinned app version — updated on regeneration. */
5
- const APP_VERSION = "20260615_00";
5
+ const APP_VERSION = "20260623_00";
6
6
  async function executeRedditTool(tool, args) {
7
7
  const { result } = await createKeystrokeClient().tools.execute({
8
8
  app: APP_SLUG,
@@ -1 +1 @@
1
- {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"reddit\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeRedditTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"reddit\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260623_00\";\n\nexport async function executeRedditTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/reddit",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {