@keystrokehq/reddit 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-reddit-post.cjs +1 -0
  4. package/dist/actions/create-reddit-post.cjs.map +1 -1
  5. package/dist/actions/create-reddit-post.d.cts +3 -20
  6. package/dist/actions/create-reddit-post.d.cts.map +1 -1
  7. package/dist/actions/create-reddit-post.d.mts +3 -20
  8. package/dist/actions/create-reddit-post.d.mts.map +1 -1
  9. package/dist/actions/create-reddit-post.mjs +1 -0
  10. package/dist/actions/create-reddit-post.mjs.map +1 -1
  11. package/dist/actions/delete-reddit-comment.cjs +1 -0
  12. package/dist/actions/delete-reddit-comment.cjs.map +1 -1
  13. package/dist/actions/delete-reddit-comment.d.cts +3 -15
  14. package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
  15. package/dist/actions/delete-reddit-comment.d.mts +3 -15
  16. package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
  17. package/dist/actions/delete-reddit-comment.mjs +1 -0
  18. package/dist/actions/delete-reddit-comment.mjs.map +1 -1
  19. package/dist/actions/delete-reddit-post.cjs +1 -0
  20. package/dist/actions/delete-reddit-post.cjs.map +1 -1
  21. package/dist/actions/delete-reddit-post.d.cts +3 -15
  22. package/dist/actions/delete-reddit-post.d.cts.map +1 -1
  23. package/dist/actions/delete-reddit-post.d.mts +3 -15
  24. package/dist/actions/delete-reddit-post.d.mts.map +1 -1
  25. package/dist/actions/delete-reddit-post.mjs +1 -0
  26. package/dist/actions/delete-reddit-post.mjs.map +1 -1
  27. package/dist/actions/edit-reddit-comment-or-post.cjs +1 -0
  28. package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
  29. package/dist/actions/edit-reddit-comment-or-post.d.cts +3 -16
  30. package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
  31. package/dist/actions/edit-reddit-comment-or-post.d.mts +3 -16
  32. package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
  33. package/dist/actions/edit-reddit-comment-or-post.mjs +1 -0
  34. package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
  35. package/dist/actions/get-controversial-posts.cjs +1 -0
  36. package/dist/actions/get-controversial-posts.cjs.map +1 -1
  37. package/dist/actions/get-controversial-posts.d.cts +3 -18
  38. package/dist/actions/get-controversial-posts.d.cts.map +1 -1
  39. package/dist/actions/get-controversial-posts.d.mts +3 -18
  40. package/dist/actions/get-controversial-posts.d.mts.map +1 -1
  41. package/dist/actions/get-controversial-posts.mjs +1 -0
  42. package/dist/actions/get-controversial-posts.mjs.map +1 -1
  43. package/dist/actions/get-me-prefs.cjs +1 -0
  44. package/dist/actions/get-me-prefs.cjs.map +1 -1
  45. package/dist/actions/get-me-prefs.d.cts +3 -15
  46. package/dist/actions/get-me-prefs.d.cts.map +1 -1
  47. package/dist/actions/get-me-prefs.d.mts +3 -15
  48. package/dist/actions/get-me-prefs.d.mts.map +1 -1
  49. package/dist/actions/get-me-prefs.mjs +1 -0
  50. package/dist/actions/get-me-prefs.mjs.map +1 -1
  51. package/dist/actions/get-r-top.cjs +1 -0
  52. package/dist/actions/get-r-top.cjs.map +1 -1
  53. package/dist/actions/get-r-top.d.cts +3 -22
  54. package/dist/actions/get-r-top.d.cts.map +1 -1
  55. package/dist/actions/get-r-top.d.mts +3 -22
  56. package/dist/actions/get-r-top.d.mts.map +1 -1
  57. package/dist/actions/get-r-top.mjs +1 -0
  58. package/dist/actions/get-r-top.mjs.map +1 -1
  59. package/dist/actions/get-random.cjs +1 -0
  60. package/dist/actions/get-random.cjs.map +1 -1
  61. package/dist/actions/get-random.d.cts +3 -15
  62. package/dist/actions/get-random.d.cts.map +1 -1
  63. package/dist/actions/get-random.d.mts +3 -15
  64. package/dist/actions/get-random.d.mts.map +1 -1
  65. package/dist/actions/get-random.mjs +1 -0
  66. package/dist/actions/get-random.mjs.map +1 -1
  67. package/dist/actions/get-reddit-user-about.cjs +1 -0
  68. package/dist/actions/get-reddit-user-about.cjs.map +1 -1
  69. package/dist/actions/get-reddit-user-about.d.cts +3 -15
  70. package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
  71. package/dist/actions/get-reddit-user-about.d.mts +3 -15
  72. package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
  73. package/dist/actions/get-reddit-user-about.mjs +1 -0
  74. package/dist/actions/get-reddit-user-about.mjs.map +1 -1
  75. package/dist/actions/get-scopes.cjs +1 -0
  76. package/dist/actions/get-scopes.cjs.map +1 -1
  77. package/dist/actions/get-scopes.d.cts +3 -13
  78. package/dist/actions/get-scopes.d.cts.map +1 -1
  79. package/dist/actions/get-scopes.d.mts +3 -13
  80. package/dist/actions/get-scopes.d.mts.map +1 -1
  81. package/dist/actions/get-scopes.mjs +1 -0
  82. package/dist/actions/get-scopes.mjs.map +1 -1
  83. package/dist/actions/get-subreddit-rules.cjs +1 -0
  84. package/dist/actions/get-subreddit-rules.cjs.map +1 -1
  85. package/dist/actions/get-subreddit-rules.d.cts +3 -16
  86. package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
  87. package/dist/actions/get-subreddit-rules.d.mts +3 -16
  88. package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
  89. package/dist/actions/get-subreddit-rules.mjs +1 -0
  90. package/dist/actions/get-subreddit-rules.mjs.map +1 -1
  91. package/dist/actions/get-subreddits-search.cjs +1 -0
  92. package/dist/actions/get-subreddits-search.cjs.map +1 -1
  93. package/dist/actions/get-subreddits-search.d.cts +3 -23
  94. package/dist/actions/get-subreddits-search.d.cts.map +1 -1
  95. package/dist/actions/get-subreddits-search.d.mts +3 -23
  96. package/dist/actions/get-subreddits-search.d.mts.map +1 -1
  97. package/dist/actions/get-subreddits-search.mjs +1 -0
  98. package/dist/actions/get-subreddits-search.mjs.map +1 -1
  99. package/dist/actions/get-user-flair.cjs +1 -0
  100. package/dist/actions/get-user-flair.cjs.map +1 -1
  101. package/dist/actions/get-user-flair.d.cts +3 -18
  102. package/dist/actions/get-user-flair.d.cts.map +1 -1
  103. package/dist/actions/get-user-flair.d.mts +3 -18
  104. package/dist/actions/get-user-flair.d.mts.map +1 -1
  105. package/dist/actions/get-user-flair.mjs +1 -0
  106. package/dist/actions/get-user-flair.mjs.map +1 -1
  107. package/dist/actions/get-username-available.cjs +1 -0
  108. package/dist/actions/get-username-available.cjs.map +1 -1
  109. package/dist/actions/get-username-available.d.cts +3 -15
  110. package/dist/actions/get-username-available.d.cts.map +1 -1
  111. package/dist/actions/get-username-available.d.mts +3 -15
  112. package/dist/actions/get-username-available.d.mts.map +1 -1
  113. package/dist/actions/get-username-available.mjs +1 -0
  114. package/dist/actions/get-username-available.mjs.map +1 -1
  115. package/dist/actions/get.cjs +1 -0
  116. package/dist/actions/get.cjs.map +1 -1
  117. package/dist/actions/get.d.cts +3 -21
  118. package/dist/actions/get.d.cts.map +1 -1
  119. package/dist/actions/get.d.mts +3 -21
  120. package/dist/actions/get.d.mts.map +1 -1
  121. package/dist/actions/get.mjs +1 -0
  122. package/dist/actions/get.mjs.map +1 -1
  123. package/dist/actions/list-subreddit-post-flairs.cjs +1 -0
  124. package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
  125. package/dist/actions/list-subreddit-post-flairs.d.cts +3 -15
  126. package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
  127. package/dist/actions/list-subreddit-post-flairs.d.mts +3 -15
  128. package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
  129. package/dist/actions/list-subreddit-post-flairs.mjs +1 -0
  130. package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
  131. package/dist/actions/post-reddit-comment.cjs +1 -0
  132. package/dist/actions/post-reddit-comment.cjs.map +1 -1
  133. package/dist/actions/post-reddit-comment.d.cts +3 -16
  134. package/dist/actions/post-reddit-comment.d.cts.map +1 -1
  135. package/dist/actions/post-reddit-comment.d.mts +3 -16
  136. package/dist/actions/post-reddit-comment.d.mts.map +1 -1
  137. package/dist/actions/post-reddit-comment.mjs +1 -0
  138. package/dist/actions/post-reddit-comment.mjs.map +1 -1
  139. package/dist/actions/retrieve-post-comments.cjs +1 -0
  140. package/dist/actions/retrieve-post-comments.cjs.map +1 -1
  141. package/dist/actions/retrieve-post-comments.d.cts +3 -15
  142. package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
  143. package/dist/actions/retrieve-post-comments.d.mts +3 -15
  144. package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
  145. package/dist/actions/retrieve-post-comments.mjs +1 -0
  146. package/dist/actions/retrieve-post-comments.mjs.map +1 -1
  147. package/dist/actions/retrieve-reddit-post.cjs +1 -0
  148. package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
  149. package/dist/actions/retrieve-reddit-post.d.cts +3 -17
  150. package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
  151. package/dist/actions/retrieve-reddit-post.d.mts +3 -17
  152. package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
  153. package/dist/actions/retrieve-reddit-post.mjs +1 -0
  154. package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
  155. package/dist/actions/retrieve-specific-comment.cjs +1 -0
  156. package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
  157. package/dist/actions/retrieve-specific-comment.d.cts +3 -15
  158. package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
  159. package/dist/actions/retrieve-specific-comment.d.mts +3 -15
  160. package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
  161. package/dist/actions/retrieve-specific-comment.mjs +1 -0
  162. package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
  163. package/dist/actions/search-across-subreddits.cjs +1 -0
  164. package/dist/actions/search-across-subreddits.cjs.map +1 -1
  165. package/dist/actions/search-across-subreddits.d.cts +4 -21
  166. package/dist/actions/search-across-subreddits.d.cts.map +1 -1
  167. package/dist/actions/search-across-subreddits.d.mts +4 -21
  168. package/dist/actions/search-across-subreddits.d.mts.map +1 -1
  169. package/dist/actions/search-across-subreddits.mjs +1 -0
  170. package/dist/actions/search-across-subreddits.mjs.map +1 -1
  171. package/dist/actions/toggle-inbox-replies.cjs +1 -0
  172. package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
  173. package/dist/actions/toggle-inbox-replies.d.cts +3 -16
  174. package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
  175. package/dist/actions/toggle-inbox-replies.d.mts +3 -16
  176. package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
  177. package/dist/actions/toggle-inbox-replies.mjs +1 -0
  178. package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
  179. package/dist/app.cjs +2 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +4 -6
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +4 -6
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +0 -1
  186. package/dist/app.mjs.map +1 -1
  187. package/dist/index.d.cts +1 -1
  188. package/dist/index.d.mts +1 -1
  189. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddit-rules.d.ts
