@notidotbot/noti-api-client 1.4.10 → 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.
Files changed (33) hide show
  1. package/dist/classes/dropsGames.d.ts +4 -2
  2. package/dist/classes/dropsGames.js +8 -2
  3. package/dist/classes/premium.d.ts +24 -0
  4. package/dist/classes/premium.js +6 -0
  5. package/dist/modules/stripe.js +1 -0
  6. package/dist/other/zod/client.zod.d.ts +56 -288
  7. package/dist/other/zod/client.zod.js +11 -0
  8. package/dist/other/zod/drops.zod.d.ts +7 -7
  9. package/dist/other/zod/drops.zod.js +10 -8
  10. package/dist/other/zod/giveaways.zod.d.ts +61 -322
  11. package/dist/other/zod/guild.zod.d.ts +248 -1431
  12. package/dist/other/zod/guild.zod.js +13 -4
  13. package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
  14. package/dist/other/zod/kickStreamer.zod.js +3 -3
  15. package/dist/other/zod/member.zod.d.ts +2 -10
  16. package/dist/other/zod/r2Storage.zod.d.ts +7 -41
  17. package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
  18. package/dist/other/zod/schema.zod.d.ts +130 -17
  19. package/dist/other/zod/schema.zod.js +43 -21
  20. package/dist/other/zod/starboard.zod.d.ts +36 -138
  21. package/dist/other/zod/team.zod.d.ts +9 -79
  22. package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
  23. package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
  24. package/dist/other/zod/user.zod.d.ts +123 -556
  25. package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
  26. package/dist/other/zod/zod.d.ts +12 -83
  27. package/dist/other/zod/zod.js +5 -3
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +2 -2
  30. package/prisma/generated/ts-prisma.d.ts +303 -58
  31. package/prisma/schema/models/client.prisma +18 -0
  32. package/prisma/schema/models/drops.prisma +2 -0
  33. package/prisma/schema/models/guild.prisma +5 -2
@@ -1,13 +1,13 @@
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], TwitchStreamerRelations>>;
6
6
  export type TwitchStreamerRelations = 'db' | 'twitchStreamer' | 'tsCustomMessage' | 'tsMessageEmbed';
7
7
  export declare const TwitchStreamerZod: {
8
8
  readonly TwitchStreamerSchema: 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
  chatRoomId: z.ZodNullable<z.ZodString>;
13
13
  deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
@@ -31,277 +31,52 @@ export declare const TwitchStreamerZod: {
31
31
  name: z.ZodString;
32
32
  value: z.ZodNullable<z.ZodString>;
33
33
  inline: z.ZodNullable<z.ZodBoolean>;
34
- }, "strip", z.ZodTypeAny, {
35
- name: string;
36
- value: string | null;
37
- inline: boolean | null;
38
- }, {
39
- name: string;
40
- value: string | null;
41
- inline: boolean | null;
42
- }>>, "many">;
43
- }, "strip", z.ZodTypeAny, {
44
- title: string | null;
45
- description: string;
46
- url: string | null;
47
- color: string | null;
48
- footer: string | null;
49
- footerIcon: string | null;
50
- image: string | null;
51
- thumbnail: string | null;
52
- author: string | null;
53
- authorIcon: string | null;
54
- fields: {
55
- name: string;
56
- value: string | null;
57
- inline: boolean | null;
58
- }[];
59
- }, {
60
- title: string | null;
61
- description: string;
62
- url: string | null;
63
- color: string | null;
64
- footer: string | null;
65
- footerIcon: string | null;
66
- image: string | null;
67
- thumbnail: string | null;
68
- author: string | null;
69
- authorIcon: string | null;
70
- fields: {
71
- name: string;
72
- value: string | null;
73
- inline: boolean | null;
74
- }[];
75
- }>>>;
34
+ }, z.core.$strip>>>;
35
+ }, z.core.$strip>>>;
76
36
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
77
37
  title: z.ZodString;
78
38
  url: z.ZodNullable<z.ZodString>;
79
39
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
81
- title: string;
82
- url: string | null;
83
- emojiUnicodeOrId: string | null;
84
- }, {
85
- title: string;
86
- url: string | null;
87
- emojiUnicodeOrId: string | null;
88
- }>>, "many">;
40
+ }, z.core.$strip>>>;
89
41
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
90
42
  enabled: z.ZodNullable<z.ZodBoolean>;
