@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.
@@ -1,23 +1,19 @@
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], UserRelations>>;
6
6
  export type UserRelations = 'db' | 'user' | 'userMediaShare' | 'userKickAccount' | 'userMediaShare' | 'userNotifications';
7
7
  export declare const UserZod: {
8
8
  readonly UserSchema: z.ZodObject<{
9
- userId: z.ZodEffects<z.ZodString, string, string>;
9
+ userId: z.ZodString;
10
10
  username: z.ZodNullable<z.ZodString>;
11
11
  email: z.ZodNullable<z.ZodString>;
12
12
  locale: z.ZodString;
13
13
  blacklisted: z.ZodNullable<z.ZodBoolean>;
14
14
  premium: z.ZodNullable<z.ZodLazy<z.ZodObject<{
15
15
  tier: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- tier: string;
18
- }, {
19
- tier: string;
20
- }>>>;
16
+ }, z.core.$strip>>>;
21
17
  badges: z.ZodNullable<z.ZodString>;
22
18
  bitfield: z.ZodNullable<z.ZodString>;
23
19
  oneServerPremium: z.ZodNullable<z.ZodString>;
@@ -27,109 +23,56 @@ export declare const UserZod: {
27
23
  settings: z.ZodNullable<z.ZodLazy<z.ZodObject<{
28
24
  prefix: z.ZodString;
29
25
  volume: z.ZodNumber;
30
- modes: z.ZodArray<z.ZodEnum<["tiktok", "youtube", "shorts"]>, "many">;
31
- }, "strip", z.ZodTypeAny, {
32
- prefix: string;
33
- volume: number;
34
- modes: ("tiktok" | "youtube" | "shorts")[];
35
- }, {
36
- prefix: string;
37
- volume: number;
38
- modes: ("tiktok" | "youtube" | "shorts")[];
39
- }>>>;
40
- banList: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
41
- modList: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
26
+ modes: z.ZodArray<z.ZodEnum<{
27
+ tiktok: "tiktok";
28
+ youtube: "youtube";
29
+ shorts: "shorts";
30
+ }>>;
31
+ }, z.core.$strip>>>;
32
+ banList: z.ZodArray<z.ZodString>;
33
+ modList: z.ZodArray<z.ZodString>;
42
34
  password: z.ZodNullable<z.ZodString>;
43
35
  permissions: z.ZodArray<z.ZodLazy<z.ZodObject<{
44
- command: z.ZodEnum<["request", "skip", "pause", "clear", "rban", "play", "mode", "runban"]>;
45
- onKick: z.ZodArray<z.ZodEnum<["vip", "sub", "mod", "broadcaster", "everyone"]>, "many">;
46
- }, "strip", z.ZodTypeAny, {
47
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
48
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
49
- }, {
50
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
51
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
52
- }>>, "many">;
53
- }, "strip", z.ZodTypeAny, {
54
- enabled: boolean;
55
- banList: string[];
56
- modList: string[];
57
- password: string | null;
58
- settings: {
59
- prefix: string;
60
- volume: number;
61
- modes: ("tiktok" | "youtube" | "shorts")[];
62
- } | null;
63
- permissions: {
64
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
65
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
66
- }[];
67
- }, {
68
- enabled: boolean;
69
- banList: string[];
70
- modList: string[];
71
- password: string | null;
72
- settings: {
73
- prefix: string;
74
- volume: number;
75
- modes: ("tiktok" | "youtube" | "shorts")[];
76
- } | null;
77
- permissions: {
78
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
79
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
80
- }[];
81
- }>>>;
36
+ command: z.ZodEnum<{
37
+ mode: "mode";
38
+ request: "request";
39
+ skip: "skip";
40
+ pause: "pause";
41
+ clear: "clear";
42
+ rban: "rban";
43
+ play: "play";
44
+ runban: "runban";
45
+ }>;
46
+ onKick: z.ZodArray<z.ZodEnum<{
47
+ sub: "sub";
48
+ everyone: "everyone";
49
+ vip: "vip";
50
+ mod: "mod";
51
+ broadcaster: "broadcaster";
52
+ }>>;
53
+ }, z.core.$strip>>>;
54
+ }, z.core.$strip>>>;
82
55
  sessions: z.ZodArray<z.ZodLazy<z.ZodObject<{
83
56
  key: z.ZodString;
84
57
  expiresAt: z.ZodDate;
85
- }, "strip", z.ZodTypeAny, {
86
- key: string;
87
- expiresAt: Date;
88
- }, {
89
- key: string;
90
- expiresAt: Date;
91
- }>>, "many">;
58
+ }, z.core.$strip>>>;
92
59
  linkedRoles: z.ZodNullable<z.ZodLazy<z.ZodObject<{
93
60
  accessToken: z.ZodNullable<z.ZodString>;
94
61
  refreshToken: z.ZodNullable<z.ZodString>;
95
62
  expiresAt: z.ZodNullable<z.ZodDate>;
96
- }, "strip", z.ZodTypeAny, {
97
- expiresAt: Date | null;
98
- accessToken: string | null;
99
- refreshToken: string | null;
100
- }, {
101
- expiresAt: Date | null;
102
- accessToken: string | null;
103
- refreshToken: string | null;
104
- }>>>;
63
+ }, z.core.$strip>>>;
105
64
  votes: z.ZodNumber;
