@keystrokehq/reddit 0.1.2 → 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 (139) hide show
  1. package/dist/actions/create-reddit-post.cjs +1 -1
  2. package/dist/actions/create-reddit-post.cjs.map +1 -1
  3. package/dist/actions/create-reddit-post.d.cts +1 -1
  4. package/dist/actions/create-reddit-post.d.mts +1 -1
  5. package/dist/actions/create-reddit-post.mjs +1 -1
  6. package/dist/actions/create-reddit-post.mjs.map +1 -1
  7. package/dist/actions/delete-reddit-comment.cjs +1 -1
  8. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  9. package/dist/actions/delete-reddit-comment.d.cts +1 -1
  10. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  11. package/dist/actions/delete-reddit-comment.d.mts +1 -1
  12. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  13. package/dist/actions/delete-reddit-comment.mjs +1 -1
  14. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  15. package/dist/actions/delete-reddit-post.cjs +1 -1
  16. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  17. package/dist/actions/delete-reddit-post.d.cts +1 -1
  18. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  19. package/dist/actions/delete-reddit-post.d.mts +1 -1
  20. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  21. package/dist/actions/delete-reddit-post.mjs +1 -1
  22. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  23. package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
  24. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  25. package/dist/actions/edit-reddit-comment-or-post.d.cts +3 -3
  26. package/dist/actions/edit-reddit-comment-or-post.d.mts +3 -3
  27. package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
  28. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  29. package/dist/actions/get-controversial-posts.cjs +4 -4
  30. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  31. package/dist/actions/get-controversial-posts.d.cts +4 -4
  32. package/dist/actions/get-controversial-posts.d.mts +4 -4
  33. package/dist/actions/get-controversial-posts.mjs +4 -4
  34. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  35. package/dist/actions/get-me-prefs.cjs +1 -1
  36. package/dist/actions/get-me-prefs.cjs.map +1 -1
  37. package/dist/actions/get-me-prefs.d.cts +1 -1
  38. package/dist/actions/get-me-prefs.d.mts +1 -1
  39. package/dist/actions/get-me-prefs.mjs +1 -1
  40. package/dist/actions/get-me-prefs.mjs.map +1 -1
  41. package/dist/actions/get-r-top.cjs +4 -4
  42. package/dist/actions/get-r-top.cjs.map +1 -1
  43. package/dist/actions/get-r-top.d.cts +4 -4
  44. package/dist/actions/get-r-top.d.mts +4 -4
  45. package/dist/actions/get-r-top.mjs +4 -4
  46. package/dist/actions/get-r-top.mjs.map +1 -1
  47. package/dist/actions/get-random.cjs +4 -4
  48. package/dist/actions/get-random.cjs.map +1 -1
  49. package/dist/actions/get-random.d.cts +4 -4
  50. package/dist/actions/get-random.d.mts +4 -4
  51. package/dist/actions/get-random.mjs +4 -4
  52. package/dist/actions/get-random.mjs.map +1 -1
  53. package/dist/actions/get-reddit-user-about.cjs +3 -3
  54. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  55. package/dist/actions/get-reddit-user-about.d.cts +3 -3
  56. package/dist/actions/get-reddit-user-about.d.mts +3 -3
  57. package/dist/actions/get-reddit-user-about.mjs +3 -3
  58. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  59. package/dist/actions/get-scopes.cjs +1 -1
  60. package/dist/actions/get-scopes.cjs.map +1 -1
  61. package/dist/actions/get-scopes.d.cts +2 -2
  62. package/dist/actions/get-scopes.d.mts +2 -2
  63. package/dist/actions/get-scopes.mjs +1 -1
  64. package/dist/actions/get-scopes.mjs.map +1 -1
  65. package/dist/actions/get-subreddit-rules.cjs +2 -2
  66. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  67. package/dist/actions/get-subreddit-rules.d.cts +2 -2
  68. package/dist/actions/get-subreddit-rules.d.mts +2 -2
  69. package/dist/actions/get-subreddit-rules.mjs +2 -2
  70. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  71. package/dist/actions/get-subreddits-search.cjs +4 -4
  72. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  73. package/dist/actions/get-subreddits-search.d.cts +4 -4
  74. package/dist/actions/get-subreddits-search.d.mts +4 -4
  75. package/dist/actions/get-subreddits-search.mjs +4 -4
  76. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  77. package/dist/actions/get-user-flair.cjs +2 -2
  78. package/dist/actions/get-user-flair.cjs.map +1 -1
  79. package/dist/actions/get-user-flair.d.cts +2 -2
  80. package/dist/actions/get-user-flair.d.mts +2 -2
  81. package/dist/actions/get-user-flair.mjs +2 -2
  82. package/dist/actions/get-user-flair.mjs.map +1 -1
  83. package/dist/actions/get-username-available.cjs +1 -1
  84. package/dist/actions/get-username-available.cjs.map +1 -1
  85. package/dist/actions/get-username-available.d.cts +1 -1
  86. package/dist/actions/get-username-available.d.mts +1 -1
  87. package/dist/actions/get-username-available.mjs +1 -1
  88. package/dist/actions/get-username-available.mjs.map +1 -1
  89. package/dist/actions/get.cjs +4 -4
  90. package/dist/actions/get.cjs.map +1 -1
  91. package/dist/actions/get.d.cts +4 -4
  92. package/dist/actions/get.d.mts +4 -4
  93. package/dist/actions/get.mjs +4 -4
  94. package/dist/actions/get.mjs.map +1 -1
  95. package/dist/actions/list-subreddit-post-flairs.cjs +2 -2
  96. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  97. package/dist/actions/list-subreddit-post-flairs.d.cts +2 -2
  98. package/dist/actions/list-subreddit-post-flairs.d.mts +2 -2
  99. package/dist/actions/list-subreddit-post-flairs.mjs +2 -2
  100. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  101. package/dist/actions/post-reddit-comment.cjs +5 -5
  102. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  103. package/dist/actions/post-reddit-comment.d.cts +5 -5
  104. package/dist/actions/post-reddit-comment.d.mts +5 -5
  105. package/dist/actions/post-reddit-comment.mjs +5 -5
  106. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  107. package/dist/actions/retrieve-post-comments.cjs +2 -2
  108. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  109. package/dist/actions/retrieve-post-comments.d.cts +2 -2
  110. package/dist/actions/retrieve-post-comments.d.mts +2 -2
  111. package/dist/actions/retrieve-post-comments.mjs +2 -2
  112. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  113. package/dist/actions/retrieve-reddit-post.cjs +4 -4
  114. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  115. package/dist/actions/retrieve-reddit-post.d.cts +4 -4
  116. package/dist/actions/retrieve-reddit-post.d.mts +4 -4
  117. package/dist/actions/retrieve-reddit-post.mjs +4 -4
  118. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  119. package/dist/actions/retrieve-specific-comment.cjs +6 -6
  120. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  121. package/dist/actions/retrieve-specific-comment.d.cts +6 -6
  122. package/dist/actions/retrieve-specific-comment.d.mts +6 -6
  123. package/dist/actions/retrieve-specific-comment.mjs +6 -6
  124. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  125. package/dist/actions/search-across-subreddits.cjs +2 -2
  126. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  127. package/dist/actions/search-across-subreddits.d.cts +2 -2
  128. package/dist/actions/search-across-subreddits.d.mts +2 -2
  129. package/dist/actions/search-across-subreddits.mjs +2 -2
  130. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  131. package/dist/actions/toggle-inbox-replies.cjs +1 -1
  132. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  133. package/dist/actions/toggle-inbox-replies.d.cts +1 -1
  134. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  135. package/dist/actions/toggle-inbox-replies.d.mts +1 -1
  136. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  137. package/dist/actions/toggle-inbox-replies.mjs +1 -1
  138. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  139. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-reddit-post.mjs","names":[],"sources":["../../src/actions/retrieve-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveRedditPostInput = z.object({\n sort: z.enum([\"hot\", \"new\", \"top\", \"rising\", \"controversial\"]).default(\"hot\").describe(\"Sort order for posts. Options: 'hot' (default, most active posts), 'new' (newest first), 'top' (highest scoring), 'rising' (trending posts), 'controversial' (most controversial).\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit from which to retrieve posts (e.g., 'popular', 'pics'). Do not include 'r/'. Subreddit names must be 3-21 characters and can only contain letters, numbers, and underscores.\"),\n max_results: z.number().int().default(5).describe(\"The maximum number of posts to return. Default is 5. Set to 0 to retrieve the maximum allowed by the Reddit API (100 posts). Valid range: 0-100.\").optional(),\n});\nconst RedditRetrieveRedditPost_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.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable(),\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 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, empty string for link posts.\").nullable(),\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(\"Thumbnail URL, or 'self' for self posts, 'image' if link to image but no thumbnail, 'default' if unavailable.\").nullable(),\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.\").nullable(),\n}).describe(\"Optimized post data object containing only essential fields.\");\nconst RedditRetrieveRedditPost_PostChildSchema = z.object({\n data: RedditRetrieveRedditPost_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditRetrieveRedditPost_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(RedditRetrieveRedditPost_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditRetrieveRedditPostOutput = z.object({\n data: RedditRetrieveRedditPost_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).describe(\"Response from retrieving posts from a subreddit.\");\n\nexport const redditRetrieveRedditPost = action(\"REDDIT_RETRIEVE_REDDIT_POST\", {\n slug: \"reddit-retrieve-reddit-post\",\n name: \"Retrieve posts from subreddit\",\n description: \"Retrieves posts from a specified, publicly accessible subreddit. Responses nest post data under `data.children[].data`; inspect the structure before parsing. Pagination uses a `data.after` cursor; deduplicate across pages by post `id`. No built-in date filtering; compare `created_utc` (Unix seconds, UTC) client-side. Rate limit: ~1–2 requests/second; back off on HTTP 429.\",\n input: RedditRetrieveRedditPostInput,\n output: RedditRetrieveRedditPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAU;CAAe,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACtR,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACvO,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjN,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,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,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAA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AC,CAAC,SAAS,qDAAqD;AAMjE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,2CAA2C,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-reddit-post.mjs","names":[],"sources":["../../src/actions/retrieve-reddit-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveRedditPostInput = z.object({\n sort: z.enum([\"hot\", \"new\", \"top\", \"rising\", \"controversial\"]).default(\"hot\").describe(\"Sort order for posts. Options: 'hot' (default, most active posts), 'new' (newest first), 'top' (highest scoring), 'rising' (trending posts), 'controversial' (most controversial).\").optional(),\n subreddit: z.string().describe(\"The name of the subreddit from which to retrieve posts (e.g., 'popular', 'pics'). Do not include 'r/'. Subreddit names must be 3-21 characters and can only contain letters, numbers, and underscores.\"),\n max_results: z.number().int().default(5).describe(\"The maximum number of posts to return. Default is 5. Set to 0 to retrieve the maximum allowed by the Reddit API (100 posts). Valid range: 0-100.\").optional(),\n});\nconst RedditRetrieveRedditPost_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.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable(),\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 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, empty string for link posts.\").nullable(),\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(\"Thumbnail URL, or 'self' for self posts, 'image' if link to image but no thumbnail, 'default' if unavailable.\").nullable(),\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.\").nullable(),\n}).passthrough().describe(\"Optimized post data object containing only essential fields.\");\nconst RedditRetrieveRedditPost_PostChildSchema = z.object({\n data: RedditRetrieveRedditPost_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 RedditRetrieveRedditPost_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(RedditRetrieveRedditPost_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditRetrieveRedditPostOutput = z.object({\n data: RedditRetrieveRedditPost_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from retrieving posts from a subreddit.\");\n\nexport const redditRetrieveRedditPost = action(\"REDDIT_RETRIEVE_REDDIT_POST\", {\n slug: \"reddit-retrieve-reddit-post\",\n name: \"Retrieve posts from subreddit\",\n description: \"Retrieves posts from a specified, publicly accessible subreddit. Responses nest post data under `data.children[].data`; inspect the structure before parsing. Pagination uses a `data.after` cursor; deduplicate across pages by post `id`. No built-in date filtering; compare `created_utc` (Unix seconds, UTC) client-side. Rate limit: ~1–2 requests/second; back off on HTTP 429.\",\n input: RedditRetrieveRedditPostInput,\n output: RedditRetrieveRedditPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAU;CAAe,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACtR,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACvO,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjN,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,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,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;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AE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,wBAAwB;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,2CAA2C,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -18,12 +18,12 @@ const RedditRetrieveSpecificComment_OembedDataSchema = zod.z.object({
18
18
  thumbnail_url: zod.z.string().describe("URL of the thumbnail image.").nullable().optional(),
19
19
  thumbnail_width: zod.z.number().int().describe("Width of the thumbnail image in pixels.").nullable().optional(),
20
20
  thumbnail_height: zod.z.number().int().describe("Height of the thumbnail image in pixels.").nullable().optional()
21
- }).describe("oEmbed metadata for embedded media content following the oEmbed specification.");
22
- const RedditRetrieveSpecificComment_MediaDataSchema = zod.z.object({ oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional() }).describe("Media information for posts with embedded content.");
21
+ }).passthrough().describe("oEmbed metadata for embedded media content following the oEmbed specification.");
22
+ const RedditRetrieveSpecificComment_MediaDataSchema = zod.z.object({ oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional() }).passthrough().describe("Media information for posts with embedded content.");
23
23
  const RedditRetrieveSpecificComment_SimplifiedRepliesSchema = zod.z.object({
24
24
  count: zod.z.number().int().default(0).describe("Number of direct replies to this comment.").nullable().optional(),
25
25
  has_replies: zod.z.boolean().default(false).describe("Whether this comment has any replies.").nullable().optional()
26
- }).describe("Simplified replies information to prevent unbounded recursive data.");
26
+ }).passthrough().describe("Simplified replies information to prevent unbounded recursive data.");
27
27
  const RedditRetrieveSpecificComment_CommentDataSchema = zod.z.object({
28
28
  id: zod.z.string().describe("The item's unique identifier (without the t1_ or t3_ prefix).").nullable(),
29
29
  body: zod.z.string().describe("The raw text of the comment. Only present for comments (t1).").nullable().optional(),
@@ -38,12 +38,12 @@ const RedditRetrieveSpecificComment_CommentDataSchema = zod.z.object({
38
38
  permalink: zod.z.string().describe("Permanent link to the comment or post.").nullable().optional(),
39
39
  created_utc: zod.z.number().describe("Creation timestamp in Unix time (UTC).").nullable(),
40
40
  is_submitter: zod.z.boolean().describe("Whether the comment author is also the submission author.").nullable().optional()
41
- }).describe("Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.");
41
+ }).passthrough().describe("Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.");
42
42
  const RedditRetrieveSpecificComment_ThingDataSchema = zod.z.object({
43
43
  data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),
44
44
  kind: zod.z.string().describe("Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).").nullable()
45
- }).describe("Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.");
46
- const RedditRetrieveSpecificCommentOutput = zod.z.object({ things: zod.z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe("List of items (comments or posts) matching the `id` from the request; typically contains a single item.") });
45
+ }).passthrough().describe("Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.");
46
+ const RedditRetrieveSpecificCommentOutput = zod.z.object({ things: zod.z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe("List of items (comments or posts) matching the `id` from the request; typically contains a single item.") }).passthrough();
47
47
  const redditRetrieveSpecificComment = require_action.action("REDDIT_RETRIEVE_SPECIFIC_COMMENT", {
48
48
  slug: "reddit-retrieve-specific-comment",
49
49
  name: "Retrieve specific comment or post",
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-specific-comment.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-specific-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveSpecificCommentInput = z.object({\n id: z.string().describe(\"Reddit fullname identifier. Format: type prefix (t1_ for comments, t3_ for posts) followed by a base36 ID. Examples: 't1_abc123', 't3_1abc2de'. Note: Share URL tokens from reddit.com/r/.../s/... links are NOT valid fullnames and cannot be used directly. Note: REDDIT_RETRIEVE_POST_COMMENTS expects the bare base-36 ID without the t3_ prefix, unlike this tool.\"),\n});\nconst RedditRetrieveSpecificComment_OembedDataSchema = z.object({\n html: z.string().describe(\"HTML code for embedding the media resource.\").nullable().optional(),\n type: z.string().describe(\"Resource type (photo, video, link, or rich) per oEmbed specification.\").nullable().optional(),\n title: z.string().describe(\"Title of the embedded media.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the embedded media in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the embedded media in pixels.\").nullable().optional(),\n version: z.string().describe(\"oEmbed version number, typically '1.0'.\").nullable().optional(),\n cache_age: z.number().int().describe(\"Suggested cache lifetime in seconds.\").nullable().optional(),\n author_url: z.string().describe(\"URL of the media content creator's profile or website.\").nullable().optional(),\n author_name: z.string().describe(\"Name of the media content creator.\").nullable().optional(),\n description: z.string().describe(\"Text description of the embedded media resource.\").nullable().optional(),\n provider_url: z.string().describe(\"URL of the media provider's website.\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the media provider.\").nullable().optional(),\n thumbnail_url: z.string().describe(\"URL of the thumbnail image.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n}).describe(\"oEmbed metadata for embedded media content following the oEmbed specification.\");\nconst RedditRetrieveSpecificComment_MediaDataSchema = z.object({\n oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional(),\n}).describe(\"Media information for posts with embedded content.\");\nconst RedditRetrieveSpecificComment_SimplifiedRepliesSchema = z.object({\n count: z.number().int().default(0).describe(\"Number of direct replies to this comment.\").nullable().optional(),\n has_replies: z.boolean().default(false).describe(\"Whether this comment has any replies.\").nullable().optional(),\n}).describe(\"Simplified replies information to prevent unbounded recursive data.\");\nconst RedditRetrieveSpecificComment_CommentDataSchema = z.object({\n id: z.string().describe(\"The item's unique identifier (without the t1_ or t3_ prefix).\").nullable(),\n body: z.string().describe(\"The raw text of the comment. Only present for comments (t1).\").nullable().optional(),\n name: z.string().describe(\"The item's fullname identifier (e.g., 't1_c3v7f8u' for comments, 't3_abc123' for posts).\").nullable(),\n depth: z.number().int().describe(\"The depth level in the thread. Top-level comments have depth 0.\").nullable().optional(),\n media: RedditRetrieveSpecificComment_MediaDataSchema.nullable().optional(),\n score: z.number().int().describe(\"The net score (upvotes minus downvotes).\").nullable(),\n author: z.string().describe(\"The username of the author. Can be null for deleted accounts.\").nullable().optional(),\n replies: RedditRetrieveSpecificComment_SimplifiedRepliesSchema.nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text. Only present for comments (t1).\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent comment (t1_) or parent submission (t3_). Only present for comments.\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment or post.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in Unix time (UTC).\").nullable(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author.\").nullable().optional(),\n}).describe(\"Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.\");\nconst RedditRetrieveSpecificComment_ThingDataSchema = z.object({\n data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).\").nullable(),\n}).describe(\"Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.\");\nexport const RedditRetrieveSpecificCommentOutput = z.object({\n things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe(\"List of items (comments or posts) matching the `id` from the request; typically contains a single item.\"),\n});\n\nexport const redditRetrieveSpecificComment = action(\"REDDIT_RETRIEVE_SPECIFIC_COMMENT\", {\n slug: \"reddit-retrieve-specific-comment\",\n name: \"Retrieve specific comment or post\",\n description: \"Retrieves detailed information for a single Reddit comment or post using its fullname. Returns only the specified item, not surrounding thread context; use REDDIT_RETRIEVE_POST_COMMENTS for full discussion retrieval. Deleted, removed, or quarantined items may return empty or partial payloads.\",\n input: RedditRetrieveSpecificCommentInput,\n output: RedditRetrieveSpecificCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW,EACnY,CAAC;AACD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,C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AC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAClJ,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAM,gDAAgD,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,sJAAsJ;AAClK,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,yGAAyG,EACnL,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-specific-comment.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-specific-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveSpecificCommentInput = z.object({\n id: z.string().describe(\"Reddit fullname identifier. Format: type prefix (t1_ for comments, t3_ for posts) followed by a base36 ID. Examples: 't1_abc123', 't3_1abc2de'. Note: Share URL tokens from reddit.com/r/.../s/... links are NOT valid fullnames and cannot be used directly. Note: REDDIT_RETRIEVE_POST_COMMENTS expects the bare base-36 ID without the t3_ prefix, unlike this tool.\"),\n});\nconst RedditRetrieveSpecificComment_OembedDataSchema = z.object({\n html: z.string().describe(\"HTML code for embedding the media resource.\").nullable().optional(),\n type: z.string().describe(\"Resource type (photo, video, link, or rich) per oEmbed specification.\").nullable().optional(),\n title: z.string().describe(\"Title of the embedded media.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the embedded media in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the embedded media in pixels.\").nullable().optional(),\n version: z.string().describe(\"oEmbed version number, typically '1.0'.\").nullable().optional(),\n cache_age: z.number().int().describe(\"Suggested cache lifetime in seconds.\").nullable().optional(),\n author_url: z.string().describe(\"URL of the media content creator's profile or website.\").nullable().optional(),\n author_name: z.string().describe(\"Name of the media content creator.\").nullable().optional(),\n description: z.string().describe(\"Text description of the embedded media resource.\").nullable().optional(),\n provider_url: z.string().describe(\"URL of the media provider's website.\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the media provider.\").nullable().optional(),\n thumbnail_url: z.string().describe(\"URL of the thumbnail image.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n}).passthrough().describe(\"oEmbed metadata for embedded media content following the oEmbed specification.\");\nconst RedditRetrieveSpecificComment_MediaDataSchema = z.object({\n oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional(),\n}).passthrough().describe(\"Media information for posts with embedded content.\");\nconst RedditRetrieveSpecificComment_SimplifiedRepliesSchema = z.object({\n count: z.number().int().default(0).describe(\"Number of direct replies to this comment.\").nullable().optional(),\n has_replies: z.boolean().default(false).describe(\"Whether this comment has any replies.\").nullable().optional(),\n}).passthrough().describe(\"Simplified replies information to prevent unbounded recursive data.\");\nconst RedditRetrieveSpecificComment_CommentDataSchema = z.object({\n id: z.string().describe(\"The item's unique identifier (without the t1_ or t3_ prefix).\").nullable(),\n body: z.string().describe(\"The raw text of the comment. Only present for comments (t1).\").nullable().optional(),\n name: z.string().describe(\"The item's fullname identifier (e.g., 't1_c3v7f8u' for comments, 't3_abc123' for posts).\").nullable(),\n depth: z.number().int().describe(\"The depth level in the thread. Top-level comments have depth 0.\").nullable().optional(),\n media: RedditRetrieveSpecificComment_MediaDataSchema.nullable().optional(),\n score: z.number().int().describe(\"The net score (upvotes minus downvotes).\").nullable(),\n author: z.string().describe(\"The username of the author. Can be null for deleted accounts.\").nullable().optional(),\n replies: RedditRetrieveSpecificComment_SimplifiedRepliesSchema.nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text. Only present for comments (t1).\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent comment (t1_) or parent submission (t3_). Only present for comments.\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment or post.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in Unix time (UTC).\").nullable(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.\");\nconst RedditRetrieveSpecificComment_ThingDataSchema = z.object({\n data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).\").nullable(),\n}).passthrough().describe(\"Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.\");\nexport const RedditRetrieveSpecificCommentOutput = z.object({\n things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe(\"List of items (comments or posts) matching the `id` from the request; typically contains a single item.\"),\n}).passthrough();\n\nexport const redditRetrieveSpecificComment = action(\"REDDIT_RETRIEVE_SPECIFIC_COMMENT\", {\n slug: \"reddit-retrieve-specific-comment\",\n name: \"Retrieve specific comment or post\",\n description: \"Retrieves detailed information for a single Reddit comment or post using its fullname. Returns only the specified item, not surrounding thread context; use REDDIT_RETRIEVE_POST_COMMENTS for full discussion retrieval. Deleted, removed, or quarantined items may return empty or partial payloads.\",\n input: RedditRetrieveSpecificCommentInput,\n output: RedditRetrieveSpecificCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW,EACnY,CAAC;AACD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,C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edditRetrieveSpecificCommentOutput: z.ZodObject<{
28
28
  thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  thumbnail_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
30
  thumbnail_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>>;
32
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
+ }, z.core.$loose>>>;
33
33
  score: z.ZodNullable<z.ZodNumber>;
34
34
  author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  replies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
36
  count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
37
37
  has_replies: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
38
- }, z.core.$strip>>>;
38
+ }, z.core.$loose>>>;
39
39
  body_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  permalink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  created_utc: z.ZodNullable<z.ZodNumber>;
43
43
  is_submitter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
- }, z.core.$strip>>;
44
+ }, z.core.$loose>>;
45
45
  kind: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const redditRetrieveSpecificComment: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  id: string;
