@omniplex/api-types 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +18 -0
  2. 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;
@@ -1586,6 +1602,7 @@ export interface BotSettingsUpdate {
1586
1602
  nsfw: boolean;
1587
1603
  captcha_opt_out: boolean;
1588
1604
  auto_votes_opt_out?: boolean;
1605
+ hidden_stats?: string[];
1589
1606
  card_color?: string;
1590
1607
  }
1591
1608
  export interface ServerSettingsUpdate {
@@ -1597,6 +1614,7 @@ export interface ServerSettingsUpdate {
1597
1614
  nsfw: boolean;
1598
1615
  captcha_opt_out: boolean;
1599
1616
  auto_votes_opt_out?: boolean;
1617
+ hidden_stats?: string[];
1600
1618
  card_color?: string;
1601
1619
  login_required_for_invite: boolean;
1602
1620
  show_emojis: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniplex/api-types",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript types for the Omniplex API (Popplio).",
5
5
  "license": "MIT",
6
6
  "type": "module",