@notidotbot/noti-api-client 1.6.6 → 1.6.9
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.
- package/dist/classes/@me.d.ts +2 -0
- package/dist/classes/admin.d.ts +342 -0
- package/dist/classes/admin.js +86 -0
- package/dist/classes/guildPlatform.d.ts +6 -3
- package/dist/classes/guildPlatformAction.d.ts +2 -2
- package/dist/classes/guildRolePanel.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/other/bitfields.d.ts +5 -2
- package/dist/other/bitfields.js +2 -0
- package/dist/other/enums.d.ts +6 -0
- package/dist/other/enums.js +3 -0
- package/dist/other/features.d.ts +4 -0
- package/dist/other/features.js +18 -0
- package/dist/other/prisma.d.ts +3 -0
- package/dist/other/templates.d.ts +38 -0
- package/dist/other/templates.js +29 -0
- package/dist/other/zod/client.zod.d.ts +2 -0
- package/dist/other/zod/clipForward.zod.d.ts +3 -0
- package/dist/other/zod/clubStreamer.zod.d.ts +117 -0
- package/dist/other/zod/clubStreamer.zod.js +28 -0
- package/dist/other/zod/drops.zod.d.ts +1 -0
- package/dist/other/zod/guild.zod.d.ts +5 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.js +1 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +2 -0
- package/dist/other/zod/scheduledMessage.zod.d.ts +46 -2
- package/dist/other/zod/scheduledMessage.zod.js +32 -2
- package/dist/other/zod/schema.zod.d.ts +3 -0
- package/dist/other/zod/schema.zod.js +3 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
- package/dist/other/zod/zod.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +11106 -7305
- package/prisma/schema/models/clubStreamer.prisma +95 -0
- package/prisma/schema/models/rolePanels.prisma +1 -0
- package/prisma/schema/models/scheduledMessage.prisma +46 -0
- package/prisma/schema/schema.prisma +3 -0
package/dist/other/enums.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare const StreamerMessageTypeEnum: {
|
|
|
28
28
|
readonly tiktokVideo: "tiktokVideo";
|
|
29
29
|
readonly youtubeLive: "youtubeLive";
|
|
30
30
|
readonly youtubeVideo: "youtubeVideo";
|
|
31
|
+
readonly clubPost: "clubPost";
|
|
31
32
|
};
|
|
32
33
|
export declare const GuildMessageTypeEnum: {
|
|
33
34
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -54,6 +55,7 @@ export declare const GuildMessageTypeEnum: {
|
|
|
54
55
|
readonly tiktokVideo: "tiktokVideo";
|
|
55
56
|
readonly youtubeLive: "youtubeLive";
|
|
56
57
|
readonly youtubeVideo: "youtubeVideo";
|
|
58
|
+
readonly clubPost: "clubPost";
|
|
57
59
|
};
|
|
58
60
|
export declare const GuildSingleMessageTypeEnum: {
|
|
59
61
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -75,6 +77,7 @@ export declare const PlatformEnum: {
|
|
|
75
77
|
readonly rumble: "rumble";
|
|
76
78
|
readonly tiktok: "tiktok";
|
|
77
79
|
readonly youtube: "youtube";
|
|
80
|
+
readonly club: "club";
|
|
78
81
|
};
|
|
79
82
|
export declare const ClipperCategoryEnum: {
|
|
80
83
|
readonly vip: "vip";
|
|
@@ -174,6 +177,7 @@ export declare const $Enums: {
|
|
|
174
177
|
readonly tiktokVideo: "tiktokVideo";
|
|
175
178
|
readonly youtubeLive: "youtubeLive";
|
|
176
179
|
readonly youtubeVideo: "youtubeVideo";
|
|
180
|
+
readonly clubPost: "clubPost";
|
|
177
181
|
};
|
|
178
182
|
readonly GuildMessageTypeEnum: {
|
|
179
183
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -200,6 +204,7 @@ export declare const $Enums: {
|
|
|
200
204
|
readonly tiktokVideo: "tiktokVideo";
|
|
201
205
|
readonly youtubeLive: "youtubeLive";
|
|
202
206
|
readonly youtubeVideo: "youtubeVideo";
|
|
207
|
+
readonly clubPost: "clubPost";
|
|
203
208
|
};
|
|
204
209
|
readonly GuildSingleMessageTypeEnum: {
|
|
205
210
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -221,6 +226,7 @@ export declare const $Enums: {
|
|
|
221
226
|
readonly rumble: "rumble";
|
|
222
227
|
readonly tiktok: "tiktok";
|
|
223
228
|
readonly youtube: "youtube";
|
|
229
|
+
readonly club: "club";
|
|
224
230
|
};
|
|
225
231
|
readonly ClipperCategoryEnum: {
|
|
226
232
|
readonly vip: "vip";
|
package/dist/other/enums.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.StreamerMessageTypeEnum = {
|
|
|
34
34
|
tiktokVideo: 'tiktokVideo',
|
|
35
35
|
youtubeLive: 'youtubeLive',
|
|
36
36
|
youtubeVideo: 'youtubeVideo',
|
|
37
|
+
clubPost: 'clubPost',
|
|
37
38
|
};
|
|
38
39
|
exports.GuildMessageTypeEnum = {
|
|
39
40
|
giveawayRerolled: 'giveawayRerolled',
|
|
@@ -61,6 +62,7 @@ exports.GuildMessageTypeEnum = {
|
|
|
61
62
|
tiktokVideo: 'tiktokVideo',
|
|
62
63
|
youtubeLive: 'youtubeLive',
|
|
63
64
|
youtubeVideo: 'youtubeVideo',
|
|
65
|
+
clubPost: 'clubPost',
|
|
64
66
|
};
|
|
65
67
|
exports.GuildSingleMessageTypeEnum = {
|
|
66
68
|
autoLiveRoleAdded: 'autoLiveRoleAdded',
|
|
@@ -82,6 +84,7 @@ exports.PlatformEnum = {
|
|
|
82
84
|
rumble: 'rumble',
|
|
83
85
|
tiktok: 'tiktok',
|
|
84
86
|
youtube: 'youtube',
|
|
87
|
+
club: 'club',
|
|
85
88
|
};
|
|
86
89
|
exports.ClipperCategoryEnum = {
|
|
87
90
|
vip: 'vip',
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const FEATURE_NAMES: readonly ["freeGames", "gameChangelogs", "robloxNotifications", "fixLinks", "clipperNotifications", "scheduledMessages", "linkedRoles", "reactionRoles", "clipForwarding", "club"];
|
|
2
|
+
export type FeatureName = (typeof FEATURE_NAMES)[number];
|
|
3
|
+
export type FeatureStatus = 'off' | 'beta' | 'public';
|
|
4
|
+
export type ResolvedFeature = 'public' | 'beta' | 'hidden';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Per-feature launch-gate system (backend-resolved).
|
|
3
|
+
// FeatureStatus is the raw admin-configured gate; ResolvedFeature is what the
|
|
4
|
+
// backend resolves per-user for the dashboard to render against.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FEATURE_NAMES = void 0;
|
|
7
|
+
exports.FEATURE_NAMES = [
|
|
8
|
+
'freeGames',
|
|
9
|
+
'gameChangelogs',
|
|
10
|
+
'robloxNotifications',
|
|
11
|
+
'fixLinks',
|
|
12
|
+
'clipperNotifications',
|
|
13
|
+
'scheduledMessages',
|
|
14
|
+
'linkedRoles',
|
|
15
|
+
'reactionRoles',
|
|
16
|
+
'clipForwarding',
|
|
17
|
+
'club',
|
|
18
|
+
];
|
package/dist/other/prisma.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { YoutubeStreamerZod } from './zod/youtubeStreamer.zod';
|
|
|
5
5
|
import { TwitchStreamerZod } from './zod/twitchStreamer.zod';
|
|
6
6
|
import { TiktokStreamerZod } from './zod/tiktokStreamer.zod';
|
|
7
7
|
import { RumbleStreamerZod } from './zod/rumbleStreamer.zod';
|
|
8
|
+
import { ClubStreamerZod } from './zod/clubStreamer.zod';
|
|
8
9
|
import { KickStreamerZod } from './zod/kickStreamer.zod';
|
|
9
10
|
import { GuildStarboardZod } from './zod/starboard.zod';
|
|
10
11
|
import { GuildGiveawayZod } from './zod/giveaways.zod';
|
|
@@ -33,6 +34,7 @@ export type TwitchStreamer = TSPrisma.TSPrismaModelsFull['TwitchStreamer'];
|
|
|
33
34
|
export type RumbleStreamer = TSPrisma.TSPrismaModelsFull['RumbleStreamer'];
|
|
34
35
|
export type TikTokStreamer = TSPrisma.TSPrismaModelsFull['TiktokStreamer'];
|
|
35
36
|
export type YouTubeStreamer = TSPrisma.TSPrismaModelsFull['YoutubeStreamer'];
|
|
37
|
+
export type ClubStreamer = TSPrisma.TSPrismaModelsFull['ClubStreamer'];
|
|
36
38
|
export type GuildStarboard = TSPrisma.TSPrismaModelsFull['GuildStarboard'];
|
|
37
39
|
export type GuildGiveaway = TSPrisma.TSPrismaModelsFull['GuildGiveaway'];
|
|
38
40
|
export type GuildRolePanel = TSPrisma.TSPrismaModelsFull['GuildRolePanel'];
|
|
@@ -59,6 +61,7 @@ export type TwitchStreamerZod = z.infer<typeof TwitchStreamerZod.TwitchStreamerS
|
|
|
59
61
|
export type RumbleStreamerZod = z.infer<typeof RumbleStreamerZod.RumbleStreamerSchema>;
|
|
60
62
|
export type TikTokStreamerZod = z.infer<typeof TiktokStreamerZod.TiktokStreamerSchema>;
|
|
61
63
|
export type YouTubeStreamerZod = z.infer<typeof YoutubeStreamerZod.YoutubeStreamerSchema>;
|
|
64
|
+
export type ClubStreamerZod = z.infer<typeof ClubStreamerZod.ClubStreamerSchema>;
|
|
62
65
|
export type GuildStarboardZod = z.infer<typeof GuildStarboardZod.GuildStarboardSchema>;
|
|
63
66
|
export type GuildGiveawayZod = z.infer<typeof GuildGiveawayZod.GuildGiveawaySchema>;
|
|
64
67
|
export type GuildGiveawayCreateSchema = z.infer<typeof GuildGiveawayZod.GuildGiveawayCreateSchema>;
|
|
@@ -202,6 +202,18 @@ export declare const placeholders: {
|
|
|
202
202
|
randomMessage: string;
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
|
+
post: {
|
|
206
|
+
club: {
|
|
207
|
+
platform: string;
|
|
208
|
+
postUrl: string;
|
|
209
|
+
streamerName: string;
|
|
210
|
+
pingRole: string;
|
|
211
|
+
postText: string;
|
|
212
|
+
thumbnail: string;
|
|
213
|
+
publishDate: string;
|
|
214
|
+
randomMessage: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
205
217
|
birthday: {
|
|
206
218
|
username: string;
|
|
207
219
|
userMention: string;
|
|
@@ -697,6 +709,32 @@ export declare const messages: {
|
|
|
697
709
|
}[];
|
|
698
710
|
};
|
|
699
711
|
};
|
|
712
|
+
post: {
|
|
713
|
+
club: {
|
|
714
|
+
content: string;
|
|
715
|
+
embed: {
|
|
716
|
+
author: {
|
|
717
|
+
name: string;
|
|
718
|
+
url: string;
|
|
719
|
+
};
|
|
720
|
+
url: string;
|
|
721
|
+
description: string;
|
|
722
|
+
color: number;
|
|
723
|
+
image: {
|
|
724
|
+
url: string;
|
|
725
|
+
};
|
|
726
|
+
footer: {
|
|
727
|
+
text: string;
|
|
728
|
+
icon_url: string;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
buttons: {
|
|
732
|
+
label: string;
|
|
733
|
+
style: number;
|
|
734
|
+
url: string;
|
|
735
|
+
}[];
|
|
736
|
+
};
|
|
737
|
+
};
|
|
700
738
|
birthday: {
|
|
701
739
|
content: string;
|
|
702
740
|
embed: {
|
package/dist/other/templates.js
CHANGED
|
@@ -205,6 +205,18 @@ exports.placeholders = {
|
|
|
205
205
|
'randomMessage': 'Example Message',
|
|
206
206
|
},
|
|
207
207
|
},
|
|
208
|
+
post: {
|
|
209
|
+
club: {
|
|
210
|
+
'platform': 'Club',
|
|
211
|
+
'postUrl': 'https://club.com/example',
|
|
212
|
+
'streamerName': 'Example',
|
|
213
|
+
'pingRole': '<@&123456789>',
|
|
214
|
+
'postText': 'Example post text',
|
|
215
|
+
'thumbnail': 'https://example.com',
|
|
216
|
+
'publishDate': '<t:1640995200:R>',
|
|
217
|
+
'randomMessage': 'Example Message',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
208
220
|
birthday: {
|
|
209
221
|
'username': 'Example',
|
|
210
222
|
'userMention': '<@123456789>',
|
|
@@ -649,6 +661,23 @@ exports.messages = {
|
|
|
649
661
|
buttons: exports.buttons.video,
|
|
650
662
|
},
|
|
651
663
|
},
|
|
664
|
+
post: {
|
|
665
|
+
club: {
|
|
666
|
+
content: '{pingRole} {randomMessage}',
|
|
667
|
+
embed: {
|
|
668
|
+
author: { name: '{streamerName} posted on Club', url: '{postUrl}' },
|
|
669
|
+
url: '{postUrl}',
|
|
670
|
+
description: '{postText}',
|
|
671
|
+
color: 0x4c9fff,
|
|
672
|
+
image: { url: '{thumbnail}' },
|
|
673
|
+
footer: {
|
|
674
|
+
text: 'Powered by Noti.',
|
|
675
|
+
icon_url: 'https://noti.bot/logo.png',
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
buttons: exports.buttons.video,
|
|
679
|
+
},
|
|
680
|
+
},
|
|
652
681
|
birthday: {
|
|
653
682
|
content: '{userMention}',
|
|
654
683
|
embed: {
|
|
@@ -53,6 +53,7 @@ export declare const ClientZod: {
|
|
|
53
53
|
rumble: "rumble";
|
|
54
54
|
tiktok: "tiktok";
|
|
55
55
|
youtube: "youtube";
|
|
56
|
+
club: "club";
|
|
56
57
|
}>;
|
|
57
58
|
}, z.core.$strip>>>;
|
|
58
59
|
twitchCredentials: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -111,6 +112,7 @@ export declare const ClientZod: {
|
|
|
111
112
|
rumble: "rumble";
|
|
112
113
|
tiktok: "tiktok";
|
|
113
114
|
youtube: "youtube";
|
|
115
|
+
club: "club";
|
|
114
116
|
}>;
|
|
115
117
|
}, z.core.$strip>;
|
|
116
118
|
};
|
|
@@ -71,6 +71,7 @@ export declare const GuildClipForwardZod: {
|
|
|
71
71
|
tiktokVideo: "tiktokVideo";
|
|
72
72
|
youtubeLive: "youtubeLive";
|
|
73
73
|
youtubeVideo: "youtubeVideo";
|
|
74
|
+
clubPost: "clubPost";
|
|
74
75
|
}>;
|
|
75
76
|
}, z.core.$strip>>>;
|
|
76
77
|
lastClipAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -142,6 +143,7 @@ export declare const GuildClipForwardZod: {
|
|
|
142
143
|
tiktokVideo: "tiktokVideo";
|
|
143
144
|
youtubeLive: "youtubeLive";
|
|
144
145
|
youtubeVideo: "youtubeVideo";
|
|
146
|
+
clubPost: "clubPost";
|
|
145
147
|
}>;
|
|
146
148
|
}, z.core.$strip>>>>;
|
|
147
149
|
lastClipAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -192,6 +194,7 @@ export declare const GuildClipForwardZod: {
|
|
|
192
194
|
tiktokVideo: "tiktokVideo";
|
|
193
195
|
youtubeLive: "youtubeLive";
|
|
194
196
|
youtubeVideo: "youtubeVideo";
|
|
197
|
+
clubPost: "clubPost";
|
|
195
198
|
}>;
|
|
196
199
|
}, z.core.$strip>;
|
|
197
200
|
};
|
|
@@ -0,0 +1,117 @@
|
|
|
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], ClubStreamerRelations>>;
|
|
6
|
+
export type ClubStreamerRelations = 'db' | 'clubStreamer' | 'csCustomMessage' | 'csMessageEmbed';
|
|
7
|
+
export declare const ClubStreamerZod: {
|
|
8
|
+
readonly ClubStreamerSchema: z.ZodObject<{
|
|
9
|
+
streamerUserName: z.ZodString;
|
|
10
|
+
guildId: z.ZodString;
|
|
11
|
+
usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
autoPublishIfAnnouncmentChannel: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
customMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
14
|
+
content: z.ZodNullable<z.ZodString>;
|
|
15
|
+
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
16
|
+
title: z.ZodNullable<z.ZodString>;
|
|
17
|
+
url: z.ZodNullable<z.ZodString>;
|
|
18
|
+
description: z.ZodString;
|
|
19
|
+
color: z.ZodNullable<z.ZodString>;
|
|
20
|
+
footer: z.ZodNullable<z.ZodString>;
|
|
21
|
+
footerIcon: z.ZodNullable<z.ZodString>;
|
|
22
|
+
image: z.ZodNullable<z.ZodString>;
|
|
23
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
24
|
+
author: z.ZodNullable<z.ZodString>;
|
|
25
|
+
authorIcon: z.ZodNullable<z.ZodString>;
|
|
26
|
+
fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
value: z.ZodNullable<z.ZodString>;
|
|
29
|
+
inline: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
url: z.ZodNullable<z.ZodString>;
|
|
35
|
+
emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
38
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
username: z.ZodNullable<z.ZodString>;
|
|
40
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
type: z.ZodEnum<{
|
|
43
|
+
clip: "clip";
|
|
44
|
+
clipForward: "clipForward";
|
|
45
|
+
vod: "vod";
|
|
46
|
+
kickLive: "kickLive";
|
|
47
|
+
kickOffline: "kickOffline";
|
|
48
|
+
twitchLive: "twitchLive";
|
|
49
|
+
twitchOffline: "twitchOffline";
|
|
50
|
+
rumbleLive: "rumbleLive";
|
|
51
|
+
rumbleOffline: "rumbleOffline";
|
|
52
|
+
rumbleVideo: "rumbleVideo";
|
|
53
|
+
tiktokLive: "tiktokLive";
|
|
54
|
+
tiktokOffline: "tiktokOffline";
|
|
55
|
+
tiktokVideo: "tiktokVideo";
|
|
56
|
+
youtubeLive: "youtubeLive";
|
|
57
|
+
youtubeVideo: "youtubeVideo";
|
|
58
|
+
clubPost: "clubPost";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
showNotifyButton: z.ZodNullable<z.ZodBoolean>;
|
|
63
|
+
pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
|
|
64
|
+
customCoolDownBeforeNextPost: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
lastPostId: z.ZodNullable<z.ZodString>;
|
|
66
|
+
lastPostAt: z.ZodNullable<z.ZodDate>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
readonly CSCustomMessageSchema: z.ZodObject<{
|
|
69
|
+
content: z.ZodNullable<z.ZodString>;
|
|
70
|
+
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
71
|
+
title: z.ZodNullable<z.ZodString>;
|
|
72
|
+
url: z.ZodNullable<z.ZodString>;
|
|
73
|
+
description: z.ZodString;
|
|
74
|
+
color: z.ZodNullable<z.ZodString>;
|
|
75
|
+
footer: z.ZodNullable<z.ZodString>;
|
|
76
|
+
footerIcon: z.ZodNullable<z.ZodString>;
|
|
77
|
+
image: z.ZodNullable<z.ZodString>;
|
|
78
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
79
|
+
author: z.ZodNullable<z.ZodString>;
|
|
80
|
+
authorIcon: z.ZodNullable<z.ZodString>;
|
|
81
|
+
fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
value: z.ZodNullable<z.ZodString>;
|
|
84
|
+
inline: z.ZodNullable<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
88
|
+
title: z.ZodString;
|
|
89
|
+
url: z.ZodNullable<z.ZodString>;
|
|
90
|
+
emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>>>;
|
|
92
|
+
webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
93
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
94
|
+
username: z.ZodNullable<z.ZodString>;
|
|
95
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
type: z.ZodEnum<{
|
|
98
|
+
clip: "clip";
|
|
99
|
+
clipForward: "clipForward";
|
|
100
|
+
vod: "vod";
|
|
101
|
+
kickLive: "kickLive";
|
|
102
|
+
kickOffline: "kickOffline";
|
|
103
|
+
twitchLive: "twitchLive";
|
|
104
|
+
twitchOffline: "twitchOffline";
|
|
105
|
+
rumbleLive: "rumbleLive";
|
|
106
|
+
rumbleOffline: "rumbleOffline";
|
|
107
|
+
rumbleVideo: "rumbleVideo";
|
|
108
|
+
tiktokLive: "tiktokLive";
|
|
109
|
+
tiktokOffline: "tiktokOffline";
|
|
110
|
+
tiktokVideo: "tiktokVideo";
|
|
111
|
+
youtubeLive: "youtubeLive";
|
|
112
|
+
youtubeVideo: "youtubeVideo";
|
|
113
|
+
clubPost: "clubPost";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
};
|
|
117
|
+
export declare const ClubStreamerZodPartial: PartialZodObject<typeof ClubStreamerZod>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClubStreamerZodPartial = exports.ClubStreamerZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const zod_1 = require("./zod");
|
|
6
|
+
const zod_2 = require("zod");
|
|
7
|
+
const ClubStreamerSchema = zod_2.z.object({
|
|
8
|
+
streamerUserName: zod_2.z.string(),
|
|
9
|
+
guildId: zod_1.SnowFlake,
|
|
10
|
+
usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
|
|
11
|
+
autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
|
|
12
|
+
customMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => CSCustomMessageSchema)), ['type']),
|
|
13
|
+
notificationChannelId: zod_1.SnowFlake.nullable(),
|
|
14
|
+
showNotifyButton: zod_2.z.boolean().nullable(),
|
|
15
|
+
pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
16
|
+
customCoolDownBeforeNextPost: zod_2.z.number().min(0).max(360).nullable(),
|
|
17
|
+
lastPostId: zod_2.z.string().nullable(),
|
|
18
|
+
lastPostAt: zod_2.z.date().nullable(),
|
|
19
|
+
});
|
|
20
|
+
const CSCustomMessageSchema = zod_2.z.object({
|
|
21
|
+
type: schema_zod_1.StreamerMessageTypeEnum,
|
|
22
|
+
...zod_1.CentralZod.Message(),
|
|
23
|
+
});
|
|
24
|
+
exports.ClubStreamerZod = {
|
|
25
|
+
ClubStreamerSchema,
|
|
26
|
+
CSCustomMessageSchema,
|
|
27
|
+
};
|
|
28
|
+
exports.ClubStreamerZodPartial = Object.fromEntries(Object.entries(exports.ClubStreamerZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|
|
@@ -86,6 +86,7 @@ export declare const GuildZod: {
|
|
|
86
86
|
tiktokVideo: "tiktokVideo";
|
|
87
87
|
youtubeLive: "youtubeLive";
|
|
88
88
|
youtubeVideo: "youtubeVideo";
|
|
89
|
+
clubPost: "clubPost";
|
|
89
90
|
}>;
|
|
90
91
|
messages: z.ZodArray<z.ZodString>;
|
|
91
92
|
}, z.core.$strip>>>;
|
|
@@ -134,6 +135,7 @@ export declare const GuildZod: {
|
|
|
134
135
|
rumble: "rumble";
|
|
135
136
|
tiktok: "tiktok";
|
|
136
137
|
youtube: "youtube";
|
|
138
|
+
club: "club";
|
|
137
139
|
}>>;
|
|
138
140
|
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
139
141
|
overrideChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -217,6 +219,7 @@ export declare const GuildZod: {
|
|
|
217
219
|
tiktokVideo: "tiktokVideo";
|
|
218
220
|
youtubeLive: "youtubeLive";
|
|
219
221
|
youtubeVideo: "youtubeVideo";
|
|
222
|
+
clubPost: "clubPost";
|
|
220
223
|
}>;
|
|
221
224
|
}, z.core.$strip>>>;
|
|
222
225
|
stickyMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -348,6 +351,7 @@ export declare const GuildZod: {
|
|
|
348
351
|
rumble: "rumble";
|
|
349
352
|
tiktok: "tiktok";
|
|
350
353
|
youtube: "youtube";
|
|
354
|
+
club: "club";
|
|
351
355
|
}>>;
|
|
352
356
|
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
353
357
|
overrideChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -435,6 +439,7 @@ export declare const GuildZod: {
|
|
|
435
439
|
tiktokVideo: "tiktokVideo";
|
|
436
440
|
youtubeLive: "youtubeLive";
|
|
437
441
|
youtubeVideo: "youtubeVideo";
|
|
442
|
+
clubPost: "clubPost";
|
|
438
443
|
}>;
|
|
439
444
|
}, z.core.$strip>;
|
|
440
445
|
readonly GuildStickyMessageSchema: z.ZodObject<{
|
|
@@ -59,6 +59,7 @@ export declare const KickStreamerZod: {
|
|
|
59
59
|
tiktokVideo: "tiktokVideo";
|
|
60
60
|
youtubeLive: "youtubeLive";
|
|
61
61
|
youtubeVideo: "youtubeVideo";
|
|
62
|
+
clubPost: "clubPost";
|
|
62
63
|
}>;
|
|
63
64
|
}, z.core.$strip>>>;
|
|
64
65
|
clipEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -172,6 +173,7 @@ export declare const KickStreamerZod: {
|
|
|
172
173
|
tiktokVideo: "tiktokVideo";
|
|
173
174
|
youtubeLive: "youtubeLive";
|
|
174
175
|
youtubeVideo: "youtubeVideo";
|
|
176
|
+
clubPost: "clubPost";
|
|
175
177
|
}>;
|
|
176
178
|
}, z.core.$strip>;
|
|
177
179
|
readonly KSRoleWithUsersSchema: z.ZodObject<{
|
|
@@ -22,6 +22,7 @@ export declare const GuildRolePanelZod: {
|
|
|
22
22
|
logChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
requireAccountAgeDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
requireJoinAgeDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
requireMessageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
26
|
boosterOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
27
|
embeds: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
27
28
|
order: z.ZodNumber;
|
|
@@ -72,6 +73,7 @@ export declare const GuildRolePanelZod: {
|
|
|
72
73
|
logChannelId: z.ZodNullable<z.ZodString>;
|
|
73
74
|
requireAccountAgeDays: z.ZodNullable<z.ZodNumber>;
|
|
74
75
|
requireJoinAgeDays: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
requireMessageCount: z.ZodNullable<z.ZodNumber>;
|
|
75
77
|
boosterOnly: z.ZodNullable<z.ZodBoolean>;
|
|
76
78
|
embeds: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
77
79
|
order: z.ZodNumber;
|
|
@@ -18,6 +18,7 @@ const mainSchemaFields = {
|
|
|
18
18
|
logChannelId: zod_1.SnowFlake.nullable(),
|
|
19
19
|
requireAccountAgeDays: zod_2.z.number().min(0).nullable(),
|
|
20
20
|
requireJoinAgeDays: zod_2.z.number().min(0).nullable(),
|
|
21
|
+
requireMessageCount: zod_2.z.number().min(0).nullable(),
|
|
21
22
|
boosterOnly: zod_2.z.boolean().nullable(),
|
|
22
23
|
embeds: zod_2.z.array(zod_2.z.lazy(() => GuildRolePanelEmbedSchema)).max(5),
|
|
23
24
|
rows: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildRolePanelRoleSchema)), ['roleId']),
|
|
@@ -61,6 +61,7 @@ export declare const RumbleStreamerZod: {
|
|
|
61
61
|
tiktokVideo: "tiktokVideo";
|
|
62
62
|
youtubeLive: "youtubeLive";
|
|
63
63
|
youtubeVideo: "youtubeVideo";
|
|
64
|
+
clubPost: "clubPost";
|
|
64
65
|
}>;
|
|
65
66
|
}, z.core.$strip>>>;
|
|
66
67
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -130,6 +131,7 @@ export declare const RumbleStreamerZod: {
|
|
|
130
131
|
tiktokVideo: "tiktokVideo";
|
|
131
132
|
youtubeLive: "youtubeLive";
|
|
132
133
|
youtubeVideo: "youtubeVideo";
|
|
134
|
+
clubPost: "clubPost";
|
|
133
135
|
}>;
|
|
134
136
|
}, z.core.$strip>;
|
|
135
137
|
readonly RSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -3,7 +3,7 @@ import { RemoveProperties } from '../prisma';
|
|
|
3
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], GuildScheduledMessageRelations>>;
|
|
6
|
-
export type GuildScheduledMessageRelations = 'db';
|
|
6
|
+
export type GuildScheduledMessageRelations = 'db' | 'embed' | 'buttons';
|
|
7
7
|
export declare const ScheduledMessageTimingEnum: z.ZodEnum<{
|
|
8
8
|
on: "on";
|
|
9
9
|
before: "before";
|
|
@@ -43,7 +43,29 @@ export declare const ScheduledMessageZod: {
|
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
readonly ScheduledMessageCreateSchema: z.ZodObject<{
|
|
45
45
|
channelId: z.ZodString;
|
|
46
|
-
content: z.ZodString
|
|
46
|
+
content: z.ZodDefault<z.ZodString>;
|
|
47
|
+
embed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
description: z.ZodString;
|
|
51
|
+
color: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
footer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
footerIcon: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
thumbnail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
author: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
authorIcon: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
value: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
inline: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
buttons: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
emojiUnicodeOrId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
47
69
|
trigger: z.ZodDefault<z.ZodEnum<{
|
|
48
70
|
time: "time";
|
|
49
71
|
stage: "stage";
|
|
@@ -72,6 +94,28 @@ export declare const ScheduledMessageZod: {
|
|
|
72
94
|
}, z.core.$strip>;
|
|
73
95
|
readonly ScheduledMessageEditSchema: z.ZodObject<{
|
|
74
96
|
content: z.ZodOptional<z.ZodString>;
|
|
97
|
+
embed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
98
|
+
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
description: z.ZodString;
|
|
101
|
+
color: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
footer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
footerIcon: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
thumbnail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
author: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
authorIcon: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
value: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
inline: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
114
|
+
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
|
+
title: z.ZodString;
|
|
116
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
emojiUnicodeOrId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
75
119
|
webhookEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
76
120
|
webhookUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
121
|
webhookAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -30,9 +30,34 @@ const GuildScheduledMessageSchema = zod_2.z.object({
|
|
|
30
30
|
paused: zod_2.z.boolean(),
|
|
31
31
|
createdAt: zod_2.z.date(),
|
|
32
32
|
});
|
|
33
|
+
const ScheduledEmbedFieldSchema = zod_2.z.object({
|
|
34
|
+
name: zod_2.z.string().min(1).max(256),
|
|
35
|
+
value: zod_2.z.string().max(1024).nullable().default(null),
|
|
36
|
+
inline: zod_2.z.boolean().nullable().default(null),
|
|
37
|
+
});
|
|
38
|
+
const ScheduledEmbedSchema = zod_2.z.object({
|
|
39
|
+
title: zod_2.z.string().max(256).nullable().default(null),
|
|
40
|
+
url: zod_2.z.string().max(2000).nullable().default(null),
|
|
41
|
+
description: zod_2.z.string().min(1).max(2048),
|
|
42
|
+
color: zod_2.z.string().max(10).nullable().default(null),
|
|
43
|
+
footer: zod_2.z.string().max(1024).nullable().default(null),
|
|
44
|
+
footerIcon: zod_2.z.string().max(2000).nullable().default(null),
|
|
45
|
+
image: zod_2.z.string().max(2000).nullable().default(null),
|
|
46
|
+
thumbnail: zod_2.z.string().max(2000).nullable().default(null),
|
|
47
|
+
author: zod_2.z.string().max(256).nullable().default(null),
|
|
48
|
+
authorIcon: zod_2.z.string().max(2000).nullable().default(null),
|
|
49
|
+
fields: zod_2.z.array(ScheduledEmbedFieldSchema).max(25).default([]),
|
|
50
|
+
});
|
|
51
|
+
const ScheduledButtonSchema = zod_2.z.object({
|
|
52
|
+
title: zod_2.z.string().min(1).max(80),
|
|
53
|
+
url: zod_2.z.string().max(2000).nullable().default(null),
|
|
54
|
+
emojiUnicodeOrId: zod_2.z.string().nullable().default(null),
|
|
55
|
+
});
|
|
33
56
|
const ScheduledMessageCreateSchema = zod_2.z.object({
|
|
34
57
|
channelId: zod_1.SnowFlake,
|
|
35
|
-
content: zod_2.z.string().
|
|
58
|
+
content: zod_2.z.string().max(2000).default(''),
|
|
59
|
+
embed: ScheduledEmbedSchema.nullable().default(null),
|
|
60
|
+
buttons: zod_2.z.array(ScheduledButtonSchema).max(5).default([]),
|
|
36
61
|
trigger: schema_zod_1.ScheduledMessageTriggerEnum.default('time'),
|
|
37
62
|
recurrence: schema_zod_1.ScheduledMessageRecurrenceEnum.default('once'),
|
|
38
63
|
daysOfWeek: zod_2.z.array(zod_2.z.number().int().min(0).max(6)).default([]),
|
|
@@ -45,9 +70,14 @@ const ScheduledMessageCreateSchema = zod_2.z.object({
|
|
|
45
70
|
webhookEnabled: zod_2.z.boolean().default(false),
|
|
46
71
|
webhookUsername: zod_2.z.string().min(1).max(80).nullable().default(null),
|
|
47
72
|
webhookAvatarUrl: zod_2.z.string().url().max(2000).nullable().default(null),
|
|
73
|
+
}).refine((d) => d.content.trim().length > 0 || !!d.embed, {
|
|
74
|
+
message: 'A scheduled message needs content, an embed, or both.',
|
|
75
|
+
path: ['content'],
|
|
48
76
|
});
|
|
49
77
|
const ScheduledMessageEditSchema = zod_2.z.object({
|
|
50
|
-
content: zod_2.z.string().
|
|
78
|
+
content: zod_2.z.string().max(2000).optional(),
|
|
79
|
+
embed: ScheduledEmbedSchema.nullable().optional(),
|
|
80
|
+
buttons: zod_2.z.array(ScheduledButtonSchema).max(5).optional(),
|
|
51
81
|
webhookEnabled: zod_2.z.boolean().optional(),
|
|
52
82
|
webhookUsername: zod_2.z.string().min(1).max(80).nullable().optional(),
|
|
53
83
|
webhookAvatarUrl: zod_2.z.string().url().max(2000).nullable().optional(),
|
|
@@ -36,6 +36,7 @@ export declare const StreamerMessageTypeEnum: z.ZodEnum<{
|
|
|
36
36
|
tiktokVideo: "tiktokVideo";
|
|
37
37
|
youtubeLive: "youtubeLive";
|
|
38
38
|
youtubeVideo: "youtubeVideo";
|
|
39
|
+
clubPost: "clubPost";
|
|
39
40
|
}>;
|
|
40
41
|
export declare const GuildMessageTypeEnum: z.ZodEnum<{
|
|
41
42
|
birthday: "birthday";
|
|
@@ -62,6 +63,7 @@ export declare const GuildMessageTypeEnum: z.ZodEnum<{
|
|
|
62
63
|
tiktokVideo: "tiktokVideo";
|
|
63
64
|
youtubeLive: "youtubeLive";
|
|
64
65
|
youtubeVideo: "youtubeVideo";
|
|
66
|
+
clubPost: "clubPost";
|
|
65
67
|
}>;
|
|
66
68
|
export declare const GuildSingleMessageTypeEnum: z.ZodEnum<{
|
|
67
69
|
autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -83,6 +85,7 @@ export declare const PlatformEnum: z.ZodEnum<{
|
|
|
83
85
|
rumble: "rumble";
|
|
84
86
|
tiktok: "tiktok";
|
|
85
87
|
youtube: "youtube";
|
|
88
|
+
club: "club";
|
|
86
89
|
}>;
|
|
87
90
|
export declare const ClipForwardPlatformEnum: z.ZodEnum<{
|
|
88
91
|
kick: "kick";
|