@notidotbot/noti-api-client 1.4.11 → 1.4.13

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 (49) hide show
  1. package/dist/classes/guild.d.ts +27 -0
  2. package/dist/classes/guild.js +15 -0
  3. package/dist/classes/premium.d.ts +24 -0
  4. package/dist/classes/premium.js +6 -0
  5. package/dist/core/manager.d.ts +2 -0
  6. package/dist/core/manager.js +2 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +2 -0
  9. package/dist/modules/stripe.js +1 -0
  10. package/dist/other/zod/client.zod.d.ts +56 -288
  11. package/dist/other/zod/client.zod.js +11 -0
  12. package/dist/other/zod/drops.zod.d.ts +26 -7
  13. package/dist/other/zod/drops.zod.js +13 -11
  14. package/dist/other/zod/giveaways.zod.d.ts +61 -322
  15. package/dist/other/zod/guild.zod.d.ts +260 -1431
  16. package/dist/other/zod/guild.zod.js +21 -4
  17. package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
  18. package/dist/other/zod/kickStreamer.zod.js +3 -3
  19. package/dist/other/zod/member.zod.d.ts +2 -10
  20. package/dist/other/zod/r2Storage.zod.d.ts +9 -41
  21. package/dist/other/zod/r2Storage.zod.js +2 -0
  22. package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
  23. package/dist/other/zod/schema.zod.d.ts +130 -17
  24. package/dist/other/zod/schema.zod.js +43 -21
  25. package/dist/other/zod/starboard.zod.d.ts +36 -138
  26. package/dist/other/zod/team.zod.d.ts +9 -79
  27. package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
  28. package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
  29. package/dist/other/zod/user.zod.d.ts +123 -556
  30. package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
  31. package/dist/other/zod/zod.d.ts +12 -83
  32. package/dist/other/zod/zod.js +5 -3
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +2 -2
  35. package/prisma/generated/ts-prisma.d.ts +2942 -352
  36. package/prisma/schema/models/client.prisma +71 -53
  37. package/prisma/schema/models/drops.prisma +127 -125
  38. package/prisma/schema/models/giveaways.prisma +49 -49
  39. package/prisma/schema/models/guild.prisma +239 -222
  40. package/prisma/schema/models/kickStreamer.prisma +125 -125
  41. package/prisma/schema/models/member.prisma +5 -5
  42. package/prisma/schema/models/r2Storage.prisma +13 -11
  43. package/prisma/schema/models/rumbleStreamer.prisma +73 -73
  44. package/prisma/schema/models/starboard.prisma +36 -36
  45. package/prisma/schema/models/team.prisma +21 -21
  46. package/prisma/schema/models/tiktokStreamer.prisma +74 -74
  47. package/prisma/schema/models/twitchStreamer.prisma +74 -74
  48. package/prisma/schema/models/user.prisma +117 -117
  49. package/prisma/schema/models/youtubeStreamer.prisma +75 -75
@@ -5,12 +5,31 @@ import { z } from 'zod';
5
5
  export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], DropsRelations>>;
6
6
  export type DropsRelations = 'db' | 'game' | 'sentDrops' | 'drops' | 'guildDropsGames' | 'webhook' | 'games' | 'guildDrops' | 'guildDropsGame';
7
7
  export declare const DropsZod: {
8
- readonly DropSchema: z.ZodType<any, z.ZodTypeDef, any>;
9
- readonly DropGameSchema: z.ZodType<any, z.ZodTypeDef, any>;
10
- readonly GuildDropsSchema: z.ZodType<any, z.ZodTypeDef, any>;
11
- readonly GuildDropsWebhookSchema: z.ZodType<any, z.ZodTypeDef, any>;
12
- readonly GuildDropsGameSchema: z.ZodType<any, z.ZodTypeDef, any>;
13
- readonly GuildDropsGameWebhookSchema: z.ZodType<any, z.ZodTypeDef, any>;
14
- readonly SentDropSchema: z.ZodType<any, z.ZodTypeDef, any>;
8
+ readonly DropSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
9
+ readonly DropGameSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
10
+ readonly GuildDropsSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
11
+ readonly GuildDropsWebhookSchema: z.ZodObject<{
12
+ avatarUrl: z.ZodNullable<z.ZodURL>;
13
+ username: z.ZodNullable<z.ZodString>;
14
+ guildDropsId: z.ZodString;
15
+ guildDrops: z.ZodNullable<z.ZodLazy<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
16
+ }, z.core.$strip>;
17
+ readonly GuildDropsGameSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
18
+ readonly GuildDropsGameWebhookSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
19
+ readonly SentDropSchema: z.ZodObject<{
20
+ dropId: z.ZodString;
21
+ drop: z.ZodNullable<z.ZodLazy<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
22
+ guildId: z.ZodString;
23
+ platform: z.ZodEnum<{
24
+ kick: "kick";
25
+ twitch: "twitch";
26
+ rumble: "rumble";
27
+ tiktok: "tiktok";
28
+ youtube: "youtube";
29
+ }>;
30
+ channelId: z.ZodNullable<z.ZodString>;
31
+ messageId: z.ZodNullable<z.ZodString>;
32
+ sentAt: z.ZodDate;
33
+ }, z.core.$strip>;
15
34
  };