@@ -18,22 +20,7 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
18
20
  site_rules: z.ZodArray<z.ZodString>;
19
21
  site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
22
  }, z.core.$loose>;
21
- declare const redditGetSubredditRules: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- subreddit: string;
23
- raw_json?: boolean | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- accessToken: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- accessToken: z.ZodString;
36
- }, z.core.$strip>>]>;
23
+ declare const redditGetSubredditRules: AppAction<typeof RedditGetSubredditRulesInput, typeof RedditGetSubredditRulesOutput, typeof reddit.credential>;
37
24
  //#endregion
38
25
  export { redditGetSubredditRules };
39
26
  //# sourceMappingURL=get-subreddit-rules.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.d.mts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-subreddit-rules.d.mts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-subreddit-rules.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddit-rules.mjs","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;AACnH,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC5K,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX2C,EAAE,OAAO;EACpD,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yGAAyG;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACzH,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddit-rules.mjs","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules: AppAction<\n typeof RedditGetSubredditRulesInput,\n typeof RedditGetSubredditRulesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;AACnH,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC5K,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf2C,EAAE,OAAO;EACpD,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yGAAyG;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACzH,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-subreddits-search.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACpN,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACnL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC5K,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAClJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC7L,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AAC5J,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D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AC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddits-search.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch: AppAction<\n typeof RedditGetSubredditsSearchInput,\n typeof RedditGetSubredditsSearchOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CA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CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,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,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,kDAAkD,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddits-search.d.ts
