@notidotbot/noti-api-client 1.9.116 → 1.9.118
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 +81 -0
- package/dist/classes/@me.js +37 -0
- package/dist/classes/admin.d.ts +66 -0
- package/dist/classes/admin.js +32 -1
- package/dist/classes/client.d.ts +2 -2
- package/dist/classes/feedback.d.ts +7 -2
- package/dist/classes/feedback.js +1 -0
- package/dist/classes/guild.d.ts +14 -0
- package/dist/classes/guild.js +11 -0
- package/dist/classes/guildClipForward.d.ts +18 -18
- package/dist/classes/guildEmojis.d.ts +28 -34
- package/dist/classes/guildEmojis.js +11 -10
- package/dist/classes/guildRolePanel.d.ts +14 -14
- package/dist/classes/guildStarboard.d.ts +1 -1
- package/dist/other/bitfields.d.ts +11 -2
- package/dist/other/bitfields.js +6 -0
- package/dist/other/features.d.ts +1 -1
- package/dist/other/features.js +1 -0
- package/dist/other/types.d.ts +2 -0
- package/dist/other/zod/gameConfig.zod.d.ts +9 -9
- package/dist/other/zod/guild.zod.d.ts +29 -0
- package/dist/other/zod/guild.zod.js +15 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -2
- package/dist/other/zod/rumbleStreamer.zod.d.ts +1 -1
- package/dist/other/zod/scheduledMessage.zod.d.ts +4 -4
- package/dist/other/zod/schema.zod.d.ts +6 -6
- package/dist/other/zod/user.zod.d.ts +5 -3
- package/dist/other/zod/user.zod.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +43 -0
- package/prisma/schema/models/guild.prisma +22 -0
- package/prisma/schema/models/kickBadge.prisma +24 -0
- package/prisma/schema/models/user.prisma +5 -0
|
@@ -4,13 +4,15 @@ exports.APIGuildEmojis = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Reposition Emojis - reorder a server's emojis in Discord's emoji picker.
|
|
6
6
|
*
|
|
7
|
-
* Discord has no reorder API
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* Discord has no reorder API, and its picker sorts a server's emojis **by name**: case-sensitive (capitals before
|
|
8
|
+
* lowercase), same names oldest upload first. So Noti renames every emoji with a letter prefix in the new order:
|
|
9
|
+
* `a_wave`, `b_heart`, ... (`aa_`, `ab_`, ... past 26). Ids, images and role locks stay, so old messages still show the
|
|
10
|
+
* emoji; people type the new names, and other bots that look an emoji up by name may need updating. Noti updates its
|
|
11
|
+
* own starboards. A re-run replaces Noti's earlier prefix (`base`) instead of stacking it.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* New name = prefix + `base`, cut to 32 characters. Integration emojis (`managed`) and greyed-out ones
|
|
14
|
+
* (`available: false`) cannot be renamed: they keep their name and stay where it sorts, and their place in `order` is
|
|
15
|
+
* ignored - show them apart, as fixed.
|
|
14
16
|
*
|
|
15
17
|
* Free servers: one reposition per 7 days (`nextFreeAt`). Premium: unlimited (`unlimited`). Starting one needs a top.gg
|
|
16
18
|
* vote (403 `vote_required`, Premium skips it) and Manage Expressions for both the caller and Noti. Behind the
|
|
@@ -21,7 +23,7 @@ class APIGuildEmojis {
|
|
|
21
23
|
constructor(web) {
|
|
22
24
|
this.web = web;
|
|
23
25
|
}
|
|
24
|
-
/** The server's emojis in picker order,
|
|
26
|
+
/** The server's emojis in picker order, the weekly cap, permissions, and the current / last job. */
|
|
25
27
|
async getGuildEmojis({ auth, guildId }) {
|
|
26
28
|
return await this.web.request({
|
|
27
29
|
method: 'GET', auth,
|
|
@@ -30,10 +32,9 @@ class APIGuildEmojis {
|
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Start a reposition. `order` is EVERY emoji id in the server, in the new order. Runs in the background - poll
|
|
33
|
-
* `getEmojiReposition` for progress (
|
|
35
|
+
* `getEmojiReposition` for progress (about one rename a second).
|
|
34
36
|
*
|
|
35
|
-
* Errors (`error.code`): 400 `invalid_body` / `mismatch` (the list changed - reload) / `noop` / `
|
|
36
|
-
* `unavailable_locked` (`error.ids`) / `over_limit`; 403 `not_available` / `vote_required` / `not_manager` /
|
|
37
|
+
* Errors (`error.code`): 400 `invalid_body` / `mismatch` (the list changed - reload) / `noop`; 403 `not_available` / `vote_required` / `not_manager` /
|
|
37
38
|
* `missing_permissions`; 409 `running`; 429 `weekly_limit` (`error.resetsAt`, `error.premiumUrl`); 503
|
|
38
39
|
* `guild_unavailable`.
|
|
39
40
|
*/
|
|
@@ -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
|
-
|
|
65
|
-
webhookUsername: string | null;
|
|
66
|
-
webhookAvatarUrl: string | null;
|
|
64
|
+
logChannelId: string | null;
|
|
67
65
|
panelId: string;
|
|
68
66
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
69
67
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
70
68
|
maxRoles: number | null;
|
|
71
|
-
|
|
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
|
-
|
|
135
|
-
webhookUsername: string | null;
|
|
136
|
-
webhookAvatarUrl: string | null;
|
|
134
|
+
logChannelId: string | null;
|
|
137
135
|
panelId: string;
|
|
138
136
|
interactionType: import("@prisma/client").$Enums.RolePanelType;
|
|
139
137
|
assignMode: import("@prisma/client").$Enums.RolePanelAssignMode;
|
|
140
138
|
maxRoles: number | null;
|
|
141
|
-
|
|
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;
|
|
@@ -142,6 +142,9 @@ export declare const GuildFeatures: {
|
|
|
142
142
|
RssAutoThread: bigint;
|
|
143
143
|
FixUrlDeleteWithOriginal: bigint;
|
|
144
144
|
LongBirthdayPanel: bigint;
|
|
145
|
+
KickBadgeAutoSync: bigint;
|
|
146
|
+
KickJoinGate: bigint;
|
|
147
|
+
KickBadgeAntiAbuse: bigint;
|
|
145
148
|
};
|
|
146
149
|
export declare const GuildFeaturesText: Record<keyof typeof GuildFeatures, string>;
|
|
147
150
|
export declare const UserFeatures: {
|
|
@@ -272,8 +275,11 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
272
275
|
RssAutoThread: bigint;
|
|
273
276
|
FixUrlDeleteWithOriginal: bigint;
|
|
274
277
|
LongBirthdayPanel: bigint;
|
|
278
|
+
KickBadgeAutoSync: bigint;
|
|
279
|
+
KickJoinGate: bigint;
|
|
280
|
+
KickBadgeAntiAbuse: bigint;
|
|
275
281
|
};
|
|
276
|
-
t: Record<"
|
|
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>;
|
|
277
283
|
all: bigint;
|
|
278
284
|
static b: {
|
|
279
285
|
BaseSyncableRoles: bigint;
|
|
@@ -379,8 +385,11 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
379
385
|
RssAutoThread: bigint;
|
|
380
386
|
FixUrlDeleteWithOriginal: bigint;
|
|
381
387
|
LongBirthdayPanel: bigint;
|
|
388
|
+
KickBadgeAutoSync: bigint;
|
|
389
|
+
KickJoinGate: bigint;
|
|
390
|
+
KickBadgeAntiAbuse: bigint;
|
|
382
391
|
};
|
|
383
|
-
static t: Record<"
|
|
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>;
|
|
384
393
|
static all: bigint;
|
|
385
394
|
convertBitToField<T extends EnumValues<typeof GuildFeatures>>(bit: T): string | null;
|
|
386
395
|
}
|
package/dist/other/bitfields.js
CHANGED
|
@@ -254,6 +254,9 @@ exports.GuildFeatures = {
|
|
|
254
254
|
RssAutoThread: 1n << 101n, // Premium Plus: open a thread on every RSS feed post.
|
|
255
255
|
FixUrlDeleteWithOriginal: 1n << 102n, // Premium Plus: delete the Fix URL repost when the original message is deleted.
|
|
256
256
|
LongBirthdayPanel: 1n << 103n, // Premium Plus: upcoming birthday panel for the next 90 days or everyone.
|
|
257
|
+
KickBadgeAutoSync: 1n << 104n, // Premium: Kick badge roles kept up to date - instant sub role, rechecks, grace.
|
|
258
|
+
KickJoinGate: 1n << 105n, // Premium Plus: fans with the required Kick badge join the server through the link.
|
|
259
|
+
KickBadgeAntiAbuse: 1n << 106n, // Premium Plus: Kick account switch rule, minimum Discord / follow age.
|
|
257
260
|
};
|
|
258
261
|
exports.GuildFeaturesText = {
|
|
259
262
|
BaseSyncableRoles: 'Basic Syncable Roles',
|
|
@@ -361,6 +364,9 @@ exports.GuildFeaturesText = {
|
|
|
361
364
|
RssAutoThread: 'RSS: Auto Threads',
|
|
362
365
|
FixUrlDeleteWithOriginal: 'Fix URL: Delete With Original',
|
|
363
366
|
LongBirthdayPanel: 'Birthday Panel: 90 Days and Everyone',
|
|
367
|
+
KickBadgeAutoSync: 'Kick Badge Roles: Automatic Updates',
|
|
368
|
+
KickJoinGate: 'Kick Sub-Only Join',
|
|
369
|
+
KickBadgeAntiAbuse: 'Kick Badge Anti-Abuse',
|
|
364
370
|
};
|
|
365
371
|
exports.UserFeatures = {
|
|
366
372
|
HasOneServerPremium: 1n << 0n,
|
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", "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", "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
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
|
+
/** Hours between Kick badge rechecks: 0 (free, none) / 6 (Premium) / 2 (Premium Plus). */
|
|
45
|
+
kickBadgeRecheckHours: number | null;
|
|
44
46
|
defaultTwitterConnections: number | null;
|
|
45
47
|
defaultGameConnections: number | null;
|
|
46
48
|
defaultRobloxConnections: number | null;
|
|
@@ -11,9 +11,9 @@ export declare const GameConfigZod: {
|
|
|
11
11
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
12
12
|
pingRoleId: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"everyone">, z.ZodLiteral<"here">]>>;
|
|
13
13
|
deliveryMode: z.ZodEnum<{
|
|
14
|
+
scheduled: "scheduled";
|
|
14
15
|
instant: "instant";
|
|
15
16
|
window: "window";
|
|
16
|
-
scheduled: "scheduled";
|
|
17
17
|
}>;
|
|
18
18
|
windowStartHour: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
windowEndHour: z.ZodNullable<z.ZodNumber>;
|
|
@@ -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
|
-
steam: "steam";
|
|
26
25
|
epic: "epic";
|
|
26
|
+
steam: "steam";
|
|
27
27
|
gog: "gog";
|
|
28
28
|
prime: "prime";
|
|
29
29
|
}>>;
|
|
30
30
|
freeGameStores: z.ZodArray<z.ZodEnum<{
|
|
31
|
-
steam: "steam";
|
|
32
31
|
epic: "epic";
|
|
32
|
+
steam: "steam";
|
|
33
33
|
gog: "gog";
|
|
34
34
|
prime: "prime";
|
|
35
35
|
}>>;
|
|
36
36
|
upcomingFreeEnabled: z.ZodBoolean;
|
|
37
37
|
upcomingFreeStores: z.ZodArray<z.ZodEnum<{
|
|
38
|
-
steam: "steam";
|
|
39
38
|
epic: "epic";
|
|
39
|
+
steam: "steam";
|
|
40
40
|
gog: "gog";
|
|
41
41
|
prime: "prime";
|
|
42
42
|
}>>;
|
|
43
43
|
freeWeekendEnabled: z.ZodBoolean;
|
|
44
44
|
freeWeekendStores: z.ZodArray<z.ZodEnum<{
|
|
45
|
-
steam: "steam";
|
|
46
45
|
epic: "epic";
|
|
46
|
+
steam: "steam";
|
|
47
47
|
gog: "gog";
|
|
48
48
|
prime: "prime";
|
|
49
49
|
}>>;
|
|
50
50
|
discountsEnabled: z.ZodBoolean;
|
|
51
51
|
discountStores: z.ZodArray<z.ZodEnum<{
|
|
52
|
-
steam: "steam";
|
|
53
52
|
epic: "epic";
|
|
53
|
+
steam: "steam";
|
|
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
|
-
steam: "steam";
|
|
65
64
|
epic: "epic";
|
|
65
|
+
steam: "steam";
|
|
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
|
-
steam: "steam";
|
|
89
88
|
epic: "epic";
|
|
89
|
+
steam: "steam";
|
|
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
|
-
steam: "steam";
|
|
153
152
|
epic: "epic";
|
|
153
|
+
steam: "steam";
|
|
154
154
|
gog: "gog";
|
|
155
155
|
prime: "prime";
|
|
156
156
|
}>>;
|
|
@@ -81,6 +81,35 @@ export declare const GuildZod: {
|
|
|
81
81
|
welcomeEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
82
82
|
leaveEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
83
83
|
syncUsername: z.ZodNullable<z.ZodBoolean>;
|
|
84
|
+
kickBadgeGraceDays: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
kickBadgeRemoveUnmanaged: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
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
|
+
kickBadgeLapseAction: z.ZodNullable<z.ZodEnum<{
|
|
98
|
+
role: "role";
|
|
99
|
+
remove: "remove";
|
|
100
|
+
}>>;
|
|
101
|
+
kickBadgeSwitchRule: z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
off: "off";
|
|
103
|
+
wait: "wait";
|
|
104
|
+
lock: "lock";
|
|
105
|
+
}>>;
|
|
106
|
+
kickBadgeSwitchWaitDays: z.ZodNullable<z.ZodNumber>;
|
|
107
|
+
kickBadgeMinDiscordDays: z.ZodNullable<z.ZodNumber>;
|
|
108
|
+
kickBadgeMinFollowDays: z.ZodNullable<z.ZodNumber>;
|
|
109
|
+
kickBadgeAbuseAction: z.ZodNullable<z.ZodEnum<{
|
|
110
|
+
remove: "remove";
|
|
111
|
+
hold: "hold";
|
|
112
|
+
}>>;
|
|
84
113
|
vodDownloadStoreForHours: z.ZodNullable<z.ZodNumber>;
|
|
85
114
|
twitterFixedUrlHost: z.ZodNullable<z.ZodEnum<{
|
|
86
115
|
"fxtwitter.com": "fxtwitter.com";
|
|
@@ -33,6 +33,21 @@ const GuildSchema = zod_2.z.object({
|
|
|
33
33
|
welcomeEnabled: zod_2.z.boolean().nullable(),
|
|
34
34
|
leaveEnabled: zod_2.z.boolean().nullable(),
|
|
35
35
|
syncUsername: zod_2.z.boolean().nullable(),
|
|
36
|
+
/** Kick badge sync (Premium): days a missing badge keeps its role, 0-14; null = 3. */
|
|
37
|
+
kickBadgeGraceDays: zod_2.z.number().int().min(0).max(14).nullable(),
|
|
38
|
+
/** Kick badge sync (Premium): also remove mapped roles Noti did not give; null = off. */
|
|
39
|
+
kickBadgeRemoveUnmanaged: zod_2.z.boolean().nullable(),
|
|
40
|
+
/** Kick join door (Premium Plus). */
|
|
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
|
+
kickBadgeLapseAction: zod_2.z.enum(['role', 'remove']).nullable(),
|
|
45
|
+
/** Kick anti-abuse (Premium Plus). */
|
|
46
|
+
kickBadgeSwitchRule: zod_2.z.enum(['off', 'wait', 'lock']).nullable(),
|
|
47
|
+
kickBadgeSwitchWaitDays: zod_2.z.number().int().min(1).max(90).nullable(),
|
|
48
|
+
kickBadgeMinDiscordDays: zod_2.z.number().int().min(0).max(365).nullable(),
|
|
49
|
+
kickBadgeMinFollowDays: zod_2.z.number().int().min(0).max(365).nullable(),
|
|
50
|
+
kickBadgeAbuseAction: zod_2.z.enum(['hold', 'remove']).nullable(),
|
|
36
51
|
vodDownloadStoreForHours: zod_2.z.number().min(0).nullable(),
|
|
37
52
|
/** Fixer host for the X post notification link ({defaultFixedURL}). null = the bot's default (fxtwitter.com). Free. */
|
|
38
53
|
twitterFixedUrlHost: zod_2.z.enum(['fxtwitter.com', 'fixupx.com', 'vxtwitter.com', 'fixvx.com']).nullable(),
|
|
@@ -12,9 +12,9 @@ export declare const GuildRolePanelZod: {
|
|
|
12
12
|
dropdown: "dropdown";
|
|
13
13
|
}>;
|
|
14
14
|
assignMode: z.ZodEnum<{
|
|
15
|
+
limit: "limit";
|
|
15
16
|
toggle: "toggle";
|
|
16
17
|
unique: "unique";
|
|
17
|
-
limit: "limit";
|
|
18
18
|
verify: "verify";
|
|
19
19
|
}>;
|
|
20
20
|
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -67,9 +67,9 @@ export declare const GuildRolePanelZod: {
|
|
|
67
67
|
dropdown: "dropdown";
|
|
68
68
|
}>;
|
|
69
69
|
assignMode: z.ZodEnum<{
|
|
70
|
+
limit: "limit";
|
|
70
71
|
toggle: "toggle";
|
|
71
72
|
unique: "unique";
|
|
72
|
-
limit: "limit";
|
|
73
73
|
verify: "verify";
|
|
74
74
|
}>;
|
|
75
75
|
maxRoles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -12,8 +12,8 @@ export declare const RumbleStreamerZod: {
|
|
|
12
12
|
limitLocked: z.ZodBoolean;
|
|
13
13
|
guildId: z.ZodString;
|
|
14
14
|
type: z.ZodEnum<{
|
|
15
|
-
channel: "channel";
|
|
16
15
|
user: "user";
|
|
16
|
+
channel: "channel";
|
|
17
17
|
}>;
|
|
18
18
|
deleteEmbeds: z.ZodNullable<z.ZodBoolean>;
|
|
19
19
|
sendOfflineMessage: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -19,15 +19,15 @@ export declare const ScheduledMessageZod: {
|
|
|
19
19
|
sendToInGame: z.ZodBoolean;
|
|
20
20
|
minecraftContent: z.ZodNullable<z.ZodString>;
|
|
21
21
|
trigger: z.ZodEnum<{
|
|
22
|
-
time: "time";
|
|
23
22
|
stage: "stage";
|
|
23
|
+
time: "time";
|
|
24
24
|
guildEvent: "guildEvent";
|
|
25
25
|
}>;
|
|
26
26
|
recurrence: z.ZodEnum<{
|
|
27
|
+
days: "days";
|
|
27
28
|
weekly: "weekly";
|
|
28
29
|
once: "once";
|
|
29
30
|
daily: "daily";
|
|
30
|
-
days: "days";
|
|
31
31
|
interval: "interval";
|
|
32
32
|
}>;
|
|
33
33
|
daysOfWeek: z.ZodArray<z.ZodNumber>;
|
|
@@ -105,15 +105,15 @@ export declare const ScheduledMessageZod: {
|
|
|
105
105
|
emojiUnicodeOrId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
trigger: z.ZodDefault<z.ZodEnum<{
|
|
108
|
-
time: "time";
|
|
109
108
|
stage: "stage";
|
|
109
|
+
time: "time";
|
|
110
110
|
guildEvent: "guildEvent";
|
|
111
111
|
}>>;
|
|
112
112
|
recurrence: z.ZodDefault<z.ZodEnum<{
|
|
113
|
+
days: "days";
|
|
113
114
|
weekly: "weekly";
|
|
114
115
|
once: "once";
|
|
115
116
|
daily: "daily";
|
|
116
|
-
days: "days";
|
|
117
117
|
interval: "interval";
|
|
118
118
|
}>>;
|
|
119
119
|
daysOfWeek: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
@@ -123,8 +123,8 @@ export declare const ClipperCategoryEnum: z.ZodEnum<{
|
|
|
123
123
|
}>;
|
|
124
124
|
export declare const UserMediaSharePermissionsEnum: z.ZodEnum<{
|
|
125
125
|
sub: "sub";
|
|
126
|
-
everyone: "everyone";
|
|
127
126
|
vip: "vip";
|
|
127
|
+
everyone: "everyone";
|
|
128
128
|
mod: "mod";
|
|
129
129
|
broadcaster: "broadcaster";
|
|
130
130
|
}>;
|
|
@@ -134,8 +134,8 @@ export declare const PlatformsWithVideosEnum: z.ZodEnum<{
|
|
|
134
134
|
youtube: "youtube";
|
|
135
135
|
}>;
|
|
136
136
|
export declare const RumbleTypeEnum: z.ZodEnum<{
|
|
137
|
-
channel: "channel";
|
|
138
137
|
user: "user";
|
|
138
|
+
channel: "channel";
|
|
139
139
|
}>;
|
|
140
140
|
export declare const QueryInEnum: z.ZodEnum<{
|
|
141
141
|
title: "title";
|
|
@@ -182,8 +182,8 @@ export declare const UserNotificationSeverityEnum: z.ZodEnum<{
|
|
|
182
182
|
emergency: "emergency";
|
|
183
183
|
}>;
|
|
184
184
|
export declare const GameStoreEnum: z.ZodEnum<{
|
|
185
|
-
steam: "steam";
|
|
186
185
|
epic: "epic";
|
|
186
|
+
steam: "steam";
|
|
187
187
|
gog: "gog";
|
|
188
188
|
prime: "prime";
|
|
189
189
|
}>;
|
|
@@ -206,9 +206,9 @@ export declare const GameDeliveryEnum: z.ZodEnum<{
|
|
|
206
206
|
instant: "instant";
|
|
207
207
|
}>;
|
|
208
208
|
export declare const NotificationDeliveryEnum: z.ZodEnum<{
|
|
209
|
+
scheduled: "scheduled";
|
|
209
210
|
instant: "instant";
|
|
210
211
|
window: "window";
|
|
211
|
-
scheduled: "scheduled";
|
|
212
212
|
}>;
|
|
213
213
|
export declare const GameRobloxKindEnum: z.ZodEnum<{
|
|
214
214
|
updates: "updates";
|
|
@@ -216,14 +216,14 @@ export declare const GameRobloxKindEnum: z.ZodEnum<{
|
|
|
216
216
|
both: "both";
|
|
217
217
|
}>;
|
|
218
218
|
export declare const ScheduledMessageRecurrenceEnum: z.ZodEnum<{
|
|
219
|
+
days: "days";
|
|
219
220
|
weekly: "weekly";
|
|
220
221
|
once: "once";
|
|
221
222
|
daily: "daily";
|
|
222
|
-
days: "days";
|
|
223
223
|
interval: "interval";
|
|
224
224
|
}>;
|
|
225
225
|
export declare const ScheduledMessageTriggerEnum: z.ZodEnum<{
|
|
226
|
-
time: "time";
|
|
227
226
|
stage: "stage";
|
|
227
|
+
time: "time";
|
|
228
228
|
guildEvent: "guildEvent";
|
|
229
229
|
}>;
|
|
@@ -50,8 +50,8 @@ export declare const UserZod: {
|
|
|
50
50
|
}>;
|
|
51
51
|
onKick: z.ZodArray<z.ZodEnum<{
|
|
52
52
|
sub: "sub";
|
|
53
|
-
everyone: "everyone";
|
|
54
53
|
vip: "vip";
|
|
54
|
+
everyone: "everyone";
|
|
55
55
|
mod: "mod";
|
|
56
56
|
broadcaster: "broadcaster";
|
|
57
57
|
}>>;
|
|
@@ -82,6 +82,7 @@ export declare const UserZod: {
|
|
|
82
82
|
}, z.core.$strip>>>;
|
|
83
83
|
kickAccount: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
84
84
|
accountId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
kickUserId: z.ZodNullable<z.ZodString>;
|
|
85
86
|
username: z.ZodNullable<z.ZodString>;
|
|
86
87
|
chatRoomId: z.ZodNullable<z.ZodString>;
|
|
87
88
|
subscribedTo: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -155,8 +156,8 @@ export declare const UserZod: {
|
|
|
155
156
|
}>;
|
|
156
157
|
onKick: z.ZodArray<z.ZodEnum<{
|
|
157
158
|
sub: "sub";
|
|
158
|
-
everyone: "everyone";
|
|
159
159
|
vip: "vip";
|
|
160
|
+
everyone: "everyone";
|
|
160
161
|
mod: "mod";
|
|
161
162
|
broadcaster: "broadcaster";
|
|
162
163
|
}>>;
|
|
@@ -184,8 +185,8 @@ export declare const UserZod: {
|
|
|
184
185
|
}>;
|
|
185
186
|
onKick: z.ZodArray<z.ZodEnum<{
|
|
186
187
|
sub: "sub";
|
|
187
|
-
everyone: "everyone";
|
|
188
188
|
vip: "vip";
|
|
189
|
+
everyone: "everyone";
|
|
189
190
|
mod: "mod";
|
|
190
191
|
broadcaster: "broadcaster";
|
|
191
192
|
}>>;
|
|
@@ -213,6 +214,7 @@ export declare const UserZod: {
|
|
|
213
214
|
}, z.core.$strip>;
|
|
214
215
|
readonly UserKickAccountSchema: z.ZodObject<{
|
|
215
216
|
accountId: z.ZodNullable<z.ZodString>;
|
|
217
|
+
kickUserId: z.ZodNullable<z.ZodString>;
|
|
216
218
|
username: z.ZodNullable<z.ZodString>;
|
|
217
219
|
chatRoomId: z.ZodNullable<z.ZodString>;
|
|
218
220
|
subscribedTo: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -94,6 +94,7 @@ const UserBirthdaySchema = zod_2.z.object({
|
|
|
94
94
|
});
|
|
95
95
|
const UserKickAccountSchema = zod_2.z.object({
|
|
96
96
|
accountId: zod_2.z.string().nullable(),
|
|
97
|
+
kickUserId: zod_2.z.string().nullable(),
|
|
97
98
|
username: zod_2.z.string().nullable(),
|
|
98
99
|
chatRoomId: zod_2.z.string().nullable(),
|
|
99
100
|
subscribedTo: zod_2.z.array(zod_2.z.lazy(() => UserKickAccountSubscribedToSchema)),
|