16
35
  export declare const DropsZodPartial: PartialZodObject<typeof DropsZod>;
@@ -29,8 +29,9 @@ const DropGameSchema = zod_2.z.object({
29
29
  platform: schema_zod_1.PlatformEnum,
30
30
  name: zod_2.z.string(),
31
31
  slug: zod_2.z.string().nullable(),
32
- imageUrl: zod_2.z.string().url().nullable(),
32
+ imageUrl: zod_2.z.url().nullable(),
33
33
  description: zod_2.z.string().max(2000).nullable(),
34
+ ignored: zod_2.z.boolean().default(false),
34
35
  platformData: zod_2.z.any().nullable(),
35
36
  createdAt: zod_2.z.date(),
36
37
  updatedAt: zod_2.z.date(),
@@ -42,21 +43,22 @@ const GuildDropsSchema = zod_2.z.object({
42
43
  kickEnabled: zod_2.z.boolean(),
43
44
  twitchEnabled: zod_2.z.boolean(),
44
45
  liveNotifications: zod_2.z.boolean(),
45
- kickChannelId: zod_1.SnowFlake.nullable(),
46
- kickRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
47
- kickLiveNotificationChannelId: zod_1.SnowFlake.nullable(),
48
- kickLiveNotificationRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
49
- twitchLiveNotificationChannelId: zod_1.SnowFlake.nullable(),
50
- twitchLiveNotificationRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
51
- twitchChannelId: zod_1.SnowFlake.nullable(),
52
- twitchRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
46
+ kickChannelId: zod_2.z.string().nullable(),
47
+ kickRoleId: zod_2.z.string().nullable(),
48
+ twitchChannelId: zod_2.z.string().nullable(),
49
+ twitchRoleId: zod_2.z.string().nullable(),
50
+ // Platform-specific live notification overrides
51
+ kickLiveNotificationChannelId: zod_2.z.string().nullable(),
52
+ kickLiveNotificationRoleId: zod_2.z.string().nullable(),
53
+ twitchLiveNotificationChannelId: zod_2.z.string().nullable(),
54
+ twitchLiveNotificationRoleId: zod_2.z.string().nullable(),
53
55
  games: zod_2.z.array(zod_2.z.lazy(() => GuildDropsGameSchema)),
54
56
  webhook: zod_2.z.lazy(() => GuildDropsWebhookSchema).nullable(),
55
57
  createdAt: zod_2.z.date(),
56
58
  updatedAt: zod_2.z.date(),
57
59
  });
58
60
  const GuildDropsWebhookSchema = zod_2.z.object({
59
- avatarUrl: zod_2.z.string().url().nullable(),
61
+ avatarUrl: zod_2.z.url().nullable(),
60
62
  username: zod_2.z.string().nullable(),
61
63
  guildDropsId: zod_2.z.string(),
62
64
  guildDrops: zod_2.z.lazy(() => GuildDropsSchema).nullable(),
@@ -73,7 +75,7 @@ const GuildDropsGameSchema = zod_2.z.object({
73
75
  createdAt: zod_2.z.date(),
74
76
  });
75
77
  const GuildDropsGameWebhookSchema = zod_2.z.object({
76
- avatarUrl: zod_2.z.string().url().nullable(),
78
+ avatarUrl: zod_2.z.url().nullable(),
77
79
  username: zod_2.z.string().nullable(),
78
80
  guildDropsGameId: zod_2.z.string(),
79
81
  guildDropsGame: zod_2.z.lazy(() => GuildDropsGameSchema).nullable(),
@@ -1,382 +1,121 @@
1
1
  import { PartialZodObject } from './schema.zod';
2
- import { TSPrisma } from '@prisma/client';
3
2
  import { RemoveProperties } from '../prisma';
3
+ import { TSPrisma } from '@prisma/client';
4
4
  import { z } from 'zod';
5
5
  export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], GuildGiveawayRelations>>;
6
6
  export type GuildGiveawayRelations = 'db' | 'guildGiveaway';
7
7
  export declare const GuildGiveawayZod: {
8
8
  readonly GuildGiveawayCreateSchema: z.ZodObject<{
9
9
  giveawayId: z.ZodString;
10
- guildId: z.ZodEffects<z.ZodString, string, string>;
11
- channelId: z.ZodEffects<z.ZodString, string, string>;
12
- hostId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
10
+ guildId: z.ZodString;
11
+ channelId: z.ZodString;
12
+ hostId: z.ZodNullable<z.ZodString>;
13
13
  name: z.ZodString;
14
14
  durationMinutes: z.ZodNumber;
15
15
  winnerCount: z.ZodNumber;
16
- messageId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
17
- winnerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ winnerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
18
  mentionRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  emojiUnicodeOrId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  buttonLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  liveEntryCountUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
22
- currentEntries: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
23
- userId: z.ZodEffects<z.ZodString, string, string>;
22
+ currentEntries: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
23
+ userId: z.ZodString;
24
24
  username: z.ZodString;
25
25
  entries: z.ZodNumber;
26
- }, "strip", z.ZodTypeAny, {
27
- entries: number;
28
- username: string;
29
- userId: string;
30
- }, {
31
- entries: number;
32
- username: string;
33
- userId: string;
34
- }>>, "many">, {
35
- entries: number;
36
- username: string;
37
- userId: string;
38
- }[], {
39
- entries: number;
40
- username: string;
41
- userId: string;
42
- }[]>>;
26
+ }, z.core.$strip>>>>;
43
27
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
44
28
  endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
29
  maxEntries: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
30
  entryFilter: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
47
- roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
48
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
49
- }, "strip", z.ZodTypeAny, {
50
- roles: string[];
51
- roleMode: "whitelist" | "blacklist";
52
- }, {
53
- roles: string[];
54
- roleMode: "whitelist" | "blacklist";
55
- }>>>>;
31
+ roleMode: z.ZodEnum<{
32
+ whitelist: "whitelist";
33
+ blacklist: "blacklist";
34
+ }>;
35
+ roles: z.ZodArray<z.ZodString>;
36
+ }, z.core.$strip>>>>;
56
37
  disableDoubleVoteEntry: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
57
- roleBonusType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["stackable", "highest"]>>>;
58
- roleBonuses: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
59
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
38
+ roleBonusType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39
+ stackable: "stackable";
40
+ highest: "highest";
41
+ }>>>;
42
+ roleBonuses: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
43
+ roles: z.ZodArray<z.ZodString>;
60
44
  additionalEntries: z.ZodNumber;
61
- }, "strip", z.ZodTypeAny, {
62
- roles: string[];
63
- additionalEntries: number;
64
- }, {
65
- roles: string[];
66
- additionalEntries: number;
67
- }>>, "many">, {
68
- roles: string[];
69
- additionalEntries: number;
70
- }[], {
71
- roles: string[];
72
- additionalEntries: number;
73
- }[]>>;
45
+ }, z.core.$strip>>>>;
74
46
  requirements: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
