lemmy-js-client 1.0.0-action-structs.0 → 1.0.0-action-structs.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/http.d.ts +2 -2
  2. package/dist/http.js +5 -4
  3. package/dist/index.d.ts +7 -4
  4. package/dist/other_types.d.ts +3 -0
  5. package/dist/types/BannedPersonsResponse.d.ts +5 -0
  6. package/dist/types/CommentActions.d.ts +9 -0
  7. package/dist/types/CommentSlimView.d.ts +2 -0
  8. package/dist/types/Community.d.ts +0 -4
  9. package/dist/types/CommunityActions.d.ts +21 -0
  10. package/dist/types/CommunityReportResponse.d.ts +7 -0
  11. package/dist/types/CommunityVisibility.d.ts +1 -1
  12. package/dist/types/CreateCommunityReport.d.ts +8 -0
  13. package/dist/types/Instance.d.ts +9 -0
  14. package/dist/types/InstanceActions.d.ts +3 -0
  15. package/dist/types/InstanceWithFederationState.d.ts +9 -0
  16. package/dist/types/LemmyErrorType.d.ts +0 -2
  17. package/dist/types/ListBannedPersons.d.ts +9 -0
  18. package/dist/types/ListBannedPersons.js +2 -0
  19. package/dist/types/LocalSite.d.ts +4 -4
  20. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  21. package/dist/types/ModChangeCommunityVisibility.js +2 -0
  22. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  23. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  24. package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
  25. package/dist/types/ModlogActionType.d.ts +1 -1
  26. package/dist/types/ModlogCombinedView.d.ts +3 -3
  27. package/dist/types/PendingFollow.d.ts +2 -2
  28. package/dist/types/PersonActions.d.ts +3 -2
  29. package/dist/types/PostActions.d.ts +22 -0
  30. package/dist/types/ResolveCommunityReport.d.ts +8 -0
  31. package/dist/types/ResolveCommunityReport.js +2 -0
  32. package/package.json +2 -2
  33. package/dist/types/ModHideCommunity.d.ts +0 -14
  34. package/dist/types/ModHideCommunityId.d.ts +0 -1
  35. package/dist/types/ModHideCommunityView.d.ts +0 -11
  36. package/dist/types/SubscribedType.d.ts +0 -4
  37. package/dist/types/SubscribedType.js +0 -3
  38. /package/dist/types/{ModHideCommunity.js → CommunityReportResponse.js} +0 -0
  39. /package/dist/types/{ModHideCommunityView.js → CreateCommunityReport.js} +0 -0
  40. /package/dist/types/{ModHideCommunityId.js → ModChangeCommunityVisibilityId.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "tsoa";
2
- import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, 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";
@@ -468,7 +468,7 @@ export declare class LemmyHttp extends Controller {
468
468
  /**
469
469
  * @summary Get a list of banned users.
470
470
  */
471
- getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
471
+ listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
472
472
  /**
473
473
  * @summary Block a person.
474
474
  */
package/dist/http.js CHANGED
@@ -538,8 +538,8 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
538
538
  /**
539
539
  * @summary Get a list of banned users.
540
540
  */
541
- getBannedPersons(options) {
542
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
541
+ listBannedPersons(form = {}, options) {
542
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", form, options);
543
543
  }
544
544
  /**
545
545
  * @summary Block a person.
@@ -1497,8 +1497,9 @@ __decorate([
1497
1497
  (0, tsoa_1.Security)("bearerAuth"),
1498
1498
  (0, tsoa_1.Get)("/admin/banned"),
1499
1499
  (0, tsoa_1.Tags)("Admin", "Miscellaneous"),
1500
- __param(0, (0, tsoa_1.Inject)())
1501
- ], LemmyHttp.prototype, "getBannedPersons", null);
1500
+ __param(0, (0, tsoa_1.Queries)()),
1501
+ __param(1, (0, tsoa_1.Inject)())
1502
+ ], LemmyHttp.prototype, "listBannedPersons", null);
1502
1503
  __decorate([
1503
1504
  (0, tsoa_1.Security)("bearerAuth"),
1504
1505
  (0, tsoa_1.Post)("/account/block/person"),
package/dist/index.d.ts CHANGED
@@ -61,6 +61,7 @@ export { CommunityId } from "./types/CommunityId";
61
61
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
62
62
  export { CommunityReport } from "./types/CommunityReport";
63
63
  export { CommunityReportId } from "./types/CommunityReportId";
64
+ export { CommunityReportResponse } from "./types/CommunityReportResponse";
64
65
  export { CommunityReportView } from "./types/CommunityReportView";
65
66
  export { CommunityResponse } from "./types/CommunityResponse";
66
67
  export { CommunitySortType } from "./types/CommunitySortType";
@@ -70,6 +71,7 @@ export { CreateComment } from "./types/CreateComment";
70
71
  export { CreateCommentLike } from "./types/CreateCommentLike";
71
72
  export { CreateCommentReport } from "./types/CreateCommentReport";
72
73
  export { CreateCommunity } from "./types/CreateCommunity";
74
+ export { CreateCommunityReport } from "./types/CreateCommunityReport";
73
75
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
74
76
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
75
77
  export { CreatePost } from "./types/CreatePost";
@@ -151,6 +153,7 @@ export { Language } from "./types/Language";
151
153
  export { LanguageId } from "./types/LanguageId";
152
154
  export { LemmyErrorType } from "./types/LemmyErrorType";
153
155
  export { LinkMetadata } from "./types/LinkMetadata";
156
+ export { ListBannedPersons } from "./types/ListBannedPersons";
154
157
  export { ListCommentLikes } from "./types/ListCommentLikes";
155
158
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
156
159
  export { ListCommunities } from "./types/ListCommunities";
@@ -208,12 +211,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
208
211
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
209
212
  export { ModBanId } from "./types/ModBanId";
210
213
  export { ModBanView } from "./types/ModBanView";
214
+ export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
215
+ export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
216
+ export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
211
217
  export { ModFeaturePost } from "./types/ModFeaturePost";
212
218
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
213
219
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
214
- export { ModHideCommunity } from "./types/ModHideCommunity";
215
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
216
- export { ModHideCommunityView } from "./types/ModHideCommunityView";
217
220
  export { ModLockPost } from "./types/ModLockPost";
218
221
  export { ModLockPostId } from "./types/ModLockPostId";
219
222
  export { ModLockPostView } from "./types/ModLockPostView";
@@ -293,6 +296,7 @@ export { ReportCombinedView } from "./types/ReportCombinedView";
293
296
  export { ReportType } from "./types/ReportType";
294
297
  export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
295
298
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
299
+ export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
296
300
  export { ResolveObject } from "./types/ResolveObject";
297
301
  export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
298
302
  export { ResolvePostReport } from "./types/ResolvePostReport";
@@ -310,7 +314,6 @@ export { Site } from "./types/Site";
310
314
  export { SiteId } from "./types/SiteId";
311
315
  export { SiteResponse } from "./types/SiteResponse";
312
316
  export { SiteView } from "./types/SiteView";
313
- export { SubscribedType } from "./types/SubscribedType";
314
317
  export { SuccessResponse } from "./types/SuccessResponse";
315
318
  export { Tag } from "./types/Tag";
316
319
  export { TagId } from "./types/TagId";
@@ -11,6 +11,7 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
11
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
12
  import { GetReportCount } from "./types/GetReportCount";
13
13
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
+ import { ListBannedPersons } from "./types/ListBannedPersons";
14
15
  import { ListCommentLikes } from "./types/ListCommentLikes";
15
16
  import { ListCommunities } from "./types/ListCommunities";
16
17
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
@@ -83,3 +84,5 @@ export interface ListReportsI extends ListReports {
83
84
  }
84
85
  export interface DeleteImageParamsI extends DeleteImageParams {
85
86
  }
87
+ export interface ListBannedPersonsI extends ListBannedPersons {
88
+ }
@@ -1,7 +1,12 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
1
2
  import type { PersonView } from "./PersonView";
2
3
  /**
3
4
  * The list of banned persons.
4
5
  */
5
6
  export type BannedPersonsResponse = {
6
7
  banned: Array<PersonView>;
8
+ /**
9
+ * the pagination cursor to use to fetch the next page
10
+ */
11
+ next_page?: PaginationCursor;
7
12
  };
@@ -3,7 +3,16 @@ import type { PersonId } from "./PersonId";
3
3
  export type CommentActions = {
4
4
  person_id: PersonId;
5
5
  comment_id: CommentId;
6
+ /**
7
+ * The like / score for the comment.
8
+ */
6
9
  like_score?: number;
10
+ /**
11
+ * When the comment was liked.
12
+ */
7
13
  liked?: string;
14
+ /**
15
+ * When the comment was saved.
16
+ */
8
17
  saved?: string;
9
18
  };
@@ -1,5 +1,6 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
+ import type { CommunityActions } from "./CommunityActions";
3
4
  import type { InstanceActions } from "./InstanceActions";
4
5
  import type { Person } from "./Person";
5
6
  import type { PersonActions } from "./PersonActions";
@@ -11,6 +12,7 @@ export type CommentSlimView = {
11
12
  creator: Person;
12
13
  comment_actions?: CommentActions;
13
14
  person_actions?: PersonActions;
15
+ creator_community_actions?: CommunityActions;
14
16
  instance_actions?: InstanceActions;
15
17
  creator_is_admin: boolean;
16
18
  can_mod: boolean;
@@ -46,10 +46,6 @@ export type Community = {
46
46
  * A URL for a banner.
47
47
  */
48
48
  banner?: DbUrl;
49
- /**
50
- * Whether the community is hidden.
51
- */
52
- hidden: boolean;
53
49
  /**
54
50
  * Whether posting is restricted to mods only.
55
51
  */
@@ -4,11 +4,32 @@ import type { PersonId } from "./PersonId";
4
4
  export type CommunityActions = {
5
5
  community_id: CommunityId;
6
6
  person_id: PersonId;
7
+ /**
8
+ * When the community was followed.
9
+ */
7
10
  followed?: string;
11
+ /**
12
+ * The state of the community follow.
13
+ */
8
14
  follow_state?: CommunityFollowerState;
15
+ /**
16
+ * The approver of the community follow.
17
+ */
9
18
  follow_approver_id?: PersonId;
19
+ /**
20
+ * When the community was blocked.
21
+ */
10
22
  blocked?: string;
23
+ /**
24
+ * When this user became a moderator.
25
+ */
11
26
  became_moderator?: string;
27
+ /**
28
+ * When this user received a ban.
29
+ */
12
30
  received_ban?: string;
31
+ /**
32
+ * When their ban expires.
33
+ */
13
34
  ban_expires?: string;
14
35
  };
@@ -0,0 +1,7 @@
1
+ import type { CommunityReportView } from "./CommunityReportView";
2
+ /**
3
+ * A community report response.
4
+ */
5
+ export type CommunityReportResponse = {
6
+ community_report_view: CommunityReportView;
7
+ };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Defines who can browse and interact with content in a community.
3
3
  */
4
- export type CommunityVisibility = "Public" | "LocalOnly" | "Private";
4
+ export type CommunityVisibility = "Public" | "Unlisted" | "LocalOnlyPublic" | "LocalOnlyPrivate" | "Private";
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Create a report for a community.
4
+ */
5
+ export type CreateCommunityReport = {
6
+ community_id: CommunityId;
7
+ reason: string;
8
+ };
@@ -6,7 +6,16 @@ export type Instance = {
6
6
  id: InstanceId;
7
7
  domain: string;
8
8
  published: string;
9
+ /**
10
+ * When the instance was updated.
11
+ */
9
12
  updated?: string;
13
+ /**
14
+ * The software of the instance.
15
+ */
10
16
  software?: string;
17
+ /**
18
+ * The version of the instance's software.
19
+ */
11
20
  version?: string;
12
21
  };
@@ -3,5 +3,8 @@ import type { PersonId } from "./PersonId";
3
3
  export type InstanceActions = {
4
4
  person_id: PersonId;
5
5
  instance_id: InstanceId;
6
+ /**
7
+ * When the instance was blocked.
8
+ */
6
9
  blocked?: string;
7
10
  };
@@ -9,7 +9,16 @@ export type InstanceWithFederationState = {
9
9
  id: InstanceId;
10
10
  domain: string;
11
11
  published: string;
12
+ /**
13
+ * When the instance was updated.
14
+ */
12
15
  updated?: string;
16
+ /**
17
+ * The software of the instance.
18
+ */
13
19
  software?: string;
20
+ /**
21
+ * The version of the instance's software.
22
+ */
14
23
  version?: string;
15
24
  };
@@ -176,8 +176,6 @@ export type LemmyErrorType = {
176
176
  error: "community_block_already_exists";
177
177
  } | {
178
178
  error: "community_follower_already_exists";
179
- } | {
180
- error: "couldnt_update_community_hidden_status";
181
179
  } | {
182
180
  error: "person_block_already_exists";
183
181
  } | {
@@ -0,0 +1,9 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
+ /**
3
+ * List the banned persons.
4
+ */
5
+ export type ListBannedPersons = {
6
+ page_cursor?: PaginationCursor;
7
+ page_back?: boolean;
8
+ limit?: number;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -122,6 +122,10 @@ export type LocalSite = {
122
122
  * A default time range limit to apply to post sorts, in seconds.
123
123
  */
124
124
  default_post_time_range_seconds?: number;
125
+ /**
126
+ * Block NSFW content being created
127
+ */
128
+ disallow_nsfw_content: boolean;
125
129
  users: number;
126
130
  posts: number;
127
131
  comments: number;
@@ -142,8 +146,4 @@ export type LocalSite = {
142
146
  * The number of users with any activity in the last half year.
143
147
  */
144
148
  users_active_half_year: number;
145
- /**
146
- * Block NSFW content being created
147
- */
148
- disallow_nsfw_content: boolean;
149
149
  };
@@ -0,0 +1,12 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { CommunityVisibility } from "./CommunityVisibility";
3
+ import type { ModChangeCommunityVisibilityId } from "./ModChangeCommunityVisibilityId";
4
+ import type { PersonId } from "./PersonId";
5
+ export type ModChangeCommunityVisibility = {
6
+ id: ModChangeCommunityVisibilityId;
7
+ community_id: CommunityId;
8
+ mod_person_id: PersonId;
9
+ published: string;
10
+ reason?: string;
11
+ visibility: CommunityVisibility;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ModChangeCommunityVisibilityId = number;
@@ -0,0 +1,11 @@
1
+ import type { Community } from "./Community";
2
+ import type { ModChangeCommunityVisibility } from "./ModChangeCommunityVisibility";
3
+ import type { Person } from "./Person";
4
+ /**
5
+ * When the visibility of a community is changed
6
+ */
7
+ export type ModChangeCommunityVisibilityView = {
8
+ mod_change_community_visibility: ModChangeCommunityVisibility;
9
+ moderator?: Person;
10
+ community: Community;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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" | "ModRemoveCommunity" | "ModBanFromCommunity" | "ModAddCommunity" | "ModTransferCommunity" | "ModAdd" | "ModBan" | "ModHideCommunity" | "AdminPurgePerson" | "AdminPurgeCommunity" | "AdminPurgePost" | "AdminPurgeComment" | "AdminBlockInstance" | "AdminAllowInstance";
4
+ export type ModlogActionType = "All" | "ModRemovePost" | "ModLockPost" | "ModFeaturePost" | "ModRemoveComment" | "ModRemoveCommunity" | "ModBanFromCommunity" | "ModAddCommunity" | "ModTransferCommunity" | "ModAdd" | "ModBan" | "ModChangeCommunityVisibility" | "AdminPurgePerson" | "AdminPurgeCommunity" | "AdminPurgePost" | "AdminPurgeComment" | "AdminBlockInstance" | "AdminAllowInstance";
@@ -8,8 +8,8 @@ import type { ModAddCommunityView } from "./ModAddCommunityView";
8
8
  import type { ModAddView } from "./ModAddView";
9
9
  import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
10
10
  import type { ModBanView } from "./ModBanView";
11
+ import type { ModChangeCommunityVisibilityView } from "./ModChangeCommunityVisibilityView";
11
12
  import type { ModFeaturePostView } from "./ModFeaturePostView";
12
- import type { ModHideCommunityView } from "./ModHideCommunityView";
13
13
  import type { ModLockPostView } from "./ModLockPostView";
14
14
  import type { ModRemoveCommentView } from "./ModRemoveCommentView";
15
15
  import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
@@ -38,8 +38,8 @@ export type ModlogCombinedView = ({
38
38
  } & ModBanFromCommunityView) | ({
39
39
  type_: "ModFeaturePost";
40
40
  } & ModFeaturePostView) | ({
41
- type_: "ModHideCommunity";
42
- } & ModHideCommunityView) | ({
41
+ type_: "ModChangeCommunityVisibility";
42
+ } & ModChangeCommunityVisibilityView) | ({
43
43
  type_: "ModLockPost";
44
44
  } & ModLockPostView) | ({
45
45
  type_: "ModRemoveComment";
@@ -1,9 +1,9 @@
1
1
  import type { Community } from "./Community";
2
+ import type { CommunityFollowerState } from "./CommunityFollowerState";
2
3
  import type { Person } from "./Person";
3
- import type { SubscribedType } from "./SubscribedType";
4
4
  export type PendingFollow = {
5
5
  person: Person;
6
6
  community: Community;
7
7
  is_new_instance: boolean;
8
- subscribed: SubscribedType;
8
+ follow_state?: CommunityFollowerState;
9
9
  };
@@ -2,7 +2,8 @@ import type { PersonId } from "./PersonId";
2
2
  export type PersonActions = {
3
3
  target_id: PersonId;
4
4
  person_id: PersonId;
5
- followed?: string;
6
- follow_pending?: boolean;
5
+ /**
6
+ * When the person was blocked.
7
+ */
7
8
  blocked?: string;
8
9
  };
@@ -3,11 +3,33 @@ import type { PostId } from "./PostId";
3
3
  export type PostActions = {
4
4
  post_id: PostId;
5
5
  person_id: PersonId;
6
+ /**
7
+ * When the post was read.
8
+ */
6
9
  read?: string;
10
+ /**
11
+ * When was the last time you read the comments.
12
+ */
7
13
  read_comments?: string;
14
+ /**
15
+ * The number of comments you read last. Subtract this from total comments to get an unread
16
+ * count.
17
+ */
8
18
  read_comments_amount?: number;
19
+ /**
20
+ * When the post was saved.
21
+ */
9
22
  saved?: string;
23
+ /**
24
+ * When the post was liked.
25
+ */
10
26
  liked?: string;
27
+ /**
28
+ * The like / score of the post.
29
+ */
11
30
  like_score?: number;
31
+ /**
32
+ * When the post was hidden.
33
+ */
12
34
  hidden?: string;
13
35
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityReportId } from "./CommunityReportId";
2
+ /**
3
+ * Resolve a community report.
4
+ */
5
+ export type ResolveCommunityReport = {
6
+ report_id: CommunityReportId;
7
+ resolved: boolean;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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-action-structs.0",
4
+ "version": "1.0.0-action-structs.1",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "typescript": "^5.5.4",
41
41
  "typescript-eslint": "^8.7.0"
42
42
  },
43
- "packageManager": "pnpm@10.5.2",
43
+ "packageManager": "pnpm@10.6.1",
44
44
  "types": "./dist/index.d.ts",
45
45
  "lint-staged": {
46
46
  "*.{ts,tsx,js}": [
@@ -1,14 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { ModHideCommunityId } from "./ModHideCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- /**
5
- * When a community is hidden from public view.
6
- */
7
- export type ModHideCommunity = {
8
- id: ModHideCommunityId;
9
- community_id: CommunityId;
10
- mod_person_id: PersonId;
11
- published: string;
12
- reason?: string;
13
- hidden: boolean;
14
- };
@@ -1 +0,0 @@
1
- export type ModHideCommunityId = number;
@@ -1,11 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { ModHideCommunity } from "./ModHideCommunity";
3
- import type { Person } from "./Person";
4
- /**
5
- * When a community is hidden from public view.
6
- */
7
- export type ModHideCommunityView = {
8
- mod_hide_community: ModHideCommunity;
9
- admin?: Person;
10
- community: Community;
11
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * A type / status for a community subscribe.
3
- */
4
- export type SubscribedType = "Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });