@notidotbot/noti-api-client 1.4.11 → 1.4.12

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.
@@ -7,7 +7,7 @@ export type YoutubeStreamerRelations = 'db' | 'youtubeStreamer' | 'ytsCustomMess
7
7
  export declare const YoutubeStreamerZod: {
8
8
  readonly YoutubeStreamerSchema: z.ZodObject<{
9
9
  streamerUserName: z.ZodString;
10
- guildId: z.ZodEffects<z.ZodString, string, string>;
10
+ guildId: z.ZodString;
11
11
  streamerId: z.ZodNullable<z.ZodString>;
12
12
  deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
13
13
  sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
@@ -30,281 +30,54 @@ export declare const YoutubeStreamerZod: {
30
30
  name: z.ZodString;
31
31
  value: z.ZodNullable<z.ZodString>;
32
32
  inline: z.ZodNullable<z.ZodBoolean>;
33
- }, "strip", z.ZodTypeAny, {
34
- name: string;
35
- value: string | null;
36
- inline: boolean | null;
37
- }, {
38
- name: string;
39
- value: string | null;
40
- inline: boolean | null;
41
- }>>, "many">;
42
- }, "strip", z.ZodTypeAny, {
43
- title: string | null;
44
- description: string;
45
- url: string | null;
46
- color: string | null;
47
- footer: string | null;
48
- footerIcon: string | null;
49
- image: string | null;
50
- thumbnail: string | null;
51
- author: string | null;
52
- authorIcon: string | null;
53
- fields: {
54
- name: string;
55
- value: string | null;
56
- inline: boolean | null;
57
- }[];
58
- }, {
59
- title: string | null;
60
- description: string;
61
- url: string | null;
62
- color: string | null;
63
- footer: string | null;
64
- footerIcon: string | null;
65
- image: string | null;
66
- thumbnail: string | null;
67
- author: string | null;
68
- authorIcon: string | null;
69
- fields: {
70
- name: string;
71
- value: string | null;
72
- inline: boolean | null;
73
- }[];
74
- }>>>;
33
+ }, z.core.$strip>>>;
34
+ }, z.core.$strip>>>;
75
35
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
76
36
  title: z.ZodString;
77
37
  url: z.ZodNullable<z.ZodString>;
78
38
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- title: string;
81
- url: string | null;
82
- emojiUnicodeOrId: string | null;
83
- }, {
84
- title: string;
85
- url: string | null;
86
- emojiUnicodeOrId: string | null;
87
- }>>, "many">;
39
+ }, z.core.$strip>>>;
88
40
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
89
41
  enabled: z.ZodNullable<z.ZodBoolean>;
90
42
  username: z.ZodNullable<z.ZodString>;
91
43
  avatarUrl: z.ZodNullable<z.ZodString>;
92
- }, "strip", z.ZodTypeAny, {
93
- enabled: boolean | null;
94
- username: string | null;
95
- avatarUrl: string | null;
96
- }, {
97
- enabled: boolean | null;
98
- username: string | null;
99
- avatarUrl: string | null;
100
- }>>>;
101
- type: z.ZodEnum<["clip", "vod", "kickLive", "kickOffline", "twitchLive", "twitchOffline", "rumbleLive", "rumbleOffline", "tiktokLive", "tiktokOffline", "tiktokVideo", "youtubeLive", "youtubeVideo"]>;
102
- }, "strip", z.ZodTypeAny, {
103
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
104
- webhook: {
105
- enabled: boolean | null;
106
- username: string | null;
107
- avatarUrl: string | null;
108
- } | null;
109
- content: string | null;
110
- embed: {
111
- title: string | null;
112
- description: string;
113
- url: string | null;
114
- color: string | null;
115
- footer: string | null;
116
- footerIcon: string | null;
117
- image: string | null;
118
- thumbnail: string | null;
119
- author: string | null;
120
- authorIcon: string | null;
121
- fields: {
122
- name: string;
123
- value: string | null;
124
- inline: boolean | null;
125
- }[];
126
- } | null;
127
- buttons: {
128
- title: string;
129
- url: string | null;
130
- emojiUnicodeOrId: string | null;
131
- }[];
132
- }, {
133
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
134
- webhook: {
135
- enabled: boolean | null;
136
- username: string | null;
137
- avatarUrl: string | null;
138
- } | null;
139
- content: string | null;
140
- embed: {
141
- title: string | null;
142
- description: string;
143
- url: string | null;
144
- color: string | null;
145
- footer: string | null;
146
- footerIcon: string | null;
147
- image: string | null;
148
- thumbnail: string | null;
149
- author: string | null;
150
- authorIcon: string | null;
151
- fields: {
152
- name: string;
153
- value: string | null;
154
- inline: boolean | null;
155
- }[];
156
- } | null;
157
- buttons: {
158
- title: string;
159
- url: string | null;
160
- emojiUnicodeOrId: string | null;
161
- }[];
162
- }>>, "many">;
163
- liveNotificationChannelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
164
- videoNotificationChannelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
44
+ }, z.core.$strip>>>;
45
+ type: z.ZodEnum<{
46
+ clip: "clip";
47
+ kickBuiltInClip: "kickBuiltInClip";
48
+ vod: "vod";
49
+ kickLive: "kickLive";
50
+ kickOffline: "kickOffline";
51
+ twitchLive: "twitchLive";
52
+ twitchOffline: "twitchOffline";
53
+ rumbleLive: "rumbleLive";
54
+ rumbleOffline: "rumbleOffline";
55
+ tiktokLive: "tiktokLive";
56
+ tiktokOffline: "tiktokOffline";
57
+ tiktokVideo: "tiktokVideo";
58
+ youtubeLive: "youtubeLive";
59
+ youtubeVideo: "youtubeVideo";
60
+ }>;
61
+ }, z.core.$strip>>>;
62
+ liveNotificationChannelId: z.ZodNullable<z.ZodString>;
63
+ videoNotificationChannelId: z.ZodNullable<z.ZodString>;
165
64
  showNotifyButton: z.ZodNullable<z.ZodBoolean>;
166
- pingRoleId: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
65
+ pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
167
66
  customCoolDownBeforeNextLive: z.ZodNullable<z.ZodNumber>;
168
- liveRoleId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
169
- usersForLiveRole: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
170
- usersWhoHaveLiveRole: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
67
+ liveRoleId: z.ZodNullable<z.ZodString>;
68
+ usersForLiveRole: z.ZodArray<z.ZodString>;
69
+ usersWhoHaveLiveRole: z.ZodArray<z.ZodString>;
171
70
  statsChannelIds: z.ZodNullable<z.ZodLazy<z.ZodObject<{
172
71
  isLive: z.ZodNullable<z.ZodString>;
173
- }, "strip", z.ZodTypeAny, {
174
- isLive: string | null;
175
- }, {
176
- isLive: string | null;
177
- }>>>;
72
+ }, z.core.$strip>>>;
178
73
  isCurrentlyLive: z.ZodNullable<z.ZodLazy<z.ZodObject<{
179
74
  correct: z.ZodNullable<z.ZodBoolean>;
180
- channelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
181
- messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
182
- }, "strip", z.ZodTypeAny, {
183
- channelId: string | null;
184
- messageId: string | null;
185
- correct: boolean | null;
186
- }, {
187
- channelId: string | null;
188
- messageId: string | null;
189
- correct: boolean | null;
190
- }>>>;
75
+ channelId: z.ZodNullable<z.ZodString>;
76
+ messageId: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>>;
191
78
  lastLive: z.ZodNullable<z.ZodDate>;
192
79
  lastVideo: z.ZodNullable<z.ZodDate>;