75
47
  joinedServerBefore: z.ZodNullable<z.ZodDate>;
76
48
  accountCreatedBefore: z.ZodNullable<z.ZodDate>;
77
49
  boostingServer: z.ZodNullable<z.ZodBoolean>;
78
50
  messageCount: z.ZodNullable<z.ZodNumber>;
79
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
80
- }, "strip", z.ZodTypeAny, {
81
- roles: string[];
82
- joinedServerBefore: Date | null;
83
- accountCreatedBefore: Date | null;
84
- boostingServer: boolean | null;
85
- messageCount: number | null;
86
- }, {
87
- roles: string[];
88
- joinedServerBefore: Date | null;
89
- accountCreatedBefore: Date | null;
90
- boostingServer: boolean | null;
91
- messageCount: number | null;
92
- }>>>>;
93
- bypassRequirementsRoles: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>;
94
- }, "strip", z.ZodTypeAny, {
95
- name: string;
96
- guildId: string;
97
- durationMinutes: number;
98
- channelId: string;
99
- giveawayId: string;
100
- hostId: string | null;
101
- winnerCount: number;
102
- disableDoubleVoteEntry?: boolean | null | undefined;
103
- messageId?: string | null | undefined;
104
- emojiUnicodeOrId?: string | null | undefined;
105
- currentEntries?: {
106
- entries: number;
107
- username: string;
108
- userId: string;
109
- }[] | undefined;
110
- entryFilter?: {
111
- roles: string[];
112
- roleMode: "whitelist" | "blacklist";
113
- } | null | undefined;
114
- roleBonuses?: {
115
- roles: string[];
116
- additionalEntries: number;
117
- }[] | undefined;
118
- requirements?: {
119
- roles: string[];
120
- joinedServerBefore: Date | null;
121
- accountCreatedBefore: Date | null;
122
- boostingServer: boolean | null;
123
- messageCount: number | null;
124
- } | null | undefined;
125
- winnerIds?: string[] | undefined;
126
- mentionRole?: string | null | undefined;
127
- buttonLabel?: string | null | undefined;
128
- liveEntryCountUpdatedAt?: Date | null | undefined;
129
- startedAt?: Date | null | undefined;
130
- endedAt?: Date | null | undefined;
131
- maxEntries?: number | null | undefined;
132
- roleBonusType?: "stackable" | "highest" | null | undefined;
133
- bypassRequirementsRoles?: string[] | undefined;
134
- }, {
135
- name: string;
136
- guildId: string;
137
- durationMinutes: number;
138
- channelId: string;
139
- giveawayId: string;
140
- hostId: string | null;
141
- winnerCount: number;
142
- disableDoubleVoteEntry?: boolean | null | undefined;
143
- messageId?: string | null | undefined;
144
- emojiUnicodeOrId?: string | null | undefined;
145
- currentEntries?: {
146
- entries: number;
147
- username: string;
148
- userId: string;
149
- }[] | undefined;
150
- entryFilter?: {
151
- roles: string[];
152
- roleMode: "whitelist" | "blacklist";
153
- } | null | undefined;
154
- roleBonuses?: {
155
- roles: string[];
156
- additionalEntries: number;
157
- }[] | undefined;
158
- requirements?: {
159
- roles: string[];
160
- joinedServerBefore: Date | null;
161
- accountCreatedBefore: Date | null;
162
- boostingServer: boolean | null;
163
- messageCount: number | null;
164
- } | null | undefined;
165
- winnerIds?: string[] | undefined;
166
- mentionRole?: string | null | undefined;
167
- buttonLabel?: string | null | undefined;
168
- liveEntryCountUpdatedAt?: Date | null | undefined;
169
- startedAt?: Date | null | undefined;
170
- endedAt?: Date | null | undefined;
171
- maxEntries?: number | null | undefined;
172
- roleBonusType?: "stackable" | "highest" | null | undefined;
173
- bypassRequirementsRoles?: string[] | undefined;
174
- }>;
51
+ roles: z.ZodArray<z.ZodString>;
52
+ }, z.core.$strip>>>>;
53
+ bypassRequirementsRoles: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ }, z.core.$strip>;
175
55
  readonly GuildGiveawaySchema: z.ZodObject<{
176
56
  giveawayId: z.ZodString;
177
- guildId: z.ZodEffects<z.ZodString, string, string>;
178
- channelId: z.ZodEffects<z.ZodString, string, string>;
179
- messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
57
+ guildId: z.ZodString;
58
+ channelId: z.ZodString;
59
+ messageId: z.ZodNullable<z.ZodString>;
180
60
  name: z.ZodString;
181
- winnerIds: z.ZodArray<z.ZodString, "many">;
61
+ winnerIds: z.ZodArray<z.ZodString>;
182
62
  mentionRole: z.ZodNullable<z.ZodString>;
183
63
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
184
64
  buttonLabel: z.ZodNullable<z.ZodString>;
185
65
  liveEntryCountUpdatedAt: z.ZodNullable<z.ZodDate>;
186
- currentEntries: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
187
- userId: z.ZodEffects<z.ZodString, string, string>;
66
+ currentEntries: z.ZodArray<z.ZodLazy<z.ZodObject<{
67
+ userId: z.ZodString;
188
68
  username: z.ZodString;
189
69
  entries: z.ZodNumber;
190
- }, "strip", z.ZodTypeAny, {
191
- entries: number;
192
- username: string;
193
- userId: string;
194
- }, {
195
- entries: number;
196
- username: string;
197
- userId: string;
198
- }>>, "many">, {
199
- entries: number;
200
- username: string;
201
- userId: string;
202
- }[], {
203
- entries: number;
204
- username: string;
205
- userId: string;
206
- }[]>;
70
+ }, z.core.$strip>>>;
207
71
  startedAt: z.ZodNullable<z.ZodDate>;