91
43
  username: z.ZodNullable<z.ZodString>;
92
44
  avatarUrl: z.ZodNullable<z.ZodString>;
93
- }, "strip", z.ZodTypeAny, {
94
- enabled: boolean | null;
95
- username: string | null;
96
- avatarUrl: string | null;
97
- }, {
98
- enabled: boolean | null;
99
- username: string | null;
100
- avatarUrl: string | null;
101
- }>>>;
102
- type: z.ZodEnum<["clip", "vod", "kickLive", "kickOffline", "twitchLive", "twitchOffline", "rumbleLive", "rumbleOffline", "tiktokLive", "tiktokOffline", "tiktokVideo", "youtubeLive", "youtubeVideo"]>;
103
- }, "strip", z.ZodTypeAny, {
104
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
105
- webhook: {
106
- enabled: boolean | null;
107
- username: string | null;
108
- avatarUrl: string | null;
109
- } | null;
110
- content: string | null;
111
- embed: {
112
- title: string | null;
113
- description: string;
114
- url: string | null;
115
- color: string | null;
116
- footer: string | null;
117
- footerIcon: string | null;
118
- image: string | null;
119
- thumbnail: string | null;
120
- author: string | null;
121
- authorIcon: string | null;
122
- fields: {
123
- name: string;
124
- value: string | null;
125
- inline: boolean | null;
126
- }[];
127
- } | null;
128
- buttons: {
129
- title: string;
130
- url: string | null;
131
- emojiUnicodeOrId: string | null;
132
- }[];
133
- }, {
134
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
135
- webhook: {
136
- enabled: boolean | null;
137
- username: string | null;
138
- avatarUrl: string | null;
139
- } | null;
140
- content: string | null;
141
- embed: {
142
- title: string | null;
143
- description: string;
144
- url: string | null;
145
- color: string | null;
146
- footer: string | null;
147
- footerIcon: string | null;
148
- image: string | null;
149
- thumbnail: string | null;
150
- author: string | null;
151
- authorIcon: string | null;
152
- fields: {
153
- name: string;
154
- value: string | null;
155
- inline: boolean | null;
156
- }[];
157
- } | null;
158
- buttons: {
159
- title: string;
160
- url: string | null;
161
- emojiUnicodeOrId: string | null;
162
- }[];
163
- }>>, "many">;
164
- notificationChannelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
45
+ }, z.core.$strip>>>;
46
+ type: z.ZodEnum<{
47
+ clip: "clip";
48
+ kickBuiltInClip: "kickBuiltInClip";
49
+ vod: "vod";
50
+ kickLive: "kickLive";
51
+ kickOffline: "kickOffline";
52
+ twitchLive: "twitchLive";
53
+ twitchOffline: "twitchOffline";
54
+ rumbleLive: "rumbleLive";
55
+ rumbleOffline: "rumbleOffline";
56
+ tiktokLive: "tiktokLive";
57
+ tiktokOffline: "tiktokOffline";
58
+ tiktokVideo: "tiktokVideo";
59
+ youtubeLive: "youtubeLive";
60
+ youtubeVideo: "youtubeVideo";
61
+ }>;
62
+ }, z.core.$strip>>>;
63
+ notificationChannelId: 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
- }, "strip", z.ZodTypeAny, {
193
- guildId: string;
194
- streamerUserName: string;
195
- customMessages: {
196
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
197
- webhook: {
198
- enabled: boolean | null;
199
- username: string | null;
200
- avatarUrl: string | null;
201
- } | null;
202
- content: string | null;
203
- embed: {
204
- title: string | null;
205
- description: string;
206
- url: string | null;
207
- color: string | null;
208
- footer: string | null;
209
- footerIcon: string | null;
210
- image: string | null;
211
- thumbnail: string | null;
212
- author: string | null;
213
- authorIcon: string | null;
214
- fields: {
215
- name: string;
216
- value: string | null;
217
- inline: boolean | null;
218
- }[];
219
- } | null;
220
- buttons: {
221
- title: string;
222
- url: string | null;
223
- emojiUnicodeOrId: string | null;
224
- }[];
225
- }[];
226
- statsChannelIds: {
227
- isLive: string | null;
228
- } | null;
229
- isCurrentlyLive: {
230
- channelId: string | null;
231
- messageId: string | null;
232
- correct: boolean | null;
233
- } | null;
234
- streamerId: string | null;
235
- chatRoomId: string | null;
236
- deleteEmbeds: boolean | null;
237
- sendOfflineMessage: boolean | null;
238
- usePerStreamerEmbeds: boolean | null;
239
- autoPublishIfAnnouncmentChannel: boolean | null;
240
- notificationChannelId: string | null;
241
- showNotifyButton: boolean | null;
242
- pingRoleId: string | null;
243
- customCoolDownBeforeNextLive: number | null;
244
- liveRoleId: string | null;
245
- usersForLiveRole: string[];
246
- usersWhoHaveLiveRole: string[];
247
- lastLive: Date | null;
248
- }, {
249
- guildId: string;
250
- streamerUserName: string;
251
- customMessages: {
252
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
253
- webhook: {
254
- enabled: boolean | null;
255
- username: string | null;
256
- avatarUrl: string | null;
257
- } | null;
258
- content: string | null;
259
- embed: {
260
- title: string | null;
261
- description: string;
262
- url: string | null;
263
- color: string | null;
264
- footer: string | null;
265
- footerIcon: string | null;
266
- image: string | null;
267
- thumbnail: string | null;
268
- author: string | null;
269
- authorIcon: string | null;
270
- fields: {
271
- name: string;
272
- value: string | null;
273
- inline: boolean | null;
274
- }[];
275
- } | null;
276
- buttons: {
277
- title: string;
278
- url: string | null;
279
- emojiUnicodeOrId: string | null;
280
- }[];
281
- }[];
282
- statsChannelIds: {
283
- isLive: string | null;
284
- } | null;
285
- isCurrentlyLive: {
286
- channelId: string | null;
287
- messageId: string | null;
288
- correct: boolean | null;
289
- } | null;
290
- streamerId: string | null;
291
- chatRoomId: string | null;
292
- deleteEmbeds: boolean | null;
293
- sendOfflineMessage: boolean | null;
294
- usePerStreamerEmbeds: boolean | null;
295
- autoPublishIfAnnouncmentChannel: boolean | null;
296
- notificationChannelId: string | 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
- }>;
79
+ }, z.core.$strip>;
305
80
  readonly TSCustomMessageSchema: z.ZodObject<{
306
81
  content: z.ZodNullable<z.ZodString>;
307
82
  embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
@@ -319,155 +94,42 @@ export declare const TwitchStreamerZod: {
319
94
  name: z.ZodString;
320
95
  value: z.ZodNullable<z.ZodString>;
321
96
  inline: z.ZodNullable<z.ZodBoolean>;
322
- }, "strip", z.ZodTypeAny, {
323
- name: string;
324
- value: string | null;
325
- inline: boolean | null;
326
- }, {
327
- name: string;
328
- value: string | null;
329
- inline: boolean | null;
330
- }>>, "many">;
331
- }, "strip", z.ZodTypeAny, {
332
- title: string | null;
333
- description: string;
334
- url: string | null;
335
- color: string | null;
336
- footer: string | null;
337
- footerIcon: string | null;
338
- image: string | null;
339
- thumbnail: string | null;
340
- author: string | null;
341
- authorIcon: string | null;
342
- fields: {
343
- name: string;
344
- value: string | null;
345
- inline: boolean | null;
346
- }[];
347
- }, {
348
- title: string | null;
349
- description: string;
350
- url: string | null;
351
- color: string | null;
352
- footer: string | null;
353
- footerIcon: string | null;
354
- image: string | null;
355
- thumbnail: string | null;
356
- author: string | null;
357
- authorIcon: string | null;
358
- fields: {
359
- name: string;
360
- value: string | null;
361
- inline: boolean | null;
362
- }[];
363
- }>>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>>;
364
99
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
365
100
  title: z.ZodString;
