diff --git a/copy_generated_types_from_lemmy.sh b/copy_generated_types_from_lemmy.sh index e69d485..fbad06a 100755 --- a/copy_generated_types_from_lemmy.sh +++ b/copy_generated_types_from_lemmy.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Remove the old bindings +pushd ../lemmy/crates +rm -rf **/bindings +popd + # First re-generate the types by running cargo test on lemmy pushd ../lemmy/scripts ./test.sh diff --git a/src/http.ts b/src/http.ts index dd21d4a..7112be1 100644 --- a/src/http.ts +++ b/src/http.ts @@ -48,15 +48,12 @@ import { EditPrivateMessage } from "./types/EditPrivateMessage"; import { EditSite } from "./types/EditSite"; import { FeaturePost } from "./types/FeaturePost"; import { FollowCommunity } from "./types/FollowCommunity"; -import { GetBannedPersons } from "./types/GetBannedPersons"; -import { GetCaptcha } from "./types/GetCaptcha"; import { GetCaptchaResponse } from "./types/GetCaptchaResponse"; import { GetComment } from "./types/GetComment"; import { GetComments } from "./types/GetComments"; import { GetCommentsResponse } from "./types/GetCommentsResponse"; import { GetCommunity } from "./types/GetCommunity"; import { GetCommunityResponse } from "./types/GetCommunityResponse"; -import { GetFederatedInstances } from "./types/GetFederatedInstances"; import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse"; import { GetModlog } from "./types/GetModlog"; import { GetModlogResponse } from "./types/GetModlogResponse"; @@ -73,15 +70,11 @@ import { GetReplies } from "./types/GetReplies"; import { GetRepliesResponse } from "./types/GetRepliesResponse"; import { GetReportCount } from "./types/GetReportCount"; import { GetReportCountResponse } from "./types/GetReportCountResponse"; -import { GetSite } from "./types/GetSite"; import { GetSiteMetadata } from "./types/GetSiteMetadata"; import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse"; import { GetSiteResponse } from "./types/GetSiteResponse"; -import { GetUnreadCount } from "./types/GetUnreadCount"; import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse"; -import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount"; import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse"; -import { LeaveAdmin } from "./types/LeaveAdmin"; import { ListCommentReports } from "./types/ListCommentReports"; import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse"; import { ListCommunities } from "./types/ListCommunities"; @@ -95,7 +88,6 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp import { LockPost } from "./types/LockPost"; import { Login } from "./types/Login"; import { LoginResponse } from "./types/LoginResponse"; -import { MarkAllAsRead } from "./types/MarkAllAsRead"; import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead"; import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead"; import { MarkPostAsRead } from "./types/MarkPostAsRead"; @@ -134,8 +126,6 @@ import { TransferCommunity } from "./types/TransferCommunity"; import { VerifyEmail } from "./types/VerifyEmail"; import { VerifyEmailResponse } from "./types/VerifyEmailResponse"; import { UploadImage, UploadImageResponse, VERSION } from "./types/others"; -import { BlockInstance } from "./types/BlockInstance"; -import { BlockInstanceResponse } from "./types/BlockInstanceResponse"; enum HttpType { Get = "GET", @@ -180,8 +170,8 @@ export class LemmyHttp { * * `HTTP.GET /site` */ - getSite(form: GetSite = {}) { - return this.#wrapper(HttpType.Get, "/site", form); + getSite() { + return this.#wrapper(HttpType.Get, "/site", {}); } /** @@ -211,11 +201,11 @@ export class LemmyHttp { * * `HTTP.POST /user/leave_admin` */ - leaveAdmin(form: LeaveAdmin) { - return this.#wrapper( + leaveAdmin() { + return this.#wrapper( HttpType.Post, "/user/leave_admin", - form, + {}, ); } @@ -950,11 +940,11 @@ export class LemmyHttp { * * `HTTP.GET /user/banned` */ - getBannedPersons(form: GetBannedPersons) { - return this.#wrapper( + getBannedPersons() { + return this.#wrapper( HttpType.Get, "/user/banned", - form, + {}, ); } @@ -976,11 +966,11 @@ export class LemmyHttp { * * `HTTP.GET /user/get_captcha` */ - getCaptcha(form: GetCaptcha = {}) { - return this.#wrapper( + getCaptcha() { + return this.#wrapper( HttpType.Get, "/user/get_captcha", - form, + {}, ); } @@ -1028,11 +1018,11 @@ export class LemmyHttp { * * `HTTP.POST /user/mark_all_as_read` */ - markAllAsRead(form: MarkAllAsRead) { - return this.#wrapper( + markAllAsRead() { + return this.#wrapper( HttpType.Post, "/user/mark_all_as_read", - form, + {}, ); } @@ -1080,11 +1070,11 @@ export class LemmyHttp { * * `HTTP.GET /user/unread_count` */ - getUnreadCount(form: GetUnreadCount) { - return this.#wrapper( + getUnreadCount() { + return this.#wrapper( HttpType.Get, "/user/unread_count", - form, + {}, ); } @@ -1119,13 +1109,12 @@ export class LemmyHttp { * * `HTTP.GET /admin/registration_application/count` */ - getUnreadRegistrationApplicationCount( - form: GetUnreadRegistrationApplicationCount, - ) { - return this.#wrapper< - GetUnreadRegistrationApplicationCount, - GetUnreadRegistrationApplicationCountResponse - >(HttpType.Get, "/admin/registration_application/count", form); + getUnreadRegistrationApplicationCount() { + return this.#wrapper( + HttpType.Get, + "/admin/registration_application/count", + {}, + ); } /** @@ -1248,24 +1237,11 @@ export class LemmyHttp { * * `HTTP.Get /federated_instances` */ - getFederatedInstances(form: GetFederatedInstances = {}) { - return this.#wrapper( + getFederatedInstances() { + return this.#wrapper( HttpType.Get, "/federated_instances", - form, - ); - } - - /** - * Block an instance - * - * `HTTP.POST /site/block` - */ - blockInstance(form: BlockInstance) { - return this.#wrapper( - HttpType.Post, - "/site/block", - form, + {}, ); } diff --git a/src/index.ts b/src/index.ts index 5ed886d..360a8d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,8 +19,6 @@ export { BanPersonResponse } from "./types/BanPersonResponse"; export { BannedPersonsResponse } from "./types/BannedPersonsResponse"; export { BlockCommunity } from "./types/BlockCommunity"; export { BlockCommunityResponse } from "./types/BlockCommunityResponse"; -export { BlockInstance } from "./types/BlockInstance"; -export { BlockInstanceResponse } from "./types/BlockInstanceResponse"; export { BlockPerson } from "./types/BlockPerson"; export { BlockPersonResponse } from "./types/BlockPersonResponse"; export { CaptchaResponse } from "./types/CaptchaResponse"; @@ -45,8 +43,6 @@ export { CommunityBlockId } from "./types/CommunityBlockId"; export { CommunityBlockView } from "./types/CommunityBlockView"; export { CommunityFollowerView } from "./types/CommunityFollowerView"; export { CommunityId } from "./types/CommunityId"; -export { CommunityJoin } from "./types/CommunityJoin"; -export { CommunityJoinResponse } from "./types/CommunityJoinResponse"; export { CommunityModeratorView } from "./types/CommunityModeratorView"; export { CommunityResponse } from "./types/CommunityResponse"; export { CommunityView } from "./types/CommunityView"; @@ -84,15 +80,12 @@ export { EditSite } from "./types/EditSite"; export { FeaturePost } from "./types/FeaturePost"; export { FederatedInstances } from "./types/FederatedInstances"; export { FollowCommunity } from "./types/FollowCommunity"; -export { GetBannedPersons } from "./types/GetBannedPersons"; -export { GetCaptcha } from "./types/GetCaptcha"; export { GetCaptchaResponse } from "./types/GetCaptchaResponse"; export { GetComment } from "./types/GetComment"; export { GetComments } from "./types/GetComments"; export { GetCommentsResponse } from "./types/GetCommentsResponse"; export { GetCommunity } from "./types/GetCommunity"; export { GetCommunityResponse } from "./types/GetCommunityResponse"; -export { GetFederatedInstances } from "./types/GetFederatedInstances"; export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse"; export { GetModlog } from "./types/GetModlog"; export { GetModlogResponse } from "./types/GetModlogResponse"; @@ -109,22 +102,18 @@ export { GetReplies } from "./types/GetReplies"; export { GetRepliesResponse } from "./types/GetRepliesResponse"; export { GetReportCount } from "./types/GetReportCount"; export { GetReportCountResponse } from "./types/GetReportCountResponse"; -export { GetSite } from "./types/GetSite"; export { GetSiteMetadata } from "./types/GetSiteMetadata"; export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse"; export { GetSiteResponse } from "./types/GetSiteResponse"; -export { GetUnreadCount } from "./types/GetUnreadCount"; export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse"; -export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount"; export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse"; export { HideCommunity } from "./types/HideCommunity"; +export { ImageUpload } from "./types/ImageUpload"; +export { ImageUploadId } from "./types/ImageUploadId"; export { Instance } from "./types/Instance"; -export { InstanceBlockView } from "./types/InstanceBlockView"; export { InstanceId } from "./types/InstanceId"; export { Language } from "./types/Language"; export { LanguageId } from "./types/LanguageId"; -export { LeaveAdmin } from "./types/LeaveAdmin"; -export { LemmyErrorType } from "./types/LemmyErrorType"; export { ListCommentReports } from "./types/ListCommentReports"; export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse"; export { ListCommunities } from "./types/ListCommunities"; @@ -145,7 +134,6 @@ export { LocalUserView } from "./types/LocalUserView"; export { LockPost } from "./types/LockPost"; export { Login } from "./types/Login"; export { LoginResponse } from "./types/LoginResponse"; -export { MarkAllAsRead } from "./types/MarkAllAsRead"; export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead"; export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead"; export { MarkPostAsRead } from "./types/MarkPostAsRead"; @@ -162,8 +150,6 @@ export { ModFeaturePost } from "./types/ModFeaturePost"; export { ModFeaturePostView } from "./types/ModFeaturePostView"; export { ModHideCommunity } from "./types/ModHideCommunity"; export { ModHideCommunityView } from "./types/ModHideCommunityView"; -export { ModJoin } from "./types/ModJoin"; -export { ModJoinResponse } from "./types/ModJoinResponse"; export { ModLockPost } from "./types/ModLockPost"; export { ModLockPostView } from "./types/ModLockPostView"; export { ModRemoveComment } from "./types/ModRemoveComment"; @@ -195,10 +181,7 @@ export { Post } from "./types/Post"; export { PostAggregates } from "./types/PostAggregates"; export { PostFeatureType } from "./types/PostFeatureType"; export { PostId } from "./types/PostId"; -export { PostJoin } from "./types/PostJoin"; -export { PostJoinResponse } from "./types/PostJoinResponse"; export { PostListingMode } from "./types/PostListingMode"; -export { PostOrCommentId } from "./types/PostOrCommentId"; export { PostReport } from "./types/PostReport"; export { PostReportId } from "./types/PostReportId"; export { PostReportResponse } from "./types/PostReportResponse"; @@ -248,8 +231,5 @@ export { SortType } from "./types/SortType"; export { SubscribedType } from "./types/SubscribedType"; export { Tagline } from "./types/Tagline"; export { TransferCommunity } from "./types/TransferCommunity"; -export { UserJoin } from "./types/UserJoin"; -export { UserJoinResponse } from "./types/UserJoinResponse"; export { VerifyEmail } from "./types/VerifyEmail"; export { VerifyEmailResponse } from "./types/VerifyEmailResponse"; -export { UploadImage, UploadImageResponse, ImageFile } from "./types/others"; diff --git a/src/types/AddAdmin.ts b/src/types/AddAdmin.ts index 23de2dd..ab5313d 100644 --- a/src/types/AddAdmin.ts +++ b/src/types/AddAdmin.ts @@ -4,5 +4,4 @@ import type { PersonId } from "./PersonId"; export interface AddAdmin { person_id: PersonId; added: boolean; - auth: string; } diff --git a/src/types/AddModToCommunity.ts b/src/types/AddModToCommunity.ts index 3c49ae3..bef4b58 100644 --- a/src/types/AddModToCommunity.ts +++ b/src/types/AddModToCommunity.ts @@ -6,5 +6,4 @@ export interface AddModToCommunity { community_id: CommunityId; person_id: PersonId; added: boolean; - auth: string; } diff --git a/src/types/ApproveRegistrationApplication.ts b/src/types/ApproveRegistrationApplication.ts index 96068a8..88d172a 100644 --- a/src/types/ApproveRegistrationApplication.ts +++ b/src/types/ApproveRegistrationApplication.ts @@ -4,5 +4,4 @@ export interface ApproveRegistrationApplication { id: number; approve: boolean; deny_reason?: string; - auth: string; } diff --git a/src/types/BanFromCommunity.ts b/src/types/BanFromCommunity.ts index b155377..bcbf1ed 100644 --- a/src/types/BanFromCommunity.ts +++ b/src/types/BanFromCommunity.ts @@ -9,5 +9,4 @@ export interface BanFromCommunity { remove_data?: boolean; reason?: string; expires?: number; - auth: string; } diff --git a/src/types/BanPerson.ts b/src/types/BanPerson.ts index 0fd1bbb..57195ed 100644 --- a/src/types/BanPerson.ts +++ b/src/types/BanPerson.ts @@ -7,5 +7,4 @@ export interface BanPerson { remove_data?: boolean; reason?: string; expires?: number; - auth: string; } diff --git a/src/types/BlockCommunity.ts b/src/types/BlockCommunity.ts index 14202d0..5afd00e 100644 --- a/src/types/BlockCommunity.ts +++ b/src/types/BlockCommunity.ts @@ -4,5 +4,4 @@ import type { CommunityId } from "./CommunityId"; export interface BlockCommunity { community_id: CommunityId; block: boolean; - auth: string; } diff --git a/src/types/BlockInstance.ts b/src/types/BlockInstance.ts deleted file mode 100644 index a69a880..0000000 --- a/src/types/BlockInstance.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { InstanceId } from "./InstanceId"; - -export interface BlockInstance { - instance_id: InstanceId; - block: boolean; - auth: string; -} diff --git a/src/types/BlockInstanceResponse.ts b/src/types/BlockInstanceResponse.ts deleted file mode 100644 index 88e4323..0000000 --- a/src/types/BlockInstanceResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface BlockInstanceResponse { - blocked: boolean; -} diff --git a/src/types/BlockPerson.ts b/src/types/BlockPerson.ts index 0eb4a96..5d83aab 100644 --- a/src/types/BlockPerson.ts +++ b/src/types/BlockPerson.ts @@ -4,5 +4,4 @@ import type { PersonId } from "./PersonId"; export interface BlockPerson { person_id: PersonId; block: boolean; - auth: string; } diff --git a/src/types/ChangePassword.ts b/src/types/ChangePassword.ts index 4899b3c..219bd2f 100644 --- a/src/types/ChangePassword.ts +++ b/src/types/ChangePassword.ts @@ -4,5 +4,4 @@ export interface ChangePassword { new_password: string; new_password_verify: string; old_password: string; - auth: string; } diff --git a/src/types/CommunityJoin.ts b/src/types/CommunityJoin.ts deleted file mode 100644 index c1b0b65..0000000 --- a/src/types/CommunityJoin.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { CommunityId } from "./CommunityId"; - -export interface CommunityJoin { - community_id: CommunityId; -} diff --git a/src/types/CommunityJoinResponse.ts b/src/types/CommunityJoinResponse.ts deleted file mode 100644 index cf0212f..0000000 --- a/src/types/CommunityJoinResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface CommunityJoinResponse { - joined: boolean; -} diff --git a/src/types/CreateComment.ts b/src/types/CreateComment.ts index d62b342..6bc5860 100644 --- a/src/types/CreateComment.ts +++ b/src/types/CreateComment.ts @@ -8,5 +8,4 @@ export interface CreateComment { post_id: PostId; parent_id?: CommentId; language_id?: LanguageId; - auth: string; } diff --git a/src/types/CreateCommentLike.ts b/src/types/CreateCommentLike.ts index da4c8c9..585593c 100644 --- a/src/types/CreateCommentLike.ts +++ b/src/types/CreateCommentLike.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface CreateCommentLike { comment_id: CommentId; score: number; - auth: string; } diff --git a/src/types/CreateCommentReport.ts b/src/types/CreateCommentReport.ts index c26f2e8..a604894 100644 --- a/src/types/CreateCommentReport.ts +++ b/src/types/CreateCommentReport.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface CreateCommentReport { comment_id: CommentId; reason: string; - auth: string; } diff --git a/src/types/CreateCommunity.ts b/src/types/CreateCommunity.ts index 9e274c0..41c06c1 100644 --- a/src/types/CreateCommunity.ts +++ b/src/types/CreateCommunity.ts @@ -10,5 +10,4 @@ export interface CreateCommunity { nsfw?: boolean; posting_restricted_to_mods?: boolean; discussion_languages?: Array; - auth: string; } diff --git a/src/types/CreateCustomEmoji.ts b/src/types/CreateCustomEmoji.ts index bcb12ae..f5be274 100644 --- a/src/types/CreateCustomEmoji.ts +++ b/src/types/CreateCustomEmoji.ts @@ -6,5 +6,4 @@ export interface CreateCustomEmoji { image_url: string; alt_text: string; keywords: Array; - auth: string; } diff --git a/src/types/CreatePost.ts b/src/types/CreatePost.ts index cd97201..5152a0e 100644 --- a/src/types/CreatePost.ts +++ b/src/types/CreatePost.ts @@ -10,5 +10,4 @@ export interface CreatePost { honeypot?: string; nsfw?: boolean; language_id?: LanguageId; - auth: string; } diff --git a/src/types/CreatePostLike.ts b/src/types/CreatePostLike.ts index a680b17..d40d304 100644 --- a/src/types/CreatePostLike.ts +++ b/src/types/CreatePostLike.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface CreatePostLike { post_id: PostId; score: number; - auth: string; } diff --git a/src/types/CreatePostReport.ts b/src/types/CreatePostReport.ts index ef9fda1..09fc269 100644 --- a/src/types/CreatePostReport.ts +++ b/src/types/CreatePostReport.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface CreatePostReport { post_id: PostId; reason: string; - auth: string; } diff --git a/src/types/CreatePrivateMessage.ts b/src/types/CreatePrivateMessage.ts index b654140..1f7c9b6 100644 --- a/src/types/CreatePrivateMessage.ts +++ b/src/types/CreatePrivateMessage.ts @@ -4,5 +4,4 @@ import type { PersonId } from "./PersonId"; export interface CreatePrivateMessage { content: string; recipient_id: PersonId; - auth: string; } diff --git a/src/types/CreatePrivateMessageReport.ts b/src/types/CreatePrivateMessageReport.ts index 9b3b090..4e02913 100644 --- a/src/types/CreatePrivateMessageReport.ts +++ b/src/types/CreatePrivateMessageReport.ts @@ -4,5 +4,4 @@ import type { PrivateMessageId } from "./PrivateMessageId"; export interface CreatePrivateMessageReport { private_message_id: PrivateMessageId; reason: string; - auth: string; } diff --git a/src/types/CreateSite.ts b/src/types/CreateSite.ts index 592fffa..107c3fb 100644 --- a/src/types/CreateSite.ts +++ b/src/types/CreateSite.ts @@ -43,5 +43,4 @@ export interface CreateSite { blocked_instances?: Array; taglines?: Array; registration_mode?: RegistrationMode; - auth: string; } diff --git a/src/types/DeleteAccount.ts b/src/types/DeleteAccount.ts index 3c847e4..3ec7b9c 100644 --- a/src/types/DeleteAccount.ts +++ b/src/types/DeleteAccount.ts @@ -3,5 +3,4 @@ export interface DeleteAccount { password: string; delete_content: boolean; - auth: string; } diff --git a/src/types/DeleteComment.ts b/src/types/DeleteComment.ts index d937984..1ef61d5 100644 --- a/src/types/DeleteComment.ts +++ b/src/types/DeleteComment.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface DeleteComment { comment_id: CommentId; deleted: boolean; - auth: string; } diff --git a/src/types/DeleteCommunity.ts b/src/types/DeleteCommunity.ts index 5ab0a88..447a91b 100644 --- a/src/types/DeleteCommunity.ts +++ b/src/types/DeleteCommunity.ts @@ -4,5 +4,4 @@ import type { CommunityId } from "./CommunityId"; export interface DeleteCommunity { community_id: CommunityId; deleted: boolean; - auth: string; } diff --git a/src/types/DeleteCustomEmoji.ts b/src/types/DeleteCustomEmoji.ts index 7fb008a..064302d 100644 --- a/src/types/DeleteCustomEmoji.ts +++ b/src/types/DeleteCustomEmoji.ts @@ -3,5 +3,4 @@ import type { CustomEmojiId } from "./CustomEmojiId"; export interface DeleteCustomEmoji { id: CustomEmojiId; - auth: string; } diff --git a/src/types/DeletePost.ts b/src/types/DeletePost.ts index c67259e..02ca104 100644 --- a/src/types/DeletePost.ts +++ b/src/types/DeletePost.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface DeletePost { post_id: PostId; deleted: boolean; - auth: string; } diff --git a/src/types/DeletePrivateMessage.ts b/src/types/DeletePrivateMessage.ts index 5810be9..952d207 100644 --- a/src/types/DeletePrivateMessage.ts +++ b/src/types/DeletePrivateMessage.ts @@ -4,5 +4,4 @@ import type { PrivateMessageId } from "./PrivateMessageId"; export interface DeletePrivateMessage { private_message_id: PrivateMessageId; deleted: boolean; - auth: string; } diff --git a/src/types/DistinguishComment.ts b/src/types/DistinguishComment.ts index 37269a0..b6d135e 100644 --- a/src/types/DistinguishComment.ts +++ b/src/types/DistinguishComment.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface DistinguishComment { comment_id: CommentId; distinguished: boolean; - auth: string; } diff --git a/src/types/EditComment.ts b/src/types/EditComment.ts index 27880df..59e6ab0 100644 --- a/src/types/EditComment.ts +++ b/src/types/EditComment.ts @@ -6,5 +6,4 @@ export interface EditComment { comment_id: CommentId; content?: string; language_id?: LanguageId; - auth: string; } diff --git a/src/types/EditCommunity.ts b/src/types/EditCommunity.ts index 7a38ca2..9d48fb4 100644 --- a/src/types/EditCommunity.ts +++ b/src/types/EditCommunity.ts @@ -11,5 +11,4 @@ export interface EditCommunity { nsfw?: boolean; posting_restricted_to_mods?: boolean; discussion_languages?: Array; - auth: string; } diff --git a/src/types/EditCustomEmoji.ts b/src/types/EditCustomEmoji.ts index 6ba7da4..fc47e21 100644 --- a/src/types/EditCustomEmoji.ts +++ b/src/types/EditCustomEmoji.ts @@ -7,5 +7,4 @@ export interface EditCustomEmoji { image_url: string; alt_text: string; keywords: Array; - auth: string; } diff --git a/src/types/EditPost.ts b/src/types/EditPost.ts index 4214773..05d89b1 100644 --- a/src/types/EditPost.ts +++ b/src/types/EditPost.ts @@ -9,5 +9,4 @@ export interface EditPost { body?: string; nsfw?: boolean; language_id?: LanguageId; - auth: string; } diff --git a/src/types/EditPrivateMessage.ts b/src/types/EditPrivateMessage.ts index 24eedb2..0c38d0f 100644 --- a/src/types/EditPrivateMessage.ts +++ b/src/types/EditPrivateMessage.ts @@ -4,5 +4,4 @@ import type { PrivateMessageId } from "./PrivateMessageId"; export interface EditPrivateMessage { private_message_id: PrivateMessageId; content: string; - auth: string; } diff --git a/src/types/EditSite.ts b/src/types/EditSite.ts index dfe2fc7..fae73a9 100644 --- a/src/types/EditSite.ts +++ b/src/types/EditSite.ts @@ -44,5 +44,4 @@ export interface EditSite { taglines?: Array; registration_mode?: RegistrationMode; reports_email_admins?: boolean; - auth: string; } diff --git a/src/types/FeaturePost.ts b/src/types/FeaturePost.ts index 7f99df9..296ce9a 100644 --- a/src/types/FeaturePost.ts +++ b/src/types/FeaturePost.ts @@ -6,5 +6,4 @@ export interface FeaturePost { post_id: PostId; featured: boolean; feature_type: PostFeatureType; - auth: string; } diff --git a/src/types/FollowCommunity.ts b/src/types/FollowCommunity.ts index 531fdfd..48a7736 100644 --- a/src/types/FollowCommunity.ts +++ b/src/types/FollowCommunity.ts @@ -4,5 +4,4 @@ import type { CommunityId } from "./CommunityId"; export interface FollowCommunity { community_id: CommunityId; follow: boolean; - auth: string; } diff --git a/src/types/GetBannedPersons.ts b/src/types/GetBannedPersons.ts deleted file mode 100644 index 112547a..0000000 --- a/src/types/GetBannedPersons.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetBannedPersons { - auth: string; -} diff --git a/src/types/GetCaptcha.ts b/src/types/GetCaptcha.ts deleted file mode 100644 index faaf6cb..0000000 --- a/src/types/GetCaptcha.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetCaptcha { - auth?: string; -} diff --git a/src/types/GetComment.ts b/src/types/GetComment.ts index 8225070..ee74799 100644 --- a/src/types/GetComment.ts +++ b/src/types/GetComment.ts @@ -3,5 +3,4 @@ import type { CommentId } from "./CommentId"; export interface GetComment { id: CommentId; - auth?: string; } diff --git a/src/types/GetComments.ts b/src/types/GetComments.ts index 8e9c863..da7e51b 100644 --- a/src/types/GetComments.ts +++ b/src/types/GetComments.ts @@ -18,5 +18,4 @@ export interface GetComments { saved_only?: boolean; liked_only?: boolean; disliked_only?: boolean; - auth?: string; } diff --git a/src/types/GetCommunity.ts b/src/types/GetCommunity.ts index 8715f84..1aea643 100644 --- a/src/types/GetCommunity.ts +++ b/src/types/GetCommunity.ts @@ -4,5 +4,4 @@ import type { CommunityId } from "./CommunityId"; export interface GetCommunity { id?: CommunityId; name?: string; - auth?: string; } diff --git a/src/types/GetFederatedInstances.ts b/src/types/GetFederatedInstances.ts deleted file mode 100644 index bf3b6c7..0000000 --- a/src/types/GetFederatedInstances.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetFederatedInstances { - auth?: string; -} diff --git a/src/types/GetModlog.ts b/src/types/GetModlog.ts index 895122d..9ec4ad1 100644 --- a/src/types/GetModlog.ts +++ b/src/types/GetModlog.ts @@ -10,5 +10,4 @@ export interface GetModlog { limit?: number; type_?: ModlogActionType; other_person_id?: PersonId; - auth?: string; } diff --git a/src/types/GetPersonDetails.ts b/src/types/GetPersonDetails.ts index 8cdc8ff..ca5f1d2 100644 --- a/src/types/GetPersonDetails.ts +++ b/src/types/GetPersonDetails.ts @@ -11,5 +11,4 @@ export interface GetPersonDetails { limit?: number; community_id?: CommunityId; saved_only?: boolean; - auth?: string; } diff --git a/src/types/GetPersonMentions.ts b/src/types/GetPersonMentions.ts index fa7a8a3..be41920 100644 --- a/src/types/GetPersonMentions.ts +++ b/src/types/GetPersonMentions.ts @@ -6,5 +6,4 @@ export interface GetPersonMentions { page?: number; limit?: number; unread_only?: boolean; - auth: string; } diff --git a/src/types/GetPost.ts b/src/types/GetPost.ts index 99d97f2..15b46dc 100644 --- a/src/types/GetPost.ts +++ b/src/types/GetPost.ts @@ -5,5 +5,4 @@ import type { PostId } from "./PostId"; export interface GetPost { id?: PostId; comment_id?: CommentId; - auth?: string; } diff --git a/src/types/GetPosts.ts b/src/types/GetPosts.ts index e7c1b68..87511a3 100644 --- a/src/types/GetPosts.ts +++ b/src/types/GetPosts.ts @@ -13,5 +13,4 @@ export interface GetPosts { saved_only?: boolean; liked_only?: boolean; disliked_only?: boolean; - auth?: string; } diff --git a/src/types/GetPrivateMessages.ts b/src/types/GetPrivateMessages.ts index 9bb22fe..57a4074 100644 --- a/src/types/GetPrivateMessages.ts +++ b/src/types/GetPrivateMessages.ts @@ -6,5 +6,4 @@ export interface GetPrivateMessages { page?: number; limit?: number; creator_id?: PersonId; - auth: string; } diff --git a/src/types/GetReplies.ts b/src/types/GetReplies.ts index 8266069..bc8003b 100644 --- a/src/types/GetReplies.ts +++ b/src/types/GetReplies.ts @@ -6,5 +6,4 @@ export interface GetReplies { page?: number; limit?: number; unread_only?: boolean; - auth: string; } diff --git a/src/types/GetReportCount.ts b/src/types/GetReportCount.ts index 6d9a298..3dcadb2 100644 --- a/src/types/GetReportCount.ts +++ b/src/types/GetReportCount.ts @@ -3,5 +3,4 @@ import type { CommunityId } from "./CommunityId"; export interface GetReportCount { community_id?: CommunityId; - auth: string; } diff --git a/src/types/GetSite.ts b/src/types/GetSite.ts deleted file mode 100644 index 6001bd9..0000000 --- a/src/types/GetSite.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetSite { - auth?: string; -} diff --git a/src/types/GetUnreadCount.ts b/src/types/GetUnreadCount.ts deleted file mode 100644 index 383cf9a..0000000 --- a/src/types/GetUnreadCount.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetUnreadCount { - auth: string; -} diff --git a/src/types/GetUnreadRegistrationApplicationCount.ts b/src/types/GetUnreadRegistrationApplicationCount.ts deleted file mode 100644 index df01278..0000000 --- a/src/types/GetUnreadRegistrationApplicationCount.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface GetUnreadRegistrationApplicationCount { - auth: string; -} diff --git a/src/types/HideCommunity.ts b/src/types/HideCommunity.ts index d1f5a3c..5b1de4f 100644 --- a/src/types/HideCommunity.ts +++ b/src/types/HideCommunity.ts @@ -5,5 +5,4 @@ export interface HideCommunity { community_id: CommunityId; hidden: boolean; reason?: string; - auth: string; } diff --git a/src/types/ImageUpload.ts b/src/types/ImageUpload.ts new file mode 100644 index 0000000..c4f2f14 --- /dev/null +++ b/src/types/ImageUpload.ts @@ -0,0 +1,11 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ImageUploadId } from "./ImageUploadId"; +import type { LocalUserId } from "./LocalUserId"; + +export interface ImageUpload { + id: ImageUploadId; + local_user_id: LocalUserId; + pictrs_alias: string; + pictrs_delete_token: string; + published: string; +} diff --git a/src/types/UserJoin.ts b/src/types/ImageUploadId.ts similarity index 70% rename from src/types/UserJoin.ts rename to src/types/ImageUploadId.ts index 497449b..dc07512 100644 --- a/src/types/UserJoin.ts +++ b/src/types/ImageUploadId.ts @@ -1,5 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export interface UserJoin { - auth: string; -} +export type ImageUploadId = number; diff --git a/src/types/InstanceBlockView.ts b/src/types/InstanceBlockView.ts deleted file mode 100644 index 38087ca..0000000 --- a/src/types/InstanceBlockView.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { Instance } from "./Instance"; -import type { Person } from "./Person"; -import type { Site } from "./Site"; - -export interface InstanceBlockView { - person: Person; - instance: Instance; - site?: Site; -} diff --git a/src/types/LeaveAdmin.ts b/src/types/LeaveAdmin.ts deleted file mode 100644 index c2ad908..0000000 --- a/src/types/LeaveAdmin.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface LeaveAdmin { - auth: string; -} diff --git a/src/types/ListCommentReports.ts b/src/types/ListCommentReports.ts index 1c5f18e..86e90cf 100644 --- a/src/types/ListCommentReports.ts +++ b/src/types/ListCommentReports.ts @@ -6,5 +6,4 @@ export interface ListCommentReports { limit?: number; unresolved_only?: boolean; community_id?: CommunityId; - auth: string; } diff --git a/src/types/ListCommunities.ts b/src/types/ListCommunities.ts index 1cbf9ff..063614b 100644 --- a/src/types/ListCommunities.ts +++ b/src/types/ListCommunities.ts @@ -8,5 +8,4 @@ export interface ListCommunities { show_nsfw?: boolean; page?: number; limit?: number; - auth?: string; } diff --git a/src/types/ListPostReports.ts b/src/types/ListPostReports.ts index 3f6778d..4f4a268 100644 --- a/src/types/ListPostReports.ts +++ b/src/types/ListPostReports.ts @@ -6,5 +6,4 @@ export interface ListPostReports { limit?: number; unresolved_only?: boolean; community_id?: CommunityId; - auth: string; } diff --git a/src/types/ListPrivateMessageReports.ts b/src/types/ListPrivateMessageReports.ts index a94a439..2455b18 100644 --- a/src/types/ListPrivateMessageReports.ts +++ b/src/types/ListPrivateMessageReports.ts @@ -4,5 +4,4 @@ export interface ListPrivateMessageReports { page?: number; limit?: number; unresolved_only?: boolean; - auth: string; } diff --git a/src/types/ListRegistrationApplications.ts b/src/types/ListRegistrationApplications.ts index e5d4802..fbb4704 100644 --- a/src/types/ListRegistrationApplications.ts +++ b/src/types/ListRegistrationApplications.ts @@ -4,5 +4,4 @@ export interface ListRegistrationApplications { unread_only?: boolean; page?: number; limit?: number; - auth: string; } diff --git a/src/types/LockPost.ts b/src/types/LockPost.ts index e49ab05..8102b43 100644 --- a/src/types/LockPost.ts +++ b/src/types/LockPost.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface LockPost { post_id: PostId; locked: boolean; - auth: string; } diff --git a/src/types/MarkAllAsRead.ts b/src/types/MarkAllAsRead.ts deleted file mode 100644 index 8941b9e..0000000 --- a/src/types/MarkAllAsRead.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface MarkAllAsRead { - auth: string; -} diff --git a/src/types/MarkCommentReplyAsRead.ts b/src/types/MarkCommentReplyAsRead.ts index 215689e..0870e1a 100644 --- a/src/types/MarkCommentReplyAsRead.ts +++ b/src/types/MarkCommentReplyAsRead.ts @@ -4,5 +4,4 @@ import type { CommentReplyId } from "./CommentReplyId"; export interface MarkCommentReplyAsRead { comment_reply_id: CommentReplyId; read: boolean; - auth: string; } diff --git a/src/types/MarkPersonMentionAsRead.ts b/src/types/MarkPersonMentionAsRead.ts index 7111487..24d0b44 100644 --- a/src/types/MarkPersonMentionAsRead.ts +++ b/src/types/MarkPersonMentionAsRead.ts @@ -4,5 +4,4 @@ import type { PersonMentionId } from "./PersonMentionId"; export interface MarkPersonMentionAsRead { person_mention_id: PersonMentionId; read: boolean; - auth: string; } diff --git a/src/types/MarkPostAsRead.ts b/src/types/MarkPostAsRead.ts index b3b9d31..36f0683 100644 --- a/src/types/MarkPostAsRead.ts +++ b/src/types/MarkPostAsRead.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface MarkPostAsRead { post_id: PostId; read: boolean; - auth: string; } diff --git a/src/types/MarkPrivateMessageAsRead.ts b/src/types/MarkPrivateMessageAsRead.ts index 8ee0618..a4e721b 100644 --- a/src/types/MarkPrivateMessageAsRead.ts +++ b/src/types/MarkPrivateMessageAsRead.ts @@ -4,5 +4,4 @@ import type { PrivateMessageId } from "./PrivateMessageId"; export interface MarkPrivateMessageAsRead { private_message_id: PrivateMessageId; read: boolean; - auth: string; } diff --git a/src/types/ModJoin.ts b/src/types/ModJoin.ts deleted file mode 100644 index 115a213..0000000 --- a/src/types/ModJoin.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { CommunityId } from "./CommunityId"; - -export interface ModJoin { - community_id: CommunityId; -} diff --git a/src/types/ModJoinResponse.ts b/src/types/ModJoinResponse.ts deleted file mode 100644 index 90e83b9..0000000 --- a/src/types/ModJoinResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface ModJoinResponse { - joined: boolean; -} diff --git a/src/types/MyUserInfo.ts b/src/types/MyUserInfo.ts index ddde119..fb2c3d9 100644 --- a/src/types/MyUserInfo.ts +++ b/src/types/MyUserInfo.ts @@ -2,7 +2,6 @@ import type { CommunityBlockView } from "./CommunityBlockView"; import type { CommunityFollowerView } from "./CommunityFollowerView"; import type { CommunityModeratorView } from "./CommunityModeratorView"; -import type { InstanceBlockView } from "./InstanceBlockView"; import type { LanguageId } from "./LanguageId"; import type { LocalUserView } from "./LocalUserView"; import type { PersonBlockView } from "./PersonBlockView"; @@ -12,7 +11,6 @@ export interface MyUserInfo { follows: Array; moderates: Array; community_blocks: Array; - instance_blocks: Array; person_blocks: Array; discussion_languages: Array; } diff --git a/src/types/PostAggregates.ts b/src/types/PostAggregates.ts index b089661..4c00789 100644 --- a/src/types/PostAggregates.ts +++ b/src/types/PostAggregates.ts @@ -1,6 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { CommunityId } from "./CommunityId"; -import type { InstanceId } from "./InstanceId"; import type { PersonId } from "./PersonId"; import type { PostId } from "./PostId"; @@ -21,5 +20,4 @@ export interface PostAggregates { community_id: CommunityId; creator_id: PersonId; controversy_rank: number; - instance_id: InstanceId; } diff --git a/src/types/PostJoin.ts b/src/types/PostJoin.ts deleted file mode 100644 index cab8217..0000000 --- a/src/types/PostJoin.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { PostId } from "./PostId"; - -export interface PostJoin { - post_id: PostId; -} diff --git a/src/types/PostJoinResponse.ts b/src/types/PostJoinResponse.ts deleted file mode 100644 index 4640e33..0000000 --- a/src/types/PostJoinResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface PostJoinResponse { - joined: boolean; -} diff --git a/src/types/PostOrCommentId.ts b/src/types/PostOrCommentId.ts deleted file mode 100644 index 918a94b..0000000 --- a/src/types/PostOrCommentId.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { CommentId } from "./CommentId"; -import type { PostId } from "./PostId"; - -export type PostOrCommentId = { Post: PostId } | { Comment: CommentId }; diff --git a/src/types/PurgeComment.ts b/src/types/PurgeComment.ts index c211f3e..ca17a59 100644 --- a/src/types/PurgeComment.ts +++ b/src/types/PurgeComment.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface PurgeComment { comment_id: CommentId; reason?: string; - auth: string; } diff --git a/src/types/PurgeCommunity.ts b/src/types/PurgeCommunity.ts index f1b3590..3233974 100644 --- a/src/types/PurgeCommunity.ts +++ b/src/types/PurgeCommunity.ts @@ -4,5 +4,4 @@ import type { CommunityId } from "./CommunityId"; export interface PurgeCommunity { community_id: CommunityId; reason?: string; - auth: string; } diff --git a/src/types/PurgePerson.ts b/src/types/PurgePerson.ts index a7cc2a7..9e854c1 100644 --- a/src/types/PurgePerson.ts +++ b/src/types/PurgePerson.ts @@ -4,5 +4,4 @@ import type { PersonId } from "./PersonId"; export interface PurgePerson { person_id: PersonId; reason?: string; - auth: string; } diff --git a/src/types/PurgePost.ts b/src/types/PurgePost.ts index c813734..a8f3733 100644 --- a/src/types/PurgePost.ts +++ b/src/types/PurgePost.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface PurgePost { post_id: PostId; reason?: string; - auth: string; } diff --git a/src/types/RemoveComment.ts b/src/types/RemoveComment.ts index c42c371..6869ac6 100644 --- a/src/types/RemoveComment.ts +++ b/src/types/RemoveComment.ts @@ -5,5 +5,4 @@ export interface RemoveComment { comment_id: CommentId; removed: boolean; reason?: string; - auth: string; } diff --git a/src/types/RemoveCommunity.ts b/src/types/RemoveCommunity.ts index 1010743..54b6abd 100644 --- a/src/types/RemoveCommunity.ts +++ b/src/types/RemoveCommunity.ts @@ -6,5 +6,4 @@ export interface RemoveCommunity { removed: boolean; reason?: string; expires?: number; - auth: string; } diff --git a/src/types/RemovePost.ts b/src/types/RemovePost.ts index 948454e..9fef68e 100644 --- a/src/types/RemovePost.ts +++ b/src/types/RemovePost.ts @@ -5,5 +5,4 @@ export interface RemovePost { post_id: PostId; removed: boolean; reason?: string; - auth: string; } diff --git a/src/types/ResolveCommentReport.ts b/src/types/ResolveCommentReport.ts index ce2485f..0af9bb4 100644 --- a/src/types/ResolveCommentReport.ts +++ b/src/types/ResolveCommentReport.ts @@ -4,5 +4,4 @@ import type { CommentReportId } from "./CommentReportId"; export interface ResolveCommentReport { report_id: CommentReportId; resolved: boolean; - auth: string; } diff --git a/src/types/ResolveObject.ts b/src/types/ResolveObject.ts index 9054047..99c3ffc 100644 --- a/src/types/ResolveObject.ts +++ b/src/types/ResolveObject.ts @@ -2,5 +2,4 @@ export interface ResolveObject { q: string; - auth: string | null; } diff --git a/src/types/ResolvePostReport.ts b/src/types/ResolvePostReport.ts index 30c56ec..20f5016 100644 --- a/src/types/ResolvePostReport.ts +++ b/src/types/ResolvePostReport.ts @@ -4,5 +4,4 @@ import type { PostReportId } from "./PostReportId"; export interface ResolvePostReport { report_id: PostReportId; resolved: boolean; - auth: string; } diff --git a/src/types/ResolvePrivateMessageReport.ts b/src/types/ResolvePrivateMessageReport.ts index 55ceab7..e8833c6 100644 --- a/src/types/ResolvePrivateMessageReport.ts +++ b/src/types/ResolvePrivateMessageReport.ts @@ -4,5 +4,4 @@ import type { PrivateMessageReportId } from "./PrivateMessageReportId"; export interface ResolvePrivateMessageReport { report_id: PrivateMessageReportId; resolved: boolean; - auth: string; } diff --git a/src/types/SaveComment.ts b/src/types/SaveComment.ts index 2dd8dd1..81232c2 100644 --- a/src/types/SaveComment.ts +++ b/src/types/SaveComment.ts @@ -4,5 +4,4 @@ import type { CommentId } from "./CommentId"; export interface SaveComment { comment_id: CommentId; save: boolean; - auth: string; } diff --git a/src/types/SavePost.ts b/src/types/SavePost.ts index 0e516f9..9c41edb 100644 --- a/src/types/SavePost.ts +++ b/src/types/SavePost.ts @@ -4,5 +4,4 @@ import type { PostId } from "./PostId"; export interface SavePost { post_id: PostId; save: boolean; - auth: string; } diff --git a/src/types/SaveUserSettings.ts b/src/types/SaveUserSettings.ts index e8c8223..31182a3 100644 --- a/src/types/SaveUserSettings.ts +++ b/src/types/SaveUserSettings.ts @@ -26,7 +26,6 @@ export interface SaveUserSettings { show_new_post_notifs?: boolean; discussion_languages?: Array; generate_totp_2fa?: boolean; - auth: string; open_links_in_new_tab?: boolean; infinite_scroll_enabled?: boolean; } diff --git a/src/types/Search.ts b/src/types/Search.ts index c145d9b..da9817e 100644 --- a/src/types/Search.ts +++ b/src/types/Search.ts @@ -15,5 +15,4 @@ export interface Search { listing_type?: ListingType; page?: number; limit?: number; - auth?: string; } diff --git a/src/types/TransferCommunity.ts b/src/types/TransferCommunity.ts index 9d97b05..e60c95d 100644 --- a/src/types/TransferCommunity.ts +++ b/src/types/TransferCommunity.ts @@ -5,5 +5,4 @@ import type { PersonId } from "./PersonId"; export interface TransferCommunity { community_id: CommunityId; person_id: PersonId; - auth: string; } diff --git a/src/types/UserJoinResponse.ts b/src/types/UserJoinResponse.ts deleted file mode 100644 index 2b41aef..0000000 --- a/src/types/UserJoinResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export interface UserJoinResponse { - joined: boolean; -}