lemmy-js-client 1.0.0-post-tags.3 → 1.0.0-private-community-fixes.0

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 (141) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +44 -24
  3. package/dist/http.js +84 -31
  4. package/dist/index.d.ts +24 -29
  5. package/dist/other_types.d.ts +0 -3
  6. package/dist/types/{ModAdd.d.ts → AdminAdd.d.ts} +4 -4
  7. package/dist/types/AdminAddId.d.ts +1 -0
  8. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  9. package/dist/types/AdminAllowInstance.d.ts +1 -1
  10. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  11. package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +4 -4
  12. package/dist/types/AdminBanId.d.ts +1 -0
  13. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  14. package/dist/types/AdminBlockInstance.d.ts +1 -1
  15. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  16. package/dist/types/AdminPurgeComment.d.ts +1 -1
  17. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  18. package/dist/types/AdminPurgePerson.d.ts +1 -1
  19. package/dist/types/AdminPurgePost.d.ts +1 -1
  20. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
  21. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  22. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  23. package/dist/types/AllLemmyErrors.d.ts +1 -0
  24. package/dist/types/AllLemmyErrors.js +117 -0
  25. package/dist/types/BanFromCommunity.d.ts +1 -1
  26. package/dist/types/BanPerson.d.ts +1 -1
  27. package/dist/types/Comment.d.ts +4 -0
  28. package/dist/types/CommentReportView.d.ts +2 -0
  29. package/dist/types/CommentSlimView.d.ts +0 -2
  30. package/dist/types/CommentView.d.ts +2 -2
  31. package/dist/types/CommunityFollowerState.d.ts +1 -1
  32. package/dist/types/CommunityReportView.d.ts +2 -0
  33. package/dist/types/CommunityView.d.ts +0 -2
  34. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  35. package/dist/types/CreateCustomEmoji.js +0 -1
  36. package/dist/types/CreateSite.d.ts +0 -1
  37. package/dist/types/EditCustomEmoji.d.ts +7 -5
  38. package/dist/types/EditSite.d.ts +4 -4
  39. package/dist/types/GetMultiCommunity.d.ts +2 -1
  40. package/dist/types/HideCommunity.d.ts +1 -1
  41. package/dist/types/InstanceActions.d.ts +6 -2
  42. package/dist/types/LemmyErrorType.d.ts +23 -133
  43. package/dist/types/LinkMetadata.d.ts +4 -0
  44. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  45. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  46. package/dist/types/LocalSite.d.ts +1 -6
  47. package/dist/types/LocalUser.d.ts +10 -13
  48. package/dist/types/LocalUserView.d.ts +1 -0
  49. package/dist/types/LockComment.d.ts +9 -0
  50. package/dist/types/LockPost.d.ts +1 -1
  51. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
  52. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  53. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  54. package/dist/types/ModBanFromCommunity.d.ts +1 -1
  55. package/dist/types/ModLockComment.d.ts +14 -0
  56. package/dist/types/ModLockCommentId.d.ts +1 -0
  57. package/dist/types/ModLockCommentView.d.ts +16 -0
  58. package/dist/types/ModLockPost.d.ts +1 -1
  59. package/dist/types/ModRemoveComment.d.ts +1 -1
  60. package/dist/types/ModRemovePost.d.ts +1 -1
  61. package/dist/types/ModlogActionType.d.ts +1 -1
  62. package/dist/types/ModlogCombinedView.d.ts +16 -13
  63. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  64. package/dist/types/MultiCommunityView.d.ts +2 -0
  65. package/dist/types/MyUserInfo.d.ts +2 -1
  66. package/dist/types/Notification.d.ts +22 -2
  67. package/dist/types/NotificationData.d.ts +31 -1
  68. package/dist/types/NotificationType.d.ts +4 -0
  69. package/dist/types/OpenGraphData.d.ts +4 -0
  70. package/dist/types/PendingFollowerView.d.ts +9 -0
  71. package/dist/types/PersonResponse.d.ts +7 -0
  72. package/dist/types/PersonView.d.ts +2 -1
  73. package/dist/types/Post.d.ts +2 -0
  74. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +7 -7
  75. package/dist/types/PostReportView.d.ts +2 -0
  76. package/dist/types/PostView.d.ts +2 -2
  77. package/dist/types/PrivateMessageReportView.d.ts +1 -0
  78. package/dist/types/PurgeComment.d.ts +1 -1
  79. package/dist/types/PurgeCommunity.d.ts +1 -1
  80. package/dist/types/PurgePerson.d.ts +1 -1
  81. package/dist/types/PurgePost.d.ts +1 -1
  82. package/dist/types/ReadableFederationState.d.ts +1 -1
  83. package/dist/types/RemoveComment.d.ts +1 -1
  84. package/dist/types/RemoveCommunity.d.ts +1 -1
  85. package/dist/types/RemovePost.d.ts +1 -1
  86. package/dist/types/SaveUserSettings.d.ts +5 -5
  87. package/dist/types/UntranslatedError.d.ts +12 -0
  88. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  89. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  90. package/dist/types/UserSettingsBackup.d.ts +2 -1
  91. package/package.json +6 -5
  92. package/dist/types/BanPersonResponse.d.ts +0 -8
  93. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  94. package/dist/types/BlockPersonResponse.d.ts +0 -8
  95. package/dist/types/CommentReply.d.ts +0 -13
  96. package/dist/types/CommentReplyId.d.ts +0 -4
  97. package/dist/types/FederationError.d.ts +0 -10
  98. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  99. package/dist/types/InboxDataType.d.ts +0 -4
  100. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  101. package/dist/types/ModAddCommunityId.d.ts +0 -1
  102. package/dist/types/ModAddId.d.ts +0 -1
  103. package/dist/types/ModBanId.d.ts +0 -1
  104. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  105. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  106. package/dist/types/NotificationTypes.d.ts +0 -4
  107. package/dist/types/NotificationTypes.js +0 -3
  108. package/dist/types/NotificationsMode.d.ts +0 -4
  109. package/dist/types/NotificationsMode.js +0 -3
  110. package/dist/types/PersonCommentMention.d.ts +0 -13
  111. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  112. package/dist/types/PersonCommentMentionId.js +0 -3
  113. package/dist/types/PersonNotification.d.ts +0 -9
  114. package/dist/types/PersonPostMention.d.ts +0 -13
  115. package/dist/types/PersonPostMention.js +0 -2
  116. package/dist/types/PersonPostMentionId.d.ts +0 -4
  117. package/dist/types/PersonPostMentionId.js +0 -3
  118. package/dist/types/UserBlockInstanceParams.js +0 -2
  119. /package/dist/types/{BanPersonResponse.js → AdminAdd.js} +0 -0
  120. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  121. /package/dist/types/{BlockCommunityResponse.js → AdminAddView.js} +0 -0
  122. /package/dist/types/{BlockPersonResponse.js → AdminBan.js} +0 -0
  123. /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
  124. /package/dist/types/{CommentReply.js → AdminBanView.js} +0 -0
  125. /package/dist/types/{GetCommunityPendingFollowsCount.js → AdminRemoveCommunity.js} +0 -0
  126. /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
  127. /package/dist/types/{MarkPrivateMessageAsRead.js → AdminRemoveCommunityView.js} +0 -0
  128. /package/dist/types/{ModAdd.js → LockComment.js} +0 -0
  129. /package/dist/types/{ModAddCommunity.js → ModAddToCommunity.js} +0 -0
  130. /package/dist/types/{ModAddCommunityId.js → ModAddToCommunityId.js} +0 -0
  131. /package/dist/types/{ModAddCommunityView.js → ModAddToCommunityView.js} +0 -0
  132. /package/dist/types/{ModAddView.js → ModLockComment.js} +0 -0
  133. /package/dist/types/{ModAddId.js → ModLockCommentId.js} +0 -0
  134. /package/dist/types/{ModBan.js → ModLockCommentView.js} +0 -0
  135. /package/dist/types/{ModBanView.js → MultiCommunityResponse.js} +0 -0
  136. /package/dist/types/{ModBanId.js → NotificationType.js} +0 -0
  137. /package/dist/types/{ModRemoveCommunity.js → PendingFollowerView.js} +0 -0
  138. /package/dist/types/{ModRemoveCommunityView.js → PersonResponse.js} +0 -0
  139. /package/dist/types/{ModRemoveCommunityId.js → UntranslatedError.js} +0 -0
  140. /package/dist/types/{PersonCommentMention.js → UserBlockInstanceCommunitiesParams.js} +0 -0
  141. /package/dist/types/{PersonNotification.js → UserBlockInstancePersonsParams.js} +0 -0
