@notidotbot/noti-api-client 1.4.11 → 1.4.13
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/guild.d.ts +27 -0
- package/dist/classes/guild.js +15 -0
- package/dist/classes/premium.d.ts +24 -0
- package/dist/classes/premium.js +6 -0
- package/dist/core/manager.d.ts +2 -0
- package/dist/core/manager.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/modules/stripe.js +1 -0
- package/dist/other/zod/client.zod.d.ts +56 -288
- package/dist/other/zod/client.zod.js +11 -0
- package/dist/other/zod/drops.zod.d.ts +26 -7
- package/dist/other/zod/drops.zod.js +13 -11
- package/dist/other/zod/giveaways.zod.d.ts +61 -322
- package/dist/other/zod/guild.zod.d.ts +260 -1431
- package/dist/other/zod/guild.zod.js +21 -4
- package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
- package/dist/other/zod/kickStreamer.zod.js +3 -3
- package/dist/other/zod/member.zod.d.ts +2 -10
- package/dist/other/zod/r2Storage.zod.d.ts +9 -41
- package/dist/other/zod/r2Storage.zod.js +2 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
- package/dist/other/zod/schema.zod.d.ts +130 -17
- package/dist/other/zod/schema.zod.js +43 -21
- package/dist/other/zod/starboard.zod.d.ts +36 -138
- package/dist/other/zod/team.zod.d.ts +9 -79
- package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
- package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
- package/dist/other/zod/user.zod.d.ts +123 -556
- package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
- package/dist/other/zod/zod.d.ts +12 -83
- package/dist/other/zod/zod.js +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/prisma/generated/ts-prisma.d.ts +2942 -352
- package/prisma/schema/models/client.prisma +71 -53
- package/prisma/schema/models/drops.prisma +127 -125
- package/prisma/schema/models/giveaways.prisma +49 -49
- package/prisma/schema/models/guild.prisma +239 -222
- package/prisma/schema/models/kickStreamer.prisma +125 -125
- package/prisma/schema/models/member.prisma +5 -5
- package/prisma/schema/models/r2Storage.prisma +13 -11
- package/prisma/schema/models/rumbleStreamer.prisma +73 -73
- package/prisma/schema/models/starboard.prisma +36 -36
- package/prisma/schema/models/team.prisma +21 -21
- package/prisma/schema/models/tiktokStreamer.prisma +74 -74
- package/prisma/schema/models/twitchStreamer.prisma +74 -74
- package/prisma/schema/models/user.prisma +117 -117
- package/prisma/schema/models/youtubeStreamer.prisma +75 -75
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GuildZodPartial = exports.GuildZod = void 0;
|
|
4
4
|
const schema_zod_1 = require("./schema.zod");
|
|
5
5
|
const zod_1 = require("./zod");
|
|
6
|
-
const stripe_1 = require("../../modules/stripe");
|
|
7
6
|
const zod_2 = require("zod");
|
|
8
7
|
const GuildSchema = zod_2.z.object({
|
|
9
8
|
guildId: zod_1.SnowFlake,
|
|
10
9
|
locale: zod_2.z.string(),
|
|
11
10
|
blacklisted: zod_2.z.boolean(),
|
|
11
|
+
leftAt: zod_2.z.date().nullable(),
|
|
12
12
|
premium: zod_2.z.lazy(() => GuildPremiumSchema).nullable(),
|
|
13
13
|
bitfield: zod_2.z.string().nullable(),
|
|
14
14
|
overrideBranding: zod_2.z.boolean().nullable(),
|
|
@@ -38,12 +38,28 @@ const GuildSchema = zod_2.z.object({
|
|
|
38
38
|
stickyMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildStickyMessageSchema)), ['channelId']),
|
|
39
39
|
stickyMessageDelaySeconds: zod_2.z.number().min(10).max(300).nullable(),
|
|
40
40
|
gettingStarted: zod_2.z.lazy(() => GuildGettingStartedSchema).nullable(),
|
|
41
|
+
customBotProfile: zod_2.z.lazy(() => GuildCustomBotProfileSchema).nullable(),
|
|
42
|
+
});
|
|
43
|
+
const GuildCustomBotProfileSchema = zod_2.z.object({
|
|
44
|
+
nick: zod_2.z.string().min(1).max(32).nullable(),
|
|
45
|
+
bio: zod_2.z.string().max(190).nullable(),
|
|
46
|
+
avatarKey: zod_2.z.string().nullable(),
|
|
47
|
+
bannerKey: zod_2.z.string().nullable(),
|
|
41
48
|
});
|
|
42
49
|
const GuildPremiumSchema = zod_2.z.object({
|
|
43
50
|
tier: zod_2.z.string(),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
additionalStickyMessages: zod_2.z.number().min(0),
|
|
52
|
+
additionalAutoLiveRoles: zod_2.z.number().min(0),
|
|
53
|
+
additionalLinkedRoles: zod_2.z.number().min(0),
|
|
54
|
+
additionalStatusRoles: zod_2.z.number().min(0),
|
|
55
|
+
additionalStarboards: zod_2.z.number().min(0),
|
|
56
|
+
additionalOverrides: zod_2.z.number().min(0),
|
|
57
|
+
additionalKickConnections: zod_2.z.number().min(0),
|
|
58
|
+
additionalRumbleConnections: zod_2.z.number().min(0),
|
|
59
|
+
additionalTwitchConnections: zod_2.z.number().min(0),
|
|
60
|
+
additionalYoutubeConnections: zod_2.z.number().min(0),
|
|
61
|
+
additionalTiktokConnections: zod_2.z.number().min(0),
|
|
62
|
+
customBot: zod_2.z.boolean(),
|
|
47
63
|
});
|
|
48
64
|
const GuildDisableBrandingSchema = zod_2.z.object({
|
|
49
65
|
stickyMessage: zod_2.z.boolean().nullable(),
|
|
@@ -135,5 +151,6 @@ exports.GuildZod = {
|
|
|
135
151
|
GuildCustomMessageSchema,
|
|
136
152
|
GuildStickyMessageSchema,
|
|
137
153
|
GuildGettingStartedSchema,
|
|
154
|
+
GuildCustomBotProfileSchema,
|
|
138
155
|
};
|
|
139
156
|
exports.GuildZodPartial = Object.fromEntries(Object.entries(exports.GuildZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|