106
65
  lastVoted: z.ZodNullable<z.ZodDate>;
107
66
  activeGuildSubscriptions: z.ZodArray<z.ZodLazy<z.ZodObject<{
108
- guildId: z.ZodEffects<z.ZodString, string, string>;
67
+ guildId: z.ZodString;
109
68
  subscriptionId: z.ZodNullable<z.ZodString>;
110
- }, "strip", z.ZodTypeAny, {
111
- guildId: string;
112
- subscriptionId: string | null;
113
- }, {
114
- guildId: string;
115
- subscriptionId: string | null;
116
- }>>, "many">;
69
+ }, z.core.$strip>>>;
117
70
  birthday: z.ZodNullable<z.ZodLazy<z.ZodObject<{
118
71
  date: z.ZodNullable<z.ZodString>;
119
72
  lastChanged: z.ZodNullable<z.ZodDate>;
120
73
  lastYearCongratulated: z.ZodNullable<z.ZodNumber>;
121
- whereToCongratulate: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
122
- }, "strip", z.ZodTypeAny, {
123
- date: string | null;
124
- lastChanged: Date | null;
125
- lastYearCongratulated: number | null;
126
- whereToCongratulate: string[];
127
- }, {
128
- date: string | null;
129
- lastChanged: Date | null;
130
- lastYearCongratulated: number | null;
131
- whereToCongratulate: string[];
132
- }>>>;
74
+ whereToCongratulate: z.ZodArray<z.ZodString>;
75
+ }, z.core.$strip>>>;
133
76
  kickAccount: z.ZodNullable<z.ZodLazy<z.ZodObject<{
134
77
  accountId: z.ZodNullable<z.ZodString>;
135
78
  username: z.ZodNullable<z.ZodString>;
@@ -137,417 +80,123 @@ export declare const UserZod: {
137
80
  subscribedTo: z.ZodArray<z.ZodLazy<z.ZodObject<{
138
81
  streamerUserName: z.ZodString;
139
82
  expiresAt: z.ZodDate;
140
- guildIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
141
- }, "strip", z.ZodTypeAny, {
142
- streamerUserName: string;
143
- expiresAt: Date;
144
- guildIds: string[];
145
- }, {
146
- streamerUserName: string;
147
- expiresAt: Date;
148
- guildIds: string[];
149
- }>>, "many">;
150
- }, "strip", z.ZodTypeAny, {
151
- username: string | null;
152
- chatRoomId: string | null;
153
- accountId: string | null;
154
- subscribedTo: {
155
- streamerUserName: string;
156
- expiresAt: Date;
157
- guildIds: string[];
158
- }[];
159
- }, {
160
- username: string | null;
161
- chatRoomId: string | null;
162
- accountId: string | null;
163
- subscribedTo: {
164
- streamerUserName: string;
165
- expiresAt: Date;
166
- guildIds: string[];
167
- }[];
168
- }>>>;
83
+ guildIds: z.ZodArray<z.ZodString>;
84
+ }, z.core.$strip>>>;
85
+ }, z.core.$strip>>>;
169
86
  twitchAccount: z.ZodNullable<z.ZodLazy<z.ZodObject<{
170
87
  accountId: z.ZodNullable<z.ZodString>;
171
88
  username: z.ZodNullable<z.ZodString>;
172
89
  chatRoomId: z.ZodNullable<z.ZodString>;
173
- }, "strip", z.ZodTypeAny, {
174
- username: string | null;
175
- chatRoomId: string | null;
176
- accountId: string | null;
177
- }, {
178
- username: string | null;
179
- chatRoomId: string | null;
180
- accountId: string | null;
181
- }>>>;
90
+ }, z.core.$strip>>>;
182
91
  rumbleAccount: z.ZodNullable<z.ZodLazy<z.ZodObject<{
183
92
  accountId: z.ZodNullable<z.ZodString>;
184
93
  username: z.ZodNullable<z.ZodString>;
185
- }, "strip", z.ZodTypeAny, {
186
- username: string | null;
187
- accountId: string | null;
188
- }, {
189
- username: string | null;
190
- accountId: string | null;
191
- }>>>;
94
+ }, z.core.$strip>>>;
192
95
  gettingStarted: z.ZodNullable<z.ZodLazy<z.ZodObject<{
193
96
  didLinkAllSocials: z.ZodBoolean;
194
97
  didJoinATeam: z.ZodBoolean;
195
98
  didBuyPremium: z.ZodBoolean;
196
99
  didInviteATeamMember: z.ZodBoolean;
197
100
  didDismissUserAds: z.ZodBoolean;
198
- }, "strip", z.ZodTypeAny, {
199
- didBuyPremium: boolean;
200
- didLinkAllSocials: boolean;
201
- didJoinATeam: boolean;
202
- didInviteATeamMember: boolean;
203
- didDismissUserAds: boolean;
204
- }, {
205
- didBuyPremium: boolean;
206
- didLinkAllSocials: boolean;
207
- didJoinATeam: boolean;
208
- didInviteATeamMember: boolean;
209
- didDismissUserAds: boolean;
210
- }>>>;
101
+ }, z.core.$strip>>>;
211
102
  notifications: z.ZodNullable<z.ZodLazy<z.ZodObject<{
212
103
  isRead: z.ZodBoolean;
213
104
  list: z.ZodArray<z.ZodLazy<z.ZodObject<{
214
105
  title: z.ZodString;
215
106
  message: z.ZodString;
216
107
  actionUrl: z.ZodNullable<z.ZodString>;
217
- severity: z.ZodEnum<["info", "warning", "emergency"]>;
218
- }, "strip", z.ZodTypeAny, {
219
- message: string;
220
- title: string;
221
- actionUrl: string | null;
222
- severity: "info" | "warning" | "emergency";
223
- }, {
224
- message: string;
225
- title: string;
226
- actionUrl: string | null;
227
- severity: "info" | "warning" | "emergency";
228
- }>>, "many">;
229
- }, "strip", z.ZodTypeAny, {
230
- isRead: boolean;
231
- list: {
232
- message: string;
233
- title: string;
234
- actionUrl: string | null;
235
- severity: "info" | "warning" | "emergency";
236
- }[];
237
- }, {
238
- isRead: boolean;
239
- list: {
240
- message: string;
241
- title: string;
242
- actionUrl: string | null;
243
- severity: "info" | "warning" | "emergency";
244
- }[];
245
- }>>>;
246
- }, "strip", z.ZodTypeAny, {
247
- premium: {
248
- tier: string;
249
- } | null;
250
- linkedRoles: {
251
- expiresAt: Date | null;
252
- accessToken: string | null;
253
- refreshToken: string | null;
254
- } | null;
255
- gettingStarted: {
256
- didBuyPremium: boolean;
257
- didLinkAllSocials: boolean;
258
- didJoinATeam: boolean;
259
- didInviteATeamMember: boolean;
260
- didDismissUserAds: boolean;
261
- } | null;
262
- locale: string;
263
- blacklisted: boolean | null;
264
- bitfield: string | null;
265
- notifications: {
266
- isRead: boolean;
267
- list: {
268
- message: string;
269
- title: string;
270
- actionUrl: string | null;
271
- severity: "info" | "warning" | "emergency";
272
- }[];
273
- } | null;
274
- birthday: {
275
- date: string | null;
276
- lastChanged: Date | null;
277
- lastYearCongratulated: number | null;
278
- whereToCongratulate: string[];
279
- } | null;
280
- username: string | null;
281
- userId: string;
282
- mediaShare: {
283
- enabled: boolean;
284
- banList: string[];
285
- modList: string[];
286
- password: string | null;
287
- settings: {
288
- prefix: string;
289
- volume: number;
290
- modes: ("tiktok" | "youtube" | "shorts")[];
291
- } | null;
292
- permissions: {
293
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
294
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
295
- }[];
296
- } | null;
297
- sessions: {
298
- key: string;
299
- expiresAt: Date;
300
- }[];
301
- activeGuildSubscriptions: {
302
- guildId: string;
303
- subscriptionId: string | null;
304
- }[];
305
- kickAccount: {
306
- username: string | null;
307
- chatRoomId: string | null;
308
- accountId: string | null;
309
- subscribedTo: {
310
- streamerUserName: string;
311
- expiresAt: Date;
312
- guildIds: string[];
313
- }[];
314
- } | null;
315
- twitchAccount: {
316
- username: string | null;
317
- chatRoomId: string | null;
318
- accountId: string | null;
319
- } | null;
320
- rumbleAccount: {
321
- username: string | null;
322
- accountId: string | null;
323
- } | null;
324
- email: string | null;
325
- badges: string | null;
326
- oneServerPremium: string | null;
327
- serverPremiumCooldown: Date | null;
328
- votes: number;
329
- lastVoted: Date | null;
330
- }, {
331
- premium: {
332
- tier: string;
333
- } | null;
334
- linkedRoles: {
335
- expiresAt: Date | null;
336
- accessToken: string | null;
337
- refreshToken: string | null;
338
- } | null;
339
- gettingStarted: {
340
- didBuyPremium: boolean;
341
- didLinkAllSocials: boolean;
342
- didJoinATeam: boolean;
343
- didInviteATeamMember: boolean;
344
- didDismissUserAds: boolean;
345
- } | null;
346
- locale: string;
347
- blacklisted: boolean | null;
348
- bitfield: string | null;
349
- notifications: {
350
- isRead: boolean;
351
- list: {
352
- message: string;
353
- title: string;
354
- actionUrl: string | null;
355
- severity: "info" | "warning" | "emergency";
356
- }[];
357
- } | null;
358
- birthday: {
359
- date: string | null;
360
- lastChanged: Date | null;
361
- lastYearCongratulated: number | null;
362
- whereToCongratulate: string[];
363
- } | null;
364
- username: string | null;
365
- userId: string;
366
- mediaShare: {
367
- enabled: boolean;
368
- banList: string[];
369
- modList: string[];
370
- password: string | null;
371
- settings: {
372
- prefix: string;
373
- volume: number;
374
- modes: ("tiktok" | "youtube" | "shorts")[];
375
- } | null;
376
- permissions: {
377
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
378
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
379
- }[];
380
- } | null;
381
- sessions: {
382
- key: string;
383
- expiresAt: Date;
384
- }[];
385
- activeGuildSubscriptions: {
386
- guildId: string;
387
- subscriptionId: string | null;
388
- }[];
389
- kickAccount: {
390
- username: string | null;
391
- chatRoomId: string | null;
392
- accountId: string | null;
393
- subscribedTo: {
394
- streamerUserName: string;
395
- expiresAt: Date;
396
- guildIds: string[];
397
- }[];
398
- } | null;
399
- twitchAccount: {
400
- username: string | null;
401
- chatRoomId: string | null;
402
- accountId: string | null;
403
- } | null;
404
- rumbleAccount: {
405
- username: string | null;
406
- accountId: string | null;
407
- } | null;
408
- email: string | null;
409
- badges: string | null;
410
- oneServerPremium: string | null;
411
- serverPremiumCooldown: Date | null;
412
- votes: number;
413
- lastVoted: Date | null;
414
- }>;
108
+ severity: z.ZodEnum<{
109
+ info: "info";
110
+ warning: "warning";
111
+ emergency: "emergency";
112
+ }>;
113
+ }, z.core.$strip>>>;
114
+ }, z.core.$strip>>>;
115
+ }, z.core.$strip>;
415
116
  readonly UserPremiumSchema: z.ZodObject<{
416
117
  tier: z.ZodString;
417
- }, "strip", z.ZodTypeAny, {
418
- tier: string;
419
- }, {
420
- tier: string;
421
- }>;
118
+ }, z.core.$strip>;
422
119
  readonly UserMediaShareSchema: z.ZodObject<{
423
120
  enabled: z.ZodBoolean;
424
121
  settings: z.ZodNullable<z.ZodLazy<z.ZodObject<{
425
122
  prefix: z.ZodString;
426
123
  volume: z.ZodNumber;
427
- modes: z.ZodArray<z.ZodEnum<["tiktok", "youtube", "shorts"]>, "many">;
428
- }, "strip", z.ZodTypeAny, {
429
- prefix: string;
430
- volume: number;
431
- modes: ("tiktok" | "youtube" | "shorts")[];
432
- }, {
433
- prefix: string;
434
- volume: number;
435
- modes: ("tiktok" | "youtube" | "shorts")[];
436
- }>>>;
437
- banList: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
438
- modList: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
124
+ modes: z.ZodArray<z.ZodEnum<{
125
+ tiktok: "tiktok";
126
+ youtube: "youtube";
127
+ shorts: "shorts";
128
+ }>>;
129
+ }, z.core.$strip>>>;
130
+ banList: z.ZodArray<z.ZodString>;
131
+ modList: z.ZodArray<z.ZodString>;
439
132
  password: z.ZodNullable<z.ZodString>;
