neet/masto.js

View on GitHub
src/mastodon/entities/v1/list.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type ListRepliesPolicy = "followed" | "list" | "none";

/**
 * Represents a list of some users that the authenticated user follows.
 * @see https://docs.joinmastodon.org/entities/list/
 */
export interface List {
  /** The internal database ID of the list. */
  id: string;
  /** The user-defined title of the list. */
  title: string;
  /**
   * Which replies should be shown in the list.
   *
   * `followed` = Show replies to any followed user
   *
   * `list` = Show replies to members of the list
   *
   * `none` = Show replies to no one
   */
  repliesPolicy: ListRepliesPolicy;
  /** https://github.com/mastodon/mastodon/pull/22048/files */
  exclusive: boolean;
}