lemmy-js-client 0.18.3-rc.3 → 0.19.0-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/dist/http.d.ts +61 -20
  2. package/dist/http.js +87 -31
  3. package/dist/index.d.ts +13 -18
  4. package/dist/types/AddAdmin.d.ts +0 -1
  5. package/dist/types/AddModToCommunity.d.ts +0 -1
  6. package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
  7. package/dist/types/BanFromCommunity.d.ts +0 -1
  8. package/dist/types/BanPerson.d.ts +0 -1
  9. package/dist/types/BlockCommunity.d.ts +0 -1
  10. package/dist/types/BlockInstance.d.ts +5 -0
  11. package/dist/types/BlockInstanceResponse.d.ts +3 -0
  12. package/dist/types/BlockPerson.d.ts +0 -1
  13. package/dist/types/ChangePassword.d.ts +0 -1
  14. package/dist/types/CommentAggregates.d.ts +0 -1
  15. package/dist/types/CommentResponse.d.ts +0 -1
  16. package/dist/types/CommentSortType.d.ts +1 -1
  17. package/dist/types/Community.d.ts +0 -2
  18. package/dist/types/CommunityAggregates.d.ts +0 -1
  19. package/dist/types/CreateComment.d.ts +0 -2
  20. package/dist/types/CreateCommentLike.d.ts +0 -1
  21. package/dist/types/CreateCommentReport.d.ts +0 -1
  22. package/dist/types/CreateCommunity.d.ts +0 -1
  23. package/dist/types/CreateCustomEmoji.d.ts +0 -1
  24. package/dist/types/CreatePost.d.ts +0 -1
  25. package/dist/types/CreatePostLike.d.ts +0 -1
  26. package/dist/types/CreatePostReport.d.ts +0 -1
  27. package/dist/types/CreatePrivateMessage.d.ts +0 -1
  28. package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
  29. package/dist/types/CreateSite.d.ts +0 -1
  30. package/dist/types/DeleteAccount.d.ts +1 -1
  31. package/dist/types/DeleteAccountResponse.d.ts +1 -1
  32. package/dist/types/DeleteComment.d.ts +0 -1
  33. package/dist/types/DeleteCommunity.d.ts +0 -1
  34. package/dist/types/DeleteCustomEmoji.d.ts +0 -1
  35. package/dist/types/DeletePost.d.ts +0 -1
  36. package/dist/types/DeletePrivateMessage.d.ts +0 -1
  37. package/dist/types/DistinguishComment.d.ts +0 -1
  38. package/dist/types/EditComment.d.ts +0 -2
  39. package/dist/types/EditCommunity.d.ts +0 -1
  40. package/dist/types/EditCustomEmoji.d.ts +0 -1
  41. package/dist/types/EditPost.d.ts +0 -1
  42. package/dist/types/EditPrivateMessage.d.ts +0 -1
  43. package/dist/types/EditSite.d.ts +0 -1
  44. package/dist/types/FeaturePost.d.ts +0 -1
  45. package/dist/types/FollowCommunity.d.ts +0 -1
  46. package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
  47. package/dist/types/GetComment.d.ts +0 -1
  48. package/dist/types/GetComments.d.ts +2 -1
  49. package/dist/types/GetCommunity.d.ts +0 -1
  50. package/dist/types/GetModlog.d.ts +0 -1
  51. package/dist/types/GetPersonDetails.d.ts +0 -1
  52. package/dist/types/GetPersonMentions.d.ts +0 -1
  53. package/dist/types/GetPost.d.ts +0 -1
  54. package/dist/types/GetPosts.d.ts +4 -2
  55. package/dist/types/GetPostsResponse.d.ts +2 -0
  56. package/dist/types/GetPrivateMessages.d.ts +2 -1
  57. package/dist/types/GetPrivateMessages.js +0 -1
  58. package/dist/types/GetReplies.d.ts +0 -1
  59. package/dist/types/GetReportCount.d.ts +0 -1
  60. package/dist/types/HideCommunity.d.ts +0 -1
  61. package/dist/types/ImageUpload.d.ts +9 -0
  62. package/dist/types/ImageUploadId.d.ts +1 -0
  63. package/dist/types/InstanceBlockView.d.ts +8 -0
  64. package/dist/types/ListCommentReports.d.ts +0 -1
  65. package/dist/types/ListCommunities.d.ts +0 -1
  66. package/dist/types/ListPostReports.d.ts +0 -1
  67. package/dist/types/ListPrivateMessageReports.d.ts +0 -1
  68. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  69. package/dist/types/ListingType.d.ts +1 -1
  70. package/dist/types/LocalSiteRateLimit.d.ts +2 -0
  71. package/dist/types/LocalUser.d.ts +8 -5
  72. package/dist/types/LockPost.d.ts +0 -1
  73. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
  74. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
  75. package/dist/types/MarkPostAsRead.d.ts +1 -1
  76. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
  77. package/dist/types/MyUserInfo.d.ts +2 -0
  78. package/dist/types/PaginationCursor.d.ts +1 -0
  79. package/dist/types/PasswordResetResponse.d.ts +1 -1
  80. package/dist/types/Person.d.ts +0 -2
  81. package/dist/types/PersonSortType.d.ts +1 -0
  82. package/dist/types/PostAggregates.d.ts +0 -6
  83. package/dist/types/PostListingMode.d.ts +1 -0
  84. package/dist/types/PurgeComment.d.ts +0 -1
  85. package/dist/types/PurgeCommunity.d.ts +0 -1
  86. package/dist/types/PurgePerson.d.ts +0 -1
  87. package/dist/types/PurgePost.d.ts +0 -1
  88. package/dist/types/RemoveComment.d.ts +0 -1
  89. package/dist/types/RemoveCommunity.d.ts +0 -1
  90. package/dist/types/RemovePost.d.ts +0 -1
  91. package/dist/types/ResolveCommentReport.d.ts +0 -1
  92. package/dist/types/ResolveObject.d.ts +0 -1
  93. package/dist/types/ResolvePostReport.d.ts +0 -1
  94. package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
  95. package/dist/types/SaveComment.d.ts +0 -1
  96. package/dist/types/SavePost.d.ts +0 -1
  97. package/dist/types/SaveUserSettings.d.ts +2 -2
  98. package/dist/types/Search.d.ts +0 -1
  99. package/dist/types/SortType.d.ts +1 -1
  100. package/dist/types/SuccessResponse.d.ts +3 -0
  101. package/dist/types/TransferCommunity.d.ts +0 -1
  102. package/dist/types/UpdateTotp.d.ts +4 -0
  103. package/dist/types/UpdateTotpResponse.d.ts +3 -0
  104. package/dist/types/VerifyEmailResponse.d.ts +1 -1
  105. package/dist/types/others.d.ts +8 -0
  106. package/package.json +1 -1
  107. package/dist/types/CommunityJoin.d.ts +0 -4
  108. package/dist/types/CommunityJoinResponse.d.ts +0 -3
  109. package/dist/types/GetBannedPersons.d.ts +0 -3
  110. package/dist/types/GetCaptcha.d.ts +0 -3
  111. package/dist/types/GetFederatedInstances.d.ts +0 -3
  112. package/dist/types/GetSite.d.ts +0 -3
  113. package/dist/types/GetUnreadCount.d.ts +0 -3
  114. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
  115. package/dist/types/LeaveAdmin.d.ts +0 -3
  116. package/dist/types/MarkAllAsRead.d.ts +0 -3
  117. package/dist/types/ModJoin.d.ts +0 -4
  118. package/dist/types/ModJoinResponse.d.ts +0 -3
  119. package/dist/types/ModJoinResponse.js +0 -3
  120. package/dist/types/PostJoin.d.ts +0 -4
  121. package/dist/types/PostJoinResponse.d.ts +0 -3
  122. package/dist/types/PostJoinResponse.js +0 -3
  123. package/dist/types/PostOrCommentId.d.ts +0 -7
  124. package/dist/types/PostOrCommentId.js +0 -2
  125. package/dist/types/UserJoin.d.ts +0 -3
  126. package/dist/types/UserJoin.js +0 -3
  127. package/dist/types/UserJoinResponse.d.ts +0 -3
  128. package/dist/types/UserJoinResponse.js +0 -3
  129. /package/dist/types/{CommunityJoin.js → BlockInstance.js} +0 -0
  130. /package/dist/types/{CommunityJoinResponse.js → BlockInstanceResponse.js} +0 -0
  131. /package/dist/types/{GetBannedPersons.js → GenerateTotpSecretResponse.js} +0 -0
  132. /package/dist/types/{ModJoin.js → ImageUpload.js} +0 -0
  133. /package/dist/types/{GetCaptcha.js → ImageUploadId.js} +0 -0
  134. /package/dist/types/{PostJoin.js → InstanceBlockView.js} +0 -0
  135. /package/dist/types/{GetFederatedInstances.js → PaginationCursor.js} +0 -0
  136. /package/dist/types/{GetSite.js → PersonSortType.js} +0 -0
  137. /package/dist/types/{GetUnreadCount.js → PostListingMode.js} +0 -0
  138. /package/dist/types/{GetUnreadRegistrationApplicationCount.js → SuccessResponse.js} +0 -0
  139. /package/dist/types/{LeaveAdmin.js → UpdateTotp.js} +0 -0
  140. /package/dist/types/{MarkAllAsRead.js → UpdateTotpResponse.js} +0 -0
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CreateCommentLike {
3
3
  comment_id: CommentId;
4
4
  score: number;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CreateCommentReport {
3
3
  comment_id: CommentId;
4
4
  reason: string;
5
- auth: string;
6
5
  }
@@ -8,5 +8,4 @@ export interface CreateCommunity {
8
8
  nsfw?: boolean;
9
9
  posting_restricted_to_mods?: boolean;
10
10
  discussion_languages?: Array<LanguageId>;
11
- auth: string;
12
11
  }
@@ -4,5 +4,4 @@ export interface CreateCustomEmoji {
4
4
  image_url: string;
5
5
  alt_text: string;
6
6
  keywords: Array<string>;
7
- auth: string;
8
7
  }
@@ -8,5 +8,4 @@ export interface CreatePost {
8
8
  honeypot?: string;
9
9
  nsfw?: boolean;
10
10
  language_id?: LanguageId;
11
- auth: string;
12
11
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface CreatePostLike {
3
3
  post_id: PostId;
4
4
  score: number;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface CreatePostReport {
3
3
  post_id: PostId;
4
4
  reason: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PersonId } from "./PersonId";
2
2
  export interface CreatePrivateMessage {
3
3
  content: string;
4
4
  recipient_id: PersonId;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface CreatePrivateMessageReport {
3
3
  private_message_id: PrivateMessageId;
4
4
  reason: string;
5
- auth: string;
6
5
  }
@@ -41,5 +41,4 @@ export interface CreateSite {
41
41
  blocked_instances?: Array<string>;
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
- auth: string;
45
44
  }
@@ -1,4 +1,4 @@
1
1
  export interface DeleteAccount {
2
2
  password: string;
3
- auth: string;
3
+ delete_content: boolean;
4
4
  }
@@ -1 +1 @@
1
- export type DeleteAccountResponse = null;
1
+ export type DeleteAccountResponse = Record<string, never>;
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface DeleteComment {
3
3
  comment_id: CommentId;
4
4
  deleted: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface DeleteCommunity {
3
3
  community_id: CommunityId;
4
4
  deleted: boolean;
5
- auth: string;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import type { CustomEmojiId } from "./CustomEmojiId";
2
2
  export interface DeleteCustomEmoji {
3
3
  id: CustomEmojiId;
4
- auth: string;
5
4
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface DeletePost {
3
3
  post_id: PostId;
4
4
  deleted: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface DeletePrivateMessage {
3
3
  private_message_id: PrivateMessageId;
4
4
  deleted: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface DistinguishComment {
3
3
  comment_id: CommentId;
4
4
  distinguished: boolean;
5
- auth: string;
6
5
  }
@@ -4,6 +4,4 @@ export interface EditComment {
4
4
  comment_id: CommentId;
5
5
  content?: string;
6
6
  language_id?: LanguageId;
7
- form_id?: string;
8
- auth: string;
9
7
  }
@@ -9,5 +9,4 @@ export interface EditCommunity {
9
9
  nsfw?: boolean;
10
10
  posting_restricted_to_mods?: boolean;
11
11
  discussion_languages?: Array<LanguageId>;
12
- auth: string;
13
12
  }
@@ -5,5 +5,4 @@ export interface EditCustomEmoji {
5
5
  image_url: string;
6
6
  alt_text: string;
7
7
  keywords: Array<string>;
8
- auth: string;
9
8
  }
@@ -7,5 +7,4 @@ export interface EditPost {
7
7
  body?: string;
8
8
  nsfw?: boolean;
9
9
  language_id?: LanguageId;
10
- auth: string;
11
10
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface EditPrivateMessage {
3
3
  private_message_id: PrivateMessageId;
4
4
  content: string;
5
- auth: string;
6
5
  }
@@ -42,5 +42,4 @@ export interface EditSite {
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
44
  reports_email_admins?: boolean;
45
- auth: string;
46
45
  }
@@ -4,5 +4,4 @@ export interface FeaturePost {
4
4
  post_id: PostId;
5
5
  featured: boolean;
6
6
  feature_type: PostFeatureType;
7
- auth: string;
8
7
  }
@@ -2,5 +2,4 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface FollowCommunity {
3
3
  community_id: CommunityId;
4
4
  follow: boolean;
5
- auth: string;
6
5
  }
@@ -0,0 +1,3 @@
1
+ export interface GenerateTotpSecretResponse {
2
+ totp_secret_url: string;
3
+ }
@@ -1,5 +1,4 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  export interface GetComment {
3
3
  id: CommentId;
4
- auth?: string;
5
4
  }
@@ -14,5 +14,6 @@ export interface GetComments {
14
14
  post_id?: PostId;
15
15
  parent_id?: CommentId;
16
16
  saved_only?: boolean;
17
- auth?: string;
17
+ liked_only?: boolean;
18
+ disliked_only?: boolean;
18
19
  }
@@ -2,5 +2,4 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface GetCommunity {
3
3
  id?: CommunityId;
4
4
  name?: string;
5
- auth?: string;
6
5
  }
@@ -8,5 +8,4 @@ export interface GetModlog {
8
8
  limit?: number;
9
9
  type_?: ModlogActionType;
10
10
  other_person_id?: PersonId;
11
- auth?: string;
12
11
  }
@@ -9,5 +9,4 @@ export interface GetPersonDetails {
9
9
  limit?: number;
10
10
  community_id?: CommunityId;
11
11
  saved_only?: boolean;
12
- auth?: string;
13
12
  }
@@ -4,5 +4,4 @@ export interface GetPersonMentions {
4
4
  page?: number;
5
5
  limit?: number;
6
6
  unread_only?: boolean;
7
- auth: string;
8
7
  }
@@ -3,5 +3,4 @@ import type { PostId } from "./PostId";
3
3
  export interface GetPost {
4
4
  id?: PostId;
5
5
  comment_id?: CommentId;
6
- auth?: string;
7
6
  }
@@ -1,5 +1,6 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { ListingType } from "./ListingType";
3
+ import type { PaginationCursor } from "./PaginationCursor";
3
4
  import type { SortType } from "./SortType";
4
5
  export interface GetPosts {
5
6
  type_?: ListingType;
@@ -9,6 +10,7 @@ export interface GetPosts {
9
10
  community_id?: CommunityId;
10
11
  community_name?: string;
11
12
  saved_only?: boolean;
12
- moderator_view?: boolean;
13
- auth?: string;
13
+ liked_only?: boolean;
14
+ disliked_only?: boolean;
15
+ page_cursor?: PaginationCursor;
14
16
  }
@@ -1,4 +1,6 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  import type { PostView } from "./PostView";
2
3
  export interface GetPostsResponse {
3
4
  posts: Array<PostView>;
5
+ next_page?: PaginationCursor;
4
6
  }
@@ -1,6 +1,7 @@
1
+ import type { PersonId } from "./PersonId";
1
2
  export interface GetPrivateMessages {
2
3
  unread_only?: boolean;
3
4
  page?: number;
4
5
  limit?: number;
5
- auth: string;
6
+ creator_id?: PersonId;
6
7
  }
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,5 +4,4 @@ export interface GetReplies {
4
4
  page?: number;
5
5
  limit?: number;
6
6
  unread_only?: boolean;
7
- auth: string;
8
7
  }
@@ -1,5 +1,4 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface GetReportCount {
3
3
  community_id?: CommunityId;
4
- auth: string;
5
4
  }
@@ -3,5 +3,4 @@ export interface HideCommunity {
3
3
  community_id: CommunityId;
4
4
  hidden: boolean;
5
5
  reason?: string;
6
- auth: string;
7
6
  }
@@ -0,0 +1,9 @@
1
+ import type { ImageUploadId } from "./ImageUploadId";
2
+ import type { LocalUserId } from "./LocalUserId";
3
+ export interface ImageUpload {
4
+ id: ImageUploadId;
5
+ local_user_id: LocalUserId;
6
+ pictrs_alias: string;
7
+ pictrs_delete_token: string;
8
+ published: string;
9
+ }
@@ -0,0 +1 @@
1
+ export type ImageUploadId = number;
@@ -0,0 +1,8 @@
1
+ import type { Instance } from "./Instance";
2
+ import type { Person } from "./Person";
3
+ import type { Site } from "./Site";
4
+ export interface InstanceBlockView {
5
+ person: Person;
6
+ instance: Instance;
7
+ site?: Site;
8
+ }
@@ -4,5 +4,4 @@ export interface ListCommentReports {
4
4
  limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
- auth: string;
8
7
  }
@@ -6,5 +6,4 @@ export interface ListCommunities {
6
6
  show_nsfw?: boolean;
7
7
  page?: number;
8
8
  limit?: number;
9
- auth?: string;
10
9
  }
@@ -4,5 +4,4 @@ export interface ListPostReports {
4
4
  limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
- auth: string;
8
7
  }
@@ -2,5 +2,4 @@ export interface ListPrivateMessageReports {
2
2
  page?: number;
3
3
  limit?: number;
4
4
  unresolved_only?: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ export interface ListRegistrationApplications {
2
2
  unread_only?: boolean;
3
3
  page?: number;
4
4
  limit?: number;
5
- auth: string;
6
5
  }
@@ -1 +1 @@
1
- export type ListingType = "All" | "Local" | "Subscribed";
1
+ export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";
@@ -16,4 +16,6 @@ export interface LocalSiteRateLimit {
16
16
  search_per_second: number;
17
17
  published: string;
18
18
  updated?: string;
19
+ import_user_settings: number;
20
+ import_user_settings_per_second: number;
19
21
  }
@@ -1,27 +1,30 @@
1
1
  import type { ListingType } from "./ListingType";
2
2
  import type { LocalUserId } from "./LocalUserId";
3
3
  import type { PersonId } from "./PersonId";
4
+ import type { PostListingMode } from "./PostListingMode";
4
5
  import type { SortType } from "./SortType";
5
6
  export interface LocalUser {
6
7
  id: LocalUserId;
7
8
  person_id: PersonId;
8
9
  email?: string;
9
10
  show_nsfw: boolean;
10
- blur_nsfw: boolean;
11
- auto_expand: boolean;
12
11
  theme: string;
13
12
  default_sort_type: SortType;
14
13
  default_listing_type: ListingType;
15
14
  interface_language: string;
16
15
  show_avatars: boolean;
17
16
  send_notifications_to_email: boolean;
18
- validator_time: string;
19
17
  show_scores: boolean;
20
18
  show_bot_accounts: boolean;
21
19
  show_read_posts: boolean;
22
- show_new_post_notifs: boolean;
23
20
  email_verified: boolean;
24
21
  accepted_application: boolean;
25
- totp_2fa_url?: string;
26
22
  open_links_in_new_tab: boolean;
23
+ blur_nsfw: boolean;
24
+ auto_expand: boolean;
25
+ infinite_scroll_enabled: boolean;
26
+ admin: boolean;
27
+ post_listing_mode: PostListingMode;
28
+ totp_2fa_enabled: boolean;
29
+ enable_keyboard_navigation: boolean;
27
30
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface LockPost {
3
3
  post_id: PostId;
4
4
  locked: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommentReplyId } from "./CommentReplyId";
2
2
  export interface MarkCommentReplyAsRead {
3
3
  comment_reply_id: CommentReplyId;
4
4
  read: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PersonMentionId } from "./PersonMentionId";
2
2
  export interface MarkPersonMentionAsRead {
3
3
  person_mention_id: PersonMentionId;
4
4
  read: boolean;
5
- auth: string;
6
5
  }
@@ -1,6 +1,6 @@
1
1
  import type { PostId } from "./PostId";
2
2
  export interface MarkPostAsRead {
3
3
  post_id: PostId;
4
+ post_ids: Array<PostId>;
4
5
  read: boolean;
5
- auth: string;
6
6
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface MarkPrivateMessageAsRead {
3
3
  private_message_id: PrivateMessageId;
4
4
  read: boolean;
5
- auth: string;
6
5
  }
@@ -1,6 +1,7 @@
1
1
  import type { CommunityBlockView } from "./CommunityBlockView";
2
2
  import type { CommunityFollowerView } from "./CommunityFollowerView";
3
3
  import type { CommunityModeratorView } from "./CommunityModeratorView";
4
+ import type { InstanceBlockView } from "./InstanceBlockView";
4
5
  import type { LanguageId } from "./LanguageId";
5
6
  import type { LocalUserView } from "./LocalUserView";
6
7
  import type { PersonBlockView } from "./PersonBlockView";
@@ -9,6 +10,7 @@ export interface MyUserInfo {
9
10
  follows: Array<CommunityFollowerView>;
10
11
  moderates: Array<CommunityModeratorView>;
11
12
  community_blocks: Array<CommunityBlockView>;
13
+ instance_blocks: Array<InstanceBlockView>;
12
14
  person_blocks: Array<PersonBlockView>;
13
15
  discussion_languages: Array<LanguageId>;
14
16
  }
@@ -0,0 +1 @@
1
+ export type PaginationCursor = string;
@@ -1 +1 @@
1
- export type PasswordResetResponse = null;
1
+ export type PasswordResetResponse = Record<string, never>;
@@ -13,9 +13,7 @@ export interface Person {
13
13
  local: boolean;
14
14
  banner?: string;
15
15
  deleted: boolean;
16
- inbox_url: string;
17
16
  matrix_user_id?: string;
18
- admin: boolean;
19
17
  bot_account: boolean;
20
18
  ban_expires?: string;
21
19
  instance_id: InstanceId;
@@ -0,0 +1 @@
1
+ export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
@@ -7,10 +7,4 @@ export interface PostAggregates {
7
7
  upvotes: number;
8
8
  downvotes: number;
9
9
  published: string;
10
- newest_comment_time_necro: string;
11
- newest_comment_time: string;
12
- featured_community: boolean;
13
- featured_local: boolean;
14
- hot_rank: number;
15
- hot_rank_active: number;
16
10
  }
@@ -0,0 +1 @@
1
+ export type PostListingMode = "List" | "Card" | "SmallCard";
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface PurgeComment {
3
3
  comment_id: CommentId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface PurgeCommunity {
3
3
  community_id: CommunityId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PersonId } from "./PersonId";
2
2
  export interface PurgePerson {
3
3
  person_id: PersonId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface PurgePost {
3
3
  post_id: PostId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -3,5 +3,4 @@ export interface RemoveComment {
3
3
  comment_id: CommentId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- auth: string;
7
6
  }
@@ -4,5 +4,4 @@ export interface RemoveCommunity {
4
4
  removed: boolean;
5
5
  reason?: string;
6
6
  expires?: number;
7
- auth: string;
8
7
  }
@@ -3,5 +3,4 @@ export interface RemovePost {
3
3
  post_id: PostId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- auth: string;
7
6
  }
@@ -2,5 +2,4 @@ import type { CommentReportId } from "./CommentReportId";
2
2
  export interface ResolveCommentReport {
3
3
  report_id: CommentReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -1,4 +1,3 @@
1
1
  export interface ResolveObject {
2
2
  q: string;
3
- auth: string;
4
3
  }
@@ -2,5 +2,4 @@ import type { PostReportId } from "./PostReportId";
2
2
  export interface ResolvePostReport {
3
3
  report_id: PostReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageReportId } from "./PrivateMessageReportId";
2
2
  export interface ResolvePrivateMessageReport {
3
3
  report_id: PrivateMessageReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface SaveComment {
3
3
  comment_id: CommentId;
4
4
  save: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface SavePost {
3
3
  post_id: PostId;
4
4
  save: boolean;
5
- auth: string;
6
5
  }
@@ -23,7 +23,7 @@ export interface SaveUserSettings {
23
23
  show_read_posts?: boolean;
24
24
  show_new_post_notifs?: boolean;
25
25
  discussion_languages?: Array<LanguageId>;
26
- generate_totp_2fa?: boolean;
27
- auth: string;
28
26
  open_links_in_new_tab?: boolean;
27
+ infinite_scroll_enabled?: boolean;
28
+ enable_keyboard_navigation?: boolean;
29
29
  }
@@ -13,5 +13,4 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
- auth?: string;
17
16
  }
@@ -1 +1 @@
1
- export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths";
1
+ export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled";
@@ -0,0 +1,3 @@
1
+ export interface SuccessResponse {
2
+ success: boolean;
3
+ }