lemmy-js-client 1.0.0-media-fixes.0 → 1.0.0-multi-community.1

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 (85) hide show
  1. package/dist/http.d.ts +39 -5
  2. package/dist/http.js +402 -584
  3. package/dist/index.d.ts +11 -1
  4. package/dist/other_types.d.ts +3 -0
  5. package/dist/types/BannedPersonsResponse.d.ts +1 -0
  6. package/dist/types/CommentReplyView.d.ts +2 -0
  7. package/dist/types/CommentView.d.ts +2 -0
  8. package/dist/types/CommunityIdQuery.d.ts +8 -0
  9. package/dist/types/CommunityIdQuery.js +2 -0
  10. package/dist/types/CommunityView.d.ts +2 -0
  11. package/dist/types/CreateCommunityTag.d.ts +8 -0
  12. package/dist/types/CreateCommunityTag.js +2 -0
  13. package/dist/types/CreateMultiCommunity.d.ts +3 -0
  14. package/dist/types/CreateSite.d.ts +1 -0
  15. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  16. package/dist/types/DeleteCommunityTag.js +2 -0
  17. package/dist/types/EditPost.d.ts +1 -1
  18. package/dist/types/EditSite.d.ts +4 -0
  19. package/dist/types/GetComments.d.ts +3 -1
  20. package/dist/types/GetCommentsResponse.d.ts +3 -0
  21. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  22. package/dist/types/GetModlog.d.ts +1 -0
  23. package/dist/types/GetModlogResponse.d.ts +1 -0
  24. package/dist/types/GetPosts.d.ts +3 -9
  25. package/dist/types/GetPostsResponse.d.ts +3 -2
  26. package/dist/types/LemmyErrorType.d.ts +88 -20
  27. package/dist/types/ListCommentLikes.d.ts +3 -1
  28. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  29. package/dist/types/ListCommunities.d.ts +3 -1
  30. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  31. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  32. package/dist/types/ListCommunityPendingFollows.js +0 -1
  33. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  34. package/dist/types/ListCustomEmojis.d.ts +0 -3
  35. package/dist/types/ListInbox.d.ts +1 -0
  36. package/dist/types/ListInboxResponse.d.ts +1 -0
  37. package/dist/types/ListMedia.d.ts +3 -1
  38. package/dist/types/ListMedia.js +0 -1
  39. package/dist/types/ListMediaResponse.d.ts +6 -0
  40. package/dist/types/ListMultiCommunities.d.ts +4 -0
  41. package/dist/types/ListMultiCommunities.js +2 -0
  42. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  43. package/dist/types/ListMultiCommunitiesResponse.js +2 -0
  44. package/dist/types/ListPersonContent.d.ts +1 -0
  45. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  46. package/dist/types/ListPersonSaved.d.ts +1 -0
  47. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  48. package/dist/types/ListPostLikes.d.ts +3 -1
  49. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  50. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  51. package/dist/types/ListRegistrationApplications.js +0 -1
  52. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  53. package/dist/types/ListReports.d.ts +1 -0
  54. package/dist/types/ListReportsResponse.d.ts +1 -0
  55. package/dist/types/ListTaglines.d.ts +3 -1
  56. package/dist/types/ListTaglines.js +0 -1
  57. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  58. package/dist/types/LocalSite.d.ts +4 -0
  59. package/dist/types/MultiCommunity.d.ts +9 -0
  60. package/dist/types/MultiCommunity.js +2 -0
  61. package/dist/types/MultiCommunityId.d.ts +1 -0
  62. package/dist/types/MultiCommunityId.js +3 -0
  63. package/dist/types/MultiCommunityView.d.ts +6 -0
  64. package/dist/types/MultiCommunityView.js +2 -0
  65. package/dist/types/MultiCommunityViewApub.d.ts +6 -0
  66. package/dist/types/MultiCommunityViewApub.js +2 -0
  67. package/dist/types/MyUserInfo.d.ts +1 -0
  68. package/dist/types/PersonPostMentionView.d.ts +2 -0
  69. package/dist/types/PostView.d.ts +2 -0
  70. package/dist/types/SaveUserSettings.d.ts +1 -0
  71. package/dist/types/Search.d.ts +1 -0
  72. package/dist/types/SearchResponse.d.ts +1 -0
  73. package/dist/types/Tag.d.ts +8 -6
  74. package/dist/types/Tagline.d.ts +2 -1
  75. package/dist/types/Tagline.js +0 -1
  76. package/dist/types/TagsView.d.ts +5 -0
  77. package/dist/types/TagsView.js +2 -0
  78. package/dist/types/UpdateCommunityTag.d.ts +8 -0
  79. package/dist/types/UpdateCommunityTag.js +2 -0
  80. package/dist/types/UpdateMultiCommunity.d.ts +6 -0
  81. package/dist/types/UpdateMultiCommunity.js +2 -0
  82. package/dist/types/VoteView.d.ts +1 -0
  83. package/package.json +3 -3
  84. package/dist/types/PostPaginationCursor.d.ts +0 -7
  85. /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ export { CommunityActions } from "./types/CommunityActions";
