@keystrokehq/reddit 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-reddit-post.cjs +2 -2
- package/dist/actions/create-reddit-post.cjs.map +1 -1
- package/dist/actions/create-reddit-post.d.cts +29 -3
- package/dist/actions/create-reddit-post.d.cts.map +1 -1
- package/dist/actions/create-reddit-post.d.mts +29 -3
- package/dist/actions/create-reddit-post.d.mts.map +1 -1
- package/dist/actions/create-reddit-post.mjs +2 -2
- package/dist/actions/create-reddit-post.mjs.map +1 -1
- package/dist/actions/delete-reddit-comment.cjs +1 -1
- package/dist/actions/delete-reddit-comment.cjs.map +1 -1
- package/dist/actions/delete-reddit-comment.d.cts +7 -3
- package/dist/actions/delete-reddit-comment.d.cts.map +1 -1
- package/dist/actions/delete-reddit-comment.d.mts +7 -3
- package/dist/actions/delete-reddit-comment.d.mts.map +1 -1
- package/dist/actions/delete-reddit-comment.mjs +1 -1
- package/dist/actions/delete-reddit-comment.mjs.map +1 -1
- package/dist/actions/delete-reddit-post.cjs +1 -1
- package/dist/actions/delete-reddit-post.cjs.map +1 -1
- package/dist/actions/delete-reddit-post.d.cts +7 -3
- package/dist/actions/delete-reddit-post.d.cts.map +1 -1
- package/dist/actions/delete-reddit-post.d.mts +7 -3
- package/dist/actions/delete-reddit-post.d.mts.map +1 -1
- package/dist/actions/delete-reddit-post.mjs +1 -1
- package/dist/actions/delete-reddit-post.mjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.cjs +3 -3
- package/dist/actions/edit-reddit-comment-or-post.cjs.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.d.cts +64 -3
- package/dist/actions/edit-reddit-comment-or-post.d.cts.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.d.mts +64 -3
- package/dist/actions/edit-reddit-comment-or-post.d.mts.map +1 -1
- package/dist/actions/edit-reddit-comment-or-post.mjs +3 -3
- package/dist/actions/edit-reddit-comment-or-post.mjs.map +1 -1
- package/dist/actions/get-controversial-posts.cjs +6 -6
- package/dist/actions/get-controversial-posts.cjs.map +1 -1
- package/dist/actions/get-controversial-posts.d.cts +79 -3
- package/dist/actions/get-controversial-posts.d.cts.map +1 -1
- package/dist/actions/get-controversial-posts.d.mts +79 -3
- package/dist/actions/get-controversial-posts.d.mts.map +1 -1
- package/dist/actions/get-controversial-posts.mjs +6 -6
- package/dist/actions/get-controversial-posts.mjs.map +1 -1
- package/dist/actions/get-me-prefs.cjs +1 -1
- package/dist/actions/get-me-prefs.cjs.map +1 -1
- package/dist/actions/get-me-prefs.d.cts +69 -3
- package/dist/actions/get-me-prefs.d.cts.map +1 -1
- package/dist/actions/get-me-prefs.d.mts +69 -3
- package/dist/actions/get-me-prefs.d.mts.map +1 -1
- package/dist/actions/get-me-prefs.mjs +1 -1
- package/dist/actions/get-me-prefs.mjs.map +1 -1
- package/dist/actions/get-r-top.cjs +6 -6
- package/dist/actions/get-r-top.cjs.map +1 -1
- package/dist/actions/get-r-top.d.cts +57 -3
- package/dist/actions/get-r-top.d.cts.map +1 -1
- package/dist/actions/get-r-top.d.mts +57 -3
- package/dist/actions/get-r-top.d.mts.map +1 -1
- package/dist/actions/get-r-top.mjs +6 -6
- package/dist/actions/get-r-top.mjs.map +1 -1
- package/dist/actions/get-random.cjs +18 -18
- package/dist/actions/get-random.cjs.map +1 -1
- package/dist/actions/get-random.d.cts +41 -3
- package/dist/actions/get-random.d.cts.map +1 -1
- package/dist/actions/get-random.d.mts +41 -3
- package/dist/actions/get-random.d.mts.map +1 -1
- package/dist/actions/get-random.mjs +18 -18
- package/dist/actions/get-random.mjs.map +1 -1
- package/dist/actions/get-reddit-user-about.cjs +11 -11
- package/dist/actions/get-reddit-user-about.cjs.map +1 -1
- package/dist/actions/get-reddit-user-about.d.cts +75 -3
- package/dist/actions/get-reddit-user-about.d.cts.map +1 -1
- package/dist/actions/get-reddit-user-about.d.mts +75 -3
- package/dist/actions/get-reddit-user-about.d.mts.map +1 -1
- package/dist/actions/get-reddit-user-about.mjs +11 -11
- package/dist/actions/get-reddit-user-about.mjs.map +1 -1
- package/dist/actions/get-scopes.cjs +1 -1
- package/dist/actions/get-scopes.cjs.map +1 -1
- package/dist/actions/get-scopes.d.cts +5 -3
- package/dist/actions/get-scopes.d.cts.map +1 -1
- package/dist/actions/get-scopes.d.mts +5 -3
- package/dist/actions/get-scopes.d.mts.map +1 -1
- package/dist/actions/get-scopes.mjs +1 -1
- package/dist/actions/get-scopes.mjs.map +1 -1
- package/dist/actions/get-subreddit-rules.cjs +7 -7
- package/dist/actions/get-subreddit-rules.cjs.map +1 -1
- package/dist/actions/get-subreddit-rules.d.cts +21 -3
- package/dist/actions/get-subreddit-rules.d.cts.map +1 -1
- package/dist/actions/get-subreddit-rules.d.mts +21 -3
- package/dist/actions/get-subreddit-rules.d.mts.map +1 -1
- package/dist/actions/get-subreddit-rules.mjs +7 -7
- package/dist/actions/get-subreddit-rules.mjs.map +1 -1
- package/dist/actions/get-subreddits-search.cjs +6 -6
- package/dist/actions/get-subreddits-search.cjs.map +1 -1
- package/dist/actions/get-subreddits-search.d.cts +67 -3
- package/dist/actions/get-subreddits-search.d.cts.map +1 -1
- package/dist/actions/get-subreddits-search.d.mts +67 -3
- package/dist/actions/get-subreddits-search.d.mts.map +1 -1
- package/dist/actions/get-subreddits-search.mjs +6 -6
- package/dist/actions/get-subreddits-search.mjs.map +1 -1
- package/dist/actions/get-user-flair.cjs +3 -3
- package/dist/actions/get-user-flair.cjs.map +1 -1
- package/dist/actions/get-user-flair.d.cts +21 -3
- package/dist/actions/get-user-flair.d.cts.map +1 -1
- package/dist/actions/get-user-flair.d.mts +21 -3
- package/dist/actions/get-user-flair.d.mts.map +1 -1
- package/dist/actions/get-user-flair.mjs +3 -3
- package/dist/actions/get-user-flair.mjs.map +1 -1
- package/dist/actions/get-username-available.cjs +3 -3
- package/dist/actions/get-username-available.cjs.map +1 -1
- package/dist/actions/get-username-available.d.cts +10 -3
- package/dist/actions/get-username-available.d.cts.map +1 -1
- package/dist/actions/get-username-available.d.mts +10 -3
- package/dist/actions/get-username-available.d.mts.map +1 -1
- package/dist/actions/get-username-available.mjs +3 -3
- package/dist/actions/get-username-available.mjs.map +1 -1
- package/dist/actions/get.cjs +18 -18
- package/dist/actions/get.cjs.map +1 -1
- package/dist/actions/get.d.cts +53 -3
- package/dist/actions/get.d.cts.map +1 -1
- package/dist/actions/get.d.mts +53 -3
- package/dist/actions/get.d.mts.map +1 -1
- package/dist/actions/get.mjs +18 -18
- package/dist/actions/get.mjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.cjs +6 -6
- package/dist/actions/list-subreddit-post-flairs.cjs.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.d.cts +27 -3
- package/dist/actions/list-subreddit-post-flairs.d.cts.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.d.mts +27 -3
- package/dist/actions/list-subreddit-post-flairs.d.mts.map +1 -1
- package/dist/actions/list-subreddit-post-flairs.mjs +6 -6
- package/dist/actions/list-subreddit-post-flairs.mjs.map +1 -1
- package/dist/actions/post-reddit-comment.cjs +26 -26
- package/dist/actions/post-reddit-comment.cjs.map +1 -1
- package/dist/actions/post-reddit-comment.d.cts +54 -3
- package/dist/actions/post-reddit-comment.d.cts.map +1 -1
- package/dist/actions/post-reddit-comment.d.mts +54 -3
- package/dist/actions/post-reddit-comment.d.mts.map +1 -1
- package/dist/actions/post-reddit-comment.mjs +26 -26
- package/dist/actions/post-reddit-comment.mjs.map +1 -1
- package/dist/actions/retrieve-post-comments.cjs +7 -7
- package/dist/actions/retrieve-post-comments.cjs.map +1 -1
- package/dist/actions/retrieve-post-comments.d.cts +72 -3
- package/dist/actions/retrieve-post-comments.d.cts.map +1 -1
- package/dist/actions/retrieve-post-comments.d.mts +72 -3
- package/dist/actions/retrieve-post-comments.d.mts.map +1 -1
- package/dist/actions/retrieve-post-comments.mjs +7 -7
- package/dist/actions/retrieve-post-comments.mjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.cjs +21 -21
- package/dist/actions/retrieve-reddit-post.cjs.map +1 -1
- package/dist/actions/retrieve-reddit-post.d.cts +47 -3
- package/dist/actions/retrieve-reddit-post.d.cts.map +1 -1
- package/dist/actions/retrieve-reddit-post.d.mts +47 -3
- package/dist/actions/retrieve-reddit-post.d.mts.map +1 -1
- package/dist/actions/retrieve-reddit-post.mjs +21 -21
- package/dist/actions/retrieve-reddit-post.mjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.cjs +11 -11
- package/dist/actions/retrieve-specific-comment.cjs.map +1 -1
- package/dist/actions/retrieve-specific-comment.d.cts +47 -3
- package/dist/actions/retrieve-specific-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-specific-comment.d.mts +47 -3
- package/dist/actions/retrieve-specific-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-specific-comment.mjs +11 -11
- package/dist/actions/retrieve-specific-comment.mjs.map +1 -1
- package/dist/actions/search-across-subreddits.cjs +16 -16
- package/dist/actions/search-across-subreddits.cjs.map +1 -1
- package/dist/actions/search-across-subreddits.d.cts +43 -3
- package/dist/actions/search-across-subreddits.d.cts.map +1 -1
- package/dist/actions/search-across-subreddits.d.mts +43 -3
- package/dist/actions/search-across-subreddits.d.mts.map +1 -1
- package/dist/actions/search-across-subreddits.mjs +16 -16
- package/dist/actions/search-across-subreddits.mjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.cjs +1 -1
- package/dist/actions/toggle-inbox-replies.cjs.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.cts +9 -3
- package/dist/actions/toggle-inbox-replies.d.cts.map +1 -1
- package/dist/actions/toggle-inbox-replies.d.mts +9 -3
- package/dist/actions/toggle-inbox-replies.d.mts.map +1 -1
- package/dist/actions/toggle-inbox-replies.mjs +1 -1
- package/dist/actions/toggle-inbox-replies.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-subreddits-search.d.ts
|
|
4
|
-
declare const RedditGetSubredditsSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetSubredditsSearchInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
show: z.ZodOptional<z.ZodString>;
|
|
7
|
+
sort: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
relevance: "relevance";
|
|
9
|
+
activity: "activity";
|
|
10
|
+
}>>>;
|
|
11
|
+
after: z.ZodOptional<z.ZodString>;
|
|
12
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
14
|
+
before: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sr_detail: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
show_users: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
|
|
19
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
children: z.ZodArray<z.ZodObject<{
|
|
25
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
over18: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
hide_ads: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
icon_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
key_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
banner_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
header_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
quarantine: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
created_utc: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
subscribers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
primary_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
community_icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
subreddit_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
description_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
whitelist_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
active_user_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
user_is_moderator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
public_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
user_is_subscriber: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
advertiser_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
display_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
|
+
q: string;
|
|
62
|
+
show?: string | undefined;
|
|
63
|
+
sort?: "relevance" | "activity" | undefined;
|
|
64
|
+
after?: string | undefined;
|
|
65
|
+
count?: number | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
before?: string | undefined;
|
|
68
|
+
sr_detail?: boolean | undefined;
|
|
69
|
+
show_users?: boolean | undefined;
|
|
70
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
71
|
//#endregion
|
|
8
72
|
export { redditGetSubredditsSearch };
|
|
9
73
|
//# sourceMappingURL=get-subreddits-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-subreddits-search.d.cts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-subreddits-search.d.ts
|
|
4
|
-
declare const RedditGetSubredditsSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetSubredditsSearchInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
show: z.ZodOptional<z.ZodString>;
|
|
7
|
+
sort: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
relevance: "relevance";
|
|
9
|
+
activity: "activity";
|
|
10
|
+
}>>>;
|
|
11
|
+
after: z.ZodOptional<z.ZodString>;
|
|
12
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
14
|
+
before: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sr_detail: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
show_users: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const RedditGetSubredditsSearchOutput: z.ZodObject<{
|
|
19
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
dist: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
modhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
children: z.ZodArray<z.ZodObject<{
|
|
25
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
over18: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
hide_ads: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
icon_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
key_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
banner_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
header_img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
quarantine: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
+
created_utc: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
subscribers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
primary_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
community_icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
subreddit_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
description_html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
whitelist_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
active_user_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
user_is_moderator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
public_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
user_is_subscriber: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
advertiser_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
display_name_prefixed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
declare const redditGetSubredditsSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
|
+
q: string;
|
|
62
|
+
show?: string | undefined;
|
|
63
|
+
sort?: "relevance" | "activity" | undefined;
|
|
64
|
+
after?: string | undefined;
|
|
65
|
+
count?: number | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
before?: string | undefined;
|
|
68
|
+
sr_detail?: boolean | undefined;
|
|
69
|
+
show_users?: boolean | undefined;
|
|
70
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
71
|
//#endregion
|
|
8
72
|
export { redditGetSubredditsSearch };
|
|
9
73
|
//# sourceMappingURL=get-subreddits-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-subreddits-search.d.mts","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -41,18 +41,18 @@ const RedditGetSubredditsSearch_SubredditDataSchema = z.object({
|
|
|
41
41
|
user_is_subscriber: z.boolean().describe("Whether the current user is subscribed to this subreddit.").nullable().optional(),
|
|
42
42
|
advertiser_category: z.string().describe("Category for advertising purposes.").nullable().optional(),
|
|
43
43
|
display_name_prefixed: z.string().describe("Display name with r/ prefix (e.g., 'r/python').").nullable().optional()
|
|
44
|
-
}).describe("Subreddit data object containing essential subreddit information.");
|
|
44
|
+
}).passthrough().describe("Subreddit data object containing essential subreddit information.");
|
|
45
45
|
const RedditGetSubredditsSearch_SubredditChildSchema = z.object({
|
|
46
46
|
data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),
|
|
47
|
-
kind: z.string().describe("Type identifier for the object, typically 't5' for subreddits.")
|
|
48
|
-
}).describe("Wrapper object for each subreddit in the children array.");
|
|
47
|
+
kind: z.string().describe("Type identifier for the object, typically 't5' for subreddits.").nullable()
|
|
48
|
+
}).passthrough().describe("Wrapper object for each subreddit in the children array.");
|
|
49
49
|
const RedditGetSubredditsSearch_SearchListingDataSchema = z.object({
|
|
50
50
|
dist: z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
|
|
51
51
|
after: z.string().describe("Fullname of the last item in the listing, used as cursor for next page.").nullable().optional(),
|
|
52
52
|
before: z.string().describe("Fullname of the first item in the listing, used as cursor for previous page.").nullable().optional(),
|
|
53
53
|
modhash: z.string().describe("Modhash token for the current session.").nullable().optional(),
|
|
54
54
|
children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe("Array of subreddit objects matching the search.")
|
|
55
|
-
}).describe("Container object holding the listing response data.");
|
|
55
|
+
}).passthrough().describe("Container object holding the listing response data.");
|
|
56
56
|
const redditGetSubredditsSearch = action("REDDIT_GET_SUBREDDITS_SEARCH", {
|
|
57
57
|
slug: "reddit-get-subreddits-search",
|
|
58
58
|
name: "Search subreddits",
|
|
@@ -60,8 +60,8 @@ const redditGetSubredditsSearch = action("REDDIT_GET_SUBREDDITS_SEARCH", {
|
|
|
60
60
|
input: RedditGetSubredditsSearchInput,
|
|
61
61
|
output: z.object({
|
|
62
62
|
data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),
|
|
63
|
-
kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for search results.")
|
|
64
|
-
}).describe("Response from searching subreddits.")
|
|
63
|
+
kind: z.string().describe("Type identifier for the response wrapper, typically 'Listing' for search results.").nullable()
|
|
64
|
+
}).passthrough().describe("Response from searching subreddits.")
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { redditGetSubredditsSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subreddits-search.mjs","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditsSearchInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema: z.ZodTypeAny = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\"),\n}).describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema: z.ZodTypeAny = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput: z.ZodTypeAny = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\"),\n}).describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS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C,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAMjE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2D,EAAE,OAAO;EACpE,MAAM,kDAAkD,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAC/G,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-subreddits-search.mjs","names":[],"sources":["../../src/actions/get-subreddits-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetSubredditsSearchInput = z.object({\n q: z.string().describe(\"A search query term to search subreddit titles and descriptions. Use specific keywords to find relevant subreddits.\"),\n show: z.string().describe(\"The string 'all' to show all subreddits including those the user might have filtered.\").optional(),\n sort: z.enum([\"relevance\", \"activity\"]).default(\"relevance\").describe(\"Sort order for the search results. 'relevance' sorts by relevance to the query (default). 'activity' sorts by subreddit activity.\").optional(),\n after: z.string().describe(\"Fullname of a thing - pagination cursor for the next page. Use the 'after' value from the previous response to get the next set of results.\").optional(),\n count: z.number().int().describe(\"A positive integer (default: 0) representing the number of items already seen in previous pages. Used for pagination tracking.\").optional(),\n limit: z.number().int().default(25).describe(\"The maximum number of subreddits to return. Default is 25. Maximum allowed value is 100.\").optional(),\n before: z.string().describe(\"Fullname of a thing - pagination cursor for the previous page. Use the 'before' value from the previous response to get the previous set of results.\").optional(),\n sr_detail: z.boolean().describe(\"Expand subreddits with additional details. Set to true to get more detailed information about each subreddit.\").optional(),\n show_users: z.boolean().describe(\"Boolean value to include user results in the search. Set to true to include users matching the search query.\").optional(),\n});\nconst RedditGetSubredditsSearch_SubredditDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the subreddit in base36 format.\").nullable().optional(),\n url: z.string().describe(\"Relative URL path to the subreddit (e.g., '/r/python/').\").nullable().optional(),\n lang: z.string().describe(\"Primary language of the subreddit.\").nullable().optional(),\n name: z.string().describe(\"Fullname of the subreddit with type prefix (e.g., 't5_xxxxx').\").nullable().optional(),\n title: z.string().describe(\"Title or headline of the subreddit.\").nullable().optional(),\n over18: z.boolean().describe(\"Whether the subreddit is marked as NSFW (18+).\").nullable().optional(),\n created: z.number().describe(\"Unix timestamp of subreddit creation in local epoch.\").nullable().optional(),\n hide_ads: z.boolean().describe(\"Whether ads are hidden in this subreddit.\").nullable().optional(),\n icon_img: z.string().describe(\"URL to the subreddit's icon image.\").nullable().optional(),\n key_color: z.string().describe(\"Key color for the subreddit theme.\").nullable().optional(),\n banner_img: z.string().describe(\"URL to the subreddit's banner image.\").nullable().optional(),\n header_img: z.string().describe(\"URL to the subreddit's header image.\").nullable().optional(),\n quarantine: z.boolean().describe(\"Whether the subreddit is quarantined.\").nullable().optional(),\n created_utc: z.number().describe(\"Unix timestamp of subreddit creation in UTC epoch.\").nullable().optional(),\n description: z.string().describe(\"Full description of the subreddit in markdown format.\").nullable().optional(),\n subscribers: z.number().int().describe(\"Number of subscribers to the subreddit.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the subreddit without r/ prefix.\").nullable().optional(),\n primary_color: z.string().describe(\"Primary color for the subreddit theme.\").nullable().optional(),\n community_icon: z.string().describe(\"URL to the subreddit's community icon.\").nullable().optional(),\n subreddit_type: z.string().describe(\"Type of subreddit (e.g., 'public', 'private', 'restricted').\").nullable().optional(),\n description_html: z.string().describe(\"HTML-rendered version of the description.\").nullable().optional(),\n whitelist_status: z.string().describe(\"Whitelist status of the subreddit.\").nullable().optional(),\n active_user_count: z.number().int().describe(\"Number of active users currently browsing the subreddit.\").nullable().optional(),\n user_is_moderator: z.boolean().describe(\"Whether the current user is a moderator of this subreddit.\").nullable().optional(),\n public_description: z.string().describe(\"Short public description of the subreddit.\").nullable().optional(),\n user_is_subscriber: z.boolean().describe(\"Whether the current user is subscribed to this subreddit.\").nullable().optional(),\n advertiser_category: z.string().describe(\"Category for advertising purposes.\").nullable().optional(),\n display_name_prefixed: z.string().describe(\"Display name with r/ prefix (e.g., 'r/python').\").nullable().optional(),\n}).passthrough().describe(\"Subreddit data object containing essential subreddit information.\");\nconst RedditGetSubredditsSearch_SubredditChildSchema = z.object({\n data: RedditGetSubredditsSearch_SubredditDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the object, typically 't5' for subreddits.\").nullable(),\n}).passthrough().describe(\"Wrapper object for each subreddit in the children array.\");\nconst RedditGetSubredditsSearch_SearchListingDataSchema = z.object({\n dist: z.number().int().describe(\"The number of children returned in this listing.\").nullable().optional(),\n after: z.string().describe(\"Fullname of the last item in the listing, used as cursor for next page.\").nullable().optional(),\n before: z.string().describe(\"Fullname of the first item in the listing, used as cursor for previous page.\").nullable().optional(),\n modhash: z.string().describe(\"Modhash token for the current session.\").nullable().optional(),\n children: z.array(RedditGetSubredditsSearch_SubredditChildSchema).describe(\"Array of subreddit objects matching the search.\"),\n}).passthrough().describe(\"Container object holding the listing response data.\");\nexport const RedditGetSubredditsSearchOutput = z.object({\n data: RedditGetSubredditsSearch_SearchListingDataSchema.nullable(),\n kind: z.string().describe(\"Type identifier for the response wrapper, typically 'Listing' for search results.\").nullable(),\n}).passthrough().describe(\"Response from searching subreddits.\");\n\nexport const redditGetSubredditsSearch = action(\"REDDIT_GET_SUBREDDITS_SEARCH\", {\n slug: \"reddit-get-subreddits-search\",\n name: \"Search subreddits\",\n description: \"Tool to search subreddits by title and description. Use when you need to find subreddits matching a specific topic or keyword. Returns a paginated listing of subreddits with their details including subscribers, descriptions, and other metadata.\",\n input: RedditGetSubredditsSearchInput,\n output: RedditGetSubredditsSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAC5I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,MAAM,EAAE,KAAK,CAAC,aAAa,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CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,iDAAiD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,kDAAkD,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
|
|
@@ -8,15 +8,15 @@ const RedditGetUserFlairInput = zod.z.object({
|
|
|
8
8
|
subreddit: zod.z.string().describe("Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.")
|
|
9
9
|
});
|
|
10
10
|
const RedditGetUserFlair_UserFlairEntrySchema = zod.z.object({
|
|
11
|
-
user: zod.z.string().describe("Username of the Reddit user who has been assigned this flair."),
|
|
11
|
+
user: zod.z.string().describe("Username of the Reddit user who has been assigned this flair.").nullable(),
|
|
12
12
|
flair_text: zod.z.string().describe("The text content displayed as the user's flair.").nullable().optional(),
|
|
13
13
|
flair_css_class: zod.z.string().describe("CSS class name applied to the user's flair for visual styling.").nullable().optional()
|
|
14
|
-
}).describe("Represents a single user flair assignment in a subreddit.");
|
|
14
|
+
}).passthrough().describe("Represents a single user flair assignment in a subreddit.");
|
|
15
15
|
const RedditGetUserFlairOutput = zod.z.object({
|
|
16
16
|
next: zod.z.string().describe("User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.").nullable().optional(),
|
|
17
17
|
prev: zod.z.string().describe("User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.").nullable().optional(),
|
|
18
18
|
users: zod.z.array(RedditGetUserFlair_UserFlairEntrySchema).describe("Array of user flair assignments for the subreddit.")
|
|
19
|
-
}).describe("Response containing paginated user flair assignments for a subreddit.");
|
|
19
|
+
}).passthrough().describe("Response containing paginated user flair assignments for a subreddit.");
|
|
20
20
|
const redditGetUserFlair = require_action.action("REDDIT_GET_USER_FLAIR", {
|
|
21
21
|
slug: "reddit-get-user-flair",
|
|
22
22
|
name: "Get user flair",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-flair.cjs","names":["z","action"],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput
|
|
1
|
+
{"version":3,"file":"get-user-flair.cjs","names":["z","action"],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput = z.object({\n after: z.string().describe(\"User ID to use as the anchor for fetching the next page of results. Use the 'next' value from a previous response.\").optional(),\n limit: z.number().int().describe(\"Maximum number of user flair entries to return per page. Reddit default is 25, maximum is 1000.\").optional(),\n before: z.string().describe(\"User ID to use as the anchor for fetching the previous page of results. Use the 'prev' value from a previous response.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.\"),\n});\nconst RedditGetUserFlair_UserFlairEntrySchema = z.object({\n user: z.string().describe(\"Username of the Reddit user who has been assigned this flair.\").nullable(),\n flair_text: z.string().describe(\"The text content displayed as the user's flair.\").nullable().optional(),\n flair_css_class: z.string().describe(\"CSS class name applied to the user's flair for visual styling.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single user flair assignment in a subreddit.\");\nexport const RedditGetUserFlairOutput = z.object({\n next: z.string().describe(\"User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.\").nullable().optional(),\n prev: z.string().describe(\"User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.\").nullable().optional(),\n users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe(\"Array of user flair assignments for the subreddit.\"),\n}).passthrough().describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair = action(\"REDDIT_GET_USER_FLAIR\", {\n slug: \"reddit-get-user-flair\",\n name: \"Get user flair\",\n description: \"Fetches the list of user flair assignments for a given subreddit. Returns paginated results with user flair details. Returned flair_id values are scoped to the specific subreddit and must not be reused across different subreddits.\",\n input: RedditGetUserFlairInput,\n output: RedditGetUserFlairOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user-flair.d.ts
|
|
4
|
-
declare const RedditGetUserFlairInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetUserFlairInput: z.ZodObject<{
|
|
5
|
+
after: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
before: z.ZodOptional<z.ZodString>;
|
|
8
|
+
subreddit: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RedditGetUserFlairOutput: z.ZodObject<{
|
|
11
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
users: z.ZodArray<z.ZodObject<{
|
|
14
|
+
user: z.ZodNullable<z.ZodString>;
|
|
15
|
+
flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
subreddit: string;
|
|
21
|
+
after?: string | undefined;
|
|
22
|
+
limit?: number | undefined;
|
|
23
|
+
before?: string | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { redditGetUserFlair };
|
|
9
27
|
//# sourceMappingURL=get-user-flair.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-flair.d.cts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-user-flair.d.cts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user-flair.d.ts
|
|
4
|
-
declare const RedditGetUserFlairInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetUserFlairInput: z.ZodObject<{
|
|
5
|
+
after: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
before: z.ZodOptional<z.ZodString>;
|
|
8
|
+
subreddit: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RedditGetUserFlairOutput: z.ZodObject<{
|
|
11
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
users: z.ZodArray<z.ZodObject<{
|
|
14
|
+
user: z.ZodNullable<z.ZodString>;
|
|
15
|
+
flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
flair_css_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const redditGetUserFlair: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
subreddit: string;
|
|
21
|
+
after?: string | undefined;
|
|
22
|
+
limit?: number | undefined;
|
|
23
|
+
before?: string | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { redditGetUserFlair };
|
|
9
27
|
//# sourceMappingURL=get-user-flair.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-flair.d.mts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-user-flair.d.mts","names":[],"sources":["../../src/actions/get-user-flair.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -8,10 +8,10 @@ const RedditGetUserFlairInput = z.object({
|
|
|
8
8
|
subreddit: z.string().describe("Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.")
|
|
9
9
|
});
|
|
10
10
|
const RedditGetUserFlair_UserFlairEntrySchema = z.object({
|
|
11
|
-
user: z.string().describe("Username of the Reddit user who has been assigned this flair."),
|
|
11
|
+
user: z.string().describe("Username of the Reddit user who has been assigned this flair.").nullable(),
|
|
12
12
|
flair_text: z.string().describe("The text content displayed as the user's flair.").nullable().optional(),
|
|
13
13
|
flair_css_class: z.string().describe("CSS class name applied to the user's flair for visual styling.").nullable().optional()
|
|
14
|
-
}).describe("Represents a single user flair assignment in a subreddit.");
|
|
14
|
+
}).passthrough().describe("Represents a single user flair assignment in a subreddit.");
|
|
15
15
|
const redditGetUserFlair = action("REDDIT_GET_USER_FLAIR", {
|
|
16
16
|
slug: "reddit-get-user-flair",
|
|
17
17
|
name: "Get user flair",
|
|
@@ -21,7 +21,7 @@ const redditGetUserFlair = action("REDDIT_GET_USER_FLAIR", {
|
|
|
21
21
|
next: z.string().describe("User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.").nullable().optional(),
|
|
22
22
|
prev: z.string().describe("User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.").nullable().optional(),
|
|
23
23
|
users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe("Array of user flair assignments for the subreddit.")
|
|
24
|
-
}).describe("Response containing paginated user flair assignments for a subreddit.")
|
|
24
|
+
}).passthrough().describe("Response containing paginated user flair assignments for a subreddit.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { redditGetUserFlair };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-flair.mjs","names":[],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput
|
|
1
|
+
{"version":3,"file":"get-user-flair.mjs","names":[],"sources":["../../src/actions/get-user-flair.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUserFlairInput = z.object({\n after: z.string().describe(\"User ID to use as the anchor for fetching the next page of results. Use the 'next' value from a previous response.\").optional(),\n limit: z.number().int().describe(\"Maximum number of user flair entries to return per page. Reddit default is 25, maximum is 1000.\").optional(),\n before: z.string().describe(\"User ID to use as the anchor for fetching the previous page of results. Use the 'prev' value from a previous response.\").optional(),\n subreddit: z.string().describe(\"Name of the subreddit (e.g., 'pics', 'gaming') for which to retrieve user flair assignments. Do not include 'r/' prefix or URL paths — bare name only.\"),\n});\nconst RedditGetUserFlair_UserFlairEntrySchema = z.object({\n user: z.string().describe(\"Username of the Reddit user who has been assigned this flair.\").nullable(),\n flair_text: z.string().describe(\"The text content displayed as the user's flair.\").nullable().optional(),\n flair_css_class: z.string().describe(\"CSS class name applied to the user's flair for visual styling.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single user flair assignment in a subreddit.\");\nexport const RedditGetUserFlairOutput = z.object({\n next: z.string().describe(\"User ID parameter for fetching the subsequent page of results. Used with the 'after' query parameter for pagination.\").nullable().optional(),\n prev: z.string().describe(\"User ID parameter for retrieving the previous page of results. Used with the 'before' query parameter for pagination.\").nullable().optional(),\n users: z.array(RedditGetUserFlair_UserFlairEntrySchema).describe(\"Array of user flair assignments for the subreddit.\"),\n}).passthrough().describe(\"Response containing paginated user flair assignments for a subreddit.\");\n\nexport const redditGetUserFlair = action(\"REDDIT_GET_USER_FLAIR\", {\n slug: \"reddit-get-user-flair\",\n name: \"Get user flair\",\n description: \"Fetches the list of user flair assignments for a given subreddit. Returns paginated results with user flair details. Returned flair_id values are scoped to the specific subreddit and must not be reused across different subreddits.\",\n input: RedditGetUserFlairInput,\n output: RedditGetUserFlairOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;AACzL,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAOrF,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvK,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,oDAAoD;CACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAOhB;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-username-available.ts
|
|
4
4
|
const RedditGetUsernameAvailableInput = zod.z.object({ user: zod.z.string().describe("The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.") });
|
|
5
5
|
const RedditGetUsernameAvailableOutput = zod.z.object({
|
|
6
|
-
username: zod.z.string().describe("The username that was checked."),
|
|
7
|
-
available: zod.z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.")
|
|
8
|
-
});
|
|
6
|
+
username: zod.z.string().describe("The username that was checked.").nullable(),
|
|
7
|
+
available: zod.z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.").nullable()
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const redditGetUsernameAvailable = require_action.action("REDDIT_GET_USERNAME_AVAILABLE", {
|
|
10
10
|
slug: "reddit-get-username-available",
|
|
11
11
|
name: "Check username availability",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-username-available.cjs","names":["z","action"],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput
|
|
1
|
+
{"version":3,"file":"get-username-available.cjs","names":["z","action"],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput = z.object({\n username: z.string().describe(\"The username that was checked.\").nullable(),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\").nullable(),\n}).passthrough();\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-username-available.d.ts
|
|
4
|
-
declare const RedditGetUsernameAvailableInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetUsernameAvailableInput: z.ZodObject<{
|
|
5
|
+
user: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
|
|
8
|
+
username: z.ZodNullable<z.ZodString>;
|
|
9
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
user: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { redditGetUsernameAvailable };
|
|
9
16
|
//# sourceMappingURL=get-username-available.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-username-available.d.cts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-username-available.d.cts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-username-available.d.ts
|
|
4
|
-
declare const RedditGetUsernameAvailableInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RedditGetUsernameAvailableInput: z.ZodObject<{
|
|
5
|
+
user: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RedditGetUsernameAvailableOutput: z.ZodObject<{
|
|
8
|
+
username: z.ZodNullable<z.ZodString>;
|
|
9
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const redditGetUsernameAvailable: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
user: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { redditGetUsernameAvailable };
|
|
9
16
|
//# sourceMappingURL=get-username-available.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-username-available.d.mts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-username-available.d.mts","names":[],"sources":["../../src/actions/get-username-available.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const redditGetUsernameAvailable = action("REDDIT_GET_USERNAME_AVAILABLE", {
|
|
|
6
6
|
description: "Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.",
|
|
7
7
|
input: z.object({ user: z.string().describe("The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.") }),
|
|
8
8
|
output: z.object({
|
|
9
|
-
username: z.string().describe("The username that was checked."),
|
|
10
|
-
available: z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.")
|
|
11
|
-
})
|
|
9
|
+
username: z.string().describe("The username that was checked.").nullable(),
|
|
10
|
+
available: z.boolean().describe("Whether the username is available for registration. True if available, False if already taken or invalid.").nullable()
|
|
11
|
+
}).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { redditGetUsernameAvailable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-username-available.mjs","names":[],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput
|
|
1
|
+
{"version":3,"file":"get-username-available.mjs","names":[],"sources":["../../src/actions/get-username-available.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RedditGetUsernameAvailableInput = z.object({\n user: z.string().describe(\"The username to check for availability. Must be a valid, unused username string. Usernames are case-insensitive and must be between 3-20 characters.\"),\n});\nexport const RedditGetUsernameAvailableOutput = z.object({\n username: z.string().describe(\"The username that was checked.\").nullable(),\n available: z.boolean().describe(\"Whether the username is available for registration. True if available, False if already taken or invalid.\").nullable(),\n}).passthrough();\n\nexport const redditGetUsernameAvailable = action(\"REDDIT_GET_USERNAME_AVAILABLE\", {\n slug: \"reddit-get-username-available\",\n name: \"Check username availability\",\n description: \"Tool to check whether a username is available for registration on Reddit. Use when you need to verify if a username can be used to create a new account.\",\n input: RedditGetUsernameAvailableInput,\n output: RedditGetUsernameAvailableOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,EAClL,CAUS;CACP,QAV8C,EAAE,OAAO;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/actions/get.cjs
CHANGED
|
@@ -11,43 +11,43 @@ const RedditGetInput = zod.z.object({
|
|
|
11
11
|
time_filter: zod.z.string().describe("Time filter for 'top' and 'controversial' sorts. Valid values: hour, day, week, month, year, all.").optional()
|
|
12
12
|
}).describe("Request model for getting a listing of Reddit posts sorted by a specific method.");
|
|
13
13
|
const RedditGet_PostDataSchema = zod.z.object({
|
|
14
|
-
id: zod.z.string().describe("Unique identifier of the post in base36 format."),
|
|
15
|
-
ups: zod.z.number().int().describe("Number of upvotes received."),
|
|
16
|
-
url: zod.z.string().describe("URL the post links to, or the permalink if a self post."),
|
|
17
|
-
name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123')."),
|
|
18
|
-
score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes."),
|
|
19
|
-
title: zod.z.string().describe("The title of the post."),
|
|
14
|
+
id: zod.z.string().describe("Unique identifier of the post in base36 format.").nullable(),
|
|
15
|
+
ups: zod.z.number().int().describe("Number of upvotes received.").nullable(),
|
|
16
|
+
url: zod.z.string().describe("URL the post links to, or the permalink if a self post.").nullable(),
|
|
17
|
+
name: zod.z.string().describe("Fullname of the post, combining type prefix and ID (e.g., 't3_abc123').").nullable(),
|
|
18
|
+
score: zod.z.number().int().describe("Net score of the post, calculated as upvotes minus downvotes.").nullable(),
|
|
19
|
+
title: zod.z.string().describe("The title of the post.").nullable(),
|
|
20
20
|
author: zod.z.string().describe("Username of the post author, null if deleted or promotional link.").nullable().optional(),
|
|
21
21
|
locked: zod.z.boolean().describe("Whether the post is locked and closed to new comments.").nullable().optional(),
|
|
22
|
-
is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false)."),
|
|
23
|
-
over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work)."),
|
|
22
|
+
is_self: zod.z.boolean().describe("Whether the post is a self/text post (true) or link post (false).").nullable(),
|
|
23
|
+
over_18: zod.z.boolean().describe("Whether the post is marked as NSFW (Not Safe For Work).").nullable(),
|
|
24
24
|
spoiler: zod.z.boolean().describe("Whether the post is marked as containing spoilers.").nullable().optional(),
|
|
25
25
|
is_video: zod.z.boolean().describe("Whether the post contains a video hosted on Reddit.").nullable().optional(),
|
|
26
26
|
selftext: zod.z.string().describe("Raw body text for self/text posts with markdown characters, empty string for link posts.").nullable().optional(),
|
|
27
27
|
stickied: zod.z.boolean().describe("Whether the post is stickied/pinned in the subreddit.").nullable().optional(),
|
|
28
|
-
permalink: zod.z.string().describe("Relative URL path to the permanent link of the post."),
|
|
29
|
-
subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix."),
|
|
28
|
+
permalink: zod.z.string().describe("Relative URL path to the permanent link of the post.").nullable(),
|
|
29
|
+
subreddit: zod.z.string().describe("Name of the subreddit without the /r/ prefix.").nullable(),
|
|
30
30
|
thumbnail: zod.z.string().describe("URL to thumbnail image, or 'self', 'default', 'nsfw', etc.").nullable().optional(),
|
|
31
|
-
created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds."),
|
|
32
|
-
num_comments: zod.z.number().int().describe("Total number of comments on the post."),
|
|
31
|
+
created_utc: zod.z.number().describe("Unix timestamp of post creation in UTC epoch-seconds.").nullable(),
|
|
32
|
+
num_comments: zod.z.number().int().describe("Total number of comments on the post.").nullable(),
|
|
33
33
|
upvote_ratio: zod.z.number().describe("Percentage ratio of upvotes from total votes.").nullable().optional(),
|
|
34
34
|
subreddit_name_prefixed: zod.z.string().describe("Subreddit name with 'r/' prefix (e.g., 'r/programming').").nullable().optional()
|
|
35
|
-
}).describe("The actual post data object containing essential post fields.");
|
|
35
|
+
}).passthrough().describe("The actual post data object containing essential post fields.");
|
|
36
36
|
const RedditGet_PostChildSchema = zod.z.object({
|
|
37
37
|
data: RedditGet_PostDataSchema.nullable(),
|
|
38
|
-
kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.")
|
|
39
|
-
}).describe("Wrapper object for each post in the children array.");
|
|
38
|
+
kind: zod.z.string().describe("Type identifier for the post object, always 't3' for links/posts.").nullable()
|
|
39
|
+
}).passthrough().describe("Wrapper object for each post in the children array.");
|
|
40
40
|
const RedditGet_ListingDataSchema = zod.z.object({
|
|
41
41
|
dist: zod.z.number().int().describe("The number of children returned in this listing.").nullable().optional(),
|
|
42
42
|
after: zod.z.string().describe("Fullname of the last item in the listing, used for pagination.").nullable().optional(),
|
|
43
43
|
before: zod.z.string().describe("Fullname of the first item in the listing, used for pagination.").nullable().optional(),
|
|
44
44
|
modhash: zod.z.string().describe("Modhash token for the current session.").nullable().optional(),
|
|
45
45
|
children: zod.z.array(RedditGet_PostChildSchema).describe("Array of post objects.")
|
|
46
|
-
}).describe("Container object holding the listing response data.");
|
|
46
|
+
}).passthrough().describe("Container object holding the listing response data.");
|
|
47
47
|
const RedditGetOutput = zod.z.object({
|
|
48
48
|
data: RedditGet_ListingDataSchema.nullable(),
|
|
49
|
-
kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.")
|
|
50
|
-
}).describe("Response from getting a listing of Reddit posts.");
|
|
49
|
+
kind: zod.z.string().describe("Type identifier for the response wrapper, typically 'Listing' for post queries.").nullable()
|
|
50
|
+
}).passthrough().describe("Response from getting a listing of Reddit posts.");
|
|
51
51
|
const redditGet = require_action.action("REDDIT_GET", {
|
|
52
52
|
slug: "reddit-get",
|
|
53
53
|
name: "Get Reddit listing by sort",
|