@keystrokehq/reddit 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/create-reddit-post.cjs +2 -2
  5. package/dist/actions/create-reddit-post.cjs.map +1 -1
  6. package/dist/actions/create-reddit-post.d.cts +29 -3
  7. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  8. package/dist/actions/create-reddit-post.d.mts +29 -3
  9. package/dist/actions/create-reddit-post.d.mts.map +1 -1
  10. package/dist/actions/create-reddit-post.mjs +2 -2
  11. package/dist/actions/create-reddit-post.mjs.map +1 -1
  12. package/dist/actions/delete-reddit-comment.cjs +1 -1
  13. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  14. package/dist/actions/delete-reddit-comment.d.cts +7 -3
  15. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  16. package/dist/actions/delete-reddit-comment.d.mts +7 -3
  17. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  18. package/dist/actions/delete-reddit-comment.mjs +1 -1
  19. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  20. package/dist/actions/delete-reddit-post.cjs +1 -1
  21. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  22. package/dist/actions/delete-reddit-post.d.cts +7 -3
  23. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  24. package/dist/actions/delete-reddit-post.d.mts +7 -3
  25. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  26. package/dist/actions/delete-reddit-post.mjs +1 -1
  27. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  28. package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
  29. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  30. package/dist/actions/edit-reddit-comment-or-post.d.cts +64 -3
  31. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  32. package/dist/actions/edit-reddit-comment-or-post.d.mts +64 -3
  33. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  34. package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
  35. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  36. package/dist/actions/get-controversial-posts.cjs +6 -6
  37. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  38. package/dist/actions/get-controversial-posts.d.cts +79 -3
  39. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  40. package/dist/actions/get-controversial-posts.d.mts +79 -3
  41. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  42. package/dist/actions/get-controversial-posts.mjs +6 -6
  43. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  44. package/dist/actions/get-me-prefs.cjs +1 -1
  45. package/dist/actions/get-me-prefs.cjs.map +1 -1
  46. package/dist/actions/get-me-prefs.d.cts +69 -3
  47. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  48. package/dist/actions/get-me-prefs.d.mts +69 -3
  49. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  50. package/dist/actions/get-me-prefs.mjs +1 -1
  51. package/dist/actions/get-me-prefs.mjs.map +1 -1
  52. package/dist/actions/get-r-top.cjs +6 -6
  53. package/dist/actions/get-r-top.cjs.map +1 -1
  54. package/dist/actions/get-r-top.d.cts +57 -3
  55. package/dist/actions/get-r-top.d.cts.map +1 -1
  56. package/dist/actions/get-r-top.d.mts +57 -3
  57. package/dist/actions/get-r-top.d.mts.map +1 -1
  58. package/dist/actions/get-r-top.mjs +6 -6
  59. package/dist/actions/get-r-top.mjs.map +1 -1
  60. package/dist/actions/get-random.cjs +18 -18
  61. package/dist/actions/get-random.cjs.map +1 -1
  62. package/dist/actions/get-random.d.cts +41 -3
  63. package/dist/actions/get-random.d.cts.map +1 -1
  64. package/dist/actions/get-random.d.mts +41 -3
  65. package/dist/actions/get-random.d.mts.map +1 -1
  66. package/dist/actions/get-random.mjs +18 -18
  67. package/dist/actions/get-random.mjs.map +1 -1
  68. package/dist/actions/get-reddit-user-about.cjs +11 -11
  69. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  70. package/dist/actions/get-reddit-user-about.d.cts +75 -3
  71. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  72. package/dist/actions/get-reddit-user-about.d.mts +75 -3
  73. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  74. package/dist/actions/get-reddit-user-about.mjs +11 -11
  75. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  76. package/dist/actions/get-scopes.cjs +1 -1
  77. package/dist/actions/get-scopes.cjs.map +1 -1
  78. package/dist/actions/get-scopes.d.cts +5 -3
  79. package/dist/actions/get-scopes.d.cts.map +1 -1
  80. package/dist/actions/get-scopes.d.mts +5 -3
  81. package/dist/actions/get-scopes.d.mts.map +1 -1
  82. package/dist/actions/get-scopes.mjs +1 -1
  83. package/dist/actions/get-scopes.mjs.map +1 -1
  84. package/dist/actions/get-subreddit-rules.cjs +7 -7
  85. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  86. package/dist/actions/get-subreddit-rules.d.cts +21 -3
  87. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  88. package/dist/actions/get-subreddit-rules.d.mts +21 -3
  89. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  90. package/dist/actions/get-subreddit-rules.mjs +7 -7
  91. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  92. package/dist/actions/get-subreddits-search.cjs +6 -6
  93. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  94. package/dist/actions/get-subreddits-search.d.cts +67 -3
  95. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  96. package/dist/actions/get-subreddits-search.d.mts +67 -3
  97. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  98. package/dist/actions/get-subreddits-search.mjs +6 -6
  99. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  100. package/dist/actions/get-user-flair.cjs +3 -3
  101. package/dist/actions/get-user-flair.cjs.map +1 -1
  102. package/dist/actions/get-user-flair.d.cts +21 -3
  103. package/dist/actions/get-user-flair.d.cts.map +1 -1
  104. package/dist/actions/get-user-flair.d.mts +21 -3
  105. package/dist/actions/get-user-flair.d.mts.map +1 -1
  106. package/dist/actions/get-user-flair.mjs +3 -3
  107. package/dist/actions/get-user-flair.mjs.map +1 -1
  108. package/dist/actions/get-username-available.cjs +3 -3
  109. package/dist/actions/get-username-available.cjs.map +1 -1
  110. package/dist/actions/get-username-available.d.cts +10 -3
  111. package/dist/actions/get-username-available.d.cts.map +1 -1
  112. package/dist/actions/get-username-available.d.mts +10 -3
  113. package/dist/actions/get-username-available.d.mts.map +1 -1
  114. package/dist/actions/get-username-available.mjs +3 -3
  115. package/dist/actions/get-username-available.mjs.map +1 -1
  116. package/dist/actions/get.cjs +18 -18
  117. package/dist/actions/get.cjs.map +1 -1
  118. package/dist/actions/get.d.cts +53 -3
  119. package/dist/actions/get.d.cts.map +1 -1
  120. package/dist/actions/get.d.mts +53 -3
  121. package/dist/actions/get.d.mts.map +1 -1
  122. package/dist/actions/get.mjs +18 -18
  123. package/dist/actions/get.mjs.map +1 -1
  124. package/dist/actions/list-subreddit-post-flairs.cjs +6 -6
  125. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  126. package/dist/actions/list-subreddit-post-flairs.d.cts +27 -3
  127. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  128. package/dist/actions/list-subreddit-post-flairs.d.mts +27 -3
  129. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  130. package/dist/actions/list-subreddit-post-flairs.mjs +6 -6
  131. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  132. package/dist/actions/post-reddit-comment.cjs +26 -26
  133. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  134. package/dist/actions/post-reddit-comment.d.cts +54 -3
  135. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  136. package/dist/actions/post-reddit-comment.d.mts +54 -3
  137. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  138. package/dist/actions/post-reddit-comment.mjs +26 -26
  139. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  140. package/dist/actions/retrieve-post-comments.cjs +7 -7
  141. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  142. package/dist/actions/retrieve-post-comments.d.cts +72 -3
  143. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  144. package/dist/actions/retrieve-post-comments.d.mts +72 -3
  145. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  146. package/dist/actions/retrieve-post-comments.mjs +7 -7
  147. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  148. package/dist/actions/retrieve-reddit-post.cjs +21 -21
  149. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  150. package/dist/actions/retrieve-reddit-post.d.cts +47 -3
  151. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  152. package/dist/actions/retrieve-reddit-post.d.mts +47 -3
  153. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  154. package/dist/actions/retrieve-reddit-post.mjs +21 -21
  155. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  156. package/dist/actions/retrieve-specific-comment.cjs +11 -11
  157. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  158. package/dist/actions/retrieve-specific-comment.d.cts +47 -3
  159. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  160. package/dist/actions/retrieve-specific-comment.d.mts +47 -3
  161. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  162. package/dist/actions/retrieve-specific-comment.mjs +11 -11
  163. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  164. package/dist/actions/search-across-subreddits.cjs +16 -16
  165. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  166. package/dist/actions/search-across-subreddits.d.cts +43 -3
  167. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  168. package/dist/actions/search-across-subreddits.d.mts +43 -3
  169. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  170. package/dist/actions/search-across-subreddits.mjs +16 -16
  171. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  172. package/dist/actions/toggle-inbox-replies.cjs +1 -1
  173. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  174. package/dist/actions/toggle-inbox-replies.d.cts +9 -3
  175. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  176. package/dist/actions/toggle-inbox-replies.d.mts +9 -3
  177. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  178. package/dist/actions/toggle-inbox-replies.mjs +1 -1
  179. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  180. package/dist/execute.cjs +1 -1
  181. package/dist/execute.cjs.map +1 -1
  182. package/dist/execute.mjs +1 -1
  183. package/dist/execute.mjs.map +1 -1
  184. package/package.json +2 -2
@@ -6,53 +6,53 @@ const RedditPostRedditCommentInput = zod.z.object({
6
6
  thing_id: zod.z.string().describe("REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.")
7
7
  });
8
8
  const RedditPostRedditComment_CommentDataSchema = zod.z.object({
9
- id: zod.z.string().describe("Unique identifier of the comment"),
10
- ups: zod.z.number().int().describe("Number of upvotes (includes own vote if upvoted)"),
11
- body: zod.z.string().describe("Raw comment text content with Markdown formatting; HTML entities are escaped"),
12
- name: zod.z.string().describe("Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')"),
9
+ id: zod.z.string().describe("Unique identifier of the comment").nullable(),
10
+ ups: zod.z.number().int().describe("Number of upvotes (includes own vote if upvoted)").nullable(),
11
+ body: zod.z.string().describe("Raw comment text content with Markdown formatting; HTML entities are escaped").nullable(),
12
+ name: zod.z.string().describe("Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')").nullable(),
13
13
  depth: zod.z.number().int().describe("Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.").nullable().optional(),
14
- downs: zod.z.number().int().describe("Number of downvotes (includes own vote if downvoted)"),
14
+ downs: zod.z.number().int().describe("Number of downvotes (includes own vote if downvoted)").nullable(),
15
15
  likes: zod.z.boolean().describe("Vote status: true if upvoted, false if downvoted, null if no vote or not logged in").nullable().optional(),
16
- saved: zod.z.boolean().describe("Whether the logged-in user has saved this comment"),
17
- score: zod.z.number().int().describe("Net score (upvotes minus downvotes) of the comment"),
18
- author: zod.z.string().describe("Username of the comment author"),
16
+ saved: zod.z.boolean().describe("Whether the logged-in user has saved this comment").nullable(),
17
+ score: zod.z.number().int().describe("Net score (upvotes minus downvotes) of the comment").nullable(),
18
+ author: zod.z.string().describe("Username of the comment author").nullable(),
19
19
  edited: zod.z.union([zod.z.boolean(), zod.z.number()]),
20
- gilded: zod.z.number().int().describe("Number of Reddit Gold awards the comment has received"),
21
- created: zod.z.number().describe("Unix timestamp when the comment was created in local time (epoch seconds)"),
22
- link_id: zod.z.string().describe("ID of the parent submission (prefixed with 't3_')"),
20
+ gilded: zod.z.number().int().describe("Number of Reddit Gold awards the comment has received").nullable(),
21
+ created: zod.z.number().describe("Unix timestamp when the comment was created in local time (epoch seconds)").nullable(),
22
+ link_id: zod.z.string().describe("ID of the parent submission (prefixed with 't3_')").nullable(),
23
23
  replies: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.string()]),
24
24
  link_url: zod.z.string().describe("URL of the parent submission (when comment displayed outside thread context)").nullable().optional(),
25
- stickied: zod.z.boolean().describe("Whether the comment is stickied/pinned"),
25
+ stickied: zod.z.boolean().describe("Whether the comment is stickied/pinned").nullable(),
26
26
  banned_by: zod.z.string().describe("Username of moderator who removed the comment; null if none or user lacks privileges").nullable().optional(),
27
- body_html: zod.z.string().describe("Formatted HTML version of the comment text as displayed on Reddit"),
28
- parent_id: zod.z.string().describe("ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')"),
29
- permalink: zod.z.string().describe("Permanent URL path to the comment"),
30
- subreddit: zod.z.string().describe("Name of the subreddit excluding the '/r/' prefix"),
27
+ body_html: zod.z.string().describe("Formatted HTML version of the comment text as displayed on Reddit").nullable(),
28
+ parent_id: zod.z.string().describe("ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')").nullable(),
29
+ permalink: zod.z.string().describe("Permanent URL path to the comment").nullable(),
30
+ subreddit: zod.z.string().describe("Name of the subreddit excluding the '/r/' prefix").nullable(),
31
31
  link_title: zod.z.string().describe("Title of the parent submission (when comment displayed outside thread context)").nullable().optional(),
