Class MinifluxClient

MinifluxClient provides a TypeScript interface to interact with the Miniflux RSS reader API. It supports both API key and password authentication methods.

Constructors

Methods

  • Creates a new category.

    Parameters

    • title: string

      Title of the category

    Returns Promise<Category>

    Promise resolving to the created category

  • Creates a new feed.

    Parameters

    • feedUrl: string

      URL of the feed to create

    • OptionalcategoryId: number

      Optional category ID to assign the feed to

    Returns Promise<Feed>

    Promise resolving to the created feed

  • Creates a new user (admin only).

    Parameters

    • username: string

      Username for the new user

    • password: string

      Password for the new user

    • isAdmin: boolean

      Whether the new user should have admin privileges

    Returns Promise<User>

    Promise resolving to the created user

  • Deletes a category.

    Parameters

    • categoryId: number

      ID of the category to delete

    Returns Promise<void>

  • Deletes a feed.

    Parameters

    • feedId: number

      ID of the feed to delete

    Returns Promise<void>

  • Deletes a user (admin only).

    Parameters

    • userId: number

      ID of the user to delete

    Returns Promise<void>

  • Fetches the original content of an entry.

    Parameters

    • entryId: number

      ID of the entry

    Returns Promise<{ content: string }>

    Promise resolving to the entry content

  • Retrieves all categories.

    Returns Promise<Category[]>

    Promise resolving to an array of categories

  • Retrieves entries for a specific category.

    Parameters

    • categoryId: number

      ID of the category

    • Optionalfilter: Filter

      Optional filter parameters

    Returns Promise<EntryResultSet>

    Promise resolving to the filtered entries

  • Retrieves an enclosure.

    Parameters

    • enclosureId: number

      ID of the enclosure

    Returns Promise<Enclosure>

    Promise resolving to the enclosure details

  • Retrieves a specific entry.

    Parameters

    • entryId: number

      ID of the entry to retrieve

    Returns Promise<Entry>

    Promise resolving to the entry details

  • Retrieves a specific feed by ID.

    Parameters

    • feedId: number

      ID of the feed to retrieve

    Returns Promise<Feed>

    Promise resolving to the feed details

  • Retrieves entries for a specific feed.

    Parameters

    • feedId: number

      ID of the feed

    • Optionalfilter: Filter

      Optional filter parameters

    Returns Promise<EntryResultSet>

    Promise resolving to the filtered entries

  • Retrieves the icon for a feed.

    Parameters

    • feedId: number

      ID of the feed

    Returns Promise<FeedIcon>

    Promise resolving to the feed icon data

  • Retrieves all feeds.

    Returns Promise<Feed[]>

    Promise resolving to an array of feeds

  • Retrieves the current user's information.

    Returns Promise<User>

    Promise resolving to the user details

  • Retrieves the Miniflux URL for an entry.

    Parameters

    • id: number

      ID of the entry

    Returns Promise<string>

    Promise resolving to the Miniflux URL

  • Retrieves a specific user.

    Parameters

    • userId: number

      ID of the user

    Returns Promise<User>

    Promise resolving to the user details

  • Retrieves all users (admin only).

    Returns Promise<User[]>

    Promise resolving to an array of users

  • Retrieves version information about the Miniflux server.

    Returns Promise<string>

    Promise resolving to version information

  • Checks the health status of the Miniflux server.

    Returns Promise<string>

    Promise resolving to "OK" if the server is healthy

  • Marks all entries in a category as read.

    Parameters

    • categoryId: number

      ID of the category

    Returns Promise<void>

  • Marks all entries in a feed as read.

    Parameters

    • feedId: number

      ID of the feed

    Returns Promise<void>

  • Marks all entries for a user as read.

    Parameters

    • userId: number

      ID of the user

    Returns Promise<void>

  • Refreshes all feeds.

    Returns Promise<void>

  • Refreshes all feeds in a category.

    Parameters

    • categoryId: number

      ID of the category

    Returns Promise<void>

  • Refreshes a specific feed.

    Parameters

    • feedId: number

      ID of the feed to refresh

    Returns Promise<void>

  • Saves an entry to third-party services.

    Parameters

    • entryId: number

      ID of the entry

    Returns Promise<void>

  • Search for entries.

    Parameters

    • query: string

      Search query

    • Optionallimit: number

      Optional limit for the number of results

    Returns Promise<EntryResultSet>

    Promise resolving to the search results

  • Toggles the bookmark status of an entry.

    Parameters

    • entryId: number

      ID of the entry

    Returns Promise<void>

  • Updates a category.

    Parameters

    • categoryId: number

      ID of the category

    • title: string

      New title for the category

    Returns Promise<Category>

    Promise resolving to the updated category

  • Updates an enclosure's media progression.

    Parameters

    • enclosureId: number

      ID of the enclosure

    • mediaProgression: number

      New media progression value

    Returns Promise<void>

  • Updates an entry's content.

    Parameters

    • entryId: number

      ID of the entry

    • payload: EntryUpdatePayload

      Update payload containing title and/or content

    Returns Promise<Entry>

    Promise resolving to the updated entry

  • Updates the status of an entry.

    Parameters

    • entryId: number

      ID of the entry

    • status: "unread" | "read"

      New status ('read' or 'unread')

    Returns Promise<void>

  • Updates a feed.

    Parameters

    • feedId: number

      ID of the feed to update

    • changes: Partial<Feed>

      Partial feed object containing the changes

    Returns Promise<Feed>

    Promise resolving to the updated feed

  • Updates a user's information.

    Parameters

    • userId: number

      ID of the user to update

    • changes: Partial<User>

      Partial user object containing the changes

    Returns Promise<User>

    Promise resolving to the updated user