@notidotbot/noti-api-client 1.9.35 → 1.9.36

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.
@@ -0,0 +1,122 @@
1
+ model WhatnotStreamer {
2
+ dbId String @id @default(uuid())
3
+
4
+ streamerUserName String
5
+ guildId String
6
+
7
+ deleteEmbeds Boolean?
8
+ sendOfflineMessage Boolean?
9
+ usePerStreamerEmbeds Boolean?
10
+ autoPublishIfAnnouncmentChannel Boolean?
11
+
12
+ customMessages WSCustomMessage[]
13
+
14
+ notificationChannelId String?
15
+ showNotifyButton Boolean?
16
+
17
+ pingRoleId String?
18
+ customCoolDownBeforeNextLive Int?
19
+
20
+ liveRoleId String?
21
+ usersForLiveRole String[]
22
+ usersWhoHaveLiveRole String[]
23
+
24
+ statsChannelIds WSStatsChannelId?
25
+ isCurrentlyLive WSCurrentlyLive?
26
+
27
+ lastLive DateTime?
28
+
29
+ @@unique([streamerUserName, guildId])
30
+ }
31
+
32
+ model WSCustomMessage {
33
+ dbId String @id @default(uuid())
34
+
35
+ type StreamerMessageTypeEnum
36
+ content String? @db.VarChar(2000)
37
+ // Per-message editor override for the branding (Invite Noti) button; null = fall back to guild disableBranding.
38
+ showInviteButton Boolean?
39
+ showWatchButton Boolean?
40
+
41
+ embed WSMessageEmbed?
42
+ buttons WSMessageButton[]
43
+ webhook WSMessageWebhook?
44
+
45
+ whatnotStreamerId String
46
+ whatnotStreamer WhatnotStreamer? @relation(fields: [whatnotStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
47
+
48
+ @@unique([whatnotStreamerId, type])
49
+ }
50
+
51
+ model WSMessageEmbed {
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 WSEmbedField[]
65
+
66
+ wsCustomMessageId String @unique
67
+ wsCustomMessage WSCustomMessage? @relation(fields: [wsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
68
+ }
69
+
70
+ model WSEmbedField {
71
+ dbId String @id @default(uuid())
72
+
73
+ name String @db.VarChar(256)
74
+ value String? @db.VarChar(1024)
75
+ inline Boolean?
76
+
77
+ wsMessageEmbedId String
78
+ wsMessageEmbed WSMessageEmbed? @relation(fields: [wsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
79
+ }
80
+
81
+ model WSMessageButton {
82
+ dbId String @id @default(uuid())
83
+
84
+ title String @db.VarChar(80)
85
+ url String?
86
+
87
+ emojiUnicodeOrId String?
88
+
89
+ wsCustomMessageId String
90
+ wsCustomMessage WSCustomMessage? @relation(fields: [wsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
91
+ }
92
+
93
+ model WSMessageWebhook {
94
+ dbId String @id @default(uuid())
95
+
96
+ enabled Boolean?
97
+ username String?
98
+ avatarUrl String?
99
+
100
+ wsCustomMessageId String @unique
101
+ wsCustomMessage WSCustomMessage? @relation(fields: [wsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
102
+ }
103
+
104
+ model WSStatsChannelId {
105
+ dbId String @id @default(uuid())
106
+
107
+ isLive String?
108
+
109
+ whatnotStreamerId String @unique
110
+ whatnotStreamer WhatnotStreamer? @relation(fields: [whatnotStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
111
+ }
112
+
113
+ model WSCurrentlyLive {
114
+ dbId String @id @default(uuid())
115
+
116
+ correct Boolean?
117
+ channelId String?
118
+ messageId String?
119
+
120
+ whatnotStreamerId String @unique
121
+ whatnotStreamer WhatnotStreamer? @relation(fields: [whatnotStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
122
+ }