@mahesvara/discord-mcpserver 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/index.js +4 -2833
  2. package/dist/schemas/channel.d.ts +158 -0
  3. package/dist/schemas/channel.js +128 -0
  4. package/dist/schemas/common.d.ts +23 -0
  5. package/dist/schemas/common.js +71 -0
  6. package/dist/schemas/community.d.ts +181 -0
  7. package/dist/schemas/community.js +60 -0
  8. package/dist/schemas/emoji.d.ts +59 -0
  9. package/dist/schemas/emoji.js +29 -0
  10. package/dist/schemas/event.d.ts +62 -0
  11. package/dist/schemas/event.js +33 -0
  12. package/dist/schemas/guild.d.ts +85 -0
  13. package/dist/schemas/guild.js +42 -0
  14. package/dist/schemas/index.d.ts +12 -855
  15. package/dist/schemas/index.js +13 -617
  16. package/dist/schemas/invite.d.ts +40 -0
  17. package/dist/schemas/invite.js +32 -0
  18. package/dist/schemas/member.d.ts +60 -0
  19. package/dist/schemas/member.js +33 -0
  20. package/dist/schemas/message.d.ts +121 -0
  21. package/dist/schemas/message.js +61 -0
  22. package/dist/schemas/moderation.d.ts +343 -0
  23. package/dist/schemas/moderation.js +152 -0
  24. package/dist/schemas/role.d.ts +126 -0
  25. package/dist/schemas/role.js +73 -0
  26. package/dist/schemas/webhook.d.ts +51 -0
  27. package/dist/schemas/webhook.js +33 -0
  28. package/dist/server.d.ts +2 -0
  29. package/dist/server.js +6 -0
  30. package/dist/tools/channel.d.ts +2 -0
  31. package/dist/tools/channel.js +510 -0
  32. package/dist/tools/community.d.ts +2 -0
  33. package/dist/tools/community.js +259 -0
  34. package/dist/tools/emoji.d.ts +2 -0
  35. package/dist/tools/emoji.js +247 -0
  36. package/dist/tools/event.d.ts +2 -0
  37. package/dist/tools/event.js +170 -0
  38. package/dist/tools/guild.d.ts +2 -0
  39. package/dist/tools/guild.js +198 -0
  40. package/dist/tools/index.d.ts +2 -0
  41. package/dist/tools/index.js +24 -0
  42. package/dist/tools/invite.d.ts +2 -0
  43. package/dist/tools/invite.js +143 -0
  44. package/dist/tools/member.d.ts +2 -0
  45. package/dist/tools/member.js +200 -0
  46. package/dist/tools/message.d.ts +2 -0
  47. package/dist/tools/message.js +386 -0
  48. package/dist/tools/moderation.d.ts +2 -0
  49. package/dist/tools/moderation.js +641 -0
  50. package/dist/tools/role.d.ts +2 -0
  51. package/dist/tools/role.js +420 -0
  52. package/dist/tools/webhook.d.ts +2 -0
  53. package/dist/tools/webhook.js +199 -0
  54. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ import { z } from "zod";
