@notidotbot/noti-api-client 1.9.118 → 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.
- package/dist/classes/@me.d.ts +7 -5
- package/dist/classes/@me.js +2 -2
- package/dist/classes/admin.d.ts +2 -2
- package/dist/classes/admin.js +1 -1
- package/dist/classes/client.d.ts +2 -2
- package/dist/classes/guildClipForward.d.ts +18 -18
- package/dist/classes/guildPlatform.d.ts +3 -2
- package/dist/classes/guildPlatformAction.d.ts +2 -2
- package/dist/classes/guildRolePanel.d.ts +14 -14
- package/dist/classes/guildStarboard.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/modules/stripe.js +1 -0
- 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 +1 -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 +43 -0
- package/dist/other/templates.js +33 -0
- package/dist/other/types.d.ts +2 -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 +9 -9
- package/dist/other/zod/guild.zod.d.ts +8 -10
- package/dist/other/zod/guild.zod.js +1 -2
- package/dist/other/zod/instagramStreamer.zod.d.ts +152 -0
- package/dist/other/zod/instagramStreamer.zod.js +44 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +11 -0
- package/dist/other/zod/kickStreamer.zod.js +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -2
- package/dist/other/zod/rssFeed.zod.d.ts +2 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +3 -1
- package/dist/other/zod/scheduledMessage.zod.d.ts +4 -4
- package/dist/other/zod/schema.zod.d.ts +9 -6
- 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/user.zod.d.ts +3 -3
- 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/guild.prisma +2 -4
- package/prisma/schema/models/instagramStreamer.prisma +123 -0
- package/prisma/schema/models/kickStreamer.prisma +2 -0
- package/prisma/schema/schema.prisma +3 -0
|
@@ -343,6 +343,20 @@ export declare const placeholders: {
|
|
|
343
343
|
randomMessage: string;
|
|
344
344
|
member: string;
|
|
345
345
|
};
|
|
346
|
+
instagram: {
|
|
347
|
+
platform: string;
|
|
348
|
+
postUrl: string;
|
|
349
|
+
defaultPostUrl: string;
|
|
350
|
+
creatorName: string;
|
|
351
|
+
creatorAvatar: string;
|
|
352
|
+
postType: string;
|
|
353
|
+
pingRole: string;
|
|
354
|
+
postText: string;
|
|
355
|
+
thumbnail: string;
|
|
356
|
+
publishDate: string;
|
|
357
|
+
randomMessage: string;
|
|
358
|
+
member: string;
|
|
359
|
+
};
|
|
346
360
|
};
|
|
347
361
|
birthday: {
|
|
348
362
|
username: string;
|
|
@@ -1273,6 +1287,35 @@ export declare const messages: {
|
|
|
1273
1287
|
url?: undefined;
|
|
1274
1288
|
})[];
|
|
1275
1289
|
};
|
|
1290
|
+
instagram: {
|
|
1291
|
+
content: string;
|
|
1292
|
+
embed: {
|
|
1293
|
+
author: {
|
|
1294
|
+
name: string;
|
|
1295
|
+
url: string;
|
|
1296
|
+
icon_url: string;
|
|
1297
|
+
};
|
|
1298
|
+
url: string;
|
|
1299
|
+
description: string;
|
|
1300
|
+
color: number;
|
|
1301
|
+
image: {
|
|
1302
|
+
url: string;
|
|
1303
|
+
};
|
|
1304
|
+
footer: {
|
|
1305
|
+
text: string;
|
|
1306
|
+
icon_url: string;
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
buttons: ({
|
|
1310
|
+
label: string;
|
|
1311
|
+
style: number;
|
|
1312
|
+
url: string;
|
|
1313
|
+
} | {
|
|
1314
|
+
label: string;
|
|
1315
|
+
style: number;
|
|
1316
|
+
url?: undefined;
|
|
1317
|
+
})[];
|
|
1318
|
+
};
|
|
1276
1319
|
};
|
|
1277
1320
|
birthday: {
|
|
1278
1321
|
content: string;
|
package/dist/other/templates.js
CHANGED
|
@@ -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}',
|
package/dist/other/types.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -84,16 +85,6 @@ export declare const GuildZod: {
|
|
|
84
85
|
kickBadgeGraceDays: z.ZodNullable<z.ZodNumber>;
|
|
85
86
|
kickBadgeRemoveUnmanaged: z.ZodNullable<z.ZodBoolean>;
|
|
86
87
|
kickJoinEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
87
|
-
kickJoinStreamer: z.ZodNullable<z.ZodString>;
|
|
88
|
-
kickJoinBadges: z.ZodArray<z.ZodEnum<{
|
|
89
|
-
subscriber: "subscriber";
|
|
90
|
-
vip: "vip";
|
|
91
|
-
og: "og";
|
|
92
|
-
founder: "founder";
|
|
93
|
-
moderator: "moderator";
|
|
94
|
-
verified: "verified";
|
|
95
|
-
sub_gifter: "sub_gifter";
|
|
96
|
-
}>>;
|
|
97
88
|
kickBadgeLapseAction: z.ZodNullable<z.ZodEnum<{
|
|
98
89
|
role: "role";
|
|
99
90
|
remove: "remove";
|
|
@@ -158,6 +149,7 @@ export declare const GuildZod: {
|
|
|
158
149
|
twitterLive: "twitterLive";
|
|
159
150
|
twitterOffline: "twitterOffline";
|
|
160
151
|
rssPost: "rssPost";
|
|
152
|
+
instagramPost: "instagramPost";
|
|
161
153
|
}>;
|
|
162
154
|
messages: z.ZodArray<z.ZodString>;
|
|
163
155
|
}, z.core.$strip>>>;
|
|
@@ -206,6 +198,7 @@ export declare const GuildZod: {
|
|
|
206
198
|
club: "club";
|
|
207
199
|
twitter: "twitter";
|
|
208
200
|
rss: "rss";
|
|
201
|
+
instagram: "instagram";
|
|
209
202
|
}>>;
|
|
210
203
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
211
204
|
filter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -241,6 +234,7 @@ export declare const GuildZod: {
|
|
|
241
234
|
club: "club";
|
|
242
235
|
twitter: "twitter";
|
|
243
236
|
rss: "rss";
|
|
237
|
+
instagram: "instagram";
|
|
244
238
|
}>>;
|
|
245
239
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
246
240
|
applyToTypes: z.ZodArray<z.ZodEnum<{
|
|
@@ -345,6 +339,7 @@ export declare const GuildZod: {
|
|
|
345
339
|
twitterLive: "twitterLive";
|
|
346
340
|
twitterOffline: "twitterOffline";
|
|
347
341
|
rssPost: "rssPost";
|
|
342
|
+
instagramPost: "instagramPost";
|
|
348
343
|
}>;
|
|
349
344
|
}, z.core.$strip>>>;
|
|
350
345
|
stickyMessages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -416,6 +411,7 @@ export declare const GuildZod: {
|
|
|
416
411
|
additionalWhatnotConnections: z.ZodNumber;
|
|
417
412
|
additionalClubConnections: z.ZodNumber;
|
|
418
413
|
additionalTwitterConnections: z.ZodNumber;
|
|
414
|
+
additionalInstagramConnections: z.ZodNumber;
|
|
419
415
|
additionalKickClips: z.ZodNumber;
|
|
420
416
|
additionalTwitchClips: z.ZodNumber;
|
|
421
417
|
additionalStatCounters: z.ZodNumber;
|
|
@@ -499,6 +495,7 @@ export declare const GuildZod: {
|
|
|
499
495
|
club: "club";
|
|
500
496
|
twitter: "twitter";
|
|
501
497
|
rss: "rss";
|
|
498
|
+
instagram: "instagram";
|
|
502
499
|
}>>;
|
|
503
500
|
applyToStreamers: z.ZodArray<z.ZodString>;
|
|
504
501
|
applyToTypes: z.ZodArray<z.ZodEnum<{
|
|
@@ -607,6 +604,7 @@ export declare const GuildZod: {
|
|
|
607
604
|
twitterLive: "twitterLive";
|
|
608
605
|
twitterOffline: "twitterOffline";
|
|
609
606
|
rssPost: "rssPost";
|
|
607
|
+
instagramPost: "instagramPost";
|
|
610
608
|
}>;
|
|
611
609
|
}, z.core.$strip>;
|
|
612
610
|
readonly GuildStickyMessageSchema: z.ZodObject<{
|
|
@@ -39,8 +39,6 @@ const GuildSchema = zod_2.z.object({
|
|
|
39
39
|
kickBadgeRemoveUnmanaged: zod_2.z.boolean().nullable(),
|
|
40
40
|
/** Kick join door (Premium Plus). */
|
|
41
41
|
kickJoinEnabled: zod_2.z.boolean().nullable(),
|
|
42
|
-
kickJoinStreamer: zod_2.z.string().max(64).nullable(),
|
|
43
|
-
kickJoinBadges: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.enum(['subscriber', 'vip', 'og', 'founder', 'moderator', 'verified', 'sub_gifter']))),
|
|
44
42
|
kickBadgeLapseAction: zod_2.z.enum(['role', 'remove']).nullable(),
|
|
45
43
|
/** Kick anti-abuse (Premium Plus). */
|
|
46
44
|
kickBadgeSwitchRule: zod_2.z.enum(['off', 'wait', 'lock']).nullable(),
|
|
@@ -98,6 +96,7 @@ const GuildPremiumSchema = zod_2.z.object({
|
|
|
98
96
|
additionalWhatnotConnections: zod_2.z.number().min(0),
|
|
99
97
|
additionalClubConnections: zod_2.z.number().min(0),
|
|
100
98
|
additionalTwitterConnections: zod_2.z.number().min(0),
|
|
99
|
+
additionalInstagramConnections: zod_2.z.number().min(0),
|
|
101
100
|
additionalKickClips: zod_2.z.number().min(0),
|
|
102
101
|
additionalTwitchClips: zod_2.z.number().min(0),
|
|
103
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>;
|
|
@@ -143,6 +144,15 @@ export declare const KickStreamerZod: {
|
|
|
143
144
|
founderRoleId: z.ZodNullable<z.ZodString>;
|
|
144
145
|
vipRoleId: z.ZodNullable<z.ZodString>;
|
|
145
146
|
ogRoleId: z.ZodNullable<z.ZodString>;
|
|
147
|
+
joinBadges: z.ZodArray<z.ZodEnum<{
|
|
148
|
+
vip: "vip";
|
|
149
|
+
subscriber: "subscriber";
|
|
150
|
+
og: "og";
|
|
151
|
+
founder: "founder";
|
|
152
|
+
moderator: "moderator";
|
|
153
|
+
verified: "verified";
|
|
154
|
+
sub_gifter: "sub_gifter";
|
|
155
|
+
}>>;
|
|
146
156
|
liveRoleId: z.ZodNullable<z.ZodString>;
|
|
147
157
|
usersForLiveRole: z.ZodArray<z.ZodString>;
|
|
148
158
|
usersWhoHaveLiveRole: z.ZodArray<z.ZodString>;
|
|
@@ -217,6 +227,7 @@ export declare const KickStreamerZod: {
|
|
|
217
227
|
twitterLive: "twitterLive";
|
|
218
228
|
twitterOffline: "twitterOffline";
|
|
219
229
|
rssPost: "rssPost";
|
|
230
|
+
instagramPost: "instagramPost";
|
|
220
231
|
}>;
|
|
221
232
|
}, z.core.$strip>;
|
|
222
233
|
readonly KSRoleWithUsersSchema: z.ZodObject<{
|
|
@@ -63,6 +63,8 @@ const KickStreamerSchema = zod_2.z.object({
|
|
|
63
63
|
founderRoleId: zod_1.SnowFlake.nullable(),
|
|
64
64
|
vipRoleId: zod_1.SnowFlake.nullable(),
|
|
65
65
|
ogRoleId: zod_1.SnowFlake.nullable(),
|
|
66
|
+
/** Kick join door (Premium Plus): badges on this creator that let a fan join. [] = not a door creator. */
|
|
67
|
+
joinBadges: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.enum(['subscriber', 'vip', 'og', 'founder', 'moderator', 'verified', 'sub_gifter']))),
|
|
66
68
|
liveRoleId: zod_1.SnowFlake.nullable(),
|
|
67
69
|
usersForLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
68
70
|
usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
@@ -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<{
|