@notidotbot/noti-api-client 1.9.100 → 1.9.101
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 +46 -0
- package/dist/classes/@me.js +20 -0
- package/dist/classes/admin.d.ts +1 -1
- package/dist/classes/client.d.ts +1 -1
- package/dist/classes/guildPlatform.d.ts +9 -2
- package/dist/classes/guildPlatformAction.d.ts +2 -2
- package/dist/classes/guildRolePanel.d.ts +12 -12
- package/dist/classes/guildStarboard.d.ts +1 -1
- package/dist/index.d.ts +1 -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 +1 -1
- package/dist/other/features.js +2 -0
- package/dist/other/inGameAlerts.d.ts +1 -0
- package/dist/other/inGameAlerts.js +1 -0
- package/dist/other/multiDestination.d.ts +1 -0
- package/dist/other/multiDestination.js +1 -0
- package/dist/other/prisma.d.ts +4 -0
- package/dist/other/templates.d.ts +42 -0
- package/dist/other/templates.js +31 -0
- package/dist/other/types.d.ts +3 -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 +2 -0
- package/dist/other/zod/drops.zod.d.ts +1 -0
- package/dist/other/zod/gameConfig.zod.d.ts +1 -1
- package/dist/other/zod/guild.zod.d.ts +6 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -2
- package/dist/other/zod/rssFeed.zod.d.ts +153 -0
- package/dist/other/zod/rssFeed.zod.js +48 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +2 -0
- package/dist/other/zod/schema.zod.d.ts +4 -1
- 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/twitterStreamer.zod.d.ts +2 -0
- package/dist/other/zod/whatnotStreamer.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 +2956 -0
- package/prisma/schema/models/rssFeed.prisma +131 -0
- package/prisma/schema/schema.prisma +3 -0
|
@@ -79,6 +79,7 @@ export declare const GuildClipForwardZod: {
|
|
|
79
79
|
twitterPost: "twitterPost";
|
|
80
80
|
twitterLive: "twitterLive";
|
|
81
81
|
twitterOffline: "twitterOffline";
|
|
82
|
+
rssPost: "rssPost";
|
|
82
83
|
}>;
|
|
83
84
|
}, z.core.$strip>>>;
|
|
84
85
|
lastClipAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -158,6 +159,7 @@ export declare const GuildClipForwardZod: {
|
|
|
158
159
|
twitterPost: "twitterPost";
|
|
159
160
|
twitterLive: "twitterLive";
|
|
160
161
|
twitterOffline: "twitterOffline";
|
|
162
|
+
rssPost: "rssPost";
|
|
161
163
|
}>;
|
|
162
164
|
}, z.core.$strip>>>>;
|
|
163
165
|
lastClipAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -216,6 +218,7 @@ export declare const GuildClipForwardZod: {
|
|
|
216
218
|
twitterPost: "twitterPost";
|
|
217
219
|
twitterLive: "twitterLive";
|
|
218
220
|
twitterOffline: "twitterOffline";
|
|
221
|
+
rssPost: "rssPost";
|
|
219
222
|
}>;
|
|
220
223
|
}, z.core.$strip>;
|
|
221
224
|
};
|
|
@@ -78,6 +78,7 @@ export declare const ClubStreamerZod: {
|
|
|
78
78
|
twitterPost: "twitterPost";
|
|
79
79
|
twitterLive: "twitterLive";
|
|
80
80
|
twitterOffline: "twitterOffline";
|
|
81
|
+
rssPost: "rssPost";
|
|
81
82
|
}>;
|
|
82
83
|
}, z.core.$strip>>>;
|
|
83
84
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -140,6 +141,7 @@ export declare const ClubStreamerZod: {
|
|
|
140
141
|
twitterPost: "twitterPost";
|
|
141
142
|
twitterLive: "twitterLive";
|
|
142
143
|
twitterOffline: "twitterOffline";
|
|
144
|
+
rssPost: "rssPost";
|
|
143
145
|
}>;
|
|
144
146
|
}, z.core.$strip>;
|
|
145
147
|
};
|
|
@@ -11,9 +11,9 @@ export declare const GameConfigZod: {
|
|
|
11
11
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
12
12
|
pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
|
|
13
13
|
deliveryMode: z.ZodEnum<{
|
|
14
|
+
scheduled: "scheduled";
|
|
14
15
|
instant: "instant";
|
|
15
16
|
window: "window";
|
|
16
|
-
scheduled: "scheduled";
|
|
17
17
|
}>;
|
|
18
18
|
windowStartHour: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
windowEndHour: z.ZodNullable<z.ZodNumber>;
|
|
@@ -122,6 +122,7 @@ export declare const GuildZod: {
|
|
|
122
122
|
twitterPost: "twitterPost";
|
|
123
123
|
twitterLive: "twitterLive";
|
|
124
124
|
twitterOffline: "twitterOffline";
|
|
125
|
+
rssPost: "rssPost";
|
|
125
126
|
}>;
|
|
126
127
|
messages: z.ZodArray<z.ZodString>;
|
|
127
128
|
}, z.core.$strip>>>;
|
|
@@ -169,6 +170,7 @@ export declare const GuildZod: {
|
|
|
169
170
|
whatnot: "whatnot";
|
|
170
171
|
club: "club";
|
|
171
172
|
twitter: "twitter";
|
|
173
|
+
rss: "rss";
|
|
172
174
|
}>>;
|
|
173
175
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
174
176
|
filter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -203,6 +205,7 @@ export declare const GuildZod: {
|
|
|
203
205
|
whatnot: "whatnot";
|
|
204
206
|
club: "club";
|
|
205
207
|
twitter: "twitter";
|
|
208
|
+
rss: "rss";
|
|
206
209
|
}>>;
|
|
207
210
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
208
211
|
applyToTypes: z.ZodArray<z.ZodEnum<{
|
|
@@ -305,6 +308,7 @@ export declare const GuildZod: {
|
|
|
305
308
|
twitterPost: "twitterPost";
|
|
306
309
|
twitterLive: "twitterLive";
|
|
307
310
|
twitterOffline: "twitterOffline";
|
|
311
|
+
rssPost: "rssPost";
|
|
308
312
|
}>;
|
|
309
313
|
}, z.core.$strip>>>;
|
|
310
314
|
stickyMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -458,6 +462,7 @@ export declare const GuildZod: {
|
|
|
458
462
|
whatnot: "whatnot";
|
|
459
463
|
club: "club";
|
|
460
464
|
twitter: "twitter";
|
|
465
|
+
rss: "rss";
|
|
461
466
|
}>>;
|
|
462
467
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
463
468
|
applyToTypes: z.ZodArray<z.ZodEnum<{
|
|
@@ -564,6 +569,7 @@ export declare const GuildZod: {
|
|
|
564
569
|
twitterPost: "twitterPost";
|
|
565
570
|
twitterLive: "twitterLive";
|
|
566
571
|
twitterOffline: "twitterOffline";
|
|
572
|
+
rssPost: "rssPost";
|
|
567
573
|
}>;
|
|
568
574
|
}, z.core.$strip>;
|
|
569
575
|
readonly GuildStickyMessageSchema: z.ZodObject<{
|
|
@@ -83,6 +83,7 @@ export declare const KickStreamerZod: {
|
|
|
83
83
|
twitterPost: "twitterPost";
|
|
84
84
|
twitterLive: "twitterLive";
|
|
85
85
|
twitterOffline: "twitterOffline";
|
|
86
|
+
rssPost: "rssPost";
|
|
86
87
|
}>;
|
|
87
88
|
}, z.core.$strip>>>;
|
|
88
89
|
clipEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -214,6 +215,7 @@ export declare const KickStreamerZod: {
|
|
|
214
215
|
twitterPost: "twitterPost";
|
|
215
216
|
twitterLive: "twitterLive";
|
|
216
217
|
twitterOffline: "twitterOffline";
|
|
218
|
+
rssPost: "rssPost";
|
|
217
219
|
}>;
|
|
218
220
|
}, z.core.$strip>;
|
|
219
221
|
readonly KSRoleWithUsersSchema: z.ZodObject<{
|
|
@@ -12,9 +12,9 @@ export declare const GuildRolePanelZod: {
|
|
|
12
12
|
dropdown: "dropdown";
|
|
13
13
|
}>;
|
|
14
14
|
assignMode: z.ZodEnum<{
|
|
15
|
+
limit: "limit";
|
|
15
16
|
toggle: "toggle";
|
|
16
17
|
unique: "unique";
|
|
17
|
-
limit: "limit";
|
|
18
18
|
verify: "verify";
|
|
19
19
|
}>;
|
|
20
20
|
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -67,9 +67,9 @@ export declare const GuildRolePanelZod: {
|
|
|
67
67
|
dropdown: "dropdown";
|
|
68
68
|
}>;
|
|
69
69
|
assignMode: z.ZodEnum<{
|
|
70
|
+
limit: "limit";
|
|
70
71
|
toggle: "toggle";
|
|
71
72
|
unique: "unique";
|
|
72
|
-
limit: "limit";
|
|
73
73
|
verify: "verify";
|
|
74
74
|
}>;
|
|
75
75
|
maxRoles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -0,0 +1,153 @@
|
|
|
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], RssFeedRelations>>;
|
|
6
|
+
export type RssFeedRelations = 'db' | 'rssFeed' | 'rfCustomMessage' | 'rfMessageEmbed';
|
|
7
|
+
export declare const RssFeedZod: {
|
|
8
|
+
readonly RssFeedSchema: z.ZodObject<{
|
|
9
|
+
streamerUserName: z.ZodString;
|
|
10
|
+
position: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
limitLocked: z.ZodBoolean;
|
|
13
|
+
guildId: z.ZodString;
|
|
14
|
+
usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
autoPublishIfAnnouncmentChannel: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
extraDestinations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
17
|
+
channelId: z.ZodString;
|
|
18
|
+
pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
|
|
19
|
+
types: z.ZodArray<z.ZodEnum<{
|
|
20
|
+
post: "post";
|
|
21
|
+
}>>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
inGame: z.ZodBoolean;
|
|
24
|
+
inGameTypes: z.ZodArray<z.ZodEnum<{
|
|
25
|
+
post: "post";
|
|
26
|
+
}>>;
|
|
27
|
+
inGameServerIds: z.ZodArray<z.ZodString>;
|
|
28
|
+
customMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
29
|
+
content: z.ZodNullable<z.ZodString>;
|
|
30
|
+
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
31
|
+
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
33
|
+
title: z.ZodNullable<z.ZodString>;
|
|
34
|
+
url: z.ZodNullable<z.ZodString>;
|
|
35
|
+
description: z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null>>;
|
|
36
|
+
color: z.ZodNullable<z.ZodString>;
|
|
37
|
+
footer: z.ZodNullable<z.ZodString>;
|
|
38
|
+
footerIcon: z.ZodNullable<z.ZodString>;
|
|
39
|
+
image: z.ZodNullable<z.ZodString>;
|
|
40
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
41
|
+
author: z.ZodNullable<z.ZodString>;
|
|
42
|
+
authorIcon: z.ZodNullable<z.ZodString>;
|
|
43
|
+
fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
value: z.ZodNullable<z.ZodString>;
|
|
46
|
+
inline: z.ZodNullable<z.ZodBoolean>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
url: z.ZodNullable<z.ZodString>;
|
|
52
|
+
emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
55
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
56
|
+
username: z.ZodNullable<z.ZodString>;
|
|
57
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
type: z.ZodEnum<{
|
|
60
|
+
clip: "clip";
|
|
61
|
+
clipForward: "clipForward";
|
|
62
|
+
vod: "vod";
|
|
63
|
+
kickLive: "kickLive";
|
|
64
|
+
kickOffline: "kickOffline";
|
|
65
|
+
twitchLive: "twitchLive";
|
|
66
|
+
twitchOffline: "twitchOffline";
|
|
67
|
+
rumbleLive: "rumbleLive";
|
|
68
|
+
rumbleOffline: "rumbleOffline";
|
|
69
|
+
rumbleVideo: "rumbleVideo";
|
|
70
|
+
tiktokLive: "tiktokLive";
|
|
71
|
+
tiktokOffline: "tiktokOffline";
|
|
72
|
+
tiktokVideo: "tiktokVideo";
|
|
73
|
+
youtubeLive: "youtubeLive";
|
|
74
|
+
youtubeVideo: "youtubeVideo";
|
|
75
|
+
whatnotLive: "whatnotLive";
|
|
76
|
+
whatnotOffline: "whatnotOffline";
|
|
77
|
+
clubPost: "clubPost";
|
|
78
|
+
twitterPost: "twitterPost";
|
|
79
|
+
twitterLive: "twitterLive";
|
|
80
|
+
twitterOffline: "twitterOffline";
|
|
81
|
+
rssPost: "rssPost";
|
|
82
|
+
}>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
showNotifyButton: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
|
|
87
|
+
customCoolDownBeforeNextPost: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
feedUrl: z.ZodString;
|
|
89
|
+
feedTitle: z.ZodNullable<z.ZodString>;
|
|
90
|
+
lastItemId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
lastPostAt: z.ZodNullable<z.ZodDate>;
|
|
92
|
+
failCount: z.ZodNumber;
|
|
93
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
94
|
+
failingSince: z.ZodNullable<z.ZodDate>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
readonly RFCustomMessageSchema: z.ZodObject<{
|
|
97
|
+
content: z.ZodNullable<z.ZodString>;
|
|
98
|
+
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
+
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
100
|
+
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
101
|
+
title: z.ZodNullable<z.ZodString>;
|
|
102
|
+
url: z.ZodNullable<z.ZodString>;
|
|
103
|
+
description: z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null>>;
|
|
104
|
+
color: z.ZodNullable<z.ZodString>;
|
|
105
|
+
footer: z.ZodNullable<z.ZodString>;
|
|
106
|
+
footerIcon: z.ZodNullable<z.ZodString>;
|
|
107
|
+
image: z.ZodNullable<z.ZodString>;
|
|
108
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
109
|
+
author: z.ZodNullable<z.ZodString>;
|
|
110
|
+
authorIcon: z.ZodNullable<z.ZodString>;
|
|
111
|
+
fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
value: z.ZodNullable<z.ZodString>;
|
|
114
|
+
inline: z.ZodNullable<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
118
|
+
title: z.ZodString;
|
|
119
|
+
url: z.ZodNullable<z.ZodString>;
|
|
120
|
+
emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
123
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
124
|
+
username: z.ZodNullable<z.ZodString>;
|
|
125
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>>;
|
|
127
|
+
type: z.ZodEnum<{
|
|
128
|
+
clip: "clip";
|
|
129
|
+
clipForward: "clipForward";
|
|
130
|
+
vod: "vod";
|
|
131
|
+
kickLive: "kickLive";
|
|
132
|
+
kickOffline: "kickOffline";
|
|
133
|
+
twitchLive: "twitchLive";
|
|
134
|
+
twitchOffline: "twitchOffline";
|
|
135
|
+
rumbleLive: "rumbleLive";
|
|
136
|
+
rumbleOffline: "rumbleOffline";
|
|
137
|
+
rumbleVideo: "rumbleVideo";
|
|
138
|
+
tiktokLive: "tiktokLive";
|
|
139
|
+
tiktokOffline: "tiktokOffline";
|
|
140
|
+
tiktokVideo: "tiktokVideo";
|
|
141
|
+
youtubeLive: "youtubeLive";
|
|
142
|
+
youtubeVideo: "youtubeVideo";
|
|
143
|
+
whatnotLive: "whatnotLive";
|
|
144
|
+
whatnotOffline: "whatnotOffline";
|
|
145
|
+
clubPost: "clubPost";
|
|
146
|
+
twitterPost: "twitterPost";
|
|
147
|
+
twitterLive: "twitterLive";
|
|
148
|
+
twitterOffline: "twitterOffline";
|
|
149
|
+
rssPost: "rssPost";
|
|
150
|
+
}>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
};
|
|
153
|
+
export declare const RssFeedZodPartial: PartialZodObject<typeof RssFeedZod>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RssFeedZodPartial = exports.RssFeedZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const multiDestination_1 = require("../multiDestination");
|
|
6
|
+
const inGameAlerts_1 = require("../inGameAlerts");
|
|
7
|
+
const zod_1 = require("./zod");
|
|
8
|
+
const zod_2 = require("zod");
|
|
9
|
+
const RssFeedSchema = zod_2.z.object({
|
|
10
|
+
// The normalised feed URL (phases/rss/) - the unique key with guildId, like a handle on other platforms.
|
|
11
|
+
streamerUserName: zod_2.z.string().url().max(2000),
|
|
12
|
+
// Creator order (phases/creator-order/): server-managed - stripped from every save (filters.ts *InternalKeys).
|
|
13
|
+
position: zod_2.z.number().int().nullable(),
|
|
14
|
+
createdAt: zod_2.z.coerce.date(),
|
|
15
|
+
limitLocked: zod_2.z.boolean(),
|
|
16
|
+
guildId: zod_1.SnowFlake,
|
|
17
|
+
usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
|
|
18
|
+
autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
|
|
19
|
+
// Premium Plus (`MultiDestination`): up to 2 extra channels, each with its own ping role and post types.
|
|
20
|
+
extraDestinations: zod_1.CentralZod.ExtraDestinations(multiDestination_1.DESTINATION_TYPES.rss).nullable(),
|
|
21
|
+
// Minecraft (phases/in-game/ P3). The creator routes refuse these without the `inGame` flag.
|
|
22
|
+
inGame: zod_2.z.boolean(),
|
|
23
|
+
inGameTypes: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.enum(inGameAlerts_1.IN_GAME_TYPES.rss))),
|
|
24
|
+
inGameServerIds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string().uuid())).max(inGameAlerts_1.MAX_IN_GAME_SERVER_PICKS),
|
|
25
|
+
customMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => RFCustomMessageSchema)), ['type']),
|
|
26
|
+
notificationChannelId: zod_1.SnowFlake.nullable(),
|
|
27
|
+
showNotifyButton: zod_2.z.boolean().nullable(),
|
|
28
|
+
pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
29
|
+
customCoolDownBeforeNextPost: zod_2.z.number().min(0).max(360).nullable(),
|
|
30
|
+
// The fetchable URL, case kept (streamerUserName is the lower-cased key). Set on add, never by a save.
|
|
31
|
+
feedUrl: zod_2.z.string().url().max(2000),
|
|
32
|
+
// Feed state (phases/rss/): written by the poller, stripped from every save like the other internals.
|
|
33
|
+
feedTitle: zod_2.z.string().max(300).nullable(),
|
|
34
|
+
lastItemId: zod_2.z.string().nullable(),
|
|
35
|
+
lastPostAt: zod_2.z.date().nullable(),
|
|
36
|
+
failCount: zod_2.z.number().int(),
|
|
37
|
+
lastError: zod_2.z.string().nullable(),
|
|
38
|
+
failingSince: zod_2.z.date().nullable(),
|
|
39
|
+
});
|
|
40
|
+
const RFCustomMessageSchema = zod_2.z.object({
|
|
41
|
+
type: schema_zod_1.StreamerMessageTypeEnum,
|
|
42
|
+
...zod_1.CentralZod.Message(),
|
|
43
|
+
});
|
|
44
|
+
exports.RssFeedZod = {
|
|
45
|
+
RssFeedSchema,
|
|
46
|
+
RFCustomMessageSchema,
|
|
47
|
+
};
|
|
48
|
+
exports.RssFeedZodPartial = Object.fromEntries(Object.entries(exports.RssFeedZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|
|
@@ -88,6 +88,7 @@ export declare const RumbleStreamerZod: {
|
|
|
88
88
|
twitterPost: "twitterPost";
|
|
89
89
|
twitterLive: "twitterLive";
|
|
90
90
|
twitterOffline: "twitterOffline";
|
|
91
|
+
rssPost: "rssPost";
|
|
91
92
|
}>;
|
|
92
93
|
}, z.core.$strip>>>;
|
|
93
94
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -173,6 +174,7 @@ export declare const RumbleStreamerZod: {
|
|
|
173
174
|
twitterPost: "twitterPost";
|
|
174
175
|
twitterLive: "twitterLive";
|
|
175
176
|
twitterOffline: "twitterOffline";
|
|
177
|
+
rssPost: "rssPost";
|
|
176
178
|
}>;
|
|
177
179
|
}, z.core.$strip>;
|
|
178
180
|
readonly RSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -42,6 +42,7 @@ export declare const StreamerMessageTypeEnum: z.ZodEnum<{
|
|
|
42
42
|
twitterPost: "twitterPost";
|
|
43
43
|
twitterLive: "twitterLive";
|
|
44
44
|
twitterOffline: "twitterOffline";
|
|
45
|
+
rssPost: "rssPost";
|
|
45
46
|
}>;
|
|
46
47
|
export declare const GuildMessageTypeEnum: z.ZodEnum<{
|
|
47
48
|
birthday: "birthday";
|
|
@@ -77,6 +78,7 @@ export declare const GuildMessageTypeEnum: z.ZodEnum<{
|
|
|
77
78
|
twitterPost: "twitterPost";
|
|
78
79
|
twitterLive: "twitterLive";
|
|
79
80
|
twitterOffline: "twitterOffline";
|
|
81
|
+
rssPost: "rssPost";
|
|
80
82
|
}>;
|
|
81
83
|
export declare const GuildSingleMessageTypeEnum: z.ZodEnum<{
|
|
82
84
|
autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -106,6 +108,7 @@ export declare const PlatformEnum: z.ZodEnum<{
|
|
|
106
108
|
whatnot: "whatnot";
|
|
107
109
|
club: "club";
|
|
108
110
|
twitter: "twitter";
|
|
111
|
+
rss: "rss";
|
|
109
112
|
}>;
|
|
110
113
|
export declare const ClipForwardPlatformEnum: z.ZodEnum<{
|
|
111
114
|
kick: "kick";
|
|
@@ -202,9 +205,9 @@ export declare const GameDeliveryEnum: z.ZodEnum<{
|
|
|
202
205
|
instant: "instant";
|
|
203
206
|
}>;
|
|
204
207
|
export declare const NotificationDeliveryEnum: z.ZodEnum<{
|
|
208
|
+
scheduled: "scheduled";
|
|
205
209
|
instant: "instant";
|
|
206
210
|
window: "window";
|
|
207
|
-
scheduled: "scheduled";
|
|
208
211
|
}>;
|
|
209
212
|
export declare const GameRobloxKindEnum: z.ZodEnum<{
|
|
210
213
|
updates: "updates";
|
|
@@ -94,6 +94,7 @@ exports.StreamerMessageTypeEnum = zod_1.z.enum([
|
|
|
94
94
|
'twitterPost',
|
|
95
95
|
'twitterLive',
|
|
96
96
|
'twitterOffline',
|
|
97
|
+
'rssPost',
|
|
97
98
|
]);
|
|
98
99
|
exports.GuildMessageTypeEnum = zod_1.z.enum([
|
|
99
100
|
'giveawayRerolled',
|
|
@@ -129,6 +130,7 @@ exports.GuildMessageTypeEnum = zod_1.z.enum([
|
|
|
129
130
|
'twitterPost',
|
|
130
131
|
'twitterLive',
|
|
131
132
|
'twitterOffline',
|
|
133
|
+
'rssPost',
|
|
132
134
|
]);
|
|
133
135
|
exports.GuildSingleMessageTypeEnum = zod_1.z.enum([
|
|
134
136
|
'autoLiveRoleAdded',
|
|
@@ -158,6 +160,7 @@ exports.PlatformEnum = zod_1.z.enum([
|
|
|
158
160
|
'whatnot',
|
|
159
161
|
'club',
|
|
160
162
|
'twitter',
|
|
163
|
+
'rss',
|
|
161
164
|
]);
|
|
162
165
|
// Clip forwarding is only offered for Kick and Twitch — keep the enum (and the dashboard's platform
|
|
163
166
|
// list) restricted to those, not the full PlatformEnum.
|
|
@@ -83,6 +83,7 @@ export declare const TiktokStreamerZod: {
|
|
|
83
83
|
twitterPost: "twitterPost";
|
|
84
84
|
twitterLive: "twitterLive";
|
|
85
85
|
twitterOffline: "twitterOffline";
|
|
86
|
+
rssPost: "rssPost";
|
|
86
87
|
}>;
|
|
87
88
|
}, z.core.$strip>>>;
|
|
88
89
|
liveNotificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -164,6 +165,7 @@ export declare const TiktokStreamerZod: {
|
|
|
164
165
|
twitterPost: "twitterPost";
|
|
165
166
|
twitterLive: "twitterLive";
|
|
166
167
|
twitterOffline: "twitterOffline";
|
|
168
|
+
rssPost: "rssPost";
|
|
167
169
|
}>;
|
|
168
170
|
}, z.core.$strip>;
|
|
169
171
|
readonly TTSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -84,6 +84,7 @@ export declare const TwitchStreamerZod: {
|
|
|
84
84
|
twitterPost: "twitterPost";
|
|
85
85
|
twitterLive: "twitterLive";
|
|
86
86
|
twitterOffline: "twitterOffline";
|
|
87
|
+
rssPost: "rssPost";
|
|
87
88
|
}>;
|
|
88
89
|
}, z.core.$strip>>>;
|
|
89
90
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -164,6 +165,7 @@ export declare const TwitchStreamerZod: {
|
|
|
164
165
|
twitterPost: "twitterPost";
|
|
165
166
|
twitterLive: "twitterLive";
|
|
166
167
|
twitterOffline: "twitterOffline";
|
|
168
|
+
rssPost: "rssPost";
|
|
167
169
|
}>;
|
|
168
170
|
}, z.core.$strip>;
|
|
169
171
|
readonly TSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -82,6 +82,7 @@ export declare const TwitterStreamerZod: {
|
|
|
82
82
|
twitterPost: "twitterPost";
|
|
83
83
|
twitterLive: "twitterLive";
|
|
84
84
|
twitterOffline: "twitterOffline";
|
|
85
|
+
rssPost: "rssPost";
|
|
85
86
|
}>;
|
|
86
87
|
}, z.core.$strip>>>;
|
|
87
88
|
postNotificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -169,6 +170,7 @@ export declare const TwitterStreamerZod: {
|
|
|
169
170
|
twitterPost: "twitterPost";
|
|
170
171
|
twitterLive: "twitterLive";
|
|
171
172
|
twitterOffline: "twitterOffline";
|
|
173
|
+
rssPost: "rssPost";
|
|
172
174
|
}>;
|
|
173
175
|
}, z.core.$strip>;
|
|
174
176
|
readonly TWSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -68,6 +68,7 @@ export declare const WhatnotStreamerZod: {
|
|
|
68
68
|
twitterPost: "twitterPost";
|
|
69
69
|
twitterLive: "twitterLive";
|
|
70
70
|
twitterOffline: "twitterOffline";
|
|
71
|
+
rssPost: "rssPost";
|
|
71
72
|
}>;
|
|
72
73
|
}, z.core.$strip>>>;
|
|
73
74
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -140,6 +141,7 @@ export declare const WhatnotStreamerZod: {
|
|
|
140
141
|
twitterPost: "twitterPost";
|
|
141
142
|
twitterLive: "twitterLive";
|
|
142
143
|
twitterOffline: "twitterOffline";
|
|
144
|
+
rssPost: "rssPost";
|
|
143
145
|
}>;
|
|
144
146
|
}, z.core.$strip>;
|
|
145
147
|
readonly WSStatsChannelIdSchema: z.ZodObject<{
|
|
@@ -85,6 +85,7 @@ export declare const YoutubeStreamerZod: {
|
|
|
85
85
|
twitterPost: "twitterPost";
|
|
86
86
|
twitterLive: "twitterLive";
|
|
87
87
|
twitterOffline: "twitterOffline";
|
|
88
|
+
rssPost: "rssPost";
|
|
88
89
|
}>;
|
|
89
90
|
}, z.core.$strip>>>;
|
|
90
91
|
liveNotificationChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -170,6 +171,7 @@ export declare const YoutubeStreamerZod: {
|
|
|
170
171
|
twitterPost: "twitterPost";
|
|
171
172
|
twitterLive: "twitterLive";
|
|
172
173
|
twitterOffline: "twitterOffline";
|
|
174
|
+
rssPost: "rssPost";
|
|
173
175
|
}>;
|
|
174
176
|
}, z.core.$strip>;
|
|
175
177
|
readonly YTSStatsChannelIdSchema: z.ZodObject<{
|
package/dist/other/zod/zod.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { TwitchStreamerRelations } from './twitchStreamer.zod';
|
|
|
3
3
|
import { TiktokStreamerRelations } from './tiktokStreamer.zod';
|
|
4
4
|
import { RumbleStreamerRelations } from './rumbleStreamer.zod';
|
|
5
5
|
import { ClubStreamerRelations } from './clubStreamer.zod';
|
|
6
|
+
import { RssFeedRelations } from './rssFeed.zod';
|
|
6
7
|
import { KickStreamerRelations } from './kickStreamer.zod';
|
|
7
8
|
import { GuildStarboardRelations } from './starboard.zod';
|
|
8
9
|
import { R2StorageRelations } from './r2Storage.zod';
|
|
@@ -22,6 +23,7 @@ export type ZodRelations = {
|
|
|
22
23
|
kickStreamer: KickStreamerRelations;
|
|
23
24
|
rumbleStreamer: RumbleStreamerRelations;
|
|
24
25
|
clubStreamer: ClubStreamerRelations;
|
|
26
|
+
rssFeed: RssFeedRelations;
|
|
25
27
|
tiktokStreamer: TiktokStreamerRelations;
|
|
26
28
|
twitchStreamer: TwitchStreamerRelations;
|
|
27
29
|
youtubeStreamer: YoutubeStreamerRelations;
|