lemmy-js-client 1.0.0-alpha.0 → 1.0.0-alpha.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.
- package/dist/http.d.ts +26 -6
- package/dist/http.js +262 -237
- package/dist/index.d.ts +5 -1
- package/dist/types/BannedPersonsResponse.d.ts +1 -0
- package/dist/types/Comment.d.ts +5 -0
- package/dist/types/CommentReplyView.d.ts +5 -0
- package/dist/types/CommentSlimView.d.ts +3 -0
- package/dist/types/CommentView.d.ts +5 -0
- package/dist/types/Community.d.ts +1 -0
- package/dist/types/CommunityView.d.ts +2 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateCommunityTag.js +2 -0
- package/dist/types/CreateSite.d.ts +1 -1
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/DeleteCommunityTag.js +2 -0
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -5
- package/dist/types/GetComments.d.ts +3 -1
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetPosts.d.ts +3 -9
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/InstanceActions.d.ts +8 -0
- package/dist/types/LemmyErrorType.d.ts +91 -22
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/LocalSite.d.ts +4 -5
- package/dist/types/LocalUserView.d.ts +2 -0
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/Person.d.ts +0 -8
- package/dist/types/PersonCommentMentionView.d.ts +3 -0
- package/dist/types/PersonPostMentionView.d.ts +5 -0
- package/dist/types/PersonView.d.ts +4 -0
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +5 -0
- package/dist/types/PostView.d.ts +5 -0
- package/dist/types/SaveUserSettings.d.ts +1 -0
- package/dist/types/Search.d.ts +1 -0
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/SiteView.d.ts +2 -0
- package/dist/types/Tag.d.ts +8 -6
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +8 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +2 -2
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- /package/dist/types/{PostPaginationCursor.js → PluginMetadata.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -72,6 +72,7 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
|
|
72
72
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
73
73
|
export { CreateCommunity } from "./types/CreateCommunity";
|
74
74
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
75
|
+
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
75
76
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
76
77
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
77
78
|
export { CreatePost } from "./types/CreatePost";
|
@@ -90,6 +91,7 @@ export { DbUrl } from "./types/DbUrl";
|
|
90
91
|
export { DeleteAccount } from "./types/DeleteAccount";
|
91
92
|
export { DeleteComment } from "./types/DeleteComment";
|
92
93
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
94
|
+
export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
93
95
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
94
96
|
export { DeleteImageParams } from "./types/DeleteImageParams";
|
95
97
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
@@ -256,12 +258,12 @@ export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
|
256
258
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
257
259
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
258
260
|
export { PersonView } from "./types/PersonView";
|
261
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
259
262
|
export { Post } from "./types/Post";
|
260
263
|
export { PostActions } from "./types/PostActions";
|
261
264
|
export { PostFeatureType } from "./types/PostFeatureType";
|
262
265
|
export { PostId } from "./types/PostId";
|
263
266
|
export { PostListingMode } from "./types/PostListingMode";
|
264
|
-
export { PostPaginationCursor } from "./types/PostPaginationCursor";
|
265
267
|
export { PostReport } from "./types/PostReport";
|
266
268
|
export { PostReportId } from "./types/PostReportId";
|
267
269
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -320,7 +322,9 @@ export { TagId } from "./types/TagId";
|
|
320
322
|
export { Tagline } from "./types/Tagline";
|
321
323
|
export { TaglineId } from "./types/TaglineId";
|
322
324
|
export { TaglineResponse } from "./types/TaglineResponse";
|
325
|
+
export { TagsView } from "./types/TagsView";
|
323
326
|
export { TransferCommunity } from "./types/TransferCommunity";
|
327
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
324
328
|
export { UpdateTagline } from "./types/UpdateTagline";
|
325
329
|
export { UpdateTotp } from "./types/UpdateTotp";
|
326
330
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
package/dist/types/Comment.d.ts
CHANGED
@@ -48,4 +48,9 @@ export type Comment = {
|
|
48
48
|
child_count: number;
|
49
49
|
report_count: number;
|
50
50
|
unresolved_report_count: number;
|
51
|
+
/**
|
52
|
+
* If a local user comments in a remote community, the comment is hidden until it is confirmed
|
53
|
+
* accepted by the community (by receiving it back via federation).
|
54
|
+
*/
|
55
|
+
federation_pending: boolean;
|
51
56
|
};
|
@@ -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
|
*/
|
@@ -21,7 +22,11 @@ export type CommentReplyView = {
|
|
21
22
|
comment_actions?: CommentActions;
|
22
23
|
person_actions?: PersonActions;
|
23
24
|
instance_actions?: InstanceActions;
|
25
|
+
creator_home_instance_actions?: InstanceActions;
|
26
|
+
creator_local_instance_actions?: InstanceActions;
|
24
27
|
creator_community_actions?: CommunityActions;
|
25
28
|
creator_is_admin: boolean;
|
29
|
+
post_tags: TagsView;
|
26
30
|
can_mod: boolean;
|
31
|
+
creator_banned: boolean;
|
27
32
|
};
|
@@ -14,6 +14,9 @@ export type CommentSlimView = {
|
|
14
14
|
person_actions?: PersonActions;
|
15
15
|
creator_community_actions?: CommunityActions;
|
16
16
|
instance_actions?: InstanceActions;
|
17
|
+
creator_home_instance_actions?: InstanceActions;
|
18
|
+
creator_local_instance_actions?: InstanceActions;
|
17
19
|
creator_is_admin: boolean;
|
18
20
|
can_mod: boolean;
|
21
|
+
creator_banned: boolean;
|
19
22
|
};
|
@@ -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
|
*/
|
@@ -18,7 +19,11 @@ export type CommentView = {
|
|
18
19
|
comment_actions?: CommentActions;
|
19
20
|
person_actions?: PersonActions;
|
20
21
|
instance_actions?: InstanceActions;
|
22
|
+
creator_home_instance_actions?: InstanceActions;
|
23
|
+
creator_local_instance_actions?: InstanceActions;
|
21
24
|
creator_community_actions?: CommunityActions;
|
22
25
|
creator_is_admin: boolean;
|
26
|
+
post_tags: TagsView;
|
23
27
|
can_mod: boolean;
|
28
|
+
creator_banned: boolean;
|
24
29
|
};
|
@@ -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
|
};
|
package/dist/types/EditPost.d.ts
CHANGED
@@ -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
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -158,13 +158,12 @@ export type EditSite = {
|
|
158
158
|
* What kind of comment downvotes your site allows.
|
159
159
|
*/
|
160
160
|
comment_downvotes?: FederationMode;
|
161
|
-
/**
|
162
|
-
* If this is true, users will never see the dialog asking to support Lemmy development with
|
163
|
-
* donations.
|
164
|
-
*/
|
165
|
-
disable_donation_dialog?: boolean;
|
166
161
|
/**
|
167
162
|
* Block NSFW content being created
|
168
163
|
*/
|
169
164
|
disallow_nsfw_content?: boolean;
|
165
|
+
/**
|
166
|
+
* Dont send email notifications to users for new replies, mentions etc
|
167
|
+
*/
|
168
|
+
disable_email_notifications?: boolean;
|
170
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
|
-
|
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
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
-
import type {
|
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?:
|
42
|
+
page_cursor?: PaginationCursor;
|
50
43
|
page_back?: boolean;
|
44
|
+
limit?: number;
|
51
45
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
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?:
|
11
|
+
next_page?: PaginationCursor;
|
12
|
+
prev_page?: PaginationCursor;
|
12
13
|
};
|
@@ -3,6 +3,7 @@ import type { LanguageId } from "./LanguageId";
|
|
3
3
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
4
4
|
import type { OAuthProvider } from "./OAuthProvider";
|
5
5
|
import type { PersonView } from "./PersonView";
|
6
|
+
import type { PluginMetadata } from "./PluginMetadata";
|
6
7
|
import type { PublicOAuthProvider } from "./PublicOAuthProvider";
|
7
8
|
import type { SiteView } from "./SiteView";
|
8
9
|
import type { Tagline } from "./Tagline";
|
@@ -26,4 +27,5 @@ export type GetSiteResponse = {
|
|
26
27
|
admin_oauth_providers: Array<OAuthProvider>;
|
27
28
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
28
29
|
image_upload_disabled: boolean;
|
30
|
+
active_plugins: Array<PluginMetadata>;
|
29
31
|
};
|
@@ -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
|
} | {
|
@@ -75,8 +79,6 @@ export type LemmyErrorType = {
|
|
75
79
|
error: "honeypot_failed";
|
76
80
|
} | {
|
77
81
|
error: "registration_application_is_pending";
|
78
|
-
} | {
|
79
|
-
error: "cant_enable_private_instance_and_federation_together";
|
80
82
|
} | {
|
81
83
|
error: "locked";
|
82
84
|
} | {
|
@@ -91,6 +93,8 @@ export type LemmyErrorType = {
|
|
91
93
|
error: "community_already_exists";
|
92
94
|
} | {
|
93
95
|
error: "language_not_allowed";
|
96
|
+
} | {
|
97
|
+
error: "couldnt_update_languages";
|
94
98
|
} | {
|
95
99
|
error: "couldnt_update_post";
|
96
100
|
} | {
|
@@ -121,8 +125,6 @@ export type LemmyErrorType = {
|
|
121
125
|
error: "no_id_given";
|
122
126
|
} | {
|
123
127
|
error: "incorrect_login";
|
124
|
-
} | {
|
125
|
-
error: "object_not_local";
|
126
128
|
} | {
|
127
129
|
error: "no_email_setup";
|
128
130
|
} | {
|
@@ -178,8 +180,6 @@ export type LemmyErrorType = {
|
|
178
180
|
error: "community_follower_already_exists";
|
179
181
|
} | {
|
180
182
|
error: "person_block_already_exists";
|
181
|
-
} | {
|
182
|
-
error: "user_already_exists";
|
183
183
|
} | {
|
184
184
|
error: "couldnt_like_post";
|
185
185
|
} | {
|
@@ -193,27 +193,21 @@ export type LemmyErrorType = {
|
|
193
193
|
} | {
|
194
194
|
error: "couldnt_update_community";
|
195
195
|
} | {
|
196
|
-
error: "
|
196
|
+
error: "couldnt_create_person_comment_mention";
|
197
197
|
} | {
|
198
|
-
error: "
|
198
|
+
error: "couldnt_update_person_comment_mention";
|
199
199
|
} | {
|
200
|
-
error: "
|
200
|
+
error: "couldnt_create_person_post_mention";
|
201
201
|
} | {
|
202
|
-
error: "
|
202
|
+
error: "couldnt_update_person_post_mention";
|
203
203
|
} | {
|
204
|
-
error: "
|
205
|
-
} | {
|
206
|
-
error: "system_err_login";
|
204
|
+
error: "couldnt_create_post";
|
207
205
|
} | {
|
208
|
-
error: "
|
206
|
+
error: "couldnt_create_private_message";
|
209
207
|
} | {
|
210
|
-
error: "
|
208
|
+
error: "couldnt_update_private_message";
|
211
209
|
} | {
|
212
210
|
error: "blocked_url";
|
213
|
-
} | {
|
214
|
-
error: "couldnt_get_comments";
|
215
|
-
} | {
|
216
|
-
error: "couldnt_get_posts";
|
217
211
|
} | {
|
218
212
|
error: "invalid_url";
|
219
213
|
} | {
|
@@ -255,6 +249,10 @@ export type LemmyErrorType = {
|
|
255
249
|
error: "invalid_unix_time";
|
256
250
|
} | {
|
257
251
|
error: "invalid_bot_action";
|
252
|
+
} | {
|
253
|
+
error: "invalid_tag_name";
|
254
|
+
} | {
|
255
|
+
error: "tag_not_in_community";
|
258
256
|
} | {
|
259
257
|
error: "cant_block_local_instance";
|
260
258
|
} | {
|
@@ -269,7 +267,9 @@ export type LemmyErrorType = {
|
|
269
267
|
} | {
|
270
268
|
error: "oauth_registration_closed";
|
271
269
|
} | {
|
272
|
-
error: "
|
270
|
+
error: "couldnt_create_oauth_provider";
|
271
|
+
} | {
|
272
|
+
error: "couldnt_update_oauth_provider";
|
273
273
|
} | {
|
274
274
|
error: "not_found";
|
275
275
|
} | {
|
@@ -287,4 +287,73 @@ export type LemmyErrorType = {
|
|
287
287
|
};
|
288
288
|
} | {
|
289
289
|
error: "couldnt_parse_pagination_token";
|
290
|
+
} | {
|
291
|
+
error: "plugin_error";
|
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";
|
290
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
|
-
|
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
|
-
|
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
|
-
|
8
|
+
page_cursor?: PaginationCursor;
|
9
|
+
page_back?: boolean;
|
8
10
|
limit?: number;
|
9
11
|
};
|
@@ -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
|
};
|
package/dist/types/ListMedia.js
CHANGED
@@ -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
|
};
|