@notidotbot/noti-api-client 1.4.12 → 1.4.14
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 +29 -0
- package/dist/classes/guild.js +15 -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/other/zod/drops.zod.d.ts +21 -2
- package/dist/other/zod/drops.zod.js +3 -3
- package/dist/other/zod/guild.zod.d.ts +14 -0
- package/dist/other/zod/guild.zod.js +9 -0
- package/dist/other/zod/r2Storage.zod.d.ts +2 -0
- package/dist/other/zod/r2Storage.zod.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +2803 -458
- package/prisma/schema/models/client.prisma +64 -64
- package/prisma/schema/models/drops.prisma +126 -126
- package/prisma/schema/models/giveaways.prisma +49 -49
- package/prisma/schema/models/guild.prisma +239 -224
- 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
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
model GuildStarboard {
|
|
2
|
-
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
channelId String
|
|
5
|
+
guildId String
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
enabled Boolean?
|
|
8
|
+
threshold Int?
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
emojiId String?
|
|
11
|
+
emojiName String?
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
allowNsfw Boolean?
|
|
14
|
+
allowSelfStar Boolean?
|
|
15
|
+
allowBotMessages Boolean?
|
|
16
|
+
deleteIfLost Boolean?
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
rewardRole String?
|
|
19
|
+
openThreadOnStar Boolean?
|
|
20
|
+
filter GuildStarboardFilter?
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
@@unique([channelId, guildId])
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
model GuildStarboardFilter {
|
|
26
|
-
|
|
26
|
+
dbId String @id @default(uuid())
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
roleMode FilterEnum?
|
|
29
|
+
roles String[]
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
channelMode FilterEnum?
|
|
32
|
+
channels String[]
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
guildStarboardId String @unique
|
|
35
|
+
guildStarboard GuildStarboard? @relation(fields: [guildStarboardId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// Cant be connected because of include all relations on client.
|
|
39
39
|
// Fully internal.
|
|
40
40
|
|
|
41
41
|
model GuildStarboardMessages {
|
|
42
|
-
|
|
42
|
+
dbId String @id @default(uuid())
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
channelId String
|
|
45
|
+
guildId String
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
messages GuildStarboardMessage[]
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
@@unique([channelId, guildId])
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
model GuildStarboardMessage {
|
|
53
|
-
|
|
53
|
+
dbId String @id @default(uuid())
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
messageId String
|
|
56
|
+
originalMessageId String
|
|
57
|
+
originalChannelId String
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
currentStars Int
|
|
60
|
+
isTrashed Boolean?
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
guildStarboardMessagesId String
|
|
63
|
+
guildStarboardMessages GuildStarboardMessages? @relation(fields: [guildStarboardMessagesId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
@@unique([originalMessageId, originalChannelId])
|
|
66
66
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
model Team {
|
|
2
|
-
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
teamId String @unique
|
|
5
|
+
teamName String
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
teamMembers TeamMember[]
|
|
8
|
+
activeInvites ActiveInvite[]
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
model TeamMember {
|
|
12
|
-
|
|
12
|
+
dbId String @id @default(uuid())
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
userId String
|
|
15
|
+
bitfield String
|
|
16
|
+
joinedAt DateTime
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
teamId String
|
|
19
|
+
team Team? @relation(fields: [teamId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
@@unique([userId, teamId])
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
model ActiveInvite {
|
|
25
|
-
|
|
25
|
+
dbId String @id @default(uuid())
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
code String
|
|
28
|
+
maxUses Int?
|
|
29
|
+
currentUses Int
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
bitfieldToSet String
|
|
32
|
+
expiresAt DateTime?
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
teamId String
|
|
35
|
+
team Team? @relation(fields: [teamId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
@@unique([code, teamId])
|
|
38
38
|
}
|
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
model TiktokStreamer {
|
|
2
|
-
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
streamerUserName String
|
|
5
|
+
guildId String
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
deleteEmbeds Boolean? // Premium
|
|
8
|
+
sendOfflineMessage Boolean?
|
|
9
|
+
usePerStreamerEmbeds Boolean? // Premium
|
|
10
|
+
autoPublishIfAnnouncmentChannel Boolean? // Premium
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
customMessages TTSCustomMessage[] // Premium
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
liveNotificationChannelId String?
|
|
15
|
+
videoNotificationChannelId String?
|
|
16
|
+
showNotifyButton Boolean?
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
pingRoleId String?
|
|
19
|
+
customCoolDownBeforeNextLive Int? // Premium. In minutes.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
liveRoleId String?
|
|
22
|
+
usersForLiveRole String[]
|
|
23
|
+
usersWhoHaveLiveRole String[] // Internal
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
statsChannelIds TTSStatsChannelId? // Internal
|
|
26
|
+
isCurrentlyLive TTSCurrentlyLive? // Internal
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
lastLive DateTime?
|
|
29
|
+
lastVideo DateTime?
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
@@unique([streamerUserName, guildId])
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
model TTSCustomMessage {
|
|
35
|
-
|
|
35
|
+
dbId String @id @default(uuid())
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
type StreamerMessageTypeEnum
|
|
38
|
+
content String? @db.VarChar(2000)
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
embed TTSMessageEmbed?
|
|
41
|
+
buttons TTSMessageButton[]
|
|
42
|
+
webhook TTSMessageWebhook?
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
tiktokStreamerId String
|
|
45
|
+
tiktokStreamer TiktokStreamer? @relation(fields: [tiktokStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
@@unique([tiktokStreamerId, type])
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
model TTSMessageEmbed {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
dbId String @id @default(uuid())
|
|
52
|
+
|
|
53
|
+
title String? @db.VarChar(256)
|
|
54
|
+
url String?
|
|
55
|
+
description String @db.VarChar(2048)
|
|
56
|
+
color String? @db.VarChar(10)
|
|
57
|
+
footer String? @db.VarChar(1024)
|
|
58
|
+
footerIcon String?
|
|
59
|
+
image String?
|
|
60
|
+
thumbnail String?
|
|
61
|
+
author String? @db.VarChar(256)
|
|
62
|
+
authorIcon String?
|
|
63
|
+
fields TTSEmbedField[]
|
|
64
|
+
|
|
65
|
+
ttsCustomMessageId String @unique
|
|
66
|
+
ttsCustomMessage TTSCustomMessage? @relation(fields: [ttsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
model TTSEmbedField {
|
|
70
|
-
|
|
70
|
+
dbId String @id @default(uuid())
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
name String @db.VarChar(256)
|
|
73
|
+
value String? @db.VarChar(1024)
|
|
74
|
+
inline Boolean?
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
ttsMessageEmbedId String
|
|
77
|
+
ttsMessageEmbed TTSMessageEmbed? @relation(fields: [ttsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
model TTSMessageButton {
|
|
81
|
-
|
|
81
|
+
dbId String @id @default(uuid())
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
title String @db.VarChar(80)
|
|
84
|
+
url String?
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
emojiUnicodeOrId String?
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
ttsCustomMessageId String
|
|
89
|
+
ttsCustomMessage TTSCustomMessage? @relation(fields: [ttsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
model TTSMessageWebhook {
|
|
93
|
-
|
|
93
|
+
dbId String @id @default(uuid())
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
enabled Boolean?
|
|
96
|
+
username String?
|
|
97
|
+
avatarUrl String?
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
ttsCustomMessageId String @unique
|
|
100
|
+
ttsCustomMessage TTSCustomMessage? @relation(fields: [ttsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
model TTSStatsChannelId {
|
|
104
|
-
|
|
104
|
+
dbId String @id @default(uuid())
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
isLive String?
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
tiktokStreamerId String @unique
|
|
109
|
+
tiktokStreamer TiktokStreamer? @relation(fields: [tiktokStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
model TTSCurrentlyLive {
|
|
113
|
-
|
|
113
|
+
dbId String @id @default(uuid())
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
correct Boolean?
|
|
116
|
+
channelId String?
|
|
117
|
+
messageId String?
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
tiktokStreamerId String @unique
|
|
120
|
+
tiktokStreamer TiktokStreamer? @relation(fields: [tiktokStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
121
121
|
}
|
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
model TwitchStreamer {
|
|
2
|
-
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
streamerUserName String
|
|
5
|
+
guildId String
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
streamerId String? // Renamed from streamerId
|
|
8
|
+
chatRoomId String? // Renamed from chatRoomId
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
deleteEmbeds Boolean? // Premium
|
|
11
|
+
sendOfflineMessage Boolean?
|
|
12
|
+
usePerStreamerEmbeds Boolean? // Premium
|
|
13
|
+
autoPublishIfAnnouncmentChannel Boolean? // Premium
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
customMessages TSCustomMessage[] // Premium
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
notificationChannelId String?
|
|
18
|
+
showNotifyButton Boolean?
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
pingRoleId String?
|
|
21
|
+
customCoolDownBeforeNextLive Int? // Premium. In minutes.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
liveRoleId String?
|
|
24
|
+
usersForLiveRole String[]
|
|
25
|
+
usersWhoHaveLiveRole String[] // Internal
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
statsChannelIds TSStatsChannelId? // Internal
|
|
28
|
+
isCurrentlyLive TSCurrentlyLive? // Internal
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
lastLive DateTime?
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
@@unique([streamerUserName, guildId])
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
model TSCustomMessage {
|
|
36
|
-
|
|
36
|
+
dbId String @id @default(uuid())
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
type StreamerMessageTypeEnum
|
|
39
|
+
content String? @db.VarChar(2000)
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
embed TSMessageEmbed?
|
|
42
|
+
buttons TSMessageButton[]
|
|
43
|
+
webhook TSMessageWebhook?
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
twitchStreamerId String
|
|
46
|
+
twitchStreamer TwitchStreamer? @relation(fields: [twitchStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
@@unique([twitchStreamerId, type])
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
model TSMessageEmbed {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
52
|
+
dbId String @id @default(uuid())
|
|
53
|
+
|
|
54
|
+
title String? @db.VarChar(256)
|
|
55
|
+
url String?
|
|
56
|
+
description String @db.VarChar(2048)
|
|
57
|
+
color String? @db.VarChar(10)
|
|
58
|
+
footer String? @db.VarChar(1024)
|
|
59
|
+
footerIcon String?
|
|
60
|
+
image String?
|
|
61
|
+
thumbnail String?
|
|
62
|
+
author String? @db.VarChar(256)
|
|
63
|
+
authorIcon String?
|
|
64
|
+
fields TSEmbedField[]
|
|
65
|
+
|
|
66
|
+
tsCustomMessageId String @unique
|
|
67
|
+
tsCustomMessage TSCustomMessage? @relation(fields: [tsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
model TSEmbedField {
|
|
71
|
-
|
|
71
|
+
dbId String @id @default(uuid())
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
name String @db.VarChar(256)
|
|
74
|
+
value String? @db.VarChar(1024)
|
|
75
|
+
inline Boolean?
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
tsMessageEmbedId String
|
|
78
|
+
tsMessageEmbed TSMessageEmbed? @relation(fields: [tsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
model TSMessageButton {
|
|
82
|
-
|
|
82
|
+
dbId String @id @default(uuid())
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
title String @db.VarChar(80)
|
|
85
|
+
url String?
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
emojiUnicodeOrId String?
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
tsCustomMessageId String
|
|
90
|
+
tsCustomMessage TSCustomMessage? @relation(fields: [tsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
model TSMessageWebhook {
|
|
94
|
-
|
|
94
|
+
dbId String @id @default(uuid())
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
enabled Boolean?
|
|
97
|
+
username String?
|
|
98
|
+
avatarUrl String?
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
tsCustomMessageId String @unique
|
|
101
|
+
tsCustomMessage TSCustomMessage? @relation(fields: [tsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
model TSStatsChannelId {
|
|
105
|
-
|
|
105
|
+
dbId String @id @default(uuid())
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
isLive String?
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
twitchStreamerId String @unique
|
|
110
|
+
twitchStreamer TwitchStreamer? @relation(fields: [twitchStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
model TSCurrentlyLive {
|
|
114
|
-
|
|
114
|
+
dbId String @id @default(uuid())
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
correct Boolean?
|
|
117
|
+
channelId String?
|
|
118
|
+
messageId String?
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
twitchStreamerId String @unique
|
|
121
|
+
twitchStreamer TwitchStreamer? @relation(fields: [twitchStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
122
122
|
}
|