50
50
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -28,23 +28,23 @@ declare const RedditRetrieveSpecificCommentOutput: z.ZodObject<{
28
28
  thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  thumbnail_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
30
  thumbnail_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>>;
32
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
+ }, z.core.$loose>>>;
33
33
  score: z.ZodNullable<z.ZodNumber>;
34
34
  author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  replies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
36
  count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
37
37
  has_replies: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
38
- }, z.core.$strip>>>;
38
+ }, z.core.$loose>>>;
39
39
  body_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  permalink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  created_utc: z.ZodNullable<z.ZodNumber>;
43
43
  is_submitter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
- }, z.core.$strip>>;
44
+ }, z.core.$loose>>;
45
45
  kind: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const redditRetrieveSpecificComment: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  id: string;
50
50
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -18,12 +18,12 @@ const RedditRetrieveSpecificComment_OembedDataSchema = z.object({
18
18
  thumbnail_url: z.string().describe("URL of the thumbnail image.").nullable().optional(),
19
19
  thumbnail_width: z.number().int().describe("Width of the thumbnail image in pixels.").nullable().optional(),
20
20
  thumbnail_height: z.number().int().describe("Height of the thumbnail image in pixels.").nullable().optional()
21
- }).describe("oEmbed metadata for embedded media content following the oEmbed specification.");
22
- const RedditRetrieveSpecificComment_MediaDataSchema = z.object({ oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional() }).describe("Media information for posts with embedded content.");
21
+ }).passthrough().describe("oEmbed metadata for embedded media content following the oEmbed specification.");
22
+ const RedditRetrieveSpecificComment_MediaDataSchema = z.object({ oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional() }).passthrough().describe("Media information for posts with embedded content.");
23
23
  const RedditRetrieveSpecificComment_SimplifiedRepliesSchema = z.object({
24
24
  count: z.number().int().default(0).describe("Number of direct replies to this comment.").nullable().optional(),
25
25
  has_replies: z.boolean().default(false).describe("Whether this comment has any replies.").nullable().optional()
26
- }).describe("Simplified replies information to prevent unbounded recursive data.");
26
+ }).passthrough().describe("Simplified replies information to prevent unbounded recursive data.");
27
27
  const RedditRetrieveSpecificComment_CommentDataSchema = z.object({
28
28
  id: z.string().describe("The item's unique identifier (without the t1_ or t3_ prefix).").nullable(),
29
29
  body: z.string().describe("The raw text of the comment. Only present for comments (t1).").nullable().optional(),
@@ -38,17 +38,17 @@ const RedditRetrieveSpecificComment_CommentDataSchema = z.object({
38
38
  permalink: z.string().describe("Permanent link to the comment or post.").nullable().optional(),
39
39
  created_utc: z.number().describe("Creation timestamp in Unix time (UTC).").nullable(),
40
40
  is_submitter: z.boolean().describe("Whether the comment author is also the submission author.").nullable().optional()
41
- }).describe("Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.");
41
+ }).passthrough().describe("Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.");
42
42
  const RedditRetrieveSpecificComment_ThingDataSchema = z.object({
43
43
  data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),
44
44
  kind: z.string().describe("Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).").nullable()
45
- }).describe("Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.");
45
+ }).passthrough().describe("Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.");
46
46
  const redditRetrieveSpecificComment = action("REDDIT_RETRIEVE_SPECIFIC_COMMENT", {
47
47
  slug: "reddit-retrieve-specific-comment",
48
48
  name: "Retrieve specific comment or post",
49
49
  description: "Retrieves detailed information for a single Reddit comment or post using its fullname. Returns only the specified item, not surrounding thread context; use REDDIT_RETRIEVE_POST_COMMENTS for full discussion retrieval. Deleted, removed, or quarantined items may return empty or partial payloads.",
50
50
  input: RedditRetrieveSpecificCommentInput,
51
- output: z.object({ things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe("List of items (comments or posts) matching the `id` from the request; typically contains a single item.") })
51
+ output: z.object({ things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe("List of items (comments or posts) matching the `id` from the request; typically contains a single item.") }).passthrough()
52
52
  });