440
133
  permissions: z.ZodArray<z.ZodLazy<z.ZodObject<{
441
- command: z.ZodEnum<["request", "skip", "pause", "clear", "rban", "play", "mode", "runban"]>;
442
- onKick: z.ZodArray<z.ZodEnum<["vip", "sub", "mod", "broadcaster", "everyone"]>, "many">;
443
- }, "strip", z.ZodTypeAny, {
444
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
445
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
446
- }, {
447
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
448
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
449
- }>>, "many">;
450
- }, "strip", z.ZodTypeAny, {
451
- enabled: boolean;
452
- banList: string[];
453
- modList: string[];
454
- password: string | null;
455
- settings: {
456
- prefix: string;
457
- volume: number;
458
- modes: ("tiktok" | "youtube" | "shorts")[];
459
- } | null;
460
- permissions: {
461
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
462
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
463
- }[];
464
- }, {
465
- enabled: boolean;
466
- banList: string[];
467
- modList: string[];
468
- password: string | null;
469
- settings: {
470
- prefix: string;
471
- volume: number;
472
- modes: ("tiktok" | "youtube" | "shorts")[];
473
- } | null;
474
- permissions: {
475
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
476
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
477
- }[];
478
- }>;
134
+ command: z.ZodEnum<{
135
+ mode: "mode";
136
+ request: "request";
137
+ skip: "skip";
138
+ pause: "pause";
139
+ clear: "clear";
140
+ rban: "rban";
141
+ play: "play";
142
+ runban: "runban";
143
+ }>;
144
+ onKick: z.ZodArray<z.ZodEnum<{
145
+ sub: "sub";
146
+ everyone: "everyone";
147
+ vip: "vip";
148
+ mod: "mod";
149
+ broadcaster: "broadcaster";
150
+ }>>;
151
+ }, z.core.$strip>>>;
152
+ }, z.core.$strip>;
479
153
  readonly UserMediaShareSettingsSchema: z.ZodObject<{
480
154
  prefix: z.ZodString;
481
155
  volume: z.ZodNumber;
482
- modes: z.ZodArray<z.ZodEnum<["tiktok", "youtube", "shorts"]>, "many">;
483
- }, "strip", z.ZodTypeAny, {
484
- prefix: string;
485
- volume: number;
486
- modes: ("tiktok" | "youtube" | "shorts")[];
487
- }, {
488
- prefix: string;
489
- volume: number;
490
- modes: ("tiktok" | "youtube" | "shorts")[];
491
- }>;
156
+ modes: z.ZodArray<z.ZodEnum<{
157
+ tiktok: "tiktok";
158
+ youtube: "youtube";
159
+ shorts: "shorts";
160
+ }>>;
161
+ }, z.core.$strip>;
492
162
  readonly UserMediaSharePermissionsSchema: z.ZodObject<{
493
- command: z.ZodEnum<["request", "skip", "pause", "clear", "rban", "play", "mode", "runban"]>;
494
- onKick: z.ZodArray<z.ZodEnum<["vip", "sub", "mod", "broadcaster", "everyone"]>, "many">;
495
- }, "strip", z.ZodTypeAny, {
496
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
497
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
498
- }, {
499
- command: "mode" | "request" | "skip" | "pause" | "clear" | "rban" | "play" | "runban";
500
- onKick: ("everyone" | "vip" | "sub" | "mod" | "broadcaster")[];
501
- }>;
163
+ command: z.ZodEnum<{
164
+ mode: "mode";
165
+ request: "request";
166
+ skip: "skip";
167
+ pause: "pause";
168
+ clear: "clear";
169
+ rban: "rban";
170
+ play: "play";
171
+ runban: "runban";
172
+ }>;
173
+ onKick: z.ZodArray<z.ZodEnum<{
174
+ sub: "sub";
175
+ everyone: "everyone";
176
+ vip: "vip";
177
+ mod: "mod";
178
+ broadcaster: "broadcaster";
179
+ }>>;
180
+ }, z.core.$strip>;
502
181
  readonly UserSessionSchema: z.ZodObject<{
503
182
  key: z.ZodString;
504
183
  expiresAt: z.ZodDate;
505
- }, "strip", z.ZodTypeAny, {
506
- key: string;
507
- expiresAt: Date;
508
- }, {
509
- key: string;
510
- expiresAt: Date;
511
- }>;
184
+ }, z.core.$strip>;
512
185
  readonly UserLinkedRolesSchema: z.ZodObject<{
513
186
  accessToken: z.ZodNullable<z.ZodString>;
514
187
  refreshToken: z.ZodNullable<z.ZodString>;
515
188
  expiresAt: z.ZodNullable<z.ZodDate>;
516
- }, "strip", z.ZodTypeAny, {
517
- expiresAt: Date | null;
518
- accessToken: string | null;
519
- refreshToken: string | null;
520
- }, {
521
- expiresAt: Date | null;
522
- accessToken: string | null;
523
- refreshToken: string | null;
524
- }>;
189
+ }, z.core.$strip>;
525
190
  readonly UserActiveGuildSubscriptionSchema: z.ZodObject<{
526
- guildId: z.ZodEffects<z.ZodString, string, string>;
191
+ guildId: z.ZodString;
527
192
  subscriptionId: z.ZodNullable<z.ZodString>;
528
- }, "strip", z.ZodTypeAny, {
529
- guildId: string;
530
- subscriptionId: string | null;
531
- }, {
532
- guildId: string;
533
- subscriptionId: string | null;
534
- }>;
193
+ }, z.core.$strip>;
535
194
  readonly UserBirthdaySchema: z.ZodObject<{
536
195
  date: z.ZodNullable<z.ZodString>;
537
196
  lastChanged: z.ZodNullable<z.ZodDate>;
538
197
  lastYearCongratulated: z.ZodNullable<z.ZodNumber>;
539
- whereToCongratulate: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
540
- }, "strip", z.ZodTypeAny, {
541
- date: string | null;
542
- lastChanged: Date | null;
543
- lastYearCongratulated: number | null;
544
- whereToCongratulate: string[];
545
- }, {
546
- date: string | null;
547
- lastChanged: Date | null;
548
- lastYearCongratulated: number | null;
549
- whereToCongratulate: string[];
550
- }>;
198
+ whereToCongratulate: z.ZodArray<z.ZodString>;
199
+ }, z.core.$strip>;
551
200
  readonly UserKickAccountSchema: z.ZodObject<{
552
201
  accountId: z.ZodNullable<z.ZodString>;
553
202
  username: z.ZodNullable<z.ZodString>;
@@ -555,124 +204,42 @@ export declare const UserZod: {
555
204
  subscribedTo: z.ZodArray<z.ZodLazy<z.ZodObject<{
556
205
  streamerUserName: z.ZodString;
557
206
  expiresAt: z.ZodDate;
558
- guildIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
559
- }, "strip", z.ZodTypeAny, {
560
- streamerUserName: string;
561
- expiresAt: Date;
562
- guildIds: string[];
563
- }, {
564
- streamerUserName: string;
565
- expiresAt: Date;
566
- guildIds: string[];
567
- }>>, "many">;
568
- }, "strip", z.ZodTypeAny, {
569
- username: string | null;
570
- chatRoomId: string | null;
571
- accountId: string | null;
572
- subscribedTo: {
573
- streamerUserName: string;
574
- expiresAt: Date;
575
- guildIds: string[];
576
- }[];
577
- }, {
578
- username: string | null;
579
- chatRoomId: string | null;
580
- accountId: string | null;
581
- subscribedTo: {
582
- streamerUserName: string;
583
- expiresAt: Date;
584
- guildIds: string[];
585
- }[];
586
- }>;
207
+ guildIds: z.ZodArray<z.ZodString>;
208
+ }, z.core.$strip>>>;
209
+ }, z.core.$strip>;
587
210
  readonly UserKickAccountSubscribedToSchema: z.ZodObject<{
588
211
  streamerUserName: z.ZodString;
589
212
  expiresAt: z.ZodDate;
590
- guildIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
591
- }, "strip", z.ZodTypeAny, {
592
- streamerUserName: string;
593
- expiresAt: Date;
594
- guildIds: string[];
595
- }, {
596
- streamerUserName: string;
597
- expiresAt: Date;
598
- guildIds: string[];
599
- }>;
213
+ guildIds: z.ZodArray<z.ZodString>;
214
+ }, z.core.$strip>;
600
215
  readonly UserTwitchAccountSchema: z.ZodObject<{
601
216
  accountId: z.ZodNullable<z.ZodString>;
602
217
  username: z.ZodNullable<z.ZodString>;
603
218
  chatRoomId: z.ZodNullable<z.ZodString>;
604
- }, "strip", z.ZodTypeAny, {
605
- username: string | null;
606
- chatRoomId: string | null;
607
- accountId: string | null;
608
- }, {
609
- username: string | null;
610
- chatRoomId: string | null;
611
- accountId: string | null;
612
- }>;
219
+ }, z.core.$strip>;
613
220
  readonly UserRumbleAccountSchema: z.ZodObject<{
614
221
  accountId: z.ZodNullable<z.ZodString>;
615
222
  username: z.ZodNullable<z.ZodString>;
616
- }, "strip", z.ZodTypeAny, {
617
- username: string | null;
618
- accountId: string | null;
619
- }, {
620
- username: string | null;
621
- accountId: string | null;
622
- }>;
223
+ }, z.core.$strip>;
623
224
  readonly UserGettingStartedSchema: z.ZodObject<{
624
225
  didLinkAllSocials: z.ZodBoolean;
625
226
  didJoinATeam: z.ZodBoolean;
626
227
  didBuyPremium: z.ZodBoolean;
627
228
  didInviteATeamMember: z.ZodBoolean;
628
229
  didDismissUserAds: z.ZodBoolean;
629
- }, "strip", z.ZodTypeAny, {
630
- didBuyPremium: boolean;
631
- didLinkAllSocials: boolean;
632
- didJoinATeam: boolean;
633
- didInviteATeamMember: boolean;
634
- didDismissUserAds: boolean;
635
- }, {
636
- didBuyPremium: boolean;
637
- didLinkAllSocials: boolean;
638
- didJoinATeam: boolean;
639
- didInviteATeamMember: boolean;
640
- didDismissUserAds: boolean;
641
- }>;
230
+ }, z.core.$strip>;
642
231
  readonly UserNotificationsSchema: z.ZodObject<{
643
232
  isRead: z.ZodBoolean;
644
233
  list: z.ZodArray<z.ZodLazy<z.ZodObject<{
645
234
  title: z.ZodString;
646
235
  message: z.ZodString;
647
236
  actionUrl: z.ZodNullable<z.ZodString>;
648
- severity: z.ZodEnum<["info", "warning", "emergency"]>;
649
- }, "strip", z.ZodTypeAny, {
650
- message: string;
651
- title: string;
652
- actionUrl: string | null;
653
- severity: "info" | "warning" | "emergency";
654
- }, {
655
- message: string;
656
- title: string;
657
- actionUrl: string | null;
658
- severity: "info" | "warning" | "emergency";
659
- }>>, "many">;
660
- }, "strip", z.ZodTypeAny, {
661
- isRead: boolean;
662
- list: {
663
- message: string;
664
- title: string;
665
- actionUrl: string | null;
666
- severity: "info" | "warning" | "emergency";
667
- }[];
668
- }, {
669
- isRead: boolean;
670
- list: {
671
- message: string;
672
- title: string;
673
- actionUrl: string | null;
674
- severity: "info" | "warning" | "emergency";
675
- }[];
676
- }>;
237
+ severity: z.ZodEnum<{
238
+ info: "info";
239
+ warning: "warning";
240
+ emergency: "emergency";
241
+ }>;
242
+ }, z.core.$strip>>>;
243
+ }, z.core.$strip>;
677
244
  };
678
245
  export declare const UserZodPartial: PartialZodObject<typeof UserZod>;