2
+ export declare const ListMembersSchema: z.ZodObject<{
3
+ guild_id: z.ZodString;
4
+ limit: z.ZodDefault<z.ZodNumber>;
5
+ after: z.ZodOptional<z.ZodString>;
6
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ limit: number;
9
+ response_format: import("../types.js").ResponseFormat;
10
+ guild_id: string;
11
+ after?: string | undefined;
12
+ }, {
13
+ guild_id: string;
14
+ limit?: number | undefined;
15
+ response_format?: import("../types.js").ResponseFormat | undefined;
16
+ after?: string | undefined;
17
+ }>;
18
+ export declare const GetMemberSchema: z.ZodObject<{
19
+ guild_id: z.ZodString;
20
+ user_id: z.ZodString;
21
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ response_format: import("../types.js").ResponseFormat;
24
+ guild_id: string;
25
+ user_id: string;
26
+ }, {
27
+ guild_id: string;
28
+ user_id: string;
29
+ response_format?: import("../types.js").ResponseFormat | undefined;
30
+ }>;
31
+ export declare const MoveMemberSchema: z.ZodObject<{
32
+ guild_id: z.ZodString;
33
+ user_id: z.ZodString;
34
+ channel_id: z.ZodNullable<z.ZodString>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ guild_id: string;
37
+ channel_id: string | null;
38
+ user_id: string;
39
+ }, {
40
+ guild_id: string;
41
+ channel_id: string | null;
42
+ user_id: string;
43
+ }>;
44
+ export declare const SetNicknameSchema: z.ZodObject<{
45
+ guild_id: z.ZodString;
46
+ user_id: z.ZodString;
47
+ nickname: z.ZodNullable<z.ZodString>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ guild_id: string;
50
+ user_id: string;
51
+ nickname: string | null;
52
+ }, {
53
+ guild_id: string;
54
+ user_id: string;
55
+ nickname: string | null;
56
+ }>;
57
+ export type ListMembersInput = z.infer<typeof ListMembersSchema>;
58
+ export type GetMemberInput = z.infer<typeof GetMemberSchema>;
59
+ export type MoveMemberInput = z.infer<typeof MoveMemberSchema>;
60
+ export type SetNicknameInput = z.infer<typeof SetNicknameSchema>;
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ import { GuildIdSchema, UserIdSchema, ChannelIdSchema, ResponseFormatSchema } from "./common.js";
3
+ export const ListMembersSchema = z.object({
4
+ guild_id: GuildIdSchema,
5
+ limit: z.number()
6
+ .int()
7
+ .min(1)
8
+ .max(100)
9
+ .default(20)
10
+ .describe("Maximum number of members to return"),
11
+ after: UserIdSchema.optional()
12
+ .describe("Get members after this user ID (for pagination)"),
13
+ response_format: ResponseFormatSchema
14
+ }).strict();
15
+ export const GetMemberSchema = z.object({
16
+ guild_id: GuildIdSchema,
17
+ user_id: UserIdSchema,
18
+ response_format: ResponseFormatSchema
19
+ }).strict();
20
+ export const MoveMemberSchema = z.object({
21
+ guild_id: GuildIdSchema,
22
+ user_id: UserIdSchema,
23
+ channel_id: ChannelIdSchema.nullable()
24
+ .describe("Target voice channel ID, or null to disconnect the user")
25
+ }).strict();
26
+ export const SetNicknameSchema = z.object({
27
+ guild_id: GuildIdSchema,
28
+ user_id: UserIdSchema,
29
+ nickname: z.string()
30
+ .max(32)
31
+ .nullable()
32
+ .describe("New nickname (max 32 chars) or null to clear")
33
+ }).strict();
@@ -0,0 +1,121 @@
1
+ import { z } from "zod";
2
+ export declare const SendMessageSchema: z.ZodObject<{
3
+ channel_id: z.ZodString;
4
+ content: z.ZodString;
5
+ reply_to: z.ZodOptional<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ channel_id: string;
8
+ content: string;
9
+ reply_to?: string | undefined;
10
+ }, {
11
+ channel_id: string;
12
+ content: string;
13
+ reply_to?: string | undefined;
14
+ }>;
15
+ export declare const GetMessagesSchema: z.ZodObject<{
16
+ channel_id: z.ZodString;
17
+ limit: z.ZodDefault<z.ZodNumber>;
18
+ before: z.ZodOptional<z.ZodString>;
19
+ after: z.ZodOptional<z.ZodString>;
20
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ limit: number;
23
+ response_format: import("../types.js").ResponseFormat;
24
+ channel_id: string;
25
+ before?: string | undefined;
26
+ after?: string | undefined;
27
+ }, {
28
+ channel_id: string;
29
+ limit?: number | undefined;
30
+ response_format?: import("../types.js").ResponseFormat | undefined;
31
+ before?: string | undefined;
32
+ after?: string | undefined;
33
+ }>;
34
+ export declare const DeleteMessageSchema: z.ZodObject<{
35
+ channel_id: z.ZodString;
36
+ message_id: z.ZodString;
37
+ }, "strict", z.ZodTypeAny, {
38
+ channel_id: string;
39
+ message_id: string;
40
+ }, {
41
+ channel_id: string;
42
+ message_id: string;
43
+ }>;
44
+ export declare const EditMessageSchema: z.ZodObject<{
45
+ channel_id: z.ZodString;
46
+ message_id: z.ZodString;
47
+ content: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ channel_id: string;
50
+ content: string;
51
+ message_id: string;
52
+ }, {
53
+ channel_id: string;
54
+ content: string;
55
+ message_id: string;
56
+ }>;
57
+ export declare const AddReactionSchema: z.ZodObject<{
58
+ channel_id: z.ZodString;
59
+ message_id: z.ZodString;
60
+ emoji: z.ZodString;
61
+ }, "strict", z.ZodTypeAny, {
62
+ emoji: string;
63
+ channel_id: string;
64
+ message_id: string;
65
+ }, {
66
+ emoji: string;
67
+ channel_id: string;
68
+ message_id: string;
69
+ }>;
70
+ export declare const RemoveReactionSchema: z.ZodObject<{
71
+ channel_id: z.ZodString;
72
+ message_id: z.ZodString;
73
+ emoji: z.ZodString;
74
+ }, "strict", z.ZodTypeAny, {
75
+ emoji: string;
76
+ channel_id: string;
77
+ message_id: string;
78
+ }, {
79
+ emoji: string;
80
+ channel_id: string;
81
+ message_id: string;
82
+ }>;
83
+ export declare const PinMessageSchema: z.ZodObject<{
84
+ channel_id: z.ZodString;
85
+ message_id: z.ZodString;
86
+ }, "strict", z.ZodTypeAny, {
87
+ channel_id: string;
88
+ message_id: string;
89
+ }, {
90
+ channel_id: string;
91
+ message_id: string;
92
+ }>;
93
+ export declare const UnpinMessageSchema: z.ZodObject<{
94
+ channel_id: z.ZodString;
95
+ message_id: z.ZodString;
96
+ }, "strict", z.ZodTypeAny, {
97
+ channel_id: string;
98
+ message_id: string;
99
+ }, {
100
+ channel_id: string;
101
+ message_id: string;
102
+ }>;
103
+ export declare const GetPinnedMessagesSchema: z.ZodObject<{
104
+ channel_id: z.ZodString;
105
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
106
+ }, "strict", z.ZodTypeAny, {
107
+ response_format: import("../types.js").ResponseFormat;
108
+ channel_id: string;
109
+ }, {
110
+ channel_id: string;
111
+ response_format?: import("../types.js").ResponseFormat | undefined;
112
+ }>;
113
+ export type SendMessageInput = z.infer<typeof SendMessageSchema>;
114
+ export type GetMessagesInput = z.infer<typeof GetMessagesSchema>;
115
+ export type DeleteMessageInput = z.infer<typeof DeleteMessageSchema>;
116
+ export type EditMessageInput = z.infer<typeof EditMessageSchema>;
117
+ export type AddReactionInput = z.infer<typeof AddReactionSchema>;
118
+ export type RemoveReactionInput = z.infer<typeof RemoveReactionSchema>;
119
+ export type PinMessageInput = z.infer<typeof PinMessageSchema>;
120
+ export type UnpinMessageInput = z.infer<typeof UnpinMessageSchema>;
121
+ export type GetPinnedMessagesInput = z.infer<typeof GetPinnedMessagesSchema>;
@@ -0,0 +1,61 @@
1
+ import { z } from "zod";
2
+ import { ChannelIdSchema, MessageIdSchema, ResponseFormatSchema } from "./common.js";
3
+ export const SendMessageSchema = z.object({
4
+ channel_id: ChannelIdSchema,
5
+ content: z.string()
6
+ .min(1)
7
+ .max(2000)
8
+ .describe("Message content (max 2000 characters)"),
9
+ reply_to: MessageIdSchema.optional()
10
+ .describe("Optional message ID to reply to")
11
+ }).strict();
12
+ export const GetMessagesSchema = z.object({
13
+ channel_id: ChannelIdSchema,
14
+ limit: z.number()
15
+ .int()
16
+ .min(1)
17
+ .max(100)
18
+ .default(20)
19
+ .describe("Number of messages to retrieve (1-100)"),
20
+ before: MessageIdSchema.optional()
21
+ .describe("Get messages before this message ID"),
22
+ after: MessageIdSchema.optional()
23
+ .describe("Get messages after this message ID"),
24
+ response_format: ResponseFormatSchema
25
+ }).strict();
26
+ export const DeleteMessageSchema = z.object({
27
+ channel_id: ChannelIdSchema,
28
+ message_id: MessageIdSchema
29
+ }).strict();
30
+ export const EditMessageSchema = z.object({
31
+ channel_id: ChannelIdSchema,
32
+ message_id: MessageIdSchema,
33
+ content: z.string()
34
+ .min(1)
35
+ .max(2000)
36
+ .describe("New message content (max 2000 characters)")
37
+ }).strict();
38
+ export const AddReactionSchema = z.object({
39
+ channel_id: ChannelIdSchema,
40
+ message_id: MessageIdSchema,
41
+ emoji: z.string()
42
+ .describe("Emoji to react with (unicode emoji or custom emoji format)")
43
+ }).strict();
44
+ export const RemoveReactionSchema = z.object({
45
+ channel_id: ChannelIdSchema,
46
+ message_id: MessageIdSchema,
47
+ emoji: z.string()
48
+ .describe("Emoji reaction to remove")
49
+ }).strict();
50
+ export const PinMessageSchema = z.object({
51
+ channel_id: ChannelIdSchema,
52
+ message_id: MessageIdSchema
53
+ }).strict();
54
+ export const UnpinMessageSchema = z.object({
55
+ channel_id: ChannelIdSchema,
56
+ message_id: MessageIdSchema
57
+ }).strict();
58
+ export const GetPinnedMessagesSchema = z.object({
59
+ channel_id: ChannelIdSchema,
60
+ response_format: ResponseFormatSchema
61
+ }).strict();
@@ -0,0 +1,343 @@
1
+ import { z } from "zod";
2
+ export declare const KickMemberSchema: z.ZodObject<{
3
+ guild_id: z.ZodString;
4
+ user_id: z.ZodString;
5
+ reason: z.ZodOptional<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ guild_id: string;
8
+ user_id: string;
9
+ reason?: string | undefined;
10
+ }, {
11
+ guild_id: string;
12
+ user_id: string;
13
+ reason?: string | undefined;
14
+ }>;
15
+ export declare const BanMemberSchema: z.ZodObject<{
16
+ guild_id: z.ZodString;
17
+ user_id: z.ZodString;
18
+ reason: z.ZodOptional<z.ZodString>;
19
+ delete_message_days: z.ZodOptional<z.ZodNumber>;
20
+ }, "strict", z.ZodTypeAny, {
21
+ guild_id: string;
22
+ user_id: string;
23
+ reason?: string | undefined;
24
+ delete_message_days?: number | undefined;
25
+ }, {
26
+ guild_id: string;
27
+ user_id: string;
28
+ reason?: string | undefined;
29
+ delete_message_days?: number | undefined;
30
+ }>;
31
+ export declare const UnbanMemberSchema: z.ZodObject<{
32
+ guild_id: z.ZodString;
33
+ user_id: z.ZodString;
34
+ }, "strict", z.ZodTypeAny, {
35
+ guild_id: string;
36
+ user_id: string;
37
+ }, {
38
+ guild_id: string;
39
+ user_id: string;
40
+ }>;
41
+ export declare const TimeoutMemberSchema: z.ZodObject<{
42
+ guild_id: z.ZodString;
43
+ user_id: z.ZodString;
44
+ duration_minutes: z.ZodNumber;
45
+ reason: z.ZodOptional<z.ZodString>;
46
+ }, "strict", z.ZodTypeAny, {
47
+ guild_id: string;
48
+ user_id: string;
49
+ duration_minutes: number;
50
+ reason?: string | undefined;
51
+ }, {
52
+ guild_id: string;
53
+ user_id: string;
54
+ duration_minutes: number;
55
+ reason?: string | undefined;
56
+ }>;
57
+ export declare const ListBansSchema: z.ZodObject<{
58
+ guild_id: z.ZodString;
59
+ limit: z.ZodDefault<z.ZodNumber>;
60
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
61
+ }, "strict", z.ZodTypeAny, {
62
+ limit: number;
63
+ response_format: import("../types.js").ResponseFormat;
64
+ guild_id: string;
65
+ }, {
66
+ guild_id: string;
67
+ limit?: number | undefined;
68
+ response_format?: import("../types.js").ResponseFormat | undefined;
69
+ }>;
70
+ export declare const PruneMembersSchema: z.ZodObject<{
71
+ guild_id: z.ZodString;
72
+ days: z.ZodNumber;
73
+ include_roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
+ dry_run: z.ZodDefault<z.ZodBoolean>;
75
+ }, "strict", z.ZodTypeAny, {
76
+ guild_id: string;
77
+ days: number;
78
+ dry_run: boolean;
79
+ include_roles?: string[] | undefined;
80
+ }, {
81
+ guild_id: string;
82
+ days: number;
83
+ include_roles?: string[] | undefined;
84
+ dry_run?: boolean | undefined;
85
+ }>;
86
+ export declare const GetAuditLogSchema: z.ZodObject<{
87
+ guild_id: z.ZodString;
88
+ limit: z.ZodDefault<z.ZodNumber>;
89
+ user_id: z.ZodOptional<z.ZodString>;
90
+ action_type: z.ZodOptional<z.ZodNumber>;
91
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ limit: number;
94
+ response_format: import("../types.js").ResponseFormat;
95
+ guild_id: string;
96
+ user_id?: string | undefined;
97
+ action_type?: number | undefined;
98
+ }, {
99
+ guild_id: string;
100
+ limit?: number | undefined;
101
+ response_format?: import("../types.js").ResponseFormat | undefined;
102
+ user_id?: string | undefined;
103
+ action_type?: number | undefined;
104
+ }>;
105
+ export declare const ListAutoModRulesSchema: z.ZodObject<{
106
+ guild_id: z.ZodString;
107
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
108
+ }, "strict", z.ZodTypeAny, {
109
+ response_format: import("../types.js").ResponseFormat;
110
+ guild_id: string;
111
+ }, {
112
+ guild_id: string;
113
+ response_format?: import("../types.js").ResponseFormat | undefined;
114
+ }>;
115
+ export declare const GetAutoModRuleSchema: z.ZodObject<{
116
+ guild_id: z.ZodString;
117
+ rule_id: z.ZodString;
118
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ response_format: import("../types.js").ResponseFormat;
121
+ guild_id: string;
122
+ rule_id: string;
123
+ }, {
124
+ guild_id: string;
125
+ rule_id: string;
126
+ response_format?: import("../types.js").ResponseFormat | undefined;
127
+ }>;
128
+ export declare const CreateAutoModRuleSchema: z.ZodObject<{
129
+ guild_id: z.ZodString;
130
+ name: z.ZodString;
131
+ event_type: z.ZodEnum<["message_send"]>;
132
+ trigger_type: z.ZodEnum<["keyword", "spam", "keyword_preset", "mention_spam"]>;
133
+ trigger_metadata: z.ZodOptional<z.ZodObject<{
134
+ keyword_filter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ regex_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ presets: z.ZodOptional<z.ZodArray<z.ZodEnum<["profanity", "sexual_content", "slurs"]>, "many">>;
137
+ allow_list: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
+ mention_total_limit: z.ZodOptional<z.ZodNumber>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ keyword_filter?: string[] | undefined;
141
+ regex_patterns?: string[] | undefined;
142
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
143
+ allow_list?: string[] | undefined;
144
+ mention_total_limit?: number | undefined;
145
+ }, {
146
+ keyword_filter?: string[] | undefined;
147
+ regex_patterns?: string[] | undefined;
148
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
149
+ allow_list?: string[] | undefined;
150
+ mention_total_limit?: number | undefined;
151
+ }>>;
152
+ actions: z.ZodArray<z.ZodObject<{
153
+ type: z.ZodEnum<["block_message", "send_alert_message", "timeout"]>;
154
+ metadata: z.ZodOptional<z.ZodObject<{
155
+ channel_id: z.ZodOptional<z.ZodString>;
156
+ duration_seconds: z.ZodOptional<z.ZodNumber>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ channel_id?: string | undefined;
159
+ duration_seconds?: number | undefined;
160
+ }, {
161
+ channel_id?: string | undefined;
162
+ duration_seconds?: number | undefined;
163
+ }>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: "block_message" | "send_alert_message" | "timeout";
166
+ metadata?: {
167
+ channel_id?: string | undefined;
168
+ duration_seconds?: number | undefined;
169
+ } | undefined;
170
+ }, {
171
+ type: "block_message" | "send_alert_message" | "timeout";
172
+ metadata?: {
173
+ channel_id?: string | undefined;
174
+ duration_seconds?: number | undefined;
175
+ } | undefined;
176
+ }>, "many">;
177
+ enabled: z.ZodDefault<z.ZodBoolean>;
178
+ exempt_roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
179
+ exempt_channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
+ }, "strict", z.ZodTypeAny, {
181
+ name: string;
182
+ guild_id: string;
183
+ event_type: "message_send";
184
+ trigger_type: "keyword" | "spam" | "keyword_preset" | "mention_spam";
185
+ actions: {
186
+ type: "block_message" | "send_alert_message" | "timeout";
187
+ metadata?: {
188
+ channel_id?: string | undefined;
189
+ duration_seconds?: number | undefined;
190
+ } | undefined;
191
+ }[];
192
+ enabled: boolean;
193
+ trigger_metadata?: {
194
+ keyword_filter?: string[] | undefined;
195
+ regex_patterns?: string[] | undefined;
196
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
197
+ allow_list?: string[] | undefined;
198
+ mention_total_limit?: number | undefined;
199
+ } | undefined;
200
+ exempt_roles?: string[] | undefined;
201
+ exempt_channels?: string[] | undefined;
202
+ }, {
203
+ name: string;
204
+ guild_id: string;
205
+ event_type: "message_send";
206
+ trigger_type: "keyword" | "spam" | "keyword_preset" | "mention_spam";
207
+ actions: {
208
+ type: "block_message" | "send_alert_message" | "timeout";
209
+ metadata?: {
210
+ channel_id?: string | undefined;
211
+ duration_seconds?: number | undefined;
212
+ } | undefined;
213
+ }[];
214
+ trigger_metadata?: {
215
+ keyword_filter?: string[] | undefined;
216
+ regex_patterns?: string[] | undefined;
217
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
218
+ allow_list?: string[] | undefined;
219
+ mention_total_limit?: number | undefined;
220
+ } | undefined;
221
+ enabled?: boolean | undefined;
222
+ exempt_roles?: string[] | undefined;
223
+ exempt_channels?: string[] | undefined;
224
+ }>;
225
+ export declare const EditAutoModRuleSchema: z.ZodObject<{
226
+ guild_id: z.ZodString;
227
+ rule_id: z.ZodString;
228
+ name: z.ZodOptional<z.ZodString>;
229
+ event_type: z.ZodOptional<z.ZodEnum<["message_send"]>>;
230
+ trigger_metadata: z.ZodOptional<z.ZodObject<{
231
+ keyword_filter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
232
+ regex_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
+ presets: z.ZodOptional<z.ZodArray<z.ZodEnum<["profanity", "sexual_content", "slurs"]>, "many">>;
234
+ allow_list: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
+ mention_total_limit: z.ZodOptional<z.ZodNumber>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ keyword_filter?: string[] | undefined;
238
+ regex_patterns?: string[] | undefined;
239
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
240
+ allow_list?: string[] | undefined;
241
+ mention_total_limit?: number | undefined;
242
+ }, {
243
+ keyword_filter?: string[] | undefined;
244
+ regex_patterns?: string[] | undefined;
245
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
246
+ allow_list?: string[] | undefined;
247
+ mention_total_limit?: number | undefined;
248
+ }>>;
249
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ type: z.ZodEnum<["block_message", "send_alert_message", "timeout"]>;
251
+ metadata: z.ZodOptional<z.ZodObject<{
252
+ channel_id: z.ZodOptional<z.ZodString>;
253
+ duration_seconds: z.ZodOptional<z.ZodNumber>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ channel_id?: string | undefined;
256
+ duration_seconds?: number | undefined;
257
+ }, {
258
+ channel_id?: string | undefined;
259
+ duration_seconds?: number | undefined;
260
+ }>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ type: "block_message" | "send_alert_message" | "timeout";
263
+ metadata?: {
264
+ channel_id?: string | undefined;
265
+ duration_seconds?: number | undefined;
266
+ } | undefined;
267
+ }, {
268
+ type: "block_message" | "send_alert_message" | "timeout";
269
+ metadata?: {
270
+ channel_id?: string | undefined;
271
+ duration_seconds?: number | undefined;
272
+ } | undefined;
273
+ }>, "many">>;
274
+ enabled: z.ZodOptional<z.ZodBoolean>;
275
+ exempt_roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
+ exempt_channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ }, "strict", z.ZodTypeAny, {
278
+ guild_id: string;
279
+ rule_id: string;
280
+ name?: string | undefined;
281
+ event_type?: "message_send" | undefined;
282
+ trigger_metadata?: {
283
+ keyword_filter?: string[] | undefined;
284
+ regex_patterns?: string[] | undefined;
285
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
286
+ allow_list?: string[] | undefined;
287
+ mention_total_limit?: number | undefined;
288
+ } | undefined;
289
+ actions?: {
290
+ type: "block_message" | "send_alert_message" | "timeout";
291
+ metadata?: {
292
+ channel_id?: string | undefined;
293
+ duration_seconds?: number | undefined;
294
+ } | undefined;
295
+ }[] | undefined;
296
+ enabled?: boolean | undefined;
297
+ exempt_roles?: string[] | undefined;
298
+ exempt_channels?: string[] | undefined;
299
+ }, {
300
+ guild_id: string;
301
+ rule_id: string;
302
+ name?: string | undefined;
303
+ event_type?: "message_send" | undefined;
304
+ trigger_metadata?: {
305
+ keyword_filter?: string[] | undefined;
306
+ regex_patterns?: string[] | undefined;
307
+ presets?: ("profanity" | "sexual_content" | "slurs")[] | undefined;
308
+ allow_list?: string[] | undefined;
309
+ mention_total_limit?: number | undefined;
310
+ } | undefined;
311
+ actions?: {
312
+ type: "block_message" | "send_alert_message" | "timeout";
313
+ metadata?: {
314
+ channel_id?: string | undefined;
315
+ duration_seconds?: number | undefined;
316
+ } | undefined;
317
+ }[] | undefined;
318
+ enabled?: boolean | undefined;
319
+ exempt_roles?: string[] | undefined;
320
+ exempt_channels?: string[] | undefined;
321
+ }>;
322
+ export declare const DeleteAutoModRuleSchema: z.ZodObject<{
323
+ guild_id: z.ZodString;
324
+ rule_id: z.ZodString;
325
+ }, "strict", z.ZodTypeAny, {
326
+ guild_id: string;
327
+ rule_id: string;
328
+ }, {
329
+ guild_id: string;
330
+ rule_id: string;
331
+ }>;
332
+ export type KickMemberInput = z.infer<typeof KickMemberSchema>;
333
+ export type BanMemberInput = z.infer<typeof BanMemberSchema>;
334
+ export type UnbanMemberInput = z.infer<typeof UnbanMemberSchema>;
335
+ export type TimeoutMemberInput = z.infer<typeof TimeoutMemberSchema>;
336
+ export type ListBansInput = z.infer<typeof ListBansSchema>;
337
+ export type PruneMembersInput = z.infer<typeof PruneMembersSchema>;
338
+ export type GetAuditLogInput = z.infer<typeof GetAuditLogSchema>;
339
+ export type ListAutoModRulesInput = z.infer<typeof ListAutoModRulesSchema>;
340
+ export type GetAutoModRuleInput = z.infer<typeof GetAutoModRuleSchema>;
341
+ export type CreateAutoModRuleInput = z.infer<typeof CreateAutoModRuleSchema>;
342
+ export type EditAutoModRuleInput = z.infer<typeof EditAutoModRuleSchema>;
343
+ export type DeleteAutoModRuleInput = z.infer<typeof DeleteAutoModRuleSchema>;