lemmy-js-client 0.20.0-instance-blocks.4 → 0.20.0-modlog-combined.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/dist/http.d.ts +164 -60
  2. package/dist/http.js +261 -114
  3. package/dist/index.d.ts +39 -9
  4. package/dist/other_types.d.ts +1 -18
  5. package/dist/other_types.js +1 -1
  6. package/dist/types/AdminAllowInstance.d.ts +3 -2
  7. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  8. package/dist/types/AdminAllowInstanceParams.d.ts +1 -2
  9. package/dist/types/AdminAllowInstanceParams.js +1 -0
  10. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  11. package/dist/types/AdminBlockInstance.d.ts +3 -2
  12. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  13. package/dist/types/AdminBlockInstanceId.js +3 -0
  14. package/dist/types/AdminBlockInstanceParams.d.ts +1 -2
  15. package/dist/types/AdminBlockInstanceParams.js +1 -0
  16. package/dist/types/AdminPurgeComment.d.ts +2 -1
  17. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  18. package/dist/types/AdminPurgeCommentId.js +3 -0
  19. package/dist/types/AdminPurgeCommunity.d.ts +2 -1
  20. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  21. package/dist/types/AdminPurgeCommunityId.js +3 -0
  22. package/dist/types/AdminPurgePerson.d.ts +2 -1
  23. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  24. package/dist/types/AdminPurgePersonId.js +3 -0
  25. package/dist/types/AdminPurgePost.d.ts +2 -1
  26. package/dist/types/AdminPurgePostId.d.ts +1 -0
  27. package/dist/types/AdminPurgePostId.js +3 -0
  28. package/dist/types/AuthenticateWithOauth.d.ts +1 -0
  29. package/dist/types/CommentAggregates.d.ts +2 -0
  30. package/dist/types/CreateOAuthProvider.d.ts +1 -0
  31. package/dist/types/CreatePost.d.ts +2 -0
  32. package/dist/types/CreateSite.d.ts +0 -2
  33. package/dist/types/DeleteImageParams.d.ts +4 -0
  34. package/dist/types/DeleteImageParams.js +3 -0
  35. package/dist/types/EditCommunity.d.ts +0 -8
  36. package/dist/types/EditOAuthProvider.d.ts +1 -0
  37. package/dist/types/EditPost.d.ts +2 -0
  38. package/dist/types/EditSite.d.ts +0 -8
  39. package/dist/types/GetComments.d.ts +0 -1
  40. package/dist/types/GetModlog.d.ts +4 -3
  41. package/dist/types/GetModlogResponse.d.ts +2 -34
  42. package/dist/types/GetPersonDetails.d.ts +0 -7
  43. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  44. package/dist/types/GetPosts.d.ts +2 -0
  45. package/dist/types/GetReportCountResponse.d.ts +1 -5
  46. package/dist/types/GetReportCountResponse.js +1 -0
  47. package/dist/types/GetSiteResponse.d.ts +1 -10
  48. package/dist/types/ImageGetParams.d.ts +4 -0
  49. package/dist/types/ImageGetParams.js +3 -0
  50. package/dist/types/ImageProxyParams.d.ts +5 -0
  51. package/dist/types/ImageProxyParams.js +3 -0
  52. package/dist/types/LemmyErrorType.d.ts +6 -2
  53. package/dist/types/ListPersonContent.d.ts +18 -0
  54. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  55. package/dist/types/ListPersonSaved.d.ts +10 -0
  56. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  57. package/dist/types/{ListPostReports.d.ts → ListReports.d.ts} +5 -6
  58. package/dist/types/ListReportsResponse.d.ts +7 -0
  59. package/dist/types/ModAdd.d.ts +2 -1
  60. package/dist/types/ModAddCommunity.d.ts +2 -1
  61. package/dist/types/ModAddCommunityId.d.ts +1 -0
  62. package/dist/types/ModAddCommunityId.js +3 -0
  63. package/dist/types/ModAddId.d.ts +1 -0
  64. package/dist/types/ModAddId.js +3 -0
  65. package/dist/types/ModBan.d.ts +2 -1
  66. package/dist/types/ModBanFromCommunity.d.ts +2 -1
  67. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  68. package/dist/types/ModBanFromCommunityId.js +3 -0
  69. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  70. package/dist/types/ModBanId.d.ts +1 -0
  71. package/dist/types/ModBanId.js +3 -0
  72. package/dist/types/ModBanView.d.ts +1 -1
  73. package/dist/types/ModFeaturePost.d.ts +2 -1
  74. package/dist/types/ModFeaturePostId.d.ts +1 -0
  75. package/dist/types/ModFeaturePostId.js +3 -0
  76. package/dist/types/ModFeaturePostView.d.ts +1 -0
  77. package/dist/types/ModHideCommunity.d.ts +2 -1
  78. package/dist/types/ModHideCommunityId.d.ts +1 -0
  79. package/dist/types/ModHideCommunityId.js +3 -0
  80. package/dist/types/ModLockPost.d.ts +2 -1
  81. package/dist/types/ModLockPostId.d.ts +1 -0
  82. package/dist/types/ModLockPostId.js +3 -0
  83. package/dist/types/ModLockPostView.d.ts +1 -0
  84. package/dist/types/ModRemoveComment.d.ts +2 -1
  85. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  86. package/dist/types/ModRemoveCommentId.js +3 -0
  87. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  88. package/dist/types/ModRemoveCommunity.d.ts +2 -1
  89. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  90. package/dist/types/ModRemoveCommunityId.js +3 -0
  91. package/dist/types/ModRemovePost.d.ts +2 -1
  92. package/dist/types/ModRemovePostId.d.ts +1 -0
  93. package/dist/types/ModRemovePostId.js +3 -0
  94. package/dist/types/ModRemovePostView.d.ts +1 -0
  95. package/dist/types/ModTransferCommunity.d.ts +2 -1
  96. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  97. package/dist/types/ModTransferCommunityId.js +3 -0
  98. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  99. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  100. package/dist/types/ModlogCombinedView.d.ts +52 -0
  101. package/dist/types/OAuthProvider.d.ts +4 -0
  102. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  103. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  104. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  105. package/dist/types/PersonContentCombinedView.js +2 -0
  106. package/dist/types/PersonContentType.d.ts +4 -0
  107. package/dist/types/PersonContentType.js +3 -0
  108. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  109. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  110. package/dist/types/PostAggregates.d.ts +2 -0
  111. package/dist/types/PostTags.d.ts +7 -0
  112. package/dist/types/PostTags.js +2 -0
  113. package/dist/types/PostView.d.ts +2 -0
  114. package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
  115. package/dist/types/ReportCombinedPaginationCursor.js +3 -0
  116. package/dist/types/ReportCombinedView.d.ts +10 -0
  117. package/dist/types/ReportCombinedView.js +2 -0
  118. package/dist/types/SaveUserSettings.d.ts +0 -8
  119. package/dist/types/Search.d.ts +0 -1
  120. package/dist/types/SiteResponse.d.ts +1 -1
  121. package/dist/types/Tag.d.ts +27 -0
  122. package/dist/types/Tag.js +2 -0
  123. package/dist/types/TagId.d.ts +4 -0
  124. package/dist/types/TagId.js +3 -0
  125. package/dist/types/UploadImageResponse.d.ts +5 -0
  126. package/dist/types/UploadImageResponse.js +3 -0
  127. package/package.json +3 -3
  128. package/dist/types/InstanceIdOrDomain.d.ts +0 -6
  129. package/dist/types/ListCommentReports.d.ts +0 -18
  130. package/dist/types/ListCommentReportsResponse.d.ts +0 -7
  131. package/dist/types/ListPostReportsResponse.d.ts +0 -7
  132. package/dist/types/ListPrivateMessageReports.d.ts +0 -11
  133. package/dist/types/ListPrivateMessageReportsResponse.d.ts +0 -7
  134. package/dist/types/ModlogListParams.d.ts +0 -17
  135. /package/dist/types/{ListPrivateMessageReports.js → AdminAllowInstanceId.js} +0 -0
  136. /package/dist/types/{InstanceIdOrDomain.js → ListPersonContent.js} +0 -0
  137. /package/dist/types/{ListCommentReports.js → ListPersonContentResponse.js} +0 -0
  138. /package/dist/types/{ListCommentReportsResponse.js → ListPersonSaved.js} +0 -0
  139. /package/dist/types/{ListPostReports.js → ListPersonSavedResponse.js} +0 -0
  140. /package/dist/types/{ListPostReportsResponse.js → ListReports.js} +0 -0
  141. /package/dist/types/{ListPrivateMessageReportsResponse.js → ListReportsResponse.js} +0 -0
  142. /package/dist/types/{ModlogListParams.js → ModlogCombinedView.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,23 +1,29 @@
1
1
  export * from "./http";
2
- export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
2
+ export { UploadImage } from "./other_types";
3
3
  export { ActivityId } from "./types/ActivityId";
4
4
  export { AddAdmin } from "./types/AddAdmin";
5
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
8
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
+ export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
9
10
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
10
11
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
11
12
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
+ export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
12
14
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
13
15
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
14
16
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
+ export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
15
18
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
16
19
  export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
20
+ export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
17
21
  export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
18
22
  export { AdminPurgePerson } from "./types/AdminPurgePerson";
23
+ export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
19
24
  export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
20
25
  export { AdminPurgePost } from "./types/AdminPurgePost";
26
+ export { AdminPurgePostId } from "./types/AdminPurgePostId";
21
27
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
22
28
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
23
29
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
@@ -80,6 +86,7 @@ export { DeleteAccount } from "./types/DeleteAccount";
80
86
  export { DeleteComment } from "./types/DeleteComment";
81
87
  export { DeleteCommunity } from "./types/DeleteCommunity";
82
88
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
89
+ export { DeleteImageParams } from "./types/DeleteImageParams";
83
90
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
84
91
  export { DeletePost } from "./types/DeletePost";
85
92
  export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
@@ -133,9 +140,10 @@ export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
133
140
  export { HideCommunity } from "./types/HideCommunity";
134
141
  export { HidePost } from "./types/HidePost";
135
142
  export { ImageDetails } from "./types/ImageDetails";
143
+ export { ImageGetParams } from "./types/ImageGetParams";
144
+ export { ImageProxyParams } from "./types/ImageProxyParams";
136
145
  export { Instance } from "./types/Instance";
137
146
  export { InstanceId } from "./types/InstanceId";
138
- export { InstanceIdOrDomain } from "./types/InstanceIdOrDomain";
139
147
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
140
148
  export { Language } from "./types/Language";
141
149
  export { LanguageId } from "./types/LanguageId";
@@ -143,8 +151,6 @@ export { LemmyErrorType } from "./types/LemmyErrorType";
143
151
  export { LinkMetadata } from "./types/LinkMetadata";
144
152
  export { ListCommentLikes } from "./types/ListCommentLikes";
145
153
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
146
- export { ListCommentReports } from "./types/ListCommentReports";
147
- export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
148
154
  export { ListCommunities } from "./types/ListCommunities";
149
155
  export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
150
156
  export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
@@ -154,14 +160,16 @@ export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
154
160
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
155
161
  export { ListMedia } from "./types/ListMedia";
156
162
  export { ListMediaResponse } from "./types/ListMediaResponse";
163
+ export { ListPersonContent } from "./types/ListPersonContent";
164
+ export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
165
+ export { ListPersonSaved } from "./types/ListPersonSaved";
166
+ export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
157
167
  export { ListPostLikes } from "./types/ListPostLikes";
158
168
  export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
159
- export { ListPostReports } from "./types/ListPostReports";
160
- export { ListPostReportsResponse } from "./types/ListPostReportsResponse";
161
- export { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
162
- export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
163
169
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
164
170
  export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
171
+ export { ListReports } from "./types/ListReports";
172
+ export { ListReportsResponse } from "./types/ListReportsResponse";
165
173
  export { ListTaglines } from "./types/ListTaglines";
166
174
  export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
167
175
  export { ListingType } from "./types/ListingType";
@@ -186,28 +194,40 @@ export { MarkPostAsRead } from "./types/MarkPostAsRead";
186
194
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
187
195
  export { ModAdd } from "./types/ModAdd";
188
196
  export { ModAddCommunity } from "./types/ModAddCommunity";
197
+ export { ModAddCommunityId } from "./types/ModAddCommunityId";
189
198
  export { ModAddCommunityView } from "./types/ModAddCommunityView";
199
+ export { ModAddId } from "./types/ModAddId";
190
200
  export { ModAddView } from "./types/ModAddView";
191
201
  export { ModBan } from "./types/ModBan";
192
202
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
203
+ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
193
204
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
205
+ export { ModBanId } from "./types/ModBanId";
194
206
  export { ModBanView } from "./types/ModBanView";
195
207
  export { ModFeaturePost } from "./types/ModFeaturePost";
208
+ export { ModFeaturePostId } from "./types/ModFeaturePostId";
196
209
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
197
210
  export { ModHideCommunity } from "./types/ModHideCommunity";
211
+ export { ModHideCommunityId } from "./types/ModHideCommunityId";
198
212
  export { ModHideCommunityView } from "./types/ModHideCommunityView";
199
213
  export { ModLockPost } from "./types/ModLockPost";
214
+ export { ModLockPostId } from "./types/ModLockPostId";
200
215
  export { ModLockPostView } from "./types/ModLockPostView";
201
216
  export { ModRemoveComment } from "./types/ModRemoveComment";
217
+ export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
202
218
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
203
219
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
220
+ export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
204
221
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
205
222
  export { ModRemovePost } from "./types/ModRemovePost";
223
+ export { ModRemovePostId } from "./types/ModRemovePostId";
206
224
  export { ModRemovePostView } from "./types/ModRemovePostView";
207
225
  export { ModTransferCommunity } from "./types/ModTransferCommunity";
226
+ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
208
227
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
209
228
  export { ModlogActionType } from "./types/ModlogActionType";
210
- export { ModlogListParams } from "./types/ModlogListParams";
229
+ export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
230
+ export { ModlogCombinedView } from "./types/ModlogCombinedView";
211
231
  export { MyUserInfo } from "./types/MyUserInfo";
212
232
  export { OAuthAccount } from "./types/OAuthAccount";
213
233
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -219,11 +239,15 @@ export { PasswordReset } from "./types/PasswordReset";
219
239
  export { PendingFollow } from "./types/PendingFollow";
220
240
  export { Person } from "./types/Person";
221
241
  export { PersonAggregates } from "./types/PersonAggregates";
242
+ export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
243
+ export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
244
+ export { PersonContentType } from "./types/PersonContentType";
222
245
  export { PersonId } from "./types/PersonId";
223
246
  export { PersonMention } from "./types/PersonMention";
224
247
  export { PersonMentionId } from "./types/PersonMentionId";
225
248
  export { PersonMentionResponse } from "./types/PersonMentionResponse";
226
249
  export { PersonMentionView } from "./types/PersonMentionView";
250
+ export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
227
251
  export { PersonView } from "./types/PersonView";
228
252
  export { Post } from "./types/Post";
229
253
  export { PostAggregates } from "./types/PostAggregates";
@@ -236,6 +260,7 @@ export { PostReportResponse } from "./types/PostReportResponse";
236
260
  export { PostReportView } from "./types/PostReportView";
237
261
  export { PostResponse } from "./types/PostResponse";
238
262
  export { PostSortType } from "./types/PostSortType";
263
+ export { PostTags } from "./types/PostTags";
239
264
  export { PostView } from "./types/PostView";
240
265
  export { PrivateMessage } from "./types/PrivateMessage";
241
266
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -261,6 +286,8 @@ export { RegistrationMode } from "./types/RegistrationMode";
261
286
  export { RemoveComment } from "./types/RemoveComment";
262
287
  export { RemoveCommunity } from "./types/RemoveCommunity";
263
288
  export { RemovePost } from "./types/RemovePost";
289
+ export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
290
+ export { ReportCombinedView } from "./types/ReportCombinedView";
264
291
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
265
292
  export { ResolveObject } from "./types/ResolveObject";
266
293
  export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
@@ -280,6 +307,8 @@ export { SiteResponse } from "./types/SiteResponse";
280
307
  export { SiteView } from "./types/SiteView";
281
308
  export { SubscribedType } from "./types/SubscribedType";
282
309
  export { SuccessResponse } from "./types/SuccessResponse";
310
+ export { Tag } from "./types/Tag";
311
+ export { TagId } from "./types/TagId";
283
312
  export { Tagline } from "./types/Tagline";
284
313
  export { TaglineId } from "./types/TaglineId";
285
314
  export { TaglineResponse } from "./types/TaglineResponse";
@@ -287,6 +316,7 @@ export { TransferCommunity } from "./types/TransferCommunity";
287
316
  export { UpdateTagline } from "./types/UpdateTagline";
288
317
  export { UpdateTotp } from "./types/UpdateTotp";
289
318
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
319
+ export { UploadImageResponse } from "./types/UploadImageResponse";
290
320
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
291
321
  export { VerifyEmail } from "./types/VerifyEmail";
292
322
  export { VoteView } from "./types/VoteView";
@@ -1,21 +1,4 @@
1
- export declare const VERSION = "v3";
1
+ export declare const VERSION = "v4";
2
2
  export interface UploadImage {
3
3
  image: File | Buffer;
4
4
  }
5
- export interface UploadImageResponse {
6
- /**
7
- * Is "ok" if the upload was successful; is something else otherwise.
8
- */
9
- msg: string;
10
- files?: ImageFile[];
11
- url?: string;
12
- delete_url?: string;
13
- }
14
- export interface ImageFile {
15
- file: string;
16
- delete_token: string;
17
- }
18
- export interface DeleteImage {
19
- token: string;
20
- filename: string;
21
- }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "v3";
4
+ exports.VERSION = "v4";
@@ -1,10 +1,11 @@
1
+ import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
1
2
  import type { InstanceId } from "./InstanceId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  export type AdminAllowInstance = {
4
- id: number;
5
+ id: AdminAllowInstanceId;
5
6
  instance_id: InstanceId;
6
7
  admin_person_id: PersonId;
7
8
  allowed: boolean;
8
9
  reason?: string;
9
- published: string;
10
+ when_: string;
10
11
  };
@@ -0,0 +1 @@
1
+ export type AdminAllowInstanceId = number;
@@ -1,6 +1,5 @@
1
- import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
2
1
  export type AdminAllowInstanceParams = {
3
- instance: InstanceIdOrDomain;
2
+ instance: string;
4
3
  allow: boolean;
5
4
  reason?: string;
6
5
  };
@@ -1,2 +1,3 @@
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.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,7 +5,7 @@ import type { Person } from "./Person";
5
5
  * When an admin purges a post.
6
6
  */
7
7
  export type AdminAllowInstanceView = {
8
- admin_block_instance: AdminAllowInstance;
8
+ admin_allow_instance: AdminAllowInstance;
9
9
  instance: Instance;
10
10
  admin?: Person;
11
11
  };
@@ -1,11 +1,12 @@
1
+ import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
1
2
  import type { InstanceId } from "./InstanceId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  export type AdminBlockInstance = {
4
- id: number;
5
+ id: AdminBlockInstanceId;
5
6
  instance_id: InstanceId;
6
7
  admin_person_id: PersonId;
7
8
  blocked: boolean;
8
9
  reason?: string;
9
10
  expires?: string;
10
- published: string;
11
+ when_: string;
11
12
  };
