@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
package/dist/classes/@me.d.ts
CHANGED
|
@@ -53,9 +53,9 @@ export declare class APIMe {
|
|
|
53
53
|
syncKickGuildRoles({ auth, guildId }: MeFunctionsInput['syncKickGuildRoles']): Promise<import("../types").WebResponse<KickBadgeSyncResult>>;
|
|
54
54
|
/**
|
|
55
55
|
* The join door: Discord's Authorize screen (from `getKickGuildLink().join.authorizeUrl`) sent the user back with
|
|
56
|
-
* `code` and `state` - pass both as they arrived. Noti checks their
|
|
56
|
+
* `code` and `state` - pass both as they arrived. Noti checks their badges on the server's door creators (any one is enough), adds them,
|
|
57
57
|
* and gives their roles. Errors: 400 `invalid_state` / `discord_refused` / `join_not_allowed` (they unticked "Join
|
|
58
|
-
* servers"), 403 `wrong_account` / `join_closed` / `badge_required` (`error.streamer
|
|
58
|
+
* servers"), 403 `wrong_account` / `join_closed` / `badge_required` (`error.creators`: `{ streamer, badges }[]`), 409
|
|
59
59
|
* `already_member` / `kick_not_linked` / `running`, 502 `join_failed`, 503 `kick_unavailable` / `join_unavailable`.
|
|
60
60
|
*/
|
|
61
61
|
joinKickGuild({ auth, guildId, code, state }: MeFunctionsInput['joinKickGuild']): Promise<import("../types").WebResponse<KickBadgeSyncResult & {
|
|
@@ -273,10 +273,12 @@ export type KickGuildLink = {
|
|
|
273
273
|
roleName: string | null;
|
|
274
274
|
}[];
|
|
275
275
|
}[];
|
|
276
|
-
/** The join door, only for a non-member while it is open. */
|
|
276
|
+
/** The join door, only for a non-member while it is open. Each creator has its own badges; any one opens it. */
|
|
277
277
|
join: {
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
creators: {
|
|
279
|
+
streamer: string;
|
|
280
|
+
badges: KickBadgeName[];
|
|
281
|
+
}[];
|
|
280
282
|
authorizeUrl: string | null;
|
|
281
283
|
} | null;
|
|
282
284
|
};
|
package/dist/classes/@me.js
CHANGED
|
@@ -129,9 +129,9 @@ class APIMe {
|
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* The join door: Discord's Authorize screen (from `getKickGuildLink().join.authorizeUrl`) sent the user back with
|
|
132
|
-
* `code` and `state` - pass both as they arrived. Noti checks their
|
|
132
|
+
* `code` and `state` - pass both as they arrived. Noti checks their badges on the server's door creators (any one is enough), adds them,
|
|
133
133
|
* and gives their roles. Errors: 400 `invalid_state` / `discord_refused` / `join_not_allowed` (they unticked "Join
|
|
134
|
-
* servers"), 403 `wrong_account` / `join_closed` / `badge_required` (`error.streamer
|
|
134
|
+
* servers"), 403 `wrong_account` / `join_closed` / `badge_required` (`error.creators`: `{ streamer, badges }[]`), 409
|
|
135
135
|
* `already_member` / `kick_not_linked` / `running`, 502 `join_failed`, 503 `kick_unavailable` / `join_unavailable`.
|
|
136
136
|
*/
|
|
137
137
|
async joinKickGuild({ auth, guildId, code, state }) {
|
package/dist/classes/admin.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ export type AdminGetReturnTypes = {
|
|
|
293
293
|
'getAnalyticsEventsRaw': Awaited<ReturnType<APIAdmin['getAnalyticsEvents']>>;
|
|
294
294
|
'getAnalyticsEventsSuccess': CancelOutWebResponses<Awaited<ReturnType<APIAdmin['getAnalyticsEvents']>>>;
|
|
295
295
|
};
|
|
296
|
-
export type NotificationProviderName = 'kick' | 'twitch' | 'rumble' | 'tiktok' | 'youtube' | 'whatnot' | 'club' | 'twitter' | 'rss' | 'vods' | 'clips' | 'gameDeal' | 'gameChangelog' | 'roblox' | 'kickBounties';
|
|
296
|
+
export type NotificationProviderName = 'kick' | 'twitch' | 'rumble' | 'tiktok' | 'youtube' | 'whatnot' | 'club' | 'twitter' | 'rss' | 'instagram' | 'vods' | 'clips' | 'gameDeal' | 'gameChangelog' | 'roblox' | 'kickBounties';
|
|
297
297
|
export type FixUrlRule = {
|
|
298
298
|
dbId: string;
|
|
299
299
|
original: string;
|
|
@@ -669,7 +669,7 @@ export type InGameAdminSettings = {
|
|
|
669
669
|
/** Tester / Partner plans (Noti-v3 modules/premium/staffPlans.ts). */
|
|
670
670
|
export type StaffPlanKind = 'tester' | 'partner';
|
|
671
671
|
/** Mirrors PARTNER_ADDONS in Noti-v3 modules/premium/staffPlans.ts. */
|
|
672
|
-
export declare const STAFF_PLAN_ADDONS: readonly ["StickyMessages", "AutoLiveRoles", "LinkedRoles", "StatusRoles", "Starboards", "Overrides", "KickConnections", "ClipperConnections", "RumbleConnections", "TwitchConnections", "YoutubeConnections", "TiktokConnections", "WhatnotConnections", "ClubConnections", "TwitterConnections", "KickClips", "TwitchClips", "StatCounters"];
|
|
672
|
+
export declare const STAFF_PLAN_ADDONS: readonly ["StickyMessages", "AutoLiveRoles", "LinkedRoles", "StatusRoles", "Starboards", "Overrides", "KickConnections", "ClipperConnections", "RumbleConnections", "TwitchConnections", "YoutubeConnections", "TiktokConnections", "WhatnotConnections", "ClubConnections", "TwitterConnections", "InstagramConnections", "KickClips", "TwitchClips", "StatCounters"];
|
|
673
673
|
export type StaffPlanAddon = (typeof STAFF_PLAN_ADDONS)[number];
|
|
674
674
|
export type StaffPlanRow = {
|
|
675
675
|
guildId: string;
|
package/dist/classes/admin.js
CHANGED
|
@@ -230,4 +230,4 @@ class APIAdmin {
|
|
|
230
230
|
}
|
|
231
231
|
exports.APIAdmin = APIAdmin;
|
|
232
232
|
/** Mirrors PARTNER_ADDONS in Noti-v3 modules/premium/staffPlans.ts. */
|
|
233
|
-
exports.STAFF_PLAN_ADDONS = ['StickyMessages', 'AutoLiveRoles', 'LinkedRoles', 'StatusRoles', 'Starboards', 'Overrides', 'KickConnections', 'ClipperConnections', 'RumbleConnections', 'TwitchConnections', 'YoutubeConnections', 'TiktokConnections', 'WhatnotConnections', 'ClubConnections', 'TwitterConnections', 'KickClips', 'TwitchClips', 'StatCounters'];
|
|
233
|
+
exports.STAFF_PLAN_ADDONS = ['StickyMessages', 'AutoLiveRoles', 'LinkedRoles', 'StatusRoles', 'Starboards', 'Overrides', 'KickConnections', 'ClipperConnections', 'RumbleConnections', 'TwitchConnections', 'YoutubeConnections', 'TiktokConnections', 'WhatnotConnections', 'ClubConnections', 'TwitterConnections', 'InstagramConnections', 'KickClips', 'TwitchClips', 'StatCounters'];
|
package/dist/classes/client.d.ts
CHANGED
|
@@ -40,15 +40,15 @@ export declare class APIClient {
|
|
|
40
40
|
content: string;
|
|
41
41
|
thumbnail: string | null;
|
|
42
42
|
authorIcon: string;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
tags: string[];
|
|
43
45
|
clientId: string;
|
|
44
46
|
identifier: string;
|
|
45
47
|
isPinned: boolean;
|
|
46
48
|
views: number | null;
|
|
47
49
|
reactions: string[];
|
|
48
50
|
reactionsCount: number | null;
|
|
49
|
-
tags: string[];
|
|
50
51
|
authorName: string;
|
|
51
|
-
createdAt: Date;
|
|
52
52
|
lastEdited: Date;
|
|
53
53
|
isPublic: boolean;
|
|
54
54
|
}[]>>;
|
|
@@ -48,8 +48,10 @@ export declare class APIGuildClipForward {
|
|
|
48
48
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
49
49
|
channelId: string | null;
|
|
50
50
|
streamerUserName: string;
|
|
51
|
-
|
|
51
|
+
usePerStreamerEmbeds: boolean | null;
|
|
52
|
+
showNotifyButton: boolean | null;
|
|
52
53
|
pingRoleId: string | null;
|
|
54
|
+
clipForwardId: string;
|
|
53
55
|
minViews: number | null;
|
|
54
56
|
minDuration: number | null;
|
|
55
57
|
maxPerCycle: number | null;
|
|
@@ -59,8 +61,6 @@ export declare class APIGuildClipForward {
|
|
|
59
61
|
blacklistClippers: string[];
|
|
60
62
|
whitelistCategories: string[];
|
|
61
63
|
blacklistCategories: string[];
|
|
62
|
-
showNotifyButton: boolean | null;
|
|
63
|
-
usePerStreamerEmbeds: boolean | null;
|
|
64
64
|
lastClipAt: Date | null;
|
|
65
65
|
lastClipId: string | null;
|
|
66
66
|
} | null;
|
|
@@ -72,8 +72,10 @@ export declare class APIGuildClipForward {
|
|
|
72
72
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
73
73
|
channelId: string | null;
|
|
74
74
|
streamerUserName: string;
|
|
75
|
-
|
|
75
|
+
usePerStreamerEmbeds: boolean | null;
|
|
76
|
+
showNotifyButton: boolean | null;
|
|
76
77
|
pingRoleId: string | null;
|
|
78
|
+
clipForwardId: string;
|
|
77
79
|
minViews: number | null;
|
|
78
80
|
minDuration: number | null;
|
|
79
81
|
maxPerCycle: number | null;
|
|
@@ -83,8 +85,6 @@ export declare class APIGuildClipForward {
|
|
|
83
85
|
blacklistClippers: string[];
|
|
84
86
|
whitelistCategories: string[];
|
|
85
87
|
blacklistCategories: string[];
|
|
86
|
-
showNotifyButton: boolean | null;
|
|
87
|
-
usePerStreamerEmbeds: boolean | null;
|
|
88
88
|
lastClipAt: Date | null;
|
|
89
89
|
lastClipId: string | null;
|
|
90
90
|
} | null;
|
|
@@ -157,8 +157,10 @@ export declare class APIGuildClipForward {
|
|
|
157
157
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
158
158
|
channelId: string | null;
|
|
159
159
|
streamerUserName: string;
|
|
160
|
-
|
|
160
|
+
usePerStreamerEmbeds: boolean | null;
|
|
161
|
+
showNotifyButton: boolean | null;
|
|
161
162
|
pingRoleId: string | null;
|
|
163
|
+
clipForwardId: string;
|
|
162
164
|
minViews: number | null;
|
|
163
165
|
minDuration: number | null;
|
|
164
166
|
maxPerCycle: number | null;
|
|
@@ -168,8 +170,6 @@ export declare class APIGuildClipForward {
|
|
|
168
170
|
blacklistClippers: string[];
|
|
169
171
|
whitelistCategories: string[];
|
|
170
172
|
blacklistCategories: string[];
|
|
171
|
-
showNotifyButton: boolean | null;
|
|
172
|
-
usePerStreamerEmbeds: boolean | null;
|
|
173
173
|
lastClipAt: Date | null;
|
|
174
174
|
lastClipId: string | null;
|
|
175
175
|
} | null;
|
|
@@ -223,8 +223,10 @@ export declare class APIGuildClipForward {
|
|
|
223
223
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
224
224
|
channelId: string | null;
|
|
225
225
|
streamerUserName: string;
|
|
226
|
-
|
|
226
|
+
usePerStreamerEmbeds: boolean | null;
|
|
227
|
+
showNotifyButton: boolean | null;
|
|
227
228
|
pingRoleId: string | null;
|
|
229
|
+
clipForwardId: string;
|
|
228
230
|
minViews: number | null;
|
|
229
231
|
minDuration: number | null;
|
|
230
232
|
maxPerCycle: number | null;
|
|
@@ -234,8 +236,6 @@ export declare class APIGuildClipForward {
|
|
|
234
236
|
blacklistClippers: string[];
|
|
235
237
|
whitelistCategories: string[];
|
|
236
238
|
blacklistCategories: string[];
|
|
237
|
-
showNotifyButton: boolean | null;
|
|
238
|
-
usePerStreamerEmbeds: boolean | null;
|
|
239
239
|
lastClipAt: Date | null;
|
|
240
240
|
lastClipId: string | null;
|
|
241
241
|
} | null;
|
|
@@ -283,8 +283,10 @@ export declare class APIGuildClipForward {
|
|
|
283
283
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
284
284
|
channelId: string | null;
|
|
285
285
|
streamerUserName: string;
|
|
286
|
-
|
|
286
|
+
usePerStreamerEmbeds: boolean | null;
|
|
287
|
+
showNotifyButton: boolean | null;
|
|
287
288
|
pingRoleId: string | null;
|
|
289
|
+
clipForwardId: string;
|
|
288
290
|
minViews: number | null;
|
|
289
291
|
minDuration: number | null;
|
|
290
292
|
maxPerCycle: number | null;
|
|
@@ -294,8 +296,6 @@ export declare class APIGuildClipForward {
|
|
|
294
296
|
blacklistClippers: string[];
|
|
295
297
|
whitelistCategories: string[];
|
|
296
298
|
blacklistCategories: string[];
|
|
297
|
-
showNotifyButton: boolean | null;
|
|
298
|
-
usePerStreamerEmbeds: boolean | null;
|
|
299
299
|
lastClipAt: Date | null;
|
|
300
300
|
lastClipId: string | null;
|
|
301
301
|
} | null;
|
|
@@ -372,8 +372,10 @@ export declare class APIGuildClipForward {
|
|
|
372
372
|
platform: import("@prisma/client").$Enums.PlatformEnum;
|
|
373
373
|
channelId: string | null;
|
|
374
374
|
streamerUserName: string;
|
|
375
|
-
|
|
375
|
+
usePerStreamerEmbeds: boolean | null;
|
|
376
|
+
showNotifyButton: boolean | null;
|
|
376
377
|
pingRoleId: string | null;
|
|
378
|
+
clipForwardId: string;
|
|
377
379
|
minViews: number | null;
|
|
378
380
|
minDuration: number | null;
|
|
379
381
|
maxPerCycle: number | null;
|
|
@@ -383,8 +385,6 @@ export declare class APIGuildClipForward {
|
|
|
383
385
|
blacklistClippers: string[];
|
|
384
386
|
whitelistCategories: string[];
|
|
385
387
|
blacklistCategories: string[];
|
|
386
|
-
showNotifyButton: boolean | null;
|
|
387
|
-
usePerStreamerEmbeds: boolean | null;
|
|
388
388
|
lastClipAt: Date | null;
|
|
389
389
|
lastClipId: string | null;
|
|
390
390
|
}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllPlatforms, ClubStreamerZod, RssFeedZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
1
|
+
import { AllPlatforms, ClubStreamerZod, RssFeedZod, InstagramStreamerZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
2
2
|
import { CancelOutWebResponses, DeepPartial } from '../types';
|
|
3
3
|
import { WebDataManager } from '../core/manager';
|
|
4
4
|
export declare class APIGuildPlatform {
|
|
@@ -108,7 +108,7 @@ export type UsersForLiveRole = {
|
|
|
108
108
|
id: string;
|
|
109
109
|
name: string;
|
|
110
110
|
}[];
|
|
111
|
-
export type GuildSingleStreamer<T extends AllPlatforms> = T extends 'kick' ? KickStreamerZod : T extends 'twitch' ? TwitchStreamerZod : T extends 'rumble' ? RumbleStreamerZod : T extends 'tiktok' ? TikTokStreamerZod : T extends 'youtube' ? YouTubeStreamerZod : T extends 'club' ? ClubStreamerZod : T extends 'whatnot' ? WhatnotStreamerZod : T extends 'twitter' ? TwitterStreamerZod : T extends 'rss' ? RssFeedZod : never;
|
|
111
|
+
export type GuildSingleStreamer<T extends AllPlatforms> = T extends 'kick' ? KickStreamerZod : T extends 'twitch' ? TwitchStreamerZod : T extends 'rumble' ? RumbleStreamerZod : T extends 'tiktok' ? TikTokStreamerZod : T extends 'youtube' ? YouTubeStreamerZod : T extends 'club' ? ClubStreamerZod : T extends 'whatnot' ? WhatnotStreamerZod : T extends 'twitter' ? TwitterStreamerZod : T extends 'rss' ? RssFeedZod : T extends 'instagram' ? InstagramStreamerZod : never;
|
|
112
112
|
/**
|
|
113
113
|
* The platforms whose `usersForLiveRole` the single-streamer route RESOLVES from ids into names.
|
|
114
114
|
*
|
|
@@ -211,6 +211,7 @@ type ShortViewKeySets = {
|
|
|
211
211
|
club: 'streamerUserName' | 'guildId' | OrderKeys;
|
|
212
212
|
twitter: 'streamerUserName' | 'guildId' | OrderKeys;
|
|
213
213
|
rss: 'streamerUserName' | 'feedTitle' | 'guildId' | OrderKeys;
|
|
214
|
+
instagram: 'streamerUserName' | 'avatarUrl' | 'guildId' | OrderKeys;
|
|
214
215
|
whatnot: never;
|
|
215
216
|
};
|
|
216
217
|
export type Platformstreamers<T extends boolean, P extends AllPlatforms> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllPlatforms, ClubStreamerZod, RssFeedZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
1
|
+
import { AllPlatforms, ClubStreamerZod, RssFeedZod, InstagramStreamerZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
2
2
|
import { LeaderBoardTypesEnum, StreamerMessageTypeEnum } from '@prisma/client';
|
|
3
3
|
import { RumbleType } from './guildPlatform';
|
|
4
4
|
import { CancelOutWebResponses } from '../types';
|
|
@@ -80,7 +80,7 @@ export type PlatformActionReturnTypes = {
|
|
|
80
80
|
'deleteKickStreamerRolesRaw': Awaited<ReturnType<APIPlatformAction['deleteKickStreamerRoles']>>;
|
|
81
81
|
'deleteKickStreamerRolesSuccess': CancelOutWebResponses<Awaited<ReturnType<APIPlatformAction['deleteKickStreamerRoles']>>>;
|
|
82
82
|
};
|
|
83
|
-
export type StreamerUpdateMessage = (KickStreamerZod | TwitchStreamerZod | RumbleStreamerZod | TikTokStreamerZod | YouTubeStreamerZod | ClubStreamerZod | TwitterStreamerZod | WhatnotStreamerZod | RssFeedZod)['customMessages'][number];
|
|
83
|
+
export type StreamerUpdateMessage = (KickStreamerZod | TwitchStreamerZod | RumbleStreamerZod | TikTokStreamerZod | YouTubeStreamerZod | ClubStreamerZod | TwitterStreamerZod | WhatnotStreamerZod | RssFeedZod | InstagramStreamerZod)['customMessages'][number];
|
|
84
84
|
export type KickRolesType = 'leaderboardSyncRoles' | 'giftedSubRoles';
|
|
85
85
|
export type KickRolesSubType<T extends KickRolesType> = T extends 'leaderboardSyncRoles' ? LeaderBoardTypesEnum : T extends 'giftedSubRoles' ? string : never;
|
|
86
86
|
export type KickRolesData<T extends KickRolesType> = T extends 'leaderboardSyncRoles' ? KickStreamerZod['leaderBoardSyncRoles'][number] : T extends 'giftedSubRoles' ? KickStreamerZod['giftedSubRoles'][number] : never;
|
|
@@ -19,8 +19,8 @@ export declare class APIGuildRolePanel {
|
|
|
19
19
|
thumbnail: string | null;
|
|
20
20
|
author: string | null;
|
|
21
21
|
authorIcon: string | null;
|
|
22
|
-
order: number;
|
|
23
22
|
guildRolePanelId: string;
|
|
23
|
+
order: number;
|
|
24
24
|
} | null;
|
|
25
25
|
} & {
|
|
26
26
|
name: string;
|
|
@@ -41,8 +41,8 @@ export declare class APIGuildRolePanel {
|
|
|
41
41
|
thumbnail: string | null;
|
|
42
42
|
author: string | null;
|
|
43
43
|
authorIcon: string | null;
|
|
44
|
-
order: number;
|
|
45
44
|
guildRolePanelId: string;
|
|
45
|
+
order: number;
|
|
46
46
|
})[];
|
|
47
47
|
rows: {
|
|
48
48
|
dbId: string;
|
|
@@ -51,9 +51,9 @@ export declare class APIGuildRolePanel {
|
|
|
51
51
|
blacklistRoleIds: string[];
|
|
52
52
|
emojiUnicodeOrId: string | null;
|
|
53
53
|
label: string | null;
|
|
54
|
-
guildRolePanelId: string;
|
|
55
54
|
style: number | null;
|
|
56
55
|
temporaryMinutes: number | null;
|
|
56
|
+
guildRolePanelId: string;
|
|
57
57
|
}[];
|
|
58
58
|
} & {
|
|
59
59
|
name: string;
|
|
@@ -61,14 +61,14 @@ export declare class APIGuildRolePanel {
|
|
|
61
61
|
guildId: string;
|
|
62
62
|
channelId: string;
|
|
63
63
|
messageId: string | null;
|
|
64
|
-
|
|
64
|
+
webhookEnabled: boolean;
|
|
65
|
+
webhookUsername: string | null;
|
|
66
|
+
webhookAvatarUrl: string | null;
|
|
65
67
|
panelId: string;
|
|
66
68
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
67
69
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
68
70
|
maxRoles: number | null;
|
|
69
|
-
|
|
70
|
-
webhookUsername: string | null;
|
|
71
|
-
webhookAvatarUrl: string | null;
|
|
71
|
+
logChannelId: string | null;
|
|
72
72
|
requireAccountAgeDays: number | null;
|
|
73
73
|
requireJoinAgeDays: number | null;
|
|
74
74
|
requireMessageCount: number | null;
|
|
@@ -89,8 +89,8 @@ export declare class APIGuildRolePanel {
|
|
|
89
89
|
thumbnail: string | null;
|
|
90
90
|
author: string | null;
|
|
91
91
|
authorIcon: string | null;
|
|
92
|
-
order: number;
|
|
93
92
|
guildRolePanelId: string;
|
|
93
|
+
order: number;
|
|
94
94
|
} | null;
|
|
95
95
|
} & {
|
|
96
96
|
name: string;
|
|
@@ -111,8 +111,8 @@ export declare class APIGuildRolePanel {
|
|
|
111
111
|
thumbnail: string | null;
|
|
112
112
|
author: string | null;
|
|
113
113
|
authorIcon: string | null;
|
|
114
|
-
order: number;
|
|
115
114
|
guildRolePanelId: string;
|
|
115
|
+
order: number;
|
|
116
116
|
})[];
|
|
117
117
|
rows: {
|
|
118
118
|
dbId: string;
|
|
@@ -121,9 +121,9 @@ export declare class APIGuildRolePanel {
|
|
|
121
121
|
blacklistRoleIds: string[];
|
|
122
122
|
emojiUnicodeOrId: string | null;
|
|
123
123
|
label: string | null;
|
|
124
|
-
guildRolePanelId: string;
|
|
125
124
|
style: number | null;
|
|
126
125
|
temporaryMinutes: number | null;
|
|
126
|
+
guildRolePanelId: string;
|
|
127
127
|
}[];
|
|
128
128
|
} & {
|
|
129
129
|
name: string;
|
|
@@ -131,14 +131,14 @@ export declare class APIGuildRolePanel {
|
|
|
131
131
|
guildId: string;
|
|
132
132
|
channelId: string;
|
|
133
133
|
messageId: string | null;
|
|
134
|
-
|
|
134
|
+
webhookEnabled: boolean;
|
|
135
|
+
webhookUsername: string | null;
|
|
136
|
+
webhookAvatarUrl: string | null;
|
|
135
137
|
panelId: string;
|
|
136
138
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
137
139
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
138
140
|
maxRoles: number | null;
|
|
139
|
-
|
|
140
|
-
webhookUsername: string | null;
|
|
141
|
-
webhookAvatarUrl: string | null;
|
|
141
|
+
logChannelId: string | null;
|
|
142
142
|
requireAccountAgeDays: number | null;
|
|
143
143
|
requireJoinAgeDays: number | null;
|
|
144
144
|
requireMessageCount: number | null;
|
|
@@ -9,9 +9,9 @@ export declare class APIGuildStarboard {
|
|
|
9
9
|
dbId: string;
|
|
10
10
|
guildStarboardId: string;
|
|
11
11
|
roles: string[];
|
|
12
|
-
channels: string[];
|
|
13
12
|
roleMode: import("@prisma/client").$Enums.FilterEnum | null;
|
|
14
13
|
channelMode: import("@prisma/client").$Enums.FilterEnum | null;
|
|
14
|
+
channels: string[];
|
|
15
15
|
} | null;
|
|
16
16
|
} & {
|
|
17
17
|
dbId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,4 +69,4 @@ export { GIVEAWAY_CLAIM_WINDOWS, GIVEAWAY_CLAIM_WINDOW_LABELS, GIVEAWAY_MAX_CLAI
|
|
|
69
69
|
export type { GiveawayClaimWindow, GiveawayWinnerStatus } from './other/giveawayClaims';
|
|
70
70
|
export type { FeatureName, FeatureStatus, ResolvedFeature, } from './other/features';
|
|
71
71
|
export type { Prisma, TSPrisma } from '@prisma/client';
|
|
72
|
-
export type { ClientChangelog, Guild, User, Team, Member, KickStreamer, TwitchStreamer, YoutubeStreamer, TiktokStreamer, RumbleStreamer, ClubStreamer, TwitterStreamer, RssFeed, GuildGiveaway, GuildRolePanel, GuildClipForward } from '@prisma/client';
|
|
72
|
+
export type { ClientChangelog, Guild, User, Team, Member, KickStreamer, TwitchStreamer, YoutubeStreamer, TiktokStreamer, RumbleStreamer, ClubStreamer, TwitterStreamer, RssFeed, InstagramStreamer, GuildGiveaway, GuildRolePanel, GuildClipForward } from '@prisma/client';
|
package/dist/modules/stripe.js
CHANGED
|
@@ -145,6 +145,7 @@ export declare const GuildFeatures: {
|
|
|
145
145
|
KickBadgeAutoSync: bigint;
|
|
146
146
|
KickJoinGate: bigint;
|
|
147
147
|
KickBadgeAntiAbuse: bigint;
|
|
148
|
+
InstagramNotifications: bigint;
|
|
148
149
|
};
|
|
149
150
|
export declare const GuildFeaturesText: Record<keyof typeof GuildFeatures, string>;
|
|
150
151
|
export declare const UserFeatures: {
|
|
@@ -278,8 +279,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
278
279
|
KickBadgeAutoSync: bigint;
|
|
279
280
|
KickJoinGate: bigint;
|
|
280
281
|
KickBadgeAntiAbuse: bigint;
|
|
282
|
+
InstagramNotifications: bigint;
|
|
281
283
|
};
|
|
282
|
-
t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse", string>;
|
|
284
|
+
t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications", string>;
|
|
283
285
|
all: bigint;
|
|
284
286
|
static b: {
|
|
285
287
|
BaseSyncableRoles: bigint;
|
|
@@ -388,8 +390,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
388
390
|
KickBadgeAutoSync: bigint;
|
|
389
391
|
KickJoinGate: bigint;
|
|
390
392
|
KickBadgeAntiAbuse: bigint;
|
|
393
|
+
InstagramNotifications: bigint;
|
|
391
394
|
};
|
|
392
|
-
static t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse", string>;
|
|
395
|
+
static t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications", string>;
|
|
393
396
|
static all: bigint;
|
|
394
397
|
convertBitToField<T extends EnumValues<typeof GuildFeatures>>(bit: T): string | null;
|
|
395
398
|
}
|
package/dist/other/bitfields.js
CHANGED
|
@@ -257,6 +257,7 @@ exports.GuildFeatures = {
|
|
|
257
257
|
KickBadgeAutoSync: 1n << 104n, // Premium: Kick badge roles kept up to date - instant sub role, rechecks, grace.
|
|
258
258
|
KickJoinGate: 1n << 105n, // Premium Plus: fans with the required Kick badge join the server through the link.
|
|
259
259
|
KickBadgeAntiAbuse: 1n << 106n, // Premium Plus: Kick account switch rule, minimum Discord / follow age.
|
|
260
|
+
InstagramNotifications: 1n << 107n, // Premium (Plus inherits), paid only: Instagram posts (phases/instagram/). Limits 0 / 2 / 5, $0.75 add-on.
|
|
260
261
|
};
|
|
261
262
|
exports.GuildFeaturesText = {
|
|
262
263
|
BaseSyncableRoles: 'Basic Syncable Roles',
|
|
@@ -367,6 +368,7 @@ exports.GuildFeaturesText = {
|
|
|
367
368
|
KickBadgeAutoSync: 'Kick Badge Roles: Automatic Updates',
|
|
368
369
|
KickJoinGate: 'Kick Sub-Only Join',
|
|
369
370
|
KickBadgeAntiAbuse: 'Kick Badge Anti-Abuse',
|
|
371
|
+
InstagramNotifications: 'Instagram Notifications',
|
|
370
372
|
};
|
|
371
373
|
exports.UserFeatures = {
|
|
372
374
|
HasOneServerPremium: 1n << 0n,
|
package/dist/other/enums.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare const StreamerMessageTypeEnum: {
|
|
|
35
35
|
readonly twitterLive: "twitterLive";
|
|
36
36
|
readonly twitterOffline: "twitterOffline";
|
|
37
37
|
readonly rssPost: "rssPost";
|
|
38
|
+
readonly instagramPost: "instagramPost";
|
|
38
39
|
};
|
|
39
40
|
export declare const GuildMessageTypeEnum: {
|
|
40
41
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -68,6 +69,7 @@ export declare const GuildMessageTypeEnum: {
|
|
|
68
69
|
readonly twitterLive: "twitterLive";
|
|
69
70
|
readonly twitterOffline: "twitterOffline";
|
|
70
71
|
readonly rssPost: "rssPost";
|
|
72
|
+
readonly instagramPost: "instagramPost";
|
|
71
73
|
};
|
|
72
74
|
export declare const GuildSingleMessageTypeEnum: {
|
|
73
75
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -99,6 +101,7 @@ export declare const PlatformEnum: {
|
|
|
99
101
|
readonly club: "club";
|
|
100
102
|
readonly twitter: "twitter";
|
|
101
103
|
readonly rss: "rss";
|
|
104
|
+
readonly instagram: "instagram";
|
|
102
105
|
};
|
|
103
106
|
export declare const ClipperCategoryEnum: {
|
|
104
107
|
readonly vip: "vip";
|
|
@@ -205,6 +208,7 @@ export declare const $Enums: {
|
|
|
205
208
|
readonly twitterLive: "twitterLive";
|
|
206
209
|
readonly twitterOffline: "twitterOffline";
|
|
207
210
|
readonly rssPost: "rssPost";
|
|
211
|
+
readonly instagramPost: "instagramPost";
|
|
208
212
|
};
|
|
209
213
|
readonly GuildMessageTypeEnum: {
|
|
210
214
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -238,6 +242,7 @@ export declare const $Enums: {
|
|
|
238
242
|
readonly twitterLive: "twitterLive";
|
|
239
243
|
readonly twitterOffline: "twitterOffline";
|
|
240
244
|
readonly rssPost: "rssPost";
|
|
245
|
+
readonly instagramPost: "instagramPost";
|
|
241
246
|
};
|
|
242
247
|
readonly GuildSingleMessageTypeEnum: {
|
|
243
248
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -269,6 +274,7 @@ export declare const $Enums: {
|
|
|
269
274
|
readonly club: "club";
|
|
270
275
|
readonly twitter: "twitter";
|
|
271
276
|
readonly rss: "rss";
|
|
277
|
+
readonly instagram: "instagram";
|
|
272
278
|
};
|
|
273
279
|
readonly ClipperCategoryEnum: {
|
|
274
280
|
readonly vip: "vip";
|
package/dist/other/enums.js
CHANGED
|
@@ -41,6 +41,7 @@ exports.StreamerMessageTypeEnum = {
|
|
|
41
41
|
twitterLive: 'twitterLive',
|
|
42
42
|
twitterOffline: 'twitterOffline',
|
|
43
43
|
rssPost: 'rssPost',
|
|
44
|
+
instagramPost: 'instagramPost',
|
|
44
45
|
};
|
|
45
46
|
exports.GuildMessageTypeEnum = {
|
|
46
47
|
giveawayRerolled: 'giveawayRerolled',
|
|
@@ -75,6 +76,7 @@ exports.GuildMessageTypeEnum = {
|
|
|
75
76
|
twitterLive: 'twitterLive',
|
|
76
77
|
twitterOffline: 'twitterOffline',
|
|
77
78
|
rssPost: 'rssPost',
|
|
79
|
+
instagramPost: 'instagramPost',
|
|
78
80
|
};
|
|
79
81
|
exports.GuildSingleMessageTypeEnum = {
|
|
80
82
|
autoLiveRoleAdded: 'autoLiveRoleAdded',
|
|
@@ -106,6 +108,7 @@ exports.PlatformEnum = {
|
|
|
106
108
|
club: 'club',
|
|
107
109
|
twitter: 'twitter',
|
|
108
110
|
rss: 'rss',
|
|
111
|
+
instagram: 'instagram',
|
|
109
112
|
};
|
|
110
113
|
exports.ClipperCategoryEnum = {
|
|
111
114
|
vip: 'vip',
|
package/dist/other/features.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FEATURE_NAMES: readonly ["freeGames", "gameChangelogs", "robloxNotifications", "fixLinks", "clipperNotifications", "scheduledMessages", "linkedRoles", "reactionRoles", "clipForwarding", "club", "whatnot", "fishing", "giveaways", "starboards", "syncedRoles", "birthdays", "statusRoles", "autoStatusLiveRoles", "streamRoles", "badgeNotifications", "kickBounties", "autoRoles", "giveawayClaims", "influencerPanel", "publicGiveaways", "publicDrops", "sitePolls", "siteAnnouncements", "feedback", "offlineGracePeriod", "vodNotifications", "youtubeReplays", "livePostUpdates", "multiDestination", "scheduledStreams", "inGame", "boostNotifications", "twitter", "voteToTest", "voteToAddSocial", "aiAssistant", "voteToUseAssistant", "assistantShareChat", "latest", "latestYoutube", "repositionEmojis", "kickBadgeAuto", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping", "referralRewards", "votePremium", "rss", "dashboardTour", "leaveFeedback", "setupMcp", "setupChangeLog", "watchTogetherButton"];
|
|
1
|
+
export declare const FEATURE_NAMES: readonly ["freeGames", "gameChangelogs", "robloxNotifications", "fixLinks", "clipperNotifications", "scheduledMessages", "linkedRoles", "reactionRoles", "clipForwarding", "club", "whatnot", "fishing", "giveaways", "starboards", "syncedRoles", "birthdays", "statusRoles", "autoStatusLiveRoles", "streamRoles", "badgeNotifications", "kickBounties", "autoRoles", "giveawayClaims", "influencerPanel", "publicGiveaways", "publicDrops", "sitePolls", "siteAnnouncements", "feedback", "offlineGracePeriod", "vodNotifications", "youtubeReplays", "livePostUpdates", "multiDestination", "scheduledStreams", "inGame", "boostNotifications", "twitter", "voteToTest", "voteToAddSocial", "aiAssistant", "voteToUseAssistant", "assistantShareChat", "latest", "latestYoutube", "repositionEmojis", "kickBadgeAuto", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping", "referralRewards", "votePremium", "rss", "instagram", "dashboardTour", "leaveFeedback", "setupMcp", "setupChangeLog", "watchTogetherButton"];
|
|
2
2
|
export type FeatureName = (typeof FEATURE_NAMES)[number];
|
|
3
3
|
export type FeatureStatus = 'off' | 'beta' | 'public';
|
|
4
4
|
export type ResolvedFeature = 'public' | 'beta' | 'hidden';
|
package/dist/other/features.js
CHANGED
|
@@ -20,6 +20,7 @@ export declare const IN_GAME_TYPES: {
|
|
|
20
20
|
readonly twitter: readonly ["live", "offline", "post"];
|
|
21
21
|
readonly club: readonly ["post"];
|
|
22
22
|
readonly rss: readonly ["post"];
|
|
23
|
+
readonly instagram: readonly ["post"];
|
|
23
24
|
};
|
|
24
25
|
export type InGamePlatform = keyof typeof IN_GAME_TYPES;
|
|
25
26
|
export type InGameAlertType = (typeof IN_GAME_TYPES)[InGamePlatform][number];
|
|
@@ -26,6 +26,7 @@ exports.IN_GAME_TYPES = {
|
|
|
26
26
|
twitter: ['live', 'offline', 'post'],
|
|
27
27
|
club: ['post'],
|
|
28
28
|
rss: ['post'],
|
|
29
|
+
instagram: ['post'],
|
|
29
30
|
};
|
|
30
31
|
/** A creator may pick at most this many connected servers to show on (plan max is 10). */
|
|
31
32
|
exports.MAX_IN_GAME_SERVER_PICKS = 10;
|
|
@@ -30,6 +30,7 @@ export declare const DESTINATION_TYPES: {
|
|
|
30
30
|
readonly twitter: readonly ["live", "post"];
|
|
31
31
|
readonly club: readonly ["post"];
|
|
32
32
|
readonly rss: readonly ["post"];
|
|
33
|
+
readonly instagram: readonly ["post"];
|
|
33
34
|
};
|
|
34
35
|
export type DestinationPlatform = keyof typeof DESTINATION_TYPES;
|
|
35
36
|
export type DestinationType = (typeof DESTINATION_TYPES)[DestinationPlatform][number];
|
|
@@ -36,6 +36,7 @@ exports.DESTINATION_TYPES = {
|
|
|
36
36
|
twitter: ['live', 'post'],
|
|
37
37
|
club: ['post'],
|
|
38
38
|
rss: ['post'],
|
|
39
|
+
instagram: ['post'],
|
|
39
40
|
};
|
|
40
41
|
const SNOWFLAKE = /^\d{17,21}$/;
|
|
41
42
|
const isPingTarget = (v) => typeof v === 'string' && (SNOWFLAKE.test(v) || v === 'everyone' || v === 'here');
|
package/dist/other/prisma.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { TiktokStreamerZod } from './zod/tiktokStreamer.zod';
|
|
|
7
7
|
import { RumbleStreamerZod } from './zod/rumbleStreamer.zod';
|
|
8
8
|
import { ClubStreamerZod } from './zod/clubStreamer.zod';
|
|
9
9
|
import { RssFeedZod } from './zod/rssFeed.zod';
|
|
10
|
+
import { InstagramStreamerZod } from './zod/instagramStreamer.zod';
|
|
10
11
|
import { TwitterStreamerZod } from './zod/twitterStreamer.zod';
|
|
11
12
|
import { WhatnotStreamerZod } from './zod/whatnotStreamer.zod';
|
|
12
13
|
import { KickStreamerZod } from './zod/kickStreamer.zod';
|
|
@@ -40,6 +41,8 @@ export type YouTubeStreamer = TSPrisma.TSPrismaModelsFull['YoutubeStreamer'];
|
|
|
40
41
|
export type ClubStreamer = TSPrisma.TSPrismaModelsFull['ClubStreamer'];
|
|
41
42
|
/** An RSS / Atom feed a server follows. `streamerUserName` is the feed URL lower-cased (the key); `feedUrl` keeps its case. */
|
|
42
43
|
export type RssFeed = TSPrisma.TSPrismaModelsFull['RssFeed'];
|
|
44
|
+
/** An Instagram account a server follows (paid only). `streamerUserName` is the handle, lower-cased; `avatarUrl` our R2 copy. */
|
|
45
|
+
export type InstagramStreamer = TSPrisma.TSPrismaModelsFull['InstagramStreamer'];
|
|
43
46
|
export type TwitterStreamer = TSPrisma.TSPrismaModelsFull['TwitterStreamer'];
|
|
44
47
|
export type WhatnotStreamer = TSPrisma.TSPrismaModelsFull['WhatnotStreamer'];
|
|
45
48
|
export type GuildStarboard = TSPrisma.TSPrismaModelsFull['GuildStarboard'];
|
|
@@ -70,6 +73,7 @@ export type TikTokStreamerZod = z.infer<typeof TiktokStreamerZod.TiktokStreamerS
|
|
|
70
73
|
export type YouTubeStreamerZod = z.infer<typeof YoutubeStreamerZod.YoutubeStreamerSchema>;
|
|
71
74
|
export type ClubStreamerZod = z.infer<typeof ClubStreamerZod.ClubStreamerSchema>;
|
|
72
75
|
export type RssFeedZod = z.infer<typeof RssFeedZod.RssFeedSchema>;
|
|
76
|
+
export type InstagramStreamerZod = z.infer<typeof InstagramStreamerZod.InstagramStreamerSchema>;
|
|
73
77
|
export type TwitterStreamerZod = z.infer<typeof TwitterStreamerZod.TwitterStreamerSchema>;
|
|
74
78
|
export type WhatnotStreamerZod = z.infer<typeof WhatnotStreamerZod.WhatnotStreamerSchema>;
|
|
75
79
|
export type GuildStarboardZod = z.infer<typeof GuildStarboardZod.GuildStarboardSchema>;
|