32
32
  approved_by: zod.z.string().describe("Username of moderator who approved the comment; null if none or user lacks privileges").nullable().optional(),
33
- created_utc: zod.z.number().describe("Unix timestamp when the comment was created in UTC (epoch seconds)"),
33
+ created_utc: zod.z.number().describe("Unix timestamp when the comment was created in UTC (epoch seconds)").nullable(),
34
34
  link_author: zod.z.string().describe("Author of the parent submission (when comment displayed outside thread context)").nullable().optional(),
35
35
  num_reports: zod.z.number().int().describe("Number of reports on the comment; null if user is not a moderator").nullable().optional(),
36
- is_submitter: zod.z.boolean().describe("Whether the comment author is also the submission author"),
37
- score_hidden: zod.z.boolean().describe("Whether the comment's score is currently hidden"),
38
- subreddit_id: zod.z.string().describe("Unique identifier of the subreddit"),
36
+ is_submitter: zod.z.boolean().describe("Whether the comment author is also the submission author").nullable(),
37
+ score_hidden: zod.z.boolean().describe("Whether the comment's score is currently hidden").nullable(),
38
+ subreddit_id: zod.z.string().describe("Unique identifier of the subreddit").nullable(),
39
39
  distinguished: zod.z.string().describe("Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'").nullable().optional(),
40
40
  author_flair_text: zod.z.string().describe("Text content of the author's user flair in this subreddit").nullable().optional(),
41
41
  author_flair_css_class: zod.z.string().describe("CSS class for styling the author's user flair").nullable().optional()
