@notidotbot/noti-api-client 1.9.119 → 1.9.120

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 (52) hide show
  1. package/dist/classes/admin.d.ts +2 -2
  2. package/dist/classes/admin.js +1 -1
  3. package/dist/classes/client.d.ts +2 -2
  4. package/dist/classes/guildClipForward.d.ts +18 -18
  5. package/dist/classes/guildPlatform.d.ts +3 -2
  6. package/dist/classes/guildPlatformAction.d.ts +2 -2
  7. package/dist/classes/guildRolePanel.d.ts +14 -14
  8. package/dist/classes/guildStarboard.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/modules/stripe.js +1 -0
  11. package/dist/other/bitfields.d.ts +5 -2
  12. package/dist/other/bitfields.js +2 -0
  13. package/dist/other/enums.d.ts +6 -0
  14. package/dist/other/enums.js +3 -0
  15. package/dist/other/features.d.ts +1 -1
  16. package/dist/other/features.js +1 -0
  17. package/dist/other/inGameAlerts.d.ts +1 -0
  18. package/dist/other/inGameAlerts.js +1 -0
  19. package/dist/other/multiDestination.d.ts +1 -0
  20. package/dist/other/multiDestination.js +1 -0
  21. package/dist/other/prisma.d.ts +4 -0
  22. package/dist/other/templates.d.ts +43 -0
  23. package/dist/other/templates.js +33 -0
  24. package/dist/other/types.d.ts +2 -0
  25. package/dist/other/zod/client.zod.d.ts +2 -0
  26. package/dist/other/zod/clipForward.zod.d.ts +3 -0
  27. package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
  28. package/dist/other/zod/drops.zod.d.ts +1 -0
  29. package/dist/other/zod/gameConfig.zod.d.ts +9 -9
  30. package/dist/other/zod/guild.zod.d.ts +8 -0
  31. package/dist/other/zod/guild.zod.js +1 -0
  32. package/dist/other/zod/instagramStreamer.zod.d.ts +152 -0
  33. package/dist/other/zod/instagramStreamer.zod.js +44 -0
  34. package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
  35. package/dist/other/zod/rolePanels.zod.d.ts +2 -2
  36. package/dist/other/zod/rssFeed.zod.d.ts +2 -0
  37. package/dist/other/zod/rumbleStreamer.zod.d.ts +3 -1
  38. package/dist/other/zod/scheduledMessage.zod.d.ts +4 -4
  39. package/dist/other/zod/schema.zod.d.ts +8 -5
  40. package/dist/other/zod/schema.zod.js +3 -0
  41. package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
  42. package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
  43. package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
  44. package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
  45. package/dist/other/zod/youtubeStreamer.zod.d.ts +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/guild.prisma +2 -0
  51. package/prisma/schema/models/instagramStreamer.prisma +123 -0
  52. package/prisma/schema/schema.prisma +3 -0
@@ -355,6 +355,22 @@ exports.placeholders = {
355
355
  'randomMessage': 'Example Message',
356
356
  'member': '<@123456789>',
357
357
  },
358
+ // Instagram: like X, the default message is the bare post link ({defaultPostUrl}) so Discord unfurls it; empty
359
+ // once the server has edited an embed.
360
+ instagram: {
361
+ 'platform': 'Instagram',
362
+ 'postUrl': 'https://www.instagram.com/p/Example/',
363
+ 'defaultPostUrl': 'https://www.instagram.com/p/Example/',
364
+ 'creatorName': 'example',
365
+ 'creatorAvatar': 'https://example.com',
366
+ 'postType': 'Post',
367
+ 'pingRole': '<@&123456789>',
368
+ 'postText': 'Example caption',
369
+ 'thumbnail': 'https://example.com',
370
+ 'publishDate': '<t:1640995200:R>',
371
+ 'randomMessage': 'Example Message',
372
+ 'member': '<@123456789>',
373
+ },
358
374
  },
359
375
  birthday: {
360
376
  'username': 'Example',
@@ -1201,6 +1217,23 @@ exports.messages = {
1201
1217
  },
1202
1218
  buttons: exports.buttons.post,
1203
1219
  },