@@ -57,29 +59,7 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  kind: z.ZodNullable<z.ZodString>;
59
61
  }, z.core.$loose>;
60
- declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- show?: string | undefined;
63
- sort?: "relevance" | "activity" | undefined;
64
- after?: string | undefined;
65
- count?: number | undefined;
66
- limit?: number | undefined;
67
- before?: string | undefined;
68
- sr_detail?: boolean | undefined;
69
- show_users?: boolean | undefined;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
71
- connectionId: z.ZodString;
72
- entityId: z.ZodString;
73
- instanceId: z.ZodString;
74
- }, z.core.$strip>, z.ZodObject<{
75
- accessToken: z.ZodString;
76
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
77
- connectionId: z.ZodString;
78
- entityId: z.ZodString;
79
- instanceId: z.ZodString;
80
- }, z.core.$strip>, z.ZodObject<{
81
- accessToken: z.ZodString;
82
- }, z.core.$strip>>]>;
62
+ declare const redditGetSubredditsSearch: AppAction<typeof RedditGetSubredditsSearchInput, typeof RedditGetSubredditsSearchOutput, typeof reddit.credential>;
83
63
  //#endregion
84
64
  export { redditGetSubredditsSearch };
85
65
  //# sourceMappingURL=get-subreddits-search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-subreddits-search.d.ts
@@ -57,29 +59,7 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  kind: z.ZodNullable<z.ZodString>;
59
61
  }, z.core.$loose>;
60
- declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- show?: string | undefined;
63
- sort?: "relevance" | "activity" | undefined;
64
- after?: string | undefined;
65
- count?: number | undefined;
66
- limit?: number | undefined;
67
- before?: string | undefined;
68
- sr_detail?: boolean | undefined;
69
- show_users?: boolean | undefined;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
71
- connectionId: z.ZodString;
72
- entityId: z.ZodString;
73
- instanceId: z.ZodString;
74
- }, z.core.$strip>, z.ZodObject<{
75
- accessToken: z.ZodString;
76
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
77
- connectionId: z.ZodString;
78
- entityId: z.ZodString;
79
- instanceId: z.ZodString;
80
- }, z.core.$strip>, z.ZodObject<{
81
- accessToken: z.ZodString;
82
- }, z.core.$strip>>]>;
62
+ declare const redditGetSubredditsSearch: AppAction<typeof RedditGetSubredditsSearchInput, typeof RedditGetSubredditsSearchOutput, typeof reddit.credential>;
83
63
  //#endregion
84
64
  export { redditGetSubredditsSearch };
85
65
  //# sourceMappingURL=get-subreddits-search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-subreddits-search.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-subreddits-search.mjs","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: Red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C,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,kDAAkD,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-subreddits-search.mjs","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = 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 as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch: AppAction<\n typeof RedditGetSubredditsSearchInput,\n typeof RedditGetSubredditsSearchOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACpN,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACnL,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC5K,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAClJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC7L,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AAC5J,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,KAAK,EAAE,OAAO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,iDAAiD,EAAE,OAAO;CAC9D,MAAM,8CAA8C,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,oDAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,kDAAkD,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-user-flair.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-flair.cjs","names":["z","action"],"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}).passthrough().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}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-flair.cjs","names":["z","action"],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const 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}).passthrough().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}).passthrough().describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair: AppAction<\n typeof RedditGetUserFlairInput,\n typeof RedditGetUserFlairOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-flair.d.ts
@@ -16,24 +18,7 @@ declare const RedditGetUserFlairOutput: z.ZodObject<{
16
18
  flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- subreddit: string;
21
- after?: string | undefined;
22
- limit?: number | undefined;
23
- before?: string | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- accessToken: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- accessToken: z.ZodString;
36
- }, z.core.$strip>>]>;
21
+ declare const redditGetUserFlair: AppAction<typeof RedditGetUserFlairInput, typeof RedditGetUserFlairOutput, typeof reddit.credential>;
37
22
  //#endregion
38
23
  export { redditGetUserFlair };
39
24
  //# sourceMappingURL=get-user-flair.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-flair.d.cts","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"}
1
+ {"version":3,"file":"get-user-flair.d.cts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-flair.d.ts
@@ -16,24 +18,7 @@ declare const RedditGetUserFlairOutput: z.ZodObject<{
16
18
  flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- subreddit: string;
21
- after?: string | undefined;
22
- limit?: number | undefined;
23
- before?: string | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- accessToken: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- accessToken: z.ZodString;
36
- }, z.core.$strip>>]>;
21
+ declare const redditGetUserFlair: AppAction<typeof RedditGetUserFlairInput, typeof RedditGetUserFlairOutput, typeof reddit.credential>;
37
22
  //#endregion
38
23
  export { redditGetUserFlair };
39
24
  //# sourceMappingURL=get-user-flair.d.mts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"get-user-flair.d.mts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-user-flair.ts
@@ -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.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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAOrF,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,YAAY,CAAC,CAAC,SAAS,uEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-flair.mjs","names":[],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const 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}).passthrough().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}).passthrough().describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair: AppAction<\n typeof RedditGetUserFlairInput,\n typeof RedditGetUserFlairOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAOrF,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,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,YAAY,CAAC,CAAC,SAAS,uEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-username-available.ts
@@ -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.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}).passthrough();\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,CAAC,CAAC,YAAY;AAEf,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\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}).passthrough();\n\nexport const redditGetUsernameAvailable: AppAction<\n typeof RedditGetUsernameAvailableInput,\n typeof RedditGetUsernameAvailableOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,YAAY;AAEf,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-username-available.d.ts
@@ -8,21 +10,7 @@ declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
8
10
  username: z.ZodNullable<z.ZodString>;
9
11
  available: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>;
11
- declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- user: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const redditGetUsernameAvailable: AppAction<typeof RedditGetUsernameAvailableInput, typeof RedditGetUsernameAvailableOutput, typeof reddit.credential>;
26
14
  //#endregion
27
15
  export { redditGetUsernameAvailable };
28
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,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-username-available.d.cts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { reddit } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-username-available.d.ts
@@ -8,21 +10,7 @@ declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
8
10
  username: z.ZodNullable<z.ZodString>;
9
11
  available: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>;
11
- declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- user: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const redditGetUsernameAvailable: AppAction<typeof RedditGetUsernameAvailableInput, typeof RedditGetUsernameAvailableOutput, typeof reddit.credential>;
26
14
  //#endregion
27
15
  export { redditGetUsernameAvailable };
28
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,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-username-available.d.mts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const redditGetUsernameAvailable = action("REDDIT_GET_USERNAME_AVAILABLE", {
@@ -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.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}).passthrough();\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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-username-available.mjs","names":[],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const 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}).passthrough();\n\nexport const redditGetUsernameAvailable: AppAction<\n typeof RedditGetUsernameAvailableInput,\n typeof RedditGetUsernameAvailableOutput,\n typeof reddit.credential\n> = 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":";;;AAcA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAcS;CACP,QAd8C,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,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get.ts
@@ -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.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;CACrC,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,C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AS,mEAAmE,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,kBAAkBA,IAAAA,EAAE,OAAO;CACtC,MAAM,4BAA4B,SAAS;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetInput = z.object({\n show: z.string().describe(\"The string 'all' to show all posts including filtered ones.\").optional(),\n sort: z.string().describe(\"The sorting method for results. Valid values: hot, new, top, rising, controversial, best. Note: 'random' is NOT supported here - use the GET_RANDOM action instead.\"),\n after: z.string().describe(\"Fullname of a thing for pagination (loads posts after this item).\").optional(),\n count: z.number().int().describe(\"A positive integer representing the number of items already seen (default: 0).\").optional(),\n limit: z.number().int().describe(\"The maximum number of items desired (default: 25, maximum: 100).\").optional(),\n before: z.string().describe(\"Fullname of a thing for pagination (loads posts before this item).\").optional(),\n time_filter: z.string().describe(\"Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.\").optional(),\n}).describe(\"Request model for getting a listing of Reddit posts sorted by a specific method.\");\nconst RedditGet_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGet_PostChildSchema = z.object({\n data: RedditGet_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGet_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGet_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetOutput = z.object({\n data: RedditGet_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a listing of Reddit posts.\");\n\nexport const redditGet: AppAction<\n typeof RedditGetInput,\n typeof RedditGetOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET\", {\n slug: \"reddit-get\",\n name: \"Get Reddit listing by sort\",\n description: \"Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, etc.). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top/controversial sorts.\",\n input: RedditGetInput,\n output: RedditGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;CACrC,MAAMA,IAAAA,EAAE,OAA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";
2
4
 
3
5
  //#region src/actions/get.d.ts
@@ -45,27 +47,7 @@ declare const RedditGetOutput: z.ZodObject<{
45
47
  }, z.core.$loose>>;
46
48
  kind: z.ZodNullable<z.ZodString>;
47
49
  }, z.core.$loose>;
48
- declare const redditGet: import("@keystrokehq/action").WorkflowActionDefinition<{
49
- sort: string;
50
- show?: string | undefined;
51
- after?: string | undefined;
52
- count?: number | undefined;
53
- limit?: number | undefined;
54
- before?: string | undefined;
55
- time_filter?: string | undefined;
56
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- accessToken: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- accessToken: z.ZodString;
68
- }, z.core.$strip>>]>;
50
+ declare const redditGet: AppAction<typeof RedditGetInput, typeof RedditGetOutput, typeof reddit.credential>;
69
51
  //#endregion
70
52
  export { redditGet };
71
53
  //# sourceMappingURL=get.d.cts.map