42
- }).describe("The comment object data returned by Reddit API.");
42
+ }).passthrough().describe("The comment object data returned by Reddit API.");
43
43
  const RedditPostRedditComment_CommentThingSchema = zod.z.object({
44
44
  data: RedditPostRedditComment_CommentDataSchema.nullable(),
45
- kind: zod.z.string().describe("Type identifier for the object; 't1' for comments")
46
- }).describe("A Reddit 'thing' containing a comment.");
47
- const RedditPostRedditComment_CommentResponseDataSchema = zod.z.object({ things: zod.z.array(RedditPostRedditComment_CommentThingSchema).describe("Array containing the created comment object(s)") }).describe("Container for the created comment objects.");
45
+ kind: zod.z.string().describe("Type identifier for the object; 't1' for comments").nullable()
46
+ }).passthrough().describe("A Reddit 'thing' containing a comment.");
47
+ const RedditPostRedditComment_CommentResponseDataSchema = zod.z.object({ things: zod.z.array(RedditPostRedditComment_CommentThingSchema).describe("Array containing the created comment object(s)") }).passthrough().describe("Container for the created comment objects.");
48
48
  const RedditPostRedditComment_CommentJsonWrapperSchema = zod.z.object({
49
49
  data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),
50
50
  errors: zod.z.array(zod.z.union([zod.z.string(), zod.z.array(zod.z.string())])).describe("Array of errors encountered during the API call; empty array if successful")
51
- }).describe("Wrapper object containing the API response.");
51
+ }).passthrough().describe("Wrapper object containing the API response.");
52
52
  const RedditPostRedditCommentOutput = zod.z.object({
53
53
  json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),
54
54
  composio_execution_message: zod.z.string().describe("Informational message about the execution, such as platform limitations encountered").nullable().optional()
55
- }).describe("Response from posting a comment on Reddit.");
55
+ }).passthrough().describe("Response from posting a comment on Reddit.");
56
56
  const redditPostRedditComment = require_action.action("REDDIT_POST_REDDIT_COMMENT", {
57
57
  slug: "reddit-post-reddit-comment",
58
58
  name: "Post a comment",
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the comment\"),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\"),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\"),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\"),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\"),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\"),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\"),\n author: z.string().describe(\"Username of the comment author\"),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\"),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\"),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\"),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\"),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\"),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\"),\n permalink: z.string().describe(\"Permanent URL path to the comment\"),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\"),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\"),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\"),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\"),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\"),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema: z.ZodTypeAny = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\"),\n}).describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema: z.ZodTypeAny = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema: z.ZodTypeAny = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput: z.ZodTypeAny = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACvF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC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,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,iDAAiD,SAAS;CAChE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"post-reddit-comment.cjs","names":["z","action"],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAUA,IAAAA,EAAE,OA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AC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,iDAAiD,SAAS;CAChE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/post-reddit-comment.d.ts
4
- declare const RedditPostRedditCommentInput: z.ZodTypeAny;
5
- declare const RedditPostRedditCommentOutput: z.ZodTypeAny;
6
- declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditPostRedditCommentInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ thing_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const RedditPostRedditCommentOutput: z.ZodObject<{
9
+ json: z.ZodNullable<z.ZodObject<{
10
+ data: z.ZodNullable<z.ZodObject<{
11
+ things: z.ZodArray<z.ZodObject<{
12
+ data: z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ ups: z.ZodNullable<z.ZodNumber>;
15
+ body: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ depth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ downs: z.ZodNullable<z.ZodNumber>;
19
+ likes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ saved: z.ZodNullable<z.ZodBoolean>;
21
+ score: z.ZodNullable<z.ZodNumber>;
22
+ author: z.ZodNullable<z.ZodString>;
23
+ edited: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
24
+ gilded: z.ZodNullable<z.ZodNumber>;
25
+ created: z.ZodNullable<z.ZodNumber>;
26
+ link_id: z.ZodNullable<z.ZodString>;
27
+ replies: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
28
+ link_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ stickied: z.ZodNullable<z.ZodBoolean>;
30
+ banned_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ body_html: z.ZodNullable<z.ZodString>;
32
+ parent_id: z.ZodNullable<z.ZodString>;
33
+ permalink: z.ZodNullable<z.ZodString>;
34
+ subreddit: z.ZodNullable<z.ZodString>;
35
+ link_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ approved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ created_utc: z.ZodNullable<z.ZodNumber>;
38
+ link_author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ num_reports: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ is_submitter: z.ZodNullable<z.ZodBoolean>;
41
+ score_hidden: z.ZodNullable<z.ZodBoolean>;
42
+ subreddit_id: z.ZodNullable<z.ZodString>;
43
+ distinguished: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ author_flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ author_flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>;
47
+ kind: z.ZodNullable<z.ZodString>;
48
+ }, z.core.$loose>>;
49
+ }, z.core.$loose>>;
50
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
51
+ }, z.core.$loose>>;
52
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ }, z.core.$loose>;
54
+ declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
55
+ text: string;
56
+ thing_id: string;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { redditPostRedditComment };
9
60
  //# sourceMappingURL=post-reddit-comment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.d.cts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cA+CW,6BAAA,EAA+B,CAAA,CAAE,UAGW;AAAA,cAE5C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"post-reddit-comment.d.cts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/post-reddit-comment.d.ts
4
- declare const RedditPostRedditCommentInput: z.ZodTypeAny;
5
- declare const RedditPostRedditCommentOutput: z.ZodTypeAny;
6
- declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditPostRedditCommentInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ thing_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const RedditPostRedditCommentOutput: z.ZodObject<{
9
+ json: z.ZodNullable<z.ZodObject<{
10
+ data: z.ZodNullable<z.ZodObject<{
11
+ things: z.ZodArray<z.ZodObject<{
12
+ data: z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ ups: z.ZodNullable<z.ZodNumber>;
15
+ body: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ depth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ downs: z.ZodNullable<z.ZodNumber>;
19
+ likes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ saved: z.ZodNullable<z.ZodBoolean>;
21
+ score: z.ZodNullable<z.ZodNumber>;
22
+ author: z.ZodNullable<z.ZodString>;
23
+ edited: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
24
+ gilded: z.ZodNullable<z.ZodNumber>;
25
+ created: z.ZodNullable<z.ZodNumber>;
26
+ link_id: z.ZodNullable<z.ZodString>;
27
+ replies: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
28
+ link_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ stickied: z.ZodNullable<z.ZodBoolean>;
30
+ banned_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ body_html: z.ZodNullable<z.ZodString>;
32
+ parent_id: z.ZodNullable<z.ZodString>;
33
+ permalink: z.ZodNullable<z.ZodString>;
34
+ subreddit: z.ZodNullable<z.ZodString>;
35
+ link_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ approved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ created_utc: z.ZodNullable<z.ZodNumber>;
38
+ link_author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ num_reports: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ is_submitter: z.ZodNullable<z.ZodBoolean>;
41
+ score_hidden: z.ZodNullable<z.ZodBoolean>;
42
+ subreddit_id: z.ZodNullable<z.ZodString>;
43
+ distinguished: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ author_flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ author_flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>;
47
+ kind: z.ZodNullable<z.ZodString>;
48
+ }, z.core.$loose>>;
49
+ }, z.core.$loose>>;
50
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
51
+ }, z.core.$loose>>;
52
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ }, z.core.$loose>;
54
+ declare const redditPostRedditComment: import("@keystrokehq/action").WorkflowActionDefinition<{
55
+ text: string;
56
+ thing_id: string;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { redditPostRedditComment };
9
60
  //# sourceMappingURL=post-reddit-comment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.d.mts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cA+CW,6BAAA,EAA+B,CAAA,CAAE,UAGW;AAAA,cAE5C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"post-reddit-comment.d.mts","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAkD5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
@@ -6,49 +6,49 @@ const RedditPostRedditCommentInput = z.object({
6
6
  thing_id: z.string().describe("REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.")
7
7
  });
8
8
  const RedditPostRedditComment_CommentDataSchema = z.object({
9
- id: z.string().describe("Unique identifier of the comment"),
10
- ups: z.number().int().describe("Number of upvotes (includes own vote if upvoted)"),
11
- body: z.string().describe("Raw comment text content with Markdown formatting; HTML entities are escaped"),
12
- name: z.string().describe("Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')"),
9
+ id: z.string().describe("Unique identifier of the comment").nullable(),
10
+ ups: z.number().int().describe("Number of upvotes (includes own vote if upvoted)").nullable(),
11
+ body: z.string().describe("Raw comment text content with Markdown formatting; HTML entities are escaped").nullable(),
12
+ name: z.string().describe("Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')").nullable(),
13
13
  depth: z.number().int().describe("Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.").nullable().optional(),
14
- downs: z.number().int().describe("Number of downvotes (includes own vote if downvoted)"),
14
+ downs: z.number().int().describe("Number of downvotes (includes own vote if downvoted)").nullable(),
15
15
  likes: z.boolean().describe("Vote status: true if upvoted, false if downvoted, null if no vote or not logged in").nullable().optional(),
16
- saved: z.boolean().describe("Whether the logged-in user has saved this comment"),
17
- score: z.number().int().describe("Net score (upvotes minus downvotes) of the comment"),
18
- author: z.string().describe("Username of the comment author"),
16
+ saved: z.boolean().describe("Whether the logged-in user has saved this comment").nullable(),
17
+ score: z.number().int().describe("Net score (upvotes minus downvotes) of the comment").nullable(),
18
+ author: z.string().describe("Username of the comment author").nullable(),
19
19
  edited: z.union([z.boolean(), z.number()]),
20
- gilded: z.number().int().describe("Number of Reddit Gold awards the comment has received"),
21
- created: z.number().describe("Unix timestamp when the comment was created in local time (epoch seconds)"),
22
- link_id: z.string().describe("ID of the parent submission (prefixed with 't3_')"),
20
+ gilded: z.number().int().describe("Number of Reddit Gold awards the comment has received").nullable(),
21
+ created: z.number().describe("Unix timestamp when the comment was created in local time (epoch seconds)").nullable(),
22
+ link_id: z.string().describe("ID of the parent submission (prefixed with 't3_')").nullable(),
23
23
  replies: z.union([z.record(z.string(), z.unknown()), z.string()]),
24
24
  link_url: z.string().describe("URL of the parent submission (when comment displayed outside thread context)").nullable().optional(),
25
- stickied: z.boolean().describe("Whether the comment is stickied/pinned"),
25
+ stickied: z.boolean().describe("Whether the comment is stickied/pinned").nullable(),
26
26
  banned_by: z.string().describe("Username of moderator who removed the comment; null if none or user lacks privileges").nullable().optional(),
27
- body_html: z.string().describe("Formatted HTML version of the comment text as displayed on Reddit"),
28
- parent_id: z.string().describe("ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')"),
29
- permalink: z.string().describe("Permanent URL path to the comment"),
30
- subreddit: z.string().describe("Name of the subreddit excluding the '/r/' prefix"),
27
+ body_html: z.string().describe("Formatted HTML version of the comment text as displayed on Reddit").nullable(),
28
+ parent_id: z.string().describe("ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')").nullable(),
29
+ permalink: z.string().describe("Permanent URL path to the comment").nullable(),
30
+ subreddit: z.string().describe("Name of the subreddit excluding the '/r/' prefix").nullable(),
31
31
  link_title: z.string().describe("Title of the parent submission (when comment displayed outside thread context)").nullable().optional(),
32
32
  approved_by: z.string().describe("Username of moderator who approved the comment; null if none or user lacks privileges").nullable().optional(),
33
- created_utc: z.number().describe("Unix timestamp when the comment was created in UTC (epoch seconds)"),
33
+ created_utc: z.number().describe("Unix timestamp when the comment was created in UTC (epoch seconds)").nullable(),
34
34
  link_author: z.string().describe("Author of the parent submission (when comment displayed outside thread context)").nullable().optional(),
35
35
  num_reports: z.number().int().describe("Number of reports on the comment; null if user is not a moderator").nullable().optional(),
36
- is_submitter: z.boolean().describe("Whether the comment author is also the submission author"),
37
- score_hidden: z.boolean().describe("Whether the comment's score is currently hidden"),
38
- subreddit_id: z.string().describe("Unique identifier of the subreddit"),
36
+ is_submitter: z.boolean().describe("Whether the comment author is also the submission author").nullable(),
37
+ score_hidden: z.boolean().describe("Whether the comment's score is currently hidden").nullable(),
38
+ subreddit_id: z.string().describe("Unique identifier of the subreddit").nullable(),
39
39
  distinguished: z.string().describe("Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'").nullable().optional(),
40
40
  author_flair_text: z.string().describe("Text content of the author's user flair in this subreddit").nullable().optional(),
41
41
  author_flair_css_class: z.string().describe("CSS class for styling the author's user flair").nullable().optional()
42
- }).describe("The comment object data returned by Reddit API.");
42
+ }).passthrough().describe("The comment object data returned by Reddit API.");
43
43
  const RedditPostRedditComment_CommentThingSchema = z.object({
44
44
  data: RedditPostRedditComment_CommentDataSchema.nullable(),
45
- kind: z.string().describe("Type identifier for the object; 't1' for comments")
46
- }).describe("A Reddit 'thing' containing a comment.");
47
- const RedditPostRedditComment_CommentResponseDataSchema = z.object({ things: z.array(RedditPostRedditComment_CommentThingSchema).describe("Array containing the created comment object(s)") }).describe("Container for the created comment objects.");
45
+ kind: z.string().describe("Type identifier for the object; 't1' for comments").nullable()
46
+ }).passthrough().describe("A Reddit 'thing' containing a comment.");
47
+ const RedditPostRedditComment_CommentResponseDataSchema = z.object({ things: z.array(RedditPostRedditComment_CommentThingSchema).describe("Array containing the created comment object(s)") }).passthrough().describe("Container for the created comment objects.");
48
48
  const RedditPostRedditComment_CommentJsonWrapperSchema = z.object({
49
49
  data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),
50
50
  errors: z.array(z.union([z.string(), z.array(z.string())])).describe("Array of errors encountered during the API call; empty array if successful")
51
- }).describe("Wrapper object containing the API response.");
51
+ }).passthrough().describe("Wrapper object containing the API response.");
52
52
  const redditPostRedditComment = action("REDDIT_POST_REDDIT_COMMENT", {
53
53
  slug: "reddit-post-reddit-comment",
54
54
  name: "Post a comment",
@@ -57,7 +57,7 @@ const redditPostRedditComment = action("REDDIT_POST_REDDIT_COMMENT", {
57
57
  output: z.object({
58
58
  json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),
59
59
  composio_execution_message: z.string().describe("Informational message about the execution, such as platform limitations encountered").nullable().optional()
60
- }).describe("Response from posting a comment on Reddit.")
60
+ }).passthrough().describe("Response from posting a comment on Reddit.")
61
61
  });