1220
+ // Instagram: X's shape - the bare post link, no embed unless the server edited one. The embed is the editor's
1221
+ // starting shape. Instagram pink.
1222
+ instagram: {
1223
+ content: '{pingRole} {randomMessage}\n\n{defaultPostUrl}',
1224
+ embed: {
1225
+ author: { name: '@{creatorName} posted on Instagram', url: '{postUrl}', icon_url: '{creatorAvatar}' },
1226
+ url: '{postUrl}',
1227
+ description: '{postText}',
1228
+ color: 0xe1306c,
1229
+ image: { url: '{thumbnail}' },
1230
+ footer: {
1231
+ text: 'Powered by Noti.',
1232
+ icon_url: 'https://noti.bot/logo.png',
1233
+ },
1234
+ },
1235
+ buttons: exports.buttons.post,
1236
+ },
1204
1237
  },
1205
1238
  birthday: {
1206
1239
  content: '{userMention}',
@@ -41,6 +41,8 @@ export type GuildPlanType = {
41
41
  defaultRssConnections: number | null;
42
42
  /** RSS check speed in minutes (15 / 10 / 5). */
43
43
  rssPollMinutes: number | null;
44
+ /** Instagram creators: 0 / 2 / 5 - paid only, plus the additionalInstagramConnections add-on. */
45
+ defaultInstagramConnections: number | null;
44
46
  /** Hours between Kick badge rechecks: 0 (free, none) / 6 (Premium) / 2 (Premium Plus). */
45
47
  kickBadgeRecheckHours: number | null;
46
48
  defaultTwitterConnections: number | null;
@@ -57,6 +57,7 @@ export declare const ClientZod: {
57
57
  club: "club";
58
58
  twitter: "twitter";
59
59
  rss: "rss";
60
+ instagram: "instagram";
60
61
  }>;
61
62
  }, z.core.$strip>>>;
62
63
  twitchCredentials: z.ZodNullable<z.ZodLazy<z.ZodObject<{
@@ -119,6 +120,7 @@ export declare const ClientZod: {
119
120
  club: "club";
120
121
  twitter: "twitter";
121
122
  rss: "rss";
123
+ instagram: "instagram";
122
124
  }>;
123
125
  }, z.core.$strip>;
124
126
  };
@@ -80,6 +80,7 @@ export declare const GuildClipForwardZod: {
80
80
  twitterLive: "twitterLive";
81
81
  twitterOffline: "twitterOffline";
82
82
  rssPost: "rssPost";
83
+ instagramPost: "instagramPost";
83
84
  }>;
84
85
  }, z.core.$strip>>>;
85
86
  lastClipAt: z.ZodNullable<z.ZodDate>;
@@ -160,6 +161,7 @@ export declare const GuildClipForwardZod: {
160
161
  twitterLive: "twitterLive";
161
162
  twitterOffline: "twitterOffline";
162
163
  rssPost: "rssPost";
164
+ instagramPost: "instagramPost";
163
165
  }>;
164
166
  }, z.core.$strip>>>>;
165
167
  lastClipAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -219,6 +221,7 @@ export declare const GuildClipForwardZod: {
219
221
  twitterLive: "twitterLive";
220
222
  twitterOffline: "twitterOffline";
221
223
  rssPost: "rssPost";
224
+ instagramPost: "instagramPost";
222
225
  }>;
223
226
  }, z.core.$strip>;
224
227
  };
@@ -79,6 +79,7 @@ export declare const ClubStreamerZod: {
79
79
  twitterLive: "twitterLive";
80
80
  twitterOffline: "twitterOffline";
81
81
  rssPost: "rssPost";
82
+ instagramPost: "instagramPost";
82
83
  }>;
83
84
  }, z.core.$strip>>>;
84
85
  notificationChannelId: z.ZodNullable<z.ZodString>;
@@ -142,6 +143,7 @@ export declare const ClubStreamerZod: {
142
143
  twitterLive: "twitterLive";
143
144
  twitterOffline: "twitterOffline";
144
145
  rssPost: "rssPost";
146
+ instagramPost: "instagramPost";
145
147
  }>;
146
148
  }, z.core.$strip>;
147
149
  };
@@ -30,6 +30,7 @@ export declare const DropsZod: {
30
30
  club: "club";
31
31
  twitter: "twitter";
32
32
  rss: "rss";
33
+ instagram: "instagram";
33
34
  }>;
34
35
  channelId: z.ZodNullable<z.ZodString>;
