oapi: root level routes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user