366
101
  url: z.ZodNullable<z.ZodString>;
367
102
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
368
- }, "strip", z.ZodTypeAny, {
369
- title: string;
370
- url: string | null;
371
- emojiUnicodeOrId: string | null;
372
- }, {
373
- title: string;
374
- url: string | null;
375
- emojiUnicodeOrId: string | null;
376
- }>>, "many">;
103
+ }, z.core.$strip>>>;
377
104
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
378
105
  enabled: z.ZodNullable<z.ZodBoolean>;
379
106
  username: z.ZodNullable<z.ZodString>;
380
107
  avatarUrl: z.ZodNullable<z.ZodString>;
381
- }, "strip", z.ZodTypeAny, {
382
- enabled: boolean | null;
383
- username: string | null;
384
- avatarUrl: string | null;
385
- }, {
386
- enabled: boolean | null;
387
- username: string | null;
388
- avatarUrl: string | null;
389
- }>>>;
390
- type: z.ZodEnum<["clip", "vod", "kickLive", "kickOffline", "twitchLive", "twitchOffline", "rumbleLive", "rumbleOffline", "tiktokLive", "tiktokOffline", "tiktokVideo", "youtubeLive", "youtubeVideo"]>;
391
- }, "strip", z.ZodTypeAny, {
392
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
393
- webhook: {
394
- enabled: boolean | null;
395
- username: string | null;
396
- avatarUrl: string | null;
397
- } | null;
398
- content: string | null;
399
- embed: {
400
- title: string | null;
401
- description: string;
402
- url: string | null;
403
- color: string | null;
404
- footer: string | null;
405
- footerIcon: string | null;
406
- image: string | null;
407
- thumbnail: string | null;
408
- author: string | null;
409
- authorIcon: string | null;
410
- fields: {
411
- name: string;
412
- value: string | null;
413
- inline: boolean | null;
414
- }[];
415
- } | null;
416
- buttons: {
417
- title: string;
418
- url: string | null;
419
- emojiUnicodeOrId: string | null;
420
- }[];
421
- }, {
422
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
423
- webhook: {
424
- enabled: boolean | null;
425
- username: string | null;
426
- avatarUrl: string | null;
427
- } | null;
428
- content: string | null;
429
- embed: {
430
- title: string | null;
431
- description: string;
432
- url: string | null;
433
- color: string | null;
434
- footer: string | null;
435
- footerIcon: string | null;
436
- image: string | null;
437
- thumbnail: string | null;
438
- author: string | null;
439
- authorIcon: string | null;
440
- fields: {
441
- name: string;
442
- value: string | null;
443
- inline: boolean | null;
444
- }[];
445
- } | null;
446
- buttons: {
447
- title: string;
448
- url: string | null;
449
- emojiUnicodeOrId: string | null;
450
- }[];
451
- }>;
108
+ }, z.core.$strip>>>;
109
+ type: z.ZodEnum<{
110
+ clip: "clip";
111
+ kickBuiltInClip: "kickBuiltInClip";
112
+ vod: "vod";
113
+ kickLive: "kickLive";
114
+ kickOffline: "kickOffline";
115
+ twitchLive: "twitchLive";
116
+ twitchOffline: "twitchOffline";
117
+ rumbleLive: "rumbleLive";
118
+ rumbleOffline: "rumbleOffline";
119
+ tiktokLive: "tiktokLive";
120
+ tiktokOffline: "tiktokOffline";
121
+ tiktokVideo: "tiktokVideo";
122
+ youtubeLive: "youtubeLive";
123
+ youtubeVideo: "youtubeVideo";
124
+ }>;
125
+ }, z.core.$strip>;
452
126
  readonly TSStatsChannelIdSchema: z.ZodObject<{
453
127
  isLive: z.ZodNullable<z.ZodString>;
454
- }, "strip", z.ZodTypeAny, {
455
- isLive: string | null;
456
- }, {
457
- isLive: string | null;
458
- }>;
128
+ }, z.core.$strip>;
459
129
  readonly TSCurrentlyLiveSchema: z.ZodObject<{
460
130
  correct: z.ZodNullable<z.ZodBoolean>;
461
- channelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
462
- messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
463
- }, "strip", z.ZodTypeAny, {
464
- channelId: string | null;
465
- messageId: string | null;
466
- correct: boolean | null;
467
- }, {
468
- channelId: string | null;
469
- messageId: string | null;
470
- correct: boolean | null;
471
- }>;
131
+ channelId: z.ZodNullable<z.ZodString>;
132
+ messageId: z.ZodNullable<z.ZodString>;
133
+ }, z.core.$strip>;
472
134
  };
473
135
  export declare const TwitchStreamerZodPartial: PartialZodObject<typeof TwitchStreamerZod>;