@notidotbot/noti-api-client 1.9.99 → 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.
Files changed (51) hide show
  1. package/dist/classes/@me.d.ts +46 -0
  2. package/dist/classes/@me.js +20 -0
  3. package/dist/classes/admin.d.ts +1 -1
  4. package/dist/classes/client.d.ts +1 -1
  5. package/dist/classes/guildPlatform.d.ts +9 -2
  6. package/dist/classes/guildPlatformAction.d.ts +2 -2
  7. package/dist/classes/guildRolePanel.d.ts +12 -12
  8. package/dist/classes/guildStarboard.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/other/bitfields.d.ts +10 -4
  11. package/dist/other/bitfields.js +4 -0
  12. package/dist/other/enums.d.ts +6 -0
  13. package/dist/other/enums.js +3 -0
  14. package/dist/other/features.d.ts +1 -1
  15. package/dist/other/features.js +3 -0
  16. package/dist/other/inGameAlerts.d.ts +1 -0
  17. package/dist/other/inGameAlerts.js +1 -0
  18. package/dist/other/multiDestination.d.ts +1 -0
  19. package/dist/other/multiDestination.js +1 -0
  20. package/dist/other/prisma.d.ts +4 -0
  21. package/dist/other/templates.d.ts +82 -0
  22. package/dist/other/templates.js +72 -0
  23. package/dist/other/types.d.ts +3 -0
  24. package/dist/other/zod/client.zod.d.ts +2 -0
  25. package/dist/other/zod/clipForward.zod.d.ts +3 -0
  26. package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
  27. package/dist/other/zod/drops.zod.d.ts +1 -0
  28. package/dist/other/zod/gameConfig.zod.d.ts +1 -1
  29. package/dist/other/zod/guild.zod.d.ts +6 -0
  30. package/dist/other/zod/kickStreamer.zod.d.ts +4 -0
  31. package/dist/other/zod/kickStreamer.zod.js +2 -0
  32. package/dist/other/zod/rolePanels.zod.d.ts +2 -2
  33. package/dist/other/zod/rssFeed.zod.d.ts +153 -0
  34. package/dist/other/zod/rssFeed.zod.js +48 -0
  35. package/dist/other/zod/rumbleStreamer.zod.d.ts +4 -0
  36. package/dist/other/zod/rumbleStreamer.zod.js +2 -0
  37. package/dist/other/zod/schema.zod.d.ts +4 -1
  38. package/dist/other/zod/schema.zod.js +3 -0
  39. package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
  40. package/dist/other/zod/twitchStreamer.zod.d.ts +4 -0
  41. package/dist/other/zod/twitchStreamer.zod.js +2 -0
  42. package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
  43. package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
  44. package/dist/other/zod/youtubeStreamer.zod.d.ts +4 -0
  45. package/dist/other/zod/youtubeStreamer.zod.js +2 -0
  46. package/dist/other/zod/zod.d.ts +2 -0
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +1 -1
  49. package/prisma/generated/ts-prisma.d.ts +2956 -0
  50. package/prisma/schema/models/rssFeed.prisma +131 -0
  51. package/prisma/schema/schema.prisma +3 -0
@@ -338,6 +338,20 @@ exports.placeholders = {
338
338
  'randomMessage': 'Example Message',
339
339
  'member': '<@123456789>',
340
340
  },
341
+ // RSS feeds: {creatorName} is the feed's title, {platform} the site's domain.
342
+ rss: {
343
+ 'platform': 'example.com',
344
+ 'postUrl': 'https://example.com/post',
345
+ 'creatorName': 'Example Blog',
346
+ 'postTitle': 'Example post title',
347
+ 'postAuthor': 'Example Author',
348
+ 'pingRole': '<@&123456789>',
349
+ 'postText': 'Example post summary',
350
+ 'thumbnail': 'https://example.com',
351
+ 'publishDate': '<t:1640995200:R>',
352
+ 'randomMessage': 'Example Message',
353
+ 'member': '<@123456789>',
354
+ },
341
355
  },
342
356
  birthday: {
343
357
  'username': 'Example',
@@ -468,6 +482,47 @@ exports.placeholders = {
468
482
  'randomMessage': 'Example Message',
469
483
  },
470
484
  },
