@omniplex/api-types 0.2.0 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +73 -0
  2. 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 {
@@ -1039,7 +1074,9 @@ export interface AutoVoteTargetInput {
1039
1074
  start_minute: number;
1040
1075
  end_minute: number;
1041
1076
  timezone: string;
1077
+ paused?: boolean;
1042
1078
  }
1079
+ export type AutoVoteNotify = "off" | "each" | "daily";
1043
1080
  export interface AutoVoteTarget extends AutoVoteTargetInput {
1044
1081
  name: string;
1045
1082
  avatar: string;
@@ -1047,6 +1084,7 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
1047
1084
  last_skip_reason: string | null;
1048
1085
  cooldown_until: string | null;
1049
1086
  in_schedule: boolean;
1087
+ paused: boolean;
1050
1088
  }
1051
1089
  export interface AutoVoteStatus {
1052
1090
  subscribed: boolean;
@@ -1054,13 +1092,48 @@ export interface AutoVoteStatus {
1054
1092
  current_period_end: string | null;
1055
1093
  cancel_at_period_end: boolean;
1056
1094
  price_cents: number;
1095
+ yearly_price_cents: number;
1057
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;
1058
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;
1059
1112
  }
1060
1113
  export interface PlanList {
1061
1114
  plans: PaymentPlan[];
1062
1115
  credits_per_cent?: number;
1063
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;
1064
1137
  }
1065
1138
  export interface PaypalMeta {
1066
1139
  paypal_client_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniplex/api-types",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript types for the Omniplex API (Popplio).",
5
5
  "license": "MIT",
6
6
  "type": "module",