import type { CommentId } from "./CommentId"; import type { CommunityId } from "./CommunityId"; import type { ListingType } from "./ListingType"; import type { ModlogId } from "./ModlogId"; import type { ModlogKindFilter } from "./ModlogKindFilter"; import type { PaginationCursor } from "./PaginationCursor"; import type { PersonId } from "./PersonId"; import type { PostId } from "./PostId"; /** * Fetches the modlog. */ export type GetModlog = { /** * Filter by the moderator. */ mod_person_id?: PersonId; /** * Filter by the community. */ community_id?: CommunityId; /** * Filter by the modlog action type. */ type_?: ModlogKindFilter; /** * Filter by listing type. When not using All, it will remove the non-community modlog entries, * such as site bans, instance blocks, adding an admin, etc. */ listing_type?: ListingType; /** * Filter by the other / modded person. */ other_person_id?: PersonId; /** * Filter by post. Will include comments of that post. */ post_id?: PostId; /** * Filter by comment. */ comment_id?: CommentId; /** * When `true` show all. When `false` or `None`, hide bulk actions (default). */ show_bulk?: boolean; /** * Return only child entries triggered by this parent modlog action. */ bulk_action_parent_id?: ModlogId; page_cursor?: PaginationCursor; limit?: number; };