58
58
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
59
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
60
  export { CommunityId } from "./types/CommunityId";
61
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
62
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
62
63
  export { CommunityReport } from "./types/CommunityReport";
63
64
  export { CommunityReportId } from "./types/CommunityReportId";
@@ -72,6 +73,7 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
72
73
  export { CreateCommentReport } from "./types/CreateCommentReport";
73
74
  export { CreateCommunity } from "./types/CreateCommunity";
74
75
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
76
+ export { CreateCommunityTag } from "./types/CreateCommunityTag";
75
77
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
76
78
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
77
79
  export { CreatePost } from "./types/CreatePost";
@@ -90,6 +92,7 @@ export { DbUrl } from "./types/DbUrl";
90
92
  export { DeleteAccount } from "./types/DeleteAccount";
91
93
  export { DeleteComment } from "./types/DeleteComment";
92
94
  export { DeleteCommunity } from "./types/DeleteCommunity";
95
+ export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
93
96
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
94
97
  export { DeleteImageParams } from "./types/DeleteImageParams";
95
98
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
@@ -262,7 +265,6 @@ export { PostActions } from "./types/PostActions";
262
265
  export { PostFeatureType } from "./types/PostFeatureType";
263
266
  export { PostId } from "./types/PostId";
264
267
  export { PostListingMode } from "./types/PostListingMode";
265
- export { PostPaginationCursor } from "./types/PostPaginationCursor";
266
268
  export { PostReport } from "./types/PostReport";
267
269
  export { PostReportId } from "./types/PostReportId";
268
270
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -321,7 +323,9 @@ export { TagId } from "./types/TagId";
321
323
  export { Tagline } from "./types/Tagline";
322
324
  export { TaglineId } from "./types/TaglineId";
323
325
  export { TaglineResponse } from "./types/TaglineResponse";
326
+ export { TagsView } from "./types/TagsView";
324
327
  export { TransferCommunity } from "./types/TransferCommunity";
328
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
325
329
  export { UpdateTagline } from "./types/UpdateTagline";
326
330
  export { UpdateTotp } from "./types/UpdateTotp";
327
331
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
@@ -329,3 +333,9 @@ export { UploadImageResponse } from "./types/UploadImageResponse";
329
333
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
330
334
  export { VerifyEmail } from "./types/VerifyEmail";
331
335
  export { VoteView } from "./types/VoteView";
336
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
337
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
338
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
339
+ export { MultiCommunity } from "./types/MultiCommunity";
340
+ export { MultiCommunityId } from "./types/MultiCommunityId";
341
+ export { MultiCommunityView } from "./types/MultiCommunityView";
@@ -1,3 +1,4 @@
1
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
1
2
  import { DeleteImageParams } from "./types/DeleteImageParams";
2
3
  import { GetComment } from "./types/GetComment";
3
4
  import { GetComments } from "./types/GetComments";
@@ -86,3 +87,5 @@ export interface DeleteImageParamsI extends DeleteImageParams {
86
87
  }
87
88
  export interface ListBannedPersonsI extends ListBannedPersons {
88
89
  }
