lemmy-js-client 1.0.0-api-updates-4.1 → 1.0.0-api-updates-6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/http.d.ts +43 -46
  2. package/dist/http.js +25 -25
  3. package/dist/index.d.ts +8 -79
  4. package/dist/index.js +3 -0
  5. package/dist/types/AdminListUsers.d.ts +0 -1
  6. package/dist/types/GetComments.d.ts +0 -1
  7. package/dist/types/GetFederatedInstances.d.ts +0 -1
  8. package/dist/types/GetModlog.d.ts +2 -3
  9. package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
  10. package/dist/types/GetPosts.d.ts +1 -1
  11. package/dist/types/GetSiteResponse.d.ts +6 -0
  12. package/dist/types/ListCommentLikes.d.ts +0 -1
  13. package/dist/types/ListCommunities.d.ts +0 -1
  14. package/dist/types/ListCommunityPendingFollows.d.ts +0 -1
  15. package/dist/types/ListMedia.d.ts +0 -1
  16. package/dist/types/ListMultiCommunities.d.ts +12 -1
  17. package/dist/types/ListNotifications.d.ts +0 -1
  18. package/dist/types/ListPersonContent.d.ts +0 -1
  19. package/dist/types/ListPersonHidden.d.ts +0 -1
  20. package/dist/types/ListPersonLiked.d.ts +0 -1
  21. package/dist/types/ListPersonRead.d.ts +0 -1
  22. package/dist/types/ListPersonSaved.d.ts +0 -1
  23. package/dist/types/ListPostLikes.d.ts +0 -1
  24. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  25. package/dist/types/ListReports.d.ts +0 -1
  26. package/dist/types/ListTaglines.d.ts +0 -1
  27. package/dist/types/Modlog.d.ts +10 -0
  28. package/dist/types/ModlogId.d.ts +1 -0
  29. package/dist/types/ModlogKind.d.ts +4 -0
  30. package/dist/types/ModlogView.d.ts +15 -0
  31. package/dist/types/MultiCommunity.d.ts +3 -0
  32. package/dist/types/MultiCommunityListingType.d.ts +4 -0
  33. package/dist/types/MultiCommunitySortType.d.ts +1 -0
  34. package/dist/types/MyUserInfo.d.ts +2 -0
  35. package/dist/types/Notification.d.ts +2 -20
  36. package/dist/types/NotificationData.d.ts +3 -30
  37. package/dist/types/NotificationDataType.d.ts +1 -1
  38. package/dist/types/PagedResponse.d.ts +11 -0
  39. package/dist/types/PaginationCursor.d.ts +5 -1
  40. package/dist/types/PluginMetadata.d.ts +2 -2
  41. package/dist/types/RegistrationApplication.d.ts +1 -0
  42. package/dist/types/Search.d.ts +4 -1
  43. package/dist/types/SearchResponse.d.ts +11 -1
  44. package/package.json +4 -4
  45. package/dist/types/AdminAdd.d.ts +0 -12
  46. package/dist/types/AdminAddId.d.ts +0 -1
  47. package/dist/types/AdminAddView.d.ts +0 -10
  48. package/dist/types/AdminAllowInstance.d.ts +0 -11
  49. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  50. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  51. package/dist/types/AdminAllowInstanceView.js +0 -2
  52. package/dist/types/AdminBan.d.ts +0 -16
  53. package/dist/types/AdminBan.js +0 -2
  54. package/dist/types/AdminBanId.d.ts +0 -1
  55. package/dist/types/AdminBanView.d.ts +0 -10
  56. package/dist/types/AdminBanView.js +0 -2
  57. package/dist/types/AdminBlockInstance.d.ts +0 -12
  58. package/dist/types/AdminBlockInstance.js +0 -2
  59. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  60. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  61. package/dist/types/AdminBlockInstanceView.js +0 -2
  62. package/dist/types/AdminListUsersResponse.d.ts +0 -10
  63. package/dist/types/AdminListUsersResponse.js +0 -2
  64. package/dist/types/AdminPurgeComment.d.ts +0 -13
  65. package/dist/types/AdminPurgeComment.js +0 -2
  66. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  67. package/dist/types/AdminPurgeCommentId.js +0 -3
  68. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  69. package/dist/types/AdminPurgeCommentView.js +0 -2
  70. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  71. package/dist/types/AdminPurgeCommunity.js +0 -2
  72. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  73. package/dist/types/AdminPurgeCommunityId.js +0 -3
  74. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  75. package/dist/types/AdminPurgeCommunityView.js +0 -2
  76. package/dist/types/AdminPurgePerson.d.ts +0 -11
  77. package/dist/types/AdminPurgePerson.js +0 -2
  78. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  79. package/dist/types/AdminPurgePersonId.js +0 -3
  80. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  81. package/dist/types/AdminPurgePersonView.js +0 -2
  82. package/dist/types/AdminPurgePost.d.ts +0 -13
  83. package/dist/types/AdminPurgePost.js +0 -2
  84. package/dist/types/AdminPurgePostId.d.ts +0 -1
  85. package/dist/types/AdminPurgePostId.js +0 -3
  86. package/dist/types/AdminPurgePostView.d.ts +0 -11
  87. package/dist/types/AdminPurgePostView.js +0 -2
  88. package/dist/types/AdminRemoveCommunity.d.ts +0 -14
  89. package/dist/types/AdminRemoveCommunity.js +0 -2
  90. package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
  91. package/dist/types/AdminRemoveCommunityId.js +0 -3
  92. package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
  93. package/dist/types/AdminRemoveCommunityView.js +0 -2
  94. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  95. package/dist/types/BanFromCommunityResponse.js +0 -2
  96. package/dist/types/GetCommentsResponse.d.ts +0 -10
  97. package/dist/types/GetCommentsResponse.js +0 -2
  98. package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
  99. package/dist/types/GetCommentsSlimResponse.js +0 -2
  100. package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
  101. package/dist/types/GetFederatedInstancesResponse.js +0 -2
  102. package/dist/types/GetModlogResponse.d.ts +0 -13
  103. package/dist/types/GetModlogResponse.js +0 -2
  104. package/dist/types/GetPostsResponse.d.ts +0 -13
  105. package/dist/types/GetPostsResponse.js +0 -2
  106. package/dist/types/ListCommentLikesResponse.d.ts +0 -13
  107. package/dist/types/ListCommentLikesResponse.js +0 -2
  108. package/dist/types/ListCommunitiesResponse.d.ts +0 -13
  109. package/dist/types/ListCommunitiesResponse.js +0 -2
  110. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
  111. package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
  112. package/dist/types/ListMediaResponse.d.ts +0 -10
  113. package/dist/types/ListMediaResponse.js +0 -2
  114. package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
  115. package/dist/types/ListMultiCommunitiesResponse.js +0 -2
  116. package/dist/types/ListNotificationsResponse.d.ts +0 -13
  117. package/dist/types/ListNotificationsResponse.js +0 -2
  118. package/dist/types/ListPersonContentResponse.d.ts +0 -13
  119. package/dist/types/ListPersonContentResponse.js +0 -2
  120. package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
  121. package/dist/types/ListPersonHiddenResponse.js +0 -2
  122. package/dist/types/ListPersonLikedResponse.d.ts +0 -13
  123. package/dist/types/ListPersonLikedResponse.js +0 -2
  124. package/dist/types/ListPersonReadResponse.d.ts +0 -13
  125. package/dist/types/ListPersonReadResponse.js +0 -2
  126. package/dist/types/ListPersonSavedResponse.d.ts +0 -13
  127. package/dist/types/ListPersonSavedResponse.js +0 -2
  128. package/dist/types/ListPostLikesResponse.d.ts +0 -13
  129. package/dist/types/ListPostLikesResponse.js +0 -2
  130. package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
  131. package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
  132. package/dist/types/ListReportsResponse.d.ts +0 -13
  133. package/dist/types/ListReportsResponse.js +0 -2
  134. package/dist/types/ListTaglinesResponse.d.ts +0 -13
  135. package/dist/types/ListTaglinesResponse.js +0 -2
  136. package/dist/types/ModAddToCommunity.d.ts +0 -14
  137. package/dist/types/ModAddToCommunity.js +0 -2
  138. package/dist/types/ModAddToCommunityId.d.ts +0 -1
  139. package/dist/types/ModAddToCommunityId.js +0 -3
  140. package/dist/types/ModAddToCommunityView.d.ts +0 -12
  141. package/dist/types/ModAddToCommunityView.js +0 -2
  142. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  143. package/dist/types/ModBanFromCommunity.js +0 -2
  144. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  145. package/dist/types/ModBanFromCommunityId.js +0 -3
  146. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  147. package/dist/types/ModBanFromCommunityView.js +0 -2
  148. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
  149. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  150. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  151. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  152. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  153. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  154. package/dist/types/ModFeaturePost.d.ts +0 -14
  155. package/dist/types/ModFeaturePost.js +0 -2
  156. package/dist/types/ModFeaturePostId.d.ts +0 -1
  157. package/dist/types/ModFeaturePostId.js +0 -3
  158. package/dist/types/ModFeaturePostView.d.ts +0 -14
  159. package/dist/types/ModFeaturePostView.js +0 -2
  160. package/dist/types/ModLockComment.d.ts +0 -14
  161. package/dist/types/ModLockComment.js +0 -2
  162. package/dist/types/ModLockCommentId.d.ts +0 -1
  163. package/dist/types/ModLockCommentId.js +0 -3
  164. package/dist/types/ModLockCommentView.d.ts +0 -16
  165. package/dist/types/ModLockCommentView.js +0 -2
  166. package/dist/types/ModLockPost.d.ts +0 -14
  167. package/dist/types/ModLockPost.js +0 -2
  168. package/dist/types/ModLockPostId.d.ts +0 -1
  169. package/dist/types/ModLockPostId.js +0 -3
  170. package/dist/types/ModLockPostView.d.ts +0 -14
  171. package/dist/types/ModLockPostView.js +0 -2
  172. package/dist/types/ModRemoveComment.d.ts +0 -14
  173. package/dist/types/ModRemoveComment.js +0 -2
  174. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  175. package/dist/types/ModRemoveCommentId.js +0 -3
  176. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  177. package/dist/types/ModRemoveCommentView.js +0 -2
  178. package/dist/types/ModRemovePost.d.ts +0 -14
  179. package/dist/types/ModRemovePost.js +0 -2
  180. package/dist/types/ModRemovePostId.d.ts +0 -1
  181. package/dist/types/ModRemovePostId.js +0 -3
  182. package/dist/types/ModRemovePostView.d.ts +0 -14
  183. package/dist/types/ModRemovePostView.js +0 -2
  184. package/dist/types/ModTransferCommunity.d.ts +0 -13
  185. package/dist/types/ModTransferCommunity.js +0 -2
  186. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  187. package/dist/types/ModTransferCommunityId.js +0 -3
  188. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  189. package/dist/types/ModTransferCommunityView.js +0 -2
  190. package/dist/types/ModlogActionType.d.ts +0 -4
  191. package/dist/types/ModlogActionType.js +0 -3
  192. package/dist/types/ModlogCombinedView.d.ts +0 -55
  193. package/dist/types/ModlogCombinedView.js +0 -2
  194. /package/dist/types/{AdminAdd.js → Modlog.js} +0 -0
  195. /package/dist/types/{AdminAddId.js → ModlogId.js} +0 -0
  196. /package/dist/types/{AdminAllowInstanceId.js → ModlogKind.js} +0 -0
  197. /package/dist/types/{AdminAddView.js → ModlogView.js} +0 -0
  198. /package/dist/types/{AdminBanId.js → MultiCommunityListingType.js} +0 -0
  199. /package/dist/types/{AdminBlockInstanceId.js → MultiCommunitySortType.js} +0 -0
  200. /package/dist/types/{AdminAllowInstance.js → PagedResponse.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-api-updates-4.1",
4
+ "version": "1.0.0-api-updates-6.0",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^9.20.0",
27
27
  "@redocly/cli": "^2.0.0",
28
- "@types/node": "^22.7.4",
28
+ "@types/node": "^24.0.0",
29
29
  "@typescript-eslint/eslint-plugin": "^8.7.0",
30
30
  "@typescript-eslint/parser": "^8.7.0",
31
31
  "ajv": "^8.17.1",
@@ -38,13 +38,13 @@
38
38
  "prettier-plugin-import-sort": "^0.0.7",
39
39
  "prettier-plugin-organize-imports": "^4.0.0",
40
40
  "prettier-plugin-packagejson": "^2.5.1",
41
- "sortpack": "^3.0.0",
41
+ "sortpack": "^4.0.0",
42
42
  "tsoa": "^6.6.0",
43
43
  "typedoc": "^0.28.0",
44
44
  "typescript": "^5.5.4",
45
45
  "typescript-eslint": "^8.7.0"
46
46
  },