53
53
  //#endregion
54
54
  export { redditRetrieveSpecificComment };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-specific-comment.mjs","names":[],"sources":["../../src/actions/retrieve-specific-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveSpecificCommentInput = z.object({\n id: z.string().describe(\"Reddit fullname identifier. Format: type prefix (t1_ for comments, t3_ for posts) followed by a base36 ID. Examples: 't1_abc123', 't3_1abc2de'. Note: Share URL tokens from reddit.com/r/.../s/... links are NOT valid fullnames and cannot be used directly. Note: REDDIT_RETRIEVE_POST_COMMENTS expects the bare base-36 ID without the t3_ prefix, unlike this tool.\"),\n});\nconst RedditRetrieveSpecificComment_OembedDataSchema = z.object({\n html: z.string().describe(\"HTML code for embedding the media resource.\").nullable().optional(),\n type: z.string().describe(\"Resource type (photo, video, link, or rich) per oEmbed specification.\").nullable().optional(),\n title: z.string().describe(\"Title of the embedded media.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the embedded media in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the embedded media in pixels.\").nullable().optional(),\n version: z.string().describe(\"oEmbed version number, typically '1.0'.\").nullable().optional(),\n cache_age: z.number().int().describe(\"Suggested cache lifetime in seconds.\").nullable().optional(),\n author_url: z.string().describe(\"URL of the media content creator's profile or website.\").nullable().optional(),\n author_name: z.string().describe(\"Name of the media content creator.\").nullable().optional(),\n description: z.string().describe(\"Text description of the embedded media resource.\").nullable().optional(),\n provider_url: z.string().describe(\"URL of the media provider's website.\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the media provider.\").nullable().optional(),\n thumbnail_url: z.string().describe(\"URL of the thumbnail image.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n}).describe(\"oEmbed metadata for embedded media content following the oEmbed specification.\");\nconst RedditRetrieveSpecificComment_MediaDataSchema = z.object({\n oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional(),\n}).describe(\"Media information for posts with embedded content.\");\nconst RedditRetrieveSpecificComment_SimplifiedRepliesSchema = z.object({\n count: z.number().int().default(0).describe(\"Number of direct replies to this comment.\").nullable().optional(),\n has_replies: z.boolean().default(false).describe(\"Whether this comment has any replies.\").nullable().optional(),\n}).describe(\"Simplified replies information to prevent unbounded recursive data.\");\nconst RedditRetrieveSpecificComment_CommentDataSchema = z.object({\n id: z.string().describe(\"The item's unique identifier (without the t1_ or t3_ prefix).\").nullable(),\n body: z.string().describe(\"The raw text of the comment. Only present for comments (t1).\").nullable().optional(),\n name: z.string().describe(\"The item's fullname identifier (e.g., 't1_c3v7f8u' for comments, 't3_abc123' for posts).\").nullable(),\n depth: z.number().int().describe(\"The depth level in the thread. Top-level comments have depth 0.\").nullable().optional(),\n media: RedditRetrieveSpecificComment_MediaDataSchema.nullable().optional(),\n score: z.number().int().describe(\"The net score (upvotes minus downvotes).\").nullable(),\n author: z.string().describe(\"The username of the author. Can be null for deleted accounts.\").nullable().optional(),\n replies: RedditRetrieveSpecificComment_SimplifiedRepliesSchema.nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text. Only present for comments (t1).\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent comment (t1_) or parent submission (t3_). Only present for comments.\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment or post.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in Unix time (UTC).\").nullable(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author.\").nullable().optional(),\n}).describe(\"Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.\");\nconst RedditRetrieveSpecificComment_ThingDataSchema = z.object({\n data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).\").nullable(),\n}).describe(\"Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.\");\nexport const RedditRetrieveSpecificCommentOutput = z.object({\n things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe(\"List of items (comments or posts) matching the `id` from the request; typically contains a single item.\"),\n});\n\nexport const redditRetrieveSpecificComment = action(\"REDDIT_RETRIEVE_SPECIFIC_COMMENT\", {\n slug: \"reddit-retrieve-specific-comment\",\n name: \"Retrieve specific comment or post\",\n description: \"Retrieves detailed information for a single Reddit comment or post using its fullname. Returns only the specified item, not surrounding thread context; use REDDIT_RETRIEVE_POST_COMMENTS for full discussion retrieval. Deleted, removed, or quarantined items may return empty or partial payloads.\",\n input: RedditRetrieveSpecificCommentInput,\n output: RedditRetrieveSpecificCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW,EACnY,CAAC;AACD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,MAAM,EAA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AC,SAAS,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAClJ,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,gDAAgD,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,sJAAsJ;AAKlK,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,yGAAyG,EACnL,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-specific-comment.mjs","names":[],"sources":["../../src/actions/retrieve-specific-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrieveSpecificCommentInput = z.object({\n id: z.string().describe(\"Reddit fullname identifier. Format: type prefix (t1_ for comments, t3_ for posts) followed by a base36 ID. Examples: 't1_abc123', 't3_1abc2de'. Note: Share URL tokens from reddit.com/r/.../s/... links are NOT valid fullnames and cannot be used directly. Note: REDDIT_RETRIEVE_POST_COMMENTS expects the bare base-36 ID without the t3_ prefix, unlike this tool.\"),\n});\nconst RedditRetrieveSpecificComment_OembedDataSchema = z.object({\n html: z.string().describe(\"HTML code for embedding the media resource.\").nullable().optional(),\n type: z.string().describe(\"Resource type (photo, video, link, or rich) per oEmbed specification.\").nullable().optional(),\n title: z.string().describe(\"Title of the embedded media.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the embedded media in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the embedded media in pixels.\").nullable().optional(),\n version: z.string().describe(\"oEmbed version number, typically '1.0'.\").nullable().optional(),\n cache_age: z.number().int().describe(\"Suggested cache lifetime in seconds.\").nullable().optional(),\n author_url: z.string().describe(\"URL of the media content creator's profile or website.\").nullable().optional(),\n author_name: z.string().describe(\"Name of the media content creator.\").nullable().optional(),\n description: z.string().describe(\"Text description of the embedded media resource.\").nullable().optional(),\n provider_url: z.string().describe(\"URL of the media provider's website.\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the media provider.\").nullable().optional(),\n thumbnail_url: z.string().describe(\"URL of the thumbnail image.\").nullable().optional(),\n thumbnail_width: z.number().int().describe(\"Width of the thumbnail image in pixels.\").nullable().optional(),\n thumbnail_height: z.number().int().describe(\"Height of the thumbnail image in pixels.\").nullable().optional(),\n}).passthrough().describe(\"oEmbed metadata for embedded media content following the oEmbed specification.\");\nconst RedditRetrieveSpecificComment_MediaDataSchema = z.object({\n oembed: RedditRetrieveSpecificComment_OembedDataSchema.nullable().optional(),\n}).passthrough().describe(\"Media information for posts with embedded content.\");\nconst RedditRetrieveSpecificComment_SimplifiedRepliesSchema = z.object({\n count: z.number().int().default(0).describe(\"Number of direct replies to this comment.\").nullable().optional(),\n has_replies: z.boolean().default(false).describe(\"Whether this comment has any replies.\").nullable().optional(),\n}).passthrough().describe(\"Simplified replies information to prevent unbounded recursive data.\");\nconst RedditRetrieveSpecificComment_CommentDataSchema = z.object({\n id: z.string().describe(\"The item's unique identifier (without the t1_ or t3_ prefix).\").nullable(),\n body: z.string().describe(\"The raw text of the comment. Only present for comments (t1).\").nullable().optional(),\n name: z.string().describe(\"The item's fullname identifier (e.g., 't1_c3v7f8u' for comments, 't3_abc123' for posts).\").nullable(),\n depth: z.number().int().describe(\"The depth level in the thread. Top-level comments have depth 0.\").nullable().optional(),\n media: RedditRetrieveSpecificComment_MediaDataSchema.nullable().optional(),\n score: z.number().int().describe(\"The net score (upvotes minus downvotes).\").nullable(),\n author: z.string().describe(\"The username of the author. Can be null for deleted accounts.\").nullable().optional(),\n replies: RedditRetrieveSpecificComment_SimplifiedRepliesSchema.nullable().optional(),\n body_html: z.string().describe(\"The formatted HTML text. Only present for comments (t1).\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent comment (t1_) or parent submission (t3_). Only present for comments.\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment or post.\").nullable().optional(),\n created_utc: z.number().describe(\"Creation timestamp in Unix time (UTC).\").nullable(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit comment (t1) or post (t3). Only essential fields are included to prevent oversized responses.\");\nconst RedditRetrieveSpecificComment_ThingDataSchema = z.object({\n data: RedditRetrieveSpecificComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the item (e.g., 't1' for comment, 't3' for link/post).\").nullable(),\n}).passthrough().describe(\"Represents a Reddit 'thing' - can be a comment (t1) or post (t3). The data field uses CommentData which supports both types through optional fields.\");\nexport const RedditRetrieveSpecificCommentOutput = z.object({\n things: z.array(RedditRetrieveSpecificComment_ThingDataSchema).describe(\"List of items (comments or posts) matching the `id` from the request; typically contains a single item.\"),\n}).passthrough();\n\nexport const redditRetrieveSpecificComment = action(\"REDDIT_RETRIEVE_SPECIFIC_COMMENT\", {\n slug: \"reddit-retrieve-specific-comment\",\n name: \"Retrieve specific comment or post\",\n description: \"Retrieves detailed information for a single Reddit comment or post using its fullname. Returns only the specified item, not surrounding thread context; use REDDIT_RETRIEVE_POST_COMMENTS for full discussion retrieval. Deleted, removed, or quarantined items may return empty or partial payloads.\",\n input: RedditRetrieveSpecificCommentInput,\n output: RedditRetrieveSpecificCommentOutput,\n});\n"],"mappings":";;;A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C,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAAsI;AAChK,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,gDAAgD,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sJAAsJ;AAKhL,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,yGAAyG,EACnL,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -30,13 +30,13 @@ const RedditSearchAcrossSubreddits_PostResultSchema = zod.z.object({
30
30
  num_comments: zod.z.number().int().describe("Total number of comments on the post").nullable(),
31
31
  created_datetime: zod.z.string().describe("Human-readable creation date in ISO format").nullable(),
32
32
  subreddit_prefixed: zod.z.string().describe("Subreddit name with r/ prefix (e.g., r/programming)").nullable()
33
- }).describe("Streamlined post data containing only essential information for search results.");
33
+ }).passthrough().describe("Streamlined post data containing only essential information for search results.");
34
34
  const RedditSearchAcrossSubredditsOutput = zod.z.object({
35
35
  after: zod.z.string().describe("Pagination cursor for the next page (null if no more results)").nullable().optional(),
36
36
  posts: zod.z.array(RedditSearchAcrossSubreddits_PostResultSchema).describe("List of posts matching the search query"),
37
37
  before: zod.z.string().describe("Pagination cursor for the previous page (null if at beginning)").nullable().optional(),
38
38
  total_results: zod.z.number().int().describe("Number of posts returned in this response").nullable()
39
- }).describe("Streamlined Reddit search response containing only essential post information.");
39
+ }).passthrough().describe("Streamlined Reddit search response containing only essential post information.");
40
40
  const redditSearchAcrossSubreddits = require_action.action("REDDIT_SEARCH_ACROSS_SUBREDDITS", {
41
41
  slug: "reddit-search-across-subreddits",
42
42
  name: "Search across subreddits",
@@ -1 +1 @@
1
- {"version":3,"file":"search-across-subreddits.cjs","names":["z","action"],"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}).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}).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,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAO;EAAO;EAAO;CAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;CACpY,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACxK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;CAC9R,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC7K,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CACrP,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW;AAC7Y,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,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6CAA6C,CAAC,CAAC,SAAS,yCAAyC;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAE5F,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-across-subreddits.cjs","names":["z","action"],"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,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAO;EAAO;EAAO;CAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;CACpY,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACxK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;CAC9R,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC7K,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CACrP,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yWAAyW;AAC7Y,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,O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C,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAE1G,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -32,10 +32,10 @@ declare const RedditSearchAcrossSubredditsOutput: z.ZodObject<{
32
32
  num_comments: z.ZodNullable<z.ZodNumber>;
33
33
  created_datetime: z.ZodNullable<z.ZodString>;
34
34
  subreddit_prefixed: z.ZodNullable<z.ZodString>;
35
- }, z.core.$strip>>;
35
+ }, z.core.$loose>>;
36
36
  before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  total_results: z.ZodNullable<z.ZodNumber>;
38
- }, z.core.$strip>;
38
+ }, z.core.$loose>;
39
39
  declare const redditSearchAcrossSubreddits: import("@keystrokehq/action").WorkflowActionDefinition<{
40
40
  search_query: string;
41
41
  sort?: "relevance" | "hot" | "new" | "top" | "comments" | undefined;
@@ -32,10 +32,10 @@ declare const RedditSearchAcrossSubredditsOutput: z.ZodObject<{
32
32
  num_comments: z.ZodNullable<z.ZodNumber>;
33
33
  created_datetime: z.ZodNullable<z.ZodString>;
34
34
  subreddit_prefixed: z.ZodNullable<z.ZodString>;
35
- }, z.core.$strip>>;
35
+ }, z.core.$loose>>;
36
36
  before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  total_results: z.ZodNullable<z.ZodNumber>;
