lemmy-js-client 0.19.0-rc.9 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +83 -33
- package/dist/http.js +103 -31
- package/dist/index.d.ts +11 -25
- package/dist/{types/others.d.ts → other_types.d.ts} +4 -4
- package/dist/types/ActivityId.d.ts +1 -0
- package/dist/types/AddAdmin.d.ts +0 -1
- package/dist/types/AddModToCommunity.d.ts +0 -1
- package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
- package/dist/types/BanFromCommunity.d.ts +0 -1
- package/dist/types/BanPerson.d.ts +0 -1
- package/dist/types/BlockCommunity.d.ts +0 -1
- package/dist/types/BlockInstance.d.ts +0 -1
- package/dist/types/BlockPerson.d.ts +0 -1
- package/dist/types/ChangePassword.d.ts +0 -1
- package/dist/types/CommentAggregates.d.ts +0 -3
- package/dist/types/CommentReplyView.d.ts +2 -0
- package/dist/types/CommentView.d.ts +2 -0
- package/dist/types/Community.d.ts +0 -2
- package/dist/types/CommunityAggregates.d.ts +0 -2
- package/dist/types/CreateComment.d.ts +0 -1
- package/dist/types/CreateCommentLike.d.ts +0 -1
- package/dist/types/CreateCommentReport.d.ts +0 -1
- package/dist/types/CreateCommunity.d.ts +0 -1
- package/dist/types/CreateCustomEmoji.d.ts +0 -1
- package/dist/types/CreatePost.d.ts +0 -1
- package/dist/types/CreatePostLike.d.ts +0 -1
- package/dist/types/CreatePostReport.d.ts +0 -1
- package/dist/types/CreatePrivateMessage.d.ts +0 -1
- package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/CustomEmojiKeyword.d.ts +0 -1
- package/dist/types/DeleteAccount.d.ts +0 -1
- package/dist/types/DeleteComment.d.ts +0 -1
- package/dist/types/DeleteCommunity.d.ts +0 -1
- package/dist/types/DeleteCustomEmoji.d.ts +0 -1
- package/dist/types/DeletePost.d.ts +0 -1
- package/dist/types/DeletePrivateMessage.d.ts +0 -1
- package/dist/types/DistinguishComment.d.ts +0 -1
- package/dist/types/EditComment.d.ts +0 -1
- package/dist/types/EditCommunity.d.ts +0 -1
- package/dist/types/EditCustomEmoji.d.ts +0 -1
- package/dist/types/EditPost.d.ts +0 -1
- package/dist/types/EditPrivateMessage.d.ts +0 -1
- package/dist/types/EditSite.d.ts +0 -1
- package/dist/types/FeaturePost.d.ts +0 -1
- package/dist/types/FederatedInstances.d.ts +4 -4
- package/dist/types/FollowCommunity.d.ts +0 -1
- package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
- package/dist/types/GetComment.d.ts +0 -1
- package/dist/types/GetComments.d.ts +0 -1
- package/dist/types/GetCommunity.d.ts +0 -1
- package/dist/types/GetModlog.d.ts +0 -1
- package/dist/types/GetPersonDetails.d.ts +0 -1
- package/dist/types/GetPersonMentions.d.ts +0 -1
- package/dist/types/GetPost.d.ts +0 -1
- package/dist/types/GetPosts.d.ts +2 -1
- package/dist/types/GetPostsResponse.d.ts +2 -0
- package/dist/types/GetPrivateMessages.d.ts +0 -1
- package/dist/types/GetReplies.d.ts +0 -1
- package/dist/types/GetReportCount.d.ts +0 -1
- package/dist/types/HideCommunity.d.ts +0 -1
- package/dist/types/ImageUpload.d.ts +7 -0
- package/dist/types/InstanceWithFederationState.d.ts +11 -0
- package/dist/types/LemmyErrorType.d.ts +171 -138
- package/dist/types/ListCommentReports.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListPostReports.d.ts +0 -1
- package/dist/types/ListPrivateMessageReports.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/LocalSite.d.ts +1 -0
- package/dist/types/LocalSiteRateLimit.d.ts +2 -1
- package/dist/types/LocalUser.d.ts +4 -3
- package/dist/types/LockPost.d.ts +0 -1
- package/dist/types/LoginToken.d.ts +7 -0
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
- package/dist/types/MarkPostAsRead.d.ts +2 -2
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
- package/dist/types/ModRemoveCommunity.d.ts +0 -1
- package/dist/types/PaginationCursor.d.ts +1 -0
- package/dist/types/Person.d.ts +0 -1
- package/dist/types/PersonAggregates.d.ts +0 -3
- package/dist/types/PersonMentionView.d.ts +2 -0
- package/dist/types/PersonView.d.ts +1 -0
- package/dist/types/PostAggregates.d.ts +0 -14
- package/dist/types/PostView.d.ts +2 -0
- package/dist/types/PurgeComment.d.ts +0 -1
- package/dist/types/PurgeCommunity.d.ts +0 -1
- package/dist/types/PurgePerson.d.ts +0 -1
- package/dist/types/PurgePost.d.ts +0 -1
- package/dist/types/ReadableFederationState.d.ts +10 -0
- package/dist/types/RemoveComment.d.ts +0 -1
- package/dist/types/RemoveCommunity.d.ts +0 -2
- package/dist/types/RemovePost.d.ts +0 -1
- package/dist/types/ResolveCommentReport.d.ts +0 -1
- package/dist/types/ResolveObject.d.ts +0 -1
- package/dist/types/ResolvePostReport.d.ts +0 -1
- package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
- package/dist/types/SaveComment.d.ts +0 -1
- package/dist/types/SavePost.d.ts +0 -1
- package/dist/types/SaveUserSettings.d.ts +5 -3
- package/dist/types/Search.d.ts +0 -1
- package/dist/types/SiteAggregates.d.ts +0 -1
- package/dist/types/SortType.d.ts +1 -1
- package/dist/types/SuccessResponse.d.ts +3 -0
- package/dist/types/TransferCommunity.d.ts +0 -1
- package/dist/types/UpdateTotp.d.ts +4 -0
- package/dist/types/UpdateTotpResponse.d.ts +3 -0
- package/package.json +12 -12
- package/dist/types/CommunityBlockId.d.ts +0 -1
- package/dist/types/CommunityJoin.d.ts +0 -4
- package/dist/types/CommunityJoinResponse.d.ts +0 -3
- package/dist/types/DeleteAccountResponse.d.ts +0 -1
- package/dist/types/DeleteCustomEmojiResponse.d.ts +0 -5
- package/dist/types/GetBannedPersons.d.ts +0 -3
- package/dist/types/GetCaptcha.d.ts +0 -3
- package/dist/types/GetFederatedInstances.d.ts +0 -3
- package/dist/types/GetSite.d.ts +0 -3
- package/dist/types/GetSite.js +0 -3
- package/dist/types/GetUnreadCount.d.ts +0 -3
- package/dist/types/GetUnreadCount.js +0 -3
- package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
- package/dist/types/GetUnreadRegistrationApplicationCount.js +0 -3
- package/dist/types/LeaveAdmin.d.ts +0 -3
- package/dist/types/LeaveAdmin.js +0 -3
- package/dist/types/MarkAllAsRead.d.ts +0 -3
- package/dist/types/MarkAllAsRead.js +0 -3
- package/dist/types/ModJoin.d.ts +0 -4
- package/dist/types/ModJoinResponse.d.ts +0 -3
- package/dist/types/ModJoinResponse.js +0 -3
- package/dist/types/PasswordResetResponse.d.ts +0 -1
- package/dist/types/PasswordResetResponse.js +0 -3
- package/dist/types/PersonSortType.d.ts +0 -1
- package/dist/types/PersonSortType.js +0 -3
- package/dist/types/PostJoin.d.ts +0 -4
- package/dist/types/PostJoinResponse.d.ts +0 -3
- package/dist/types/PostJoinResponse.js +0 -3
- package/dist/types/PostOrCommentId.d.ts +0 -7
- package/dist/types/PostOrCommentId.js +0 -2
- package/dist/types/PurgeItemResponse.d.ts +0 -3
- package/dist/types/PurgeItemResponse.js +0 -3
- package/dist/types/UserJoin.d.ts +0 -3
- package/dist/types/UserJoin.js +0 -3
- package/dist/types/UserJoinResponse.d.ts +0 -3
- package/dist/types/UserJoinResponse.js +0 -3
- package/dist/types/VerifyEmailResponse.d.ts +0 -1
- package/dist/types/VerifyEmailResponse.js +0 -3
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- /package/dist/{types/others.js → other_types.js} +0 -0
- /package/dist/types/{CommunityBlockId.js → ActivityId.js} +0 -0
- /package/dist/types/{CommunityJoinResponse.js → GenerateTotpSecretResponse.js} +0 -0
- /package/dist/types/{CommunityJoin.js → ImageUpload.js} +0 -0
- /package/dist/types/{DeleteCustomEmojiResponse.js → InstanceWithFederationState.js} +0 -0
- /package/dist/types/{ModJoin.js → LoginToken.js} +0 -0
- /package/dist/types/{DeleteAccountResponse.js → PaginationCursor.js} +0 -0
- /package/dist/types/{PostJoin.js → ReadableFederationState.js} +0 -0
- /package/dist/types/{GetBannedPersons.js → SuccessResponse.js} +0 -0
- /package/dist/types/{GetCaptcha.js → UpdateTotp.js} +0 -0
- /package/dist/types/{GetFederatedInstances.js → UpdateTotpResponse.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from "./http";
|
2
|
+
export { ActivityId } from "./types/ActivityId";
|
2
3
|
export { AddAdmin } from "./types/AddAdmin";
|
3
4
|
export { AddAdminResponse } from "./types/AddAdminResponse";
|
4
5
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -41,12 +42,9 @@ export { CommentSortType } from "./types/CommentSortType";
|
|
41
42
|
export { CommentView } from "./types/CommentView";
|
42
43
|
export { Community } from "./types/Community";
|
43
44
|
export { CommunityAggregates } from "./types/CommunityAggregates";
|
44
|
-
export { CommunityBlockId } from "./types/CommunityBlockId";
|
45
45
|
export { CommunityBlockView } from "./types/CommunityBlockView";
|
46
46
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
47
47
|
export { CommunityId } from "./types/CommunityId";
|
48
|
-
export { CommunityJoin } from "./types/CommunityJoin";
|
49
|
-
export { CommunityJoinResponse } from "./types/CommunityJoinResponse";
|
50
48
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
51
49
|
export { CommunityResponse } from "./types/CommunityResponse";
|
52
50
|
export { CommunityView } from "./types/CommunityView";
|
@@ -67,11 +65,9 @@ export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
|
|
67
65
|
export { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
68
66
|
export { CustomEmojiView } from "./types/CustomEmojiView";
|
69
67
|
export { DeleteAccount } from "./types/DeleteAccount";
|
70
|
-
export { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
71
68
|
export { DeleteComment } from "./types/DeleteComment";
|
72
69
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
73
70
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
74
|
-
export { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
75
71
|
export { DeletePost } from "./types/DeletePost";
|
76
72
|
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
77
73
|
export { DistinguishComment } from "./types/DistinguishComment";
|
@@ -84,15 +80,13 @@ export { EditSite } from "./types/EditSite";
|
|
84
80
|
export { FeaturePost } from "./types/FeaturePost";
|
85
81
|
export { FederatedInstances } from "./types/FederatedInstances";
|
86
82
|
export { FollowCommunity } from "./types/FollowCommunity";
|
87
|
-
export {
|
88
|
-
export { GetCaptcha } from "./types/GetCaptcha";
|
83
|
+
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
89
84
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
90
85
|
export { GetComment } from "./types/GetComment";
|
91
86
|
export { GetComments } from "./types/GetComments";
|
92
87
|
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
93
88
|
export { GetCommunity } from "./types/GetCommunity";
|
94
89
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
95
|
-
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
96
90
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
97
91
|
export { GetModlog } from "./types/GetModlog";
|
98
92
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
@@ -109,21 +103,19 @@ export { GetReplies } from "./types/GetReplies";
|
|
109
103
|
export { GetRepliesResponse } from "./types/GetRepliesResponse";
|
110
104
|
export { GetReportCount } from "./types/GetReportCount";
|
111
105
|
export { GetReportCountResponse } from "./types/GetReportCountResponse";
|
112
|
-
export { GetSite } from "./types/GetSite";
|
113
106
|
export { GetSiteMetadata } from "./types/GetSiteMetadata";
|
114
107
|
export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
115
108
|
export { GetSiteResponse } from "./types/GetSiteResponse";
|
116
|
-
export { GetUnreadCount } from "./types/GetUnreadCount";
|
117
109
|
export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
118
|
-
export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
|
119
110
|
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
120
111
|
export { HideCommunity } from "./types/HideCommunity";
|
112
|
+
export { ImageUpload } from "./types/ImageUpload";
|
121
113
|
export { Instance } from "./types/Instance";
|
122
114
|
export { InstanceBlockView } from "./types/InstanceBlockView";
|
123
115
|
export { InstanceId } from "./types/InstanceId";
|
116
|
+
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
124
117
|
export { Language } from "./types/Language";
|
125
118
|
export { LanguageId } from "./types/LanguageId";
|
126
|
-
export { LeaveAdmin } from "./types/LeaveAdmin";
|
127
119
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
128
120
|
export { ListCommentReports } from "./types/ListCommentReports";
|
129
121
|
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
@@ -145,7 +137,7 @@ export { LocalUserView } from "./types/LocalUserView";
|
|
145
137
|
export { LockPost } from "./types/LockPost";
|
146
138
|
export { Login } from "./types/Login";
|
147
139
|
export { LoginResponse } from "./types/LoginResponse";
|
148
|
-
export {
|
140
|
+
export { LoginToken } from "./types/LoginToken";
|
149
141
|
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
150
142
|
export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
151
143
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
@@ -162,8 +154,6 @@ export { ModFeaturePost } from "./types/ModFeaturePost";
|
|
162
154
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
163
155
|
export { ModHideCommunity } from "./types/ModHideCommunity";
|
164
156
|
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
165
|
-
export { ModJoin } from "./types/ModJoin";
|
166
|
-
export { ModJoinResponse } from "./types/ModJoinResponse";
|
167
157
|
export { ModLockPost } from "./types/ModLockPost";
|
168
158
|
export { ModLockPostView } from "./types/ModLockPostView";
|
169
159
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
@@ -177,9 +167,9 @@ export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
177
167
|
export { ModlogActionType } from "./types/ModlogActionType";
|
178
168
|
export { ModlogListParams } from "./types/ModlogListParams";
|
179
169
|
export { MyUserInfo } from "./types/MyUserInfo";
|
170
|
+
export { PaginationCursor } from "./types/PaginationCursor";
|
180
171
|
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
181
172
|
export { PasswordReset } from "./types/PasswordReset";
|
182
|
-
export { PasswordResetResponse } from "./types/PasswordResetResponse";
|
183
173
|
export { Person } from "./types/Person";
|
184
174
|
export { PersonAggregates } from "./types/PersonAggregates";
|
185
175
|
export { PersonBlockId } from "./types/PersonBlockId";
|
@@ -189,16 +179,12 @@ export { PersonMention } from "./types/PersonMention";
|
|
189
179
|
export { PersonMentionId } from "./types/PersonMentionId";
|
190
180
|
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
191
181
|
export { PersonMentionView } from "./types/PersonMentionView";
|
192
|
-
export { PersonSortType } from "./types/PersonSortType";
|
193
182
|
export { PersonView } from "./types/PersonView";
|
194
183
|
export { Post } from "./types/Post";
|
195
184
|
export { PostAggregates } from "./types/PostAggregates";
|
196
185
|
export { PostFeatureType } from "./types/PostFeatureType";
|
197
186
|
export { PostId } from "./types/PostId";
|
198
|
-
export { PostJoin } from "./types/PostJoin";
|
199
|
-
export { PostJoinResponse } from "./types/PostJoinResponse";
|
200
187
|
export { PostListingMode } from "./types/PostListingMode";
|
201
|
-
export { PostOrCommentId } from "./types/PostOrCommentId";
|
202
188
|
export { PostReport } from "./types/PostReport";
|
203
189
|
export { PostReportId } from "./types/PostReportId";
|
204
190
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -216,9 +202,9 @@ export { PrivateMessageView } from "./types/PrivateMessageView";
|
|
216
202
|
export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
217
203
|
export { PurgeComment } from "./types/PurgeComment";
|
218
204
|
export { PurgeCommunity } from "./types/PurgeCommunity";
|
219
|
-
export { PurgeItemResponse } from "./types/PurgeItemResponse";
|
220
205
|
export { PurgePerson } from "./types/PurgePerson";
|
221
206
|
export { PurgePost } from "./types/PurgePost";
|
207
|
+
export { ReadableFederationState } from "./types/ReadableFederationState";
|
222
208
|
export { Register } from "./types/Register";
|
223
209
|
export { RegistrationApplication } from "./types/RegistrationApplication";
|
224
210
|
export { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse";
|
@@ -246,10 +232,10 @@ export { SiteResponse } from "./types/SiteResponse";
|
|
246
232
|
export { SiteView } from "./types/SiteView";
|
247
233
|
export { SortType } from "./types/SortType";
|
248
234
|
export { SubscribedType } from "./types/SubscribedType";
|
235
|
+
export { SuccessResponse } from "./types/SuccessResponse";
|
249
236
|
export { Tagline } from "./types/Tagline";
|
250
237
|
export { TransferCommunity } from "./types/TransferCommunity";
|
251
|
-
export {
|
252
|
-
export {
|
238
|
+
export { UpdateTotp } from "./types/UpdateTotp";
|
239
|
+
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
253
240
|
export { VerifyEmail } from "./types/VerifyEmail";
|
254
|
-
export {
|
255
|
-
export { UploadImage, UploadImageResponse, ImageFile } from "./types/others";
|
241
|
+
export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
|
@@ -2,10 +2,6 @@
|
|
2
2
|
export declare const VERSION = "v3";
|
3
3
|
export interface UploadImage {
|
4
4
|
image: File | Buffer;
|
5
|
-
/**
|
6
|
-
* Optional if cookie with jwt set is already present. Otherwise, auth is required.
|
7
|
-
*/
|
8
|
-
auth?: string;
|
9
5
|
}
|
10
6
|
export interface UploadImageResponse {
|
11
7
|
/**
|
@@ -20,3 +16,7 @@ export interface ImageFile {
|
|
20
16
|
file: string;
|
21
17
|
delete_token: string;
|
22
18
|
}
|
19
|
+
export interface DeleteImage {
|
20
|
+
token: string;
|
21
|
+
filename: string;
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ActivityId = number;
|
package/dist/types/AddAdmin.d.ts
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
import type { CommentId } from "./CommentId";
|
2
2
|
export interface CommentAggregates {
|
3
|
-
id: number;
|
4
3
|
comment_id: CommentId;
|
5
4
|
score: number;
|
6
5
|
upvotes: number;
|
7
6
|
downvotes: number;
|
8
7
|
published: string;
|
9
8
|
child_count: number;
|
10
|
-
hot_rank: number;
|
11
|
-
controversy_rank: number;
|
12
9
|
}
|
@@ -14,6 +14,8 @@ export interface CommentReplyView {
|
|
14
14
|
recipient: Person;
|
15
15
|
counts: CommentAggregates;
|
16
16
|
creator_banned_from_community: boolean;
|
17
|
+
creator_is_moderator: boolean;
|
18
|
+
creator_is_admin: boolean;
|
17
19
|
subscribed: SubscribedType;
|
18
20
|
saved: boolean;
|
19
21
|
creator_blocked: boolean;
|
@@ -11,6 +11,8 @@ export interface CommentView {
|
|
11
11
|
community: Community;
|
12
12
|
counts: CommentAggregates;
|
13
13
|
creator_banned_from_community: boolean;
|
14
|
+
creator_is_moderator: boolean;
|
15
|
+
creator_is_admin: boolean;
|
14
16
|
subscribed: SubscribedType;
|
15
17
|
saved: boolean;
|
16
18
|
creator_blocked: boolean;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
export interface CommunityAggregates {
|
3
|
-
id: number;
|
4
3
|
community_id: CommunityId;
|
5
4
|
subscribers: number;
|
6
5
|
posts: number;
|
@@ -10,5 +9,4 @@ export interface CommunityAggregates {
|
|
10
9
|
users_active_week: number;
|
11
10
|
users_active_month: number;
|
12
11
|
users_active_half_year: number;
|
13
|
-
hot_rank: number;
|
14
12
|
}
|
package/dist/types/EditPost.d.ts
CHANGED
package/dist/types/EditSite.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { InstanceWithFederationState } from "./InstanceWithFederationState";
|
2
2
|
export interface FederatedInstances {
|
3
|
-
linked: Array<
|
4
|
-
allowed: Array<
|
5
|
-
blocked: Array<
|
3
|
+
linked: Array<InstanceWithFederationState>;
|
4
|
+
allowed: Array<InstanceWithFederationState>;
|
5
|
+
blocked: Array<InstanceWithFederationState>;
|
6
6
|
}
|
package/dist/types/GetPost.d.ts
CHANGED
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
4
|
import type { SortType } from "./SortType";
|
4
5
|
export interface GetPosts {
|
5
6
|
type_?: ListingType;
|
@@ -11,5 +12,5 @@ export interface GetPosts {
|
|
11
12
|
saved_only?: boolean;
|
12
13
|
liked_only?: boolean;
|
13
14
|
disliked_only?: boolean;
|
14
|
-
|
15
|
+
page_cursor?: PaginationCursor;
|
15
16
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { InstanceId } from "./InstanceId";
|
2
|
+
import type { ReadableFederationState } from "./ReadableFederationState";
|
3
|
+
export interface InstanceWithFederationState {
|
4
|
+
id: InstanceId;
|
5
|
+
domain: string;
|
6
|
+
published: string;
|
7
|
+
updated?: string;
|
8
|
+
software?: string;
|
9
|
+
version?: string;
|
10
|
+
federation_state?: ReadableFederationState;
|
11
|
+
}
|