@notidotbot/noti-api-client 1.4.0

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 (115) hide show
  1. package/cname.js +3 -0
  2. package/dist/classes/@me.d.ts +122 -0
  3. package/dist/classes/@me.js +59 -0
  4. package/dist/classes/admin.d.ts +71 -0
  5. package/dist/classes/admin.js +26 -0
  6. package/dist/classes/client.d.ts +156 -0
  7. package/dist/classes/client.js +116 -0
  8. package/dist/classes/emotes.d.ts +31 -0
  9. package/dist/classes/emotes.js +24 -0
  10. package/dist/classes/files.d.ts +36 -0
  11. package/dist/classes/files.js +36 -0
  12. package/dist/classes/guild.d.ts +187 -0
  13. package/dist/classes/guild.js +140 -0
  14. package/dist/classes/guildDrops.d.ts +58 -0
  15. package/dist/classes/guildDrops.js +32 -0
  16. package/dist/classes/guildGiveaway.d.ts +110 -0
  17. package/dist/classes/guildGiveaway.js +76 -0
  18. package/dist/classes/guildPlatform.d.ts +163 -0
  19. package/dist/classes/guildPlatform.js +99 -0
  20. package/dist/classes/guildPlatformAction.d.ts +67 -0
  21. package/dist/classes/guildPlatformAction.js +26 -0
  22. package/dist/classes/guildStarboard.d.ts +66 -0
  23. package/dist/classes/guildStarboard.js +36 -0
  24. package/dist/classes/linked.d.ts +26 -0
  25. package/dist/classes/linked.js +32 -0
  26. package/dist/classes/other.d.ts +83 -0
  27. package/dist/classes/other.js +53 -0
  28. package/dist/classes/platform.d.ts +227 -0
  29. package/dist/classes/platform.js +30 -0
  30. package/dist/classes/premium.d.ts +179 -0
  31. package/dist/classes/premium.js +76 -0
  32. package/dist/classes/sessions.d.ts +42 -0
  33. package/dist/classes/sessions.js +30 -0
  34. package/dist/classes/teams.d.ts +88 -0
  35. package/dist/classes/teams.js +66 -0
  36. package/dist/classes/telemetry.d.ts +32 -0
  37. package/dist/classes/telemetry.js +28 -0
  38. package/dist/classes/user.d.ts +40 -0
  39. package/dist/classes/user.js +30 -0
  40. package/dist/classes/vods.d.ts +55 -0
  41. package/dist/classes/vods.js +38 -0
  42. package/dist/core/manager.d.ts +57 -0
  43. package/dist/core/manager.js +78 -0
  44. package/dist/core/utils.d.ts +4 -0
  45. package/dist/core/utils.js +26 -0
  46. package/dist/index.d.ts +22 -0
  47. package/dist/index.js +42 -0
  48. package/dist/modules/stripe.d.ts +12 -0
  49. package/dist/modules/stripe.js +18 -0
  50. package/dist/other/bitfields.d.ts +283 -0
  51. package/dist/other/bitfields.js +323 -0
  52. package/dist/other/enums.d.ts +2 -0
  53. package/dist/other/enums.js +10 -0
  54. package/dist/other/prisma.d.ts +76 -0
  55. package/dist/other/prisma.js +9 -0
  56. package/dist/other/templates.d.ts +795 -0
  57. package/dist/other/templates.js +706 -0
  58. package/dist/other/types.d.ts +45 -0
  59. package/dist/other/types.js +17 -0
  60. package/dist/other/utils.d.ts +5 -0
  61. package/dist/other/utils.js +51 -0
  62. package/dist/other/zod/client.zod.d.ts +349 -0
  63. package/dist/other/zod/client.zod.js +63 -0
  64. package/dist/other/zod/drops.zod.d.ts +16 -0
  65. package/dist/other/zod/drops.zod.js +93 -0
  66. package/dist/other/zod/giveaways.zod.d.ts +382 -0
  67. package/dist/other/zod/giveaways.zod.js +72 -0
  68. package/dist/other/zod/guild.zod.d.ts +1638 -0
  69. package/dist/other/zod/guild.zod.js +139 -0
  70. package/dist/other/zod/kickStreamer.zod.d.ts +761 -0
  71. package/dist/other/zod/kickStreamer.zod.js +92 -0
  72. package/dist/other/zod/member.zod.d.ts +22 -0
  73. package/dist/other/zod/member.zod.js +15 -0
  74. package/dist/other/zod/r2Storage.zod.d.ts +56 -0
  75. package/dist/other/zod/r2Storage.zod.js +21 -0
  76. package/dist/other/zod/rumbleStreamer.zod.d.ts +530 -0
  77. package/dist/other/zod/rumbleStreamer.zod.js +45 -0
  78. package/dist/other/zod/schema.zod.d.ts +25 -0
  79. package/dist/other/zod/schema.zod.js +168 -0
  80. package/dist/other/zod/starboard.zod.d.ts +167 -0
  81. package/dist/other/zod/starboard.zod.js +46 -0
  82. package/dist/other/zod/team.zod.d.ts +107 -0
  83. package/dist/other/zod/team.zod.js +30 -0
  84. package/dist/other/zod/tiktokStreamer.zod.d.ts +473 -0
  85. package/dist/other/zod/tiktokStreamer.zod.js +46 -0
  86. package/dist/other/zod/twitchStreamer.zod.d.ts +473 -0
  87. package/dist/other/zod/twitchStreamer.zod.js +46 -0
  88. package/dist/other/zod/user.zod.d.ts +678 -0
  89. package/dist/other/zod/user.zod.js +124 -0
  90. package/dist/other/zod/youtubeStreamer.zod.d.ts +476 -0
  91. package/dist/other/zod/youtubeStreamer.zod.js +47 -0
  92. package/dist/other/zod/zod.d.ts +177 -0
  93. package/dist/other/zod/zod.js +60 -0
  94. package/dist/tsconfig.tsbuildinfo +1 -0
  95. package/dist/types.d.ts +37 -0
  96. package/dist/types.js +2 -0
  97. package/package.json +63 -0
  98. package/prisma/generated/index.ts +25 -0
  99. package/prisma/generated/ts-prisma.d.ts +91725 -0
  100. package/prisma/schema/models/client.prisma +89 -0
  101. package/prisma/schema/models/drops.prisma +167 -0
  102. package/prisma/schema/models/giveaways.prisma +82 -0
  103. package/prisma/schema/models/guild.prisma +368 -0
  104. package/prisma/schema/models/kickStreamer.prisma +202 -0
  105. package/prisma/schema/models/member.prisma +10 -0
  106. package/prisma/schema/models/r2Storage.prisma +22 -0
  107. package/prisma/schema/models/rumbleStreamer.prisma +121 -0
  108. package/prisma/schema/models/starboard.prisma +66 -0
  109. package/prisma/schema/models/team.prisma +38 -0
  110. package/prisma/schema/models/tiktokStreamer.prisma +121 -0
  111. package/prisma/schema/models/twitchStreamer.prisma +122 -0
  112. package/prisma/schema/models/user.prisma +212 -0
  113. package/prisma/schema/models/youtubeStreamer.prisma +123 -0
  114. package/prisma/schema/schema.prisma +182 -0
  115. package/prisma.config.ts +6 -0
