@omniplex/api-types 0.1.3 → 0.3.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 +76 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -141,6 +141,41 @@ export interface CreateBotChangelogPayload {
|
|
|
141
141
|
content: string;
|
|
142
142
|
version: string;
|
|
143
143
|
}
|
|
144
|
+
export interface ServerChangelog {
|
|
145
|
+
id: string;
|
|
146
|
+
title: string;
|
|
147
|
+
content: string;
|
|
148
|
+
version: string;
|
|
149
|
+
created_by: string;
|
|
150
|
+
created_at: string;
|
|
151
|
+
}
|
|
152
|
+
export interface ServerChangelogList {
|
|
153
|
+
changelogs: ServerChangelog[];
|
|
154
|
+
}
|
|
155
|
+
export interface ServerVoteChannelOption {
|
|
156
|
+
id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
}
|
|
159
|
+
export interface ServerVoteChannel {
|
|
160
|
+
channel_id: string | null;
|
|
161
|
+
channels: ServerVoteChannelOption[];
|
|
162
|
+
available: boolean;
|
|
163
|
+
}
|
|
164
|
+
export interface ServerChangelogFeedEntry {
|
|
165
|
+
id: string;
|
|
166
|
+
server_id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
avatar: string;
|
|
169
|
+
title: string;
|
|
170
|
+
content: string;
|
|
171
|
+
version: string;
|
|
172
|
+
created_at: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ServerChangelogFeedFilters {
|
|
175
|
+
q?: string;
|
|
176
|
+
tag?: string;
|
|
177
|
+
server?: string;
|
|
178
|
+
}
|
|
144
179
|
/** One result row of the cross-bot command search (GET /bots/@commands) --
|
|
145
180
|
* just enough of the owning bot's identity to display and link back to it. */
|
|
146
181
|
export interface BotCommandSearchResult {
|
|
@@ -997,6 +1032,8 @@ export interface AppPosition {
|
|
|
997
1032
|
requires_main_server?: boolean;
|
|
998
1033
|
/** Go duration string, e.g. "48h0m0s" — 0s means no cooldown. */
|
|
999
1034
|
cooldown: string;
|
|
1035
|
+
help_url?: string;
|
|
1036
|
+
help_label?: string;
|
|
1000
1037
|
}
|
|
1001
1038
|
export interface AppMeta {
|
|
1002
1039
|
positions: AppPosition[];
|
|
@@ -1037,7 +1074,9 @@ export interface AutoVoteTargetInput {
|
|
|
1037
1074
|
start_minute: number;
|
|
1038
1075
|
end_minute: number;
|
|
1039
1076
|
timezone: string;
|
|
1077
|
+
paused?: boolean;
|
|
1040
1078
|
}
|
|
1079
|
+
export type AutoVoteNotify = "off" | "each" | "daily";
|
|
1041
1080
|
export interface AutoVoteTarget extends AutoVoteTargetInput {
|
|
1042
1081
|
name: string;
|
|
1043
1082
|
avatar: string;
|
|
@@ -1045,6 +1084,7 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
|
|
|
1045
1084
|
last_skip_reason: string | null;
|
|
1046
1085
|
cooldown_until: string | null;
|
|
1047
1086
|
in_schedule: boolean;
|
|
1087
|
+
paused: boolean;
|
|
1048
1088
|
}
|
|
1049
1089
|
export interface AutoVoteStatus {
|
|
1050
1090
|
subscribed: boolean;
|
|
@@ -1052,13 +1092,48 @@ export interface AutoVoteStatus {
|
|
|
1052
1092
|
current_period_end: string | null;
|
|
1053
1093
|
cancel_at_period_end: boolean;
|
|
1054
1094
|
price_cents: number;
|
|
1095
|
+
yearly_price_cents: number;
|
|
1055
1096
|
max_targets: number;
|
|
1097
|
+
extra_slots: number;
|
|
1098
|
+
max_extra_slots: number;
|
|
1099
|
+
slot_price_cents: number;
|
|
1100
|
+
billing_interval: "month" | "year";
|
|
1101
|
+
booster_slots: number;
|
|
1056
1102
|
targets: AutoVoteTarget[];
|
|
1103
|
+
notify: AutoVoteNotify;
|
|
1104
|
+
}
|
|
1105
|
+
export interface AutoVotePricing {
|
|
1106
|
+
price_cents: number;
|
|
1107
|
+
yearly_price_cents: number;
|
|
1108
|
+
slot_price_cents: number;
|
|
1109
|
+
yearly_slot_price_cents: number;
|
|
1110
|
+
included_slots: number;
|
|
1111
|
+
max_extra_slots: number;
|
|
1057
1112
|
}
|
|
1058
1113
|
export interface PlanList {
|
|
1059
1114
|
plans: PaymentPlan[];
|
|
1060
1115
|
credits_per_cent?: number;
|
|
1061
1116
|
max_credit_share?: number;
|
|
1117
|
+
auto_vote?: AutoVotePricing;
|
|
1118
|
+
}
|
|
1119
|
+
export interface BoosterPerkTarget {
|
|
1120
|
+
target_type: "bot" | "server";
|
|
1121
|
+
target_id: string;
|
|
1122
|
+
name: string;
|
|
1123
|
+
avatar: string;
|
|
1124
|
+
}
|
|
1125
|
+
export interface BoosterPerks {
|
|
1126
|
+
boosting: boolean;
|
|
1127
|
+
in_server: boolean;
|
|
1128
|
+
boosting_since: string | null;
|
|
1129
|
+
target: BoosterPerkTarget | null;
|
|
1130
|
+
last_claim_at: string | null;
|
|
1131
|
+
next_renewal_at: string | null;
|
|
1132
|
+
last_error: string | null;
|
|
1133
|
+
just_applied: boolean;
|
|
1134
|
+
premium_days: number;
|
|
1135
|
+
auto_vote_slots: number;
|
|
1136
|
+
renewal_days: number;
|
|
1062
1137
|
}
|
|
1063
1138
|
export interface PaypalMeta {
|
|
1064
1139
|
paypal_client_id: string;
|
|
@@ -1166,7 +1241,7 @@ export interface UserNotification {
|
|
|
1166
1241
|
export interface NotifGetList {
|
|
1167
1242
|
notifications: UserNotification[];
|
|
1168
1243
|
}
|
|
1169
|
-
export type AlertCategory = "votes" | "bot_server_reviews" | "payments" | "shop" | "webhooks" | "staff_applications" | "reports" | "account_security";
|
|
1244
|
+
export type AlertCategory = "votes" | "bot_server_reviews" | "payments" | "shop" | "webhooks" | "staff_applications" | "reports" | "account_security" | "staff";
|
|
1170
1245
|
export type NotificationPrefs = Partial<Record<AlertCategory, boolean>>;
|
|
1171
1246
|
export interface ResolvedReminder {
|
|
1172
1247
|
name: string;
|