485
+ // Scheduled-stream posts (phases/scheduled-streams/): {startsAt} is the full date, {startTime} the countdown.
486
+ scheduled: {
487
+ kick: {
488
+ 'platform': 'Kick',
489
+ 'liveUrl': 'https://example.com',
490
+ 'streamerName': 'Example',
491
+ 'streamTitle': 'Example Stream Title',
492
+ 'startsAt': '<t:1640995200:F>',
493
+ 'startTime': '<t:1640995200:R>',
494
+ 'pingRole': '<@&123456789>',
495
+ },
496
+ twitch: {
497
+ 'platform': 'Twitch',
498
+ 'liveUrl': 'https://example.com',
499
+ 'streamerName': 'Example',
500
+ 'streamTitle': 'Example Stream Title',
501
+ 'category': 'Example Category',
502
+ 'startsAt': '<t:1640995200:F>',
503
+ 'startTime': '<t:1640995200:R>',
504
+ 'pingRole': '<@&123456789>',
505
+ },
506
+ rumble: {
507
+ 'platform': 'Rumble',
508
+ 'liveUrl': 'https://example.com',
509
+ 'streamerName': 'Example',
510
+ 'streamTitle': 'Example Stream Title',
511
+ 'streamThumbnail': 'https://example.com',
512
+ 'startsAt': '<t:1640995200:F>',
513
+ 'startTime': '<t:1640995200:R>',
514
+ 'pingRole': '<@&123456789>',
515
+ },
516
+ youtube: {
517
+ 'platform': 'YouTube',
518
+ 'liveUrl': 'https://example.com',
519
+ 'streamerName': 'Example',
520
+ 'streamTitle': 'Example Stream Title',
521
+ 'startsAt': '<t:1640995200:F>',
522
+ 'startTime': '<t:1640995200:R>',
523
+ 'pingRole': '<@&123456789>',
524
+ },
525
+ },
471
526
  // Claim to win (phases/giveaway-claims/). Not editable in v1 - there is no message-editor surface for it.
472
527
  giveawayClaim: {
473
528
  'name': 'Example Giveaway',
@@ -1119,6 +1174,23 @@ exports.messages = {
1119
1174
  },
1120
1175
  buttons: exports.buttons.post,
1121
1176
  },
1177
+ // RSS feeds: the item title is the embed title, the feed is the author line. RSS orange.
1178
+ rss: {
1179
+ content: '{pingRole} {randomMessage}',
1180
+ embed: {
1181
+ author: { name: '{creatorName}', url: '{postUrl}' },
1182
+ title: '{postTitle}',
1183
+ url: '{postUrl}',
1184
+ description: '{postText}',
1185
+ color: 0xf26522,
1186
+ image: { url: '{thumbnail}' },
1187
+ footer: {
1188
+ text: 'Powered by Noti.',
1189
+ icon_url: 'https://noti.bot/logo.png',
1190
+ },
1191
+ },
1192
+ buttons: exports.buttons.post,
1193
+ },
1122
1194
  },
1123
1195
  birthday: {
1124
1196
  content: '{userMention}',
@@ -38,6 +38,9 @@ export type GuildPlanType = {
38
38
  defaultTiktokConnections: number | null;
39
39
  defaultWhatnotConnections: number | null;
40
40
  defaultClubConnections: number | null;
41
+ defaultRssConnections: number | null;
42
+ /** RSS check speed in minutes (15 / 10 / 5). */
43
+ rssPollMinutes: number | null;
41
44
  defaultTwitterConnections: number | null;
42
45
  defaultGameConnections: number | null;
43
46
  defaultRobloxConnections: number | null;
@@ -56,6 +56,7 @@ export declare const ClientZod: {
56
56
  whatnot: "whatnot";
57
57
  club: "club";
58
58
  twitter: "twitter";
59
+ rss: "rss";
59
60
  }>;
60
61
  }, z.core.$strip>>>;
61
62
  twitchCredentials: z.ZodNullable<z.ZodLazy<z.ZodObject<{
@@ -117,6 +118,7 @@ export declare const ClientZod: {
117
118
  whatnot: "whatnot";
118
119
  club: "club";
119
120
  twitter: "twitter";
121
+ rss: "rss";
120
122
  }>;
121
123
  }, z.core.$strip>;
122
124
  };
@@ -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
  };
@@ -29,6 +29,7 @@ export declare const DropsZod: {
29
29
  whatnot: "whatnot";
30
30
  club: "club";
31
31
  twitter: "twitter";
32
+ rss: "rss";
32
33
  }>;
33
34
  channelId: z.ZodNullable<z.ZodString>;
34
35
  messageId: z.ZodNullable<z.ZodString>;
@@ -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>;
@@ -110,6 +111,8 @@ export declare const KickStreamerZod: {
110
111
  overall: "overall";
111
112
  }>>;
112
113
  pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
