/** * Navidrome MCP Server - Shared defaults * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later * * Shared defaults and limits live here so every module that reads one sees the same value. */ export declare const DEFAULT_VALUES: { readonly PLAYLISTS_LIMIT: 100; readonly SEARCH_ALL_LIMIT: 15; readonly PLAYLIST_TRACKS_LIMIT: 100; readonly PLAY_QUEUE_LIMIT: 100; readonly STARRED_ITEMS_LIMIT: 100; readonly TOP_RATED_LIMIT: 100; readonly RECENTLY_PLAYED_LIMIT: 100; readonly MOST_PLAYED_LIMIT: 100; readonly SIMILAR_ARTISTS_LIMIT: 100; readonly SIMILAR_TRACKS_LIMIT: 100; readonly TRENDING_MUSIC_LIMIT: 100; readonly TAG_SEARCH_LIMIT: 100; readonly TAG_DISTRIBUTION_LIMIT: 10; readonly TAG_DISTRIBUTION_VALUES_LIMIT: 20; readonly RADIO_DISCOVERY_LIMIT: 15; readonly RADIO_DISCOVERY_PROBE_COUNT: 8; }; export declare const SUBSONIC_API_VERSION = "1.16.1"; /** The Subsonic `c` parameter. Servers attribute traffic by it, so it must not change. */ export declare const SUBSONIC_CLIENT_NAME = "navidrome-mcp"; export declare const DEFAULT_USER_AGENT = "Navidrome-MCP"; export declare const DEFAULT_MUSICBRAINZ_USER_AGENT = "Navidrome-MCP (https://github.com/Blakeem/Navidrome-MCP)"; export declare const DEFAULT_LRCLIB_BASE = "https://lrclib.net"; export declare const DEFAULT_TOKEN_EXPIRY_SECONDS = 86400; export declare const DEFAULT_MCP_HTTP_PORT = 3000; export declare const DEFAULT_WEBUI_PORT = 8808; export declare const DEFAULT_TRANSCODE_FORMAT = "raw"; export declare const DEFAULT_TRANSCODE_BITRATE = "192"; /** Request stride of `fetchPages`, the paging loop behind every queue read. It is not a row cap. */ export declare const QUEUE_READ_PAGE_SIZE = 500; /** * Safety cap on the pages one `fetchPages` walk follows, against an inflated X-Total-Count. * An album-set read runs one walk per album chunk, so its total rows can exceed the cap. */ export declare const MAX_QUEUE_READ_PAGES = 20; /** With no theme set, each device follows its own light or dark preference. */ export declare const WEBUI_THEMES: readonly ["light", "dark"]; export type WebuiTheme = (typeof WEBUI_THEMES)[number]; export declare function parseWebuiTheme(value: unknown): WebuiTheme | null; /** * The web player probes and links 127.0.0.1, so only a bind that answers 127.0.0.1 works. localhost * and ::1 bind IPv6 loopback under Node's DNS order, and a specific interface skips loopback. */ export declare const WEBUI_BIND_HOSTS: readonly string[]; /** * `none` keeps the open remote. `password` puts every route behind an admin session. `jukebox` adds * guests, who join with a jukebox code and can only add songs. */ export declare const WEBUI_AUTH_MODES: readonly ["none", "password", "jukebox"]; export type WebuiAuthMode = (typeof WEBUI_AUTH_MODES)[number]; /** The request sources whose admin session the web player honors, from narrowest to widest. */ export declare const WEBUI_ADMIN_ACCESS_LEVELS: readonly ["localhost", "lan", "anywhere"]; export type WebuiAdminAccess = (typeof WEBUI_ADMIN_ACCESS_LEVELS)[number]; /** The bounds a new admin password must meet, shared by the settings page and the env fallback. */ export declare const ADMIN_PASSWORD_MIN_LENGTH = 8; export declare const ADMIN_PASSWORD_MAX_LENGTH = 128; export declare function isAdminPasswordLengthValid(password: string): boolean; /** 90 days, the longest jukebox code lifetime the admin can pick. It also sets the guest cookie lifetime. */ export declare const JUKEBOX_CODE_MAX_LIFETIME_HOURS = 2160; /** How many unplayed songs one guest may hold in the queue at a time. The host sets it in the Guests dialog. */ export declare const DEFAULT_GUEST_QUEUE_LIMIT = 3; export declare const GUEST_QUEUE_LIMIT_MIN = 1; export declare const GUEST_QUEUE_LIMIT_MAX = 20; /** Which join link the Jukebox dialog's QR shows. */ export declare const JUKEBOX_SHARE_LINKS: readonly ["lan", "internet"]; export type JukeboxShareLink = (typeof JUKEBOX_SHARE_LINKS)[number]; /** An internet link reaches a guest on the home Wi-Fi only through router NAT loopback. */ export declare const DEFAULT_JUKEBOX_SHARE_LINK: JukeboxShareLink; export declare function parseJukeboxShareLink(value: unknown): JukeboxShareLink; //# sourceMappingURL=defaults.d.ts.map