38
- }, z.core.$strip>;
38
+ }, z.core.$loose>;
39
39
  declare const redditSearchAcrossSubreddits: import("@keystrokehq/action").WorkflowActionDefinition<{
40
40
  search_query: string;
41
41
  sort?: "relevance" | "hot" | "new" | "top" | "comments" | undefined;
@@ -30,7 +30,7 @@ const RedditSearchAcrossSubreddits_PostResultSchema = z.object({
30
30
  num_comments: z.number().int().describe("Total number of comments on the post").nullable(),
31
31
  created_datetime: z.string().describe("Human-readable creation date in ISO format").nullable(),
32
32
  subreddit_prefixed: z.string().describe("Subreddit name with r/ prefix (e.g., r/programming)").nullable()
33
- }).describe("Streamlined post data containing only essential information for search results.");
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",
@@ -41,7 +41,7 @@ const redditSearchAcrossSubreddits = action("REDDIT_SEARCH_ACROSS_SUBREDDITS", {
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
43
  total_results: z.number().int().describe("Number of posts returned in this response").nullable()
44
- }).describe("Streamlined Reddit search response containing only essential post information.")
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.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}).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}).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;CACj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C,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,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,CA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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.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.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,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wQAAwQ;AAE5U,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"}
@@ -5,7 +5,7 @@ declare const RedditToggleInboxRepliesInput: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  state: z.ZodBoolean;
7
7
  }, z.core.$strip>;
8
- declare const RedditToggleInboxRepliesOutput: z.ZodObject<{}, z.core.$strip>;
8
+ declare const RedditToggleInboxRepliesOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
9
  declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<{
10
10
  id: string;
11
11
  state: boolean;
@@ -1 +1 @@
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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
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"}
@@ -5,7 +5,7 @@ declare const RedditToggleInboxRepliesInput: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  state: z.ZodBoolean;
7
7
  }, z.core.$strip>;
8
- declare const RedditToggleInboxRepliesOutput: z.ZodObject<{}, z.core.$strip>;
8
+ declare const RedditToggleInboxRepliesOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
9
  declare const redditToggleInboxReplies: import("@keystrokehq/action").WorkflowActionDefinition<{
10
10
  id: string;
11
11
  state: boolean;
@@ -1 +1 @@
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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
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.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.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,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,CAAC,CAAC,CAAC,CAAC,SAAS,wQAO1D;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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/reddit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"