@keystrokehq/reddit 0.1.0 → 0.1.2

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 (172) 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 +1 -1
  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 +1 -1
  11. package/dist/actions/create-reddit-post.mjs.map +1 -1
  12. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  13. package/dist/actions/delete-reddit-comment.d.cts +7 -3
  14. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  15. package/dist/actions/delete-reddit-comment.d.mts +7 -3
  16. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  17. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  18. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  19. package/dist/actions/delete-reddit-post.d.cts +7 -3
  20. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  21. package/dist/actions/delete-reddit-post.d.mts +7 -3
  22. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  23. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  24. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  25. package/dist/actions/edit-reddit-comment-or-post.d.cts +64 -3
  26. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  27. package/dist/actions/edit-reddit-comment-or-post.d.mts +64 -3
  28. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  29. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  30. package/dist/actions/get-controversial-posts.cjs +2 -2
  31. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  32. package/dist/actions/get-controversial-posts.d.cts +79 -3
  33. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  34. package/dist/actions/get-controversial-posts.d.mts +79 -3
  35. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  36. package/dist/actions/get-controversial-posts.mjs +2 -2
  37. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  38. package/dist/actions/get-me-prefs.cjs.map +1 -1
  39. package/dist/actions/get-me-prefs.d.cts +69 -3
  40. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  41. package/dist/actions/get-me-prefs.d.mts +69 -3
  42. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  43. package/dist/actions/get-me-prefs.mjs.map +1 -1
  44. package/dist/actions/get-r-top.cjs +2 -2
  45. package/dist/actions/get-r-top.cjs.map +1 -1
  46. package/dist/actions/get-r-top.d.cts +57 -3
  47. package/dist/actions/get-r-top.d.cts.map +1 -1
  48. package/dist/actions/get-r-top.d.mts +57 -3
  49. package/dist/actions/get-r-top.d.mts.map +1 -1
  50. package/dist/actions/get-r-top.mjs +2 -2
  51. package/dist/actions/get-r-top.mjs.map +1 -1
  52. package/dist/actions/get-random.cjs +14 -14
  53. package/dist/actions/get-random.cjs.map +1 -1
  54. package/dist/actions/get-random.d.cts +41 -3
  55. package/dist/actions/get-random.d.cts.map +1 -1
  56. package/dist/actions/get-random.d.mts +41 -3
  57. package/dist/actions/get-random.d.mts.map +1 -1
  58. package/dist/actions/get-random.mjs +14 -14
  59. package/dist/actions/get-random.mjs.map +1 -1
  60. package/dist/actions/get-reddit-user-about.cjs +8 -8
  61. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  62. package/dist/actions/get-reddit-user-about.d.cts +75 -3
  63. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  64. package/dist/actions/get-reddit-user-about.d.mts +75 -3
  65. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  66. package/dist/actions/get-reddit-user-about.mjs +8 -8
  67. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  68. package/dist/actions/get-scopes.cjs.map +1 -1
  69. package/dist/actions/get-scopes.d.cts +5 -3
  70. package/dist/actions/get-scopes.d.cts.map +1 -1
  71. package/dist/actions/get-scopes.d.mts +5 -3
  72. package/dist/actions/get-scopes.d.mts.map +1 -1
  73. package/dist/actions/get-scopes.mjs.map +1 -1
  74. package/dist/actions/get-subreddit-rules.cjs +5 -5
  75. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  76. package/dist/actions/get-subreddit-rules.d.cts +21 -3
  77. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  78. package/dist/actions/get-subreddit-rules.d.mts +21 -3
  79. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  80. package/dist/actions/get-subreddit-rules.mjs +5 -5
  81. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  82. package/dist/actions/get-subreddits-search.cjs +2 -2
  83. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  84. package/dist/actions/get-subreddits-search.d.cts +67 -3
  85. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  86. package/dist/actions/get-subreddits-search.d.mts +67 -3
  87. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  88. package/dist/actions/get-subreddits-search.mjs +2 -2
  89. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  90. package/dist/actions/get-user-flair.cjs +1 -1
  91. package/dist/actions/get-user-flair.cjs.map +1 -1
  92. package/dist/actions/get-user-flair.d.cts +21 -3
  93. package/dist/actions/get-user-flair.d.cts.map +1 -1
  94. package/dist/actions/get-user-flair.d.mts +21 -3
  95. package/dist/actions/get-user-flair.d.mts.map +1 -1
  96. package/dist/actions/get-user-flair.mjs +1 -1
  97. package/dist/actions/get-user-flair.mjs.map +1 -1
  98. package/dist/actions/get-username-available.cjs +2 -2
  99. package/dist/actions/get-username-available.cjs.map +1 -1
  100. package/dist/actions/get-username-available.d.cts +10 -3
  101. package/dist/actions/get-username-available.d.cts.map +1 -1
  102. package/dist/actions/get-username-available.d.mts +10 -3
  103. package/dist/actions/get-username-available.d.mts.map +1 -1
  104. package/dist/actions/get-username-available.mjs +2 -2
  105. package/dist/actions/get-username-available.mjs.map +1 -1
  106. package/dist/actions/get.cjs +14 -14
  107. package/dist/actions/get.cjs.map +1 -1
  108. package/dist/actions/get.d.cts +53 -3
  109. package/dist/actions/get.d.cts.map +1 -1
  110. package/dist/actions/get.d.mts +53 -3
  111. package/dist/actions/get.d.mts.map +1 -1
  112. package/dist/actions/get.mjs +14 -14
  113. package/dist/actions/get.mjs.map +1 -1
  114. package/dist/actions/list-subreddit-post-flairs.cjs +4 -4
  115. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  116. package/dist/actions/list-subreddit-post-flairs.d.cts +27 -3
  117. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  118. package/dist/actions/list-subreddit-post-flairs.d.mts +27 -3
  119. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  120. package/dist/actions/list-subreddit-post-flairs.mjs +4 -4
  121. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  122. package/dist/actions/post-reddit-comment.cjs +21 -21
  123. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  124. package/dist/actions/post-reddit-comment.d.cts +54 -3
  125. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  126. package/dist/actions/post-reddit-comment.d.mts +54 -3
  127. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  128. package/dist/actions/post-reddit-comment.mjs +21 -21
  129. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  130. package/dist/actions/retrieve-post-comments.cjs +5 -5
  131. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  132. package/dist/actions/retrieve-post-comments.d.cts +72 -3
  133. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  134. package/dist/actions/retrieve-post-comments.d.mts +72 -3
  135. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  136. package/dist/actions/retrieve-post-comments.mjs +5 -5
  137. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  138. package/dist/actions/retrieve-reddit-post.cjs +17 -17
  139. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  140. package/dist/actions/retrieve-reddit-post.d.cts +47 -3
  141. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  142. package/dist/actions/retrieve-reddit-post.d.mts +47 -3
  143. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  144. package/dist/actions/retrieve-reddit-post.mjs +17 -17
  145. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  146. package/dist/actions/retrieve-specific-comment.cjs +5 -5
  147. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  148. package/dist/actions/retrieve-specific-comment.d.cts +47 -3
  149. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  150. package/dist/actions/retrieve-specific-comment.d.mts +47 -3
  151. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  152. package/dist/actions/retrieve-specific-comment.mjs +5 -5
  153. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  154. package/dist/actions/search-across-subreddits.cjs +14 -14
  155. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  156. package/dist/actions/search-across-subreddits.d.cts +43 -3
  157. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  158. package/dist/actions/search-across-subreddits.d.mts +43 -3
  159. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  160. package/dist/actions/search-across-subreddits.mjs +14 -14
  161. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  162. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  163. package/dist/actions/toggle-inbox-replies.d.cts +9 -3
  164. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  165. package/dist/actions/toggle-inbox-replies.d.mts +9 -3
  166. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  167. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  168. package/dist/execute.cjs +1 -1
  169. package/dist/execute.cjs.map +1 -1
  170. package/dist/execute.mjs +1 -1
  171. package/dist/execute.mjs.map +1 -1
  172. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-flair.d.mts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAKtC;AAAA,cAMW,wBAAA,EAA0B,CAAA,CAAE,UAI2C;AAAA,cAEvE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-user-flair.d.mts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
@@ -8,7 +8,7 @@ const RedditGetUserFlairInput = z.object({
8
8
  subreddit: z.string().describe("Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.")
9
9
  });
10
10
  const RedditGetUserFlair_UserFlairEntrySchema = z.object({
11
- user: z.string().describe("Username of the Reddit user who has been assigned this flair."),
11
+ user: z.string().describe("Username of the Reddit user who has been assigned this flair.").nullable(),
12
12
  flair_text: z.string().describe("The text content displayed as the user's flair.").nullable().optional(),
13
13
  flair_css_class: z.string().describe("CSS class name applied to the user's flair for visual styling.").nullable().optional()
14
14
  }).describe("Represents a single user flair assignment in a subreddit.");
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-flair.mjs","names":[],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"User ID to use as the anchor for fetching the next page of results. Use the 'next' value from a previous response.\").optional(),\n limit: z.number().int().describe(\"Maximum number of user flair entries to return per page. Reddit default is 25, maximum is 1000.\").optional(),\n before: z.string().describe(\"User ID to use as the anchor for fetching the previous page of results. Use the 'prev' value from a previous response.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.\"),\n});\nconst RedditGetUserFlair_UserFlairEntrySchema: z.ZodTypeAny = z.object({\n user: z.string().describe(\"Username of the Reddit user who has been assigned this flair.\"),\n flair_text: z.string().describe(\"The text content displayed as the user's flair.\").nullable().optional(),\n flair_css_class: z.string().describe(\"CSS class name applied to the user's flair for visual styling.\").nullable().optional(),\n}).describe(\"Represents a single user flair assignment in a subreddit.\");\nexport const RedditGetUserFlairOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.\").nullable().optional(),\n prev: z.string().describe(\"User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.\").nullable().optional(),\n users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe(\"Array of user flair assignments for the subreddit.\"),\n}).describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair = action(\"REDDIT_GET_USER_FLAIR\", {\n slug: \"reddit-get-user-flair\",\n name: \"Get user flair\",\n description: \"Fetches the list of user flair assignments for a given subreddit. Returns paginated results with user flair details. Returned flair_id values are scoped to the specific subreddit and must not be reused across different subreddits.\",\n input: RedditGetUserFlairInput,\n output: RedditGetUserFlairOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAOvE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvK,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;CACvH,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-flair.mjs","names":[],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput = z.object({\n after: z.string().describe(\"User ID to use as the anchor for fetching the next page of results. Use the 'next' value from a previous response.\").optional(),\n limit: z.number().int().describe(\"Maximum number of user flair entries to return per page. Reddit default is 25, maximum is 1000.\").optional(),\n before: z.string().describe(\"User ID to use as the anchor for fetching the previous page of results. Use the 'prev' value from a previous response.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.\"),\n});\nconst RedditGetUserFlair_UserFlairEntrySchema = z.object({\n user: z.string().describe(\"Username of the Reddit user who has been assigned this flair.\").nullable(),\n flair_text: z.string().describe(\"The text content displayed as the user's flair.\").nullable().optional(),\n flair_css_class: z.string().describe(\"CSS class name applied to the user's flair for visual styling.\").nullable().optional(),\n}).describe(\"Represents a single user flair assignment in a subreddit.\");\nexport const RedditGetUserFlairOutput = z.object({\n next: z.string().describe(\"User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.\").nullable().optional(),\n prev: z.string().describe(\"User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.\").nullable().optional(),\n users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe(\"Array of user flair assignments for the subreddit.\"),\n}).describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair = action(\"REDDIT_GET_USER_FLAIR\", {\n slug: \"reddit-get-user-flair\",\n name: \"Get user flair\",\n description: \"Fetches the list of user flair assignments for a given subreddit. Returns paginated results with user flair details. Returned flair_id values are scoped to the specific subreddit and must not be reused across different subreddits.\",\n input: RedditGetUserFlairInput,\n output: RedditGetUserFlairOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAOvE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvK,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;CACvH,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}
@@ -3,8 +3,8 @@ let zod = require("zod");
3
3
  //#region src/actions/get-username-available.ts
4
4
  const RedditGetUsernameAvailableInput = zod.z.object({ user: zod.z.string().describe("The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.") });
5
5
  const RedditGetUsernameAvailableOutput = zod.z.object({
6
- username: zod.z.string().describe("The username that was checked."),
7
- available: zod.z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.")
6
+ username: zod.z.string().describe("The username that was checked.").nullable(),
7
+ available: zod.z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.").nullable()
8
8
  });
9
9
  const redditGetUsernameAvailable = require_action.action("REDDIT_GET_USERNAME_AVAILABLE", {
10
10
  slug: "reddit-get-username-available",
@@ -1 +1 @@
1
- {"version":3,"file":"get-username-available.cjs","names":["z","action"],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput: z.ZodTypeAny = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username that was checked.\"),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\"),\n});\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAAC;AACD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC9D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G;AAC7I,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-username-available.cjs","names":["z","action"],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput = z.object({\n username: z.string().describe(\"The username that was checked.\").nullable(),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\").nullable(),\n});\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AACxJ,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-username-available.d.ts
4
- declare const RedditGetUsernameAvailableInput: z.ZodTypeAny;
5
- declare const RedditGetUsernameAvailableOutput: z.ZodTypeAny;
6
- declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetUsernameAvailableInput: z.ZodObject<{
5
+ user: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
8
+ username: z.ZodNullable<z.ZodString>;
9
+ available: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ user: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { redditGetUsernameAvailable };
9
16
  //# sourceMappingURL=get-username-available.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-username-available.d.cts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAG/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-username-available.d.cts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-username-available.d.ts
4
- declare const RedditGetUsernameAvailableInput: z.ZodTypeAny;
5
- declare const RedditGetUsernameAvailableOutput: z.ZodTypeAny;
6
- declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetUsernameAvailableInput: z.ZodObject<{
5
+ user: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
8
+ username: z.ZodNullable<z.ZodString>;
9
+ available: z.ZodNullable<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ user: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { redditGetUsernameAvailable };
9
16
  //# sourceMappingURL=get-username-available.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-username-available.d.mts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAG/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-username-available.d.mts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -6,8 +6,8 @@ const redditGetUsernameAvailable = action("REDDIT_GET_USERNAME_AVAILABLE", {
6
6
  description: "Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.",
7
7
  input: z.object({ user: z.string().describe("The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.") }),
8
8
  output: z.object({
9
- username: z.string().describe("The username that was checked."),
10
- available: z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.")
9
+ username: z.string().describe("The username that was checked.").nullable(),
10
+ available: z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.").nullable()
11
11
  })
12
12
  });
13
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-username-available.mjs","names":[],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput: z.ZodTypeAny = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username that was checked.\"),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\"),\n});\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2D,EAAE,OAAO,EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAUS;CACP,QAV4D,EAAE,OAAO;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC9D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G;CAC7I,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-username-available.mjs","names":[],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput = z.object({\n username: z.string().describe(\"The username that was checked.\").nullable(),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\").nullable(),\n});\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAUS;CACP,QAV8C,EAAE,OAAO;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACxJ,CAOU;AACV,CAAC"}
@@ -11,31 +11,31 @@ const RedditGetInput = zod.z.object({
11
11
  time_filter: zod.z.string().describe("Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.").optional()
12
12
  }).describe("Request model for getting a listing of Reddit posts sorted by a specific method.");
13
13
  const RedditGet_PostDataSchema = zod.z.object({
14
- id: zod.z.string().describe("Unique identifier of the post in base36 format."),
15
- ups: zod.z.number().int().describe("Number of upvotes received."),
16
- url: zod.z.string().describe("URL the post links to, or the permalink if a self post."),
17
- name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
18
- score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
19
- title: zod.z.string().describe("The title of the post."),
14
+ id: zod.z.string().describe("Unique identifier of the post in base36 format.").nullable(),
15
+ ups: zod.z.number().int().describe("Number of upvotes received.").nullable(),
16
+ url: zod.z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
17
+ name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
18
+ score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
19
+ title: zod.z.string().describe("The title of the post.").nullable(),
20
20
  author: zod.z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
21
21
  locked: zod.z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
22
- is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
23
- over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
22
+ is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
23
+ over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
24
24
  spoiler: zod.z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
25
25
  is_video: zod.z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
26
26
  selftext: zod.z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
27
27
  stickied: zod.z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
28
- permalink: zod.z.string().describe("Relative URL path to the permanent link of the post."),
29
- subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix."),
28
+ permalink: zod.z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
29
+ subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
30
30
  thumbnail: zod.z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
31
- created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
32
- num_comments: zod.z.number().int().describe("Total number of comments on the post."),
31
+ created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
32
+ num_comments: zod.z.number().int().describe("Total number of comments on the post.").nullable(),
33
33
  upvote_ratio: zod.z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
34
34
  subreddit_name_prefixed: zod.z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
35
35
  }).describe("The actual post data object containing essential post fields.");
36
36
  const RedditGet_PostChildSchema = zod.z.object({
37
37
  data: RedditGet_PostDataSchema.nullable(),
38
- kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
38
+ kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
39
39
  }).describe("Wrapper object for each post in the children array.");
40
40
  const RedditGet_ListingDataSchema = zod.z.object({
41
41
  dist: zod.z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
@@ -46,7 +46,7 @@ const RedditGet_ListingDataSchema = zod.z.object({
46
46
  }).describe("Container object holding the listing response data.");
47
47
  const RedditGetOutput = zod.z.object({
48
48
  data: RedditGet_ListingDataSchema.nullable(),
49
- kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
49
+ kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
50
50
  }).describe("Response from getting a listing of Reddit posts.");
51
51
  const redditGet = require_action.action("REDDIT_GET", {
52
52
  slug: "reddit-get",
@@ -1 +1 @@
1
- {"version":3,"file":"get.cjs","names":["z","action"],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput: z.ZodTypeAny = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\"),\n ups: z.number().int().describe(\"Number of upvotes received.\"),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\"),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\"),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\"),\n title: z.string().describe(\"The title of the post.\"),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\"),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\"),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\"),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\"),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\"),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\"),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\"),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput: z.ZodTypeAny = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,C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,SAAS;CACvG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4BAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAM,yBAAyB,SAAS;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAC/F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,wBAAwB;AAChF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kBAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,4BAA4B,SAAS;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;AAC7G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,YAAYC,eAAAA,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get.cjs","names":["z","action"],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;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- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetInput: z.ZodObject<{
5
+ show: z.ZodOptional<z.ZodString>;
6
+ sort: z.ZodString;
7
+ after: z.ZodOptional<z.ZodString>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ before: z.ZodOptional<z.ZodString>;
11
+ time_filter: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const RedditGetOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ children: z.ZodArray<z.ZodObject<{
20
+ data: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ ups: z.ZodNullable<z.ZodNumber>;
23
+ url: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ is_self: z.ZodNullable<z.ZodBoolean>;
30
+ over_18: z.ZodNullable<z.ZodBoolean>;
31
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
+ permalink: z.ZodNullable<z.ZodString>;
36
+ subreddit: z.ZodNullable<z.ZodString>;
37
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_utc: z.ZodNullable<z.ZodNumber>;
39
+ num_comments: z.ZodNullable<z.ZodNumber>;
40
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>;
43
+ kind: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>;
46
+ kind: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$strip>;
48
+ declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ sort: string;
50
+ show?: string | undefined;
51
+ after?: string | undefined;
52
+ count?: number | undefined;
53
+ limit?: number | undefined;
54
+ before?: string | undefined;
55
+ time_filter?: string | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { redditGet };
9
59
  //# sourceMappingURL=get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UAQgE;AAAA,cAmClF,eAAA,EAAiB,CAAA,CAAE,UAG+B;AAAA,cAElD,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get.d.cts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get.d.ts
4
- declare const RedditGetInput: z.ZodTypeAny;
5
- declare const RedditGetOutput: z.ZodTypeAny;
6
- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditGetInput: z.ZodObject<{
5
+ show: z.ZodOptional<z.ZodString>;
6
+ sort: z.ZodString;
7
+ after: z.ZodOptional<z.ZodString>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ before: z.ZodOptional<z.ZodString>;
11
+ time_filter: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const RedditGetOutput: z.ZodObject<{
14
+ data: z.ZodNullable<z.ZodObject<{
15
+ dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ children: z.ZodArray<z.ZodObject<{
20
+ data: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ ups: z.ZodNullable<z.ZodNumber>;
23
+ url: z.ZodNullable<z.ZodString>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ score: z.ZodNullable<z.ZodNumber>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ is_self: z.ZodNullable<z.ZodBoolean>;
30
+ over_18: z.ZodNullable<z.ZodBoolean>;
31
+ spoiler: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32
+ is_video: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ selftext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ stickied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
+ permalink: z.ZodNullable<z.ZodString>;
36
+ subreddit: z.ZodNullable<z.ZodString>;
37
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_utc: z.ZodNullable<z.ZodNumber>;
39
+ num_comments: z.ZodNullable<z.ZodNumber>;
40
+ upvote_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ subreddit_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>;
43
+ kind: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>;
46
+ kind: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$strip>;
48
+ declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ sort: string;
50
+ show?: string | undefined;
51
+ after?: string | undefined;
52
+ count?: number | undefined;
53
+ limit?: number | undefined;
54
+ before?: string | undefined;
55
+ time_filter?: string | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { redditGet };
9
59
  //# sourceMappingURL=get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UAQgE;AAAA,cAmClF,eAAA,EAAiB,CAAA,CAAE,UAG+B;AAAA,cAElD,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get.d.mts","names":[],"sources":["../../src/actions/get.ts"],"mappings":";;;cAIa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cA2Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKf,SAAA,gCAAS,wBAAA"}
@@ -11,31 +11,31 @@ const RedditGetInput = z.object({
11
11
  time_filter: z.string().describe("Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.").optional()
12
12
  }).describe("Request model for getting a listing of Reddit posts sorted by a specific method.");
13
13
  const RedditGet_PostDataSchema = z.object({
14
- id: z.string().describe("Unique identifier of the post in base36 format."),
15
- ups: z.number().int().describe("Number of upvotes received."),
16
- url: z.string().describe("URL the post links to, or the permalink if a self post."),
17
- name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
18
- score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
19
- title: z.string().describe("The title of the post."),
14
+ id: z.string().describe("Unique identifier of the post in base36 format.").nullable(),
15
+ ups: z.number().int().describe("Number of upvotes received.").nullable(),
16
+ url: z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
17
+ name: z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
18
+ score: z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
19
+ title: z.string().describe("The title of the post.").nullable(),
20
20
  author: z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
21
21
  locked: z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
22
- is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
23
- over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
22
+ is_self: z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
23
+ over_18: z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
24
24
  spoiler: z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
25
25
  is_video: z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
26
26
  selftext: z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
27
27
  stickied: z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
28
- permalink: z.string().describe("Relative URL path to the permanent link of the post."),
29
- subreddit: z.string().describe("Name of the subreddit without the /r/ prefix."),
28
+ permalink: z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
29
+ subreddit: z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
30
30
  thumbnail: z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
31
- created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
32
- num_comments: z.number().int().describe("Total number of comments on the post."),
31
+ created_utc: z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
32
+ num_comments: z.number().int().describe("Total number of comments on the post.").nullable(),
33
33
  upvote_ratio: z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
34
34
  subreddit_name_prefixed: z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
35
35
  }).describe("The actual post data object containing essential post fields.");
36
36
  const RedditGet_PostChildSchema = z.object({
37
37
  data: RedditGet_PostDataSchema.nullable(),
38
- kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
38
+ kind: z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
39
39
  }).describe("Wrapper object for each post in the children array.");
40
40
  const RedditGet_ListingDataSchema = z.object({
41
41
  dist: z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
@@ -51,7 +51,7 @@ const redditGet = action("REDDIT_GET", {
51
51
  input: RedditGetInput,
52
52
  output: z.object({
53
53
  data: RedditGet_ListingDataSchema.nullable(),
54
- kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
54
+ kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
55
55
  }).describe("Response from getting a listing of Reddit posts.")
56
56
  });
57
57
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get.mjs","names":[],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput: z.ZodTypeAny = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\"),\n ups: z.number().int().describe(\"Number of upvotes received.\"),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\"),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\"),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\"),\n title: z.string().describe(\"The title of the post.\"),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\"),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\"),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\"),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\"),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\"),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\"),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema: z.ZodTypeAny = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\"),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput: z.ZodTypeAny = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\"),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,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,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,wBAAwB;AAChF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAMjE,MAAa,YAAY,OAAO,cAAc;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,4BAA4B,SAAS;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC7G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get.mjs","names":[],"sources":["../../src/actions/get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2BAA2B,EAAE,OAAO;CACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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AC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -4,20 +4,20 @@ let zod = require("zod");
4
4
  const RedditListSubredditPostFlairsInput = zod.z.object({ subreddit: zod.z.string().describe("The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.") });
5
5
  const RedditListSubredditPostFlairs_FlairRichtextElementSchema = zod.z.object({
6
6
  a: zod.z.string().describe("Emoji shortcode for 'emoji' type elements.").nullable().optional(),
7
- e: zod.z.string().describe("Element type (e.g., 'text', 'emoji')."),
7
+ e: zod.z.string().describe("Element type (e.g., 'text', 'emoji').").nullable(),
8
8
  t: zod.z.string().describe("Text content for 'text' type elements.").nullable().optional(),
9
9
  u: zod.z.string().describe("URL for emoji image.").nullable().optional()
10
10
  }).passthrough().describe("Element in a richtext flair array.");
11
11
  const RedditListSubredditPostFlairs_FlairTemplateSchema = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier for the flair template (same as flair_template_id)."),
13
- text: zod.z.string().describe("Display text content of the flair."),
12
+ id: zod.z.string().describe("Unique identifier for the flair template (same as flair_template_id).").nullable(),
13
+ text: zod.z.string().describe("Display text content of the flair.").nullable(),
14
14
  type: zod.z.string().describe("Type of the flair template (e.g., 'text', 'richtext').").nullable().optional(),
15
15
  mod_only: zod.z.boolean().describe("Whether this flair is restricted to moderators only.").nullable().optional(),
16
16
  richtext: zod.z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe("Rich text formatting information for the flair, containing emoji and text elements.").nullable().optional(),
17
17
  css_class: zod.z.string().describe("CSS class name applied to the flair for styling.").nullable().optional(),
18
18
  max_emojis: zod.z.number().int().describe("Maximum number of emojis allowed in the flair text.").nullable().optional(),
19
19
  text_color: zod.z.string().describe("Color of the flair text (e.g., 'dark', 'light').").nullable().optional(),
20
- text_editable: zod.z.boolean().describe("Whether users can edit the flair text when applying it to their post."),
20
+ text_editable: zod.z.boolean().describe("Whether users can edit the flair text when applying it to their post.").nullable(),
21
21
  background_color: zod.z.string().describe("Background color of the flair (hex color code or named color).").nullable().optional(),
22
22
  allowable_content: zod.z.string().describe("Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').").nullable().optional(),
23
23
  flair_template_id: zod.z.string().describe("Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput: z.ZodTypeAny = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema: z.ZodTypeAny = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\"),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\"),\n text: z.string().describe(\"Display text content of the flair.\"),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\"),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput: z.ZodTypeAny = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC9D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SA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E;AACpF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.cjs","names":["z","action"],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditListSubredditPostFlairsInput = z.object({\n subreddit: z.string().describe(\"The name of the subreddit (without 'r/' prefix) for which to retrieve available post/link flairs.\"),\n});\nconst RedditListSubredditPostFlairs_FlairRichtextElementSchema = z.object({\n a: z.string().describe(\"Emoji shortcode for 'emoji' type elements.\").nullable().optional(),\n e: z.string().describe(\"Element type (e.g., 'text', 'emoji').\").nullable(),\n t: z.string().describe(\"Text content for 'text' type elements.\").nullable().optional(),\n u: z.string().describe(\"URL for emoji image.\").nullable().optional(),\n}).passthrough().describe(\"Element in a richtext flair array.\");\nconst RedditListSubredditPostFlairs_FlairTemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the flair template (same as flair_template_id).\").nullable(),\n text: z.string().describe(\"Display text content of the flair.\").nullable(),\n type: z.string().describe(\"Type of the flair template (e.g., 'text', 'richtext').\").nullable().optional(),\n mod_only: z.boolean().describe(\"Whether this flair is restricted to moderators only.\").nullable().optional(),\n richtext: z.array(RedditListSubredditPostFlairs_FlairRichtextElementSchema).describe(\"Rich text formatting information for the flair, containing emoji and text elements.\").nullable().optional(),\n css_class: z.string().describe(\"CSS class name applied to the flair for styling.\").nullable().optional(),\n max_emojis: z.number().int().describe(\"Maximum number of emojis allowed in the flair text.\").nullable().optional(),\n text_color: z.string().describe(\"Color of the flair text (e.g., 'dark', 'light').\").nullable().optional(),\n text_editable: z.boolean().describe(\"Whether users can edit the flair text when applying it to their post.\").nullable(),\n background_color: z.string().describe(\"Background color of the flair (hex color code or named color).\").nullable().optional(),\n allowable_content: z.string().describe(\"Types of content allowed in the flair (e.g., 'all', 'emoji', 'text').\").nullable().optional(),\n flair_template_id: z.string().describe(\"Template identifier used when submitting posts with flair. Pass this value as 'flair_id' parameter when creating posts. If not provided, use the 'id' field instead.\").nullable().optional(),\n}).describe(\"Represents a single link/post flair template available in a subreddit.\");\nexport const RedditListSubredditPostFlairsOutput = z.object({\n flairs: z.array(RedditListSubredditPostFlairs_FlairTemplateSchema).describe(\"Array of flair templates available for posts/links in the subreddit.\"),\n}).describe(\"Response containing the list of available post/link flair templates for a subreddit.\");\n\nexport const redditListSubredditPostFlairs = action(\"REDDIT_LIST_SUBREDDIT_POST_FLAIRS\", {\n slug: \"reddit-list-subreddit-post-flairs\",\n name: \"List subreddit post flairs\",\n description: \"List available link/post flairs for a subreddit (including flair_template_id) so posts can satisfy flair-required validation. Use when you need to discover valid flair IDs before creating a post in a subreddit that requires flair. Note: Reddit may return empty or deny access if the authenticated user cannot set link flair and is not a moderator.\",\n input: RedditListSubredditPostFlairsInput,\n output: RedditListSubredditPostFlairsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,EACpI,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CA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S,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sEAAsE,EACpJ,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-subreddit-post-flairs.d.ts
4
- declare const RedditListSubredditPostFlairsInput: z.ZodTypeAny;
5
- declare const RedditListSubredditPostFlairsOutput: z.ZodTypeAny;
6
- declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RedditListSubredditPostFlairsInput: z.ZodObject<{
5
+ subreddit: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const RedditListSubredditPostFlairsOutput: z.ZodObject<{
8
+ flairs: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ text: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ mod_only: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ richtext: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ e: z.ZodNullable<z.ZodString>;
16
+ t: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ u: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ max_emojis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ text_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ text_editable: z.ZodNullable<z.ZodBoolean>;
23
+ background_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ allowable_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ flair_template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const redditListSubredditPostFlairs: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ subreddit: string;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { redditListSubredditPostFlairs };
9
33
  //# sourceMappingURL=list-subreddit-post-flairs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAqBW,mCAAA,EAAqC,CAAA,CAAE,UAE+C;AAAA,cAEtF,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-subreddit-post-flairs.d.cts","names":[],"sources":["../../src/actions/list-subreddit-post-flairs.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAuBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}