@notidotbot/noti-api-client 1.9.119 → 1.9.121
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/admin.d.ts +2 -2
- package/dist/classes/admin.js +1 -1
- package/dist/classes/client.d.ts +2 -2
- package/dist/classes/guildClipForward.d.ts +18 -18
- package/dist/classes/guildPlatform.d.ts +3 -2
- package/dist/classes/guildPlatformAction.d.ts +2 -2
- package/dist/classes/guildRolePanel.d.ts +14 -14
- package/dist/classes/guildStarboard.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/modules/stripe.js +1 -0
- package/dist/other/bitfields.d.ts +5 -2
- package/dist/other/bitfields.js +2 -0
- package/dist/other/enums.d.ts +6 -0
- package/dist/other/enums.js +3 -0
- package/dist/other/features.d.ts +1 -1
- package/dist/other/features.js +1 -0
- package/dist/other/inGameAlerts.d.ts +1 -0
- package/dist/other/inGameAlerts.js +1 -0
- package/dist/other/multiDestination.d.ts +1 -0
- package/dist/other/multiDestination.js +1 -0
- package/dist/other/prisma.d.ts +4 -0
- package/dist/other/templates.d.ts +43 -0
- package/dist/other/templates.js +32 -0
- package/dist/other/types.d.ts +2 -0
- package/dist/other/zod/client.zod.d.ts +2 -0
- package/dist/other/zod/clipForward.zod.d.ts +3 -0
- package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
- package/dist/other/zod/drops.zod.d.ts +1 -0
- package/dist/other/zod/gameConfig.zod.d.ts +9 -9
- package/dist/other/zod/guild.zod.d.ts +11 -0
- package/dist/other/zod/guild.zod.js +4 -0
- package/dist/other/zod/instagramStreamer.zod.d.ts +152 -0
- package/dist/other/zod/instagramStreamer.zod.js +44 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -2
- package/dist/other/zod/rssFeed.zod.d.ts +2 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +3 -1
- package/dist/other/zod/scheduledMessage.zod.d.ts +4 -4
- package/dist/other/zod/schema.zod.d.ts +8 -5
- package/dist/other/zod/schema.zod.js +3 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
- package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
- package/dist/other/zod/zod.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +2956 -0
- package/prisma/schema/models/guild.prisma +2 -0
- package/prisma/schema/models/instagramStreamer.prisma +123 -0
- package/prisma/schema/schema.prisma +3 -0
|
@@ -134,6 +134,8 @@ model GuildPremium {
|
|
|
134
134
|
additionalWhatnotConnections Int @default(0)
|
|
135
135
|
additionalClubConnections Int @default(0)
|
|
136
136
|
additionalTwitterConnections Int @default(0)
|
|
137
|
+
/// Instagram: $0.75 each. Paid only - the plan gives 0 / 2 / 5.
|
|
138
|
+
additionalInstagramConnections Int @default(0)
|
|
137
139
|
additionalKickClips Int @default(0)
|
|
138
140
|
additionalTwitchClips Int @default(0)
|
|
139
141
|
/// Channel counters, as a BUNDLE: each unit raises the per-platform allowance by one across every
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Instagram posts (phases/instagram/). Paid only (Premium 5 / Premium Plus 10). Shaped like RssFeed / ClubStreamer -
|
|
2
|
+
// posts only, no live state - so there is no live-role / offline / currently-live / stats table.
|
|
3
|
+
//
|
|
4
|
+
// Noti never talks to Instagram: a small service (a Docker container on the dedi, optionally also a Cloudflare Worker)
|
|
5
|
+
// reads a mirror site and answers POST /check { usernames }. It stores nothing; this table is the only creator list.
|
|
6
|
+
//
|
|
7
|
+
// `streamerUserName` is the Instagram handle, lower-cased. Which posts were already sent is NOT stored here: it is a
|
|
8
|
+
// Redis set of post ids per username (phases/instagram/ P2), because Instagram can list an old PINNED post first, so
|
|
9
|
+
// "newer than the last post" is the wrong test. `lastPostAt` is activity only (B4 / activeServers read it).
|
|
10
|
+
//
|
|
11
|
+
// SUB-MODEL PREFIX IS `IGS`.
|
|
12
|
+
model InstagramStreamer {
|
|
13
|
+
dbId String @id @default(uuid())
|
|
14
|
+
|
|
15
|
+
streamerUserName String
|
|
16
|
+
guildId String
|
|
17
|
+
|
|
18
|
+
// The creator's profile picture, copied to R2 (the source's links die after ~5 days). Refreshed when it changes.
|
|
19
|
+
avatarUrl String?
|
|
20
|
+
|
|
21
|
+
usePerStreamerEmbeds Boolean?
|
|
22
|
+
autoPublishIfAnnouncmentChannel Boolean?
|
|
23
|
+
|
|
24
|
+
customMessages IGSCustomMessage[]
|
|
25
|
+
|
|
26
|
+
// Premium Plus (MultiDestination). Up to 2 extra channels: [{ channelId, pingRoleId, types }]. [] = none.
|
|
27
|
+
extraDestinations Json?
|
|
28
|
+
|
|
29
|
+
// Minecraft (phases/in-game/ P3): off by default, as on every platform.
|
|
30
|
+
inGame Boolean @default(false)
|
|
31
|
+
inGameTypes String[]
|
|
32
|
+
inGameServerIds String[]
|
|
33
|
+
|
|
34
|
+
notificationChannelId String?
|
|
35
|
+
showNotifyButton Boolean?
|
|
36
|
+
|
|
37
|
+
pingRoleId String?
|
|
38
|
+
customCoolDownBeforeNextPost Int?
|
|
39
|
+
|
|
40
|
+
// When this server was last sent a post. Activity only - not the dedupe (see the header).
|
|
41
|
+
lastPostAt DateTime?
|
|
42
|
+
|
|
43
|
+
position Int?
|
|
44
|
+
createdAt DateTime @default(now())
|
|
45
|
+
limitLocked Boolean @default(false)
|
|
46
|
+
|
|
47
|
+
@@unique([streamerUserName, guildId])
|
|
48
|
+
@@index([guildId])
|
|
49
|
+
@@index([guildId, position])
|
|
50
|
+
@@index([streamerUserName])
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
model IGSCustomMessage {
|
|
54
|
+
dbId String @id @default(uuid())
|
|
55
|
+
|
|
56
|
+
type StreamerMessageTypeEnum
|
|
57
|
+
content String? @db.VarChar(2000)
|
|
58
|
+
// Per-message editor override for the branding (Invite Noti) button; null = fall back to guild disableBranding.
|
|
59
|
+
showInviteButton Boolean?
|
|
60
|
+
showWatchButton Boolean?
|
|
61
|
+
|
|
62
|
+
embed IGSMessageEmbed?
|
|
63
|
+
buttons IGSMessageButton[]
|
|
64
|
+
webhook IGSMessageWebhook?
|
|
65
|
+
|
|
66
|
+
instagramStreamerId String
|
|
67
|
+
instagramStreamer InstagramStreamer? @relation(fields: [instagramStreamerId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
68
|
+
|
|
69
|
+
@@unique([instagramStreamerId, type])
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
model IGSMessageEmbed {
|
|
73
|
+
dbId String @id @default(uuid())
|
|
74
|
+
|
|
75
|
+
title String? @db.VarChar(256)
|
|
76
|
+
url String?
|
|
77
|
+
description String? @db.VarChar(4096)
|
|
78
|
+
color String? @db.VarChar(10)
|
|
79
|
+
footer String? @db.VarChar(1024)
|
|
80
|
+
footerIcon String?
|
|
81
|
+
image String?
|
|
82
|
+
thumbnail String?
|
|
83
|
+
author String? @db.VarChar(256)
|
|
84
|
+
authorIcon String?
|
|
85
|
+
fields IGSEmbedField[]
|
|
86
|
+
|
|
87
|
+
igsCustomMessageId String @unique
|
|
88
|
+
igsCustomMessage IGSCustomMessage? @relation(fields: [igsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
model IGSEmbedField {
|
|
92
|
+
dbId String @id @default(uuid())
|
|
93
|
+
|
|
94
|
+
name String @db.VarChar(256)
|
|
95
|
+
value String? @db.VarChar(1024)
|
|
96
|
+
inline Boolean?
|
|
97
|
+
|
|
98
|
+
igsMessageEmbedId String
|
|
99
|
+
igsMessageEmbed IGSMessageEmbed? @relation(fields: [igsMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
model IGSMessageButton {
|
|
103
|
+
dbId String @id @default(uuid())
|
|
104
|
+
|
|
105
|
+
title String @db.VarChar(80)
|
|
106
|
+
url String?
|
|
107
|
+
|
|
108
|
+
emojiUnicodeOrId String?
|
|
109
|
+
|
|
110
|
+
igsCustomMessageId String
|
|
111
|
+
igsCustomMessage IGSCustomMessage? @relation(fields: [igsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
model IGSMessageWebhook {
|
|
115
|
+
dbId String @id @default(uuid())
|
|
116
|
+
|
|
117
|
+
enabled Boolean?
|
|
118
|
+
username String?
|
|
119
|
+
avatarUrl String?
|
|
120
|
+
|
|
121
|
+
igsCustomMessageId String @unique
|
|
122
|
+
igsCustomMessage IGSCustomMessage? @relation(fields: [igsCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
123
|
+
}
|
|
@@ -50,6 +50,7 @@ enum StreamerMessageTypeEnum {
|
|
|
50
50
|
twitterLive
|
|
51
51
|
twitterOffline
|
|
52
52
|
rssPost
|
|
53
|
+
instagramPost
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
enum GuildMessageTypeEnum {
|
|
@@ -91,6 +92,7 @@ enum GuildMessageTypeEnum {
|
|
|
91
92
|
twitterLive
|
|
92
93
|
twitterOffline
|
|
93
94
|
rssPost
|
|
95
|
+
instagramPost
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
enum GuildSingleMessageTypeEnum {
|
|
@@ -127,6 +129,7 @@ enum PlatformEnum {
|
|
|
127
129
|
club
|
|
128
130
|
twitter
|
|
129
131
|
rss
|
|
132
|
+
instagram
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
enum ClipperCategoryEnum {
|