35
36
  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";
15
14
  instant: "instant";
16
15
  window: "window";
16
+ scheduled: "scheduled";
17
17
  }>;
18
18
  windowStartHour: z.ZodNullable<z.ZodNumber>;
19
19
  windowEndHour: z.ZodNullable<z.ZodNumber>;
@@ -22,35 +22,35 @@ export declare const GameConfigZod: {
22
22
  freeGamesEnabled: z.ZodBoolean;
23
23
  freeDlcEnabled: z.ZodBoolean;
24
24
  freeDlcStores: z.ZodArray<z.ZodEnum<{
25
- epic: "epic";
26
25
  steam: "steam";
26
+ epic: "epic";
27
27
  gog: "gog";
28
28
  prime: "prime";
29
29
  }>>;
30
30
  freeGameStores: z.ZodArray<z.ZodEnum<{
31
- epic: "epic";
32
31
  steam: "steam";
32
+ epic: "epic";
33
33
  gog: "gog";
34
34
  prime: "prime";
35
35
  }>>;
36
36
  upcomingFreeEnabled: z.ZodBoolean;
37
37
  upcomingFreeStores: z.ZodArray<z.ZodEnum<{
38
- epic: "epic";
39
38
  steam: "steam";
39
+ epic: "epic";
40
40
  gog: "gog";
41
41
  prime: "prime";
42
42
  }>>;
43
43
  freeWeekendEnabled: z.ZodBoolean;
44
44
  freeWeekendStores: z.ZodArray<z.ZodEnum<{
45
- epic: "epic";
46
45
  steam: "steam";
46
+ epic: "epic";
47
47
  gog: "gog";
48
48
  prime: "prime";
49
49
  }>>;
50
50
  discountsEnabled: z.ZodBoolean;
51
51
  discountStores: z.ZodArray<z.ZodEnum<{
52
- epic: "epic";
53
52
  steam: "steam";
53
+ epic: "epic";
54
54
  gog: "gog";
55
55
  prime: "prime";
56
56
  }>>;
@@ -61,8 +61,8 @@ export declare const GameConfigZod: {
61
61
  studios: z.ZodArray<z.ZodString>;
62
62
  allTimeLowEnabled: z.ZodBoolean;
63
63
  allTimeLowStores: z.ZodArray<z.ZodEnum<{
64
- epic: "epic";
65
64
  steam: "steam";
65
+ epic: "epic";
66
66
  gog: "gog";
67
67
  prime: "prime";
68
68
  }>>;
@@ -85,8 +85,8 @@ export declare const GameConfigZod: {
85
85
  upcoming_free: "upcoming_free";
86
86
  }>>;
87
87
  stores: z.ZodArray<z.ZodEnum<{
88
- epic: "epic";
89
88
  steam: "steam";
89
+ epic: "epic";
90
90
  gog: "gog";
91
91
  prime: "prime";
92
92
  }>>;
@@ -149,8 +149,8 @@ export declare const GameConfigZod: {
149
149
  upcoming_free: "upcoming_free";
150
150
  }>>;
151
151
  stores: z.ZodArray<z.ZodEnum<{
152
- epic: "epic";
153
152
  steam: "steam";
153
+ epic: "epic";
154
154
  gog: "gog";
155
155
  prime: "prime";
156
156
  }>>;
@@ -28,6 +28,7 @@ export declare const GuildZod: {
28
28
  additionalWhatnotConnections: z.ZodNumber;
29
29
  additionalClubConnections: z.ZodNumber;
30
30
  additionalTwitterConnections: z.ZodNumber;
31
+ additionalInstagramConnections: z.ZodNumber;
31
32
  additionalKickClips: z.ZodNumber;
32
33
  additionalTwitchClips: z.ZodNumber;
33
34
  additionalStatCounters: z.ZodNumber;
@@ -148,6 +149,7 @@ export declare const GuildZod: {
148
149
  twitterLive: "twitterLive";
149
150
  twitterOffline: "twitterOffline";
150
151
  rssPost: "rssPost";
152
+ instagramPost: "instagramPost";
151
153
  }>;
152
154
  messages: z.ZodArray<z.ZodString>;
153
155
  }, z.core.$strip>>>;
@@ -196,6 +198,7 @@ export declare const GuildZod: {
196
198
  club: "club";
197
199
  twitter: "twitter";
198
200
  rss: "rss";
201
+ instagram: "instagram";
199
202
  }>>;
200
203
  applyToStreamers: z.ZodArray<z.ZodString>;
201
204
  filter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
@@ -231,6 +234,7 @@ export declare const GuildZod: {
231
234
  club: "club";
232
235
  twitter: "twitter";
233
236
  rss: "rss";
237
+ instagram: "instagram";
234
238
  }>>;
235
239
  applyToStreamers: z.ZodArray<z.ZodString>;
236
240
  applyToTypes: z.ZodArray<z.ZodEnum<{
@@ -335,6 +339,7 @@ export declare const GuildZod: {
335
339
  twitterLive: "twitterLive";
336
340
  twitterOffline: "twitterOffline";
337
341
  rssPost: "rssPost";
342
+ instagramPost: "instagramPost";
338
343
  }>;
339
344
  }, z.core.$strip>>>;
340
345
  stickyMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
@@ -406,6 +411,7 @@ export declare const GuildZod: {
406
411
  additionalWhatnotConnections: z.ZodNumber;
407
412
  additionalClubConnections: z.ZodNumber;
408
413
  additionalTwitterConnections: z.ZodNumber;
414
+ additionalInstagramConnections: z.ZodNumber;
409
415
  additionalKickClips: z.ZodNumber;
410
416
  additionalTwitchClips: z.ZodNumber;
411
417
  additionalStatCounters: z.ZodNumber;
@@ -489,6 +495,7 @@ export declare const GuildZod: {
489
495
  club: "club";
490
496
  twitter: "twitter";
491
497
  rss: "rss";
498
+ instagram: "instagram";
492
499
  }>>;
493
500
  applyToStreamers: z.ZodArray<z.ZodString>;
494
501
  applyToTypes: z.ZodArray<z.ZodEnum<{
@@ -597,6 +604,7 @@ export declare const GuildZod: {
597
604
  twitterLive: "twitterLive";
598
605
  twitterOffline: "twitterOffline";
599
606
  rssPost: "rssPost";
607
+ instagramPost: "instagramPost";
600
608
  }>;
601
609
  }, z.core.$strip>;
602
610
  readonly GuildStickyMessageSchema: z.ZodObject<{
@@ -96,6 +96,7 @@ const GuildPremiumSchema = zod_2.z.object({
96
96
  additionalWhatnotConnections: zod_2.z.number().min(0),
97
97
  additionalClubConnections: zod_2.z.number().min(0),
98
98
  additionalTwitterConnections: zod_2.z.number().min(0),
99
+ additionalInstagramConnections: zod_2.z.number().min(0),
99
100
  additionalKickClips: zod_2.z.number().min(0),
100
101
  additionalTwitchClips: zod_2.z.number().min(0),
101
102
  additionalStatCounters: zod_2.z.number().min(0),
@@ -0,0 +1,152 @@
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], InstagramStreamerRelations>>;
6
+ export type InstagramStreamerRelations = 'db' | 'instagramStreamer' | 'igsCustomMessage' | 'igsMessageEmbed';
7
+ /** An Instagram handle: what the checking service accepts (phases/instagram/). Lower-cased before it is stored. */
8
+ export declare const INSTAGRAM_HANDLE: RegExp;
9
+ export declare const InstagramStreamerZod: {
10
+ readonly InstagramStreamerSchema: z.ZodObject<{
11
+ streamerUserName: z.ZodString;
12
+ position: z.ZodNullable<z.ZodNumber>;
13
+ createdAt: z.ZodCoercedDate<unknown>;
14
+ limitLocked: z.ZodBoolean;
15
+ guildId: z.ZodString;
16
+ avatarUrl: z.ZodNullable<z.ZodString>;
17
+ usePerStreamerEmbeds: z.ZodNullable<z.ZodBoolean>;
18
+ autoPublishIfAnnouncmentChannel: z.ZodNullable<z.ZodBoolean>;
19
+ extraDestinations: z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ channelId: z.ZodString;
21
+ pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
22
+ types: z.ZodArray<z.ZodEnum<{
23
+ post: "post";
24
+ }>>;
25
+ }, z.core.$strip>>>;
26
+ inGame: z.ZodBoolean;
27
+ inGameTypes: z.ZodArray<z.ZodEnum<{
28
+ post: "post";
29
+ }>>;
30
+ inGameServerIds: z.ZodArray<z.ZodString>;
31
+ customMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
32
+ content: z.ZodNullable<z.ZodString>;
33
+ showInviteButton: z.ZodNullable<z.ZodBoolean>;
34
+ showWatchButton: z.ZodNullable<z.ZodBoolean>;
35
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
36
+ title: z.ZodNullable<z.ZodString>;
37
+ url: z.ZodNullable<z.ZodString>;
38
+ description: z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null>>;
39
+ color: z.ZodNullable<z.ZodString>;
40
+ footer: z.ZodNullable<z.ZodString>;
41
+ footerIcon: z.ZodNullable<z.ZodString>;
42
+ image: z.ZodNullable<z.ZodString>;
43
+ thumbnail: z.ZodNullable<z.ZodString>;
44
+ author: z.ZodNullable<z.ZodString>;
45
+ authorIcon: z.ZodNullable<z.ZodString>;
46
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
47
+ name: z.ZodString;
48
+ value: z.ZodNullable<z.ZodString>;
49
+ inline: z.ZodNullable<z.ZodBoolean>;
50
+ }, z.core.$strip>>>;
51
+ }, z.core.$strip>>>;
52
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
53
+ title: z.ZodString;
54
+ url: z.ZodNullable<z.ZodString>;
55
+ emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
56
+ }, z.core.$strip>>>;
57
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
58
+ enabled: z.ZodNullable<z.ZodBoolean>;
59
+ username: z.ZodNullable<z.ZodString>;
60
+ avatarUrl: z.ZodNullable<z.ZodString>;
61
+ }, z.core.$strip>>>;
62
+ type: z.ZodEnum<{
63
+ clip: "clip";
64
+ clipForward: "clipForward";
65
+ vod: "vod";
66
+ kickLive: "kickLive";
67
+ kickOffline: "kickOffline";
68
+ twitchLive: "twitchLive";
69
+ twitchOffline: "twitchOffline";
70
+ rumbleLive: "rumbleLive";
71
+ rumbleOffline: "rumbleOffline";
72
+ rumbleVideo: "rumbleVideo";
73
+ tiktokLive: "tiktokLive";
74
+ tiktokOffline: "tiktokOffline";
75
+ tiktokVideo: "tiktokVideo";
76
+ youtubeLive: "youtubeLive";
77
+ youtubeVideo: "youtubeVideo";
78
+ whatnotLive: "whatnotLive";
79
+ whatnotOffline: "whatnotOffline";
80
+ clubPost: "clubPost";
81
+ twitterPost: "twitterPost";
82
+ twitterLive: "twitterLive";
83
+ twitterOffline: "twitterOffline";
84
+ rssPost: "rssPost";
85
+ instagramPost: "instagramPost";
86
+ }>;
87
+ }, z.core.$strip>>>;
88
+ notificationChannelId: z.ZodNullable<z.ZodString>;
89
+ showNotifyButton: z.ZodNullable<z.ZodBoolean>;
90
+ pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
91
+ customCoolDownBeforeNextPost: z.ZodNullable<z.ZodNumber>;
92
+ lastPostAt: z.ZodNullable<z.ZodDate>;
93
+ }, z.core.$strip>;
94
+ readonly IGSCustomMessageSchema: z.ZodObject<{
95
+ content: z.ZodNullable<z.ZodString>;
96
+ showInviteButton: z.ZodNullable<z.ZodBoolean>;
97
+ showWatchButton: z.ZodNullable<z.ZodBoolean>;
98
+ embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
99
+ title: z.ZodNullable<z.ZodString>;
100
+ url: z.ZodNullable<z.ZodString>;
101
+ description: z.ZodPipe<z.ZodDefault<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null>>;
102
+ color: z.ZodNullable<z.ZodString>;
103
+ footer: z.ZodNullable<z.ZodString>;
104
+ footerIcon: z.ZodNullable<z.ZodString>;
105
+ image: z.ZodNullable<z.ZodString>;
106
+ thumbnail: z.ZodNullable<z.ZodString>;
107
+ author: z.ZodNullable<z.ZodString>;
108
+ authorIcon: z.ZodNullable<z.ZodString>;
109
+ fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
110
+ name: z.ZodString;
111
+ value: z.ZodNullable<z.ZodString>;
112
+ inline: z.ZodNullable<z.ZodBoolean>;
113
+ }, z.core.$strip>>>;
114
+ }, z.core.$strip>>>;
115
+ buttons: z.ZodArray<z.ZodLazy<z.ZodObject<{
116
+ title: z.ZodString;
117
+ url: z.ZodNullable<z.ZodString>;
118
+ emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
119
+ }, z.core.$strip>>>;
120
+ webhook: z.ZodNullable<z.ZodLazy<z.ZodObject<{
121
+ enabled: z.ZodNullable<z.ZodBoolean>;
122
+ username: z.ZodNullable<z.ZodString>;
123
+ avatarUrl: z.ZodNullable<z.ZodString>;
124
+ }, z.core.$strip>>>;
125
+ type: z.ZodEnum<{
126
+ clip: "clip";
127
+ clipForward: "clipForward";
128
+ vod: "vod";
129
+ kickLive: "kickLive";
130
+ kickOffline: "kickOffline";
131
+ twitchLive: "twitchLive";
132
+ twitchOffline: "twitchOffline";
133
+ rumbleLive: "rumbleLive";
134
+ rumbleOffline: "rumbleOffline";
135
+ rumbleVideo: "rumbleVideo";
136
+ tiktokLive: "tiktokLive";
137
+ tiktokOffline: "tiktokOffline";
138
+ tiktokVideo: "tiktokVideo";
139
+ youtubeLive: "youtubeLive";
140
+ youtubeVideo: "youtubeVideo";
141
+ whatnotLive: "whatnotLive";
142
+ whatnotOffline: "whatnotOffline";
143
+ clubPost: "clubPost";
144
+ twitterPost: "twitterPost";
145
+ twitterLive: "twitterLive";
146
+ twitterOffline: "twitterOffline";
147
+ rssPost: "rssPost";
148
+ instagramPost: "instagramPost";
149
+ }>;
150
+ }, z.core.$strip>;
151
+ };
152
+ export declare const InstagramStreamerZodPartial: PartialZodObject<typeof InstagramStreamerZod>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstagramStreamerZodPartial = exports.InstagramStreamerZod = exports.INSTAGRAM_HANDLE = 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
+ /** An Instagram handle: what the checking service accepts (phases/instagram/). Lower-cased before it is stored. */
10
+ exports.INSTAGRAM_HANDLE = /^[a-z0-9._]{1,30}$/;
11
+ const InstagramStreamerSchema = zod_2.z.object({
12
+ streamerUserName: zod_2.z.string().regex(exports.INSTAGRAM_HANDLE),
13
+ // Creator order (phases/creator-order/): server-managed - stripped from every save (filters.ts *InternalKeys).
14
+ position: zod_2.z.number().int().nullable(),
15
+ createdAt: zod_2.z.coerce.date(),
16
+ limitLocked: zod_2.z.boolean(),
17
+ guildId: zod_1.SnowFlake,
18
+ // The R2 copy of the profile picture - written by the poller, stripped from every save.
19
+ avatarUrl: zod_2.z.string().url().nullable(),
20
+ usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
21
+ autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
22
+ // Premium Plus (`MultiDestination`): up to 2 extra channels, each with its own ping role and post types.
23
+ extraDestinations: zod_1.CentralZod.ExtraDestinations(multiDestination_1.DESTINATION_TYPES.instagram).nullable(),
24
+ // Minecraft (phases/in-game/ P3). The creator routes refuse these without the `inGame` flag.
25
+ inGame: zod_2.z.boolean(),
26
+ inGameTypes: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.enum(inGameAlerts_1.IN_GAME_TYPES.instagram))),
27
+ inGameServerIds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string().uuid())).max(inGameAlerts_1.MAX_IN_GAME_SERVER_PICKS),
28
+ customMessages: zod_2.z.array(zod_2.z.lazy(() => IGSCustomMessageSchema)),
29
+ notificationChannelId: zod_1.SnowFlake.nullable(),
30
+ showNotifyButton: zod_2.z.boolean().nullable(),
31
+ pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
32
+ customCoolDownBeforeNextPost: zod_2.z.number().min(0).max(360).nullable(),
33
+ // Activity only (B4 / activeServers) - written after a send, stripped from every save.
34
+ lastPostAt: zod_2.z.date().nullable(),
35
+ });
36
+ const IGSCustomMessageSchema = zod_2.z.object({
37
+ type: schema_zod_1.StreamerMessageTypeEnum,
38
+ ...zod_1.CentralZod.Message(),
39
+ });
40
+ exports.InstagramStreamerZod = {
41
+ InstagramStreamerSchema,
42
+ IGSCustomMessageSchema,
43
+ };
44
+ exports.InstagramStreamerZodPartial = Object.fromEntries(Object.entries(exports.InstagramStreamerZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
@@ -84,6 +84,7 @@ export declare const KickStreamerZod: {
84
84
  twitterLive: "twitterLive";
85
85
  twitterOffline: "twitterOffline";
86
86
  rssPost: "rssPost";
87
+ instagramPost: "instagramPost";
87
88
  }>;
88
89
  }, z.core.$strip>>>;
89
90
  clipEnabled: z.ZodNullable<z.ZodBoolean>;
@@ -226,6 +227,7 @@ export declare const KickStreamerZod: {
226
227
  twitterLive: "twitterLive";
227
228
  twitterOffline: "twitterOffline";
228
229
  rssPost: "rssPost";
230
+ instagramPost: "instagramPost";
229
231
  }>;
230
232
  }, z.core.$strip>;
