@keystrokehq/reddit 0.1.2 → 0.1.4
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.
- package/dist/actions/create-reddit-post.cjs +1 -1
- package/dist/actions/create-reddit-post.cjs.map +1 -1
- package/dist/actions/create-reddit-post.d.cts +14 -2
- package/dist/actions/create-reddit-post.d.mts +14 -2
- package/dist/actions/create-reddit-post.mjs +1 -1
- package/dist/actions/create-reddit-post.mjs.map +1 -1
- package/dist/actions/delete-reddit-comment.cjs +1 -1
- package/dist/actions/delete-reddit-comment.cjs.map +1 -1
- package/dist/actions/delete-reddit-comment.d.cts +14 -2
- package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
- package/dist/actions/delete-reddit-comment.d.mts +14 -2
- package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
- package/dist/actions/delete-reddit-comment.mjs +1 -1
- package/dist/actions/delete-reddit-comment.mjs.map +1 -1
- package/dist/actions/delete-reddit-post.cjs +1 -1
- package/dist/actions/delete-reddit-post.cjs.map +1 -1
- package/dist/actions/delete-reddit-post.d.cts +14 -2
- package/dist/actions/delete-reddit-post.d.cts.map +1 -1
- package/dist/actions/delete-reddit-post.d.mts +14 -2
- package/dist/actions/delete-reddit-post.d.mts.map +1 -1
- package/dist/actions/delete-reddit-post.mjs +1 -1
- package/dist/actions/delete-reddit-post.mjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
- package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.d.cts +16 -4
- package/dist/actions/edit-reddit-comment-or-post.d.mts +16 -4
- package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
- package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
- package/dist/actions/get-controversial-posts.cjs +4 -4
- package/dist/actions/get-controversial-posts.cjs.map +1 -1
- package/dist/actions/get-controversial-posts.d.cts +17 -5
- package/dist/actions/get-controversial-posts.d.mts +17 -5
- package/dist/actions/get-controversial-posts.mjs +4 -4
- package/dist/actions/get-controversial-posts.mjs.map +1 -1
- package/dist/actions/get-me-prefs.cjs +1 -1
- package/dist/actions/get-me-prefs.cjs.map +1 -1
- package/dist/actions/get-me-prefs.d.cts +14 -2
- package/dist/actions/get-me-prefs.d.mts +14 -2
- package/dist/actions/get-me-prefs.mjs +1 -1
- package/dist/actions/get-me-prefs.mjs.map +1 -1
- package/dist/actions/get-r-top.cjs +4 -4
- package/dist/actions/get-r-top.cjs.map +1 -1
- package/dist/actions/get-r-top.d.cts +17 -5
- package/dist/actions/get-r-top.d.mts +17 -5
- package/dist/actions/get-r-top.mjs +4 -4
- package/dist/actions/get-r-top.mjs.map +1 -1
- package/dist/actions/get-random.cjs +4 -4
- package/dist/actions/get-random.cjs.map +1 -1
- package/dist/actions/get-random.d.cts +17 -5
- package/dist/actions/get-random.d.mts +17 -5
- package/dist/actions/get-random.mjs +4 -4
- package/dist/actions/get-random.mjs.map +1 -1
- package/dist/actions/get-reddit-user-about.cjs +3 -3
- package/dist/actions/get-reddit-user-about.cjs.map +1 -1
- package/dist/actions/get-reddit-user-about.d.cts +16 -4
- package/dist/actions/get-reddit-user-about.d.mts +16 -4
- package/dist/actions/get-reddit-user-about.mjs +3 -3
- package/dist/actions/get-reddit-user-about.mjs.map +1 -1
- package/dist/actions/get-scopes.cjs +1 -1
- package/dist/actions/get-scopes.cjs.map +1 -1
- package/dist/actions/get-scopes.d.cts +15 -3
- package/dist/actions/get-scopes.d.cts.map +1 -1
- package/dist/actions/get-scopes.d.mts +15 -3
- package/dist/actions/get-scopes.d.mts.map +1 -1
- package/dist/actions/get-scopes.mjs +1 -1
- package/dist/actions/get-scopes.mjs.map +1 -1
- package/dist/actions/get-subreddit-rules.cjs +2 -2
- package/dist/actions/get-subreddit-rules.cjs.map +1 -1
- package/dist/actions/get-subreddit-rules.d.cts +15 -3
- package/dist/actions/get-subreddit-rules.d.mts +15 -3
- package/dist/actions/get-subreddit-rules.mjs +2 -2
- package/dist/actions/get-subreddit-rules.mjs.map +1 -1
- package/dist/actions/get-subreddits-search.cjs +4 -4
- package/dist/actions/get-subreddits-search.cjs.map +1 -1
- package/dist/actions/get-subreddits-search.d.cts +17 -5
- package/dist/actions/get-subreddits-search.d.mts +17 -5
- package/dist/actions/get-subreddits-search.mjs +4 -4
- package/dist/actions/get-subreddits-search.mjs.map +1 -1
- package/dist/actions/get-user-flair.cjs +2 -2
- package/dist/actions/get-user-flair.cjs.map +1 -1
- package/dist/actions/get-user-flair.d.cts +15 -3
- package/dist/actions/get-user-flair.d.mts +15 -3
- package/dist/actions/get-user-flair.mjs +2 -2
- package/dist/actions/get-user-flair.mjs.map +1 -1
- package/dist/actions/get-username-available.cjs +1 -1
- package/dist/actions/get-username-available.cjs.map +1 -1
- package/dist/actions/get-username-available.d.cts +14 -2
- package/dist/actions/get-username-available.d.mts +14 -2
- package/dist/actions/get-username-available.mjs +1 -1
- package/dist/actions/get-username-available.mjs.map +1 -1
- package/dist/actions/get.cjs +4 -4
- package/dist/actions/get.cjs.map +1 -1
- package/dist/actions/get.d.cts +17 -5
- package/dist/actions/get.d.mts +17 -5
- package/dist/actions/get.mjs +4 -4
- package/dist/actions/get.mjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.cjs +2 -2
- package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.d.cts +15 -3
- package/dist/actions/list-subreddit-post-flairs.d.mts +15 -3
- package/dist/actions/list-subreddit-post-flairs.mjs +2 -2
- package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
- package/dist/actions/post-reddit-comment.cjs +5 -5
- package/dist/actions/post-reddit-comment.cjs.map +1 -1
- package/dist/actions/post-reddit-comment.d.cts +18 -6
- package/dist/actions/post-reddit-comment.d.mts +18 -6
- package/dist/actions/post-reddit-comment.mjs +5 -5
- package/dist/actions/post-reddit-comment.mjs.map +1 -1
- package/dist/actions/retrieve-post-comments.cjs +2 -2
- package/dist/actions/retrieve-post-comments.cjs.map +1 -1
- package/dist/actions/retrieve-post-comments.d.cts +15 -3
- package/dist/actions/retrieve-post-comments.d.mts +15 -3
- package/dist/actions/retrieve-post-comments.mjs +2 -2
- package/dist/actions/retrieve-post-comments.mjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.cjs +4 -4
- package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.d.cts +17 -5
- package/dist/actions/retrieve-reddit-post.d.mts +17 -5
- package/dist/actions/retrieve-reddit-post.mjs +4 -4
- package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.cjs +6 -6
- package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.d.cts +19 -7
- package/dist/actions/retrieve-specific-comment.d.mts +19 -7
- package/dist/actions/retrieve-specific-comment.mjs +6 -6
- package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
- package/dist/actions/search-across-subreddits.cjs +2 -2
- package/dist/actions/search-across-subreddits.cjs.map +1 -1
- package/dist/actions/search-across-subreddits.d.cts +15 -3
- package/dist/actions/search-across-subreddits.d.mts +15 -3
- package/dist/actions/search-across-subreddits.mjs +2 -2
- package/dist/actions/search-across-subreddits.mjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.cjs +1 -1
- package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.cts +14 -2
- package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.mts +14 -2
- package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
- package/dist/actions/toggle-inbox-replies.mjs +1 -1
- package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.cjs","names":["z","action"],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.
|
|
1
|
+
{"version":3,"file":"get-scopes.cjs","names":["z","action"],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,9 +3,21 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-scopes.d.ts
|
|
4
4
|
declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const RedditGetScopesOutput: z.ZodObject<{
|
|
6
|
-
scopes: z.
|
|
7
|
-
}, z.core.$
|
|
8
|
-
declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
6
|
+
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
9
|
+
connectionId: z.ZodString;
|
|
10
|
+
entityId: z.ZodString;
|
|
11
|
+
instanceId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
accessToken: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>;
|
|
9
21
|
//#endregion
|
|
10
22
|
export { redditGetScopes };
|
|
11
23
|
//# sourceMappingURL=get-scopes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
|
@@ -3,9 +3,21 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-scopes.d.ts
|
|
4
4
|
declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const RedditGetScopesOutput: z.ZodObject<{
|
|
6
|
-
scopes: z.
|
|
7
|
-
}, z.core.$
|
|
8
|
-
declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
6
|
+
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const redditGetScopes: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
9
|
+
connectionId: z.ZodString;
|
|
10
|
+
entityId: z.ZodString;
|
|
11
|
+
instanceId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
accessToken: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>;
|
|
9
21
|
//#endregion
|
|
10
22
|
export { redditGetScopes };
|
|
11
23
|
//# sourceMappingURL=get-scopes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
|
@@ -5,7 +5,7 @@ const redditGetScopes = action("REDDIT_GET_SCOPES", {
|
|
|
5
5
|
name: "Get OAuth scopes",
|
|
6
6
|
description: "Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.",
|
|
7
7
|
input: z.object({}),
|
|
8
|
-
output: z.object({ scopes: z.
|
|
8
|
+
output: z.object({ scopes: z.record(z.string(), z.unknown()).describe("Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.") }).passthrough().describe("Response containing all available OAuth scopes.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { redditGetScopes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.mjs","names":[],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.
|
|
1
|
+
{"version":3,"file":"get-scopes.mjs","names":[],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetScopesInput = z.object({});\nexport const RedditGetScopesOutput = z.object({\n scopes: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping scope identifiers to scope information objects. Each key is a scope ID (e.g., 'identity', 'read', 'submit') and the value contains details about that scope.\"),\n}).passthrough().describe(\"Response containing all available OAuth scopes.\");\n\nexport const redditGetScopes = action(\"REDDIT_GET_SCOPES\", {\n slug: \"reddit-get-scopes\",\n name: \"Get OAuth scopes\",\n description: \"Tool to retrieve all available OAuth scopes supported by the Reddit API. Use when you need to understand what permissions are available or check scope definitions.\",\n input: RedditGetScopesInput,\n output: RedditGetScopesOutput,\n});\n"],"mappings":";;AASA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATkC,EAAE,OAAO,CAAC,CASrC;CACP,QATmC,EAAE,OAAO,EAC5C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -13,12 +13,12 @@ const RedditGetSubredditRules_SubredditRuleSchema = zod.z.object({
|
|
|
13
13
|
description: zod.z.string().describe("Full text description of the rule, up to 500 characters. May contain markdown formatting.").nullable().optional(),
|
|
14
14
|
description_html: zod.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(),
|
|
15
15
|
violation_reason: zod.z.string().describe("Text shown when content violates this rule, up to 100 characters. Used in removal messages.").nullable()
|
|
16
|
-
}).describe("Represents a single community rule for a subreddit.");
|
|
16
|
+
}).passthrough().describe("Represents a single community rule for a subreddit.");
|
|
17
17
|
const RedditGetSubredditRulesOutput = zod.z.object({
|
|
18
18
|
rules: zod.z.array(RedditGetSubredditRules_SubredditRuleSchema).describe("Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined."),
|
|
19
19
|
site_rules: zod.z.array(zod.z.string()).describe("Array of Reddit's platform-wide rule identifiers that apply to all subreddits."),
|
|
20
20
|
site_rules_flow: zod.z.array(zod.z.record(zod.z.string(), zod.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()
|
|
21
|
-
}).describe("Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.");
|
|
21
|
+
}).passthrough().describe("Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.");
|
|
22
22
|
const redditGetSubredditRules = require_action.action("REDDIT_GET_SUBREDDIT_RULES", {
|
|
23
23
|
slug: "reddit-get-subreddit-rules",
|
|
24
24
|
name: "Get subreddit rules",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subreddit-rules.cjs","names":["z","action"],"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}).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}).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+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACzL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;AACnH,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC5K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;
|
|
1
|
+
{"version":3,"file":"get-subreddit-rules.cjs","names":["z","action"],"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":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,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAA8G;AAExI,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,14 +14,26 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
|
|
|
14
14
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
description_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
violation_reason: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
site_rules: z.ZodArray<z.ZodString>;
|
|
19
19
|
site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const redditGetSubredditRules: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
subreddit: string;
|
|
23
23
|
raw_json?: boolean | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
25
37
|
//#endregion
|
|
26
38
|
export { redditGetSubredditRules };
|
|
27
39
|
//# sourceMappingURL=get-subreddit-rules.d.cts.map
|
|
@@ -14,14 +14,26 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
|
|
|
14
14
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
description_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
violation_reason: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
site_rules: z.ZodArray<z.ZodString>;
|
|
19
19
|
site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const redditGetSubredditRules: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
subreddit: string;
|
|
23
23
|
raw_json?: boolean | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
25
37
|
//#endregion
|
|
26
38
|
export { redditGetSubredditRules };
|
|
27
39
|
//# sourceMappingURL=get-subreddit-rules.d.mts.map
|
|
@@ -13,7 +13,7 @@ const RedditGetSubredditRules_SubredditRuleSchema = z.object({
|
|
|
13
13
|
description: z.string().describe("Full text description of the rule, up to 500 characters. May contain markdown formatting.").nullable().optional(),
|
|
14
14
|
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(),
|
|
15
15
|
violation_reason: z.string().describe("Text shown when content violates this rule, up to 100 characters. Used in removal messages.").nullable()
|
|
16
|
-
}).describe("Represents a single community rule for a subreddit.");
|
|
16
|
+
}).passthrough().describe("Represents a single community rule for a subreddit.");
|
|
17
17
|
const redditGetSubredditRules = action("REDDIT_GET_SUBREDDIT_RULES", {
|
|
18
18
|
slug: "reddit-get-subreddit-rules",
|
|
19
19
|
name: "Get subreddit rules",
|
|
@@ -23,7 +23,7 @@ const redditGetSubredditRules = action("REDDIT_GET_SUBREDDIT_RULES", {
|
|
|
23
23
|
rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe("Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined."),
|
|
24
24
|
site_rules: z.array(z.string()).describe("Array of Reddit's platform-wide rule identifiers that apply to all subreddits."),
|
|
25
25
|
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()
|
|
26
|
-
}).describe("Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.")
|
|
26
|
+
}).passthrough().describe("Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { redditGetSubredditRules };
|
|
@@ -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}).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}).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,SAAS,qDAAqD;
|
|
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"}
|
|
@@ -41,22 +41,22 @@ const RedditGetSubredditsSearch_SubredditDataSchema = zod.z.object({
|
|
|
41
41
|
user_is_subscriber: zod.z.boolean().describe("Whether the current user is subscribed to this subreddit.").nullable().optional(),
|
|
42
42
|
advertiser_category: zod.z.string().describe("Category for advertising purposes.").nullable().optional(),
|
|
43
43
|
display_name_prefixed: zod.z.string().describe("Display name with r/ prefix (e.g., 'r/python').").nullable().optional()
|
|
44
|
-
}).describe("Subreddit data object containing essential subreddit information.");
|
|
44
|
+
}).passthrough().describe("Subreddit data object containing essential subreddit information.");
|
|
45
45
|
const RedditGetSubredditsSearch_SubredditChildSchema = zod.z.object({
|
|
46
46
|
data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),
|
|
47
47
|
kind: zod.z.string().describe("Type identifier for the object, typically 't5' for subreddits.").nullable()
|
|
48
|
-
}).describe("Wrapper object for each subreddit in the children array.");
|
|
48
|
+
}).passthrough().describe("Wrapper object for each subreddit in the children array.");
|
|
49
49
|
const RedditGetSubredditsSearch_SearchListingDataSchema = zod.z.object({
|
|
50
50
|
dist: zod.z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
|
|
51
51
|
after: zod.z.string().describe("Fullname of the last item in the listing, used as cursor for next page.").nullable().optional(),
|
|
52
52
|
before: zod.z.string().describe("Fullname of the first item in the listing, used as cursor for previous page.").nullable().optional(),
|
|
53
53
|
modhash: zod.z.string().describe("Modhash token for the current session.").nullable().optional(),
|
|
54
54
|
children: zod.z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe("Array of subreddit objects matching the search.")
|
|
55
|
-
}).describe("Container object holding the listing response data.");
|
|
55
|
+
}).passthrough().describe("Container object holding the listing response data.");
|
|
56
56
|
const RedditGetSubredditsSearchOutput = zod.z.object({
|
|
57
57
|
data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),
|
|
58
58
|
kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for search results.").nullable()
|
|
59
|
-
}).describe("Response from searching subreddits.");
|
|
59
|
+
}).passthrough().describe("Response from searching subreddits.");
|
|
60
60
|
const redditGetSubredditsSearch = require_action.action("REDDIT_GET_SUBREDDITS_SEARCH", {
|
|
61
61
|
slug: "reddit-get-subreddits-search",
|
|
62
62
|
name: "Search subreddits",
|
|
@@ -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}).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}).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}).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}).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,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,S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":["../../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,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AAC,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,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -51,12 +51,12 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
|
|
|
51
51
|
user_is_subscriber: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
52
|
advertiser_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
display_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
55
|
kind: z.ZodNullable<z.ZodString>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
58
|
kind: z.ZodNullable<z.ZodString>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
q: string;
|
|
62
62
|
show?: string | undefined;
|
|
@@ -67,7 +67,19 @@ declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowA
|
|
|
67
67
|
before?: string | undefined;
|
|
68
68
|
sr_detail?: boolean | undefined;
|
|
69
69
|
show_users?: boolean | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
71
83
|
//#endregion
|
|
72
84
|
export { redditGetSubredditsSearch };
|
|
73
85
|
//# sourceMappingURL=get-subreddits-search.d.cts.map
|
|
@@ -51,12 +51,12 @@ declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
|
|
|
51
51
|
user_is_subscriber: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
52
|
advertiser_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
display_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
55
|
kind: z.ZodNullable<z.ZodString>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
58
|
kind: z.ZodNullable<z.ZodString>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
q: string;
|
|
62
62
|
show?: string | undefined;
|
|
@@ -67,7 +67,19 @@ declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowA
|
|
|
67
67
|
before?: string | undefined;
|
|
68
68
|
sr_detail?: boolean | undefined;
|
|
69
69
|
show_users?: boolean | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
71
83
|
//#endregion
|
|
72
84
|
export { redditGetSubredditsSearch };
|
|
73
85
|
//# sourceMappingURL=get-subreddits-search.d.mts.map
|
|
@@ -41,18 +41,18 @@ const RedditGetSubredditsSearch_SubredditDataSchema = z.object({
|
|
|
41
41
|
user_is_subscriber: z.boolean().describe("Whether the current user is subscribed to this subreddit.").nullable().optional(),
|
|
42
42
|
advertiser_category: z.string().describe("Category for advertising purposes.").nullable().optional(),
|
|
43
43
|
display_name_prefixed: z.string().describe("Display name with r/ prefix (e.g., 'r/python').").nullable().optional()
|
|
44
|
-
}).describe("Subreddit data object containing essential subreddit information.");
|
|
44
|
+
}).passthrough().describe("Subreddit data object containing essential subreddit information.");
|
|
45
45
|
const RedditGetSubredditsSearch_SubredditChildSchema = z.object({
|
|
46
46
|
data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),
|
|
47
47
|
kind: z.string().describe("Type identifier for the object, typically 't5' for subreddits.").nullable()
|
|
48
|
-
}).describe("Wrapper object for each subreddit in the children array.");
|
|
48
|
+
}).passthrough().describe("Wrapper object for each subreddit in the children array.");
|
|
49
49
|
const RedditGetSubredditsSearch_SearchListingDataSchema = z.object({
|
|
50
50
|
dist: z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
|
|
51
51
|
after: z.string().describe("Fullname of the last item in the listing, used as cursor for next page.").nullable().optional(),
|
|
52
52
|
before: z.string().describe("Fullname of the first item in the listing, used as cursor for previous page.").nullable().optional(),
|
|
53
53
|
modhash: z.string().describe("Modhash token for the current session.").nullable().optional(),
|
|
54
54
|
children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe("Array of subreddit objects matching the search.")
|
|
55
|
-
}).describe("Container object holding the listing response data.");
|
|
55
|
+
}).passthrough().describe("Container object holding the listing response data.");
|
|
56
56
|
const redditGetSubredditsSearch = action("REDDIT_GET_SUBREDDITS_SEARCH", {
|
|
57
57
|
slug: "reddit-get-subreddits-search",
|
|
58
58
|
name: "Search subreddits",
|
|
@@ -61,7 +61,7 @@ const redditGetSubredditsSearch = action("REDDIT_GET_SUBREDDITS_SEARCH", {
|
|
|
61
61
|
output: z.object({
|
|
62
62
|
data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),
|
|
63
63
|
kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for search results.").nullable()
|
|
64
|
-
}).describe("Response from searching subreddits.")
|
|
64
|
+
}).passthrough().describe("Response from searching subreddits.")
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { redditGetSubredditsSearch };
|
|
@@ -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}).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}).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}).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}).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,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,OAA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C"}
|
|
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: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;AAIA,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,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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"}
|
|
@@ -11,12 +11,12 @@ const RedditGetUserFlair_UserFlairEntrySchema = zod.z.object({
|
|
|
11
11
|
user: zod.z.string().describe("Username of the Reddit user who has been assigned this flair.").nullable(),
|
|
12
12
|
flair_text: zod.z.string().describe("The text content displayed as the user's flair.").nullable().optional(),
|
|
13
13
|
flair_css_class: zod.z.string().describe("CSS class name applied to the user's flair for visual styling.").nullable().optional()
|
|
14
|
-
}).describe("Represents a single user flair assignment in a subreddit.");
|
|
14
|
+
}).passthrough().describe("Represents a single user flair assignment in a subreddit.");
|
|
15
15
|
const RedditGetUserFlairOutput = zod.z.object({
|
|
16
16
|
next: zod.z.string().describe("User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.").nullable().optional(),
|
|
17
17
|
prev: zod.z.string().describe("User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.").nullable().optional(),
|
|
18
18
|
users: zod.z.array(RedditGetUserFlair_UserFlairEntrySchema).describe("Array of user flair assignments for the subreddit.")
|
|
19
|
-
}).describe("Response containing paginated user flair assignments for a subreddit.");
|
|
19
|
+
}).passthrough().describe("Response containing paginated user flair assignments for a subreddit.");
|
|
20
20
|
const redditGetUserFlair = require_action.action("REDDIT_GET_USER_FLAIR", {
|
|
21
21
|
slug: "reddit-get-user-flair",
|
|
22
22
|
name: "Get user flair",
|
|
@@ -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}).describe(\"Represents a single user flair assignment in a subreddit.\");\nexport const RedditGetUserFlairOutput = z.object({\n next: z.string().describe(\"User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.\").nullable().optional(),\n prev: z.string().describe(\"User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.\").nullable().optional(),\n users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe(\"Array of user flair assignments for the subreddit.\"),\n}).describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair = action(\"REDDIT_GET_USER_FLAIR\", {\n slug: \"reddit-get-user-flair\",\n name: \"Get user flair\",\n description: \"Fetches the list of user flair assignments for a given subreddit. Returns paginated results with user flair details. Returned flair_id values are scoped to the specific subreddit and must not be reused across different subreddits.\",\n input: RedditGetUserFlairInput,\n output: RedditGetUserFlairOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,2DAA2D;
|
|
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"}
|
|
@@ -14,14 +14,26 @@ declare const RedditGetUserFlairOutput: z.ZodObject<{
|
|
|
14
14
|
user: z.ZodNullable<z.ZodString>;
|
|
15
15
|
flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
subreddit: string;
|
|
21
21
|
after?: string | undefined;
|
|
22
22
|
limit?: number | undefined;
|
|
23
23
|
before?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
25
37
|
//#endregion
|
|
26
38
|
export { redditGetUserFlair };
|
|
27
39
|
//# sourceMappingURL=get-user-flair.d.cts.map
|
|
@@ -14,14 +14,26 @@ declare const RedditGetUserFlairOutput: z.ZodObject<{
|
|
|
14
14
|
user: z.ZodNullable<z.ZodString>;
|
|
15
15
|
flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
subreddit: string;
|
|
21
21
|
after?: string | undefined;
|
|
22
22
|
limit?: number | undefined;
|
|
23
23
|
before?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
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>>]>;
|
|
25
37
|
//#endregion
|
|
26
38
|
export { redditGetUserFlair };
|
|
27
39
|
//# sourceMappingURL=get-user-flair.d.mts.map
|