208
72
  durationMinutes: z.ZodNumber;
209
73
  endedAt: z.ZodNullable<z.ZodDate>;
210
- hostId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
74
+ hostId: z.ZodNullable<z.ZodString>;
211
75
  maxEntries: z.ZodNullable<z.ZodNumber>;
212
76
  winnerCount: z.ZodNumber;
213
77
  entryFilter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
214
- roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
215
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
216
- }, "strip", z.ZodTypeAny, {
217
- roles: string[];
218
- roleMode: "whitelist" | "blacklist";
219
- }, {
220
- roles: string[];
221
- roleMode: "whitelist" | "blacklist";
222
- }>>>;
78
+ roleMode: z.ZodEnum<{
79
+ whitelist: "whitelist";
80
+ blacklist: "blacklist";
81
+ }>;
82
+ roles: z.ZodArray<z.ZodString>;
83
+ }, z.core.$strip>>>;
223
84
  disableDoubleVoteEntry: z.ZodNullable<z.ZodBoolean>;
224
- roleBonusType: z.ZodNullable<z.ZodEnum<["stackable", "highest"]>>;
225
- roleBonuses: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
226
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
85
+ roleBonusType: z.ZodNullable<z.ZodEnum<{
86
+ stackable: "stackable";
87
+ highest: "highest";
88
+ }>>;
89
+ roleBonuses: z.ZodArray<z.ZodLazy<z.ZodObject<{
90
+ roles: z.ZodArray<z.ZodString>;
227
91
  additionalEntries: z.ZodNumber;
228
- }, "strip", z.ZodTypeAny, {
229
- roles: string[];
230
- additionalEntries: number;
231
- }, {
232
- roles: string[];
233
- additionalEntries: number;
234
- }>>, "many">, {
235
- roles: string[];
236
- additionalEntries: number;
237
- }[], {
238
- roles: string[];
239
- additionalEntries: number;
240
- }[]>;
92
+ }, z.core.$strip>>>;
241
93
  requirements: z.ZodNullable<z.ZodLazy<z.ZodObject<{
242
94
  joinedServerBefore: z.ZodNullable<z.ZodDate>;
243
95
  accountCreatedBefore: z.ZodNullable<z.ZodDate>;
244
96
  boostingServer: z.ZodNullable<z.ZodBoolean>;
245
97
  messageCount: z.ZodNullable<z.ZodNumber>;
246
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
247
- }, "strip", z.ZodTypeAny, {
248
- roles: string[];
249
- joinedServerBefore: Date | null;
250
- accountCreatedBefore: Date | null;
251
- boostingServer: boolean | null;
252
- messageCount: number | null;
253
- }, {
254
- roles: string[];
255
- joinedServerBefore: Date | null;
256
- accountCreatedBefore: Date | null;
257
- boostingServer: boolean | null;
258
- messageCount: number | null;
259
- }>>>;
260
- bypassRequirementsRoles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
261
- }, "strip", z.ZodTypeAny, {
262
- name: string;
263
- guildId: string;
264
- disableDoubleVoteEntry: boolean | null;
265
- durationMinutes: number;
266
- channelId: string;
267
- messageId: string | null;
268
- emojiUnicodeOrId: string | null;
269
- currentEntries: {
270
- entries: number;
271
- username: string;
272
- userId: string;
273
- }[];
274
- entryFilter: {
275
- roles: string[];
276
- roleMode: "whitelist" | "blacklist";
277
- } | null;
278
- roleBonuses: {
279
- roles: string[];
280
- additionalEntries: number;
281
- }[];
282
- requirements: {
283
- roles: string[];
284
- joinedServerBefore: Date | null;
285
- accountCreatedBefore: Date | null;
286
- boostingServer: boolean | null;
287
- messageCount: number | null;
288
- } | null;
289
- giveawayId: string;
290
- winnerIds: string[];
291
- mentionRole: string | null;
292
- buttonLabel: string | null;
293
- liveEntryCountUpdatedAt: Date | null;
294
- startedAt: Date | null;
295
- endedAt: Date | null;
296
- hostId: string | null;
297
- maxEntries: number | null;
298
- winnerCount: number;
299
- roleBonusType: "stackable" | "highest" | null;
300
- bypassRequirementsRoles: string[];
301
- }, {
302
- name: string;
303
- guildId: string;
304
- disableDoubleVoteEntry: boolean | null;
305
- durationMinutes: number;
306
- channelId: string;
307
- messageId: string | null;
308
- emojiUnicodeOrId: string | null;
309
- currentEntries: {
310
- entries: number;
311
- username: string;
312
- userId: string;
313
- }[];
314
- entryFilter: {
315
- roles: string[];
316
- roleMode: "whitelist" | "blacklist";
317
- } | null;
318
- roleBonuses: {
319
- roles: string[];
320
- additionalEntries: number;
321
- }[];
322
- requirements: {
323
- roles: string[];
324
- joinedServerBefore: Date | null;
325
- accountCreatedBefore: Date | null;
326
- boostingServer: boolean | null;
327
- messageCount: number | null;
328
- } | null;
329
- giveawayId: string;
330
- winnerIds: string[];
331
- mentionRole: string | null;
332
- buttonLabel: string | null;
333
- liveEntryCountUpdatedAt: Date | null;
334
- startedAt: Date | null;
335
- endedAt: Date | null;
336
- hostId: string | null;
337
- maxEntries: number | null;
338
- winnerCount: number;
339
- roleBonusType: "stackable" | "highest" | null;
340
- bypassRequirementsRoles: string[];
341
- }>;
98
+ roles: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strip>>>;
100
+ bypassRequirementsRoles: z.ZodArray<z.ZodString>;
101
+ }, z.core.$strip>;
342
102
  readonly GuildGiveawayFilterSchema: z.ZodObject<{
343
- roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
344
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
345
- }, "strip", z.ZodTypeAny, {
346
- roles: string[];
347
- roleMode: "whitelist" | "blacklist";
348
- }, {
349
- roles: string[];
350
- roleMode: "whitelist" | "blacklist";
351
- }>;
103
+ roleMode: z.ZodEnum<{
104
+ whitelist: "whitelist";
105
+ blacklist: "blacklist";
106
+ }>;
107
+ roles: z.ZodArray<z.ZodString>;
108
+ }, z.core.$strip>;
352
109
  readonly GuildGiveawayRoleBonusSchema: z.ZodObject<{
353
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
110
+ roles: z.ZodArray<z.ZodString>;
354
111
  additionalEntries: z.ZodNumber;
355
- }, "strip", z.ZodTypeAny, {
356
- roles: string[];
357
- additionalEntries: number;
358
- }, {
359
- roles: string[];
360
- additionalEntries: number;
361
- }>;
112
+ }, z.core.$strip>;
362
113
  readonly GuildGiveawayRequirementsSchema: z.ZodObject<{
363
114
  joinedServerBefore: z.ZodNullable<z.ZodDate>;
364
115
  accountCreatedBefore: z.ZodNullable<z.ZodDate>;
365
116
  boostingServer: z.ZodNullable<z.ZodBoolean>;
366
117
  messageCount: z.ZodNullable<z.ZodNumber>;
367
- roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
368
- }, "strip", z.ZodTypeAny, {
369
- roles: string[];
370
- joinedServerBefore: Date | null;
371
- accountCreatedBefore: Date | null;
372
- boostingServer: boolean | null;
373
- messageCount: number | null;
374
- }, {
375
- roles: string[];
376
- joinedServerBefore: Date | null;
377
- accountCreatedBefore: Date | null;
378
- boostingServer: boolean | null;
379
- messageCount: number | null;
380
- }>;
118
+ roles: z.ZodArray<z.ZodString>;
119
+ }, z.core.$strip>;
381
120
  };
382
121
  export declare const GuildGiveawayZodPartial: PartialZodObject<typeof GuildGiveawayZod>;