oapi: root level routes

This commit is contained in:
Puyodead1
2023-04-13 15:40:51 -04:00
parent fd283f1d15
commit 3a23842924
16 changed files with 22704 additions and 150 deletions
@@ -0,0 +1,8 @@
import { Guild } from "../../entities";
export interface DiscoverableGuildsResponse {
total: number;
guilds: Guild[];
offset: number;
limit: number;
}
@@ -0,0 +1,3 @@
import { Categories } from "../../entities";
export type DiscoveryCategoriesResponse = Categories[];
@@ -0,0 +1,6 @@
import { Guild } from "../../entities";
export interface GuildRecommendationsResponse {
recommended_guilds: Guild[];
load_id: string;
}
@@ -0,0 +1,13 @@
export interface InstancePingResponse {
ping: "pong!";
instance: {
id: string;
name: string;
description: string | null;
image: string | null;
correspondenceEmail: string | null;
correspondenceUserID: string | null;
frontPage: string | null;
tosPage: string | null;
};
}
@@ -0,0 +1,6 @@
export interface UpdatesResponse {
name: string;
pub_date: string;
url: string;
notes: string | null;
}
+5
View File
@@ -9,6 +9,8 @@ export * from "./CaptchaRequiredResponse";
export * from "./ChannelInvitesResponse";
export * from "./ChannelPinsResponse";
export * from "./ChannelWebhooksResponse";
export * from "./DiscoverableGuildsResponse";
export * from "./DiscoveryCategoriesResponse";
export * from "./GatewayBotResponse";
export * from "./GatewayResponse";
export * from "./GeneralConfigurationResponse";
@@ -22,6 +24,7 @@ export * from "./GuildInvitesResponse";
export * from "./GuildMembersResponse";
export * from "./GuildMessagesSearchResponse";
export * from "./GuildPruneResponse";
export * from "./GuildRecommendationsResponse";
export * from "./GuildResponse";
export * from "./GuildRolesResponse";
export * from "./GuildStickersResponse";
@@ -31,6 +34,7 @@ export * from "./GuildVoiceRegionsResponse";
export * from "./GuildWidgetJsonResponse";
export * from "./GuildWidgetSettingsResponse";
export * from "./InstanceDomainsResponse";
export * from "./InstancePingResponse";
export * from "./InstanceStatsResponse";
export * from "./LimitsConfigurationResponse";
export * from "./LocationMetadataResponse";
@@ -39,6 +43,7 @@ export * from "./OAuthAuthorizeResponse";
export * from "./StickerPacksResponse";
export * from "./Tenor";
export * from "./TokenResponse";
export * from "./UpdatesResponse";
export * from "./UserNoteResponse";
export * from "./UserProfileResponse";
export * from "./UserRelationshipsResponse";