114
+ scheduledChannelId: z.ZodNullable<z.ZodString>;
115
+ scheduledPingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
113
116
  enableVodDownloading: z.ZodNullable<z.ZodBoolean>;
114
117
  enableVodNotifications: z.ZodNullable<z.ZodBoolean>;
115
118
  customCoolDownBeforeNextLive: z.ZodNullable<z.ZodNumber>;
@@ -212,6 +215,7 @@ export declare const KickStreamerZod: {
212
215
  twitterPost: "twitterPost";
213
216
  twitterLive: "twitterLive";
214
217
  twitterOffline: "twitterOffline";
218
+ rssPost: "rssPost";
215
219
  }>;
216
220
  }, z.core.$strip>;
217
221
  readonly KSRoleWithUsersSchema: z.ZodObject<{
@@ -45,6 +45,8 @@ const KickStreamerSchema = zod_2.z.object({
45
45
  leaderBoardMessageId: zod_2.z.string().nullable(),
46
46
  leaderBoardTypes: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.LeaderBoardTypesEnum), ['type']),
47
47
  pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
48
+ scheduledChannelId: zod_1.SnowFlake.nullable(),
49
+ scheduledPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
48
50
  enableVodDownloading: zod_2.z.boolean().nullable(),
49
51
  enableVodNotifications: zod_2.z.boolean().nullable(),
50
52
  customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
@@ -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,12 +88,15 @@ 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>;
94
95
  videoNotificationChannelId: z.ZodNullable<z.ZodString>;
95
96
  showNotifyButton: z.ZodNullable<z.ZodBoolean>;
96
97
  pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
98
+ scheduledChannelId: z.ZodNullable<z.ZodString>;
99
+ scheduledPingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
97
100
  videoRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
98
101
  customCoolDownBeforeNextLive: z.ZodNullable<z.ZodNumber>;
99
102
  offlineGracePeriod: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<number>, z.ZodLiteral<number>, ...z.ZodLiteral<number>[]]>>;
@@ -171,6 +174,7 @@ export declare const RumbleStreamerZod: {
171
174
  twitterPost: "twitterPost";
172
175
  twitterLive: "twitterLive";
173
176
  twitterOffline: "twitterOffline";
177
+ rssPost: "rssPost";
174
178
  }>;
175
179
  }, z.core.$strip>;
176
180
  readonly RSStatsChannelIdSchema: z.ZodObject<{
@@ -38,6 +38,8 @@ const RumbleStreamerSchema = zod_2.z.object({
38
38
  videoNotificationChannelId: zod_1.SnowFlake.nullable(),
39
39
  showNotifyButton: zod_2.z.boolean().nullable(),
40
40
  pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
41
+ scheduledChannelId: zod_1.SnowFlake.nullable(),
42
+ scheduledPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
41
43
  videoRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
42
44
  customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
43
45
  // Hold an offline this long in case they reconnect, in minutes. `null` resolves to
@@ -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,11 +84,14 @@ 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>;
90
91
  showNotifyButton: z.ZodNullable<z.ZodBoolean>;
91
92
  pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
93
+ scheduledChannelId: z.ZodNullable<z.ZodString>;
94
+ scheduledPingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
92
95
  customCoolDownBeforeNextLive: z.ZodNullable<z.ZodNumber>;
93
96
  offlineGracePeriod: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<number>, z.ZodLiteral<number>, ...z.ZodLiteral<number>[]]>>;
94
97
  liveRoleId: z.ZodNullable<z.ZodString>;
@@ -162,6 +165,7 @@ export declare const TwitchStreamerZod: {
162
165
  twitterPost: "twitterPost";
163
166
  twitterLive: "twitterLive";
164
167
  twitterOffline: "twitterOffline";
168
+ rssPost: "rssPost";
165
169
  }>;
166
170
  }, z.core.$strip>;
167
171
  readonly TSStatsChannelIdSchema: z.ZodObject<{
@@ -38,6 +38,8 @@ const TwitchStreamerSchema = zod_2.z.object({
38
38
  notificationChannelId: zod_1.SnowFlake.nullable(),
39
39
  showNotifyButton: zod_2.z.boolean().nullable(),
40
40
  pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
41
+ scheduledChannelId: zod_1.SnowFlake.nullable(),
42
+ scheduledPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
41
43
  customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
42
44
  // Hold an offline this long in case they reconnect, in minutes. `null` resolves to
43
45
  // OFFLINE_GRACE_DEFAULT. A literal union, not min/max: it is a dropdown.
@@ -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<{