@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
@@ -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], TiktokStreamerRelations>>;
6
6
  export type TiktokStreamerRelations = 'db' | 'tiktokStreamer' | 'ttsCustomMessage' | 'ttsMessageEmbed';
7
7
  export declare const TiktokStreamerZod: {
8
8
  readonly TiktokStreamerSchema: z.ZodObject<{
9
9
  streamerUserName: z.ZodString;
10
- guildId: z.ZodEffects<z.ZodString, string, string>;
10
+ guildId: z.ZodString;
11
11
  deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
12
12
  sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
13
13
  usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
@@ -29,279 +29,54 @@ export declare const TiktokStreamerZod: {
29
29
  name: z.ZodString;
30
30
  value: z.ZodNullable<z.ZodString>;
31
31
  inline: z.ZodNullable<z.ZodBoolean>;
32
- }, "strip", z.ZodTypeAny, {
33
- name: string;
34
- value: string | null;
35
- inline: boolean | null;
36
- }, {
37
- name: string;
38
- value: string | null;
39
- inline: boolean | null;
40
- }>>, "many">;
41
- }, "strip", z.ZodTypeAny, {
42
- title: string | null;
43
- description: string;
44
- url: string | null;
45
- color: string | null;
46
- footer: string | null;
47
- footerIcon: string | null;
48
- image: string | null;
49
- thumbnail: string | null;
50
- author: string | null;
51
- authorIcon: string | null;
52
- fields: {
53
- name: string;
54
- value: string | null;
55
- inline: boolean | null;
56
- }[];
57
- }, {
58
- title: string | null;
59
- description: string;
60
- url: string | null;
61
- color: string | null;
62
- footer: string | null;
63
- footerIcon: string | null;
64
- image: string | null;
65
- thumbnail: string | null;
66
- author: string | null;
67
- authorIcon: string | null;
68
- fields: {
69
- name: string;
70
- value: string | null;
71
- inline: boolean | null;
72
- }[];
73
- }>>>;
32
+ }, z.core.$strip>>>;
33
+ }, z.core.$strip>>>;
74
34
  buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
75
35
  title: z.ZodString;
76
36
  url: z.ZodNullable<z.ZodString>;
77
37
  emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
78
- }, "strip", z.ZodTypeAny, {
79
- title: string;
80
- url: string | null;
81
- emojiUnicodeOrId: string | null;
82
- }, {
83
- title: string;
84
- url: string | null;
85
- emojiUnicodeOrId: string | null;
86
- }>>, "many">;
38
+ }, z.core.$strip>>>;
87
39
  webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
88
40
  enabled: z.ZodNullable<z.ZodBoolean>;
89
41
  username: z.ZodNullable<z.ZodString>;
90
42
  avatarUrl: z.ZodNullable<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- enabled: boolean | null;
93
- username: string | null;
94
- avatarUrl: string | null;
95
- }, {
96
- enabled: boolean | null;
97
- username: string | null;
98
- avatarUrl: string | null;
99
- }>>>;
100
- type: z.ZodEnum<["clip", "vod", "kickLive", "kickOffline", "twitchLive", "twitchOffline", "rumbleLive", "rumbleOffline", "tiktokLive", "tiktokOffline", "tiktokVideo", "youtubeLive", "youtubeVideo"]>;
101
- }, "strip", z.ZodTypeAny, {
102
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
103
- webhook: {
104
- enabled: boolean | null;
105
- username: string | null;
106
- avatarUrl: string | null;
107
- } | null;
108
- content: string | null;
109
- embed: {
110
- title: string | null;
111
- description: string;
112
- url: string | null;
113
- color: string | null;
114
- footer: string | null;
115
- footerIcon: string | null;
116
- image: string | null;
117
- thumbnail: string | null;
118
- author: string | null;
119
- authorIcon: string | null;
120
- fields: {
121
- name: string;
122
- value: string | null;
123
- inline: boolean | null;
124
- }[];
125
- } | null;
126
- buttons: {
127
- title: string;
128
- url: string | null;
129
- emojiUnicodeOrId: string | null;
130
- }[];
131
- }, {
132
- type: "clip" | "vod" | "kickLive" | "kickOffline" | "twitchLive" | "twitchOffline" | "rumbleLive" | "rumbleOffline" | "tiktokLive" | "tiktokOffline" | "tiktokVideo" | "youtubeLive" | "youtubeVideo";
133
- webhook: {
134
- enabled: boolean | null;
135
- username: string | null;
136
- avatarUrl: string | null;
137
- } | null;
138
- content: string | null;
139
- embed: {
140
- title: string | null;
141
- description: string;
142
- url: string | null;
143
- color: string | null;
144
- footer: string | null;
145
- footerIcon: string | null;
146
- image: string | null;
147
- thumbnail: string | null;
148
- author: string | null;
149
- authorIcon: string | null;
150
- fields: {
151
- name: string;
152
- value: string | null;
153
- inline: boolean | null;
154
- }[];
155
- } | null;
156
- buttons: {
157
- title: string;
158
- url: string | null;
159
- emojiUnicodeOrId: string | null;
160
- }[];
161
- }>>, "many">;
162
- liveNotificationChannelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
163
- videoNotificationChannelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
43
+ }, z.core.$strip>>>;
44
+ type: z.ZodEnum<{
45
+ clip: "clip";
46
+ kickBuiltInClip: "kickBuiltInClip";
47
+ vod: "vod";
48
+ kickLive: "kickLive";
49
+ kickOffline: "kickOffline";
50
+ twitchLive: "twitchLive";
51
+ twitchOffline: "twitchOffline";
52
+ rumbleLive: "rumbleLive";
53
+ rumbleOffline: "rumbleOffline";
54
+ tiktokLive: "tiktokLive";
55
+ tiktokOffline: "tiktokOffline";
56
+ tiktokVideo: "tiktokVideo";
57
+ youtubeLive: "youtubeLive";
58
+ youtubeVideo: "youtubeVideo";
59
+ }>;
60
+ }, z.core.$strip>>>;
61
+ liveNotificationChannelId: z.ZodNullable<z.ZodString>;
62
+ videoNotificationChannelId: z.ZodNullable<z.ZodString>;
164
63
  showNotifyButton: z.ZodNullable<z.ZodBoolean>;