62
62
  //#endregion
63
63
  export { redditPostRedditComment };
@@ -1 +1 @@
1
- {"version":3,"file":"post-reddit-comment.mjs","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the comment\"),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\"),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\"),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\"),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\"),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\"),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\"),\n author: z.string().describe(\"Username of the comment author\"),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\"),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\"),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\"),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\"),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\"),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\"),\n permalink: z.string().describe(\"Permanent URL path to the comment\"),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\"),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\"),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\"),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\"),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\"),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema: z.ZodTypeAny = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\"),\n}).describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema: z.ZodTypeAny = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema: z.ZodTypeAny = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput: z.ZodTypeAny = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CA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4E;AACnJ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAMzD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,iDAAiD,SAAS;EAChE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"post-reddit-comment.mjs","names":[],"sources":["../../src/actions/post-reddit-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditPostRedditCommentInput = z.object({\n text: z.string().describe(\"REQUIRED. The raw Markdown text of the comment to be submitted. This field must be provided and cannot be empty.\"),\n thing_id: z.string().describe(\"REQUIRED. The ID of the parent post (link) or comment, prefixed with 't3_' for a post (e.g., 't3_10omtdx') or 't1_' for a comment (e.g., 't1_h2g9w8l'). This field must be provided.\"),\n});\nconst RedditPostRedditComment_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes (includes own vote if upvoted)\").nullable(),\n body: z.string().describe(\"Raw comment text content with Markdown formatting; HTML entities are escaped\").nullable(),\n name: z.string().describe(\"Fullname of the comment combining kind and id (e.g., 't1_c3v7f8u')\").nullable(),\n depth: z.number().int().describe(\"Nesting level of the comment; 0 for top-level comments, 1 for first-level replies, etc.\").nullable().optional(),\n downs: z.number().int().describe(\"Number of downvotes (includes own vote if downvoted)\").nullable(),\n likes: z.boolean().describe(\"Vote status: true if upvoted, false if downvoted, null if no vote or not logged in\").nullable().optional(),\n saved: z.boolean().describe(\"Whether the logged-in user has saved this comment\").nullable(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes) of the comment\").nullable(),\n author: z.string().describe(\"Username of the comment author\").nullable(),\n edited: z.union([z.boolean(), z.number()]),\n gilded: z.number().int().describe(\"Number of Reddit Gold awards the comment has received\").nullable(),\n created: z.number().describe(\"Unix timestamp when the comment was created in local time (epoch seconds)\").nullable(),\n link_id: z.string().describe(\"ID of the parent submission (prefixed with 't3_')\").nullable(),\n replies: z.union([z.record(z.string(), z.unknown()), z.string()]),\n link_url: z.string().describe(\"URL of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the comment is stickied/pinned\").nullable(),\n banned_by: z.string().describe(\"Username of moderator who removed the comment; null if none or user lacks privileges\").nullable().optional(),\n body_html: z.string().describe(\"Formatted HTML version of the comment text as displayed on Reddit\").nullable(),\n parent_id: z.string().describe(\"ID of the parent comment (prefixed with 't1_') or submission (prefixed with 't3_')\").nullable(),\n permalink: z.string().describe(\"Permanent URL path to the comment\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit excluding the '/r/' prefix\").nullable(),\n link_title: z.string().describe(\"Title of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n approved_by: z.string().describe(\"Username of moderator who approved the comment; null if none or user lacks privileges\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp when the comment was created in UTC (epoch seconds)\").nullable(),\n link_author: z.string().describe(\"Author of the parent submission (when comment displayed outside thread context)\").nullable().optional(),\n num_reports: z.number().int().describe(\"Number of reports on the comment; null if user is not a moderator\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the comment author is also the submission author\").nullable(),\n score_hidden: z.boolean().describe(\"Whether the comment's score is currently hidden\").nullable(),\n subreddit_id: z.string().describe(\"Unique identifier of the subreddit\").nullable(),\n distinguished: z.string().describe(\"Moderator status: null (normal user), 'moderator' (green [M]), 'admin' (red [A]), or 'special'\").nullable().optional(),\n author_flair_text: z.string().describe(\"Text content of the author's user flair in this subreddit\").nullable().optional(),\n author_flair_css_class: z.string().describe(\"CSS class for styling the author's user flair\").nullable().optional(),\n}).passthrough().describe(\"The comment object data returned by Reddit API.\");\nconst RedditPostRedditComment_CommentThingSchema = z.object({\n data: RedditPostRedditComment_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object; 't1' for comments\").nullable(),\n}).passthrough().describe(\"A Reddit 'thing' containing a comment.\");\nconst RedditPostRedditComment_CommentResponseDataSchema = z.object({\n things: z.array(RedditPostRedditComment_CommentThingSchema).describe(\"Array containing the created comment object(s)\"),\n}).passthrough().describe(\"Container for the created comment objects.\");\nconst RedditPostRedditComment_CommentJsonWrapperSchema = z.object({\n data: RedditPostRedditComment_CommentResponseDataSchema.nullable(),\n errors: z.array(z.union([z.string(), z.array(z.string())])).describe(\"Array of errors encountered during the API call; empty array if successful\"),\n}).passthrough().describe(\"Wrapper object containing the API response.\");\nexport const RedditPostRedditCommentOutput = z.object({\n json: RedditPostRedditComment_CommentJsonWrapperSchema.nullable(),\n composio_execution_message: z.string().describe(\"Informational message about the execution, such as platform limitations encountered\").nullable().optional(),\n}).passthrough().describe(\"Response from posting a comment on Reddit.\");\n\nexport const redditPostRedditComment = action(\"REDDIT_POST_REDDIT_COMMENT\", {\n slug: \"reddit-post-reddit-comment\",\n name: \"Post a comment\",\n description: \"Posts a comment on Reddit, replying to an existing submission (post) or another comment. Fails if the target thread is locked, archived, or restricted — verify thread state beforehand. Rapid successive calls trigger Reddit RATELIMIT errors with explicit cooldown hints (e.g., 'take a break for 9 minutes'); honor the specified wait before retrying. A successful API response does not guarantee public visibility — automod or spam filters may silently remove the comment. Publishes immediately and publicly; confirm target and text before executing.\",\n input: RedditPostRedditCommentInput,\n output: RedditPostRedditCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACtN,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EA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C,SAAS;CACxH,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,0CAA0C,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,oDAAoD,EAAE,OAAO,EACjE,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,kDAAkD,SAAS;CACjE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAMvE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,iDAAiD,SAAS;EAChE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -15,10 +15,10 @@ const RedditRetrievePostComments_PostDataSchema = zod.z.object({
15
15
  subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix.").nullable().optional(),
16
16
  created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable().optional(),
17
17
  num_comments: zod.z.number().int().describe("Total number of comments.").nullable().optional()
18
- }).describe("Optimized data attributes for a Reddit post (t3 kind).");
18
+ }).passthrough().describe("Optimized data attributes for a Reddit post (t3 kind).");
19
19
  const RedditRetrievePostComments_PostThingSchema = zod.z.object({
20
20
  data: RedditRetrievePostComments_PostDataSchema.nullable(),
21
- kind: zod.z.string().describe("Type identifier, always 't3' for posts.")
21
+ kind: zod.z.string().describe("Type identifier, always 't3' for posts.").nullable()
22
22
  }).passthrough().describe("Wrapped post object with kind and data.");
