From 8f9fe6e4358302a52dbf34ada4bf9e6fc55c8a7d Mon Sep 17 00:00:00 2001 From: "maarten.vercruysse" Date: Sat, 23 Sep 2023 01:13:26 +0200 Subject: [PATCH] type changes --- .husky/pre-commit | 0 copy_generated_types_from_lemmy.sh | 2 +- deploy.sh | 0 src/index.ts | 8 +++++++- src/types/AddAdmin.ts | 1 - src/types/AddModToCommunity.ts | 1 - src/types/ApproveRegistrationApplication.ts | 1 - src/types/BanFromCommunity.ts | 3 +-- src/types/BanPerson.ts | 3 +-- src/types/BlockCommunity.ts | 1 - src/types/BlockInstance.ts | 1 - src/types/BlockPerson.ts | 1 - src/types/ChangePassword.ts | 1 - src/types/CommentAggregates.ts | 6 +++--- src/types/Community.ts | 2 -- src/types/CommunityAggregates.ts | 14 +++++++------- src/types/CreateComment.ts | 1 - src/types/CreateCommentLike.ts | 1 - src/types/CreateCommentReport.ts | 1 - src/types/CreateCommunity.ts | 1 - src/types/CreateCustomEmoji.ts | 1 - src/types/CreatePost.ts | 1 - src/types/CreatePostLike.ts | 1 - src/types/CreatePostReport.ts | 1 - src/types/CreatePrivateMessage.ts | 1 - src/types/CreatePrivateMessageReport.ts | 1 - src/types/CreateSite.ts | 1 - src/types/DeleteAccount.ts | 1 - src/types/DeleteAccountResponse.ts | 2 +- src/types/DeleteComment.ts | 1 - src/types/DeleteCommunity.ts | 1 - src/types/DeleteCustomEmoji.ts | 1 - src/types/DeletePost.ts | 1 - src/types/DeletePrivateMessage.ts | 1 - src/types/DistinguishComment.ts | 1 - src/types/EditComment.ts | 1 - src/types/EditCommunity.ts | 1 - src/types/EditCustomEmoji.ts | 1 - src/types/EditPost.ts | 1 - src/types/EditPrivateMessage.ts | 1 - src/types/EditSite.ts | 1 - src/types/FeaturePost.ts | 1 - src/types/FollowCommunity.ts | 1 - src/types/GenerateTotpSecretResponse.ts | 5 +++++ src/types/GetComment.ts | 1 - src/types/GetComments.ts | 5 ++--- src/types/GetCommunity.ts | 1 - src/types/GetModlog.ts | 5 ++--- src/types/GetPersonDetails.ts | 5 ++--- src/types/GetPersonMentions.ts | 5 ++--- src/types/GetPost.ts | 1 - src/types/GetPosts.ts | 7 ++++--- src/types/GetPostsResponse.ts | 2 ++ src/types/GetPrivateMessages.ts | 5 ++--- src/types/GetReplies.ts | 5 ++--- src/types/GetReportCount.ts | 1 - src/types/GetReportCountResponse.ts | 6 +++--- src/types/GetUnreadCountResponse.ts | 6 +++--- ...UnreadRegistrationApplicationCountResponse.ts | 2 +- src/types/HideCommunity.ts | 1 - src/types/ImageUpload.ts | 11 +++++++++++ src/types/ImageUploadId.ts | 3 +++ src/types/ListCommentReports.ts | 5 ++--- src/types/ListCommunities.ts | 5 ++--- src/types/ListPostReports.ts | 5 ++--- src/types/ListPrivateMessageReports.ts | 5 ++--- src/types/ListRegistrationApplications.ts | 5 ++--- src/types/LocalUser.ts | 2 +- src/types/LockPost.ts | 1 - src/types/MarkCommentReplyAsRead.ts | 1 - src/types/MarkPersonMentionAsRead.ts | 1 - src/types/MarkPostAsRead.ts | 1 - src/types/MarkPrivateMessageAsRead.ts | 1 - src/types/ModlogListParams.ts | 4 ++-- src/types/PaginationCursor.ts | 3 +++ src/types/PasswordResetResponse.ts | 2 +- src/types/Person.ts | 1 - src/types/PersonAggregates.ts | 8 ++++---- src/types/PostAggregates.ts | 9 +++++---- src/types/PostView.ts | 2 +- src/types/PurgeComment.ts | 1 - src/types/PurgeCommunity.ts | 1 - src/types/PurgePerson.ts | 1 - src/types/PurgePost.ts | 1 - src/types/RemoveComment.ts | 1 - src/types/RemoveCommunity.ts | 3 +-- src/types/RemovePost.ts | 1 - src/types/ResolveCommentReport.ts | 1 - src/types/ResolveObject.ts | 1 - src/types/ResolvePostReport.ts | 1 - src/types/ResolvePrivateMessageReport.ts | 1 - src/types/SaveComment.ts | 1 - src/types/SavePost.ts | 1 - src/types/SaveUserSettings.ts | 2 -- src/types/Search.ts | 5 ++--- src/types/SiteAggregates.ts | 16 ++++++++-------- src/types/SortType.ts | 3 ++- src/types/TransferCommunity.ts | 1 - src/types/UpdateTotp.ts | 6 ++++++ src/types/UpdateTotpResponse.ts | 5 +++++ src/types/VerifyEmailResponse.ts | 2 +- 101 files changed, 117 insertions(+), 149 deletions(-) mode change 100755 => 100644 .husky/pre-commit mode change 100755 => 100644 copy_generated_types_from_lemmy.sh mode change 100755 => 100644 deploy.sh create mode 100644 src/types/GenerateTotpSecretResponse.ts create mode 100644 src/types/ImageUpload.ts create mode 100644 src/types/ImageUploadId.ts create mode 100644 src/types/PaginationCursor.ts create mode 100644 src/types/UpdateTotp.ts create mode 100644 src/types/UpdateTotpResponse.ts diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 diff --git a/copy_generated_types_from_lemmy.sh b/copy_generated_types_from_lemmy.sh old mode 100755 new mode 100644 index a873226..e1e77ea --- a/copy_generated_types_from_lemmy.sh +++ b/copy_generated_types_from_lemmy.sh @@ -2,7 +2,7 @@ # First re-generate the types by running cargo test on lemmy pushd ../lemmy/scripts -./test.sh +#./test.sh cd ../crates diff --git a/deploy.sh b/deploy.sh old mode 100755 new mode 100644 diff --git a/src/index.ts b/src/index.ts index 5ed886d..727675b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -84,6 +84,7 @@ export { EditSite } from "./types/EditSite"; export { FeaturePost } from "./types/FeaturePost"; export { FederatedInstances } from "./types/FederatedInstances"; export { FollowCommunity } from "./types/FollowCommunity"; +export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse"; export { GetBannedPersons } from "./types/GetBannedPersons"; export { GetCaptcha } from "./types/GetCaptcha"; export { GetCaptchaResponse } from "./types/GetCaptchaResponse"; @@ -118,6 +119,8 @@ 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"; @@ -177,6 +180,7 @@ export { ModTransferCommunityView } from "./types/ModTransferCommunityView"; export { ModlogActionType } from "./types/ModlogActionType"; export { ModlogListParams } from "./types/ModlogListParams"; export { MyUserInfo } from "./types/MyUserInfo"; +export { PaginationCursor } from "./types/PaginationCursor"; export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset"; export { PasswordReset } from "./types/PasswordReset"; export { PasswordResetResponse } from "./types/PasswordResetResponse"; @@ -248,8 +252,10 @@ export { SortType } from "./types/SortType"; export { SubscribedType } from "./types/SubscribedType"; export { Tagline } from "./types/Tagline"; export { TransferCommunity } from "./types/TransferCommunity"; +export { UpdateTotp } from "./types/UpdateTotp"; +export { UpdateTotpResponse } from "./types/UpdateTotpResponse"; 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"; +export { ImageFile, UploadImage, UploadImageResponse } 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..8f540b3 100644 --- a/src/types/BanFromCommunity.ts +++ b/src/types/BanFromCommunity.ts @@ -8,6 +8,5 @@ export interface BanFromCommunity { ban: boolean; remove_data?: boolean; reason?: string; - expires?: number; - auth: string; + expires?: /* integer */ number; } diff --git a/src/types/BanPerson.ts b/src/types/BanPerson.ts index 0fd1bbb..d6d70c5 100644 --- a/src/types/BanPerson.ts +++ b/src/types/BanPerson.ts @@ -6,6 +6,5 @@ export interface BanPerson { ban: boolean; remove_data?: boolean; reason?: string; - expires?: number; - auth: string; + expires?: /* integer */ number; } 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 index a69a880..4b476f3 100644 --- a/src/types/BlockInstance.ts +++ b/src/types/BlockInstance.ts @@ -4,5 +4,4 @@ import type { InstanceId } from "./InstanceId"; export interface BlockInstance { instance_id: InstanceId; block: boolean; - auth: string; } 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/CommentAggregates.ts b/src/types/CommentAggregates.ts index b381c65..4b8e826 100644 --- a/src/types/CommentAggregates.ts +++ b/src/types/CommentAggregates.ts @@ -4,9 +4,9 @@ import type { CommentId } from "./CommentId"; export interface CommentAggregates { id: number; comment_id: CommentId; - score: number; - upvotes: number; - downvotes: number; + score: /* integer */ number; + upvotes: /* integer */ number; + downvotes: /* integer */ number; published: string; child_count: number; hot_rank: number; diff --git a/src/types/Community.ts b/src/types/Community.ts index 7d8022d..31f0859 100644 --- a/src/types/Community.ts +++ b/src/types/Community.ts @@ -16,8 +16,6 @@ export interface Community { local: boolean; icon?: string; banner?: string; - followers_url: string; - inbox_url: string; hidden: boolean; posting_restricted_to_mods: boolean; instance_id: InstanceId; diff --git a/src/types/CommunityAggregates.ts b/src/types/CommunityAggregates.ts index 84f1382..a7dbb56 100644 --- a/src/types/CommunityAggregates.ts +++ b/src/types/CommunityAggregates.ts @@ -4,13 +4,13 @@ import type { CommunityId } from "./CommunityId"; export interface CommunityAggregates { id: number; community_id: CommunityId; - subscribers: number; - posts: number; - comments: number; + subscribers: /* integer */ number; + posts: /* integer */ number; + comments: /* integer */ number; published: string; - users_active_day: number; - users_active_week: number; - users_active_month: number; - users_active_half_year: number; + users_active_day: /* integer */ number; + users_active_week: /* integer */ number; + users_active_month: /* integer */ number; + users_active_half_year: /* integer */ number; hot_rank: number; } 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/DeleteAccountResponse.ts b/src/types/DeleteAccountResponse.ts index 5b4d05e..f6f0fcd 100644 --- a/src/types/DeleteAccountResponse.ts +++ b/src/types/DeleteAccountResponse.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DeleteAccountResponse = null; +export type DeleteAccountResponse = Record; 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/GenerateTotpSecretResponse.ts b/src/types/GenerateTotpSecretResponse.ts new file mode 100644 index 0000000..08d7e47 --- /dev/null +++ b/src/types/GenerateTotpSecretResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface GenerateTotpSecretResponse { + totp_secret_url: 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..e18275c 100644 --- a/src/types/GetComments.ts +++ b/src/types/GetComments.ts @@ -9,8 +9,8 @@ export interface GetComments { type_?: ListingType; sort?: CommentSortType; max_depth?: number; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; community_id?: CommunityId; community_name?: string; post_id?: PostId; @@ -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/GetModlog.ts b/src/types/GetModlog.ts index 895122d..75baaa0 100644 --- a/src/types/GetModlog.ts +++ b/src/types/GetModlog.ts @@ -6,9 +6,8 @@ import type { PersonId } from "./PersonId"; export interface GetModlog { mod_person_id?: PersonId; community_id?: CommunityId; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; type_?: ModlogActionType; other_person_id?: PersonId; - auth?: string; } diff --git a/src/types/GetPersonDetails.ts b/src/types/GetPersonDetails.ts index 8cdc8ff..38ffe82 100644 --- a/src/types/GetPersonDetails.ts +++ b/src/types/GetPersonDetails.ts @@ -7,9 +7,8 @@ export interface GetPersonDetails { person_id?: PersonId; username?: string; sort?: SortType; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; community_id?: CommunityId; saved_only?: boolean; - auth?: string; } diff --git a/src/types/GetPersonMentions.ts b/src/types/GetPersonMentions.ts index fa7a8a3..f5edfed 100644 --- a/src/types/GetPersonMentions.ts +++ b/src/types/GetPersonMentions.ts @@ -3,8 +3,7 @@ import type { CommentSortType } from "./CommentSortType"; export interface GetPersonMentions { sort?: CommentSortType; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ 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..eb852e0 100644 --- a/src/types/GetPosts.ts +++ b/src/types/GetPosts.ts @@ -1,17 +1,18 @@ // 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 { ListingType } from "./ListingType"; +import type { PaginationCursor } from "./PaginationCursor"; import type { SortType } from "./SortType"; export interface GetPosts { type_?: ListingType; sort?: SortType; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; community_id?: CommunityId; community_name?: string; saved_only?: boolean; liked_only?: boolean; disliked_only?: boolean; - auth?: string; + page_cursor?: PaginationCursor; } diff --git a/src/types/GetPostsResponse.ts b/src/types/GetPostsResponse.ts index 9038edc..f7c10eb 100644 --- a/src/types/GetPostsResponse.ts +++ b/src/types/GetPostsResponse.ts @@ -1,6 +1,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { PaginationCursor } from "./PaginationCursor"; import type { PostView } from "./PostView"; export interface GetPostsResponse { posts: Array; + next_page?: PaginationCursor; } diff --git a/src/types/GetPrivateMessages.ts b/src/types/GetPrivateMessages.ts index 9bb22fe..1312895 100644 --- a/src/types/GetPrivateMessages.ts +++ b/src/types/GetPrivateMessages.ts @@ -3,8 +3,7 @@ import type { PersonId } from "./PersonId"; export interface GetPrivateMessages { unread_only?: boolean; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; creator_id?: PersonId; - auth: string; } diff --git a/src/types/GetReplies.ts b/src/types/GetReplies.ts index 8266069..d1b3a20 100644 --- a/src/types/GetReplies.ts +++ b/src/types/GetReplies.ts @@ -3,8 +3,7 @@ import type { CommentSortType } from "./CommentSortType"; export interface GetReplies { sort?: CommentSortType; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ 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/GetReportCountResponse.ts b/src/types/GetReportCountResponse.ts index f6e8e4d..0ffe166 100644 --- a/src/types/GetReportCountResponse.ts +++ b/src/types/GetReportCountResponse.ts @@ -3,7 +3,7 @@ import type { CommunityId } from "./CommunityId"; export interface GetReportCountResponse { community_id?: CommunityId; - comment_reports: number; - post_reports: number; - private_message_reports?: number; + comment_reports: /* integer */ number; + post_reports: /* integer */ number; + private_message_reports?: /* integer */ number; } diff --git a/src/types/GetUnreadCountResponse.ts b/src/types/GetUnreadCountResponse.ts index a156270..781c553 100644 --- a/src/types/GetUnreadCountResponse.ts +++ b/src/types/GetUnreadCountResponse.ts @@ -1,7 +1,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export interface GetUnreadCountResponse { - replies: number; - mentions: number; - private_messages: number; + replies: /* integer */ number; + mentions: /* integer */ number; + private_messages: /* integer */ number; } diff --git a/src/types/GetUnreadRegistrationApplicationCountResponse.ts b/src/types/GetUnreadRegistrationApplicationCountResponse.ts index 2257f54..3ea780a 100644 --- a/src/types/GetUnreadRegistrationApplicationCountResponse.ts +++ b/src/types/GetUnreadRegistrationApplicationCountResponse.ts @@ -1,5 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export interface GetUnreadRegistrationApplicationCountResponse { - registration_applications: number; + registration_applications: /* integer */ number; } 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/ImageUploadId.ts b/src/types/ImageUploadId.ts new file mode 100644 index 0000000..dc07512 --- /dev/null +++ b/src/types/ImageUploadId.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ImageUploadId = number; diff --git a/src/types/ListCommentReports.ts b/src/types/ListCommentReports.ts index 1c5f18e..7a700ad 100644 --- a/src/types/ListCommentReports.ts +++ b/src/types/ListCommentReports.ts @@ -2,9 +2,8 @@ import type { CommunityId } from "./CommunityId"; export interface ListCommentReports { - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; unresolved_only?: boolean; community_id?: CommunityId; - auth: string; } diff --git a/src/types/ListCommunities.ts b/src/types/ListCommunities.ts index 1cbf9ff..c346e54 100644 --- a/src/types/ListCommunities.ts +++ b/src/types/ListCommunities.ts @@ -6,7 +6,6 @@ export interface ListCommunities { type_?: ListingType; sort?: SortType; show_nsfw?: boolean; - page?: number; - limit?: number; - auth?: string; + page?: /* integer */ number; + limit?: /* integer */ number; } diff --git a/src/types/ListPostReports.ts b/src/types/ListPostReports.ts index 3f6778d..598a986 100644 --- a/src/types/ListPostReports.ts +++ b/src/types/ListPostReports.ts @@ -2,9 +2,8 @@ import type { CommunityId } from "./CommunityId"; export interface ListPostReports { - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; unresolved_only?: boolean; community_id?: CommunityId; - auth: string; } diff --git a/src/types/ListPrivateMessageReports.ts b/src/types/ListPrivateMessageReports.ts index a94a439..c464ca2 100644 --- a/src/types/ListPrivateMessageReports.ts +++ b/src/types/ListPrivateMessageReports.ts @@ -1,8 +1,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export interface ListPrivateMessageReports { - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; unresolved_only?: boolean; - auth: string; } diff --git a/src/types/ListRegistrationApplications.ts b/src/types/ListRegistrationApplications.ts index e5d4802..1e593f7 100644 --- a/src/types/ListRegistrationApplications.ts +++ b/src/types/ListRegistrationApplications.ts @@ -2,7 +2,6 @@ export interface ListRegistrationApplications { unread_only?: boolean; - page?: number; - limit?: number; - auth: string; + page?: /* integer */ number; + limit?: /* integer */ number; } diff --git a/src/types/LocalUser.ts b/src/types/LocalUser.ts index a5e38f8..63daf21 100644 --- a/src/types/LocalUser.ts +++ b/src/types/LocalUser.ts @@ -23,11 +23,11 @@ export interface LocalUser { show_new_post_notifs: boolean; email_verified: boolean; accepted_application: boolean; - totp_2fa_url?: string; open_links_in_new_tab: boolean; blur_nsfw: boolean; auto_expand: boolean; infinite_scroll_enabled: boolean; admin: boolean; post_listing_mode: PostListingMode; + totp_2fa_enabled: boolean; } 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/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/ModlogListParams.ts b/src/types/ModlogListParams.ts index 4725790..577c558 100644 --- a/src/types/ModlogListParams.ts +++ b/src/types/ModlogListParams.ts @@ -6,7 +6,7 @@ export interface ModlogListParams { community_id?: CommunityId; mod_person_id?: PersonId; other_person_id?: PersonId; - page?: number; - limit?: number; + page?: /* integer */ number; + limit?: /* integer */ number; hide_modlog_names: boolean; } diff --git a/src/types/PaginationCursor.ts b/src/types/PaginationCursor.ts new file mode 100644 index 0000000..790f62c --- /dev/null +++ b/src/types/PaginationCursor.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PaginationCursor = string; diff --git a/src/types/PasswordResetResponse.ts b/src/types/PasswordResetResponse.ts index 66587f5..e76960c 100644 --- a/src/types/PasswordResetResponse.ts +++ b/src/types/PasswordResetResponse.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type PasswordResetResponse = null; +export type PasswordResetResponse = Record; diff --git a/src/types/Person.ts b/src/types/Person.ts index 137cfe4..6fee0e2 100644 --- a/src/types/Person.ts +++ b/src/types/Person.ts @@ -15,7 +15,6 @@ export interface Person { local: boolean; banner?: string; deleted: boolean; - inbox_url: string; matrix_user_id?: string; bot_account: boolean; ban_expires?: string; diff --git a/src/types/PersonAggregates.ts b/src/types/PersonAggregates.ts index 74dfa29..584453b 100644 --- a/src/types/PersonAggregates.ts +++ b/src/types/PersonAggregates.ts @@ -4,8 +4,8 @@ import type { PersonId } from "./PersonId"; export interface PersonAggregates { id: number; person_id: PersonId; - post_count: number; - post_score: number; - comment_count: number; - comment_score: number; + post_count: /* integer */ number; + post_score: /* integer */ number; + comment_count: /* integer */ number; + comment_score: /* integer */ number; } diff --git a/src/types/PostAggregates.ts b/src/types/PostAggregates.ts index b089661..690164a 100644 --- a/src/types/PostAggregates.ts +++ b/src/types/PostAggregates.ts @@ -7,10 +7,10 @@ import type { PostId } from "./PostId"; export interface PostAggregates { id: number; post_id: PostId; - comments: number; - score: number; - upvotes: number; - downvotes: number; + comments: /* integer */ number; + score: /* integer */ number; + upvotes: /* integer */ number; + downvotes: /* integer */ number; published: string; newest_comment_time_necro: string; newest_comment_time: string; @@ -22,4 +22,5 @@ export interface PostAggregates { creator_id: PersonId; controversy_rank: number; instance_id: InstanceId; + scaled_rank: number; } diff --git a/src/types/PostView.ts b/src/types/PostView.ts index 4081e05..91f5a95 100644 --- a/src/types/PostView.ts +++ b/src/types/PostView.ts @@ -16,5 +16,5 @@ export interface PostView { read: boolean; creator_blocked: boolean; my_vote?: number; - unread_comments: number; + unread_comments: /* integer */ number; } 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..81b6fce 100644 --- a/src/types/RemoveCommunity.ts +++ b/src/types/RemoveCommunity.ts @@ -5,6 +5,5 @@ export interface RemoveCommunity { community_id: CommunityId; removed: boolean; reason?: string; - expires?: number; - auth: string; + expires?: /* integer */ number; } 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..fb9e89f 100644 --- a/src/types/SaveUserSettings.ts +++ b/src/types/SaveUserSettings.ts @@ -25,8 +25,6 @@ export interface SaveUserSettings { show_read_posts?: boolean; 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..d46b0df 100644 --- a/src/types/Search.ts +++ b/src/types/Search.ts @@ -13,7 +13,6 @@ export interface Search { type_?: SearchType; sort?: SortType; listing_type?: ListingType; - page?: number; - limit?: number; - auth?: string; + page?: /* integer */ number; + limit?: /* integer */ number; } diff --git a/src/types/SiteAggregates.ts b/src/types/SiteAggregates.ts index ac8e461..df2dd80 100644 --- a/src/types/SiteAggregates.ts +++ b/src/types/SiteAggregates.ts @@ -4,12 +4,12 @@ import type { SiteId } from "./SiteId"; export interface SiteAggregates { id: number; site_id: SiteId; - users: number; - posts: number; - comments: number; - communities: number; - users_active_day: number; - users_active_week: number; - users_active_month: number; - users_active_half_year: number; + users: /* integer */ number; + posts: /* integer */ number; + comments: /* integer */ number; + communities: /* integer */ number; + users_active_day: /* integer */ number; + users_active_week: /* integer */ number; + users_active_month: /* integer */ number; + users_active_half_year: /* integer */ number; } diff --git a/src/types/SortType.ts b/src/types/SortType.ts index da0a064..ee868e7 100644 --- a/src/types/SortType.ts +++ b/src/types/SortType.ts @@ -18,4 +18,5 @@ export type SortType = | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" - | "Controversial"; + | "Controversial" + | "Scaled"; 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/UpdateTotp.ts b/src/types/UpdateTotp.ts new file mode 100644 index 0000000..ccdd36a --- /dev/null +++ b/src/types/UpdateTotp.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface UpdateTotp { + totp_token: string; + enabled: boolean; +} diff --git a/src/types/UpdateTotpResponse.ts b/src/types/UpdateTotpResponse.ts new file mode 100644 index 0000000..b347849 --- /dev/null +++ b/src/types/UpdateTotpResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface UpdateTotpResponse { + enabled: boolean; +} diff --git a/src/types/VerifyEmailResponse.ts b/src/types/VerifyEmailResponse.ts index b96e381..2f0bd27 100644 --- a/src/types/VerifyEmailResponse.ts +++ b/src/types/VerifyEmailResponse.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type VerifyEmailResponse = null; +export type VerifyEmailResponse = Record;