@@ -0,0 +1 @@
1
+ export type AdminBlockInstanceId = number;
@@ -0,0 +1,3 @@
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,6 +1,5 @@
1
- import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
2
1
  export type AdminBlockInstanceParams = {
3
- instance: InstanceIdOrDomain;
2
+ instance: string;
4
3
  block: boolean;
5
4
  reason?: string;
6
5
  expires?: string;
@@ -1,2 +1,3 @@
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.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
+ import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  import type { PostId } from "./PostId";
3
4
  /**
4
5
  * When an admin purges a comment.
5
6
  */
6
7
  export type AdminPurgeComment = {
7
- id: number;
8
+ id: AdminPurgeCommentId;
8
9
  admin_person_id: PersonId;
9
10
  post_id: PostId;
10
11
  reason?: string;
@@ -0,0 +1 @@
1
+ export type AdminPurgeCommentId = number;
@@ -0,0 +1,3 @@
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 +1,10 @@
1
+ import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When an admin purges a community.
4
5
  */
5
6
  export type AdminPurgeCommunity = {
6
- id: number;
7
+ id: AdminPurgeCommunityId;
7
8
  admin_person_id: PersonId;
8
9
  reason?: string;
9
10
  when_: string;
@@ -0,0 +1 @@
1
+ export type AdminPurgeCommunityId = number;
@@ -0,0 +1,3 @@
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 +1,10 @@
1
+ import type { AdminPurgePersonId } from "./AdminPurgePersonId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When an admin purges a person.
4
5
  */
5
6
  export type AdminPurgePerson = {
6
- id: number;
7
+ id: AdminPurgePersonId;
7
8
  admin_person_id: PersonId;
8
9
  reason?: string;
9
10
  when_: string;
@@ -0,0 +1 @@
1
+ export type AdminPurgePersonId = number;
@@ -0,0 +1,3 @@
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,10 +1,11 @@
1
+ import type { AdminPurgePostId } from "./AdminPurgePostId";
1
2
  import type { CommunityId } from "./CommunityId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  /**
4
5
  * When an admin purges a post.
5
6
  */
6
7
  export type AdminPurgePost = {
7
- id: number;
8
+ id: AdminPurgePostId;
8
9
  admin_person_id: PersonId;
9
10
  community_id: CommunityId;
10
11
  reason?: string;
@@ -0,0 +1 @@
1
+ export type AdminPurgePostId = number;
@@ -0,0 +1,3 @@
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 });
@@ -15,4 +15,5 @@ export type AuthenticateWithOauth = {
15
15
  * An answer is mandatory if require application is enabled on the server
16
16
  */
17
17
  answer?: string;
18
+ pkce_code_verifier?: string;
18
19
  };
@@ -12,4 +12,6 @@ export type CommentAggregates = {
12
12
  * The total number of children in this comment branch.
13
13
  */
14
14
  child_count: number;
15
+ report_count: number;
16
+ unresolved_report_count: number;
15
17
  };
@@ -13,5 +13,6 @@ export type CreateOAuthProvider = {
13
13
  scopes: string;
14
14
  auto_verify_email?: boolean;
15
15
  account_linking_enabled?: boolean;
16
+ use_pkce?: boolean;
16
17
  enabled?: boolean;
17
18
  };
@@ -1,5 +1,6 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { LanguageId } from "./LanguageId";
3
+ import type { TagId } from "./TagId";
3
4
  /**
4
5
  * Create a post.
5
6
  */
@@ -25,6 +26,7 @@ export type CreatePost = {
25
26
  * Instead of fetching a thumbnail, use a custom one.
26
27
  */
27
28
  custom_thumbnail?: string;
29
+ tags?: Array<TagId>;
28
30
  /**
29
31
  * Time when this post should be scheduled. Null means publish immediately.
30
32
  */
@@ -12,8 +12,6 @@ export type CreateSite = {
12
12
  name: string;
13
13
  sidebar?: string;
14
14
  description?: string;
15
- icon?: string;
16
- banner?: string;
17
15
  enable_nsfw?: boolean;
18
16
  community_creation_admin_only?: boolean;
19
17
  require_email_verification?: boolean;
@@ -0,0 +1,4 @@
1
+ export type DeleteImageParams = {
2
+ filename: string;
3
+ token: string;
4
+ };
@@ -0,0 +1,3 @@
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 });
@@ -18,14 +18,6 @@ export type EditCommunity = {
18
18
  * A shorter, one line description of your community.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * An icon URL.
23
- */
24
- icon?: string;
25
- /**
26
- * A banner URL.
27
- */
28
- banner?: string;
29
21
  /**
30
22
  * Whether its an NSFW community.
31
23
  */
@@ -13,5 +13,6 @@ export type EditOAuthProvider = {
13
13
  scopes?: string;
14
14
  auto_verify_email?: boolean;
15
15
  account_linking_enabled?: boolean;
16
+ use_pkce?: boolean;
16
17
  enabled?: boolean;
17
18
  };
@@ -1,5 +1,6 @@
1
1
  import type { LanguageId } from "./LanguageId";
2
2
  import type { PostId } from "./PostId";
3
+ import type { TagId } from "./TagId";
3
4
  /**
4
5
  * Edit a post.
5
6
  */
@@ -21,6 +22,7 @@ export type EditPost = {
21
22
  * Instead of fetching a thumbnail, use a custom one.
22
23
  */
23
24
  custom_thumbnail?: string;
25
+ tags?: Array<TagId>;
24
26
  /**
25
27
  * Time when this post should be scheduled. Null means publish immediately.
26
28
  */
@@ -18,14 +18,6 @@ export type EditSite = {
18
18
  * A shorter, one line description of your site.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * A url for your site's icon.
23
- */
24
- icon?: string;
25
- /**
26
- * A url for your site's banner.
27
- */
28
- banner?: string;
29
21
  /**
30
22
  * Whether to enable NSFW.
31
23
  */
@@ -16,7 +16,6 @@ export type GetComments = {
16
16
  community_name?: string;
17
17
  post_id?: PostId;
18
18
  parent_id?: CommentId;
19
- saved_only?: boolean;
20
19
  liked_only?: boolean;
21
20
  disliked_only?: boolean;
22
21
  };
@@ -1,6 +1,7 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
3
  import type { ModlogActionType } from "./ModlogActionType";
4
+ import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
4
5
  import type { PersonId } from "./PersonId";
5
6
  import type { PostId } from "./PostId";
6
7
  /**
@@ -9,10 +10,10 @@ import type { PostId } from "./PostId";
9
10
  export type GetModlog = {
10
11
  mod_person_id?: PersonId;
11
12
  community_id?: CommunityId;
12
- page?: number;
13
- limit?: number;
14
13
  type_?: ModlogActionType;
15
- other_person_id?: PersonId;
14
+ modded_person_id?: PersonId;
16
15
  post_id?: PostId;
17
16
  comment_id?: CommentId;
17
+ page_cursor?: ModlogCombinedPaginationCursor;
18
+ page_back?: boolean;
18
19
  };
@@ -1,39 +1,7 @@
1
- import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
2
- import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
3
- import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
4
- import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
5
- import type { AdminPurgePersonView } from "./AdminPurgePersonView";
6
- import type { AdminPurgePostView } from "./AdminPurgePostView";
7
- import type { ModAddCommunityView } from "./ModAddCommunityView";
8
- import type { ModAddView } from "./ModAddView";
9
- import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
10
- import type { ModBanView } from "./ModBanView";
11
- import type { ModFeaturePostView } from "./ModFeaturePostView";
12
- import type { ModHideCommunityView } from "./ModHideCommunityView";
13
- import type { ModLockPostView } from "./ModLockPostView";
14
- import type { ModRemoveCommentView } from "./ModRemoveCommentView";
15
- import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
16
- import type { ModRemovePostView } from "./ModRemovePostView";
17
- import type { ModTransferCommunityView } from "./ModTransferCommunityView";
1
+ import type { ModlogCombinedView } from "./ModlogCombinedView";
18
2
  /**
19
3
  * The modlog fetch response.
20
4
  */
21
5
  export type GetModlogResponse = {
22
- removed_posts: Array<ModRemovePostView>;
23
- locked_posts: Array<ModLockPostView>;
24
- featured_posts: Array<ModFeaturePostView>;
25
- removed_comments: Array<ModRemoveCommentView>;
26
- removed_communities: Array<ModRemoveCommunityView>;
27
- banned_from_community: Array<ModBanFromCommunityView>;
28
- banned: Array<ModBanView>;
29
- added_to_community: Array<ModAddCommunityView>;
30
- transferred_to_community: Array<ModTransferCommunityView>;
31
- added: Array<ModAddView>;
32
- admin_purged_persons: Array<AdminPurgePersonView>;
33
- admin_purged_communities: Array<AdminPurgeCommunityView>;
34
- admin_purged_posts: Array<AdminPurgePostView>;
35
- admin_purged_comments: Array<AdminPurgeCommentView>;
36
- hidden_communities: Array<ModHideCommunityView>;
37
- admin_block_instance: Array<AdminBlockInstanceView>;
38
- admin_allow_instance: Array<AdminAllowInstanceView>;
6
+ modlog: Array<ModlogCombinedView>;
39
7
  };
@@ -1,6 +1,4 @@
1
- import type { CommunityId } from "./CommunityId";
2
1
  import type { PersonId } from "./PersonId";
3
- import type { PostSortType } from "./PostSortType";
4
2
  /**
5
3
  * Gets a person's details.
6
4
  *
@@ -12,9 +10,4 @@ export type GetPersonDetails = {
12
10
  * Example: dessalines , or dessalines@xyz.tld
13
11
  */
14
12
  username?: string;
15
- sort?: PostSortType;
16
- page?: number;
17
- limit?: number;
18
- community_id?: CommunityId;
19
- saved_only?: boolean;
20
13
  };
@@ -1,7 +1,5 @@
1
- import type { CommentView } from "./CommentView";
2
1
  import type { CommunityModeratorView } from "./CommunityModeratorView";
3
2
  import type { PersonView } from "./PersonView";
4
- import type { PostView } from "./PostView";
5
3
  import type { Site } from "./Site";
6
4
  /**
7
5
  * A person's details response.
@@ -9,7 +7,5 @@ import type { Site } from "./Site";
9
7
  export type GetPersonDetailsResponse = {
10
8
  person_view: PersonView;
11
9
  site?: Site;
12
- comments: Array<CommentView>;
13
- posts: Array<PostView>;
14
10
  moderates: Array<CommunityModeratorView>;
15
11
  };
@@ -16,6 +16,7 @@ export type GetPosts = {
16
16
  community_id?: CommunityId;
17
17
  community_name?: string;
18
18
  saved_only?: boolean;
19
+ read_only?: boolean;
19
20
  liked_only?: boolean;
20
21
  disliked_only?: boolean;
21
22
  show_hidden?: boolean;
@@ -36,4 +37,5 @@ export type GetPosts = {
36
37
  */
37
38
  no_comments_only?: boolean;
38
39
  page_cursor?: PaginationCursor;
40
+ page_back?: boolean;
39
41
  };
@@ -1,10 +1,6 @@
1
- import type { CommunityId } from "./CommunityId";
2
1
  /**
3
2
  * A response for the number of reports.
4
3
  */
5
4
  export type GetReportCountResponse = {
6
- community_id?: CommunityId;
7
- comment_reports: number;
8
- post_reports: number;
9
- private_message_reports?: number;
5
+ count: number;
10
6
  };
@@ -1,2 +1,3 @@
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.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });