@keystrokehq/reddit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-reddit-post.cjs +1 -0
- package/dist/actions/create-reddit-post.cjs.map +1 -1
- package/dist/actions/create-reddit-post.d.cts +3 -20
- package/dist/actions/create-reddit-post.d.cts.map +1 -1
- package/dist/actions/create-reddit-post.d.mts +3 -20
- package/dist/actions/create-reddit-post.d.mts.map +1 -1
- package/dist/actions/create-reddit-post.mjs +1 -0
- package/dist/actions/create-reddit-post.mjs.map +1 -1
- package/dist/actions/delete-reddit-comment.cjs +1 -0
- package/dist/actions/delete-reddit-comment.cjs.map +1 -1
- package/dist/actions/delete-reddit-comment.d.cts +3 -15
- package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
- package/dist/actions/delete-reddit-comment.d.mts +3 -15
- package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
- package/dist/actions/delete-reddit-comment.mjs +1 -0
- package/dist/actions/delete-reddit-comment.mjs.map +1 -1
- package/dist/actions/delete-reddit-post.cjs +1 -0
- package/dist/actions/delete-reddit-post.cjs.map +1 -1
- package/dist/actions/delete-reddit-post.d.cts +3 -15
- package/dist/actions/delete-reddit-post.d.cts.map +1 -1
- package/dist/actions/delete-reddit-post.d.mts +3 -15
- package/dist/actions/delete-reddit-post.d.mts.map +1 -1
- package/dist/actions/delete-reddit-post.mjs +1 -0
- package/dist/actions/delete-reddit-post.mjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.cjs +1 -0
- package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.d.cts +3 -16
- package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.d.mts +3 -16
- package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.mjs +1 -0
- package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
- package/dist/actions/get-controversial-posts.cjs +1 -0
- package/dist/actions/get-controversial-posts.cjs.map +1 -1
- package/dist/actions/get-controversial-posts.d.cts +3 -18
- package/dist/actions/get-controversial-posts.d.cts.map +1 -1
- package/dist/actions/get-controversial-posts.d.mts +3 -18
- package/dist/actions/get-controversial-posts.d.mts.map +1 -1
- package/dist/actions/get-controversial-posts.mjs +1 -0
- package/dist/actions/get-controversial-posts.mjs.map +1 -1
- package/dist/actions/get-me-prefs.cjs +1 -0
- package/dist/actions/get-me-prefs.cjs.map +1 -1
- package/dist/actions/get-me-prefs.d.cts +3 -15
- package/dist/actions/get-me-prefs.d.cts.map +1 -1
- package/dist/actions/get-me-prefs.d.mts +3 -15
- package/dist/actions/get-me-prefs.d.mts.map +1 -1
- package/dist/actions/get-me-prefs.mjs +1 -0
- package/dist/actions/get-me-prefs.mjs.map +1 -1
- package/dist/actions/get-r-top.cjs +1 -0
- package/dist/actions/get-r-top.cjs.map +1 -1
- package/dist/actions/get-r-top.d.cts +3 -22
- package/dist/actions/get-r-top.d.cts.map +1 -1
- package/dist/actions/get-r-top.d.mts +3 -22
- package/dist/actions/get-r-top.d.mts.map +1 -1
- package/dist/actions/get-r-top.mjs +1 -0
- package/dist/actions/get-r-top.mjs.map +1 -1
- package/dist/actions/get-random.cjs +1 -0
- package/dist/actions/get-random.cjs.map +1 -1
- package/dist/actions/get-random.d.cts +3 -15
- package/dist/actions/get-random.d.cts.map +1 -1
- package/dist/actions/get-random.d.mts +3 -15
- package/dist/actions/get-random.d.mts.map +1 -1
- package/dist/actions/get-random.mjs +1 -0
- package/dist/actions/get-random.mjs.map +1 -1
- package/dist/actions/get-reddit-user-about.cjs +1 -0
- package/dist/actions/get-reddit-user-about.cjs.map +1 -1
- package/dist/actions/get-reddit-user-about.d.cts +3 -15
- package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
- package/dist/actions/get-reddit-user-about.d.mts +3 -15
- package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
- package/dist/actions/get-reddit-user-about.mjs +1 -0
- package/dist/actions/get-reddit-user-about.mjs.map +1 -1
- package/dist/actions/get-scopes.cjs +1 -0
- package/dist/actions/get-scopes.cjs.map +1 -1
- package/dist/actions/get-scopes.d.cts +3 -13
- package/dist/actions/get-scopes.d.cts.map +1 -1
- package/dist/actions/get-scopes.d.mts +3 -13
- package/dist/actions/get-scopes.d.mts.map +1 -1
- package/dist/actions/get-scopes.mjs +1 -0
- package/dist/actions/get-scopes.mjs.map +1 -1
- package/dist/actions/get-subreddit-rules.cjs +1 -0
- package/dist/actions/get-subreddit-rules.cjs.map +1 -1
- package/dist/actions/get-subreddit-rules.d.cts +3 -16
- package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
- package/dist/actions/get-subreddit-rules.d.mts +3 -16
- package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
- package/dist/actions/get-subreddit-rules.mjs +1 -0
- package/dist/actions/get-subreddit-rules.mjs.map +1 -1
- package/dist/actions/get-subreddits-search.cjs +1 -0
- package/dist/actions/get-subreddits-search.cjs.map +1 -1
- package/dist/actions/get-subreddits-search.d.cts +3 -23
- package/dist/actions/get-subreddits-search.d.cts.map +1 -1
- package/dist/actions/get-subreddits-search.d.mts +3 -23
- package/dist/actions/get-subreddits-search.d.mts.map +1 -1
- package/dist/actions/get-subreddits-search.mjs +1 -0
- package/dist/actions/get-subreddits-search.mjs.map +1 -1
- package/dist/actions/get-user-flair.cjs +1 -0
- package/dist/actions/get-user-flair.cjs.map +1 -1
- package/dist/actions/get-user-flair.d.cts +3 -18
- package/dist/actions/get-user-flair.d.cts.map +1 -1
- package/dist/actions/get-user-flair.d.mts +3 -18
- package/dist/actions/get-user-flair.d.mts.map +1 -1
- package/dist/actions/get-user-flair.mjs +1 -0
- package/dist/actions/get-user-flair.mjs.map +1 -1
- package/dist/actions/get-username-available.cjs +1 -0
- package/dist/actions/get-username-available.cjs.map +1 -1
- package/dist/actions/get-username-available.d.cts +3 -15
- package/dist/actions/get-username-available.d.cts.map +1 -1
- package/dist/actions/get-username-available.d.mts +3 -15
- package/dist/actions/get-username-available.d.mts.map +1 -1
- package/dist/actions/get-username-available.mjs +1 -0
- package/dist/actions/get-username-available.mjs.map +1 -1
- package/dist/actions/get.cjs +1 -0
- package/dist/actions/get.cjs.map +1 -1
- package/dist/actions/get.d.cts +3 -21
- package/dist/actions/get.d.cts.map +1 -1
- package/dist/actions/get.d.mts +3 -21
- package/dist/actions/get.d.mts.map +1 -1
- package/dist/actions/get.mjs +1 -0
- package/dist/actions/get.mjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.cjs +1 -0
- package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.d.cts +3 -15
- package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.d.mts +3 -15
- package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.mjs +1 -0
- package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
- package/dist/actions/post-reddit-comment.cjs +1 -0
- package/dist/actions/post-reddit-comment.cjs.map +1 -1
- package/dist/actions/post-reddit-comment.d.cts +3 -16
- package/dist/actions/post-reddit-comment.d.cts.map +1 -1
- package/dist/actions/post-reddit-comment.d.mts +3 -16
- package/dist/actions/post-reddit-comment.d.mts.map +1 -1
- package/dist/actions/post-reddit-comment.mjs +1 -0
- package/dist/actions/post-reddit-comment.mjs.map +1 -1
- package/dist/actions/retrieve-post-comments.cjs +1 -0
- package/dist/actions/retrieve-post-comments.cjs.map +1 -1
- package/dist/actions/retrieve-post-comments.d.cts +3 -15
- package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
- package/dist/actions/retrieve-post-comments.d.mts +3 -15
- package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
- package/dist/actions/retrieve-post-comments.mjs +1 -0
- package/dist/actions/retrieve-post-comments.mjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.cjs +1 -0
- package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.d.cts +3 -17
- package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
- package/dist/actions/retrieve-reddit-post.d.mts +3 -17
- package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
- package/dist/actions/retrieve-reddit-post.mjs +1 -0
- package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.cjs +1 -0
- package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.d.cts +3 -15
- package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-specific-comment.d.mts +3 -15
- package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-specific-comment.mjs +1 -0
- package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
- package/dist/actions/search-across-subreddits.cjs +1 -0
- package/dist/actions/search-across-subreddits.cjs.map +1 -1
- package/dist/actions/search-across-subreddits.d.cts +4 -21
- package/dist/actions/search-across-subreddits.d.cts.map +1 -1
- package/dist/actions/search-across-subreddits.d.mts +4 -21
- package/dist/actions/search-across-subreddits.d.mts.map +1 -1
- package/dist/actions/search-across-subreddits.mjs +1 -0
- package/dist/actions/search-across-subreddits.mjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.cjs +1 -0
- package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.cts +3 -16
- package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.mts +3 -16
- package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
- package/dist/actions/toggle-inbox-replies.mjs +1 -0
- package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-r-top.mjs","names":[],"sources":["../../src/actions/get-r-top.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRTopInput = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking top posts. Specifies the time period for top posts: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n show: z.string().describe(\"Display filtering option. Use 'all' to return items that would normally be omitted (e.g., posts you have hidden).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n count: z.number().int().describe(\"Used by Reddit to number listings after the first page for pagination. Represents the number of items already seen.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of top posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits detail in response. Set to true to get more detailed subreddit information.\").optional(),\n subreddit: z.string().describe(\"Subreddit name (without 'r/' prefix). Must contain only letters, numbers, and underscores. No spaces or special characters allowed. Case-insensitive.\"),\n});\nconst RedditGetRTop_TopPostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRTop_TopPostChildSchema = z.object({\n data: RedditGetRTop_TopPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRTop_TopListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRTop_TopPostChildSchema).describe(\"Array of top post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRTopOutput = z.object({\n data: RedditGetRTop_TopListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\").nullable(),\n}).passthrough().describe(\"Response from retrieving top posts from a subreddit.\");\n\nexport const redditGetRTop = action(\"REDDIT_GET_R_TOP\", {\n slug: \"reddit-get-r-top\",\n name: \"Get top posts from subreddit\",\n description: \"Tool to retrieve top-rated posts from a subreddit with time filters. Use when you need to find the most popular posts from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by score within the specified time frame.\",\n input: RedditGetRTopInput,\n output: RedditGetRTopOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-r-top.mjs","names":[],"sources":["../../src/actions/get-r-top.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetRTopInput = z.object({\n t: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"all\"]).default(\"all\").describe(\"Time filter for ranking top posts. Specifies the time period for top posts: 'hour', 'day', 'week', 'month', 'year', or 'all' (default).\").optional(),\n show: z.string().describe(\"Display filtering option. Use 'all' to return items that would normally be omitted (e.g., posts you have hidden).\").optional(),\n after: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur after this fullname in the listing.\").optional(),\n count: z.number().int().describe(\"Used by Reddit to number listings after the first page for pagination. Represents the number of items already seen.\").optional(),\n limit: z.number().int().default(25).describe(\"Maximum number of top posts to return. Default is 25, maximum is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing to use as anchor for pagination. Returns results that occur before this fullname in the listing.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits detail in response. Set to true to get more detailed subreddit information.\").optional(),\n subreddit: z.string().describe(\"Subreddit name (without 'r/' prefix). Must contain only letters, numbers, and underscores. No spaces or special characters allowed. Case-insensitive.\"),\n});\nconst RedditGetRTop_TopPostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable().optional(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable().optional(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable().optional(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable().optional(),\n title: z.string().describe(\"The title of the post.\").nullable().optional(),\n author: z.string().describe(\"Username of the post author, null if deleted or removed.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the linked content, 'self.<subreddit>' for self posts.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable().optional(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable().optional(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self' for self posts, 'default' if unavailable.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable().optional(),\n num_comments: z.number().int().describe(\"Total number of comments, including removed comments.\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRTop_TopPostChildSchema = z.object({\n data: RedditGetRTop_TopPostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, typically 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRTop_TopListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination to next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination to previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRTop_TopPostChildSchema).describe(\"Array of top post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRTopOutput = z.object({\n data: RedditGetRTop_TopListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, always 'Listing' for this endpoint.\").nullable(),\n}).passthrough().describe(\"Response from retrieving top posts from a subreddit.\");\n\nexport const redditGetRTop: AppAction<\n typeof RedditGetRTopInput,\n typeof RedditGetRTopOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_R_TOP\", {\n slug: \"reddit-get-r-top\",\n name: \"Get top posts from subreddit\",\n description: \"Tool to retrieve top-rated posts from a subreddit with time filters. Use when you need to find the most popular posts from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by score within the specified time frame.\",\n input: RedditGetRTopInput,\n output: RedditGetRTopOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,GAAG,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACvO,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACjK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC7J,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,u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AS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-random.cjs","names":["z","action"],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-random.cjs","names":["z","action"],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom: AppAction<\n typeof RedditGetRandomInput,\n typeof RedditGetRandomOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,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SAAS;CAC3F,UAAUA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAM,kCAAkC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-random.d.ts
|
|
@@ -39,21 +41,7 @@ declare const RedditGetRandomOutput: z.ZodObject<{
|
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
kind: z.ZodNullable<z.ZodString>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const redditGetRandom:
|
|
43
|
-
subreddit?: string | undefined;
|
|
44
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
accessToken: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
accessToken: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const redditGetRandom: AppAction<typeof RedditGetRandomInput, typeof RedditGetRandomOutput, typeof reddit.credential>;
|
|
57
45
|
//#endregion
|
|
58
46
|
export { redditGetRandom };
|
|
59
47
|
//# sourceMappingURL=get-random.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-random.d.cts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-random.d.cts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAqCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-random.d.ts
|
|
@@ -39,21 +41,7 @@ declare const RedditGetRandomOutput: z.ZodObject<{
|
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
kind: z.ZodNullable<z.ZodString>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const redditGetRandom:
|
|
43
|
-
subreddit?: string | undefined;
|
|
44
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
accessToken: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
accessToken: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const redditGetRandom: AppAction<typeof RedditGetRandomInput, typeof RedditGetRandomOutput, typeof reddit.credential>;
|
|
57
45
|
//#endregion
|
|
58
46
|
export { redditGetRandom };
|
|
59
47
|
//# sourceMappingURL=get-random.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-random.d.mts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-random.d.mts","names":[],"sources":["../../src/actions/get-random.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAqCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-random.mjs","names":[],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-random.mjs","names":[],"sources":["../../src/actions/get-random.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetRandomInput = z.object({\n subreddit: z.string().describe(\"Name of the subreddit to get a random post from. If not specified, returns a random post from all of Reddit. Do not include 'r/' prefix.\").optional(),\n}).describe(\"Request model for getting a random Reddit post.\");\nconst RedditGetRandom_PostDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the post in base36 format.\").nullable(),\n ups: z.number().int().describe(\"Number of upvotes received.\").nullable(),\n url: z.string().describe(\"URL the post links to, or the permalink if a self post.\").nullable(),\n name: z.string().describe(\"Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').\").nullable(),\n score: z.number().int().describe(\"Net score of the post, calculated as upvotes minus downvotes.\").nullable(),\n title: z.string().describe(\"The title of the post.\").nullable(),\n author: z.string().describe(\"Username of the post author, null if deleted or promotional link.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the post is locked and closed to new comments.\").nullable().optional(),\n is_self: z.boolean().describe(\"Whether the post is a self/text post (true) or link post (false).\").nullable(),\n over_18: z.boolean().describe(\"Whether the post is marked as NSFW (Not Safe For Work).\").nullable(),\n spoiler: z.boolean().describe(\"Whether the post is marked as containing spoilers.\").nullable().optional(),\n is_video: z.boolean().describe(\"Whether the post contains a video hosted on Reddit.\").nullable().optional(),\n selftext: z.string().describe(\"Raw body text for self/text posts with markdown characters, empty string for link posts.\").nullable().optional(),\n stickied: z.boolean().describe(\"Whether the post is stickied/pinned in the subreddit.\").nullable().optional(),\n permalink: z.string().describe(\"Relative URL path to the permanent link of the post.\").nullable(),\n subreddit: z.string().describe(\"Name of the subreddit without the /r/ prefix.\").nullable(),\n thumbnail: z.string().describe(\"URL to thumbnail image, or 'self', 'default', 'nsfw', etc.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of post creation in UTC epoch-seconds.\").nullable(),\n num_comments: z.number().int().describe(\"Total number of comments on the post.\").nullable(),\n upvote_ratio: z.number().describe(\"Percentage ratio of upvotes from total votes.\").nullable().optional(),\n subreddit_name_prefixed: z.string().describe(\"Subreddit name with 'r/' prefix (e.g., 'r/programming').\").nullable().optional(),\n}).passthrough().describe(\"The actual post data object containing essential post fields.\");\nconst RedditGetRandom_PostChildSchema = z.object({\n data: RedditGetRandom_PostDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the post object, always 't3' for links/posts.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each post in the children array.\");\nconst RedditGetRandom_ListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used for pagination.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used for pagination.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetRandom_PostChildSchema).describe(\"Array of post objects.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetRandomOutput = z.object({\n data: RedditGetRandom_ListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for post queries.\").nullable(),\n}).passthrough().describe(\"Response from getting a random Reddit post.\");\n\nexport const redditGetRandom: AppAction<\n typeof RedditGetRandomInput,\n typeof RedditGetRandomOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_RANDOM\", {\n slug: \"reddit-get-random\",\n name: \"Get random Reddit post\",\n description: \"Tool to retrieve a random public Reddit post from any subreddit. Use when you want to discover serendipitous content or need a random post for testing or entertainment purposes.\",\n input: RedditGetRandomInput,\n output: RedditGetRandomOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,QAAQ,CAAC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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmC,EAAE,OAAO;EAC5C,MAAM,kCAAkC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reddit-user-about.cjs","names":["z","action"],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRedditUserAboutInput = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).passthrough().describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\").nullable(),\n name: z.string().describe(\"Username of the Reddit account.\").nullable(),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\").nullable(),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\").nullable(),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\").nullable(),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\").nullable(),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).passthrough().describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\").nullable(),\n}).passthrough().describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAboutInput,\n output: RedditGetRedditUserAboutOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA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AC,SAAS;CACnH,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,wCAAwC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-reddit-user-about.cjs","names":["z","action"],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetRedditUserAboutInput = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).passthrough().describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\").nullable(),\n name: z.string().describe(\"Username of the Reddit account.\").nullable(),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\").nullable(),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\").nullable(),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\").nullable(),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\").nullable(),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).passthrough().describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\").nullable(),\n}).passthrough().describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout: AppAction<\n typeof RedditGetRedditUserAboutInput,\n typeof RedditGetRedditUserAboutOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAboutInput,\n output: RedditGetRedditUserAboutOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,C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AS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reddit-user-about.d.ts
|
|
@@ -73,21 +75,7 @@ declare const RedditGetRedditUserAboutOutput: z.ZodObject<{
|
|
|
73
75
|
}, z.core.$loose>>;
|
|
74
76
|
kind: z.ZodNullable<z.ZodString>;
|
|
75
77
|
}, z.core.$loose>;
|
|
76
|
-
declare const redditGetRedditUserAbout:
|
|
77
|
-
username: string;
|
|
78
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
79
|
-
connectionId: z.ZodString;
|
|
80
|
-
entityId: z.ZodString;
|
|
81
|
-
instanceId: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
accessToken: z.ZodString;
|
|
84
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
85
|
-
connectionId: z.ZodString;
|
|
86
|
-
entityId: z.ZodString;
|
|
87
|
-
instanceId: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
accessToken: z.ZodString;
|
|
90
|
-
}, z.core.$strip>>]>;
|
|
78
|
+
declare const redditGetRedditUserAbout: AppAction<typeof RedditGetRedditUserAboutInput, typeof RedditGetRedditUserAboutOutput, typeof reddit.credential>;
|
|
91
79
|
//#endregion
|
|
92
80
|
export { redditGetRedditUserAbout };
|
|
93
81
|
//# sourceMappingURL=get-reddit-user-about.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reddit-user-about.d.cts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reddit-user-about.d.cts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reddit-user-about.d.ts
|
|
@@ -73,21 +75,7 @@ declare const RedditGetRedditUserAboutOutput: z.ZodObject<{
|
|
|
73
75
|
}, z.core.$loose>>;
|
|
74
76
|
kind: z.ZodNullable<z.ZodString>;
|
|
75
77
|
}, z.core.$loose>;
|
|
76
|
-
declare const redditGetRedditUserAbout:
|
|
77
|
-
username: string;
|
|
78
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
79
|
-
connectionId: z.ZodString;
|
|
80
|
-
entityId: z.ZodString;
|
|
81
|
-
instanceId: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
accessToken: z.ZodString;
|
|
84
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
85
|
-
connectionId: z.ZodString;
|
|
86
|
-
entityId: z.ZodString;
|
|
87
|
-
instanceId: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
accessToken: z.ZodString;
|
|
90
|
-
}, z.core.$strip>>]>;
|
|
78
|
+
declare const redditGetRedditUserAbout: AppAction<typeof RedditGetRedditUserAboutInput, typeof RedditGetRedditUserAboutOutput, typeof reddit.credential>;
|
|
91
79
|
//#endregion
|
|
92
80
|
export { redditGetRedditUserAbout };
|
|
93
81
|
//# sourceMappingURL=get-reddit-user-about.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reddit-user-about.d.mts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reddit-user-about.d.mts","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAsE7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reddit-user-about.mjs","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetRedditUserAboutInput = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).passthrough().describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\").nullable(),\n name: z.string().describe(\"Username of the Reddit account.\").nullable(),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\").nullable(),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\").nullable(),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\").nullable(),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\").nullable(),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).passthrough().describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\").nullable(),\n}).passthrough().describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAboutInput,\n output: RedditGetRedditUserAboutOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,EACpM,CAAC;AACD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;C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AkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAMrE,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,wCAAwC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-reddit-user-about.mjs","names":[],"sources":["../../src/actions/get-reddit-user-about.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetRedditUserAboutInput = z.object({\n username: z.string().describe(\"The name of an existing Reddit user to retrieve information about. Do not include 'u/' prefix. Use 'me' to get information about the currently authenticated user.\"),\n});\nconst RedditGetRedditUserAbout_UserSubredditSchema = z.object({\n url: z.string().describe(\"URL path to the user profile.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user subreddit.\").nullable().optional(),\n coins: z.number().int().describe(\"Number of coins.\").nullable().optional(),\n title: z.string().describe(\"Title of the user profile.\").nullable().optional(),\n over_18: z.boolean().describe(\"Whether the profile is marked NSFW.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the profile icon.\").nullable().optional(),\n icon_size: z.array(z.number().int()).describe(\"Dimensions of the icon [width, height].\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the profile.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the header image.\").nullable().optional(),\n icon_color: z.string().describe(\"Hex color for the icon.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether it's quarantined.\").nullable().optional(),\n show_media: z.boolean().describe(\"Whether media is shown on the profile.\").nullable().optional(),\n banner_size: z.array(z.number().int()).describe(\"Dimensions of the banner [width, height].\").nullable().optional(),\n default_set: z.boolean().describe(\"Whether default settings are used.\").nullable().optional(),\n description: z.string().describe(\"Description of the user profile.\").nullable().optional(),\n header_size: z.array(z.number().int()).describe(\"Dimensions of the header [width, height].\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the user subreddit.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the profile.\").nullable().optional(),\n user_is_muted: z.boolean().describe(\"Whether the authenticated user is muted.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the community icon.\").nullable().optional(),\n previous_names: z.array(z.string()).describe(\"List of previous usernames.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'user').\").nullable().optional(),\n user_is_banned: z.boolean().describe(\"Whether the authenticated user is banned.\").nullable().optional(),\n is_default_icon: z.boolean().describe(\"Whether using default icon.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n restrict_posting: z.boolean().describe(\"Whether posting is restricted.\").nullable().optional(),\n free_form_reports: z.boolean().describe(\"Whether free-form reports are enabled.\").nullable().optional(),\n is_default_banner: z.boolean().describe(\"Whether using default banner.\").nullable().optional(),\n submit_link_label: z.string().describe(\"Label for submit link button.\").nullable().optional(),\n submit_text_label: z.string().describe(\"Label for submit text button.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the authenticated user is a moderator.\").nullable().optional(),\n link_flair_enabled: z.boolean().describe(\"Whether link flair is enabled.\").nullable().optional(),\n public_description: z.string().describe(\"Public description visible to others.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the authenticated user is subscribed.\").nullable().optional(),\n link_flair_position: z.string().describe(\"Position of link flair.\").nullable().optional(),\n restrict_commenting: z.boolean().describe(\"Whether commenting is restricted.\").nullable().optional(),\n user_is_contributor: z.boolean().describe(\"Whether the authenticated user is a contributor.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with prefix (e.g., 'u/username').\").nullable().optional(),\n allowed_media_in_comments: z.array(z.string()).describe(\"List of allowed media types in comments.\").nullable().optional(),\n disable_contributor_requests: z.boolean().describe(\"Whether contributor requests are disabled.\").nullable().optional(),\n}).passthrough().describe(\"User's profile subreddit information.\");\nconst RedditGetRedditUserAbout_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user account in base36 format.\").nullable(),\n name: z.string().describe(\"Username of the Reddit account.\").nullable(),\n is_mod: z.boolean().describe(\"Whether the user is a moderator of any subreddit.\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp when the account was created in local epoch-seconds.\").nullable(),\n is_gold: z.boolean().describe(\"Whether the user has an active Reddit Premium (formerly Gold) subscription.\").nullable(),\n icon_img: z.string().describe(\"URL to the user's profile icon/avatar image.\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user account is verified.\").nullable().optional(),\n subreddit: RedditGetRedditUserAbout_UserSubredditSchema.nullable().optional(),\n link_karma: z.number().int().describe(\"Total karma points earned from submitted posts/links.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp when the account was created in UTC epoch-seconds.\").nullable(),\n is_employee: z.boolean().describe(\"Whether the user is a Reddit employee.\").nullable().optional(),\n total_karma: z.number().int().describe(\"Combined total karma from all sources.\").nullable().optional(),\n awardee_karma: z.number().int().describe(\"Karma earned from receiving awards.\").nullable().optional(),\n awarder_karma: z.number().int().describe(\"Karma earned from giving awards.\").nullable().optional(),\n comment_karma: z.number().int().describe(\"Total karma points earned from comments.\").nullable(),\n snoovatar_img: z.string().describe(\"URL to the user's Snoo avatar image if customized.\").nullable().optional(),\n snoovatar_size: z.array(z.number().int()).describe(\"Dimensions of the Snoo avatar image.\").nullable().optional(),\n accept_followers: z.boolean().describe(\"Whether the user accepts followers.\").nullable().optional(),\n hide_from_robots: z.boolean().describe(\"Whether the user has opted to hide their profile from search engines.\").nullable().optional(),\n has_verified_email: z.boolean().describe(\"Whether the user has verified their email address.\").nullable().optional(),\n pref_show_snoovatar: z.boolean().describe(\"Whether the user prefers to show their Snoo avatar.\").nullable().optional(),\n}).passthrough().describe(\"User profile data returned by Reddit API.\");\nexport const RedditGetRedditUserAboutOutput = z.object({\n data: RedditGetRedditUserAbout_UserDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response object, typically 't2' for user accounts.\").nullable(),\n}).passthrough().describe(\"Response from getting user information from Reddit.\");\n\nexport const redditGetRedditUserAbout: AppAction<\n typeof RedditGetRedditUserAboutInput,\n typeof RedditGetRedditUserAboutOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_REDDIT_USER_ABOUT\", {\n slug: \"reddit-get-reddit-user-about\",\n name: \"Get user information\",\n description: \"Retrieves information about a specified Reddit user account, including karma scores and gold status. Use when you need to get profile information for any public Reddit user.\",\n input: RedditGetRedditUserAbout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wC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"get-scopes.cjs","names":["z","action"],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const 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: AppAction<\n typeof RedditGetScopesInput,\n typeof RedditGetScopesOutput,\n typeof reddit.credential\n> = 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":";;;;AAMA,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,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-scopes.d.ts
|
|
@@ -5,19 +7,7 @@ declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const RedditGetScopesOutput: z.ZodObject<{
|
|
6
8
|
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const redditGetScopes:
|
|
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>>]>;
|
|
10
|
+
declare const redditGetScopes: AppAction<typeof RedditGetScopesInput, typeof RedditGetScopesOutput, typeof reddit.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { redditGetScopes };
|
|
23
13
|
//# sourceMappingURL=get-scopes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scopes.d.cts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-scopes.d.ts
|
|
@@ -5,19 +7,7 @@ declare const RedditGetScopesInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const RedditGetScopesOutput: z.ZodObject<{
|
|
6
8
|
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const redditGetScopes:
|
|
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>>]>;
|
|
10
|
+
declare const redditGetScopes: AppAction<typeof RedditGetScopesInput, typeof RedditGetScopesOutput, typeof reddit.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { redditGetScopes };
|
|
23
13
|
//# sourceMappingURL=get-scopes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scopes.d.mts","names":[],"sources":["../../src/actions/get-scopes.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"get-scopes.mjs","names":[],"sources":["../../src/actions/get-scopes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const 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: AppAction<\n typeof RedditGetScopesInput,\n typeof RedditGetScopesOutput,\n typeof reddit.credential\n> = 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":";;;AAWA,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkC,EAAE,OAAO,CAAC,CAarC;CACP,QAbmC,EAAE,OAAO,EAC5C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,EACtO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-subreddit-rules.cjs","names":["z","action"],"sources":["../../src/actions/get-subreddit-rules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { reddit } from \"../app\";\n\nexport const RedditGetSubredditRulesInput = z.object({\n raw_json: z.boolean().default(true).describe(\"If True, prevents HTML encoding of special characters in rule descriptions. Recommended to set to True for cleaner text output.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (without 'r/' prefix) for which to retrieve posting rules.\"),\n});\nconst RedditGetSubredditRules_SubredditRuleSchema = z.object({\n kind: z.string().describe(\"The type of content this rule applies to. Values: 'all' (both posts and comments), 'link' (posts only), or 'comment' (comments only).\").nullable(),\n priority: z.number().int().describe(\"The display order priority of this rule, matching its index position in the rules array.\").nullable(),\n short_name: z.string().describe(\"Brief title of the rule, up to 100 characters. Displayed as the rule heading.\").nullable(),\n created_utc: z.number().describe(\"Unix timestamp of when this rule was created.\").nullable(),\n description: z.string().describe(\"Full text description of the rule, up to 500 characters. May contain markdown formatting.\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the rule description. May be omitted if description is empty or raw_json=1 is used.\").nullable().optional(),\n violation_reason: z.string().describe(\"Text shown when content violates this rule, up to 100 characters. Used in removal messages.\").nullable(),\n}).passthrough().describe(\"Represents a single community rule for a subreddit.\");\nexport const RedditGetSubredditRulesOutput = z.object({\n rules: z.array(RedditGetSubredditRules_SubredditRuleSchema).describe(\"Array of community-specific rules unique to this subreddit. Empty array if no custom rules are defined.\"),\n site_rules: z.array(z.string()).describe(\"Array of Reddit's platform-wide rule identifiers that apply to all subreddits.\"),\n site_rules_flow: z.array(z.record(z.string(), z.unknown())).describe(\"Hierarchical flow structure for reporting content violations. Defines multi-step UI flows for selecting report reasons. Each reason object contains reasonText and reasonTextToShow fields, and may include additional fields like nextStepHeader, nextStepReasons (nested array of reason objects), canWriteNotes, isAbuseOfReportButton, notesInputTitle, complaintButtonText, complaintUrl, complaintPageTitle, fileComplaint, complaintPrompt, usernamesInputTitle, canSpecifyUsernames, requestCrisisSupport, and oneUsername.\").nullable().optional(),\n}).passthrough().describe(\"Response containing subreddit-specific rules, Reddit's platform-wide rules, and site rules flow information.\");\n\nexport const redditGetSubredditRules: AppAction<\n typeof RedditGetSubredditRulesInput,\n typeof RedditGetSubredditRulesOutput,\n typeof reddit.credential\n> = action(\"REDDIT_GET_SUBREDDIT_RULES\", {\n slug: \"reddit-get-subreddit-rules\",\n name: \"Get subreddit rules\",\n description: \"Fetch the explicit posting rules for a subreddit to ensure compliance before posting or commenting. Use when you need to verify content meets community guidelines or explain subreddit requirements to users.\",\n input: RedditGetSubredditRulesInput,\n output: RedditGetSubredditRulesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yGAAyG;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACzH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qgBAAqgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8GAA8G;AAExI,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { reddit } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-subreddit-rules.d.ts
|
|
@@ -18,22 +20,7 @@ declare const RedditGetSubredditRulesOutput: z.ZodObject<{
|
|
|
18
20
|
site_rules: z.ZodArray<z.ZodString>;
|
|
19
21
|
site_rules_flow: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const redditGetSubredditRules:
|
|
22
|
-
subreddit: string;
|
|
23
|
-
raw_json?: boolean | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
accessToken: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"reddit", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
accessToken: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const redditGetSubredditRules: AppAction<typeof RedditGetSubredditRulesInput, typeof RedditGetSubredditRulesOutput, typeof reddit.credential>;
|
|
37
24
|
//#endregion
|
|
38
25
|
export { redditGetSubredditRules };
|
|
39
26
|
//# sourceMappingURL=get-subreddit-rules.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subreddit-rules.d.cts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subreddit-rules.d.cts","names":[],"sources":["../../src/actions/get-subreddit-rules.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|