@notidotbot/noti-api-client 1.4.12 → 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.
@@ -1,212 +1,212 @@
1
1
  model User {
2
- dbId String @id @default(uuid())
2
+ dbId String @id @default(uuid())
3
3
 
4
- userId String @unique
5
- username String?
4
+ userId String @unique
5
+ username String?
6
6
 
7
- email String?
8
- locale String @default("en-US")
9
- blacklisted Boolean?
7
+ email String?
8
+ locale String @default("en-US")
9
+ blacklisted Boolean?
10
10
 
11
- premium UserPremium?
11
+ premium UserPremium?
12
12
 
13
- badges String?
14
- bitfield String?
13
+ badges String?
14
+ bitfield String?
15
15
 
16
- oneServerPremium String?
17
- serverPremiumCooldown DateTime?
16
+ oneServerPremium String?
17
+ serverPremiumCooldown DateTime?
18
18
 
19
- mediaShare UserMediaShare?
20
- sessions UserSession[]
21
- linkedRoles UserLinkedRoles?
19
+ mediaShare UserMediaShare?
20
+ sessions UserSession[]
21
+ linkedRoles UserLinkedRoles?
22
22
 
23
- votes Int @default(0)
24
- lastVoted DateTime?
23
+ votes Int @default(0)
24
+ lastVoted DateTime?
25
25
 
26
- activeGuildSubscriptions UserActiveGuildSubscription[]
27
- birthday UserBirthday?
26
+ activeGuildSubscriptions UserActiveGuildSubscription[]
27
+ birthday UserBirthday?
28
28
 
29
- kickAccount UserKickAccount?
30
- twitchAccount UserTwitchAccount?
31
- rumbleAccount UserRumbleAccount?
29
+ kickAccount UserKickAccount?
30
+ twitchAccount UserTwitchAccount?
31
+ rumbleAccount UserRumbleAccount?
32
32
 
33
- gettingStarted UserGettingStarted?
34
- notifications UserNotifications?
33
+ gettingStarted UserGettingStarted?
34
+ notifications UserNotifications?
35
35
  }
36
36
 
37
37
  model UserPremium {
38
- dbId String @id @default(uuid())
38
+ dbId String @id @default(uuid())
39
39
 
40
- tier String
40
+ tier String
41
41
 
42
- userId String @unique
43
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
42
+ userId String @unique
43
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
44
44
  }
45
45
 
46
46
  model UserMediaShare {
47
- dbId String @id @default(uuid())
47
+ dbId String @id @default(uuid())
48
48
 
49
- enabled Boolean?
50
- settings UserMediaShareSettings?
49
+ enabled Boolean?
50
+ settings UserMediaShareSettings?
51
51
 
52
- banList String[]
53
- modList String[]
52
+ banList String[]
53
+ modList String[]
54
54
 
55
- password String?
56
- permissions UserMediaSharePermissions[]
55
+ password String?
56
+ permissions UserMediaSharePermissions[]
57
57
 
58
- userId String @unique
59
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
58
+ userId String @unique
59
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
60
60
  }
61
61
 
