temp
This commit is contained in:
70 files changed
+2548
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,102 @@
|
|||||||
|
abstract class BaseClient {
|
||||||
|
abstract getSite()
|
||||||
|
abstract createSite(form)
|
||||||
|
abstract editSite(form)
|
||||||
|
abstract leaveAdmin()
|
||||||
|
abstract generateTotpSecret()
|
||||||
|
abstract exportSettings()
|
||||||
|
abstract importSettings(form)
|
||||||
|
abstract listLogins()
|
||||||
|
abstract validateAuth()
|
||||||
|
abstract listMedia(form)
|
||||||
|
abstract listAllMedia(form)
|
||||||
|
abstract updateTotp(form)
|
||||||
|
abstract getModlog(form)
|
||||||
|
abstract search(form)
|
||||||
|
abstract resolveObject(form)
|
||||||
|
abstract createCommunity(form)
|
||||||
|
abstract getCommunity(form)
|
||||||
|
abstract editCommunity(form)
|
||||||
|
abstract listCommunities(form)
|
||||||
|
abstract followCommunity(form)
|
||||||
|
abstract blockCommunity(form)
|
||||||
|
abstract deleteCommunity(form)
|
||||||
|
abstract hideCommunity(form)
|
||||||
|
abstract removeCommunity(form)
|
||||||
|
abstract transferCommunity(form)
|
||||||
|
abstract banFromCommunity(form)
|
||||||
|
abstract addModToCommunity(form)
|
||||||
|
abstract createPost(form)
|
||||||
|
abstract getPost(form)
|
||||||
|
abstract editPost(form)
|
||||||
|
abstract deletePost(form)
|
||||||
|
abstract removePost(form)
|
||||||
|
abstract markPostAsRead(form)
|
||||||
|
abstract hidePost(form)
|
||||||
|
abstract lockPost(form)
|
||||||
|
abstract featurePost(form)
|
||||||
|
abstract getPosts(form)
|
||||||
|
abstract likePost(form)
|
||||||
|
abstract listPostLikes(form)
|
||||||
|
abstract savePost(form)
|
||||||
|
abstract createPostReport(form)
|
||||||
|
abstract resolvePostReport(form)
|
||||||
|
abstract listPostReports(form)
|
||||||
|
abstract getSiteMetadata(form)
|
||||||
|
abstract createComment(form)
|
||||||
|
abstract editComment(form)
|
||||||
|
abstract deleteComment(form)
|
||||||
|
abstract removeComment(form)
|
||||||
|
abstract markCommentReplyAsRead(form)
|
||||||
|
abstract likeComment(form)
|
||||||
|
abstract listCommentLikes(form)
|
||||||
|
abstract saveComment(form)
|
||||||
|
abstract distinguishComment(form)
|
||||||
|
abstract getComments(form)
|
||||||
|
abstract getComment(form)
|
||||||
|
abstract createCommentReport(form)
|
||||||
|
abstract resolveCommentReport(form)
|
||||||
|
abstract listCommentReports(form)
|
||||||
|
abstract getPrivateMessages(form)
|
||||||
|
abstract createPrivateMessage(form)
|
||||||
|
abstract editPrivateMessage(form)
|
||||||
|
abstract deletePrivateMessage(form)
|
||||||
|
abstract markPrivateMessageAsRead(form)
|
||||||
|
abstract createPrivateMessageReport(form)
|
||||||
|
abstract resolvePrivateMessageReport(form)
|
||||||
|
abstract listPrivateMessageReports(form)
|
||||||
|
abstract register(form)
|
||||||
|
abstract login(form)
|
||||||
|
abstract logout()
|
||||||
|
abstract getPersonDetails(form)
|
||||||
|
abstract getPersonMentions(form)
|
||||||
|
abstract markPersonMentionAsRead(form)
|
||||||
|
abstract getReplies(form)
|
||||||
|
abstract banPerson(form)
|
||||||
|
abstract getBannedPersons()
|
||||||
|
abstract blockPerson(form)
|
||||||
|
abstract getCaptcha()
|
||||||
|
abstract deleteAccount(form)
|
||||||
|
abstract passwordReset(form)
|
||||||
|
abstract passwordChangeAfterReset(form)
|
||||||
|
abstract markAllAsRead()
|
||||||
|
abstract saveUserSettings(form)
|
||||||
|
abstract changePassword(form)
|
||||||
|
abstract getReportCount(form)
|
||||||
|
abstract getUnreadCount()
|
||||||
|
abstract verifyEmail(form)
|
||||||
|
abstract addAdmin(form)
|
||||||
|
abstract getUnreadRegistrationApplicationCount()
|
||||||
|
abstract listRegistrationApplications(form)
|
||||||
|
abstract approveRegistrationApplication(form)
|
||||||
|
abstract getRegistrationApplication(form)
|
||||||
|
abstract purgePerson(form)
|
||||||
|
abstract purgeCommunity(form)
|
||||||
|
abstract purgePost(form)
|
||||||
|
abstract purgeComment(form)
|
||||||
|
abstract createCustomEmoji(form)
|
||||||
|
abstract editCustomEmoji(form)
|
||||||
|
abstract deleteCustomEmoji(form)
|
||||||
|
abstract getFederatedInstances()
|
||||||
|
abstract blockInstance(form)
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export * from './payload'
|
||||||
|
export * from './response'
|
||||||
|
export * from './schemas'
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentId } from "./CommentId";
|
||||||
|
export interface GetComment {
|
||||||
|
id: CommentId;
|
||||||
|
}
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
import type { CommentId } from "./CommentId";
|
||||||
|
import type { CommentSortType } from "./CommentSortType";
|
||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
import type { ListingType } from "./ListingType";
|
||||||
|
import type { PostId } from "./PostId";
|
||||||
|
export interface GetComments {
|
||||||
|
type_?: ListingType;
|
||||||
|
sort?: CommentSortType;
|
||||||
|
max_depth?: number;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
community_id?: CommunityId;
|
||||||
|
community_name?: string;
|
||||||
|
post_id?: PostId;
|
||||||
|
parent_id?: CommentId;
|
||||||
|
saved_only?: boolean;
|
||||||
|
liked_only?: boolean;
|
||||||
|
disliked_only?: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
export interface GetCommunity {
|
||||||
|
id?: CommunityId;
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
import type { CommentId } from "./CommentId";
|
||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
import type { ModlogActionType } from "./ModlogActionType";
|
||||||
|
import type { PersonId } from "./PersonId";
|
||||||
|
import type { PostId } from "./PostId";
|
||||||
|
export interface GetModlog {
|
||||||
|
mod_person_id?: PersonId;
|
||||||
|
community_id?: CommunityId;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
type_?: ModlogActionType;
|
||||||
|
other_person_id?: PersonId;
|
||||||
|
post_id?: PostId;
|
||||||
|
comment_id?: CommentId;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
import type { PersonId } from "./PersonId";
|
||||||
|
import type { SortType } from "./SortType";
|
||||||
|
export interface GetPersonDetails {
|
||||||
|
person_id?: PersonId;
|
||||||
|
username?: string;
|
||||||
|
sort?: SortType;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
community_id?: CommunityId;
|
||||||
|
saved_only?: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import type { CommentSortType } from "./CommentSortType";
|
||||||
|
export interface GetPersonMentions {
|
||||||
|
sort?: CommentSortType;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
unread_only?: boolean;
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
import type { CommentId } from "./CommentId";
|
||||||
|
import type { PostId } from "./PostId";
|
||||||
|
export interface GetPost {
|
||||||
|
id?: PostId;
|
||||||
|
comment_id?: CommentId;
|
||||||
|
}
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
import type { ListingType } from "./ListingType";
|
||||||
|
import type { PaginationCursor } from "./PaginationCursor";
|
||||||
|
import type { SortType } from "./SortType";
|
||||||
|
export interface GetPosts {
|
||||||
|
type_?: ListingType;
|
||||||
|
sort?: SortType;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
community_id?: CommunityId;
|
||||||
|
community_name?: string;
|
||||||
|
saved_only?: boolean;
|
||||||
|
liked_only?: boolean;
|
||||||
|
disliked_only?: boolean;
|
||||||
|
show_hidden?: boolean;
|
||||||
|
show_read?: boolean;
|
||||||
|
show_nsfw?: boolean;
|
||||||
|
page_cursor?: PaginationCursor;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import type { PersonId } from "./PersonId";
|
||||||
|
export interface GetPrivateMessages {
|
||||||
|
unread_only?: boolean;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
creator_id?: PersonId;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PersonId } from "./PersonId";
|
||||||
|
export interface GetRegistrationApplication {
|
||||||
|
person_id: PersonId;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import type { CommentSortType } from "./CommentSortType";
|
||||||
|
export interface GetReplies {
|
||||||
|
sort?: CommentSortType;
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
unread_only?: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
export interface GetReportCount {
|
||||||
|
community_id?: CommunityId;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface GetSiteMetadata {
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
export * from './GetComment.d';
|
||||||
|
export * from './GetComments.d';
|
||||||
|
export * from './GetCommunity.d';
|
||||||
|
export * from './GetModlog.d';
|
||||||
|
export * from './GetPersonDetails.d';
|
||||||
|
export * from './GetPersonMentions.d';
|
||||||
|
export * from './GetPost.d';
|
||||||
|
export * from './GetPosts.d';
|
||||||
|
export * from './GetPrivateMessages.d';
|
||||||
|
export * from './GetRegistrationApplication.d';
|
||||||
|
export * from './GetReplies.d';
|
||||||
|
export * from './GetReportCount.d';
|
||||||
|
export * from './GetSiteMetadata.d';
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
export interface AddAdminResponse {
|
||||||
|
admins: Array<PersonView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
||||||
|
export interface AddModToCommunityResponse {
|
||||||
|
moderators: Array<CommunityModeratorView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
export interface BanFromCommunityResponse {
|
||||||
|
person_view: PersonView;
|
||||||
|
banned: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
export interface BanPersonResponse {
|
||||||
|
person_view: PersonView;
|
||||||
|
banned: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
export interface BannedPersonsResponse {
|
||||||
|
banned: Array<PersonView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
export interface BlockCommunityResponse {
|
||||||
|
community_view: CommunityView;
|
||||||
|
blocked: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface BlockInstanceResponse {
|
||||||
|
blocked: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
export interface BlockPersonResponse {
|
||||||
|
person_view: PersonView;
|
||||||
|
blocked: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface CaptchaResponse {
|
||||||
|
png: string;
|
||||||
|
wav: string;
|
||||||
|
uuid: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentReplyView } from "./CommentReplyView";
|
||||||
|
export interface CommentReplyResponse {
|
||||||
|
comment_reply_view: CommentReplyView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentReportView } from "./CommentReportView";
|
||||||
|
export interface CommentReportResponse {
|
||||||
|
comment_report_view: CommentReportView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import type { CommentView } from "./CommentView";
|
||||||
|
import type { LocalUserId } from "./LocalUserId";
|
||||||
|
export interface CommentResponse {
|
||||||
|
comment_view: CommentView;
|
||||||
|
recipient_ids: Array<LocalUserId>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
import type { LanguageId } from "./LanguageId";
|
||||||
|
export interface CommunityResponse {
|
||||||
|
community_view: CommunityView;
|
||||||
|
discussion_languages: Array<LanguageId>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CustomEmojiView } from "./CustomEmojiView";
|
||||||
|
export interface CustomEmojiResponse {
|
||||||
|
custom_emoji: CustomEmojiView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface GenerateTotpSecretResponse {
|
||||||
|
totp_secret_url: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CaptchaResponse } from "./CaptchaResponse";
|
||||||
|
export interface GetCaptchaResponse {
|
||||||
|
ok?: CaptchaResponse;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentView } from "./CommentView";
|
||||||
|
export interface GetCommentsResponse {
|
||||||
|
comments: Array<CommentView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
import type { LanguageId } from "./LanguageId";
|
||||||
|
import type { Site } from "./Site";
|
||||||
|
export interface GetCommunityResponse {
|
||||||
|
community_view: CommunityView;
|
||||||
|
site?: Site;
|
||||||
|
moderators: Array<CommunityModeratorView>;
|
||||||
|
discussion_languages: Array<LanguageId>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { FederatedInstances } from "./FederatedInstances";
|
||||||
|
export interface GetFederatedInstancesResponse {
|
||||||
|
federated_instances?: FederatedInstances;
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
|
||||||
|
import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
|
||||||
|
import type { AdminPurgePersonView } from "./AdminPurgePersonView";
|
||||||
|
import type { AdminPurgePostView } from "./AdminPurgePostView";
|
||||||
|
import type { ModAddCommunityView } from "./ModAddCommunityView";
|
||||||
|
import type { ModAddView } from "./ModAddView";
|
||||||
|
import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
|
||||||
|
import type { ModBanView } from "./ModBanView";
|
||||||
|
import type { ModFeaturePostView } from "./ModFeaturePostView";
|
||||||
|
import type { ModHideCommunityView } from "./ModHideCommunityView";
|
||||||
|
import type { ModLockPostView } from "./ModLockPostView";
|
||||||
|
import type { ModRemoveCommentView } from "./ModRemoveCommentView";
|
||||||
|
import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
|
||||||
|
import type { ModRemovePostView } from "./ModRemovePostView";
|
||||||
|
import type { ModTransferCommunityView } from "./ModTransferCommunityView";
|
||||||
|
export interface GetModlogResponse {
|
||||||
|
removed_posts: Array<ModRemovePostView>;
|
||||||
|
locked_posts: Array<ModLockPostView>;
|
||||||
|
featured_posts: Array<ModFeaturePostView>;
|
||||||
|
removed_comments: Array<ModRemoveCommentView>;
|
||||||
|
removed_communities: Array<ModRemoveCommunityView>;
|
||||||
|
banned_from_community: Array<ModBanFromCommunityView>;
|
||||||
|
banned: Array<ModBanView>;
|
||||||
|
added_to_community: Array<ModAddCommunityView>;
|
||||||
|
transferred_to_community: Array<ModTransferCommunityView>;
|
||||||
|
added: Array<ModAddView>;
|
||||||
|
admin_purged_persons: Array<AdminPurgePersonView>;
|
||||||
|
admin_purged_communities: Array<AdminPurgeCommunityView>;
|
||||||
|
admin_purged_posts: Array<AdminPurgePostView>;
|
||||||
|
admin_purged_comments: Array<AdminPurgeCommentView>;
|
||||||
|
hidden_communities: Array<ModHideCommunityView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import type { CommentView } from "./CommentView";
|
||||||
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
import type { PostView } from "./PostView";
|
||||||
|
import type { Site } from "./Site";
|
||||||
|
export interface GetPersonDetailsResponse {
|
||||||
|
person_view: PersonView;
|
||||||
|
site?: Site;
|
||||||
|
comments: Array<CommentView>;
|
||||||
|
posts: Array<PostView>;
|
||||||
|
moderates: Array<CommunityModeratorView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PersonMentionView } from "./PersonMentionView";
|
||||||
|
export interface GetPersonMentionsResponse {
|
||||||
|
mentions: Array<PersonMentionView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
import type { PostView } from "./PostView";
|
||||||
|
export interface GetPostResponse {
|
||||||
|
post_view: PostView;
|
||||||
|
community_view: CommunityView;
|
||||||
|
moderators: Array<CommunityModeratorView>;
|
||||||
|
cross_posts: Array<PostView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import type { PaginationCursor } from "./PaginationCursor";
|
||||||
|
import type { PostView } from "./PostView";
|
||||||
|
export interface GetPostsResponse {
|
||||||
|
posts: Array<PostView>;
|
||||||
|
next_page?: PaginationCursor;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentReplyView } from "./CommentReplyView";
|
||||||
|
export interface GetRepliesResponse {
|
||||||
|
replies: Array<CommentReplyView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import type { CommunityId } from "./CommunityId";
|
||||||
|
export interface GetReportCountResponse {
|
||||||
|
community_id?: CommunityId;
|
||||||
|
comment_reports: number;
|
||||||
|
post_reports: number;
|
||||||
|
private_message_reports?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { LinkMetadata } from "./LinkMetadata";
|
||||||
|
export interface GetSiteMetadataResponse {
|
||||||
|
metadata: LinkMetadata;
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import type { CustomEmojiView } from "./CustomEmojiView";
|
||||||
|
import type { Language } from "./Language";
|
||||||
|
import type { LanguageId } from "./LanguageId";
|
||||||
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
||||||
|
import type { MyUserInfo } from "./MyUserInfo";
|
||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
import type { SiteView } from "./SiteView";
|
||||||
|
import type { Tagline } from "./Tagline";
|
||||||
|
export interface GetSiteResponse {
|
||||||
|
site_view: SiteView;
|
||||||
|
admins: Array<PersonView>;
|
||||||
|
version: string;
|
||||||
|
my_user?: MyUserInfo;
|
||||||
|
all_languages: Array<Language>;
|
||||||
|
discussion_languages: Array<LanguageId>;
|
||||||
|
taglines: Array<Tagline>;
|
||||||
|
custom_emojis: Array<CustomEmojiView>;
|
||||||
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface GetUnreadCountResponse {
|
||||||
|
replies: number;
|
||||||
|
mentions: number;
|
||||||
|
private_messages: number;
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
export interface GetUnreadRegistrationApplicationCountResponse {
|
||||||
|
registration_applications: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { VoteView } from "./VoteView";
|
||||||
|
export interface ListCommentLikesResponse {
|
||||||
|
comment_likes: Array<VoteView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommentReportView } from "./CommentReportView";
|
||||||
|
export interface ListCommentReportsResponse {
|
||||||
|
comment_reports: Array<CommentReportView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
export interface ListCommunitiesResponse {
|
||||||
|
communities: Array<CommunityView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { LocalImageView } from "./LocalImageView";
|
||||||
|
export interface ListMediaResponse {
|
||||||
|
images: Array<LocalImageView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { VoteView } from "./VoteView";
|
||||||
|
export interface ListPostLikesResponse {
|
||||||
|
post_likes: Array<VoteView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PostReportView } from "./PostReportView";
|
||||||
|
export interface ListPostReportsResponse {
|
||||||
|
post_reports: Array<PostReportView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PrivateMessageReportView } from "./PrivateMessageReportView";
|
||||||
|
export interface ListPrivateMessageReportsResponse {
|
||||||
|
private_message_reports: Array<PrivateMessageReportView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { RegistrationApplicationView } from "./RegistrationApplicationView";
|
||||||
|
export interface ListRegistrationApplicationsResponse {
|
||||||
|
registration_applications: Array<RegistrationApplicationView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface LoginResponse {
|
||||||
|
jwt?: string;
|
||||||
|
registration_created: boolean;
|
||||||
|
verify_email_sent: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PersonMentionView } from "./PersonMentionView";
|
||||||
|
export interface PersonMentionResponse {
|
||||||
|
person_mention_view: PersonMentionView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PostReportView } from "./PostReportView";
|
||||||
|
export interface PostReportResponse {
|
||||||
|
post_report_view: PostReportView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PostView } from "./PostView";
|
||||||
|
export interface PostResponse {
|
||||||
|
post_view: PostView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PrivateMessageReportView } from "./PrivateMessageReportView";
|
||||||
|
export interface PrivateMessageReportResponse {
|
||||||
|
private_message_report_view: PrivateMessageReportView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PrivateMessageView } from "./PrivateMessageView";
|
||||||
|
export interface PrivateMessageResponse {
|
||||||
|
private_message_view: PrivateMessageView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { PrivateMessageView } from "./PrivateMessageView";
|
||||||
|
export interface PrivateMessagesResponse {
|
||||||
|
private_messages: Array<PrivateMessageView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import type { RegistrationApplicationView } from "./RegistrationApplicationView";
|
||||||
|
export interface RegistrationApplicationResponse {
|
||||||
|
registration_application: RegistrationApplicationView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import type { CommentView } from "./CommentView";
|
||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
import type { PostView } from "./PostView";
|
||||||
|
export interface ResolveObjectResponse {
|
||||||
|
comment?: CommentView;
|
||||||
|
post?: PostView;
|
||||||
|
community?: CommunityView;
|
||||||
|
person?: PersonView;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import type { CommentView } from "./CommentView";
|
||||||
|
import type { CommunityView } from "./CommunityView";
|
||||||
|
import type { PersonView } from "./PersonView";
|
||||||
|
import type { PostView } from "./PostView";
|
||||||
|
import type { SearchType } from "./SearchType";
|
||||||
|
export interface SearchResponse {
|
||||||
|
type_: SearchType;
|
||||||
|
comments: Array<CommentView>;
|
||||||
|
posts: Array<PostView>;
|
||||||
|
communities: Array<CommunityView>;
|
||||||
|
users: Array<PersonView>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import type { SiteView } from "./SiteView";
|
||||||
|
import type { Tagline } from "./Tagline";
|
||||||
|
export interface SiteResponse {
|
||||||
|
site_view: SiteView;
|
||||||
|
taglines: Array<Tagline>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface SuccessResponse {
|
||||||
|
success: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface UpdateTotpResponse {
|
||||||
|
enabled: boolean;
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
export * from './AddAdminResponse.d';
|
||||||
|
export * from './AddModToCommunityResponse.d';
|
||||||
|
export * from './BanFromCommunityResponse.d';
|
||||||
|
export * from './BanPersonResponse.d';
|
||||||
|
export * from './BannedPersonsResponse.d';
|
||||||
|
export * from './BlockCommunityResponse.d';
|
||||||
|
export * from './BlockInstanceResponse.d';
|
||||||
|
export * from './BlockPersonResponse.d';
|
||||||
|
export * from './CaptchaResponse.d';
|
||||||
|
export * from './CommentReplyResponse.d';
|
||||||
|
export * from './CommentReportResponse.d';
|
||||||
|
export * from './CommentResponse.d';
|
||||||
|
export * from './CommunityResponse.d';
|
||||||
|
export * from './CustomEmojiResponse.d';
|
||||||
|
export * from './GenerateTotpSecretResponse.d';
|
||||||
|
export * from './GetCaptchaResponse.d';
|
||||||
|
export * from './GetCommentsResponse.d';
|
||||||
|
export * from './GetCommunityResponse.d';
|
||||||
|
export * from './GetFederatedInstancesResponse.d';
|
||||||
|
export * from './GetModlogResponse.d';
|
||||||
|
export * from './GetPersonDetailsResponse.d';
|
||||||
|
export * from './GetPersonMentionsResponse.d';
|
||||||
|
export * from './GetPostResponse.d';
|
||||||
|
export * from './GetPostsResponse.d';
|
||||||
|
export * from './GetRepliesResponse.d';
|
||||||
|
export * from './GetReportCountResponse.d';
|
||||||
|
export * from './GetSiteMetadataResponse.d';
|
||||||
|
export * from './GetSiteResponse.d';
|
||||||
|
export * from './GetUnreadCountResponse.d';
|
||||||
|
export * from './GetUnreadRegistrationApplicationCountResponse.d';
|
||||||
|
export * from './ListCommentLikesResponse.d';
|
||||||
|
export * from './ListCommentReportsResponse.d';
|
||||||
|
export * from './ListCommunitiesResponse.d';
|
||||||
|
export * from './ListMediaResponse.d';
|
||||||
|
export * from './ListPostLikesResponse.d';
|
||||||
|
export * from './ListPostReportsResponse.d';
|
||||||
|
export * from './ListPrivateMessageReportsResponse.d';
|
||||||
|
export * from './ListRegistrationApplicationsResponse.d';
|
||||||
|
export * from './LoginResponse.d';
|
||||||
|
export * from './PersonMentionResponse.d';
|
||||||
|
export * from './PostReportResponse.d';
|
||||||
|
export * from './PostResponse.d';
|
||||||
|
export * from './PrivateMessageReportResponse.d';
|
||||||
|
export * from './PrivateMessageResponse.d';
|
||||||
|
export * from './PrivateMessagesResponse.d';
|
||||||
|
export * from './RegistrationApplicationResponse.d';
|
||||||
|
export * from './ResolveObjectResponse.d';
|
||||||
|
export * from './SearchResponse.d';
|
||||||
|
export * from './SiteResponse.d';
|
||||||
|
export * from './SuccessResponse.d';
|
||||||
|
export * from './UpdateTotpResponse.d';
|
||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user