@@ -1,10 +1,10 @@
1
- import type { ModAdd } from "./ModAdd";
1
+ import type { AdminAdd } from "./AdminAdd";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is added as a site moderator.
5
5
  */
6
- export type ModAddView = {
7
- mod_add: ModAdd;
6
+ export type AdminAddView = {
7
+ admin_add: AdminAdd;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,6 +6,6 @@ export type AdminAllowInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  export type AdminAllowInstanceParams = {
2
2
  instance: string;
3
3
  allow: boolean;
4
- reason?: string;
4
+ reason: string;
5
5
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminBanId } from "./AdminBanId";
1
2
  import type { InstanceId } from "./InstanceId";
2
- import type { ModBanId } from "./ModBanId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When someone is banned from the site.
6
6
  */
7
- export type ModBan = {
8
- id: ModBanId;
7
+ export type AdminBan = {
8
+ id: AdminBanId;
9
9
  mod_person_id: PersonId;
10
10
  other_person_id: PersonId;
11
- reason?: string;
11
+ reason: string;
12
12
  banned: boolean;
13
13
  expires_at?: string;
14
14
  published_at: string;
@@ -0,0 +1 @@
1
+ export type AdminBanId = number;
@@ -1,10 +1,10 @@
1
- import type { ModBan } from "./ModBan";
1
+ import type { AdminBan } from "./AdminBan";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is banned from the site.
5
5
  */
6
- export type ModBanView = {
7
- mod_ban: ModBan;
6
+ export type AdminBanView = {
7
+ admin_ban: AdminBan;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,7 +6,7 @@ export type AdminBlockInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
- reason?: string;
9
+ reason: string;
10
10
  expires_at?: string;
11
11
  published_at: string;
12
12
  };
@@ -1,6 +1,11 @@
1
1
  export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
- reason?: string;
5
- expires_at?: string;
4
+ reason: string;
5
+ /**
6
+ * A time that the block will expire, in unix epoch seconds.
7
+ *
8
+ * An i64 unix timestamp is used for a simpler API client implementation.
9
+ */
10
+ expires_at?: number;
6
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgeComment = {
8
8
  id: AdminPurgeCommentId;
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
- reason?: string;
11
+ reason: string;
12
12
  published_at: string;
13
13
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgePost = {
8
8
  id: AdminPurgePostId;
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  published_at: string;
13
13
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
1
2
  import type { CommunityId } from "./CommunityId";
2
- import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When a moderator removes a community.
6
6
  */
7
- export type ModRemoveCommunity = {
8
- id: ModRemoveCommunityId;
7
+ export type AdminRemoveCommunity = {
8
+ id: AdminRemoveCommunityId;
9
9
  mod_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  removed: boolean;
13
13
  published_at: string;
14
14
  };
@@ -0,0 +1 @@
1
+ export type AdminRemoveCommunityId = number;
@@ -0,0 +1,11 @@
1
+ import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
+ import type { Community } from "./Community";
3
+ import type { Person } from "./Person";
4
+ /**
5
+ * When an admin removes a community.
6
+ */
7
+ export type AdminRemoveCommunityView = {
8
+ admin_remove_community: AdminRemoveCommunity;
9
+ moderator?: Person;
10
+ community: Community;
11
+ };
@@ -0,0 +1 @@
1
+ export declare const AllLemmyErrors: string[];
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllLemmyErrors = void 0;
4
+ exports.AllLemmyErrors = [
5
+ "block_keyword_too_short",
6
+ "block_keyword_too_long",
7
+ "couldnt_update",
8
+ "couldnt_create",
9
+ "report_reason_required",
10
+ "report_too_long",
11
+ "not_a_moderator",
12
+ "not_an_admin",
13
+ "cant_block_yourself",
14
+ "cant_note_yourself",
15
+ "cant_block_admin",
16
+ "passwords_do_not_match",
17
+ "email_not_verified",
18
+ "email_required",
19
+ "cannot_leave_admin",
20
+ "cannot_leave_mod",
21
+ "cannot_leave_mod",
22
+ "cannot_leave_mod",
23
+ "pictrs_api_key_not_provided",
24
+ "pictrs_api_key_not_provided",
25
+ "no_content_type_header",
26
+ "not_an_image_type",
27
+ "image_upload_disabled",
28
+ "not_a_mod_or_admin",
29
+ "not_top_mod",
30
+ "not_logged_in",
31
+ "not_higher_mod",
32
+ "not_higher_admin",
33
+ "site_ban",
34
+ "deleted",
35
+ "person_is_blocked",
36
+ "community_is_blocked",
37
+ "instance_is_blocked",
38
+ "instance_is_private",
39
+ "invalid_password",
40
+ "site_description_length_overflow",
41
+ "honeypot_failed",
42
+ "registration_application_is_pending",
43
+ "locked",
44
+ "max_comment_depth_reached",
45
+ "no_comment_edit_allowed",
46
+ "only_admins_can_create_communities",
47
+ "already_exists",
48
+ "language_not_allowed",
49
+ "no_post_edit_allowed",
50
+ "nsfw_not_allowed",
51
+ "edit_private_message_not_allowed",
52
+ "application_question_required",
53
+ "invalid_default_post_listing_type",
54
+ "registration_closed",
55
+ "registration_application_answer_required",
56
+ "registration_username_required",
57
+ "email_already_taken",
58
+ "username_already_taken",
59
+ "person_is_banned_from_community",
60
+ "no_id_given",
61
+ "incorrect_login",
62
+ "no_email_setup",
63
+ "local_site_not_setup",
64
+ "local_site_not_setup",
65
+ "invalid_name",
66
+ "invalid_code_verifier",
67
+ "invalid_display_name",
68
+ "invalid_matrix_id",
69
+ "invalid_post_title",
70
+ "invalid_body_field",
71
+ "bio_length_overflow",
72
+ "alt_text_length_overflow",
73
+ "couldnt_parse_totp_secret",
74
+ "couldnt_generate_totp",
75
+ "missing_totp_token",
76
+ "missing_totp_secret",
77
+ "incorrect_totp_token",
78
+ "totp_already_enabled",
79
+ "blocked_url",
80
+ "invalid_url",
81
+ "email_send_failed",
82
+ "slurs",
83
+ "slurs",
84
+ "site_name_required",
85
+ "site_name_length_overflow",
86
+ "permissive_regex",
87
+ "invalid_regex",
88
+ "captcha_incorrect",
89
+ "couldnt_create_audio_captcha",
90
+ "couldnt_create_image_captcha",
91
+ "invalid_url_scheme",
92
+ "contradicting_filters",
93
+ "too_many_items",
94
+ "ban_expiration_in_past",
95
+ "invalid_unix_time",
96
+ "invalid_bot_action",
97
+ "tag_not_in_community",
98
+ "cant_block_local_instance",
99
+ "cant_block_local_instance",
100
+ "url_length_overflow",
101
+ "oauth_authorization_invalid",
102
+ "oauth_login_failed",
103
+ "oauth_registration_closed",
104
+ "not_found",
105
+ "post_schedule_time_must_be_in_future",
106
+ "too_many_scheduled_posts",
107
+ "cannot_combine_federation_blocklist_and_allowlist",
108
+ "cannot_combine_federation_blocklist_and_allowlist",
109
+ "couldnt_parse_pagination_token",
110
+ "couldnt_parse_pagination_token",
111
+ "invalid_fetch_limit",
112
+ "email_notifications_disabled",
113
+ "multi_community_update_wrong_user",
114
+ "cannot_combine_community_id_and_multi_community_id",
115
+ "multi_community_entry_limit_reached",
116
+ "too_many_requests",
117
+ ];
@@ -12,7 +12,7 @@ export type BanFromCommunity = {
12
12
  * If ban is true, then this means remove. If ban is false, it means restore.
13
13
  */
14
14
  remove_or_restore_data?: boolean;
15
- reason?: string;
15
+ reason: string;
16
16
  /**
17
17
  * A time that the ban will expire, in unix epoch seconds.
18
18
  *
@@ -10,7 +10,7 @@ export type BanPerson = {
10
10
  * If ban is true, then this means remove. If ban is false, it means restore.
11
11
  */
12
12
  remove_or_restore_data?: boolean;
13
- reason?: string;
13
+ reason: string;
14
14
  /**
15
15
  * A time that the ban will expire, in unix epoch seconds.
16
16
  *
@@ -53,4 +53,8 @@ export type Comment = {
53
53
  * accepted by the community (by receiving it back via federation).
54
54
  */
55
55
  federation_pending: boolean;
56
+ /**
57
+ * Whether the comment is locked.
58
+ */
59
+ locked: boolean;
56
60
  };
@@ -23,5 +23,7 @@ export type CommentReportView = {
23
23
  creator_is_admin: boolean;
24
24
  creator_is_moderator: boolean;
25
25
  creator_banned: boolean;
26
+ creator_ban_expires_at?: string;
26
27
  creator_banned_from_community: boolean;
28
+ creator_community_ban_expires_at?: string;
27
29
  };
@@ -1,6 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { InstanceActions } from "./InstanceActions";
4
3
  import type { Person } from "./Person";
5
4
  import type { PersonActions } from "./PersonActions";
6
5
  /**
@@ -11,7 +10,6 @@ export type CommentSlimView = {
11
10
  creator: Person;
12
11
  comment_actions?: CommentActions;
13
12
  person_actions?: PersonActions;
14
- instance_actions?: InstanceActions;
15
13
  creator_is_admin: boolean;
16
14
  can_mod: boolean;
17
15
  creator_banned: boolean;
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
3
  import type { Community } from "./Community";
4
4
  import type { CommunityActions } from "./CommunityActions";
5
- import type { InstanceActions } from "./InstanceActions";
6
5
  import type { Person } from "./Person";
7
6
  import type { PersonActions } from "./PersonActions";
8
7
  import type { Post } from "./Post";
@@ -18,11 +17,12 @@ export type CommentView = {
18
17
  community_actions?: CommunityActions;
19
18
  comment_actions?: CommentActions;
20
19
  person_actions?: PersonActions;
21
- instance_actions?: InstanceActions;
22
20
  creator_is_admin: boolean;
23
21
  post_tags: TagsView;
24
22
  can_mod: boolean;
25
23
  creator_banned: boolean;
24
+ creator_ban_expires_at?: string;
26
25
  creator_is_moderator: boolean;
27
26
  creator_banned_from_community: boolean;
27
+ creator_community_ban_expires_at?: string;
28
28
  };
@@ -1 +1 @@
1
- export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired";
1
+ export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired" | "Denied";
@@ -12,5 +12,7 @@ export type CommunityReportView = {
12
12
  creator_is_admin: boolean;
13
13
  creator_is_moderator: boolean;
14
14
  creator_banned: boolean;
15
+ creator_ban_expires_at?: string;
15
16
  creator_banned_from_community: boolean;
17
+ creator_community_ban_expires_at?: string;
16
18
  };
@@ -1,6 +1,5 @@
1
1
  import type { Community } from "./Community";
2
2
  import type { CommunityActions } from "./CommunityActions";
3
- import type { InstanceActions } from "./InstanceActions";
4
3
  import type { TagsView } from "./TagsView";
5
4
  /**
6
5
  * A community view.
@@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView";
8
7
  export type CommunityView = {
9
8
  community: Community;
10
9
  community_actions?: CommunityActions;
11
- instance_actions?: InstanceActions;
12
10
  can_mod: boolean;
13
11
  post_tags: TagsView;
14
12
  };
@@ -1,10 +1,11 @@
1
+ import type { DbUrl } from "./DbUrl";
1
2
  /**
2
3
  * Create a custom emoji.
3
4
  */
4
5
  export type CreateCustomEmoji = {
5
6
  category: string;
6
7
  shortcode: string;
7
- image_url: string;
8
+ image_url: DbUrl;
8
9
  alt_text: string;
9
10
  keywords: Array<string>;
10
11
  };
@@ -1,3 +1,2 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,7 +27,6 @@ export type CreateSite = {
27
27
  application_email_admins?: boolean;
28
28
  discussion_languages?: Array<LanguageId>;
29
29
  slur_filter_regex?: string;
30
- actor_name_max_length?: number;
31
30
  rate_limit_message_max_requests?: number;
32
31
  rate_limit_message_interval_seconds?: number;
33
32
  rate_limit_post_max_requests?: number;
@@ -1,11 +1,13 @@
1
1
  import type { CustomEmojiId } from "./CustomEmojiId";
2
+ import type { DbUrl } from "./DbUrl";
2
3
  /**
3
- * Edit a custom emoji.
4
+ * Edit a custom emoji.
4
5
  */
5
6
  export type EditCustomEmoji = {
6
7
  id: CustomEmojiId;
7
- category: string;
8
- image_url: string;
9
- alt_text: string;
10
- keywords: Array<string>;
8
+ category?: string;
9
+ shortcode?: string;
10
+ image_url?: DbUrl;
11
+ alt_text?: string;
12
+ keywords?: Array<string>;
11
13
  };
@@ -55,6 +55,10 @@ export type EditSite = {
55
55
  * A default time range limit to apply to post sorts, in seconds. 0 means none.
56
56
  */
57
57
  default_post_time_range_seconds?: number;
58
+ /**
59
+ * A default fetch limit for number of items returned.
60
+ */
61
+ default_items_per_page?: number;
58
62
  /**
59
63
  * The default comment sort, usually "hot"
60
64
  */
@@ -75,10 +79,6 @@ export type EditSite = {
75
79
  * A regex string of items to filter.
76
80
  */
77
81
  slur_filter_regex?: string;
78
- /**
79
- * The max length of actor names.
80
- */
81
- actor_name_max_length?: number;
82
82
  /**
83
83
  * The number of messages allowed in a given time frame.
84
84
  */
@@ -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
  };
@@ -5,5 +5,5 @@ import type { CommunityId } from "./CommunityId";
5
5
  export type HideCommunity = {
6
6
  community_id: CommunityId;
7
7
  hidden: boolean;
8
- reason?: string;
8
+ reason: string;
9
9
  };
@@ -1,8 +1,8 @@
1
1
  export type InstanceActions = {
2
2
  /**
3
- * When the instance was blocked.
3
+ * When the instance's communities were blocked.
4
4
  */
5
- blocked_at?: string;
5
+ blocked_communities_at?: string;
6
6
  /**
7
7
  * When this user received a site ban.
8
8
  */
@@ -11,4 +11,8 @@ export type InstanceActions = {
11
11
  * When their ban expires.
12
12
  */
13
13
  ban_expires_at?: string;
14
+ /**
15
+ * When the instance's persons were blocked.
16
+ */
17
+ blocked_persons_at?: string;
14
18
  };