165
- pingRoleId: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
64
+ pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
166
65
  customCoolDownBeforeNextLive: z.ZodNullable<z.ZodNumber>;
167
- liveRoleId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
168
- usersForLiveRole: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
169
- usersWhoHaveLiveRole: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
66
+ liveRoleId: z.ZodNullable<z.ZodString>;
67
+ usersForLiveRole: z.ZodArray<z.ZodString>;
68
+ usersWhoHaveLiveRole: z.ZodArray<z.ZodString>;
170
69
  statsChannelIds: z.ZodNullable<z.ZodLazy<z.ZodObject<{
171
70
  isLive: z.ZodNullable<z.ZodString>;
172
- }, "strip", z.ZodTypeAny, {
173
- isLive: string | null;
174
- }, {
175
- isLive: string | null;
176
- }>>>;
71
+ }, z.core.$strip>>>;
177
72
  isCurrentlyLive: z.ZodNullable<z.ZodLazy<z.ZodObject<{
178
73
  correct: z.ZodNullable<z.ZodBoolean>;
179
- channelId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
180
- messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
181
- }, "strip", z.ZodTypeAny, {
182
- channelId: string | null;
183
- messageId: string | null;
184
- correct: boolean | null;
185
- }, {
186
- channelId: string | null;
187
- messageId: string | null;
188
- correct: boolean | null;
189
- }>>>;
74
+ channelId: z.ZodNullable<z.ZodString>;
75
+ messageId: z.ZodNullable<z.ZodString>;
76
+ }, z.core.$strip>>>;
190
77
  lastLive: z.ZodNullable<z.ZodDate>;
191
78
  lastVideo: 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
- deleteEmbeds: boolean | null;
235
- sendOfflineMessage: boolean | null;
236
- usePerStreamerEmbeds: boolean | null;
237
- autoPublishIfAnnouncmentChannel: boolean | null;
238
- showNotifyButton: boolean | null;
239
- pingRoleId: string | null;
240
- customCoolDownBeforeNextLive: number | null;
241
- liveRoleId: string | null;
242
- usersForLiveRole: string[];
243
- usersWhoHaveLiveRole: string[];
244
- lastLive: Date | null;
245
- liveNotificationChannelId: string | null;
246
- videoNotificationChannelId: string | null;
247
- lastVideo: 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
- deleteEmbeds: boolean | null;
291
- sendOfflineMessage: boolean | null;
292
- usePerStreamerEmbeds: boolean | null;
293
- autoPublishIfAnnouncmentChannel: boolean | null;
294
- showNotifyButton: boolean | null;
295
- pingRoleId: string | null;
296
- customCoolDownBeforeNextLive: number | null;
297
- liveRoleId: string | null;
298
- usersForLiveRole: string[];
299
- usersWhoHaveLiveRole: string[];
300
- lastLive: Date | null;
301
- liveNotificationChannelId: string | null;
302
- videoNotificationChannelId: string | null;
303
- lastVideo: Date | null;
304
- }>;
79
+ }, z.core.$strip>;
305
80
  readonly TTSCustomMessageSchema: 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 TiktokStreamerZod: {
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 TTSStatsChannelIdSchema: 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 TTSCurrentlyLiveSchema: 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 TiktokStreamerZodPartial: PartialZodObject<typeof TiktokStreamerZod>;