lemmy-js-client 0.17.2-rc.9 → 0.18.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/http.d.ts +27 -12
  2. package/dist/http.js +351 -375
  3. package/dist/index.d.ts +248 -1
  4. package/dist/index.js +3 -1
  5. package/dist/types/BanFromCommunity.d.ts +1 -1
  6. package/dist/types/BanPerson.d.ts +1 -1
  7. package/dist/types/CommentAggregates.d.ts +4 -3
  8. package/dist/types/CommunityAggregates.d.ts +8 -7
  9. package/dist/types/GetCaptcha.d.ts +3 -1
  10. package/dist/types/GetComments.d.ts +2 -2
  11. package/dist/types/GetCommunityResponse.d.ts +0 -2
  12. package/dist/types/GetFederatedInstances.d.ts +3 -1
  13. package/dist/types/GetModlog.d.ts +2 -2
  14. package/dist/types/GetPersonDetails.d.ts +2 -2
  15. package/dist/types/GetPersonMentions.d.ts +2 -2
  16. package/dist/types/GetPost.d.ts +4 -2
  17. package/dist/types/GetPostResponse.d.ts +0 -1
  18. package/dist/types/GetPosts.d.ts +2 -2
  19. package/dist/types/GetPrivateMessages.d.ts +2 -2
  20. package/dist/types/GetReplies.d.ts +2 -2
  21. package/dist/types/GetReportCountResponse.d.ts +3 -3
  22. package/dist/types/GetSiteResponse.d.ts +0 -1
  23. package/dist/types/GetUnreadCountResponse.d.ts +3 -3
  24. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +1 -1
  25. package/dist/types/ListCommentReports.d.ts +2 -2
  26. package/dist/types/ListCommunities.d.ts +2 -2
  27. package/dist/types/ListPostReports.d.ts +2 -2
  28. package/dist/types/ListPrivateMessageReports.d.ts +2 -2
  29. package/dist/types/ListRegistrationApplications.d.ts +2 -2
  30. package/dist/types/LocalSite.d.ts +0 -1
  31. package/dist/types/ModlogListParams.d.ts +2 -2
  32. package/dist/types/PersonAggregates.d.ts +4 -4
  33. package/dist/types/PostAggregates.d.ts +6 -4
  34. package/dist/types/PostView.d.ts +1 -1
  35. package/dist/types/RemoveCommunity.d.ts +1 -1
  36. package/dist/types/Search.d.ts +2 -2
  37. package/dist/types/SiteAggregates.d.ts +8 -8
  38. package/dist/types/SiteResponse.d.ts +2 -0
  39. package/dist/types/others.d.ts +2 -1
  40. package/dist/types/others.js +1 -0
  41. package/dist/websocket.d.ts +7 -1
  42. package/dist/websocket.js +185 -181
  43. package/package.json +14 -15
package/dist/index.d.ts CHANGED
@@ -1,2 +1,249 @@
1
1
  export * from "./http";
