@omniplex/api-types 0.5.0 → 0.7.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 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -380,6 +380,8 @@ export interface ApiSession {
|
|
|
380
380
|
/** Empty means unrestricted — the token inherits whatever perms its owner has at request time. */
|
|
381
381
|
perm_limits: string[];
|
|
382
382
|
expiry: string;
|
|
383
|
+
/** True for the session making the request, so a UI can mark "this device". */
|
|
384
|
+
current: boolean;
|
|
383
385
|
}
|
|
384
386
|
export interface CreateSessionPayload {
|
|
385
387
|
name: string;
|
|
@@ -774,6 +776,8 @@ export interface VoterLeaderboardRank {
|
|
|
774
776
|
votes: number;
|
|
775
777
|
total_voters: number;
|
|
776
778
|
period_start: string | null;
|
|
779
|
+
/** When monthly votes next reset. */
|
|
780
|
+
next_reset?: string | null;
|
|
777
781
|
}
|
|
778
782
|
export interface EntityVote {
|
|
779
783
|
itag: string;
|
|
@@ -1010,7 +1014,7 @@ export interface ListIndexServer {
|
|
|
1010
1014
|
spotlight: IndexServer[];
|
|
1011
1015
|
recently_bumped?: IndexServer[];
|
|
1012
1016
|
}
|
|
1013
|
-
export type PageGradient = "aurora" | "sunset" | "ocean" | "forest" | "candy" | "midnight" | "ember" | "mono"
|
|
1017
|
+
export type PageGradient = "aurora" | "sunset" | "ocean" | "forest" | "candy" | "midnight" | "ember" | "mono" | `custom:#${string}:#${string}`;
|
|
1014
1018
|
export interface PageStyle {
|
|
1015
1019
|
gradient: PageGradient | null;
|
|
1016
1020
|
accent: string | null;
|
|
@@ -1109,6 +1113,8 @@ export interface AppPosition {
|
|
|
1109
1113
|
cooldown: string;
|
|
1110
1114
|
help_url?: string;
|
|
1111
1115
|
help_label?: string;
|
|
1116
|
+
/** One line describing the position, for lists of positions. */
|
|
1117
|
+
summary?: string;
|
|
1112
1118
|
}
|
|
1113
1119
|
export interface AppMeta {
|
|
1114
1120
|
positions: AppPosition[];
|
|
@@ -1158,6 +1164,10 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
|
|
|
1158
1164
|
last_voted_at: string | null;
|
|
1159
1165
|
last_skip_reason: string | null;
|
|
1160
1166
|
cooldown_until: string | null;
|
|
1167
|
+
/** Automatic votes cast for this listing in the last 24 hours. */
|
|
1168
|
+
votes_24h?: number;
|
|
1169
|
+
/** Automatic votes cast for this listing in the last 7 days. */
|
|
1170
|
+
votes_7d?: number;
|
|
1161
1171
|
in_schedule: boolean;
|
|
1162
1172
|
paused: boolean;
|
|
1163
1173
|
}
|
|
@@ -1175,6 +1185,10 @@ export interface AutoVoteStatus {
|
|
|
1175
1185
|
billing_interval: "month" | "year";
|
|
1176
1186
|
booster_slots: number;
|
|
1177
1187
|
targets: AutoVoteTarget[];
|
|
1188
|
+
/** Automatic votes cast in the last 24 hours, including for listings no longer on the list. */
|
|
1189
|
+
votes_24h?: number;
|
|
1190
|
+
/** Automatic votes cast in the last 7 days, including for listings no longer on the list. */
|
|
1191
|
+
votes_7d?: number;
|
|
1178
1192
|
notify: AutoVoteNotify;
|
|
1179
1193
|
}
|
|
1180
1194
|
export interface AutoVotePricing {
|
|
@@ -1424,10 +1438,24 @@ export interface ServerTemplate {
|
|
|
1424
1438
|
tags: string[];
|
|
1425
1439
|
nsfw: boolean;
|
|
1426
1440
|
owner: PlatformUser;
|
|
1427
|
-
/** Discord's own reported usage count, as of
|
|
1441
|
+
/** Discord's own reported usage count, as of the last sync. */
|
|
1428
1442
|
usage_count: number;
|
|
1429
1443
|
created_at: string;
|
|
1430
1444
|
updated_at: string;
|
|
1445
|
+
/** Version of the custom icon, for `templateIconUrl()`. Null when there's none. */
|
|
1446
|
+
icon_version: string | null;
|
|
1447
|
+
/** How many channels (not counting categories) the template has. */
|
|
1448
|
+
channel_count: number;
|
|
1449
|
+
/** How many roles (not counting @everyone) the template has. */
|
|
1450
|
+
role_count: number;
|
|
1451
|
+
/** When the template was last updated on Discord. */
|
|
1452
|
+
source_updated_at: string | null;
|
|
1453
|
+
/** The source server has changes not yet synced into the template on Discord. */
|
|
1454
|
+
out_of_date: boolean;
|
|
1455
|
+
/** The template no longer exists on Discord. Hidden from browse. */
|
|
1456
|
+
unavailable: boolean;
|
|
1457
|
+
/** When Omniplex last refreshed the template from Discord. */
|
|
1458
|
+
synced_at: string | null;
|
|
1431
1459
|
/** Only populated on a single-template fetch, not the browse list. */
|
|
1432
1460
|
channels: TemplateChannel[];
|
|
1433
1461
|
/** Only populated on a single-template fetch, not the browse list. */
|