@omniplex/api-types 0.4.0 → 0.6.0
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/index.d.ts +30 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface AssetVersions {
|
|
|
25
25
|
banner?: string;
|
|
26
26
|
}
|
|
27
27
|
export interface IndexBot {
|
|
28
|
+
/** Views in the last 30 days, counting each visitor once per listing per day. */
|
|
29
|
+
views_30d?: number;
|
|
28
30
|
asset_versions?: AssetVersions;
|
|
29
31
|
highlighted?: boolean;
|
|
30
32
|
card_color?: string;
|
|
@@ -44,6 +46,8 @@ export interface IndexBot {
|
|
|
44
46
|
invite_clicks: number;
|
|
45
47
|
clicks: number;
|
|
46
48
|
servers: number;
|
|
49
|
+
/** Stats the owner chose to hide. Hidden stats are returned as zero unless you manage this listing. */
|
|
50
|
+
hidden_stats?: string[];
|
|
47
51
|
nsfw: boolean;
|
|
48
52
|
tags: string[];
|
|
49
53
|
premium: boolean;
|
|
@@ -54,6 +58,8 @@ export interface IndexBot {
|
|
|
54
58
|
spotlighted_until: string | null;
|
|
55
59
|
}
|
|
56
60
|
export interface Bot {
|
|
61
|
+
/** Views in the last 30 days, counting each visitor once per listing per day. */
|
|
62
|
+
views_30d?: number;
|
|
57
63
|
asset_versions?: AssetVersions;
|
|
58
64
|
itag: string;
|
|
59
65
|
bot_id: string;
|
|
@@ -85,6 +91,10 @@ export interface Bot {
|
|
|
85
91
|
/** Successful uptime checks out of total_uptime, from Popplio's periodic presence check. */
|
|
86
92
|
uptime: number;
|
|
87
93
|
total_uptime: number;
|
|
94
|
+
/** Share of uptime checks in the last 30 days where the bot was online, 0 to 100. Null when it hasn't been seen online in that time. */
|
|
95
|
+
uptime_percent?: number | null;
|
|
96
|
+
/** How many uptime checks ran in the last 30 days. */
|
|
97
|
+
uptime_checks?: number;
|
|
88
98
|
/** Null if never checked yet. */
|
|
89
99
|
uptime_last_checked: string | null;
|
|
90
100
|
prefix: string;
|
|
@@ -93,6 +103,8 @@ export interface Bot {
|
|
|
93
103
|
cert_reason: string | null;
|
|
94
104
|
captcha_opt_out: boolean;
|
|
95
105
|
auto_votes_opt_out?: boolean;
|
|
106
|
+
/** Stats the owner chose to hide. Hidden stats are returned as zero unless you manage this listing. */
|
|
107
|
+
hidden_stats?: string[];
|
|
96
108
|
auto_votes?: number;
|
|
97
109
|
highlighted?: boolean;
|
|
98
110
|
card_color?: string;
|
|
@@ -223,6 +235,10 @@ export interface RecentChangelogBot {
|
|
|
223
235
|
}
|
|
224
236
|
export type ServerState = "public" | "private" | "unlisted" | "defunct";
|
|
225
237
|
export interface IndexServer {
|
|
238
|
+
/** Views in the last 30 days, counting each visitor once per listing per day. */
|
|
239
|
+
views_30d?: number;
|
|
240
|
+
/** Stats the owner chose to hide. Hidden stats are returned as zero unless you manage this listing. */
|
|
241
|
+
hidden_stats?: string[];
|
|
226
242
|
asset_versions?: AssetVersions;
|
|
227
243
|
highlighted?: boolean;
|
|
228
244
|
card_color?: string;
|
|
@@ -758,6 +774,8 @@ export interface VoterLeaderboardRank {
|
|
|
758
774
|
votes: number;
|
|
759
775
|
total_voters: number;
|
|
760
776
|
period_start: string | null;
|
|
777
|
+
/** When monthly votes next reset. */
|
|
778
|
+
next_reset?: string | null;
|
|
761
779
|
}
|
|
762
780
|
export interface EntityVote {
|
|
763
781
|
itag: string;
|
|
@@ -1093,6 +1111,8 @@ export interface AppPosition {
|
|
|
1093
1111
|
cooldown: string;
|
|
1094
1112
|
help_url?: string;
|
|
1095
1113
|
help_label?: string;
|
|
1114
|
+
/** One line describing the position, for lists of positions. */
|
|
1115
|
+
summary?: string;
|
|
1096
1116
|
}
|
|
1097
1117
|
export interface AppMeta {
|
|
1098
1118
|
positions: AppPosition[];
|
|
@@ -1142,6 +1162,10 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
|
|
|
1142
1162
|
last_voted_at: string | null;
|
|
1143
1163
|
last_skip_reason: string | null;
|
|
1144
1164
|
cooldown_until: string | null;
|
|
1165
|
+
/** Automatic votes cast for this listing in the last 24 hours. */
|
|
1166
|
+
votes_24h?: number;
|
|
1167
|
+
/** Automatic votes cast for this listing in the last 7 days. */
|
|
1168
|
+
votes_7d?: number;
|
|
1145
1169
|
in_schedule: boolean;
|
|
1146
1170
|
paused: boolean;
|
|
1147
1171
|
}
|
|
@@ -1159,6 +1183,10 @@ export interface AutoVoteStatus {
|
|
|
1159
1183
|
billing_interval: "month" | "year";
|
|
1160
1184
|
booster_slots: number;
|
|
1161
1185
|
targets: AutoVoteTarget[];
|
|
1186
|
+
/** Automatic votes cast in the last 24 hours, including for listings no longer on the list. */
|
|
1187
|
+
votes_24h?: number;
|
|
1188
|
+
/** Automatic votes cast in the last 7 days, including for listings no longer on the list. */
|
|
1189
|
+
votes_7d?: number;
|
|
1162
1190
|
notify: AutoVoteNotify;
|
|
1163
1191
|
}
|
|
1164
1192
|
export interface AutoVotePricing {
|
|
@@ -1586,6 +1614,7 @@ export interface BotSettingsUpdate {
|
|
|
1586
1614
|
nsfw: boolean;
|
|
1587
1615
|
captcha_opt_out: boolean;
|
|
1588
1616
|
auto_votes_opt_out?: boolean;
|
|
1617
|
+
hidden_stats?: string[];
|
|
1589
1618
|
card_color?: string;
|
|
1590
1619
|
}
|
|
1591
1620
|
export interface ServerSettingsUpdate {
|
|
@@ -1597,6 +1626,7 @@ export interface ServerSettingsUpdate {
|
|
|
1597
1626
|
nsfw: boolean;
|
|
1598
1627
|
captcha_opt_out: boolean;
|
|
1599
1628
|
auto_votes_opt_out?: boolean;
|
|
1629
|
+
hidden_stats?: string[];
|
|
1600
1630
|
card_color?: string;
|
|
1601
1631
|
login_required_for_invite: boolean;
|
|
1602
1632
|
show_emojis: boolean;
|