2
- export * from "./websocket";
2
+ export { AddAdmin } from "./types/AddAdmin";
3
+ export { AddAdminResponse } from "./types/AddAdminResponse";
4
+ export { AddModToCommunity } from "./types/AddModToCommunity";
5
+ export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
6
+ export { AdminPurgeComment } from "./types/AdminPurgeComment";
7
+ export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
8
+ export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
9
+ export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
10
+ export { AdminPurgePerson } from "./types/AdminPurgePerson";
11
+ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
12
+ export { AdminPurgePost } from "./types/AdminPurgePost";
13
+ export { AdminPurgePostView } from "./types/AdminPurgePostView";
14
+ export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
15
+ export { BanFromCommunity } from "./types/BanFromCommunity";
16
+ export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
17
+ export { BanPerson } from "./types/BanPerson";
18
+ export { BanPersonResponse } from "./types/BanPersonResponse";
19
+ export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
20
+ export { BlockCommunity } from "./types/BlockCommunity";
21
+ export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
22
+ export { BlockPerson } from "./types/BlockPerson";
23
+ export { BlockPersonResponse } from "./types/BlockPersonResponse";
24
+ export { CaptchaResponse } from "./types/CaptchaResponse";
25
+ export { ChangePassword } from "./types/ChangePassword";
26
+ export { Comment } from "./types/Comment";
27
+ export { CommentAggregates } from "./types/CommentAggregates";
28
+ export { CommentId } from "./types/CommentId";
29
+ export { CommentReply } from "./types/CommentReply";
30
+ export { CommentReplyId } from "./types/CommentReplyId";
31
+ export { CommentReplyResponse } from "./types/CommentReplyResponse";
32
+ export { CommentReplyView } from "./types/CommentReplyView";
33
+ export { CommentReport } from "./types/CommentReport";
34
+ export { CommentReportId } from "./types/CommentReportId";
35
+ export { CommentReportResponse } from "./types/CommentReportResponse";
36
+ export { CommentReportView } from "./types/CommentReportView";
37
+ export { CommentResponse } from "./types/CommentResponse";
38
+ export { CommentSortType } from "./types/CommentSortType";
39
+ export { CommentView } from "./types/CommentView";
40
+ export { Community } from "./types/Community";
41
+ export { CommunityAggregates } from "./types/CommunityAggregates";
42
+ export { CommunityBlockId } from "./types/CommunityBlockId";
43
+ export { CommunityBlockView } from "./types/CommunityBlockView";
44
+ export { CommunityFollowerView } from "./types/CommunityFollowerView";
45
+ export { CommunityId } from "./types/CommunityId";
46
+ export { CommunityJoin } from "./types/CommunityJoin";
47
+ export { CommunityJoinResponse } from "./types/CommunityJoinResponse";
48
+ export { CommunityModeratorView } from "./types/CommunityModeratorView";
49
+ export { CommunityResponse } from "./types/CommunityResponse";
50
+ export { CommunityView } from "./types/CommunityView";
51
+ export { CreateComment } from "./types/CreateComment";
52
+ export { CreateCommentLike } from "./types/CreateCommentLike";
53
+ export { CreateCommentReport } from "./types/CreateCommentReport";
54
+ export { CreateCommunity } from "./types/CreateCommunity";
55
+ export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
56
+ export { CreatePost } from "./types/CreatePost";
57
+ export { CreatePostLike } from "./types/CreatePostLike";
58
+ export { CreatePostReport } from "./types/CreatePostReport";
59
+ export { CreatePrivateMessage } from "./types/CreatePrivateMessage";
60
+ export { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
61
+ export { CreateSite } from "./types/CreateSite";
62
+ export { CustomEmoji } from "./types/CustomEmoji";
63
+ export { CustomEmojiId } from "./types/CustomEmojiId";
64
+ export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
65
+ export { CustomEmojiResponse } from "./types/CustomEmojiResponse";
66
+ export { CustomEmojiView } from "./types/CustomEmojiView";
67
+ export { DeleteAccount } from "./types/DeleteAccount";
68
+ export { DeleteAccountResponse } from "./types/DeleteAccountResponse";
69
+ export { DeleteComment } from "./types/DeleteComment";
70
+ export { DeleteCommunity } from "./types/DeleteCommunity";
71
+ export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
72
+ export { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
73
+ export { DeletePost } from "./types/DeletePost";
74
+ export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
75
+ export { DistinguishComment } from "./types/DistinguishComment";
76
+ export { EditComment } from "./types/EditComment";
77
+ export { EditCommunity } from "./types/EditCommunity";
78
+ export { EditCustomEmoji } from "./types/EditCustomEmoji";
79
+ export { EditPost } from "./types/EditPost";
80
+ export { EditPrivateMessage } from "./types/EditPrivateMessage";
81
+ export { EditSite } from "./types/EditSite";
82
+ export { FeaturePost } from "./types/FeaturePost";
83
+ export { FederatedInstances } from "./types/FederatedInstances";
84
+ export { FollowCommunity } from "./types/FollowCommunity";
85
+ export { GetBannedPersons } from "./types/GetBannedPersons";
86
+ export { GetCaptcha } from "./types/GetCaptcha";
87
+ export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
88
+ export { GetComment } from "./types/GetComment";
89
+ export { GetComments } from "./types/GetComments";
90
+ export { GetCommentsResponse } from "./types/GetCommentsResponse";
91
+ export { GetCommunity } from "./types/GetCommunity";
92
+ export { GetCommunityResponse } from "./types/GetCommunityResponse";
93
+ export { GetFederatedInstances } from "./types/GetFederatedInstances";
94
+ export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
95
+ export { GetModlog } from "./types/GetModlog";
96
+ export { GetModlogResponse } from "./types/GetModlogResponse";
97
+ export { GetPersonDetails } from "./types/GetPersonDetails";
98
+ export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
99
+ export { GetPersonMentions } from "./types/GetPersonMentions";
100
+ export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
101
+ export { GetPost } from "./types/GetPost";
102
+ export { GetPostResponse } from "./types/GetPostResponse";
103
+ export { GetPosts } from "./types/GetPosts";
104
+ export { GetPostsResponse } from "./types/GetPostsResponse";
105
+ export { GetPrivateMessages } from "./types/GetPrivateMessages";
106
+ export { GetReplies } from "./types/GetReplies";
107
+ export { GetRepliesResponse } from "./types/GetRepliesResponse";
108
+ export { GetReportCount } from "./types/GetReportCount";
109
+ export { GetReportCountResponse } from "./types/GetReportCountResponse";
110
+ export { GetSite } from "./types/GetSite";
111
+ export { GetSiteMetadata } from "./types/GetSiteMetadata";
112
+ export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
113
+ export { GetSiteResponse } from "./types/GetSiteResponse";
114
+ export { GetUnreadCount } from "./types/GetUnreadCount";
115
+ export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
116
+ export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
117
+ export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
118
+ export { HideCommunity } from "./types/HideCommunity";
119
+ export { Instance } from "./types/Instance";
120
+ export { InstanceId } from "./types/InstanceId";
121
+ export { Language } from "./types/Language";
122
+ export { LanguageId } from "./types/LanguageId";
123
+ export { LeaveAdmin } from "./types/LeaveAdmin";
124
+ export { ListCommentReports } from "./types/ListCommentReports";
125
+ export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
126
+ export { ListCommunities } from "./types/ListCommunities";
127
+ export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
128
+ export { ListPostReports } from "./types/ListPostReports";
129
+ export { ListPostReportsResponse } from "./types/ListPostReportsResponse";
130
+ export { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
131
+ export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
132
+ export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
133
+ export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
134
+ export { ListingType } from "./types/ListingType";
135
+ export { LocalSite } from "./types/LocalSite";
136
+ export { LocalSiteId } from "./types/LocalSiteId";
137
+ export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
138
+ export { LocalUser } from "./types/LocalUser";
139
+ export { LocalUserId } from "./types/LocalUserId";
140
+ export { LocalUserView } from "./types/LocalUserView";
141
+ export { LockPost } from "./types/LockPost";
142
+ export { Login } from "./types/Login";
143
+ export { LoginResponse } from "./types/LoginResponse";
144
+ export { MarkAllAsRead } from "./types/MarkAllAsRead";
145
+ export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
146
+ export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
147
+ export { MarkPostAsRead } from "./types/MarkPostAsRead";
148
+ export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
149
+ export { ModAdd } from "./types/ModAdd";
150
+ export { ModAddCommunity } from "./types/ModAddCommunity";
151
+ export { ModAddCommunityView } from "./types/ModAddCommunityView";
152
+ export { ModAddView } from "./types/ModAddView";
153
+ export { ModBan } from "./types/ModBan";
154
+ export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
155
+ export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
156
+ export { ModBanView } from "./types/ModBanView";
157
+ export { ModFeaturePost } from "./types/ModFeaturePost";
158
+ export { ModFeaturePostView } from "./types/ModFeaturePostView";
159
+ export { ModHideCommunity } from "./types/ModHideCommunity";
160
+ export { ModHideCommunityView } from "./types/ModHideCommunityView";
161
+ export { ModJoin } from "./types/ModJoin";
162
+ export { ModJoinResponse } from "./types/ModJoinResponse";
163
+ export { ModLockPost } from "./types/ModLockPost";
164
+ export { ModLockPostView } from "./types/ModLockPostView";
165
+ export { ModRemoveComment } from "./types/ModRemoveComment";
166
+ export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
167
+ export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
168
+ export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
169
+ export { ModRemovePost } from "./types/ModRemovePost";
170
+ export { ModRemovePostView } from "./types/ModRemovePostView";
171
+ export { ModTransferCommunity } from "./types/ModTransferCommunity";
172
+ export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
173
+ export { ModlogActionType } from "./types/ModlogActionType";
174
+ export { ModlogListParams } from "./types/ModlogListParams";
175
+ export { MyUserInfo } from "./types/MyUserInfo";
176
+ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
177
+ export { PasswordReset } from "./types/PasswordReset";
178
+ export { PasswordResetResponse } from "./types/PasswordResetResponse";
179
+ export { Person } from "./types/Person";
180
+ export { PersonAggregates } from "./types/PersonAggregates";
181
+ export { PersonBlockId } from "./types/PersonBlockId";
182
+ export { PersonBlockView } from "./types/PersonBlockView";
183
+ export { PersonId } from "./types/PersonId";
184
+ export { PersonMention } from "./types/PersonMention";
185
+ export { PersonMentionId } from "./types/PersonMentionId";
186
+ export { PersonMentionResponse } from "./types/PersonMentionResponse";
187
+ export { PersonMentionView } from "./types/PersonMentionView";
188
+ export { PersonView } from "./types/PersonView";
189
+ export { Post } from "./types/Post";
190
+ export { PostAggregates } from "./types/PostAggregates";
191
+ export { PostFeatureType } from "./types/PostFeatureType";
192
+ export { PostId } from "./types/PostId";
193
+ export { PostJoin } from "./types/PostJoin";
194
+ export { PostJoinResponse } from "./types/PostJoinResponse";
195
+ export { PostOrCommentId } from "./types/PostOrCommentId";
196
+ export { PostReport } from "./types/PostReport";
197
+ export { PostReportId } from "./types/PostReportId";
198
+ export { PostReportResponse } from "./types/PostReportResponse";
199
+ export { PostReportView } from "./types/PostReportView";
200
+ export { PostResponse } from "./types/PostResponse";
201
+ export { PostView } from "./types/PostView";
202
+ export { PrivateMessage } from "./types/PrivateMessage";
203
+ export { PrivateMessageId } from "./types/PrivateMessageId";
204
+ export { PrivateMessageReport } from "./types/PrivateMessageReport";
205
+ export { PrivateMessageReportId } from "./types/PrivateMessageReportId";
206
+ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse";
207
+ export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
208
+ export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
209
+ export { PrivateMessageView } from "./types/PrivateMessageView";
210
+ export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
211
+ export { PurgeComment } from "./types/PurgeComment";
212
+ export { PurgeCommunity } from "./types/PurgeCommunity";
213
+ export { PurgeItemResponse } from "./types/PurgeItemResponse";
214
+ export { PurgePerson } from "./types/PurgePerson";
215
+ export { PurgePost } from "./types/PurgePost";
216
+ export { Register } from "./types/Register";
217
+ export { RegistrationApplication } from "./types/RegistrationApplication";
218
+ export { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse";
219
+ export { RegistrationApplicationView } from "./types/RegistrationApplicationView";
220
+ export { RegistrationMode } from "./types/RegistrationMode";
221
+ export { RemoveComment } from "./types/RemoveComment";
222
+ export { RemoveCommunity } from "./types/RemoveCommunity";
223
+ export { RemovePost } from "./types/RemovePost";
224
+ export { ResolveCommentReport } from "./types/ResolveCommentReport";
225
+ export { ResolveObject } from "./types/ResolveObject";
226
+ export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
227
+ export { ResolvePostReport } from "./types/ResolvePostReport";
228
+ export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
229
+ export { SaveComment } from "./types/SaveComment";
230
+ export { SavePost } from "./types/SavePost";
231
+ export { SaveUserSettings } from "./types/SaveUserSettings";
232
+ export { Search } from "./types/Search";
233
+ export { SearchResponse } from "./types/SearchResponse";
234
+ export { SearchType } from "./types/SearchType";
235
+ export { Site } from "./types/Site";
236
+ export { SiteAggregates } from "./types/SiteAggregates";
237
+ export { SiteId } from "./types/SiteId";
238
+ export { SiteMetadata } from "./types/SiteMetadata";
239
+ export { SiteResponse } from "./types/SiteResponse";
240
+ export { SiteView } from "./types/SiteView";
241
+ export { SortType } from "./types/SortType";
242
+ export { SubscribedType } from "./types/SubscribedType";
243
+ export { Tagline } from "./types/Tagline";
244
+ export { TransferCommunity } from "./types/TransferCommunity";
245
+ export { UserJoin } from "./types/UserJoin";
246
+ export { UserJoinResponse } from "./types/UserJoinResponse";
247
+ export { VerifyEmail } from "./types/VerifyEmail";
248
+ export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
249
+ export { ImageFile, UploadImage, UploadImageResponse, UserOperation, } from "./types/others";
package/dist/index.js CHANGED
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.UserOperation = void 0;
17
18
  __exportStar(require("./http"), exports);
18
- __exportStar(require("./websocket"), exports);
19
+ var others_1 = require("./types/others");
20
+ Object.defineProperty(exports, "UserOperation", { enumerable: true, get: function () { return others_1.UserOperation; } });
@@ -6,6 +6,6 @@ export interface BanFromCommunity {
6
6
  ban: boolean;
7
7
  remove_data?: boolean;
8
8
  reason?: string;
9
- expires?: bigint;
9
+ expires?: number;
10
10
  auth: string;
11
11
  }
@@ -4,6 +4,6 @@ export interface BanPerson {
4
4
  ban: boolean;
5
5
  remove_data?: boolean;
6
6
  reason?: string;
7
- expires?: bigint;
7
+ expires?: number;
8
8
  auth: string;
9
9
  }
@@ -2,9 +2,10 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CommentAggregates {
3
3
  id: number;
4
4
  comment_id: CommentId;
5
- score: bigint;
6
- upvotes: bigint;
7
- downvotes: bigint;
5
+ score: number;
6
+ upvotes: number;
7
+ downvotes: number;
8
8
  published: string;
9
9
  child_count: number;
10
+ hot_rank: number;
10
11
  }
@@ -2,12 +2,13 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface CommunityAggregates {
3
3
  id: number;
4
4
  community_id: CommunityId;
5
- subscribers: bigint;
6
- posts: bigint;
7
- comments: bigint;
5
+ subscribers: number;
6
+ posts: number;
7
+ comments: number;
8
8
  published: string;
9
- users_active_day: bigint;
10
- users_active_week: bigint;
11
- users_active_month: bigint;
12
- users_active_half_year: bigint;
9
+ users_active_day: number;
10
+ users_active_week: number;
11
+ users_active_month: number;
12
+ users_active_half_year: number;
13
+ hot_rank: number;
13
14
  }
@@ -1 +1,3 @@
1
- export type GetCaptcha = null;
1
+ export interface GetCaptcha {
2
+ auth?: string;
3
+ }
@@ -7,8 +7,8 @@ export interface GetComments {
7
7
  type_?: ListingType;
8
8
  sort?: CommentSortType;
9
9
  max_depth?: number;
10
- page?: bigint;
11
- limit?: bigint;
10
+ page?: number;
11
+ limit?: number;
12
12
  community_id?: CommunityId;
13
13
  community_name?: string;
14
14
  post_id?: PostId;
@@ -6,7 +6,5 @@ export interface GetCommunityResponse {
6
6
  community_view: CommunityView;
7
7
  site?: Site;
8
8
  moderators: Array<CommunityModeratorView>;
9
- online: number;
10
9
  discussion_languages: Array<LanguageId>;
11
- default_post_language?: LanguageId;
12
10
  }
@@ -1 +1,3 @@
1
- export type GetFederatedInstances = null;
1
+ export interface GetFederatedInstances {
2
+ auth?: string;
3
+ }
@@ -4,8 +4,8 @@ import type { PersonId } from "./PersonId";
4
4
  export interface GetModlog {
5
5
  mod_person_id?: PersonId;
6
6
  community_id?: CommunityId;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  type_?: ModlogActionType;
10
10
  other_person_id?: PersonId;
11
11
  auth?: string;
@@ -5,8 +5,8 @@ export interface GetPersonDetails {
5
5
  person_id?: PersonId;
6
6
  username?: string;
7
7
  sort?: SortType;
8
- page?: bigint;
9
- limit?: bigint;
8
+ page?: number;
9
+ limit?: number;
10
10
  community_id?: CommunityId;
11
11
  saved_only?: boolean;
12
12
  auth?: string;
@@ -1,8 +1,8 @@
1
1
  import type { CommentSortType } from "./CommentSortType";
2
2
  export interface GetPersonMentions {
3
3
  sort?: CommentSortType;
4
- page?: bigint;
5
- limit?: bigint;
4
+ page?: number;
5
+ limit?: number;
6
6
  unread_only?: boolean;
7
7
  auth: string;
8
8
  }
@@ -1,5 +1,7 @@
1
- import type { PostOrCommentId } from "./PostOrCommentId";
1
+ import type { CommentId } from "./CommentId";
2
+ import type { PostId } from "./PostId";
2
3
  export interface GetPost {
3
- id: PostOrCommentId;
4
+ id?: PostId;
5
+ comment_id?: CommentId;
4
6
  auth?: string;
5
7
  }
@@ -6,5 +6,4 @@ export interface GetPostResponse {
6
6
  community_view: CommunityView;
7
7
  moderators: Array<CommunityModeratorView>;
8
8
  cross_posts: Array<PostView>;
9
- online: number;
10
9
  }
@@ -4,8 +4,8 @@ import type { SortType } from "./SortType";
4
4
  export interface GetPosts {
5
5
  type_?: ListingType;
6
6
  sort?: SortType;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  community_id?: CommunityId;
10
10
  community_name?: string;
11
11
  saved_only?: boolean;
@@ -1,6 +1,6 @@
1
1
  export interface GetPrivateMessages {
2
2
  unread_only?: boolean;
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  auth: string;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  import type { CommentSortType } from "./CommentSortType";
2
2
  export interface GetReplies {
3
3
  sort?: CommentSortType;
4
- page?: bigint;
5
- limit?: bigint;
4
+ page?: number;
5
+ limit?: number;
6
6
  unread_only?: boolean;
7
7
  auth: string;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface GetReportCountResponse {
3
3
  community_id?: CommunityId;
4
- comment_reports: bigint;
5
- post_reports: bigint;
6
- private_message_reports?: bigint;
4
+ comment_reports: number;
5
+ post_reports: number;
6
+ private_message_reports?: number;
7
7
  }
@@ -8,7 +8,6 @@ import type { Tagline } from "./Tagline";
8
8
  export interface GetSiteResponse {
9
9
  site_view: SiteView;
10
10
  admins: Array<PersonView>;
11
- online: number;
12
11
  version: string;
13
12
  my_user?: MyUserInfo;
14
13
  all_languages: Array<Language>;
@@ -1,5 +1,5 @@
1
1
  export interface GetUnreadCountResponse {
2
- replies: bigint;
3
- mentions: bigint;
4
- private_messages: bigint;
2
+ replies: number;
3
+ mentions: number;
4
+ private_messages: number;
5
5
  }
@@ -1,3 +1,3 @@
1
1
  export interface GetUnreadRegistrationApplicationCountResponse {
2
- registration_applications: bigint;
2
+ registration_applications: number;
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface ListCommentReports {
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
7
  auth: string;
@@ -3,7 +3,7 @@ import type { SortType } from "./SortType";
3
3
  export interface ListCommunities {
4
4
  type_?: ListingType;
5
5
  sort?: SortType;
6
- page?: bigint;
7
- limit?: bigint;
6
+ page?: number;
7
+ limit?: number;
8
8
  auth?: string;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface ListPostReports {
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
7
  auth: string;
@@ -1,6 +1,6 @@
1
1
  export interface ListPrivateMessageReports {
2
- page?: bigint;
3
- limit?: bigint;
2
+ page?: number;
3
+ limit?: number;
4
4
  unresolved_only?: boolean;
5
5
  auth: string;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export interface ListRegistrationApplications {
2
2
  unread_only?: boolean;
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  auth: string;
6
6
  }
@@ -20,7 +20,6 @@ export interface LocalSite {
20
20
  slur_filter_regex?: string;
21
21
  actor_name_max_length: number;
22
22
  federation_enabled: boolean;
23
- federation_debug: boolean;
24
23
  federation_worker_count: number;
25
24
  captcha_enabled: boolean;
26
25
  captcha_difficulty: string;
@@ -4,7 +4,7 @@ export interface ModlogListParams {
4
4
  community_id?: CommunityId;
5
5
  mod_person_id?: PersonId;
6
6
  other_person_id?: PersonId;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  hide_modlog_names: boolean;
10
10
  }
@@ -2,8 +2,8 @@ import type { PersonId } from "./PersonId";
2
2
  export interface PersonAggregates {
3
3
  id: number;
4
4
  person_id: PersonId;
5
- post_count: bigint;
6
- post_score: bigint;
7
- comment_count: bigint;
8
- comment_score: bigint;
5
+ post_count: number;
6
+ post_score: number;
7
+ comment_count: number;
8
+ comment_score: number;
9
9
  }
@@ -2,13 +2,15 @@ import type { PostId } from "./PostId";
2
2
  export interface PostAggregates {
3
3
  id: number;
4
4
  post_id: PostId;
5
- comments: bigint;
6
- score: bigint;
7
- upvotes: bigint;
8
- downvotes: bigint;
5
+ comments: number;
6
+ score: number;
7
+ upvotes: number;
8
+ downvotes: number;
9
9
  published: string;
10
10
  newest_comment_time_necro: string;
11
11
  newest_comment_time: string;
12
12
  featured_community: boolean;
13
13
  featured_local: boolean;
14
+ hot_rank: number;
15
+ hot_rank_active: number;
14
16
  }
@@ -14,5 +14,5 @@ export interface PostView {
14
14
  read: boolean;
15
15
  creator_blocked: boolean;
16
16
  my_vote?: number;
17
- unread_comments: bigint;
17
+ unread_comments: number;
18
18
  }
@@ -3,6 +3,6 @@ export interface RemoveCommunity {
3
3
  community_id: CommunityId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- expires?: bigint;
6
+ expires?: number;
7
7
  auth: string;
8
8
  }
@@ -11,7 +11,7 @@ export interface Search {
11
11
  type_?: SearchType;
12
12
  sort?: SortType;
13
13
  listing_type?: ListingType;
14
- page?: bigint;
15
- limit?: bigint;
14
+ page?: number;
15
+ limit?: number;
16
16
  auth?: string;
17
17
  }
@@ -2,12 +2,12 @@ import type { SiteId } from "./SiteId";
2
2
  export interface SiteAggregates {
3
3
  id: number;
4
4
  site_id: SiteId;
5
- users: bigint;
6
- posts: bigint;
7
- comments: bigint;
8
- communities: bigint;
9
- users_active_day: bigint;
10
- users_active_week: bigint;
11
- users_active_month: bigint;
12
- users_active_half_year: bigint;
5
+ users: number;
6
+ posts: number;
7
+ comments: number;
8
+ communities: number;
9
+ users_active_day: number;
10
+ users_active_week: number;
11
+ users_active_month: number;
12
+ users_active_half_year: number;
13
13
  }