193
- }, "strip", z.ZodTypeAny, {
194
- guildId: string;
195
- streamerUserName: string;
196
- customMessages: {
197
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
198
- webhook: {
199
- enabled: boolean | null;
200
- username: string | null;
201
- avatarUrl: string | null;
202
- } | null;
203
- content: string | null;
204
- embed: {
205
- title: string | null;
206
- description: string;
207
- url: string | null;
208
- color: string | null;
209
- footer: string | null;
210
- footerIcon: string | null;
211
- image: string | null;
212
- thumbnail: string | null;
213
- author: string | null;
214
- authorIcon: string | null;
215
- fields: {
216
- name: string;
217
- value: string | null;
218
- inline: boolean | null;
219
- }[];
220
- } | null;
221
- buttons: {
222
- title: string;
223
- url: string | null;
224
- emojiUnicodeOrId: string | null;
225
- }[];
226
- }[];
227
- statsChannelIds: {
228
- isLive: string | null;
229
- } | null;
230
- isCurrentlyLive: {
231
- channelId: string | null;
232
- messageId: string | null;
233
- correct: boolean | null;
234
- } | null;
235
- streamerId: string | null;
236
- deleteEmbeds: boolean | null;
237
- sendOfflineMessage: boolean | null;
238
- usePerStreamerEmbeds: boolean | null;
239
- autoPublishIfAnnouncmentChannel: boolean | null;
240
- showNotifyButton: boolean | null;
241
- pingRoleId: string | null;
242
- customCoolDownBeforeNextLive: number | null;
243
- liveRoleId: string | null;
244
- usersForLiveRole: string[];
245
- usersWhoHaveLiveRole: string[];
246
- lastLive: Date | null;
247
- liveNotificationChannelId: string | null;
248
- videoNotificationChannelId: string | null;
249
- lastVideo: Date | null;
250
- }, {
251
- guildId: string;
252
- streamerUserName: string;
253
- customMessages: {
254
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
255
- webhook: {
256
- enabled: boolean | null;
257
- username: string | null;
258
- avatarUrl: string | null;
259
- } | null;
260
- content: string | null;
261
- embed: {
262
- title: string | null;
263
- description: string;
264
- url: string | null;
265
- color: string | null;
266
- footer: string | null;
267
- footerIcon: string | null;
268
- image: string | null;
269
- thumbnail: string | null;
270
- author: string | null;
271
- authorIcon: string | null;
272
- fields: {
273
- name: string;
274
- value: string | null;
275
- inline: boolean | null;
276
- }[];
277
- } | null;
278
- buttons: {
279
- title: string;
280
- url: string | null;
281
- emojiUnicodeOrId: string | null;
282
- }[];
283
- }[];
284
- statsChannelIds: {
285
- isLive: string | null;
286
- } | null;
287
- isCurrentlyLive: {
288
- channelId: string | null;
289
- messageId: string | null;
290
- correct: boolean | null;
291
- } | null;
292
- streamerId: string | null;
293
- deleteEmbeds: boolean | null;
294
- sendOfflineMessage: boolean | null;
295
- usePerStreamerEmbeds: boolean | null;
296
- autoPublishIfAnnouncmentChannel: boolean | null;
297
- showNotifyButton: boolean | null;
298
- pingRoleId: string | null;
299
- customCoolDownBeforeNextLive: number | null;
300
- liveRoleId: string | null;
301
- usersForLiveRole: string[];
302
- usersWhoHaveLiveRole: string[];
303
- lastLive: Date | null;
304
- liveNotificationChannelId: string | null;
305
- videoNotificationChannelId: string | null;
306
- lastVideo: Date | null;
307
- }>;
80
+ }, z.core.$strip>;
308
81
  readonly YTSCustomMessageSchema: z.ZodObject<{
309
82
  content: z.ZodNullable<z.ZodString>;
310
83
  embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
@@ -322,155 +95,42 @@ export declare const YoutubeStreamerZod: {
322
95
  name: z.ZodString;
323
96
  value: z.ZodNullable<z.ZodString>;
324
97
  inline: z.ZodNullable<z.ZodBoolean>;
325
- }, "strip", z.ZodTypeAny, {
326
- name: string;
327
- value: string | null;
328
- inline: boolean | null;
329
- }, {
330
- name: string;
331
- value: string | null;
332
- inline: boolean | null;
333
- }>>, "many">;
334
- }, "strip", z.ZodTypeAny, {
335
- title: string | null;
336
- description: string;
337
- url: string | null;
338
- color: string | null;
339
- footer: string | null;
340
- footerIcon: string | null;
341
- image: string | null;
342
- thumbnail: string | null;
343
- author: string | null;
344
- authorIcon: string | null;
345
- fields: {
346
- name: string;
347
- value: string | null;
348
- inline: boolean | null;
349
- }[];
350
- }, {
351
- title: string | null;
352
- description: string;
353
- url: string | null;
354
- color: string | null;
355
- footer: string | null;
356
- footerIcon: string | null;
357
- image: string | null;
358
- thumbnail: string | null;
359
- author: string | null;
360
- authorIcon: string | null;
361
- fields: {
362
- name: string;
363
- value: string | null;
364
- inline: boolean | null;
365
- }[];
366
- }>>>;
98
+ }, z.core.$strip>>>;
99
+ }, z.core.$strip>>>;
367
100
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
368
101
  title: z.ZodString;