90
+ export interface CommunityIdQueryI extends CommunityIdQuery {
91
+ }
@@ -9,4 +9,5 @@ export type BannedPersonsResponse = {
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
11
  next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -7,6 +7,7 @@ import type { InstanceActions } from "./InstanceActions";
7
7
  import type { Person } from "./Person";
8
8
  import type { PersonActions } from "./PersonActions";
9
9
  import type { Post } from "./Post";
10
+ import type { TagsView } from "./TagsView";
10
11
  /**
11
12
  * A comment reply view.
12
13
  */
@@ -25,6 +26,7 @@ export type CommentReplyView = {
25
26
  creator_local_instance_actions?: InstanceActions;
26
27
  creator_community_actions?: CommunityActions;
27
28
  creator_is_admin: boolean;
29
+ post_tags: TagsView;
28
30
  can_mod: boolean;
29
31
  creator_banned: boolean;
30
32
  };
@@ -6,6 +6,7 @@ import type { InstanceActions } from "./InstanceActions";
6
6
  import type { Person } from "./Person";
7
7
  import type { PersonActions } from "./PersonActions";
8
8
  import type { Post } from "./Post";
9
+ import type { TagsView } from "./TagsView";
9
10
  /**
10
11
  * A comment view.
11
12
  */
@@ -22,6 +23,7 @@ export type CommentView = {
22
23
  creator_local_instance_actions?: InstanceActions;
23
24
  creator_community_actions?: CommunityActions;
24
25
  creator_is_admin: boolean;
26
+ post_tags: TagsView;
25
27
  can_mod: boolean;
26
28
  creator_banned: boolean;
27
29
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Parameter for setting community icon or banner. Can't use POST data here as it already contains
4
+ * the image data.
5
+ */
6
+ export type CommunityIdQuery = {
7
+ id: CommunityId;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import type { Community } from "./Community";
2
2
  import type { CommunityActions } from "./CommunityActions";
3
3
  import type { InstanceActions } from "./InstanceActions";
4
+ import type { TagsView } from "./TagsView";
4
5
  /**
5
6
  * A community view.
6
7
  */
@@ -9,4 +10,5 @@ export type CommunityView = {
9
10
  community_actions?: CommunityActions;
10
11
  instance_actions?: InstanceActions;
11
12
  can_mod: boolean;
13
+ post_tags: TagsView;
12
14
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Create a tag for a community.
4
+ */
5
+ export type CreateCommunityTag = {
6
+ community_id: CommunityId;
7
+ display_name: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type CreateMultiCommunity = {
2
+ name: string;
3
+ };
@@ -51,4 +51,5 @@ export type CreateSite = {
51
51
  comment_upvotes?: FederationMode;
52
52
  comment_downvotes?: FederationMode;
53
53
  disallow_nsfw_content?: boolean;
54
+ disable_email_notifications?: boolean;
54
55
  };
@@ -0,0 +1,7 @@
1
+ import type { TagId } from "./TagId";
2
+ /**
3
+ * Delete a community tag.
4
+ */
5
+ export type DeleteCommunityTag = {
6
+ tag_id: TagId;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,9 +22,9 @@ export type EditPost = {
22
22
  * Instead of fetching a thumbnail, use a custom one.
23
23
  */
24
24
  custom_thumbnail?: string;
25
- tags?: Array<TagId>;
26
25
  /**
27
26
  * Time when this post should be scheduled. Null means publish immediately.
28
27
  */
29
28
  scheduled_publish_time?: number;
29
+ tags?: Array<TagId>;
30
30
  };
@@ -162,4 +162,8 @@ export type EditSite = {
162
162
  * Block NSFW content being created
163
163
  */
164
164
  disallow_nsfw_content?: boolean;
165
+ /**
166
+ * Dont send email notifications to users for new replies, mentions etc
167
+ */
168
+ disable_email_notifications?: boolean;
165
169
  };
@@ -2,6 +2,7 @@ import type { CommentId } from "./CommentId";
2
2
  import type { CommentSortType } from "./CommentSortType";
3
3
  import type { CommunityId } from "./CommunityId";
4
4
  import type { ListingType } from "./ListingType";
5
+ import type { PaginationCursor } from "./PaginationCursor";
5
6
  import type { PostId } from "./PostId";
6
7
  /**
7
8
  * Get a list of comments.
@@ -15,7 +16,8 @@ export type GetComments = {
15
16
  */
16
17
  time_range_seconds?: number;
17
18
  max_depth?: number;
18
- page?: number;
19
+ page_cursor?: PaginationCursor;
20
+ page_back?: boolean;
19
21
  limit?: number;
20
22
  community_id?: CommunityId;
21
23
  community_name?: string;
@@ -1,7 +1,10 @@
1
1
  import type { CommentView } from "./CommentView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * The comment list response.
4
5
  */
5
6
  export type GetCommentsResponse = {
6
7
  comments: Array<CommentView>;
8
+ next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
7
10
  };
@@ -1,7 +1,10 @@
1
1
  import type { CommentSlimView } from "./CommentSlimView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * A slimmer comment list response, without the post or community.
4
5
  */
5
6
  export type GetCommentsSlimResponse = {
6
7
  comments: Array<CommentSlimView>;
8
+ next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
7
10
  };
@@ -40,4 +40,5 @@ export type GetModlog = {
40
40
  comment_id?: CommentId;
41
41
  page_cursor?: PaginationCursor;
42
42
  page_back?: boolean;
43
+ limit?: number;
43
44
  };
@@ -9,4 +9,5 @@ export type GetModlogResponse = {
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
11
  next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -1,6 +1,6 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { ListingType } from "./ListingType";
3
- import type { PostPaginationCursor } from "./PostPaginationCursor";
3
+ import type { PaginationCursor } from "./PaginationCursor";
4
4
  import type { PostSortType } from "./PostSortType";
5
5
  /**
6
6
  * Get a list of posts.
@@ -14,15 +14,8 @@ export type GetPosts = {
14
14
  * Use Zero to override the local_site and local_user time_range.
15
15
  */
16
16
  time_range_seconds?: number;
17
- /**
18
- * DEPRECATED, use page_cursor
19
- */
20
- page?: number;
21
- limit?: number;
22
17
  community_id?: CommunityId;
23
18
  community_name?: string;
24
- saved_only?: boolean;
25
- read_only?: boolean;
26
19
  liked_only?: boolean;
27
20
  disliked_only?: boolean;
28
21
  show_hidden?: boolean;
@@ -46,6 +39,7 @@ export type GetPosts = {
46
39
  * If true, then only show posts with no comments
47
40
  */
48
41
  no_comments_only?: boolean;
49
- page_cursor?: PostPaginationCursor;
42
+ page_cursor?: PaginationCursor;
50
43
  page_back?: boolean;
44
+ limit?: number;
51
45
  };
@@ -1,4 +1,4 @@
1
- import type { PostPaginationCursor } from "./PostPaginationCursor";
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
2
  import type { PostView } from "./PostView";
3
3
  /**
4
4
  * The post list response.
@@ -8,5 +8,6 @@ export type GetPostsResponse = {
8
8
  /**
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
- next_page?: PostPaginationCursor;
11
+ next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -1,5 +1,11 @@
1
1
  import type { FederationError } from "./FederationError";
2
2
  export type LemmyErrorType = {
3
+ error: "block_keyword_too_short";
4
+ } | {
5
+ error: "block_keyword_too_long";
6
+ } | {
7
+ error: "couldnt_update_keywords";
8
+ } | {
3
9
  error: "report_reason_required";
4
10
  } | {
5
11
  error: "report_too_long";
@@ -21,8 +27,6 @@ export type LemmyErrorType = {
21
27
  error: "email_required";
22
28
  } | {
23
29
  error: "couldnt_update_comment";
24
- } | {
25
- error: "couldnt_update_private_message";
26
30
  } | {
27
31
  error: "cannot_leave_admin";
28
32
  } | {
@@ -89,6 +93,8 @@ export type LemmyErrorType = {
89
93
  error: "community_already_exists";
90
94
  } | {
91
95
  error: "language_not_allowed";
96
+ } | {
97
+ error: "couldnt_update_languages";
92
98
  } | {
93
99
  error: "couldnt_update_post";
94
100
  } | {
@@ -119,8 +125,6 @@ export type LemmyErrorType = {
119
125
  error: "no_id_given";
120
126
  } | {
121
127
  error: "incorrect_login";
122
- } | {
123
- error: "object_not_local";
124
128
  } | {
125
129
  error: "no_email_setup";
126
130
  } | {
@@ -176,8 +180,6 @@ export type LemmyErrorType = {
176
180
  error: "community_follower_already_exists";
177
181
  } | {
178
182
  error: "person_block_already_exists";
179
- } | {
180
- error: "user_already_exists";
181
183
  } | {
182
184
  error: "couldnt_like_post";
183
185
  } | {
@@ -191,27 +193,21 @@ export type LemmyErrorType = {
191
193
  } | {
192
194
  error: "couldnt_update_community";
193
195
  } | {
194
- error: "couldnt_update_replies";
195
- } | {
196
- error: "couldnt_update_person_comment_mentions";
196
+ error: "couldnt_create_person_comment_mention";
197
197
  } | {
198
- error: "couldnt_create_post";
198
+ error: "couldnt_update_person_comment_mention";
199
199
  } | {
200
- error: "couldnt_create_private_message";
200
+ error: "couldnt_create_person_post_mention";
201
201
  } | {
202
- error: "couldnt_update_private";
202
+ error: "couldnt_update_person_post_mention";
203
203
  } | {
204
- error: "system_err_login";
204
+ error: "couldnt_create_post";
205
205
  } | {
206
- error: "couldnt_set_all_registrations_accepted";
206
+ error: "couldnt_create_private_message";
207
207
  } | {
208
- error: "couldnt_set_all_email_verified";
208
+ error: "couldnt_update_private_message";
209
209
  } | {
210
210
  error: "blocked_url";
211
- } | {
212
- error: "couldnt_get_comments";
213
- } | {
214
- error: "couldnt_get_posts";
215
211
  } | {
216
212
  error: "invalid_url";
217
213
  } | {
@@ -253,6 +249,10 @@ export type LemmyErrorType = {
253
249
  error: "invalid_unix_time";
254
250
  } | {
255
251
  error: "invalid_bot_action";
252
+ } | {
253
+ error: "invalid_tag_name";
254
+ } | {
255
+ error: "tag_not_in_community";
256
256
  } | {
257
257
  error: "cant_block_local_instance";
258
258
  } | {
@@ -267,7 +267,9 @@ export type LemmyErrorType = {
267
267
  } | {
268
268
  error: "oauth_registration_closed";
269
269
  } | {
270
- error: "couldnt_delete_oauth_provider";
270
+ error: "couldnt_create_oauth_provider";
271
+ } | {
272
+ error: "couldnt_update_oauth_provider";
271
273
  } | {
272
274
  error: "not_found";
273
275
  } | {
@@ -288,4 +290,70 @@ export type LemmyErrorType = {
288
290
  } | {
289
291
  error: "plugin_error";
290
292
  message: string;
293
+ } | {
294
+ error: "invalid_fetch_limit";
295
+ } | {
296
+ error: "couldnt_create_comment_reply";
297
+ } | {
298
+ error: "couldnt_update_comment_reply";
299
+ } | {
300
+ error: "couldnt_mark_comment_reply_as_read";
301
+ } | {
302
+ error: "couldnt_create_emoji";
303
+ } | {
304
+ error: "couldnt_update_emoji";
305
+ } | {
306
+ error: "couldnt_create_person";
307
+ } | {
308
+ error: "couldnt_update_person";
309
+ } | {
310
+ error: "couldnt_create_modlog";
311
+ } | {
312
+ error: "couldnt_update_modlog";
313
+ } | {
314
+ error: "couldnt_create_site";
315
+ } | {
316
+ error: "couldnt_update_site";
317
+ } | {
318
+ error: "couldnt_create_registration_application";
319
+ } | {
320
+ error: "couldnt_update_registration_application";
321
+ } | {
322
+ error: "couldnt_create_tag";
323
+ } | {
324
+ error: "couldnt_update_tag";
325
+ } | {
326
+ error: "couldnt_create_post_tag";
327
+ } | {
328
+ error: "couldnt_update_post_tag";
329
+ } | {
330
+ error: "couldnt_create_tagline";
331
+ } | {
332
+ error: "couldnt_update_tagline";
333
+ } | {
334
+ error: "couldnt_create_image";
335
+ } | {
336
+ error: "couldnt_allow_instance";
337
+ } | {
338
+ error: "couldnt_block_instance";
339
+ } | {
340
+ error: "couldnt_insert_activity";
341
+ } | {
342
+ error: "couldnt_create_rate_limit";
343
+ } | {
344
+ error: "couldnt_create_captcha_answer";
345
+ } | {
346
+ error: "couldnt_update_federation_queue_state";
347
+ } | {
348
+ error: "couldnt_create_oauth_account";
349
+ } | {
350
+ error: "couldnt_create_password_reset_request";
351
+ } | {
352
+ error: "couldnt_create_login_token";
353
+ } | {
354
+ error: "couldnt_update_local_site_url_blocklist";
355
+ } | {
356
+ error: "couldnt_create_email_verification";
357
+ } | {
358
+ error: "email_notifications_disabled";
291
359
  };
@@ -1,9 +1,11 @@
1
1
  import type { CommentId } from "./CommentId";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * List comment likes. Admins-only.
4
5
  */
5
6
  export type ListCommentLikes = {
6
7
  comment_id: CommentId;
7
- page?: number;
8
+ page_cursor?: PaginationCursor;
9
+ page_back?: boolean;
8
10
  limit?: number;
9
11
  };
@@ -1,7 +1,13 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  import type { VoteView } from "./VoteView";
2
3
  /**
3
4
  * The comment likes response
4
5
  */
5
6
  export type ListCommentLikesResponse = {
6
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;
7
13
  };
@@ -1,5 +1,6 @@
1
1
  import type { CommunitySortType } from "./CommunitySortType";
2
2
  import type { ListingType } from "./ListingType";
3
+ import type { PaginationCursor } from "./PaginationCursor";
3
4
  /**
4
5
  * Fetches a list of communities.
5
6
  */
@@ -12,6 +13,7 @@ export type ListCommunities = {
12
13
  */
13
14
  time_range_seconds?: number;
14
15
  show_nsfw?: boolean;
15
- page?: number;
16
+ page_cursor?: PaginationCursor;
17
+ page_back?: boolean;
16
18
  limit?: number;
17
19
  };
@@ -1,7 +1,13 @@
1
1
  import type { CommunityView } from "./CommunityView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * The response for listing communities.
4
5
  */
5
6
  export type ListCommunitiesResponse = {
6
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;
7
13
  };
@@ -1,9 +1,11 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  export type ListCommunityPendingFollows = {
2
3
  /**
3
4
  * Only shows the unapproved applications
4
5
  */
5
6
  pending_only?: boolean;
6
7
  all_communities?: boolean;
7
- page?: number;
8
+ page_cursor?: PaginationCursor;
9
+ page_back?: boolean;
8
10
  limit?: number;
9
11
  };
@@ -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 });
@@ -1,4 +1,10 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  import type { PendingFollow } from "./PendingFollow";
2
3
  export type ListCommunityPendingFollowsResponse = {
3
4
  items: Array<PendingFollow>;
5
+ /**
6
+ * the pagination cursor to use to fetch the next page
7
+ */
8
+ next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
4
10
  };
@@ -2,8 +2,5 @@
2
2
  * Fetches a list of custom emojis.
3
3
  */
4
4
  export type ListCustomEmojis = {
5
- page?: number;
6
- limit?: number;
7
5
  category?: string;
8
- ignore_page_limits?: boolean;
9
6
  };
@@ -8,4 +8,5 @@ export type ListInbox = {
8
8
  unread_only?: boolean;
9
9
  page_cursor?: PaginationCursor;
10
10
  page_back?: boolean;
11
+ limit?: number;
11
12
  };
@@ -9,4 +9,5 @@ export type ListInboxResponse = {
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
11
  next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -1,7 +1,9 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  /**
2
3
  * Get your user's image / media uploads.
3
4
  */
4
5
  export type ListMedia = {
5
- page?: number;
6
+ page_cursor?: PaginationCursor;
7
+ page_back?: boolean;
6
8
  limit?: number;
7
9
  };
@@ -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 });
@@ -1,4 +1,10 @@
1
1
  import type { LocalImageView } from "./LocalImageView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  export type ListMediaResponse = {
3
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;
4
10
  };
@@ -0,0 +1,4 @@
1
+ import type { PersonId } from "./PersonId";
2
+ export type ListMultiCommunities = {
3
+ owner_id?: PersonId;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type { MultiCommunity } from "./MultiCommunity";
2
+ export type ListMultiCommunitiesResponse = {
3
+ multi_communities: Array<MultiCommunity>;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,4 +15,5 @@ export type ListPersonContent = {
15
15
  username?: string;
16
16
  page_cursor?: PaginationCursor;
17
17
  page_back?: boolean;
18
+ limit?: number;
18
19
  };
@@ -9,4 +9,5 @@ export type ListPersonContentResponse = {
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
11
  next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -7,4 +7,5 @@ export type ListPersonSaved = {
7
7
  type_?: PersonContentType;
8
8
  page_cursor?: PaginationCursor;
9
9
  page_back?: boolean;
10
+ limit?: number;
10
11
  };