62
62
  model UserMediaShareSettings {
63
- dbId String @id @default(uuid())
63
+ dbId String @id @default(uuid())
64
64
 
65
- prefix String @default("!")
66
- volume Int @default(50)
67
- modes MediaShareTypesEnum[]
65
+ prefix String @default("!")
66
+ volume Int @default(50)
67
+ modes MediaShareTypesEnum[]
68
68
 
69
- userMediaShareId String @unique
70
- userMediaShare UserMediaShare? @relation(fields: [userMediaShareId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
69
+ userMediaShareId String @unique
70
+ userMediaShare UserMediaShare? @relation(fields: [userMediaShareId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
71
71
  }
72
72
 
73
73
  model UserMediaSharePermissions {
74
- dbId String @id @default(uuid())
74
+ dbId String @id @default(uuid())
75
75
 
76
- command MediaShareCommandsEnum
77
- onKick UserMediaSharePermissionsEnum[]
76
+ command MediaShareCommandsEnum
77
+ onKick UserMediaSharePermissionsEnum[]
78
78
 
79
- userMediaShareId String
80
- userMediaShare UserMediaShare? @relation(fields: [userMediaShareId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
79
+ userMediaShareId String
80
+ userMediaShare UserMediaShare? @relation(fields: [userMediaShareId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
81
81
 
82
- @@unique([command, userMediaShareId])
82
+ @@unique([command, userMediaShareId])
83
83
  }
84
84
 
85
85
  model UserSession {
86
- dbId String @id @default(uuid())
86
+ dbId String @id @default(uuid())
87
87
 
88
- key String @unique
89
- expiresAt DateTime
88
+ key String @unique
89
+ expiresAt DateTime
90
90
 
91
- userId String
92
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
91
+ userId String
92
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
93
93
  }
94
94
 
95
95
  model UserLinkedRoles {
96
- dbId String @id @default(uuid())
96
+ dbId String @id @default(uuid())
97
97
 
98
- accessToken String?
99
- refreshToken String?
100
- expiresAt DateTime?
98
+ accessToken String?
99
+ refreshToken String?
100
+ expiresAt DateTime?
101
101
 
102
- userId String @unique
103
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
102
+ userId String @unique
103
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
104
104
  }
105
105
 
106
106
  model UserActiveGuildSubscription {
107
- dbId String @id @default(uuid())
107
+ dbId String @id @default(uuid())
108
108
 
109
- guildId String
110
- subscriptionId String?
109
+ guildId String
110
+ subscriptionId String?
111
111
 
112
- userId String
113
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
112
+ userId String
113
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
114
114
 
115
- @@unique([guildId, userId])
115
+ @@unique([guildId, userId])
116
116
  }
117
117
 
118
118
  model UserBirthday {
119
- dbId String @id @default(uuid())
119
+ dbId String @id @default(uuid())
120
120
 
121
- date String?
122
- lastChanged DateTime?
123
- lastYearCongratulated Int?
121
+ date String?
122
+ lastChanged DateTime?
123
+ lastYearCongratulated Int?
124
124
 
125
- whereToCongratulate String[]
125
+ whereToCongratulate String[]
126
126
 
127
- userId String @unique
128
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
127
+ userId String @unique
128
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
129
129
  }
130
130
 
131
131
  model UserKickAccount {
132
- dbId String @id @default(uuid())
132
+ dbId String @id @default(uuid())
133
133
 
134
- accountId String?
135
- username String?
136
- chatRoomId String?
134
+ accountId String?
135
+ username String?
136
+ chatRoomId String?
137
137
 
138
- subscribedTo UserKickAccountSubscribedTo[]
138
+ subscribedTo UserKickAccountSubscribedTo[]
139
139
 
140
- userId String @unique
141
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
140
+ userId String @unique
141
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
142
142
  }
143
143
 
144
144
  model UserKickAccountSubscribedTo {
145
- dbId String @id @default(uuid())
145
+ dbId String @id @default(uuid())
146
146
 
147
- streamerUserName String
148
- expiresAt DateTime
149
- guildIds String[]
147
+ streamerUserName String
148
+ expiresAt DateTime
149
+ guildIds String[]
150
150
 
151
- userKickAccountId String
152
- userKickAccount UserKickAccount? @relation(fields: [userKickAccountId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
151
+ userKickAccountId String
152
+ userKickAccount UserKickAccount? @relation(fields: [userKickAccountId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
153
153
 
154
- @@unique([streamerUserName, userKickAccountId])
154
+ @@unique([streamerUserName, userKickAccountId])
155
155
  }
156
156
 
157
157
  model UserTwitchAccount {
158
- dbId String @id @default(uuid())
158
+ dbId String @id @default(uuid())
159
159
 
160
- accountId String?
161
- username String?
162
- chatRoomId String?
160
+ accountId String?
161
+ username String?
162
+ chatRoomId String?
163
163
 
164
- userId String @unique
165
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
164
+ userId String @unique
165
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
166
166
  }
167
167
 
168
168
  model UserRumbleAccount {
169
- dbId String @id @default(uuid())
169
+ dbId String @id @default(uuid())
170
170
 
171
- accountId String?
172
- username String?
171
+ accountId String?
172
+ username String?
173
173
 
174
- userId String @unique
175
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
174
+ userId String @unique
175
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
176
176
  }
177
177
 
178
178
  model UserGettingStarted {
179
- dbId String @id @default(uuid())
179
+ dbId String @id @default(uuid())
180
180
 
181
- didLinkAllSocials Boolean?
182
- didJoinATeam Boolean?
183
- didBuyPremium Boolean?
184
- didInviteATeamMember Boolean?
181
+ didLinkAllSocials Boolean?
182
+ didJoinATeam Boolean?
183
+ didBuyPremium Boolean?
184
+ didInviteATeamMember Boolean?
185
185
 
186
- didDismissUserAds Boolean?
186
+ didDismissUserAds Boolean?
187
187
 
188
- userId String @unique
189
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
188
+ userId String @unique
189
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
190
190
  }
191
191
 
192
192
  model UserNotifications {
193
- dbId String @id @default(uuid())
193
+ dbId String @id @default(uuid())
194
194
 
195
- isRead Boolean
196
- list UserNotificationData[]
195
+ isRead Boolean
196
+ list UserNotificationData[]
197
197
 
198
- userId String @unique
199
- user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
198
+ userId String @unique
199
+ user User? @relation(fields: [userId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
200
200
  }
201
201
 
202
202
  model UserNotificationData {
203
- dbId String @id @default(uuid())
203
+ dbId String @id @default(uuid())
204
204
 
205
- title String
206
- message String
207
- actionUrl String?
208
- severity UserNotificationSeverityEnum
205
+ title String
206
+ message String
207
+ actionUrl String?
208
+ severity UserNotificationSeverityEnum
209
209
 
210
- userNotificationsId String
211
- userNotifications UserNotifications? @relation(fields: [userNotificationsId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
210
+ userNotificationsId String
211
+ userNotifications UserNotifications? @relation(fields: [userNotificationsId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
212
212
  }
@@ -1,123 +1,123 @@
1
1
  model YoutubeStreamer {
2
- dbId String @id @default(uuid())
2
+ dbId String @id @default(uuid())
3
3
 
4
- streamerUserName String
5
- guildId String
4
+ streamerUserName String
5
+ guildId String
6
6
 
7
- streamerId String? // Renamed from streamerId
7
+ streamerId String? // Renamed from streamerId
8
8
 
9
- deleteEmbeds Boolean? // Premium
10
- sendOfflineMessage Boolean?
11
- usePerStreamerEmbeds Boolean? // Premium
12
- autoPublishIfAnnouncmentChannel Boolean? // Premium
9
+ deleteEmbeds Boolean? // Premium
10
+ sendOfflineMessage Boolean?
11
+ usePerStreamerEmbeds Boolean? // Premium
12
+ autoPublishIfAnnouncmentChannel Boolean? // Premium
13
13
 
14
- customMessages YTSCustomMessage[] // Premium
14
+ customMessages YTSCustomMessage[] // Premium
15
15
 
16
- liveNotificationChannelId String?
17
- videoNotificationChannelId String?
18
- showNotifyButton Boolean?
16
+ liveNotificationChannelId String?
17
+ videoNotificationChannelId String?
18
+ showNotifyButton Boolean?
19
19
 
20
- pingRoleId String?
21
- customCoolDownBeforeNextLive Int? // Premium. In minutes.
20
+ pingRoleId String?
21
+ customCoolDownBeforeNextLive Int? // Premium. In minutes.
22
22
 
23
- liveRoleId String?
24
- usersForLiveRole String[]
25
- usersWhoHaveLiveRole String[] // Internal
23
+ liveRoleId String?
24
+ usersForLiveRole String[]
25
+ usersWhoHaveLiveRole String[] // Internal
26
26
 
27
- statsChannelIds YTSStatsChannelId? // Internal
28
- isCurrentlyLive YTSCurrentlyLive? // Internal
27
+ statsChannelIds YTSStatsChannelId? // Internal
28
+ isCurrentlyLive YTSCurrentlyLive? // Internal
29
29
 
30
- lastLive DateTime?
31
- lastVideo DateTime?
30
+ lastLive DateTime?
31
+ lastVideo DateTime?
32
32
 
33
- @@unique([streamerUserName, guildId])
33
+ @@unique([streamerUserName, guildId])
34
34
  }
35
35
 
36
36
  model YTSCustomMessage {
37
- dbId String @id @default(uuid())
37
+ dbId String @id @default(uuid())
38
38
 
39
- type StreamerMessageTypeEnum
40
- content String? @db.VarChar(2000)
39
+ type StreamerMessageTypeEnum
40
+ content String? @db.VarChar(2000)
41
41
 
42
- embed YTSMessageEmbed?
43
- buttons YTSMessageButton[]
44
- webhook YTSMessageWebhook?
42
+ embed YTSMessageEmbed?
43
+ buttons YTSMessageButton[]
44
+ webhook YTSMessageWebhook?
45
45
 
46
- youtubeStreamerId String
47
- youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
46
+ youtubeStreamerId String
47
+ youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
48
48
 
49
- @@unique([youtubeStreamerId, type])
49
+ @@unique([youtubeStreamerId, type])
50
50
  }
51
51
 
52
52
  model YTSMessageEmbed {
53
- dbId String @id @default(uuid())
54
-
55
- title String? @db.VarChar(256)
56
- url String?
57
- description String @db.VarChar(2048)
58
- color String? @db.VarChar(10)
59
- footer String? @db.VarChar(1024)
60
- footerIcon String?
61
- image String?
62
- thumbnail String?
63
- author String? @db.VarChar(256)
64
- authorIcon String?
65
- fields YTSEmbedField[]
66
-
67
- ytsCustomMessageId String @unique
68
- ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
53
+ dbId String @id @default(uuid())
54
+
55
+ title String? @db.VarChar(256)
56
+ url String?
57
+ description String @db.VarChar(2048)
58
+ color String? @db.VarChar(10)
59
+ footer String? @db.VarChar(1024)
60
+ footerIcon String?
61
+ image String?
62
+ thumbnail String?
63
+ author String? @db.VarChar(256)
64
+ authorIcon String?
65
+ fields YTSEmbedField[]
66
+
67
+ ytsCustomMessageId String @unique
68
+ ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
69
69
  }
70
70
 
71
71
  model YTSEmbedField {
72
- dbId String @id @default(uuid())
72
+ dbId String @id @default(uuid())
73
73
 
74
- name String @db.VarChar(256)
75
- value String? @db.VarChar(1024)
76
- inline Boolean?
74
+ name String @db.VarChar(256)
75
+ value String? @db.VarChar(1024)
76
+ inline Boolean?
77
77
 
78
- ytsMessageEmbedId String
79
- ytsMessageEmbed YTSMessageEmbed? @relation(fields: [ytsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
78
+ ytsMessageEmbedId String
79
+ ytsMessageEmbed YTSMessageEmbed? @relation(fields: [ytsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
80
80
  }
81
81
 
82
82
  model YTSMessageButton {
83
- dbId String @id @default(uuid())
83
+ dbId String @id @default(uuid())
84
84
 
85
- title String @db.VarChar(80)
86
- url String?
85
+ title String @db.VarChar(80)
86
+ url String?
87
87
 
88
- emojiUnicodeOrId String?
88
+ emojiUnicodeOrId String?
89
89
 
90
- ytsCustomMessageId String
91
- ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
90
+ ytsCustomMessageId String
91
+ ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
92
92
  }
93
93
 
94
94
  model YTSMessageWebhook {
95
- dbId String @id @default(uuid())
95
+ dbId String @id @default(uuid())
96
96
 
97
- enabled Boolean?
98
- username String?
99
- avatarUrl String?
97
+ enabled Boolean?
98
+ username String?
99
+ avatarUrl String?
100
100
 
101
- ytsCustomMessageId String @unique
102
- ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
101
+ ytsCustomMessageId String @unique
102
+ ytsCustomMessage YTSCustomMessage? @relation(fields: [ytsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
103
103
  }
104
104
 
105
105
  model YTSStatsChannelId {
106
- dbId String @id @default(uuid())
106
+ dbId String @id @default(uuid())
107
107
 
108
- isLive String?
108
+ isLive String?
109
109
 
110
- youtubeStreamerId String @unique
111
- youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
110
+ youtubeStreamerId String @unique
111
+ youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
112
112
  }
113
113
 
114
114
  model YTSCurrentlyLive {
115
- dbId String @id @default(uuid())
115
+ dbId String @id @default(uuid())
116
116
 
117
- correct Boolean?
118
- channelId String?
119
- messageId String?
117
+ correct Boolean?
118
+ channelId String?
119
+ messageId String?
120
120
 
121
- youtubeStreamerId String @unique
122
- youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
121
+ youtubeStreamerId String @unique
122
+ youtubeStreamer YoutubeStreamer? @relation(fields: [youtubeStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
123
123
  }