@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,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KickStreamerZodPartial = exports.KickStreamerZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const zod_1 = require("./zod");
|
|
6
|
+
const zod_2 = require("zod");
|
|
7
|
+
const KickStreamerSchema = zod_2.z.object({
|
|
8
|
+
streamerUserName: zod_2.z.string(),
|
|
9
|
+
guildId: zod_1.SnowFlake,
|
|
10
|
+
streamerId: zod_2.z.string().nullable(),
|
|
11
|
+
chatRoomId: zod_2.z.string().nullable(),
|
|
12
|
+
deleteEmbeds: zod_2.z.boolean().nullable(),
|
|
13
|
+
sendOfflineMessage: zod_2.z.boolean().nullable(),
|
|
14
|
+
usePerStreamerEmbeds: zod_2.z.boolean().nullable(),
|
|
15
|
+
autoPublishIfAnnouncmentChannel: zod_2.z.boolean().nullable(),
|
|
16
|
+
customMessages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => KSCustomMessageSchema)), ['type']),
|
|
17
|
+
clipEnabled: zod_2.z.boolean().nullable(),
|
|
18
|
+
clipChannelId: zod_1.SnowFlake.nullable(),
|
|
19
|
+
clipPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
20
|
+
clipperNeedsAllCategories: zod_2.z.boolean().nullable(),
|
|
21
|
+
clipperCategories: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.ClipperCategoryEnum)),
|
|
22
|
+
vodsChannelId: zod_1.SnowFlake.nullable(),
|
|
23
|
+
vodsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
24
|
+
notificationChannelId: zod_1.SnowFlake.nullable(),
|
|
25
|
+
auditLogsChannelId: zod_1.SnowFlake.nullable(),
|
|
26
|
+
auditLogsEnabled: zod_2.z.boolean().nullable(),
|
|
27
|
+
showNotifyButton: zod_2.z.boolean().nullable(),
|
|
28
|
+
leaderBoardChannelId: zod_1.SnowFlake.nullable(),
|
|
29
|
+
leaderBoardMessageId: zod_2.z.string().nullable(),
|
|
30
|
+
leaderBoardTypes: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.LeaderBoardTypesEnum), ['type']),
|
|
31
|
+
pingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
32
|
+
enableVodDownloading: zod_2.z.boolean().nullable(),
|
|
33
|
+
customCoolDownBeforeNextLive: zod_2.z.number().min(0).max(360).nullable(),
|
|
34
|
+
usersWhoHaveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => KSRoleWithUsersSchema)), ['roleId']),
|
|
35
|
+
leaderBoardSyncRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => KSLeaderBoardSyncRoleSchema)), ['type']),
|
|
36
|
+
giftedSubRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => KSGiftedSubRoleSchema)), ['roleId']),
|
|
37
|
+
subscriberRoleId: zod_1.SnowFlake.nullable(),
|
|
38
|
+
moderatorRoleId: zod_1.SnowFlake.nullable(),
|
|
39
|
+
verifiedRoleId: zod_1.SnowFlake.nullable(),
|
|
40
|
+
founderRoleId: zod_1.SnowFlake.nullable(),
|
|
41
|
+
vipRoleId: zod_1.SnowFlake.nullable(),
|
|
42
|
+
ogRoleId: zod_1.SnowFlake.nullable(),
|
|
43
|
+
liveRoleId: zod_1.SnowFlake.nullable(),
|
|
44
|
+
usersForLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
45
|
+
usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
46
|
+
statsChannelIds: zod_2.z.lazy(() => KSStatsChannelIdSchema).nullable(),
|
|
47
|
+
isCurrentlyLive: zod_2.z.lazy(() => KSCurrentlyLiveSchema).nullable(),
|
|
48
|
+
builtInClipsEnabled: zod_2.z.boolean().nullable(),
|
|
49
|
+
builtInClipsChannelId: zod_1.SnowFlake.nullable(),
|
|
50
|
+
builtInClipsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
51
|
+
lastLive: zod_2.z.date().nullable(),
|
|
52
|
+
});
|
|
53
|
+
const KSCustomMessageSchema = zod_2.z.object({
|
|
54
|
+
type: schema_zod_1.StreamerMessageTypeEnum,
|
|
55
|
+
...zod_1.CentralZod.Message(),
|
|
56
|
+
});
|
|
57
|
+
const KSRoleWithUsersSchema = zod_2.z.object({
|
|
58
|
+
roleId: zod_1.SnowFlake,
|
|
59
|
+
userIds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
|
|
60
|
+
});
|
|
61
|
+
const KSLeaderBoardSyncRoleSchema = zod_2.z.object({
|
|
62
|
+
type: schema_zod_1.LeaderBoardTypesEnum,
|
|
63
|
+
roles: zod_2.z.array(zod_2.z.lazy(() => KSLeaderBoardRoleSchema)),
|
|
64
|
+
});
|
|
65
|
+
const KSLeaderBoardRoleSchema = zod_2.z.object({
|
|
66
|
+
roleId: zod_1.SnowFlake,
|
|
67
|
+
position: zod_2.z.number().max(3).min(1),
|
|
68
|
+
});
|
|
69
|
+
const KSGiftedSubRoleSchema = zod_2.z.object({
|
|
70
|
+
roleId: zod_1.SnowFlake,
|
|
71
|
+
giftedSubs: zod_2.z.number().min(1),
|
|
72
|
+
});
|
|
73
|
+
const KSStatsChannelIdSchema = zod_2.z.object({
|
|
74
|
+
followers: zod_2.z.string().nullable(),
|
|
75
|
+
isLive: zod_2.z.string().nullable(),
|
|
76
|
+
});
|
|
77
|
+
const KSCurrentlyLiveSchema = zod_2.z.object({
|
|
78
|
+
correct: zod_2.z.boolean().nullable(),
|
|
79
|
+
channelId: zod_1.SnowFlake.nullable(),
|
|
80
|
+
messageId: zod_1.SnowFlake.nullable(),
|
|
81
|
+
});
|
|
82
|
+
exports.KickStreamerZod = {
|
|
83
|
+
KickStreamerSchema,
|
|
84
|
+
KSCustomMessageSchema,
|
|
85
|
+
KSRoleWithUsersSchema,
|
|
86
|
+
KSLeaderBoardSyncRoleSchema,
|
|
87
|
+
KSLeaderBoardRoleSchema,
|
|
88
|
+
KSGiftedSubRoleSchema,
|
|
89
|
+
KSStatsChannelIdSchema,
|
|
90
|
+
KSCurrentlyLiveSchema,
|
|
91
|
+
};
|
|
92
|
+
exports.KickStreamerZodPartial = Object.fromEntries(Object.entries(exports.KickStreamerZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PartialZodObject } from './schema.zod';
|
|
2
|
+
import { RemoveProperties } from '../prisma';
|
|
3
|
+
import { TSPrisma } from '@prisma/client';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], MemberRelations>>;
|
|
6
|
+
export type MemberRelations = 'db' | 'member';
|
|
7
|
+
export declare const MemberZod: {
|
|
8
|
+
readonly MemberSchema: z.ZodObject<{
|
|
9
|
+
userId: z.ZodString;
|
|
10
|
+
guildId: z.ZodEffects<z.ZodString, string, string>;
|
|
11
|
+
messagesSent: z.ZodNumber;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
guildId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
messagesSent: number;
|
|
16
|
+
}, {
|
|
17
|
+
guildId: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
messagesSent: number;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export declare const MemberZodPartial: PartialZodObject<typeof MemberZod>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemberZodPartial = exports.MemberZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const zod_1 = require("./zod");
|
|
6
|
+
const zod_2 = require("zod");
|
|
7
|
+
const MemberSchema = zod_2.z.object({
|
|
8
|
+
userId: zod_2.z.string(),
|
|
9
|
+
guildId: zod_1.SnowFlake,
|
|
10
|
+
messagesSent: zod_2.z.number().min(1),
|
|
11
|
+
});
|
|
12
|
+
exports.MemberZod = {
|
|
13
|
+
MemberSchema,
|
|
14
|
+
};
|
|
15
|
+
exports.MemberZodPartial = Object.fromEntries(Object.entries(exports.MemberZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PartialZodObject } from './schema.zod';
|
|
2
|
+
import { TSPrisma } from '@prisma/client';
|
|
3
|
+
import { RemoveProperties } from '../prisma';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], R2StorageRelations>>;
|
|
6
|
+
export type R2StorageRelations = 'db' | 'r2Storage';
|
|
7
|
+
export declare const R2StorageZod: {
|
|
8
|
+
readonly R2StorageSchema: z.ZodObject<{
|
|
9
|
+
key: z.ZodString;
|
|
10
|
+
tempUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
urlExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
12
|
+
guilds: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
13
|
+
guildId: z.ZodEffects<z.ZodString, string, string>;
|
|
14
|
+
allowedUntil: z.ZodNullable<z.ZodDate>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
guildId: string;
|
|
17
|
+
allowedUntil: Date | null;
|
|
18
|
+
}, {
|
|
19
|
+
guildId: string;
|
|
20
|
+
allowedUntil: Date | null;
|
|
21
|
+
}>>, "many">, {
|
|
22
|
+
guildId: string;
|
|
23
|
+
allowedUntil: Date | null;
|
|
24
|
+
}[], {
|
|
25
|
+
guildId: string;
|
|
26
|
+
allowedUntil: Date | null;
|
|
27
|
+
}[]>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
key: string;
|
|
30
|
+
guilds: {
|
|
31
|
+
guildId: string;
|
|
32
|
+
allowedUntil: Date | null;
|
|
33
|
+
}[];
|
|
34
|
+
tempUrl: string | null;
|
|
35
|
+
urlExpiresAt: Date | null;
|
|
36
|
+
}, {
|
|
37
|
+
key: string;
|
|
38
|
+
guilds: {
|
|
39
|
+
guildId: string;
|
|
40
|
+
allowedUntil: Date | null;
|
|
41
|
+
}[];
|
|
42
|
+
tempUrl: string | null;
|
|
43
|
+
urlExpiresAt: Date | null;
|
|
44
|
+
}>;
|
|
45
|
+
readonly R2StorageGuildSchema: z.ZodObject<{
|
|
46
|
+
guildId: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
+
allowedUntil: z.ZodNullable<z.ZodDate>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
guildId: string;
|
|
50
|
+
allowedUntil: Date | null;
|
|
51
|
+
}, {
|
|
52
|
+
guildId: string;
|
|
53
|
+
allowedUntil: Date | null;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
56
|
+
export declare const R2StorageZodPartial: PartialZodObject<typeof R2StorageZod>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.R2StorageZodPartial = exports.R2StorageZod = void 0;
|
|
4
|
+
const schema_zod_1 = require("./schema.zod");
|
|
5
|
+
const zod_1 = require("./zod");
|
|
6
|
+
const zod_2 = require("zod");
|
|
7
|
+
const R2StorageSchema = zod_2.z.object({
|
|
8
|
+
key: zod_2.z.string(),
|
|
9
|
+
tempUrl: zod_2.z.string().nullable(),
|
|
10
|
+
urlExpiresAt: zod_2.z.date().nullable(),
|
|
11
|
+
guilds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => R2StorageGuildSchema)), ['guildId']),
|
|
12
|
+
});
|
|
13
|
+
const R2StorageGuildSchema = zod_2.z.object({
|
|
14
|
+
guildId: zod_1.SnowFlake,
|
|
15
|
+
allowedUntil: zod_2.z.date().nullable(),
|
|
16
|
+
});
|
|
17
|
+
exports.R2StorageZod = {
|
|
18
|
+
R2StorageSchema,
|
|
19
|
+
R2StorageGuildSchema,
|
|
20
|
+
};
|
|
21
|
+
exports.R2StorageZodPartial = Object.fromEntries(Object.entries(exports.R2StorageZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
|