@notidotbot/noti-api-client 1.9.100 → 1.9.102
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 +83 -0
- package/dist/classes/@me.js +44 -1
- package/dist/classes/admin.d.ts +1 -1
- package/dist/classes/client.d.ts +1 -1
- package/dist/classes/guildPlatform.d.ts +9 -2
- package/dist/classes/guildPlatformAction.d.ts +2 -2
- package/dist/classes/guildRolePanel.d.ts +12 -12
- package/dist/classes/guildStarboard.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/other/bitfields.d.ts +5 -2
- package/dist/other/bitfields.js +2 -0
- package/dist/other/enums.d.ts +6 -0
- package/dist/other/enums.js +3 -0
- package/dist/other/features.d.ts +1 -1
- package/dist/other/features.js +3 -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 +49 -0
- package/dist/other/templates.js +42 -3
- package/dist/other/types.d.ts +3 -0
- package/dist/other/zod/client.zod.d.ts +2 -0
- package/dist/other/zod/clipForward.zod.d.ts +3 -0
- package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
- package/dist/other/zod/drops.zod.d.ts +1 -0
- package/dist/other/zod/gameConfig.zod.d.ts +1 -1
- package/dist/other/zod/guild.zod.d.ts +12 -0
- package/dist/other/zod/guild.zod.js +2 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -2
- package/dist/other/zod/rssFeed.zod.d.ts +153 -0
- package/dist/other/zod/rssFeed.zod.js +48 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +2 -0
- package/dist/other/zod/schema.zod.d.ts +4 -1
- package/dist/other/zod/schema.zod.js +3 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
- package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
- package/dist/other/zod/zod.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +2956 -0
- package/prisma/schema/models/rssFeed.prisma +131 -0
- package/prisma/schema/schema.prisma +3 -0
package/dist/classes/@me.d.ts
CHANGED
|
@@ -47,6 +47,26 @@ export declare class APIMe {
|
|
|
47
47
|
setServerPremium({ auth, guildId }: MeFunctionsInput['setServerPremium']): Promise<import("../types").WebResponse<ServerPremiumAssignment>>;
|
|
48
48
|
/** Take the upgrade back off whichever server holds it. Starts the cooldown, same as placing it. */
|
|
49
49
|
deleteServerPremium({ auth }: MeFunctionsInput['deleteServerPremium']): Promise<import("../types").WebResponse<ServerPremiumRemoval>>;
|
|
50
|
+
/**
|
|
51
|
+
* Referral rewards: the user's referral link, how their referrals did, and the free premium days ready to
|
|
52
|
+
* use. 404 while the `referralRewards` launch flag is closed to this user.
|
|
53
|
+
*/
|
|
54
|
+
getReferrals({ auth }: MeFunctionsInput['getReferrals']): Promise<import("../types").WebResponse<ReferralSummary>>;
|
|
55
|
+
/**
|
|
56
|
+
* Put every free premium day the user has earned (up to the 90-day cap) on a server they manage that has
|
|
57
|
+
* no premium. 409 when there is nothing to use, the server already has premium, or it is already full.
|
|
58
|
+
*/
|
|
59
|
+
claimReferralDays({ auth, guildId }: MeFunctionsInput['claimReferralDays']): Promise<import("../types").WebResponse<ReferralDaysClaim>>;
|
|
60
|
+
/**
|
|
61
|
+
* Dashboard tour: this person's progress, and `show` - whether to start the tour now (after a setup wizard
|
|
62
|
+
* save). 403 `not_available` while the `dashboardTour` launch flag is closed to this user.
|
|
63
|
+
*/
|
|
64
|
+
getDashboardTour({ auth }: MeFunctionsInput['getDashboardTour']): Promise<import("../types").WebResponse<DashboardTourState>>;
|
|
65
|
+
/**
|
|
66
|
+
* Save one move in the tour. `{ step: 0, status: 'started' }` starts it over (the replay button); pass `guildId`
|
|
67
|
+
* on the start - the server whose setup wizard launched it. Back never lowers the furthest stop reached.
|
|
68
|
+
*/
|
|
69
|
+
updateDashboardTour({ auth, step, status, guildId }: MeFunctionsInput['updateDashboardTour']): Promise<import("../types").WebResponse<DashboardTourState>>;
|
|
50
70
|
}
|
|
51
71
|
export type MeFunctionsInput<T extends GuildDataType = never> = {
|
|
52
72
|
'getCurrentUser': {
|
|
@@ -87,6 +107,22 @@ export type MeFunctionsInput<T extends GuildDataType = never> = {
|
|
|
87
107
|
'deleteServerPremium': {
|
|
88
108
|
auth: string;
|
|
89
109
|
};
|
|
110
|
+
'getReferrals': {
|
|
111
|
+
auth: string;
|
|
112
|
+
};
|
|
113
|
+
'claimReferralDays': {
|
|
114
|
+
auth: string;
|
|
115
|
+
guildId: string;
|
|
116
|
+
};
|
|
117
|
+
'getDashboardTour': {
|
|
118
|
+
auth: string;
|
|
119
|
+
};
|
|
120
|
+
'updateDashboardTour': {
|
|
121
|
+
auth: string;
|
|
122
|
+
step: number;
|
|
123
|
+
status: DashboardTourStatus;
|
|
124
|
+
guildId?: string;
|
|
125
|
+
};
|
|
90
126
|
'connectMinecraft': {
|
|
91
127
|
auth: string;
|
|
92
128
|
code: string;
|
|
@@ -127,6 +163,14 @@ export type MeGetReturnTypes = {
|
|
|
127
163
|
'setServerPremiumSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['setServerPremium']>>>;
|
|
128
164
|
'deleteServerPremiumRaw': Awaited<ReturnType<APIMe['deleteServerPremium']>>;
|
|
129
165
|
'deleteServerPremiumSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['deleteServerPremium']>>>;
|
|
166
|
+
'getReferralsRaw': Awaited<ReturnType<APIMe['getReferrals']>>;
|
|
167
|
+
'getReferralsSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['getReferrals']>>>;
|
|
168
|
+
'claimReferralDaysRaw': Awaited<ReturnType<APIMe['claimReferralDays']>>;
|
|
169
|
+
'claimReferralDaysSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['claimReferralDays']>>>;
|
|
170
|
+
'getDashboardTourRaw': Awaited<ReturnType<APIMe['getDashboardTour']>>;
|
|
171
|
+
'getDashboardTourSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['getDashboardTour']>>>;
|
|
172
|
+
'updateDashboardTourRaw': Awaited<ReturnType<APIMe['updateDashboardTour']>>;
|
|
173
|
+
'updateDashboardTourSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['updateDashboardTour']>>>;
|
|
130
174
|
'connectMinecraftRaw': Awaited<ReturnType<APIMe['connectMinecraft']>>;
|
|
131
175
|
'connectMinecraftSuccess': CancelOutWebResponses<Awaited<ReturnType<APIMe['connectMinecraft']>>>;
|
|
132
176
|
'getMinecraftLinksRaw': Awaited<ReturnType<APIMe['getMinecraftLinks']>>;
|
|
@@ -278,3 +322,42 @@ export type ServerPremiumRemoval = {
|
|
|
278
322
|
guildName: string;
|
|
279
323
|
cooldownUntil: string;
|
|
280
324
|
};
|
|
325
|
+
/** A user's referral rewards (Noti-v3 modules/referralRewards.ts ReferralSummary). */
|
|
326
|
+
export type ReferralSummary = {
|
|
327
|
+
/** Their invite link. Null only for an account id Discord would not issue. */
|
|
328
|
+
link: string | null;
|
|
329
|
+
/** Waiting for the 7-day check. */
|
|
330
|
+
pending: number;
|
|
331
|
+
/** Counted - earned days. */
|
|
332
|
+
approved: number;
|
|
333
|
+
/** Waiting for a staff check (counted with `pending` in Discord's /referral). */
|
|
334
|
+
held: number;
|
|
335
|
+
/** Did not count: rejected, over the monthly cap, or taken back after Noti was removed. */
|
|
336
|
+
rejected: number;
|
|
337
|
+
earnedDays: number;
|
|
338
|
+
spentDays: number;
|
|
339
|
+
availableDays: number;
|
|
340
|
+
};
|
|
341
|
+
export type ReferralDaysClaim = {
|
|
342
|
+
guildId: string;
|
|
343
|
+
/** Days added to the server. */
|
|
344
|
+
days: number;
|
|
345
|
+
/** When the server's free premium now ends. */
|
|
346
|
+
endsAt: string;
|
|
347
|
+
/** True when the server hit the 90-day cap and some days stayed saved. */
|
|
348
|
+
capped: boolean;
|
|
349
|
+
};
|
|
350
|
+
/** Stops in the dashboard tour (Noti-v3 modules/dashboardTour.ts TOUR_STEPS). `step` runs 0..this. */
|
|
351
|
+
export declare const DASHBOARD_TOUR_STEPS = 6;
|
|
352
|
+
export type DashboardTourStatus = 'started' | 'finished' | 'skipped';
|
|
353
|
+
/** A person's dashboard tour (Noti-v3 routes/@me/dashboardTour.ts). */
|
|
354
|
+
export type DashboardTourState = {
|
|
355
|
+
/** The tour's current version. */
|
|
356
|
+
version: number;
|
|
357
|
+
/** Null before they have ever seen it. */
|
|
358
|
+
status: DashboardTourStatus | null;
|
|
359
|
+
/** Furthest stop reached. */
|
|
360
|
+
lastStep: number;
|
|
361
|
+
/** Start the tour now: never seen, or only an older version. */
|
|
362
|
+
show: boolean;
|
|
363
|
+
};
|
package/dist/classes/@me.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIMe = void 0;
|
|
3
|
+
exports.DASHBOARD_TOUR_STEPS = exports.APIMe = void 0;
|
|
4
4
|
// Data.
|
|
5
5
|
class APIMe {
|
|
6
6
|
web;
|
|
@@ -128,5 +128,48 @@ class APIMe {
|
|
|
128
128
|
endpoint: this.web.qp('/@me/premium/server'),
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Referral rewards: the user's referral link, how their referrals did, and the free premium days ready to
|
|
133
|
+
* use. 404 while the `referralRewards` launch flag is closed to this user.
|
|
134
|
+
*/
|
|
135
|
+
async getReferrals({ auth }) {
|
|
136
|
+
return await this.web.request({
|
|
137
|
+
method: 'GET', auth,
|
|
138
|
+
endpoint: this.web.qp(`/@me/referrals`),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Put every free premium day the user has earned (up to the 90-day cap) on a server they manage that has
|
|
143
|
+
* no premium. 409 when there is nothing to use, the server already has premium, or it is already full.
|
|
144
|
+
*/
|
|
145
|
+
async claimReferralDays({ auth, guildId }) {
|
|
146
|
+
return await this.web.request({
|
|
147
|
+
method: 'POST', auth,
|
|
148
|
+
endpoint: this.web.qp(`/@me/referrals/guilds/${guildId}`),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Dashboard tour: this person's progress, and `show` - whether to start the tour now (after a setup wizard
|
|
153
|
+
* save). 403 `not_available` while the `dashboardTour` launch flag is closed to this user.
|
|
154
|
+
*/
|
|
155
|
+
async getDashboardTour({ auth }) {
|
|
156
|
+
return await this.web.request({
|
|
157
|
+
method: 'GET', auth,
|
|
158
|
+
endpoint: this.web.qp('/@me/dashboard-tour'),
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Save one move in the tour. `{ step: 0, status: 'started' }` starts it over (the replay button); pass `guildId`
|
|
163
|
+
* on the start - the server whose setup wizard launched it. Back never lowers the furthest stop reached.
|
|
164
|
+
*/
|
|
165
|
+
async updateDashboardTour({ auth, step, status, guildId }) {
|
|
166
|
+
return await this.web.request({
|
|
167
|
+
method: 'PUT', auth,
|
|
168
|
+
endpoint: this.web.qp('/@me/dashboard-tour'),
|
|
169
|
+
body: { step, status, ...(guildId ? { guildId } : {}) },
|
|
170
|
+
});
|
|
171
|
+
}
|
|
131
172
|
}
|
|
132
173
|
exports.APIMe = APIMe;
|
|
174
|
+
/** Stops in the dashboard tour (Noti-v3 modules/dashboardTour.ts TOUR_STEPS). `step` runs 0..this. */
|
|
175
|
+
exports.DASHBOARD_TOUR_STEPS = 6;
|
package/dist/classes/admin.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ export type AdminGetReturnTypes = {
|
|
|
254
254
|
'getAnalyticsEventsRaw': Awaited<ReturnType<APIAdmin['getAnalyticsEvents']>>;
|
|
255
255
|
'getAnalyticsEventsSuccess': CancelOutWebResponses<Awaited<ReturnType<APIAdmin['getAnalyticsEvents']>>>;
|
|
256
256
|
};
|
|
257
|
-
export type NotificationProviderName = 'kick' | 'twitch' | 'rumble' | 'tiktok' | 'youtube' | 'whatnot' | 'club' | 'twitter' | 'vods' | 'clips' | 'gameDeal' | 'gameChangelog' | 'roblox' | 'kickBounties';
|
|
257
|
+
export type NotificationProviderName = 'kick' | 'twitch' | 'rumble' | 'tiktok' | 'youtube' | 'whatnot' | 'club' | 'twitter' | 'rss' | 'vods' | 'clips' | 'gameDeal' | 'gameChangelog' | 'roblox' | 'kickBounties';
|
|
258
258
|
export type FixUrlRule = {
|
|
259
259
|
dbId: string;
|
|
260
260
|
original: string;
|
package/dist/classes/client.d.ts
CHANGED
|
@@ -41,13 +41,13 @@ export declare class APIClient {
|
|
|
41
41
|
thumbnail: string | null;
|
|
42
42
|
authorIcon: string;
|
|
43
43
|
createdAt: Date;
|
|
44
|
-
tags: string[];
|
|
45
44
|
clientId: string;
|
|
46
45
|
identifier: string;
|
|
47
46
|
isPinned: boolean;
|
|
48
47
|
views: number | null;
|
|
49
48
|
reactions: string[];
|
|
50
49
|
reactionsCount: number | null;
|
|
50
|
+
tags: string[];
|
|
51
51
|
authorName: string;
|
|
52
52
|
lastEdited: Date;
|
|
53
53
|
isPublic: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllPlatforms, ClubStreamerZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
1
|
+
import { AllPlatforms, ClubStreamerZod, RssFeedZod, 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 : 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 : never;
|
|
112
112
|
/**
|
|
113
113
|
* The platforms whose `usersForLiveRole` the single-streamer route RESOLVES from ids into names.
|
|
114
114
|
*
|
|
@@ -210,6 +210,7 @@ type ShortViewKeySets = {
|
|
|
210
210
|
youtube: 'streamerUserName' | 'streamerId' | 'guildId' | OrderKeys;
|
|
211
211
|
club: 'streamerUserName' | 'guildId' | OrderKeys;
|
|
212
212
|
twitter: 'streamerUserName' | 'guildId' | OrderKeys;
|
|
213
|
+
rss: 'streamerUserName' | 'feedTitle' | 'guildId' | OrderKeys;
|
|
213
214
|
whatnot: never;
|
|
214
215
|
};
|
|
215
216
|
export type Platformstreamers<T extends boolean, P extends AllPlatforms> = {
|
|
@@ -234,6 +235,12 @@ export type Platformstreamers<T extends boolean, P extends AllPlatforms> = {
|
|
|
234
235
|
streamers: P extends ServedPlatform ? ((T extends true ? Pick<GuildSingleStreamer<P>, Extract<keyof GuildSingleStreamer<P>, ShortViewKeySets[P]>> : GuildSingleStreamer<P>) & WithInfluencerLink)[] : never;
|
|
235
236
|
currentTotal: number;
|
|
236
237
|
maxLimit: number;
|
|
238
|
+
/**
|
|
239
|
+
* RSS only: how often this server's feeds are checked, in minutes (15 / 10 / 5 by plan), and the fastest any plan
|
|
240
|
+
* gets. Show "checked every {pollMinutes} minutes" and, when it is above `fastestPollMinutes`, the Premium Plus line.
|
|
241
|
+
*/
|
|
242
|
+
pollMinutes?: number;
|
|
243
|
+
fastestPollMinutes?: number;
|
|
237
244
|
premium: {
|
|
238
245
|
tierId: string;
|
|
239
246
|
tierName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllPlatforms, ClubStreamerZod, TwitterStreamerZod, WhatnotStreamerZod, KickStreamerZod, RumbleStreamerZod, TikTokStreamerZod, TwitchStreamerZod, YouTubeStreamerZod } from '../other/prisma';
|
|
1
|
+
import { AllPlatforms, ClubStreamerZod, RssFeedZod, 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)['customMessages'][number];
|
|
83
|
+
export type StreamerUpdateMessage = (KickStreamerZod | TwitchStreamerZod | RumbleStreamerZod | TikTokStreamerZod | YouTubeStreamerZod | ClubStreamerZod | TwitterStreamerZod | WhatnotStreamerZod | RssFeedZod)['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
|
-
guildRolePanelId: string;
|
|
23
22
|
order: number;
|
|
23
|
+
guildRolePanelId: string;
|
|
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
|
-
guildRolePanelId: string;
|
|
45
44
|
order: number;
|
|
45
|
+
guildRolePanelId: string;
|
|
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;
|
|
54
55
|
style: number | null;
|
|
55
56
|
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
|
-
webhookEnabled: boolean;
|
|
65
|
-
webhookUsername: string | null;
|
|
66
|
-
webhookAvatarUrl: string | null;
|
|
67
64
|
panelId: string;
|
|
68
65
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
69
66
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
70
67
|
maxRoles: number | null;
|
|
71
68
|
logChannelId: string | null;
|
|
69
|
+
webhookEnabled: boolean;
|
|
70
|
+
webhookUsername: string | null;
|
|
71
|
+
webhookAvatarUrl: 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
|
-
guildRolePanelId: string;
|
|
93
92
|
order: number;
|
|
93
|
+
guildRolePanelId: string;
|
|
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
|
-
guildRolePanelId: string;
|
|
115
114
|
order: number;
|
|
115
|
+
guildRolePanelId: string;
|
|
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;
|
|
124
125
|
style: number | null;
|
|
125
126
|
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
|
-
webhookEnabled: boolean;
|
|
135
|
-
webhookUsername: string | null;
|
|
136
|
-
webhookAvatarUrl: string | null;
|
|
137
134
|
panelId: string;
|
|
138
135
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
139
136
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
140
137
|
maxRoles: number | null;
|
|
141
138
|
logChannelId: string | null;
|
|
139
|
+
webhookEnabled: boolean;
|
|
140
|
+
webhookUsername: string | null;
|
|
141
|
+
webhookAvatarUrl: 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[];
|
|
12
13
|
roleMode: import("@prisma/client").$Enums.FilterEnum | null;
|
|
13
14
|
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
|
@@ -67,4 +67,4 @@ export { GIVEAWAY_CLAIM_WINDOWS, GIVEAWAY_CLAIM_WINDOW_LABELS, GIVEAWAY_MAX_CLAI
|
|
|
67
67
|
export type { GiveawayClaimWindow, GiveawayWinnerStatus } from './other/giveawayClaims';
|
|
68
68
|
export type { FeatureName, FeatureStatus, ResolvedFeature, } from './other/features';
|
|
69
69
|
export type { Prisma, TSPrisma } from '@prisma/client';
|
|
70
|
-
export type { ClientChangelog, Guild, User, Team, Member, KickStreamer, TwitchStreamer, YoutubeStreamer, TiktokStreamer, RumbleStreamer, ClubStreamer, TwitterStreamer, GuildGiveaway, GuildRolePanel, GuildClipForward } from '@prisma/client';
|
|
70
|
+
export type { ClientChangelog, Guild, User, Team, Member, KickStreamer, TwitchStreamer, YoutubeStreamer, TiktokStreamer, RumbleStreamer, ClubStreamer, TwitterStreamer, RssFeed, GuildGiveaway, GuildRolePanel, GuildClipForward } from '@prisma/client';
|
|
@@ -138,6 +138,7 @@ export declare const GuildFeatures: {
|
|
|
138
138
|
BirthdayPostOptions: bigint;
|
|
139
139
|
JoinAnniversaries: bigint;
|
|
140
140
|
ScheduledStreams: bigint;
|
|
141
|
+
RssNotifications: bigint;
|
|
141
142
|
};
|
|
142
143
|
export declare const GuildFeaturesText: Record<keyof typeof GuildFeatures, string>;
|
|
143
144
|
export declare const UserFeatures: {
|
|
@@ -264,8 +265,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
264
265
|
BirthdayPostOptions: bigint;
|
|
265
266
|
JoinAnniversaries: bigint;
|
|
266
267
|
ScheduledStreams: bigint;
|
|
268
|
+
RssNotifications: bigint;
|
|
267
269
|
};
|
|
268
|
-
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", string>;
|
|
270
|
+
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", string>;
|
|
269
271
|
all: bigint;
|
|
270
272
|
static b: {
|
|
271
273
|
BaseSyncableRoles: bigint;
|
|
@@ -367,8 +369,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
367
369
|
BirthdayPostOptions: bigint;
|
|
368
370
|
JoinAnniversaries: bigint;
|
|
369
371
|
ScheduledStreams: bigint;
|
|
372
|
+
RssNotifications: bigint;
|
|
370
373
|
};
|
|
371
|
-
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", string>;
|
|
374
|
+
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", string>;
|
|
372
375
|
static all: bigint;
|
|
373
376
|
convertBitToField<T extends EnumValues<typeof GuildFeatures>>(bit: T): string | null;
|
|
374
377
|
}
|
package/dist/other/bitfields.js
CHANGED
|
@@ -250,6 +250,7 @@ exports.GuildFeatures = {
|
|
|
250
250
|
BirthdayPostOptions: 1n << 97n, // Premium: birthday posts open a thread and / or are pinned for the day (phases/birthday-upgrades/ P2).
|
|
251
251
|
JoinAnniversaries: 1n << 98n, // Premium: yearly join-anniversary posts + milestone roles (phases/birthday-upgrades/ P4).
|
|
252
252
|
ScheduledStreams: 1n << 99n, // Premium: scheduled-stream posts in their own channel + ping role (phases/scheduled-streams/).
|
|
253
|
+
RssNotifications: 1n << 100n, // Every plan: RSS / Atom feed posts (phases/rss/). Limits 1 / 5 / 15, checks 15 / 10 / 5 min.
|
|
253
254
|
};
|
|
254
255
|
exports.GuildFeaturesText = {
|
|
255
256
|
BaseSyncableRoles: 'Basic Syncable Roles',
|
|
@@ -353,6 +354,7 @@ exports.GuildFeaturesText = {
|
|
|
353
354
|
BirthdayPostOptions: 'Birthday Threads & Pins',
|
|
354
355
|
JoinAnniversaries: 'Join Anniversaries',
|
|
355
356
|
ScheduledStreams: 'Scheduled Stream Notifications',
|
|
357
|
+
RssNotifications: 'RSS Feed Notifications',
|
|
356
358
|
};
|
|
357
359
|
exports.UserFeatures = {
|
|
358
360
|
HasOneServerPremium: 1n << 0n,
|
package/dist/other/enums.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const StreamerMessageTypeEnum: {
|
|
|
34
34
|
readonly twitterPost: "twitterPost";
|
|
35
35
|
readonly twitterLive: "twitterLive";
|
|
36
36
|
readonly twitterOffline: "twitterOffline";
|
|
37
|
+
readonly rssPost: "rssPost";
|
|
37
38
|
};
|
|
38
39
|
export declare const GuildMessageTypeEnum: {
|
|
39
40
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -66,6 +67,7 @@ export declare const GuildMessageTypeEnum: {
|
|
|
66
67
|
readonly twitterPost: "twitterPost";
|
|
67
68
|
readonly twitterLive: "twitterLive";
|
|
68
69
|
readonly twitterOffline: "twitterOffline";
|
|
70
|
+
readonly rssPost: "rssPost";
|
|
69
71
|
};
|
|
70
72
|
export declare const GuildSingleMessageTypeEnum: {
|
|
71
73
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -95,6 +97,7 @@ export declare const PlatformEnum: {
|
|
|
95
97
|
readonly whatnot: "whatnot";
|
|
96
98
|
readonly club: "club";
|
|
97
99
|
readonly twitter: "twitter";
|
|
100
|
+
readonly rss: "rss";
|
|
98
101
|
};
|
|
99
102
|
export declare const ClipperCategoryEnum: {
|
|
100
103
|
readonly vip: "vip";
|
|
@@ -200,6 +203,7 @@ export declare const $Enums: {
|
|
|
200
203
|
readonly twitterPost: "twitterPost";
|
|
201
204
|
readonly twitterLive: "twitterLive";
|
|
202
205
|
readonly twitterOffline: "twitterOffline";
|
|
206
|
+
readonly rssPost: "rssPost";
|
|
203
207
|
};
|
|
204
208
|
readonly GuildMessageTypeEnum: {
|
|
205
209
|
readonly giveawayRerolled: "giveawayRerolled";
|
|
@@ -232,6 +236,7 @@ export declare const $Enums: {
|
|
|
232
236
|
readonly twitterPost: "twitterPost";
|
|
233
237
|
readonly twitterLive: "twitterLive";
|
|
234
238
|
readonly twitterOffline: "twitterOffline";
|
|
239
|
+
readonly rssPost: "rssPost";
|
|
235
240
|
};
|
|
236
241
|
readonly GuildSingleMessageTypeEnum: {
|
|
237
242
|
readonly autoLiveRoleAdded: "autoLiveRoleAdded";
|
|
@@ -261,6 +266,7 @@ export declare const $Enums: {
|
|
|
261
266
|
readonly whatnot: "whatnot";
|
|
262
267
|
readonly club: "club";
|
|
263
268
|
readonly twitter: "twitter";
|
|
269
|
+
readonly rss: "rss";
|
|
264
270
|
};
|
|
265
271
|
readonly ClipperCategoryEnum: {
|
|
266
272
|
readonly vip: "vip";
|
package/dist/other/enums.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.StreamerMessageTypeEnum = {
|
|
|
40
40
|
twitterPost: 'twitterPost',
|
|
41
41
|
twitterLive: 'twitterLive',
|
|
42
42
|
twitterOffline: 'twitterOffline',
|
|
43
|
+
rssPost: 'rssPost',
|
|
43
44
|
};
|
|
44
45
|
exports.GuildMessageTypeEnum = {
|
|
45
46
|
giveawayRerolled: 'giveawayRerolled',
|
|
@@ -73,6 +74,7 @@ exports.GuildMessageTypeEnum = {
|
|
|
73
74
|
twitterPost: 'twitterPost',
|
|
74
75
|
twitterLive: 'twitterLive',
|
|
75
76
|
twitterOffline: 'twitterOffline',
|
|
77
|
+
rssPost: 'rssPost',
|
|
76
78
|
};
|
|
77
79
|
exports.GuildSingleMessageTypeEnum = {
|
|
78
80
|
autoLiveRoleAdded: 'autoLiveRoleAdded',
|
|
@@ -102,6 +104,7 @@ exports.PlatformEnum = {
|
|
|
102
104
|
whatnot: 'whatnot',
|
|
103
105
|
club: 'club',
|
|
104
106
|
twitter: 'twitter',
|
|
107
|
+
rss: 'rss',
|
|
105
108
|
};
|
|
106
109
|
exports.ClipperCategoryEnum = {
|
|
107
110
|
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", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping"];
|
|
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", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping", "referralRewards", "rss", "dashboardTour"];
|
|
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
|
@@ -19,6 +19,7 @@ export declare const IN_GAME_TYPES: {
|
|
|
19
19
|
readonly youtube: readonly ["live", "video", "replay"];
|
|
20
20
|
readonly twitter: readonly ["live", "offline", "post"];
|
|
21
21
|
readonly club: readonly ["post"];
|
|
22
|
+
readonly rss: readonly ["post"];
|
|
22
23
|
};
|
|
23
24
|
export type InGamePlatform = keyof typeof IN_GAME_TYPES;
|
|
24
25
|
export type InGameAlertType = (typeof IN_GAME_TYPES)[InGamePlatform][number];
|
|
@@ -25,6 +25,7 @@ exports.IN_GAME_TYPES = {
|
|
|
25
25
|
youtube: ['live', 'video', 'replay'],
|
|
26
26
|
twitter: ['live', 'offline', 'post'],
|
|
27
27
|
club: ['post'],
|
|
28
|
+
rss: ['post'],
|
|
28
29
|
};
|
|
29
30
|
/** A creator may pick at most this many connected servers to show on (plan max is 10). */
|
|
30
31
|
exports.MAX_IN_GAME_SERVER_PICKS = 10;
|
|
@@ -29,6 +29,7 @@ export declare const DESTINATION_TYPES: {
|
|
|
29
29
|
readonly youtube: readonly ["live", "video", "replay"];
|
|
30
30
|
readonly twitter: readonly ["live", "post"];
|
|
31
31
|
readonly club: readonly ["post"];
|
|
32
|
+
readonly rss: readonly ["post"];
|
|
32
33
|
};
|
|
33
34
|
export type DestinationPlatform = keyof typeof DESTINATION_TYPES;
|
|
34
35
|
export type DestinationType = (typeof DESTINATION_TYPES)[DestinationPlatform][number];
|
|
@@ -35,6 +35,7 @@ exports.DESTINATION_TYPES = {
|
|
|
35
35
|
youtube: ['live', 'video', 'replay'],
|
|
36
36
|
twitter: ['live', 'post'],
|
|
37
37
|
club: ['post'],
|
|
38
|
+
rss: ['post'],
|
|
38
39
|
};
|
|
39
40
|
const SNOWFLAKE = /^\d{17,21}$/;
|
|
40
41
|
const isPingTarget = (v) => typeof v === 'string' && (SNOWFLAKE.test(v) || v === 'everyone' || v === 'here');
|
package/dist/other/prisma.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { TwitchStreamerZod } from './zod/twitchStreamer.zod';
|
|
|
6
6
|
import { TiktokStreamerZod } from './zod/tiktokStreamer.zod';
|
|
7
7
|
import { RumbleStreamerZod } from './zod/rumbleStreamer.zod';
|
|
8
8
|
import { ClubStreamerZod } from './zod/clubStreamer.zod';
|
|
9
|
+
import { RssFeedZod } from './zod/rssFeed.zod';
|
|
9
10
|
import { TwitterStreamerZod } from './zod/twitterStreamer.zod';
|
|
10
11
|
import { WhatnotStreamerZod } from './zod/whatnotStreamer.zod';
|
|
11
12
|
import { KickStreamerZod } from './zod/kickStreamer.zod';
|
|
@@ -37,6 +38,8 @@ export type RumbleStreamer = TSPrisma.TSPrismaModelsFull['RumbleStreamer'];
|
|
|
37
38
|
export type TikTokStreamer = TSPrisma.TSPrismaModelsFull['TiktokStreamer'];
|
|
38
39
|
export type YouTubeStreamer = TSPrisma.TSPrismaModelsFull['YoutubeStreamer'];
|
|
39
40
|
export type ClubStreamer = TSPrisma.TSPrismaModelsFull['ClubStreamer'];
|
|
41
|
+
/** An RSS / Atom feed a server follows. `streamerUserName` is the feed URL lower-cased (the key); `feedUrl` keeps its case. */
|
|
42
|
+
export type RssFeed = TSPrisma.TSPrismaModelsFull['RssFeed'];
|
|
40
43
|
export type TwitterStreamer = TSPrisma.TSPrismaModelsFull['TwitterStreamer'];
|
|
41
44
|
export type WhatnotStreamer = TSPrisma.TSPrismaModelsFull['WhatnotStreamer'];
|
|
42
45
|
export type GuildStarboard = TSPrisma.TSPrismaModelsFull['GuildStarboard'];
|
|
@@ -66,6 +69,7 @@ export type RumbleStreamerZod = z.infer<typeof RumbleStreamerZod.RumbleStreamerS
|
|
|
66
69
|
export type TikTokStreamerZod = z.infer<typeof TiktokStreamerZod.TiktokStreamerSchema>;
|
|
67
70
|
export type YouTubeStreamerZod = z.infer<typeof YoutubeStreamerZod.YoutubeStreamerSchema>;
|
|
68
71
|
export type ClubStreamerZod = z.infer<typeof ClubStreamerZod.ClubStreamerSchema>;
|
|
72
|
+
export type RssFeedZod = z.infer<typeof RssFeedZod.RssFeedSchema>;
|
|
69
73
|
export type TwitterStreamerZod = z.infer<typeof TwitterStreamerZod.TwitterStreamerSchema>;
|
|
70
74
|
export type WhatnotStreamerZod = z.infer<typeof WhatnotStreamerZod.WhatnotStreamerSchema>;
|
|
71
75
|
export type GuildStarboardZod = z.infer<typeof GuildStarboardZod.GuildStarboardSchema>;
|