369
102
  url: z.ZodNullable<z.ZodString>;
370
103
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
371
- }, "strip", z.ZodTypeAny, {
372
- title: string;
373
- url: string | null;
374
- emojiUnicodeOrId: string | null;
375
- }, {
376
- title: string;
377
- url: string | null;
378
- emojiUnicodeOrId: string | null;
379
- }>>, "many">;
104
+ }, z.core.$strip>>>;
380
105
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
381
106
  enabled: z.ZodNullable<z.ZodBoolean>;
382
107
  username: z.ZodNullable<z.ZodString>;
383
108
  avatarUrl: z.ZodNullable<z.ZodString>;
384
- }, "strip", z.ZodTypeAny, {
385
- enabled: boolean | null;
386
- username: string | null;
387
- avatarUrl: string | null;
388
- }, {
389
- enabled: boolean | null;
390
- username: string | null;
391
- avatarUrl: string | null;
392
- }>>>;
393
- type: z.ZodEnum<["clip", "vod", "kickLive", "kickOffline", "twitchLive", "twitchOffline", "rumbleLive", "rumbleOffline", "tiktokLive", "tiktokOffline", "tiktokVideo", "youtubeLive", "youtubeVideo"]>;
394
- }, "strip", z.ZodTypeAny, {
395
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
396
- webhook: {
397
- enabled: boolean | null;
398
- username: string | null;
399
- avatarUrl: string | null;
400
- } | null;
401
- content: string | null;
402
- embed: {
403
- title: string | null;
404
- description: string;
405
- url: string | null;
406
- color: string | null;
407
- footer: string | null;
408
- footerIcon: string | null;
409
- image: string | null;
410
- thumbnail: string | null;
411
- author: string | null;
412
- authorIcon: string | null;
413
- fields: {
414
- name: string;
415
- value: string | null;
416
- inline: boolean | null;
417
- }[];
418
- } | null;
419
- buttons: {
420
- title: string;
421
- url: string | null;
422
- emojiUnicodeOrId: string | null;
423
- }[];
424
- }, {
425
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
426
- webhook: {
427
- enabled: boolean | null;
428
- username: string | null;
429
- avatarUrl: string | null;
430
- } | null;
431
- content: string | null;
432
- embed: {
433
- title: string | null;
434
- description: string;
435
- url: string | null;
436
- color: string | null;
437
- footer: string | null;
438
- footerIcon: string | null;
439
- image: string | null;
440
- thumbnail: string | null;
441
- author: string | null;
442
- authorIcon: string | null;
443
- fields: {
444
- name: string;
445
- value: string | null;
446
- inline: boolean | null;
447
- }[];
448
- } | null;
449
- buttons: {
450
- title: string;
451
- url: string | null;
452
- emojiUnicodeOrId: string | null;
453
- }[];
454
- }>;
109
+ }, z.core.$strip>>>;
110
+ type: z.ZodEnum<{
111
+ clip: "clip";
112
+ kickBuiltInClip: "kickBuiltInClip";
113
+ vod: "vod";
114
+ kickLive: "kickLive";
115
+ kickOffline: "kickOffline";
116
+ twitchLive: "twitchLive";
117
+ twitchOffline: "twitchOffline";
118
+ rumbleLive: "rumbleLive";
119
+ rumbleOffline: "rumbleOffline";
120
+ tiktokLive: "tiktokLive";
121
+ tiktokOffline: "tiktokOffline";
122
+ tiktokVideo: "tiktokVideo";
123
+ youtubeLive: "youtubeLive";
124
+ youtubeVideo: "youtubeVideo";
125
+ }>;
126
+ }, z.core.$strip>;
455
127
  readonly YTSStatsChannelIdSchema: z.ZodObject<{
456
128
  isLive: z.ZodNullable<z.ZodString>;
457
- }, "strip", z.ZodTypeAny, {
458
- isLive: string | null;
459
- }, {
460
- isLive: string | null;
461
- }>;
129
+ }, z.core.$strip>;
462
130
  readonly YTSCurrentlyLiveSchema: z.ZodObject<{
463
131
  correct: z.ZodNullable<z.ZodBoolean>;
464
- channelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
465
- messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
466
- }, "strip", z.ZodTypeAny, {
467
- channelId: string | null;
468
- messageId: string | null;
469
- correct: boolean | null;
470
- }, {
471
- channelId: string | null;
472
- messageId: string | null;
473
- correct: boolean | null;
474
- }>;
132
+ channelId: z.ZodNullable<z.ZodString>;
133
+ messageId: z.ZodNullable<z.ZodString>;
134
+ }, z.core.$strip>;
475
135
  };
476
136
  export declare const YoutubeStreamerZodPartial: PartialZodObject<typeof YoutubeStreamerZod>;
@@ -2,7 +2,6 @@ import { YoutubeStreamerRelations } from './youtubeStreamer.zod';
2
2
  import { TwitchStreamerRelations } from './twitchStreamer.zod';
3
3
  import { TiktokStreamerRelations } from './tiktokStreamer.zod';
4
4
  import { RumbleStreamerRelations } from './rumbleStreamer.zod';
5
- import { TSPrisma } from '@prisma/client';
6
5
  import { KickStreamerRelations } from './kickStreamer.zod';
7
6
  import { GuildStarboardRelations } from './starboard.zod';
8
7
  import { R2StorageRelations } from './r2Storage.zod';
@@ -11,6 +10,7 @@ import { RemoveProperties } from '../prisma';
11
10
  import { GuildRelations } from './guild.zod';
12
11
  import { UserRelations } from './user.zod';
13
12
  import { TeamRelations } from './team.zod';
13
+ import { TSPrisma } from '@prisma/client';
14
14
  import { z } from 'zod';
15
15
  export type ZodRelations = {
16
16
  client: ClientRelations;
@@ -26,10 +26,11 @@ export type ZodRelations = {
26
26
  guildStarboard: GuildStarboardRelations;
27
27
  };
28
28
  export type ZodRelationTypes = TSPrisma.FirstUppercase<keyof ZodRelations>;
29
- export type RT<T extends string> = T extends keyof TSPrisma.TSPrismaModelsFull ? z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], TSPrisma.FirstLowercase<T> extends keyof ZodRelations ? ZodRelations[TSPrisma.FirstLowercase<T>] : never>> : never;
30
- export declare const NoDuplicate: <T extends z.ZodTypeAny>(type: z.ZodArray<T, "many">, fields?: string[]) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], T["_input"][]>;
31
- export declare const SnowFlake: z.ZodEffects<z.ZodString, string, string>;
32
- export declare const SnowFlakeOrEveryone: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>;
29
+ export type RT<T extends ZodRelationTypes> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], ZodRelations[TSPrisma.FirstLowercase<T>]>>;
30
+ export declare const NoDuplicate: <T extends z.ZodTypeAny>(type: z.ZodArray<T>, fields?: string[]) => z.ZodArray<T>;
31
+ export declare const SnowFlakeRegex: RegExp;
32
+ export declare const SnowFlake: z.ZodString;
33
+ export declare const SnowFlakeOrEveryone: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>;
33
34
  export declare const CentralZod: {
34
35
  SingleMessage: () => {
35
36
  message: z.ZodNullable<z.ZodString>;
@@ -37,15 +38,7 @@ export declare const CentralZod: {
37
38
  enabled: z.ZodNullable<z.ZodBoolean>;
38
39
  username: z.ZodNullable<z.ZodString>;
39
40
  avatarUrl: z.ZodNullable<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- enabled: boolean | null;
42
- username: string | null;
43
- avatarUrl: string | null;
44
- }, {
45
- enabled: boolean | null;
46
- username: string | null;
47
- avatarUrl: string | null;
48
- }>>>;
41
+ }, z.core.$strip>>>;
49
42
  };