@@ -0,0 +1,473 @@
1
+ import { PartialZodObject } from './schema.zod';
2
+ import { TSPrisma } from '@prisma/client';
3
+ import { RemoveProperties } from '../prisma';
4
+ import { z } from 'zod';
5
+ export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], TiktokStreamerRelations>>;
6
+ export type TiktokStreamerRelations = 'db' | 'tiktokStreamer' | 'ttsCustomMessage' | 'ttsMessageEmbed';
7
+ export declare const TiktokStreamerZod: {
8
+ readonly TiktokStreamerSchema: z.ZodObject<{
9
+ streamerUserName: z.ZodString;
10
+ guildId: z.ZodEffects<z.ZodString, string, string>;
11
+ deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
12
+ sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
13
+ usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
14
+ autoPublishIfAnnouncmentChannel: z.ZodNullable<z.ZodBoolean>;
15
+ customMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
16
+ content: z.ZodNullable<z.ZodString>;
17
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
18
+ title: z.ZodNullable<z.ZodString>;
19
+ url: z.ZodNullable<z.ZodString>;
20
+ description: z.ZodString;
21
+ color: z.ZodNullable<z.ZodString>;
22
+ footer: z.ZodNullable<z.ZodString>;
23
+ footerIcon: z.ZodNullable<z.ZodString>;
24
+ image: z.ZodNullable<z.ZodString>;
25
+ thumbnail: z.ZodNullable<z.ZodString>;
26
+ author: z.ZodNullable<z.ZodString>;
27
+ authorIcon: z.ZodNullable<z.ZodString>;
28
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
29
+ name: z.ZodString;
30
+ value: z.ZodNullable<z.ZodString>;
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
+ }>>>;
74
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
75
+ title: z.ZodString;
76
+ url: z.ZodNullable<z.ZodString>;
77
+ 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">;
87
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
88
+ enabled: z.ZodNullable<z.ZodBoolean>;
89
+ username: z.ZodNullable<z.ZodString>;
90
+ 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>>;
164
+ showNotifyButton: z.ZodNullable<z.ZodBoolean>;
165
+ pingRoleId: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
166
+ 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[]>;
170
+ statsChannelIds: z.ZodNullable<z.ZodLazy<z.ZodObject<{
171
+ isLive: z.ZodNullable<z.ZodString>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ isLive: string | null;
174
+ }, {
175
+ isLive: string | null;
176
+ }>>>;
177
+ isCurrentlyLive: z.ZodNullable<z.ZodLazy<z.ZodObject<{
178
+ 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
+ }>>>;
190
+ lastLive: z.ZodNullable<z.ZodDate>;
191
+ 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
+ }>;
305
+ readonly TTSCustomMessageSchema: z.ZodObject<{
306
+ content: z.ZodNullable<z.ZodString>;
307
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
308
+ title: z.ZodNullable<z.ZodString>;
309
+ url: z.ZodNullable<z.ZodString>;
310
+ description: z.ZodString;
311
+ color: z.ZodNullable<z.ZodString>;
312
+ footer: z.ZodNullable<z.ZodString>;
313
+ footerIcon: z.ZodNullable<z.ZodString>;
314
+ image: z.ZodNullable<z.ZodString>;
315
+ thumbnail: z.ZodNullable<z.ZodString>;
316
+ author: z.ZodNullable<z.ZodString>;
317
+ authorIcon: z.ZodNullable<z.ZodString>;
318
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
319
+ name: z.ZodString;
320
+ value: z.ZodNullable<z.ZodString>;
321
+ 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
+ }>>>;
364
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
365
+ title: z.ZodString;
366
+ url: z.ZodNullable<z.ZodString>;
367
+ 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">;
377
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
378
+ enabled: z.ZodNullable<z.ZodBoolean>;
379
+ username: z.ZodNullable<z.ZodString>;
380
+ 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
+ }>;
452
+ readonly TTSStatsChannelIdSchema: z.ZodObject<{
453
+ isLive: z.ZodNullable<z.ZodString>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ isLive: string | null;
456
+ }, {
457
+ isLive: string | null;
458
+ }>;
459
+ readonly TTSCurrentlyLiveSchema: z.ZodObject<{
460
+ 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
+ }>;
472
+ };
473
+ export declare const TiktokStreamerZodPartial: PartialZodObject<typeof TiktokStreamerZod>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TiktokStreamerZodPartial = exports.TiktokStreamerZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const TiktokStreamerSchema = zod_2.z.object({
8
+ streamerUserName: zod_2.z.string(),
9
+ guildId: zod_1.SnowFlake,
10
+ deleteEmbeds: zod_2.z.boolean().nullable(),
11
+ sendOfflineMessage: zod_2.z.boolean().nullable(),
12
+ usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
13
+ autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
14
+ customMessages: zod_2.z.array(zod_2.z.lazy(() => TTSCustomMessageSchema)),
15
+ liveNotificationChannelId: zod_1.SnowFlake.nullable(),
16
+ videoNotificationChannelId: zod_1.SnowFlake.nullable(),
17
+ showNotifyButton: zod_2.z.boolean().nullable(),
18
+ pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
19
+ customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
20
+ liveRoleId: zod_1.SnowFlake.nullable(),
21
+ usersForLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
22
+ usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
23
+ statsChannelIds: zod_2.z.lazy(() => TTSStatsChannelIdSchema).nullable(),
24
+ isCurrentlyLive: zod_2.z.lazy(() => TTSCurrentlyLiveSchema).nullable(),
25
+ lastLive: zod_2.z.date().nullable(),
26
+ lastVideo: zod_2.z.date().nullable(),
27
+ });
28
+ const TTSCustomMessageSchema = zod_2.z.object({
29
+ type: schema_zod_1.StreamerMessageTypeEnum,
30
+ ...zod_1.CentralZod.Message(),
31
+ });
32
+ const TTSStatsChannelIdSchema = zod_2.z.object({
33
+ isLive: zod_2.z.string().nullable(),
34
+ });
35
+ const TTSCurrentlyLiveSchema = zod_2.z.object({
36
+ correct: zod_2.z.boolean().nullable(),
37
+ channelId: zod_1.SnowFlake.nullable(),
38
+ messageId: zod_1.SnowFlake.nullable(),
39
+ });
40
+ exports.TiktokStreamerZod = {
41
+ TiktokStreamerSchema,
42
+ TTSCustomMessageSchema,
43
+ TTSStatsChannelIdSchema,
44
+ TTSCurrentlyLiveSchema,
45
+ };
46
+ exports.TiktokStreamerZodPartial = Object.fromEntries(Object.entries(exports.TiktokStreamerZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));