231
233
  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";
16
15
  toggle: "toggle";
17
16
  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";
71
70
  toggle: "toggle";
72
71
  unique: "unique";
72
+ limit: "limit";
73
73
  verify: "verify";
74
74
  }>;
75
75
  maxRoles: z.ZodNullable<z.ZodNumber>;
@@ -80,6 +80,7 @@ export declare const RssFeedZod: {
80
80
  twitterLive: "twitterLive";
81
81
  twitterOffline: "twitterOffline";
82
82
  rssPost: "rssPost";
83
+ instagramPost: "instagramPost";
83
84
  }>;
84
85
  }, z.core.$strip>>>;
85
86
  notificationChannelId: z.ZodNullable<z.ZodString>;
@@ -148,6 +149,7 @@ export declare const RssFeedZod: {
148
149
  twitterLive: "twitterLive";
149
150
  twitterOffline: "twitterOffline";
150
151
  rssPost: "rssPost";
152
+ instagramPost: "instagramPost";
151
153
  }>;
152
154
  }, z.core.$strip>;
153
155
  };
@@ -12,8 +12,8 @@ export declare const RumbleStreamerZod: {
12
12
  limitLocked: z.ZodBoolean;
13
13
  guildId: z.ZodString;
14
14
  type: z.ZodEnum<{
15
- user: "user";
16
15
  channel: "channel";
16
+ user: "user";
17
17
  }>;
18
18
  deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
19
19
  sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
@@ -89,6 +89,7 @@ export declare const RumbleStreamerZod: {
89
89
  twitterLive: "twitterLive";
90
90
  twitterOffline: "twitterOffline";
91
91
  rssPost: "rssPost";
92
+ instagramPost: "instagramPost";
92
93
  }>;
93
94
  }, z.core.$strip>>>;
94
95
  notificationChannelId: z.ZodNullable<z.ZodString>;
@@ -176,6 +177,7 @@ export declare const RumbleStreamerZod: {
176
177
  twitterLive: "twitterLive";
177
178
  twitterOffline: "twitterOffline";
178
179
  rssPost: "rssPost";
180
+ instagramPost: "instagramPost";
179
181
  }>;
180
182
  }, z.core.$strip>;
181
183
  readonly RSStatsChannelIdSchema: z.ZodObject<{
@@ -19,15 +19,15 @@ export declare const ScheduledMessageZod: {
19
19
  sendToInGame: z.ZodBoolean;
20
20
  minecraftContent: z.ZodNullable<z.ZodString>;
21
21
  trigger: z.ZodEnum<{
22
- stage: "stage";
23
22
  time: "time";
23
+ stage: "stage";
24
24
  guildEvent: "guildEvent";
25
25
  }>;
26
26
  recurrence: z.ZodEnum<{
27
- days: "days";
28
27
  weekly: "weekly";
29
28
  once: "once";
30
29
  daily: "daily";
30
+ days: "days";
31
31
  interval: "interval";
32
32
  }>;
33
33
  daysOfWeek: z.ZodArray<z.ZodNumber>;
@@ -105,15 +105,15 @@ export declare const ScheduledMessageZod: {
105
105
  emojiUnicodeOrId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
106
  }, z.core.$strip>>>;
107
107
  trigger: z.ZodDefault<z.ZodEnum<{
108
- stage: "stage";
109
108
  time: "time";
109
+ stage: "stage";
110
110
  guildEvent: "guildEvent";
111
111
  }>>;
112
112
  recurrence: z.ZodDefault<z.ZodEnum<{
113
- days: "days";
114
113
  weekly: "weekly";
115
114
  once: "once";
116
115
  daily: "daily";
116
+ days: "days";
117
117
  interval: "interval";
118
118
  }>>;
119
119
  daysOfWeek: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
@@ -43,6 +43,7 @@ export declare const StreamerMessageTypeEnum: z.ZodEnum<{
43
43
  twitterLive: "twitterLive";
44
44
  twitterOffline: "twitterOffline";
45
45
  rssPost: "rssPost";
46
+ instagramPost: "instagramPost";
46
47
  }>;
47
48
  export declare const GuildMessageTypeEnum: z.ZodEnum<{
48
49
  birthday: "birthday";
@@ -79,6 +80,7 @@ export declare const GuildMessageTypeEnum: z.ZodEnum<{
79
80
  twitterLive: "twitterLive";
80
81
  twitterOffline: "twitterOffline";
81
82
  rssPost: "rssPost";
83
+ instagramPost: "instagramPost";
82
84
  }>;
83
85
  export declare const GuildSingleMessageTypeEnum: z.ZodEnum<{
84
86
  autoLiveRoleAdded: "autoLiveRoleAdded";
@@ -110,6 +112,7 @@ export declare const PlatformEnum: z.ZodEnum<{
110
112
  club: "club";
111
113
  twitter: "twitter";
112
114
  rss: "rss";
115
+ instagram: "instagram";
113
116
  }>;
114
117
  export declare const ClipForwardPlatformEnum: z.ZodEnum<{
115
118
  kick: "kick";
@@ -134,8 +137,8 @@ export declare const PlatformsWithVideosEnum: z.ZodEnum<{
134
137
  youtube: "youtube";
135
138
  }>;
136
139
  export declare const RumbleTypeEnum: z.ZodEnum<{
137
- user: "user";
138
140
  channel: "channel";
141
+ user: "user";
139
142
  }>;
140
143
  export declare const QueryInEnum: z.ZodEnum<{
141
144
  title: "title";
@@ -182,8 +185,8 @@ export declare const UserNotificationSeverityEnum: z.ZodEnum<{
182
185
  emergency: "emergency";
183
186
  }>;
184
187
  export declare const GameStoreEnum: z.ZodEnum<{
185
- epic: "epic";
186
188
  steam: "steam";
189
+ epic: "epic";
187
190
  gog: "gog";
188
191
  prime: "prime";
189
192
  }>;
@@ -206,9 +209,9 @@ export declare const GameDeliveryEnum: z.ZodEnum<{
206
209
  instant: "instant";
207
210
  }>;
208
211
  export declare const NotificationDeliveryEnum: z.ZodEnum<{
209
- scheduled: "scheduled";
210
212
  instant: "instant";
211
213
  window: "window";
214
+ scheduled: "scheduled";
212
215
  }>;
213
216
  export declare const GameRobloxKindEnum: z.ZodEnum<{
214
217
  updates: "updates";
@@ -216,14 +219,14 @@ export declare const GameRobloxKindEnum: z.ZodEnum<{
216
219
  both: "both";
217
220
  }>;
218
221
  export declare const ScheduledMessageRecurrenceEnum: z.ZodEnum<{
219
- days: "days";
220
222
  weekly: "weekly";
221
223
  once: "once";
222
224
  daily: "daily";
225
+ days: "days";
223
226
  interval: "interval";
224
227
  }>;
225
228
  export declare const ScheduledMessageTriggerEnum: z.ZodEnum<{
226
- stage: "stage";
227
229
  time: "time";
230
+ stage: "stage";
228
231
  guildEvent: "guildEvent";
229
232
  }>;