lemmy-js-client 1.0.0-enum-variants-snake-case.1 → 1.0.0-enum-variants-snake-case.3

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 (34) hide show
  1. package/dist/http.d.ts +10 -11
  2. package/dist/http.js +4 -5
  3. package/dist/index.d.ts +4 -5
  4. package/dist/index.js +0 -3
  5. package/dist/other_types.d.ts +0 -3
  6. package/dist/types/AllLemmyErrors.js +1 -3
  7. package/dist/types/CommunityFollowerState.d.ts +1 -1
  8. package/dist/types/CommunitySortType.d.ts +1 -1
  9. package/dist/types/GetMultiCommunity.d.ts +2 -1
  10. package/dist/types/LemmyErrorType.d.ts +3 -6
  11. package/dist/types/LikeType.d.ts +1 -1
  12. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  13. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  14. package/dist/types/ModlogActionType.d.ts +1 -1
  15. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  16. package/dist/types/MultiCommunityView.d.ts +2 -0
  17. package/dist/types/NotificationDataType.d.ts +1 -1
  18. package/dist/types/PendingFollowerView.d.ts +9 -0
  19. package/dist/types/PersonContentType.d.ts +1 -1
  20. package/dist/types/PersonResponse.d.ts +7 -0
  21. package/dist/types/PostFeatureType.d.ts +1 -1
  22. package/dist/types/ReportType.d.ts +1 -1
  23. package/dist/types/SearchSortType.d.ts +1 -1
  24. package/dist/types/SearchType.d.ts +1 -1
  25. package/dist/types/UntranslatedError.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/dist/types/BanPersonResponse.d.ts +0 -8
  28. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  29. package/dist/types/BlockPersonResponse.d.ts +0 -8
  30. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  31. package/dist/types/GetCommunityPendingFollowsCount.js +0 -2
  32. /package/dist/types/{BanPersonResponse.js → MultiCommunityResponse.js} +0 -0
  33. /package/dist/types/{BlockCommunityResponse.js → PendingFollowerView.js} +0 -0
  34. /package/dist/types/{BlockPersonResponse.js → PersonResponse.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  import { AddModToCommunity } from "./types/AddModToCommunity";
@@ -9,11 +9,8 @@ import { BanFromCommunity } from "./types/BanFromCommunity";
9
9
  import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
10
10
  import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
11
11
  import { BanPerson } from "./types/BanPerson";
12
- import { BanPersonResponse } from "./types/BanPersonResponse";
13
12
  import { BlockCommunity } from "./types/BlockCommunity";
14
- import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
15
13
  import { BlockPerson } from "./types/BlockPerson";
16
- import { BlockPersonResponse } from "./types/BlockPersonResponse";
17
14
  import { ChangePassword } from "./types/ChangePassword";
18
15
  import { CommentReportResponse } from "./types/CommentReportResponse";
19
16
  import { CommentResponse } from "./types/CommentResponse";
@@ -149,6 +146,8 @@ import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
149
146
  import { ModEditPost } from "./types/ModEditPost";
150
147
  import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
151
148
  import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
149
+ import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
150
+ import { PersonResponse } from "./types/PersonResponse";
152
151
  type RequestOptions = Pick<RequestInit, "signal">;
153
152
  /**
154
153
  * Helps build lemmy HTTP requests.
@@ -271,7 +270,7 @@ export declare class LemmyHttp extends Controller {
271
270
  /**
272
271
  * @summary Get a community's pending follows count.
273
272
  */
274
- getCommunityPendingFollowsCount(form: GetCommunityPendingFollowsCountI, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
273
+ getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
275
274
  /**
276
275
  * @summary Get a community's pending followers.
277
276
  */
@@ -283,7 +282,7 @@ export declare class LemmyHttp extends Controller {
283
282
  /**
284
283
  * @summary Block a community.
285
284
  */
286
- blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
285
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
287
286
  /**
288
287
  * @summary Delete a community.
289
288
  */
@@ -495,7 +494,7 @@ export declare class LemmyHttp extends Controller {
495
494
  /**
496
495
  * @summary Ban a person from your site.
497
496
  */
498
- banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
497
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
499
498
  /**
500
499
  * @summary Get a list of users.
501
500
  */
@@ -503,7 +502,7 @@ export declare class LemmyHttp extends Controller {
503
502
  /**
504
503
  * @summary Block a person.
505
504
  */
506
- blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
505
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
507
506
  /**
508
507
  * @summary Fetch a Captcha.
509
508
  */
@@ -752,13 +751,13 @@ export declare class LemmyHttp extends Controller {
752
751
  * Mark donation dialog as shown, so it isn't displayed anymore.
753
752
  */
754
753
  donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
755
- createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
756
- updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
754
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
755
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
757
756
  getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
758
757
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
759
758
  deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
760
759
  listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
761
- followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
760
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
762
761
  /**
763
762
  * @summary Change notification settings for a community
764
763
  */
package/dist/http.js CHANGED
@@ -205,8 +205,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
205
205
  /**
206
206
  * @summary Get a community's pending follows count.
207
207
  */
208
- async getCommunityPendingFollowsCount(form, options) {
209
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
208
+ async getCommunityPendingFollowsCount(options) {
209
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", {}, options);
210
210
  }
211
211
  /**
212
212
  * @summary Get a community's pending followers.
@@ -1018,7 +1018,7 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
1018
1018
  throw new LemmyError(response.statusText, response.status);
1019
1019
  }
1020
1020
  if (!response.ok) {
1021
- console.error(`Request error while calling ${type_} ${endpoint} with ${form}`);
1021
+ console.error(`Request error while calling ${type_} ${endpoint} with ${JSON.stringify(form)}`);
1022
1022
  let err = new LemmyError(json.error ?? response.statusText, response.status, json.message);
1023
1023
  throw err;
1024
1024
  }
@@ -1191,8 +1191,7 @@ __decorate([
1191
1191
  (0, runtime_1.Security)("bearerAuth"),
1192
1192
  (0, runtime_1.Get)("/community/pending_follows/count"),
1193
1193
  (0, runtime_1.Tags)("Community"),
1194
- __param(0, (0, runtime_1.Queries)()),
1195
- __param(1, (0, runtime_1.Inject)())
1194
+ __param(0, (0, runtime_1.Inject)())
1196
1195
  ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1197
1196
  __decorate([
1198
1197
  (0, runtime_1.Security)("bearerAuth"),
package/dist/index.d.ts CHANGED
@@ -36,18 +36,15 @@ export { AdminPurgePostView } from "./types/AdminPurgePostView";
36
36
  export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
37
37
  export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
38
38
  export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
39
- export { AllLemmyErrors } from "./types/AllLemmyErrors";
39
+ export {} from "./types/AllLemmyErrors";
40
40
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
41
41
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
42
42
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
43
43
  export { BanFromCommunity } from "./types/BanFromCommunity";
44
44
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
45
45
  export { BanPerson } from "./types/BanPerson";
46
- export { BanPersonResponse } from "./types/BanPersonResponse";
47
46
  export { BlockCommunity } from "./types/BlockCommunity";
48
- export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
49
47
  export { BlockPerson } from "./types/BlockPerson";
50
- export { BlockPersonResponse } from "./types/BlockPersonResponse";
51
48
  export { CaptchaResponse } from "./types/CaptchaResponse";
52
49
  export { ChangePassword } from "./types/ChangePassword";
53
50
  export { Comment } from "./types/Comment";
@@ -132,7 +129,6 @@ export { GetComments } from "./types/GetComments";
132
129
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
133
130
  export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
134
131
  export { GetCommunity } from "./types/GetCommunity";
135
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
136
132
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
137
133
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
138
134
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
@@ -253,6 +249,7 @@ export { ModlogCombinedView } from "./types/ModlogCombinedView";
253
249
  export { MultiCommunity } from "./types/MultiCommunity";
254
250
  export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
255
251
  export { MultiCommunityId } from "./types/MultiCommunityId";
252
+ export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
256
253
  export { MultiCommunityView } from "./types/MultiCommunityView";
257
254
  export { MyUserInfo } from "./types/MyUserInfo";
258
255
  export { NotePerson } from "./types/NotePerson";
@@ -270,12 +267,14 @@ export { PaginationCursor } from "./types/PaginationCursor";
270
267
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
271
268
  export { PasswordReset } from "./types/PasswordReset";
272
269
  export { PendingFollow } from "./types/PendingFollow";
270
+ export { PendingFollowerView } from "./types/PendingFollowerView";
273
271
  export { Person } from "./types/Person";
274
272
  export { PersonActions } from "./types/PersonActions";
275
273
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
276
274
  export { PersonContentType } from "./types/PersonContentType";
277
275
  export { PersonId } from "./types/PersonId";
278
276
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
277
+ export { PersonResponse } from "./types/PersonResponse";
279
278
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
280
279
  export { PersonView } from "./types/PersonView";
281
280
  export { PluginMetadata } from "./types/PluginMetadata";
package/dist/index.js CHANGED
@@ -14,7 +14,4 @@ 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.AllLemmyErrors = void 0;
18
17
  __exportStar(require("./http"), exports);
19
- var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
20
- Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
4
4
  import { GetComment } from "./types/GetComment";
5
5
  import { GetComments } from "./types/GetComments";
6
6
  import { GetCommunity } from "./types/GetCommunity";
7
- import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
8
7
  import { GetModlog } from "./types/GetModlog";
9
8
  import { GetMultiCommunity } from "./types/GetMultiCommunity";
10
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
@@ -48,8 +47,6 @@ export interface GetCommunityI extends GetCommunity {
48
47
  }
49
48
  export interface ListCommunitiesI extends ListCommunities {
50
49
  }
51
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
52
- }
53
50
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
54
51
  }
55
52
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -20,12 +20,10 @@ exports.AllLemmyErrors = [
20
20
  "cannot_leave_mod",
21
21
  "cannot_leave_mod",
22
22
  "cannot_leave_mod",
23
- "image_url_missing_path_segments",
24
- "image_url_missing_last_path_segment",
23
+ "pictrs_api_key_not_provided",
25
24
  "pictrs_api_key_not_provided",
26
25
  "no_content_type_header",
27
26
  "not_an_image_type",
28
- "invalid_image_upload",
29
27
  "image_upload_disabled",
30
28
  "not_a_mod_or_admin",
31
29
  "not_top_mod",
@@ -1 +1 @@
1
- export type CommunityFollowerState = "accepted" | "pending" | "approval_required";
1
+ export type CommunityFollowerState = "accepted" | "pending" | "approval_required" | "denied";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
4
+ export type CommunitySortType = "active_six_months" | "active_monthly" | "active_weekly" | "active_daily" | "hot" | "new" | "old" | "name_asc" | "name_desc" | "comments" | "posts" | "subscribers" | "subscribers_local";
@@ -1,4 +1,5 @@
1
1
  import type { MultiCommunityId } from "./MultiCommunityId";
2
2
  export type GetMultiCommunity = {
3
- id: MultiCommunityId;
3
+ id?: MultiCommunityId;
4
+ name?: string;
4
5
  };
@@ -40,18 +40,15 @@ export type LemmyErrorType = {
40
40
  } | {
41
41
  error: "pictrs_purge_response_error";
42
42
  message: string;
43
- } | {
44
- error: "image_url_missing_path_segments";
45
- } | {
46
- error: "image_url_missing_last_path_segment";
47
43
  } | {
48
44
  error: "pictrs_api_key_not_provided";
45
+ } | {
46
+ error: "pictrs_invalid_image_upload";
47
+ message: string;
49
48
  } | {
50
49
  error: "no_content_type_header";
51
50
  } | {
52
51
  error: "not_an_image_type";
53
- } | {
54
- error: "invalid_image_upload";
55
52
  } | {
56
53
  error: "image_upload_disabled";
57
54
  } | {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The like_type for a persons liked content.
3
3
  */
4
- export type LikeType = "All" | "LikedOnly" | "DislikedOnly";
4
+ export type LikeType = "all" | "liked_only" | "disliked_only";
@@ -3,7 +3,7 @@ export type ListCommunityPendingFollows = {
3
3
  /**
4
4
  * Only shows the unapproved applications
5
5
  */
6
- pending_only?: boolean;
6
+ unread_only?: boolean;
7
7
  all_communities?: boolean;
8
8
  page_cursor?: PaginationCursor;
9
9
  page_back?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PendingFollow } from "./PendingFollow";
2
+ import type { PendingFollowerView } from "./PendingFollowerView";
3
3
  export type ListCommunityPendingFollowsResponse = {
4
- items: Array<PendingFollow>;
4
+ items: Array<PendingFollowerView>;
5
5
  /**
6
6
  * the pagination cursor to use to fetch the next page
7
7
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A list of possible types for the various modlog actions.
3
3
  */
4
- export type ModlogActionType = "All" | "ModRemovePost" | "ModLockPost" | "ModFeaturePost" | "ModRemoveComment" | "ModLockComment" | "AdminRemoveCommunity" | "ModBanFromCommunity" | "ModAddToCommunity" | "ModTransferCommunity" | "AdminAdd" | "AdminBan" | "ModChangeCommunityVisibility" | "AdminPurgePerson" | "AdminPurgeCommunity" | "AdminPurgePost" | "AdminPurgeComment" | "AdminBlockInstance" | "AdminAllowInstance";
4
+ export type ModlogActionType = "all" | "mod_remove_post" | "mod_lock_post" | "mod_feature_post" | "mod_remove_comment" | "mod_lock_comment" | "admin_remove_community" | "mod_ban_from_community" | "mod_add_to_community" | "mod_transfer_community" | "admin_add" | "admin_ban" | "mod_change_community_visibility" | "admin_purge_person" | "admin_purge_community" | "admin_purge_post" | "admin_purge_comment" | "admin_block_instance" | "admin_allow_instance";
@@ -0,0 +1,4 @@
1
+ import type { MultiCommunityView } from "./MultiCommunityView";
2
+ export type MultiCommunityResponse = {
3
+ multi_community_view: MultiCommunityView;
4
+ };
@@ -1,6 +1,8 @@
1
+ import type { CommunityFollowerState } from "./CommunityFollowerState";
1
2
  import type { MultiCommunity } from "./MultiCommunity";
2
3
  import type { Person } from "./Person";
3
4
  export type MultiCommunityView = {
4
5
  multi: MultiCommunity;
6
+ follow_state?: CommunityFollowerState;
5
7
  owner: Person;
6
8
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A list of possible types for the inbox.
3
3
  */
4
- export type NotificationDataType = "All" | "Reply" | "Mention" | "PrivateMessage" | "Subscribed";
4
+ export type NotificationDataType = "all" | "reply" | "mention" | "private_message" | "subscribed";
@@ -0,0 +1,9 @@
1
+ import type { Community } from "./Community";
2
+ import type { CommunityFollowerState } from "./CommunityFollowerState";
3
+ import type { Person } from "./Person";
4
+ export type PendingFollowerView = {
5
+ person: Person;
6
+ community: Community;
7
+ is_new_instance: boolean;
8
+ follow_state?: CommunityFollowerState;
9
+ };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A list of possible types for a person's content.
3
3
  */
4
- export type PersonContentType = "All" | "Comments" | "Posts";
4
+ export type PersonContentType = "all" | "comments" | "posts";
@@ -0,0 +1,7 @@
1
+ import type { PersonView } from "./PersonView";
2
+ /**
3
+ * A person response for actions done to a person.
4
+ */
5
+ export type PersonResponse = {
6
+ person_view: PersonView;
7
+ };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The feature type for a post.
3
3
  */
4
- export type PostFeatureType = "Local" | "Community";
4
+ export type PostFeatureType = "local" | "community";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A list of possible types for reports.
3
3
  */
4
- export type ReportType = "All" | "Posts" | "Comments" | "PrivateMessages" | "Communities";
4
+ export type ReportType = "all" | "posts" | "comments" | "private_messages" | "communities";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The search sort types.
3
3
  */
4
- export type SearchSortType = "New" | "Top" | "Old";
4
+ export type SearchSortType = "new" | "top" | "old";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The type of content returned from a search.
3
3
  */
4
- export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users" | "MultiCommunities";
4
+ export type SearchType = "all" | "comments" | "posts" | "communities" | "users" | "multi_communities";
@@ -9,4 +9,4 @@ export type UntranslatedError = "InvalidCommunity" | "CannotCreatePostOrCommentI
9
9
  DomainNotInAllowList: string;
10
10
  } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | {
11
11
  InvalidFollow: string;
12
- } | "Unreachable" | "CouldntSendWebmention" | "CommunityHasNoFollowers";
12
+ } | "PurgeInvalidImageUrl" | "Unreachable" | "CouldntSendWebmention" | "CommunityHasNoFollowers";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-enum-variants-snake-case.1",
4
+ "version": "1.0.0-enum-variants-snake-case.3",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1,8 +0,0 @@
1
- import type { PersonView } from "./PersonView";
2
- /**
3
- * A response for a banned person.
4
- */
5
- export type BanPersonResponse = {
6
- person_view: PersonView;
7
- banned: boolean;
8
- };
@@ -1,8 +0,0 @@
1
- import type { CommunityView } from "./CommunityView";
2
- /**
3
- * The block community response.
4
- */
5
- export type BlockCommunityResponse = {
6
- community_view: CommunityView;
7
- blocked: boolean;
8
- };
@@ -1,8 +0,0 @@
1
- import type { PersonView } from "./PersonView";
2
- /**
3
- * The response for a person block.
4
- */
5
- export type BlockPersonResponse = {
6
- person_view: PersonView;
7
- blocked: boolean;
8
- };
@@ -1,4 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- export type GetCommunityPendingFollowsCount = {
3
- community_id: CommunityId;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });