@notidotbot/noti-api-client 1.4.0
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/cname.js +3 -0
- package/dist/classes/@me.d.ts +122 -0
- package/dist/classes/@me.js +59 -0
- package/dist/classes/admin.d.ts +71 -0
- package/dist/classes/admin.js +26 -0
- package/dist/classes/client.d.ts +156 -0
- package/dist/classes/client.js +116 -0
- package/dist/classes/emotes.d.ts +31 -0
- package/dist/classes/emotes.js +24 -0
- package/dist/classes/files.d.ts +36 -0
- package/dist/classes/files.js +36 -0
- package/dist/classes/guild.d.ts +187 -0
- package/dist/classes/guild.js +140 -0
- package/dist/classes/guildDrops.d.ts +58 -0
- package/dist/classes/guildDrops.js +32 -0
- package/dist/classes/guildGiveaway.d.ts +110 -0
- package/dist/classes/guildGiveaway.js +76 -0
- package/dist/classes/guildPlatform.d.ts +163 -0
- package/dist/classes/guildPlatform.js +99 -0
- package/dist/classes/guildPlatformAction.d.ts +67 -0
- package/dist/classes/guildPlatformAction.js +26 -0
- package/dist/classes/guildStarboard.d.ts +66 -0
- package/dist/classes/guildStarboard.js +36 -0
- package/dist/classes/linked.d.ts +26 -0
- package/dist/classes/linked.js +32 -0
- package/dist/classes/other.d.ts +83 -0
- package/dist/classes/other.js +53 -0
- package/dist/classes/platform.d.ts +227 -0
- package/dist/classes/platform.js +30 -0
- package/dist/classes/premium.d.ts +179 -0
- package/dist/classes/premium.js +76 -0
- package/dist/classes/sessions.d.ts +42 -0
- package/dist/classes/sessions.js +30 -0
- package/dist/classes/teams.d.ts +88 -0
- package/dist/classes/teams.js +66 -0
- package/dist/classes/telemetry.d.ts +32 -0
- package/dist/classes/telemetry.js +28 -0
- package/dist/classes/user.d.ts +40 -0
- package/dist/classes/user.js +30 -0
- package/dist/classes/vods.d.ts +55 -0
- package/dist/classes/vods.js +38 -0
- package/dist/core/manager.d.ts +57 -0
- package/dist/core/manager.js +78 -0
- package/dist/core/utils.d.ts +4 -0
- package/dist/core/utils.js +26 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +42 -0
- package/dist/modules/stripe.d.ts +12 -0
- package/dist/modules/stripe.js +18 -0
- package/dist/other/bitfields.d.ts +283 -0
- package/dist/other/bitfields.js +323 -0
- package/dist/other/enums.d.ts +2 -0
- package/dist/other/enums.js +10 -0
- package/dist/other/prisma.d.ts +76 -0
- package/dist/other/prisma.js +9 -0
- package/dist/other/templates.d.ts +795 -0
- package/dist/other/templates.js +706 -0
- package/dist/other/types.d.ts +45 -0
- package/dist/other/types.js +17 -0
- package/dist/other/utils.d.ts +5 -0
- package/dist/other/utils.js +51 -0
- package/dist/other/zod/client.zod.d.ts +349 -0
- package/dist/other/zod/client.zod.js +63 -0
- package/dist/other/zod/drops.zod.d.ts +16 -0
- package/dist/other/zod/drops.zod.js +93 -0
- package/dist/other/zod/giveaways.zod.d.ts +382 -0
- package/dist/other/zod/giveaways.zod.js +72 -0
- package/dist/other/zod/guild.zod.d.ts +1638 -0
- package/dist/other/zod/guild.zod.js +139 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +761 -0
- package/dist/other/zod/kickStreamer.zod.js +92 -0
- package/dist/other/zod/member.zod.d.ts +22 -0
- package/dist/other/zod/member.zod.js +15 -0
- package/dist/other/zod/r2Storage.zod.d.ts +56 -0
- package/dist/other/zod/r2Storage.zod.js +21 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +530 -0
- package/dist/other/zod/rumbleStreamer.zod.js +45 -0
- package/dist/other/zod/schema.zod.d.ts +25 -0
- package/dist/other/zod/schema.zod.js +168 -0
- package/dist/other/zod/starboard.zod.d.ts +167 -0
- package/dist/other/zod/starboard.zod.js +46 -0
- package/dist/other/zod/team.zod.d.ts +107 -0
- package/dist/other/zod/team.zod.js +30 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +473 -0
- package/dist/other/zod/tiktokStreamer.zod.js +46 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +473 -0
- package/dist/other/zod/twitchStreamer.zod.js +46 -0
- package/dist/other/zod/user.zod.d.ts +678 -0
- package/dist/other/zod/user.zod.js +124 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +476 -0
- package/dist/other/zod/youtubeStreamer.zod.js +47 -0
- package/dist/other/zod/zod.d.ts +177 -0
- package/dist/other/zod/zod.js +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +37 -0
- package/dist/types.js +2 -0
- package/package.json +63 -0
- package/prisma/generated/index.ts +25 -0
- package/prisma/generated/ts-prisma.d.ts +91725 -0
- package/prisma/schema/models/client.prisma +89 -0
- package/prisma/schema/models/drops.prisma +167 -0
- package/prisma/schema/models/giveaways.prisma +82 -0
- package/prisma/schema/models/guild.prisma +368 -0
- package/prisma/schema/models/kickStreamer.prisma +202 -0
- package/prisma/schema/models/member.prisma +10 -0
- package/prisma/schema/models/r2Storage.prisma +22 -0
- package/prisma/schema/models/rumbleStreamer.prisma +121 -0
- package/prisma/schema/models/starboard.prisma +66 -0
- package/prisma/schema/models/team.prisma +38 -0
- package/prisma/schema/models/tiktokStreamer.prisma +121 -0
- package/prisma/schema/models/twitchStreamer.prisma +122 -0
- package/prisma/schema/models/user.prisma +212 -0
- package/prisma/schema/models/youtubeStreamer.prisma +123 -0
- package/prisma/schema/schema.prisma +182 -0
- package/prisma.config.ts +6 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GuildZodPartial = exports.GuildZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const zod_1 = require("./zod");
|
|
6
|
+
const stripe_1 = require("../../modules/stripe");
|
|
7
|
+
const zod_2 = require("zod");
|
|
8
|
+
const GuildSchema = zod_2.z.object({
|
|
9
|
+
guildId: zod_1.SnowFlake,
|
|
10
|
+
locale: zod_2.z.string(),
|
|
11
|
+
blacklisted: zod_2.z.boolean(),
|
|
12
|
+
premium: zod_2.z.lazy(() => GuildPremiumSchema).nullable(),
|
|
13
|
+
bitfield: zod_2.z.string().nullable(),
|
|
14
|
+
overrideBranding: zod_2.z.boolean().nullable(),
|
|
15
|
+
disableBranding: zod_2.z.lazy(() => GuildDisableBrandingSchema).nullable(),
|
|
16
|
+
birthdayRoleId: zod_1.SnowFlake.nullable(),
|
|
17
|
+
birthdayChannelId: zod_1.SnowFlake.nullable(),
|
|
18
|
+
welcomeChannelId: zod_1.SnowFlake.nullable(),
|
|
19
|
+
leaveChannelId: zod_1.SnowFlake.nullable(),
|
|
20
|
+
birthdayEnabled: zod_2.z.boolean().nullable(),
|
|
21
|
+
welcomeEnabled: zod_2.z.boolean().nullable(),
|
|
22
|
+
leaveEnabled: zod_2.z.boolean().nullable(),
|
|
23
|
+
syncUsername: zod_2.z.boolean().nullable(),
|
|
24
|
+
vodDownloadStoreForHours: zod_2.z.number().min(0).nullable(),
|
|
25
|
+
disableDoubleVoteEntry: zod_2.z.boolean().nullable(),
|
|
26
|
+
giveawayLogsChannelId: zod_1.SnowFlake.nullable(),
|
|
27
|
+
randomMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildRandomMessageSchema)), ['type']),
|
|
28
|
+
autoLiveRoleLogs: zod_1.SnowFlake.nullable(),
|
|
29
|
+
autoLiveRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildAutoLiveRoleSchema)), ['roleId']),
|
|
30
|
+
statusRoleLogs: zod_1.SnowFlake.nullable(),
|
|
31
|
+
statusRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildStatusRoleSchema)), ['roleId']),
|
|
32
|
+
linkedRoleLogs: zod_1.SnowFlake.nullable(),
|
|
33
|
+
linkedRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildLinkedRoleSchema)), ['roleId']),
|
|
34
|
+
notificationOverrides: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildNotificationOverrideSchema)), ['priorityOnConflict']),
|
|
35
|
+
ignoreIfNotCatchedByOverride: zod_2.z.boolean().nullable(),
|
|
36
|
+
singleMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildCustomSingleMessageSchema)), ['type']),
|
|
37
|
+
messages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildCustomMessageSchema)), ['type']),
|
|
38
|
+
stickyMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildStickyMessageSchema)), ['channelId']),
|
|
39
|
+
stickyMessageDelaySeconds: zod_2.z.number().min(10).max(300).nullable(),
|
|
40
|
+
gettingStarted: zod_2.z.lazy(() => GuildGettingStartedSchema).nullable(),
|
|
41
|
+
});
|
|
42
|
+
const GuildPremiumSchema = zod_2.z.object({
|
|
43
|
+
tier: zod_2.z.string(),
|
|
44
|
+
...stripe_1.addonKeys.map((key) => ({
|
|
45
|
+
[key]: zod_2.z.number().min(0),
|
|
46
|
+
})).reduce((a, b) => ({ ...a, ...b }), {}),
|
|
47
|
+
});
|
|
48
|
+
const GuildDisableBrandingSchema = zod_2.z.object({
|
|
49
|
+
stickyMessage: zod_2.z.boolean().nullable(),
|
|
50
|
+
watchOnButton: zod_2.z.boolean().nullable(),
|
|
51
|
+
notifications: zod_2.z.boolean().nullable(),
|
|
52
|
+
welcomeLeave: zod_2.z.boolean().nullable(),
|
|
53
|
+
leaderboard: zod_2.z.boolean().nullable(),
|
|
54
|
+
linkedRoles: zod_2.z.boolean().nullable(),
|
|
55
|
+
giveaways: zod_2.z.boolean().nullable(),
|
|
56
|
+
starboard: zod_2.z.boolean().nullable(),
|
|
57
|
+
birthday: zod_2.z.boolean().nullable(),
|
|
58
|
+
clips: zod_2.z.boolean().nullable(),
|
|
59
|
+
vods: zod_2.z.boolean().nullable(),
|
|
60
|
+
});
|
|
61
|
+
const GuildRandomMessageSchema = zod_2.z.object({
|
|
62
|
+
type: schema_zod_1.GuildMessageTypeEnum,
|
|
63
|
+
messages: zod_2.z.array(zod_2.z.string().max(200)).max(10),
|
|
64
|
+
});
|
|
65
|
+
const GuildAutoLiveRoleSchema = zod_2.z.object({
|
|
66
|
+
roleId: zod_1.SnowFlake,
|
|
67
|
+
filter: zod_2.z.lazy(() => GuildAutoLiveRoleFilterSchema).nullable(),
|
|
68
|
+
});
|
|
69
|
+
const GuildAutoLiveRoleFilterSchema = zod_2.z.object({
|
|
70
|
+
mode: schema_zod_1.FilterEnum,
|
|
71
|
+
roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
72
|
+
});
|
|
73
|
+
const GuildStatusRoleSchema = zod_2.z.object({
|
|
74
|
+
texts: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
75
|
+
roleId: zod_1.SnowFlake,
|
|
76
|
+
keepOnOffline: zod_2.z.boolean().nullable(),
|
|
77
|
+
filter: zod_2.z.lazy(() => GuildStatusRoleFilterSchema).nullable(),
|
|
78
|
+
});
|
|
79
|
+
const GuildStatusRoleFilterSchema = zod_2.z.object({
|
|
80
|
+
mode: schema_zod_1.FilterEnum,
|
|
81
|
+
roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
82
|
+
});
|
|
83
|
+
const GuildLinkedRoleSchema = zod_2.z.object({
|
|
84
|
+
roleId: zod_1.SnowFlake,
|
|
85
|
+
onAddRolesToAdd: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
86
|
+
onAddRolesToRemove: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
87
|
+
onRemoveRolesToAdd: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
88
|
+
onRemoveRolesToRemove: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
89
|
+
});
|
|
90
|
+
const GuildNotificationOverrideSchema = zod_2.z.object({
|
|
91
|
+
query: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
|
|
92
|
+
queryIn: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.QueryInEnum)),
|
|
93
|
+
applyTo: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.PlatformEnum)),
|
|
94
|
+
durationMinutes: zod_2.z.number().min(0).nullable(),
|
|
95
|
+
overrideChannelId: zod_1.SnowFlake.nullable(),
|
|
96
|
+
overridePingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
97
|
+
priorityOnConflict: zod_2.z.number().min(1),
|
|
98
|
+
actions: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.OverridesEnum)),
|
|
99
|
+
});
|
|
100
|
+
const GuildCustomSingleMessageSchema = zod_2.z.object({
|
|
101
|
+
type: schema_zod_1.GuildSingleMessageTypeEnum,
|
|
102
|
+
...zod_1.CentralZod.SingleMessage(),
|
|
103
|
+
});
|
|
104
|
+
const GuildSingleMessageWebhookSchema = zod_2.z.object({
|
|
105
|
+
enabled: zod_2.z.boolean().nullable(),
|
|
106
|
+
username: zod_2.z.string().nullable(),
|
|
107
|
+
avatarUrl: zod_2.z.string().nullable(),
|
|
108
|
+
});
|
|
109
|
+
const GuildCustomMessageSchema = zod_2.z.object({
|
|
110
|
+
type: schema_zod_1.GuildMessageTypeEnum,
|
|
111
|
+
...zod_1.CentralZod.Message(),
|
|
112
|
+
});
|
|
113
|
+
const GuildStickyMessageSchema = zod_2.z.object({
|
|
114
|
+
channelId: zod_1.SnowFlake,
|
|
115
|
+
messageId: zod_1.SnowFlake.nullable(),
|
|
116
|
+
...zod_1.CentralZod.Message(),
|
|
117
|
+
});
|
|
118
|
+
const GuildGettingStartedSchema = zod_2.z.object({
|
|
119
|
+
didSetupBirthday: zod_2.z.boolean(),
|
|
120
|
+
didSetupFirstContentCreator: zod_2.z.boolean(),
|
|
121
|
+
didBuyPremium: zod_2.z.boolean(),
|
|
122
|
+
didDismissGuildAds: zod_2.z.boolean(),
|
|
123
|
+
});
|
|
124
|
+
exports.GuildZod = {
|
|
125
|
+
GuildSchema,
|
|
126
|
+
GuildPremiumSchema,
|
|
127
|
+
GuildDisableBrandingSchema,
|
|
128
|
+
GuildAutoLiveRoleSchema,
|
|
129
|
+
GuildAutoLiveRoleFilterSchema,
|
|
130
|
+
GuildStatusRoleSchema,
|
|
131
|
+
GuildStatusRoleFilterSchema,
|
|
132
|
+
GuildNotificationOverrideSchema,
|
|
133
|
+
GuildCustomSingleMessageSchema,
|
|
134
|
+
GuildSingleMessageWebhookSchema,
|
|
135
|
+
GuildCustomMessageSchema,
|
|
136
|
+
GuildStickyMessageSchema,
|
|
137
|
+
GuildGettingStartedSchema,
|
|
138
|
+
};
|
|
139
|
+
exports.GuildZodPartial = Object.fromEntries(Object.entries(exports.GuildZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|