23
23
  const RedditRetrievePostComments_PostListingDataSchema = zod.z.object({
24
24
  dist: zod.z.number().int().describe("Number of items in this listing.").nullable().optional(),
@@ -30,7 +30,7 @@ const RedditRetrievePostComments_PostListingDataSchema = zod.z.object({
30
30
  }).passthrough().describe("Container object for the first listing containing the post.");
31
31
  const RedditRetrievePostComments_PostListingSchema = zod.z.object({
32
32
  data: RedditRetrievePostComments_PostListingDataSchema.nullable(),
33
- kind: zod.z.string().describe("Always 'Listing' for this object type.")
33
+ kind: zod.z.string().describe("Always 'Listing' for this object type.").nullable()
34
34
  }).passthrough().describe("Reddit API Listing object containing the post (first listing in response).");
35
35
  const RedditRetrievePostComments_CommentDataSchema = zod.z.object({
36
36
  id: zod.z.string().describe("Unique identifier of the comment in base36 format.").nullable().optional(),
@@ -45,10 +45,10 @@ const RedditRetrievePostComments_CommentDataSchema = zod.z.object({
45
45
  has_replies: zod.z.boolean().describe("Whether this comment has nested replies.").nullable().optional(),
46
46
  is_submitter: zod.z.boolean().describe("Whether the author is also the post submitter.").nullable().optional(),
47
47
  distinguished: zod.z.string().describe("Special status: null, 'moderator', 'admin', or 'special'.").nullable().optional()
48
- }).describe("Optimized data attributes for a Reddit comment (t1 kind).");
48
+ }).passthrough().describe("Optimized data attributes for a Reddit comment (t1 kind).");
49
49
  const RedditRetrievePostComments_CommentThingSchema = zod.z.object({
50
50
  data: RedditRetrievePostComments_CommentDataSchema.nullable(),
51
- kind: zod.z.string().describe("Type identifier, always 't1' for comments.")
51
+ kind: zod.z.string().describe("Type identifier, always 't1' for comments.").nullable()
52
52
  }).passthrough().describe("Wrapped comment object with kind and data.");
53
53
  const RedditRetrievePostComments_MoreDataSchema = zod.z.object({
54
54
  id: zod.z.string().describe("Identifier for this more object.").nullable().optional(),
@@ -60,7 +60,7 @@ const RedditRetrievePostComments_MoreDataSchema = zod.z.object({
60
60
  }).passthrough().describe("Data for a 'more' object that holds IDs of additional comments to load.");
61
61
  const RedditRetrievePostComments_MoreThingSchema = zod.z.object({
62
62
  data: RedditRetrievePostComments_MoreDataSchema.nullable(),
63
- kind: zod.z.string().describe("Type identifier, always 'more'.")
63
+ kind: zod.z.string().describe("Type identifier, always 'more'.").nullable()
64
64
  }).passthrough().describe("Wrapped 'more' object for loading additional comments.");
65
65
  const RedditRetrievePostComments_CommentListingDataSchema = zod.z.object({
66
66
  dist: zod.z.number().int().describe("Number of items in this listing.").nullable().optional(),
@@ -72,7 +72,7 @@ const RedditRetrievePostComments_CommentListingDataSchema = zod.z.object({
72
72
  }).passthrough().describe("Container object for the second listing containing comments.");
73
73
  const RedditRetrievePostComments_CommentListingSchema = zod.z.object({
74
74
  data: RedditRetrievePostComments_CommentListingDataSchema.nullable(),
75
- kind: zod.z.string().describe("Always 'Listing' for this object type.")
75
+ kind: zod.z.string().describe("Always 'Listing' for this object type.").nullable()
76
76
  }).passthrough().describe("Reddit API Listing object containing comments (second listing in response).");
77
77
  const RedditRetrievePostCommentsOutput = zod.z.object({
78
78
  post_listing: RedditRetrievePostComments_PostListingSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-post-comments.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-post-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrievePostCommentsInput: z.ZodTypeAny = z.object({\n article: z.string().describe(\"Base-36 ID of the Reddit post (e.g., 'q5u7q5'), typically found in the post's URL and not including the 't3_' prefix.\"),\n});\nconst RedditRetrievePostComments_PostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post (upvotes minus downvotes).\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments.\").nullable().optional(),\n}).describe(\"Optimized data attributes for a Reddit post (t3 kind).\");\nconst RedditRetrievePostComments_PostThingSchema: z.ZodTypeAny = z.object({\n data: RedditRetrievePostComments_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't3' for posts.\"),\n}).passthrough().describe(\"Wrapped post object with kind and data.\");\nconst RedditRetrievePostComments_PostListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(RedditRetrievePostComments_PostThingSchema).describe(\"Array containing the post object.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the first listing containing the post.\");\nconst RedditRetrievePostComments_PostListingSchema: z.ZodTypeAny = z.object({\n data: RedditRetrievePostComments_PostListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\"),\n}).passthrough().describe(\"Reddit API Listing object containing the post (first listing in response).\");\nconst RedditRetrievePostComments_CommentDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the comment in base36 format.\").nullable().optional(),\n body: z.string().describe(\"Raw text of the comment with markdown.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the comment (e.g., 't1_abc123').\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree (0 = top-level).\").nullable().optional(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes).\").nullable().optional(),\n author: z.string().describe(\"Username of the comment author, null if deleted.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment (t1_) or post (t3_).\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of creation in UTC epoch-seconds.\").nullable().optional(),\n has_replies: z.boolean().describe(\"Whether this comment has nested replies.\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the author is also the post submitter.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status: null, 'moderator', 'admin', or 'special'.\").nullable().optional(),\n}).describe(\"Optimized data attributes for a Reddit comment (t1 kind).\");\nconst RedditRetrievePostComments_CommentThingSchema: z.ZodTypeAny = z.object({\n data: RedditRetrievePostComments_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't1' for comments.\"),\n}).passthrough().describe(\"Wrapped comment object with kind and data.\");\nconst RedditRetrievePostComments_MoreDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier for this more object.\").nullable().optional(),\n name: z.string().describe(\"Fullname of this more object.\").nullable().optional(),\n count: z.number().int().describe(\"Number of additional comments available.\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree.\").nullable().optional(),\n children: z.array(z.string()).describe(\"Array of comment IDs that can be loaded using the morechildren endpoint.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment or post.\").nullable().optional(),\n}).passthrough().describe(\"Data for a 'more' object that holds IDs of additional comments to load.\");\nconst RedditRetrievePostComments_MoreThingSchema: z.ZodTypeAny = z.object({\n data: RedditRetrievePostComments_MoreDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 'more'.\"),\n}).passthrough().describe(\"Wrapped 'more' object for loading additional comments.\");\nconst RedditRetrievePostComments_CommentListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(z.union([RedditRetrievePostComments_CommentThingSchema, RedditRetrievePostComments_MoreThingSchema])).describe(\"Array of comment objects and 'more' placeholders.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the second listing containing comments.\");\nconst RedditRetrievePostComments_CommentListingSchema: z.ZodTypeAny = z.object({\n data: RedditRetrievePostComments_CommentListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\"),\n}).passthrough().describe(\"Reddit API Listing object containing comments (second listing in response).\");\nexport const RedditRetrievePostCommentsOutput: z.ZodTypeAny = z.object({\n post_listing: RedditRetrievePostComments_PostListingSchema.nullable(),\n comments_listing: RedditRetrievePostComments_CommentListingSchema.nullable(),\n}).passthrough().describe(\"Response containing two Listing objects from Reddit API.\\nThe first listing contains the submission/post object, and the second\\nlisting contains the top-level comments with nested replies.\");\n\nexport const redditRetrievePostComments = action(\"REDDIT_RETRIEVE_POST_COMMENTS\", {\n slug: \"reddit-retrieve-post-comments\",\n name: \"Retrieve Comments for a Post\",\n description: \"Retrieves all comments for a Reddit post given its base-36 article ID. Response is a two-element listings array: post metadata in `listings[0]`; comments in `listings[1].data.children` with text at each `[].data.body` and nested replies under each comment's `replies` field. Replies require recursive traversal to capture full discussion. Large, locked, or archived threads may return truncated trees or `more` placeholders rather than full results. Filter out comments where `body` is `[deleted]` or `[removed]`; use `parent_id` to reconstruct conversation flow. No time-filter parameter — compare `created_utc` against a UTC cutoff to filter by date.\",\n input: RedditRetrievePostCommentsInput,\n output: RedditRetrievePostCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACtJ,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDA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AAC"}
1
+ {"version":3,"file":"retrieve-post-comments.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-post-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditRetrievePostCommentsInput = z.object({\n article: z.string().describe(\"Base-36 ID of the Reddit post (e.g., 'q5u7q5'), typically found in the post's URL and not including the 't3_' prefix.\"),\n});\nconst RedditRetrievePostComments_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post (upvotes minus downvotes).\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit post (t3 kind).\");\nconst RedditRetrievePostComments_PostThingSchema = z.object({\n data: RedditRetrievePostComments_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't3' for posts.\").nullable(),\n}).passthrough().describe(\"Wrapped post object with kind and data.\");\nconst RedditRetrievePostComments_PostListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(RedditRetrievePostComments_PostThingSchema).describe(\"Array containing the post object.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the first listing containing the post.\");\nconst RedditRetrievePostComments_PostListingSchema = z.object({\n data: RedditRetrievePostComments_PostListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing the post (first listing in response).\");\nconst RedditRetrievePostComments_CommentDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the comment in base36 format.\").nullable().optional(),\n body: z.string().describe(\"Raw text of the comment with markdown.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the comment (e.g., 't1_abc123').\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree (0 = top-level).\").nullable().optional(),\n score: z.number().int().describe(\"Net score (upvotes minus downvotes).\").nullable().optional(),\n author: z.string().describe(\"Username of the comment author, null if deleted.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment (t1_) or post (t3_).\").nullable().optional(),\n permalink: z.string().describe(\"Permanent link to the comment.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of creation in UTC epoch-seconds.\").nullable().optional(),\n has_replies: z.boolean().describe(\"Whether this comment has nested replies.\").nullable().optional(),\n is_submitter: z.boolean().describe(\"Whether the author is also the post submitter.\").nullable().optional(),\n distinguished: z.string().describe(\"Special status: null, 'moderator', 'admin', or 'special'.\").nullable().optional(),\n}).passthrough().describe(\"Optimized data attributes for a Reddit comment (t1 kind).\");\nconst RedditRetrievePostComments_CommentThingSchema = z.object({\n data: RedditRetrievePostComments_CommentDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 't1' for comments.\").nullable(),\n}).passthrough().describe(\"Wrapped comment object with kind and data.\");\nconst RedditRetrievePostComments_MoreDataSchema = z.object({\n id: z.string().describe(\"Identifier for this more object.\").nullable().optional(),\n name: z.string().describe(\"Fullname of this more object.\").nullable().optional(),\n count: z.number().int().describe(\"Number of additional comments available.\").nullable().optional(),\n depth: z.number().int().describe(\"Depth level in the comment tree.\").nullable().optional(),\n children: z.array(z.string()).describe(\"Array of comment IDs that can be loaded using the morechildren endpoint.\").nullable().optional(),\n parent_id: z.string().describe(\"Fullname of the parent comment or post.\").nullable().optional(),\n}).passthrough().describe(\"Data for a 'more' object that holds IDs of additional comments to load.\");\nconst RedditRetrievePostComments_MoreThingSchema = z.object({\n data: RedditRetrievePostComments_MoreDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier, always 'more'.\").nullable(),\n}).passthrough().describe(\"Wrapped 'more' object for loading additional comments.\");\nconst RedditRetrievePostComments_CommentListingDataSchema = z.object({\n dist: z.number().int().describe(\"Number of items in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the listing that follows after this page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the listing that follows before this page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash for authentication purposes.\").nullable().optional(),\n children: z.array(z.union([RedditRetrievePostComments_CommentThingSchema, RedditRetrievePostComments_MoreThingSchema])).describe(\"Array of comment objects and 'more' placeholders.\"),\n geo_filter: z.string().describe(\"Geographic filter applied to the listing.\").nullable().optional(),\n}).passthrough().describe(\"Container object for the second listing containing comments.\");\nconst RedditRetrievePostComments_CommentListingSchema = z.object({\n data: RedditRetrievePostComments_CommentListingDataSchema.nullable(),\n kind: z.string().describe(\"Always 'Listing' for this object type.\").nullable(),\n}).passthrough().describe(\"Reddit API Listing object containing comments (second listing in response).\");\nexport const RedditRetrievePostCommentsOutput = z.object({\n post_listing: RedditRetrievePostComments_PostListingSchema.nullable(),\n comments_listing: RedditRetrievePostComments_CommentListingSchema.nullable(),\n}).passthrough().describe(\"Response containing two Listing objects from Reddit API.\\nThe first listing contains the submission/post object, and the second\\nlisting contains the top-level comments with nested replies.\");\n\nexport const redditRetrievePostComments = action(\"REDDIT_RETRIEVE_POST_COMMENTS\", {\n slug: \"reddit-retrieve-post-comments\",\n name: \"Retrieve Comments for a Post\",\n description: \"Retrieves all comments for a Reddit post given its base-36 article ID. Response is a two-element listings array: post metadata in `listings[0]`; comments in `listings[1].data.children` with text at each `[].data.body` and nested replies under each comment's `replies` field. Replies require recursive traversal to capture full discussion. Large, locked, or archived threads may return truncated trees or `more` placeholders rather than full results. Filter out comments where `body` is `[deleted]` or `[removed]`; use `parent_id` to reconstruct conversation flow. No time-filter parameter — compare `created_utc` against a UTC cutoff to filter by date.\",\n input: RedditRetrievePostCommentsInput,\n output: RedditRetrievePostCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACtJ,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAA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