@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,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserZodPartial = exports.UserZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const UserSchema = zod_2.z.object({
8
+ userId: zod_1.SnowFlake,
9
+ username: zod_2.z.string().nullable(),
10
+ email: zod_2.z.string().nullable(),
11
+ locale: zod_2.z.string(),
12
+ blacklisted: zod_2.z.boolean().nullable(),
13
+ premium: zod_2.z.lazy(() => UserPremiumSchema).nullable(),
14
+ badges: zod_2.z.string().nullable(),
15
+ bitfield: zod_2.z.string().nullable(),
16
+ oneServerPremium: zod_2.z.string().nullable(),
17
+ serverPremiumCooldown: zod_2.z.date().nullable(),
18
+ mediaShare: zod_2.z.lazy(() => UserMediaShareSchema).nullable(),
19
+ sessions: zod_2.z.array(zod_2.z.lazy(() => UserSessionSchema)),
20
+ linkedRoles: zod_2.z.lazy(() => UserLinkedRolesSchema).nullable(),
21
+ votes: zod_2.z.number(),
22
+ lastVoted: zod_2.z.date().nullable(),
23
+ activeGuildSubscriptions: zod_2.z.array(zod_2.z.lazy(() => UserActiveGuildSubscriptionSchema)),
24
+ birthday: zod_2.z.lazy(() => UserBirthdaySchema).nullable(),
25
+ kickAccount: zod_2.z.lazy(() => UserKickAccountSchema).nullable(),
26
+ twitchAccount: zod_2.z.lazy(() => UserTwitchAccountSchema).nullable(),
27
+ rumbleAccount: zod_2.z.lazy(() => UserRumbleAccountSchema).nullable(),
28
+ gettingStarted: zod_2.z.lazy(() => UserGettingStartedSchema).nullable(),
29
+ notifications: zod_2.z.lazy(() => UserNotificationsSchema).nullable(),
30
+ });
31
+ const UserPremiumSchema = zod_2.z.object({
32
+ tier: zod_2.z.string(),
33
+ });
34
+ const UserMediaShareSchema = zod_2.z.object({
35
+ enabled: zod_2.z.boolean(),
36
+ settings: zod_2.z.lazy(() => UserMediaShareSettingsSchema).nullable(),
37
+ banList: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
38
+ modList: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
39
+ password: zod_2.z.string().nullable(),
40
+ permissions: zod_2.z.array(zod_2.z.lazy(() => UserMediaSharePermissionsSchema)),
41
+ });
42
+ const UserMediaShareSettingsSchema = zod_2.z.object({
43
+ prefix: zod_2.z.string(),
44
+ volume: zod_2.z.number().min(0),
45
+ modes: zod_2.z.array(schema_zod_1.MediaShareTypesEnum),
46
+ });
47
+ const UserMediaSharePermissionsSchema = zod_2.z.object({
48
+ command: schema_zod_1.MediaShareCommandsEnum,
49
+ onKick: zod_2.z.array(schema_zod_1.UserMediaSharePermissionsEnum),
50
+ });
51
+ const UserSessionSchema = zod_2.z.object({
52
+ key: zod_2.z.string(),
53
+ expiresAt: zod_2.z.date(),
54
+ });
55
+ const UserLinkedRolesSchema = zod_2.z.object({
56
+ accessToken: zod_2.z.string().nullable(),
57
+ refreshToken: zod_2.z.string().nullable(),
58
+ expiresAt: zod_2.z.date().nullable(),
59
+ });
60
+ const UserActiveGuildSubscriptionSchema = zod_2.z.object({
61
+ guildId: zod_1.SnowFlake,
62
+ subscriptionId: zod_2.z.string().nullable(),
63
+ });
64
+ const UserBirthdaySchema = zod_2.z.object({
65
+ date: zod_2.z.string().nullable(),
66
+ lastChanged: zod_2.z.date().nullable(),
67
+ lastYearCongratulated: zod_2.z.number().nullable(),
68
+ whereToCongratulate: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
69
+ });
70
+ const UserKickAccountSchema = zod_2.z.object({
71
+ accountId: zod_2.z.string().nullable(),
72
+ username: zod_2.z.string().nullable(),
73
+ chatRoomId: zod_2.z.string().nullable(),
74
+ subscribedTo: zod_2.z.array(zod_2.z.lazy(() => UserKickAccountSubscribedToSchema)),
75
+ });
76
+ const UserKickAccountSubscribedToSchema = zod_2.z.object({
77
+ streamerUserName: zod_2.z.string(),
78
+ expiresAt: zod_2.z.date(),
79
+ guildIds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
80
+ });
81
+ const UserTwitchAccountSchema = zod_2.z.object({
82
+ accountId: zod_2.z.string().nullable(),
83
+ username: zod_2.z.string().nullable(),
84
+ chatRoomId: zod_2.z.string().nullable(),
85
+ });
86
+ const UserRumbleAccountSchema = zod_2.z.object({
87
+ accountId: zod_2.z.string().nullable(),
88
+ username: zod_2.z.string().nullable(),
89
+ });
90
+ const UserGettingStartedSchema = zod_2.z.object({
91
+ didLinkAllSocials: zod_2.z.boolean(),
92
+ didJoinATeam: zod_2.z.boolean(),
93
+ didBuyPremium: zod_2.z.boolean(),
94
+ didInviteATeamMember: zod_2.z.boolean(),
95
+ didDismissUserAds: zod_2.z.boolean(),
96
+ });
97
+ const UserNotificationsSchema = zod_2.z.object({
98
+ isRead: zod_2.z.boolean(),
99
+ list: zod_2.z.array(zod_2.z.lazy(() => UserNotificationDataSchema)),
100
+ });
101
+ const UserNotificationDataSchema = zod_2.z.object({
102
+ title: zod_2.z.string(),
103
+ message: zod_2.z.string(),
104
+ actionUrl: zod_2.z.string().nullable(),
105
+ severity: schema_zod_1.UserNotificationSeverityEnum,
106
+ });
107
+ exports.UserZod = {
108
+ UserSchema,
109
+ UserPremiumSchema,
110
+ UserMediaShareSchema,
111
+ UserMediaShareSettingsSchema,
112
+ UserMediaSharePermissionsSchema,
113
+ UserSessionSchema,
114
+ UserLinkedRolesSchema,
115
+ UserActiveGuildSubscriptionSchema,
116
+ UserBirthdaySchema,
117
+ UserKickAccountSchema,
118
+ UserKickAccountSubscribedToSchema,
119
+ UserTwitchAccountSchema,
120
+ UserRumbleAccountSchema,
121
+ UserGettingStartedSchema,
122
+ UserNotificationsSchema,
123
+ };
124
+ exports.UserZodPartial = Object.fromEntries(Object.entries(exports.UserZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
@@ -0,0 +1,476 @@
1
+ import { PartialZodObject } from './schema.zod';
2
+ import { RemoveProperties } from '../prisma';
3
+ import { TSPrisma } from '@prisma/client';
4
+ import { z } from 'zod';
5
+ export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], YoutubeStreamerRelations>>;
6
+ export type YoutubeStreamerRelations = 'db' | 'youtubeStreamer' | 'ytsCustomMessage' | 'ytsMessageEmbed';
7
+ export declare const YoutubeStreamerZod: {
8
+ readonly YoutubeStreamerSchema: z.ZodObject<{
9
+ streamerUserName: z.ZodString;
10
+ guildId: z.ZodEffects<z.ZodString, string, string>;
11
+ streamerId: z.ZodNullable<z.ZodString>;
12
+ deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
13
+ sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
14
+ usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
15
+ autoPublishIfAnnouncmentChannel: z.ZodNullable<z.ZodBoolean>;
16
+ customMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
17
+ content: z.ZodNullable<z.ZodString>;
18
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
19
+ title: z.ZodNullable<z.ZodString>;
20
+ url: z.ZodNullable<z.ZodString>;
21
+ description: z.ZodString;
22
+ color: z.ZodNullable<z.ZodString>;
23
+ footer: z.ZodNullable<z.ZodString>;
24
+ footerIcon: z.ZodNullable<z.ZodString>;
25
+ image: z.ZodNullable<z.ZodString>;
26
+ thumbnail: z.ZodNullable<z.ZodString>;
27
+ author: z.ZodNullable<z.ZodString>;
28
+ authorIcon: z.ZodNullable<z.ZodString>;
29
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
30
+ name: z.ZodString;
31
+ value: z.ZodNullable<z.ZodString>;
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
+ }>>>;
75
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
76
+ title: z.ZodString;
77
+ url: z.ZodNullable<z.ZodString>;
78
+ 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">;
88
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
89
+ enabled: z.ZodNullable<z.ZodBoolean>;
90
+ username: z.ZodNullable<z.ZodString>;
91
+ 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>>;
165
+ showNotifyButton: z.ZodNullable<z.ZodBoolean>;
166
+ pingRoleId: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
167
+ 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[]>;
171
+ statsChannelIds: z.ZodNullable<z.ZodLazy<z.ZodObject<{
172
+ isLive: z.ZodNullable<z.ZodString>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ isLive: string | null;
175
+ }, {
176
+ isLive: string | null;
177
+ }>>>;
178
+ isCurrentlyLive: z.ZodNullable<z.ZodLazy<z.ZodObject<{
179
+ 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
+ }>>>;
191
+ lastLive: z.ZodNullable<z.ZodDate>;
192
+ 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
+ }>;
308
+ readonly YTSCustomMessageSchema: z.ZodObject<{
309
+ content: z.ZodNullable<z.ZodString>;
310
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
311
+ title: z.ZodNullable<z.ZodString>;
312
+ url: z.ZodNullable<z.ZodString>;
313
+ description: z.ZodString;
314
+ color: z.ZodNullable<z.ZodString>;
315
+ footer: z.ZodNullable<z.ZodString>;
316
+ footerIcon: z.ZodNullable<z.ZodString>;
317
+ image: z.ZodNullable<z.ZodString>;
318
+ thumbnail: z.ZodNullable<z.ZodString>;
319
+ author: z.ZodNullable<z.ZodString>;
320
+ authorIcon: z.ZodNullable<z.ZodString>;
321
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
322
+ name: z.ZodString;
323
+ value: z.ZodNullable<z.ZodString>;
324
+ 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
+ }>>>;
367
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
368
+ title: z.ZodString;
369
+ url: z.ZodNullable<z.ZodString>;
370
+ 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">;
380
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
381
+ enabled: z.ZodNullable<z.ZodBoolean>;
382
+ username: z.ZodNullable<z.ZodString>;
383
+ 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
+ }>;
455
+ readonly YTSStatsChannelIdSchema: z.ZodObject<{
456
+ isLive: z.ZodNullable<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ isLive: string | null;
459
+ }, {
460
+ isLive: string | null;
461
+ }>;
462
+ readonly YTSCurrentlyLiveSchema: z.ZodObject<{
463
+ 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
+ }>;
475
+ };
476
+ export declare const YoutubeStreamerZodPartial: PartialZodObject<typeof YoutubeStreamerZod>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YoutubeStreamerZodPartial = exports.YoutubeStreamerZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const YoutubeStreamerSchema = zod_2.z.object({
8
+ streamerUserName: zod_2.z.string(),
9
+ guildId: zod_1.SnowFlake,
10
+ streamerId: zod_2.z.string().nullable(),
11
+ deleteEmbeds: zod_2.z.boolean().nullable(),
12
+ sendOfflineMessage: zod_2.z.boolean().nullable(),
13
+ usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
14
+ autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
15
+ customMessages: zod_2.z.array(zod_2.z.lazy(() => YTSCustomMessageSchema)),
16
+ liveNotificationChannelId: zod_1.SnowFlake.nullable(),
17
+ videoNotificationChannelId: zod_1.SnowFlake.nullable(),
18
+ showNotifyButton: zod_2.z.boolean().nullable(),
19
+ pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
20
+ customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
21
+ liveRoleId: zod_1.SnowFlake.nullable(),
22
+ usersForLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
23
+ usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
24
+ statsChannelIds: zod_2.z.lazy(() => YTSStatsChannelIdSchema).nullable(),
25
+ isCurrentlyLive: zod_2.z.lazy(() => YTSCurrentlyLiveSchema).nullable(),
26
+ lastLive: zod_2.z.date().nullable(),
27
+ lastVideo: zod_2.z.date().nullable(),
28
+ });
29
+ const YTSCustomMessageSchema = zod_2.z.object({
30
+ type: schema_zod_1.StreamerMessageTypeEnum,
31
+ ...zod_1.CentralZod.Message(),
32
+ });
33
+ const YTSStatsChannelIdSchema = zod_2.z.object({
34
+ isLive: zod_2.z.string().nullable(),
35
+ });
36
+ const YTSCurrentlyLiveSchema = zod_2.z.object({
37
+ correct: zod_2.z.boolean().nullable(),
38
+ channelId: zod_1.SnowFlake.nullable(),
39
+ messageId: zod_1.SnowFlake.nullable(),
40
+ });
41
+ exports.YoutubeStreamerZod = {
42
+ YoutubeStreamerSchema,
43
+ YTSCustomMessageSchema,
44
+ YTSStatsChannelIdSchema,
45
+ YTSCurrentlyLiveSchema,
46
+ };
47
+ exports.YoutubeStreamerZodPartial = Object.fromEntries(Object.entries(exports.YoutubeStreamerZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));