@notidotbot/noti-api-client 1.9.100 → 1.9.102

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.
Files changed (48) hide show
  1. package/dist/classes/@me.d.ts +83 -0
  2. package/dist/classes/@me.js +44 -1
  3. package/dist/classes/admin.d.ts +1 -1
  4. package/dist/classes/client.d.ts +1 -1
  5. package/dist/classes/guildPlatform.d.ts +9 -2
  6. package/dist/classes/guildPlatformAction.d.ts +2 -2
  7. package/dist/classes/guildRolePanel.d.ts +12 -12
  8. package/dist/classes/guildStarboard.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/other/bitfields.d.ts +5 -2
  11. package/dist/other/bitfields.js +2 -0
  12. package/dist/other/enums.d.ts +6 -0
  13. package/dist/other/enums.js +3 -0
  14. package/dist/other/features.d.ts +1 -1
  15. package/dist/other/features.js +3 -0
  16. package/dist/other/inGameAlerts.d.ts +1 -0
  17. package/dist/other/inGameAlerts.js +1 -0
  18. package/dist/other/multiDestination.d.ts +1 -0
  19. package/dist/other/multiDestination.js +1 -0
  20. package/dist/other/prisma.d.ts +4 -0
  21. package/dist/other/templates.d.ts +49 -0
  22. package/dist/other/templates.js +42 -3
  23. package/dist/other/types.d.ts +3 -0
  24. package/dist/other/zod/client.zod.d.ts +2 -0
  25. package/dist/other/zod/clipForward.zod.d.ts +3 -0
  26. package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
  27. package/dist/other/zod/drops.zod.d.ts +1 -0
  28. package/dist/other/zod/gameConfig.zod.d.ts +1 -1
  29. package/dist/other/zod/guild.zod.d.ts +12 -0
  30. package/dist/other/zod/guild.zod.js +2 -0
  31. package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
  32. package/dist/other/zod/rolePanels.zod.d.ts +2 -2
  33. package/dist/other/zod/rssFeed.zod.d.ts +153 -0
  34. package/dist/other/zod/rssFeed.zod.js +48 -0
  35. package/dist/other/zod/rumbleStreamer.zod.d.ts +2 -0
  36. package/dist/other/zod/schema.zod.d.ts +4 -1
  37. package/dist/other/zod/schema.zod.js +3 -0
  38. package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
  39. package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
  40. package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
  41. package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
  42. package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
  43. package/dist/other/zod/zod.d.ts +2 -0
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/prisma/generated/ts-prisma.d.ts +2956 -0
  47. package/prisma/schema/models/rssFeed.prisma +131 -0
  48. package/prisma/schema/schema.prisma +3 -0
@@ -0,0 +1,131 @@
1
+ // RSS / Atom feeds (phases/rss/, growth C1). Any feed URL - blogs, podcasts, Substack, news, Reddit (allowed,
2
+ // no promises: Reddit may block the host). Shaped like ClubStreamer - a feed of posts, no live state - so there
3
+ // is no live-role / offline / currently-live / stats table.
4
+ //
5
+ // `streamerUserName` is the feed's KEY: the normalised URL LOWER-CASED, because every creator lookup in the bot
6
+ // lower-cases the name it is given. `feedUrl` is the same URL with its case kept - paths are case-sensitive
7
+ // (/Feed.xml is not /feed.xml) - and is what gets fetched.
8
+ // Polled on one 5-minute tick; a feed is due by the fastest plan among the servers following it (plans.ts
9
+ // rssPollMinutes: 15 / 10 / 5). Deduped and anti-backfilled by lastItemId / lastPostAt, as Club does.
10
+ //
11
+ // SUB-MODEL PREFIX IS `Rss`, NOT `RS` - `RS*` is Rumble (RSCustomMessage, RSStatsChannelId, ...).
12
+ model RssFeed {
13
+ dbId String @id @default(uuid())
14
+
15
+ streamerUserName String
16
+ guildId String
17
+ feedUrl String
18
+
19
+ // The feed's own <title>, captured at add time and refreshed from each successful read. For display.
20
+ feedTitle String?
21
+
22
+ usePerStreamerEmbeds Boolean?
23
+ autoPublishIfAnnouncmentChannel Boolean?
24
+
25
+ customMessages RFCustomMessage[]
26
+
27
+ // Premium Plus (MultiDestination). Up to 2 extra channels: [{ channelId, pingRoleId, types }]. [] = none.
28
+ extraDestinations Json?
29
+
30
+ // Minecraft (phases/in-game/ P3): off by default, as on every platform.
31
+ inGame Boolean @default(false)
32
+ inGameTypes String[]
33
+ inGameServerIds String[]
34
+
35
+ notificationChannelId String?
36
+ showNotifyButton Boolean?
37
+
38
+ pingRoleId String?
39
+ customCoolDownBeforeNextPost Int?
40
+
41
+ // The newest item already handled: its guid/id (or link, or a hash) and its date. B4 reads lastPostAt.
42
+ lastItemId String?
43
+ lastPostAt DateTime?
44
+
45
+ // Consecutive failed reads (inconclusive). Reset on any good read. Past a day of them the server is told
46
+ // once and the feed backs off to hourly (P2).
47
+ failCount Int @default(0)
48
+ lastError String?
49
+ failingSince DateTime?
50
+
51
+ position Int?
52
+ createdAt DateTime @default(now())
53
+ limitLocked Boolean @default(false)
54
+
55
+ @@unique([streamerUserName, guildId])
56
+ @@index([guildId])
57
+ @@index([guildId, position])
58
+ @@index([streamerUserName])
59
+ }
60
+
61
+ model RFCustomMessage {
62
+ dbId String @id @default(uuid())
63
+
64
+ type StreamerMessageTypeEnum
65
+ content String? @db.VarChar(2000)
66
+ // Per-message editor override for the branding (Invite Noti) button; null = fall back to guild disableBranding.
67
+ showInviteButton Boolean?
68
+ showWatchButton Boolean?
69
+
70
+ embed RFMessageEmbed?
71
+ buttons RFMessageButton[]
72
+ webhook RFMessageWebhook?
73
+
74
+ rssFeedId String
75
+ rssFeed RssFeed? @relation(fields: [rssFeedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
76
+
77
+ @@unique([rssFeedId, type])
78
+ }
79
+
80
+ model RFMessageEmbed {
81
+ dbId String @id @default(uuid())
82
+
83
+ title String? @db.VarChar(256)
84
+ url String?
85
+ description String? @db.VarChar(4096)
86
+ color String? @db.VarChar(10)
87
+ footer String? @db.VarChar(1024)
88
+ footerIcon String?
89
+ image String?
90
+ thumbnail String?
91
+ author String? @db.VarChar(256)
92
+ authorIcon String?
93
+ fields RFEmbedField[]
94
+
95
+ rfCustomMessageId String @unique
96
+ rfCustomMessage RFCustomMessage? @relation(fields: [rfCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
97
+ }
98
+
99
+ model RFEmbedField {
100
+ dbId String @id @default(uuid())
101
+
102
+ name String @db.VarChar(256)
103
+ value String? @db.VarChar(1024)
104
+ inline Boolean?
105
+
106
+ rfMessageEmbedId String
107
+ rfMessageEmbed RFMessageEmbed? @relation(fields: [rfMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
108
+ }
109
+
110
+ model RFMessageButton {
111
+ dbId String @id @default(uuid())
112
+
113
+ title String @db.VarChar(80)
114
+ url String?
115
+
116
+ emojiUnicodeOrId String?
117
+
118
+ rfCustomMessageId String
119
+ rfCustomMessage RFCustomMessage? @relation(fields: [rfCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
120
+ }
121
+
122
+ model RFMessageWebhook {
123
+ dbId String @id @default(uuid())
124
+
125
+ enabled Boolean?
126
+ username String?
127
+ avatarUrl String?
128
+
129
+ rfCustomMessageId String @unique
130
+ rfCustomMessage RFCustomMessage? @relation(fields: [rfCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
131
+ }
@@ -49,6 +49,7 @@ enum StreamerMessageTypeEnum {
49
49
  twitterPost
50
50
  twitterLive
51
51
  twitterOffline
52
+ rssPost
52
53
  }
53
54
 
54
55
  enum GuildMessageTypeEnum {
@@ -89,6 +90,7 @@ enum GuildMessageTypeEnum {
89
90
  twitterPost
90
91
  twitterLive
91
92
  twitterOffline
93
+ rssPost
92
94
  }
93
95
 
94
96
  enum GuildSingleMessageTypeEnum {
@@ -123,6 +125,7 @@ enum PlatformEnum {
123
125
  whatnot
124
126
  club
125
127
  twitter
128
+ rss
126
129
  }
127
130
 
128
131
  enum ClipperCategoryEnum {