50
43
  Message: () => {
51
44
  content: z.ZodNullable<z.ZodString>;
@@ -64,74 +57,18 @@ export declare const CentralZod: {
64
57
  name: z.ZodString;
65
58
  value: z.ZodNullable<z.ZodString>;
66
59
  inline: z.ZodNullable<z.ZodBoolean>;
67
- }, "strip", z.ZodTypeAny, {
68
- name: string;
69
- value: string | null;
70
- inline: boolean | null;
71
- }, {
72
- name: string;
73
- value: string | null;
74
- inline: boolean | null;
75
- }>>, "many">;
76
- }, "strip", z.ZodTypeAny, {
77
- title: string | null;
78
- description: string;
79
- url: string | null;
80
- color: string | null;
81
- footer: string | null;
82
- footerIcon: string | null;
83
- image: string | null;
84
- thumbnail: string | null;
85
- author: string | null;
86
- authorIcon: string | null;
87
- fields: {
88
- name: string;
89
- value: string | null;
90
- inline: boolean | null;
91
- }[];
92
- }, {
93
- title: string | null;
94
- description: string;
95
- url: string | null;
96
- color: string | null;
97
- footer: string | null;
98
- footerIcon: string | null;
99
- image: string | null;
100
- thumbnail: string | null;
101
- author: string | null;
102
- authorIcon: string | null;
103
- fields: {
104
- name: string;
105
- value: string | null;
106
- inline: boolean | null;
107
- }[];
108
- }>>>;
60
+ }, z.core.$strip>>>;
61
+ }, z.core.$strip>>>;
109
62
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
110
63
  title: z.ZodString;
111
64
  url: z.ZodNullable<z.ZodString>;
112
65
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
113
- }, "strip", z.ZodTypeAny, {
114
- title: string;
115
- url: string | null;
116
- emojiUnicodeOrId: string | null;
117
- }, {
118
- title: string;
119
- url: string | null;
120
- emojiUnicodeOrId: string | null;
121
- }>>, "many">;
66
+ }, z.core.$strip>>>;
122
67
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
123
68
  enabled: z.ZodNullable<z.ZodBoolean>;
124
69
  username: z.ZodNullable<z.ZodString>;
125
70
  avatarUrl: z.ZodNullable<z.ZodString>;
126
- }, "strip", z.ZodTypeAny, {
127
- enabled: boolean | null;
128
- username: string | null;
129
- avatarUrl: string | null;
130
- }, {
131
- enabled: boolean | null;
132
- username: string | null;
133
- avatarUrl: string | null;
134
- }>>>;
71
+ }, z.core.$strip>>>;
135
72
  };
136
73
  Embed: () => {
137
74
  title: z.ZodNullable<z.ZodString>;
@@ -148,15 +85,7 @@ export declare const CentralZod: {
148
85
  name: z.ZodString;
149
86
  value: z.ZodNullable<z.ZodString>;
150
87
  inline: z.ZodNullable<z.ZodBoolean>;
151
- }, "strip", z.ZodTypeAny, {
152
- name: string;
153
- value: string | null;
154
- inline: boolean | null;
155
- }, {
156
- name: string;
157
- value: string | null;
158
- inline: boolean | null;
159
- }>>, "many">;
88
+ }, z.core.$strip>>>;
160
89
  };
161
90
  Field: () => {
162
91
  name: z.ZodString;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralZod = exports.SnowFlakeOrEveryone = exports.SnowFlake = exports.NoDuplicate = void 0;
3
+ exports.CentralZod = exports.SnowFlakeOrEveryone = exports.SnowFlake = exports.SnowFlakeRegex = exports.NoDuplicate = void 0;
4
4
  exports.makePartialTyped = makePartialTyped;
5
+ const schema_zod_1 = require("./schema.zod");
5
6
  const zod_1 = require("zod");
6
7
  const NoDuplicate = (type, fields) => type.refine((arr) => {
7
8
  if (fields?.length) {
@@ -13,7 +14,8 @@ const NoDuplicate = (type, fields) => type.refine((arr) => {
13
14
  }
14
15
  });
15
16
  exports.NoDuplicate = NoDuplicate;
16
- exports.SnowFlake = zod_1.z.string().refine((x) => /^\d{17,21}$/.test(x));
17
+ exports.SnowFlakeRegex = /^\d{17,21}$/;
18
+ exports.SnowFlake = zod_1.z.string().refine((x) => exports.SnowFlakeRegex.test(x));
17
19
  exports.SnowFlakeOrEveryone = zod_1.z.union([exports.SnowFlake, zod_1.z.literal('everyone'), zod_1.z.literal('here')]);
18
20
  exports.CentralZod = {
19
21
  SingleMessage: () => ({
@@ -56,5 +58,5 @@ exports.CentralZod = {
56
58
  }),
57
59
  };
58
60
  function makePartialTyped(schema) {
59
- return Object.fromEntries(Object.entries(schema).map(([key, value]) => [key, value.optional()]));
61
+ return Object.fromEntries(Object.entries(schema).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value).optional()]));
60
62
  }