47
- "packageManager": "pnpm@10.18.3",
47
+ "packageManager": "pnpm@10.24.0",
48
48
  "types": "./dist/index.d.ts",
49
49
  "lint-staged": {
50
50
  "*.{ts,tsx,js}": [
@@ -1,12 +0,0 @@
1
- import type { AdminAddId } from "./AdminAddId";
2
- import type { PersonId } from "./PersonId";
3
- /**
4
- * When someone is added as a site admin.
5
- */
6
- export type AdminAdd = {
7
- id: AdminAddId;
8
- mod_person_id: PersonId;
9
- other_person_id: PersonId;
10
- removed: boolean;
11
- published_at: string;
12
- };
@@ -1 +0,0 @@
1
- export type AdminAddId = number;
@@ -1,10 +0,0 @@
1
- import type { AdminAdd } from "./AdminAdd";
2
- import type { Person } from "./Person";
3
- /**
4
- * When someone is added as a site moderator.
5
- */
6
- export type AdminAddView = {
7
- admin_add: AdminAdd;
8
- moderator?: Person;
9
- other_person: Person;
10
- };
@@ -1,11 +0,0 @@
1
- import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
- export type AdminAllowInstance = {
5
- id: AdminAllowInstanceId;
6
- instance_id: InstanceId;
7
- admin_person_id: PersonId;
8
- allowed: boolean;
9
- reason: string;
10
- published_at: string;
11
- };
@@ -1 +0,0 @@
1
- export type AdminAllowInstanceId = number;
@@ -1,11 +0,0 @@
1
- import type { AdminAllowInstance } from "./AdminAllowInstance";
2
- import type { Instance } from "./Instance";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminAllowInstanceView = {
8
- admin_allow_instance: AdminAllowInstance;
9
- instance: Instance;
10
- admin?: Person;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import type { AdminBanId } from "./AdminBanId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When someone is banned from the site.
6
- */
7
- export type AdminBan = {
8
- id: AdminBanId;
9
- mod_person_id: PersonId;
10
- other_person_id: PersonId;
11
- reason: string;
12
- banned: boolean;
13
- expires_at?: string;
14
- published_at: string;
15
- instance_id: InstanceId;
16
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminBanId = number;
@@ -1,10 +0,0 @@
1
- import type { AdminBan } from "./AdminBan";
2
- import type { Person } from "./Person";
3
- /**
4
- * When someone is banned from the site.
5
- */
6
- export type AdminBanView = {
7
- admin_ban: AdminBan;
8
- moderator?: Person;
9
- other_person: Person;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
- export type AdminBlockInstance = {
5
- id: AdminBlockInstanceId;
6
- instance_id: InstanceId;
7
- admin_person_id: PersonId;
8
- blocked: boolean;
9
- reason: string;
10
- expires_at?: string;
11
- published_at: string;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminBlockInstanceId = number;
@@ -1,11 +0,0 @@
1
- import type { AdminBlockInstance } from "./AdminBlockInstance";
2
- import type { Instance } from "./Instance";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminBlockInstanceView = {
8
- admin_block_instance: AdminBlockInstance;
9
- instance: Instance;
10
- admin?: Person;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { LocalUserView } from "./LocalUserView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- export type AdminListUsersResponse = {
4
- users: Array<LocalUserView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
2
- import type { PersonId } from "./PersonId";
3
- import type { PostId } from "./PostId";
4
- /**
5
- * When an admin purges a comment.
6
- */
7
- export type AdminPurgeComment = {
8
- id: AdminPurgeCommentId;
9
- admin_person_id: PersonId;
10
- post_id: PostId;
11
- reason: string;
12
- published_at: string;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgeCommentId = number;
@@ -1,3 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgeComment } from "./AdminPurgeComment";
2
- import type { Person } from "./Person";
3
- import type { Post } from "./Post";
4
- /**
5
- * When an admin purges a comment.
6
- */
7
- export type AdminPurgeCommentView = {
8
- admin_purge_comment: AdminPurgeComment;
9
- admin?: Person;
10
- post: Post;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
2
- import type { PersonId } from "./PersonId";
3
- /**
4
- * When an admin purges a community.
5
- */
6
- export type AdminPurgeCommunity = {
7
- id: AdminPurgeCommunityId;
8
- admin_person_id: PersonId;
9
- reason: string;
10
- published_at: string;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgeCommunityId = number;
@@ -1,3 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { AdminPurgeCommunity } from "./AdminPurgeCommunity";
2
- import type { Person } from "./Person";
3
- /**
4
- * When an admin purges a community.
5
- */
6
- export type AdminPurgeCommunityView = {
7
- admin_purge_community: AdminPurgeCommunity;
8
- admin?: Person;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgePersonId } from "./AdminPurgePersonId";
2
- import type { PersonId } from "./PersonId";
3
- /**
4
- * When an admin purges a person.
5
- */
6
- export type AdminPurgePerson = {
7
- id: AdminPurgePersonId;
8
- admin_person_id: PersonId;
9
- reason: string;
10
- published_at: string;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgePersonId = number;
@@ -1,3 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { AdminPurgePerson } from "./AdminPurgePerson";
2
- import type { Person } from "./Person";
3
- /**
4
- * When an admin purges a person.
5
- */
6
- export type AdminPurgePersonView = {
7
- admin_purge_person: AdminPurgePerson;
8
- admin?: Person;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { AdminPurgePostId } from "./AdminPurgePostId";
2
- import type { CommunityId } from "./CommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminPurgePost = {
8
- id: AdminPurgePostId;
9
- admin_person_id: PersonId;
10
- community_id: CommunityId;
11
- reason: string;
12
- published_at: string;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminPurgePostId = number;
@@ -1,3 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminPurgePost } from "./AdminPurgePost";
2
- import type { Community } from "./Community";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminPurgePostView = {
8
- admin_purge_post: AdminPurgePost;
9
- admin?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
2
- import type { CommunityId } from "./CommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a moderator removes a community.
6
- */
7
- export type AdminRemoveCommunity = {
8
- id: AdminRemoveCommunityId;
9
- mod_person_id: PersonId;
10
- community_id: CommunityId;
11
- reason: string;
12
- removed: boolean;
13
- published_at: string;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminRemoveCommunityId = number;
@@ -1,3 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
- import type { Community } from "./Community";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin removes a community.
6
- */
7
- export type AdminRemoveCommunityView = {
8
- admin_remove_community: AdminRemoveCommunity;
9
- moderator?: Person;
10
- community: Community;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { PersonView } from "./PersonView";
2
- /**
3
- * The response for banning a user from a community.
4
- */
5
- export type BanFromCommunityResponse = {
6
- person_view: PersonView;
7
- banned: boolean;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommentView } from "./CommentView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The comment list response.
5
- */
6
- export type GetCommentsResponse = {
7
- comments: Array<CommentView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommentSlimView } from "./CommentSlimView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * A slimmer comment list response, without the post or community.
5
- */
6
- export type GetCommentsSlimResponse = {
7
- comments: Array<CommentSlimView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { FederatedInstanceView } from "./FederatedInstanceView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * A response of federated instances.
5
- */
6
- export type GetFederatedInstancesResponse = {
7
- federated_instances: Array<FederatedInstanceView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { ModlogCombinedView } from "./ModlogCombinedView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The modlog fetch response.
5
- */
6
- export type GetModlogResponse = {
7
- modlog: Array<ModlogCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PostView } from "./PostView";
3
- /**
4
- * The post list response.
5
- */
6
- export type GetPostsResponse = {
7
- posts: Array<PostView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { VoteView } from "./VoteView";
3
- /**
4
- * The comment likes response
5
- */
6
- export type ListCommentLikesResponse = {
7
- comment_likes: Array<VoteView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { CommunityView } from "./CommunityView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The response for listing communities.
5
- */
6
- export type ListCommunitiesResponse = {
7
- communities: Array<CommunityView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PendingFollowerView } from "./PendingFollowerView";
3
- export type ListCommunityPendingFollowsResponse = {
4
- items: Array<PendingFollowerView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { LocalImageView } from "./LocalImageView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- export type ListMediaResponse = {
4
- images: Array<LocalImageView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { MultiCommunityView } from "./MultiCommunityView";
2
- export type ListMultiCommunitiesResponse = {
3
- multi_communities: Array<MultiCommunityView>;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { NotificationView } from "./NotificationView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * Get your inbox (replies, comment mentions, post mentions, and messages)
5
- */
6
- export type ListNotificationsResponse = {
7
- notifications: Array<NotificationView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonContentCombinedView } from "./PersonContentCombinedView";
3
- /**
4
- * A person's content response.
5
- */
6
- export type ListPersonContentResponse = {
7
- content: Array<PersonContentCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });