Clov Packages
    Preparing search index...

    Interface ScalarConfiguration

    The Scalar API reference configuration options.

    Only the JSON-serializable ones: the configuration is inlined in the page with JSON.stringify, so functions (events, customFetch, plugins, slug generators, custom sorters) would be dropped. url is set by the plugin.

    interface ScalarConfiguration {
        agent?: { disabled?: boolean; key?: string };
        authentication?: {
            createAnySecurityScheme?: boolean;
            preferredSecurityScheme?: string | readonly (string | readonly string[])[];
            securitySchemes?: Readonly<
                Record<string, Readonly<Record<string, unknown>>>,
            >;
        };
        baseServerURL?: string;
        customCss?: string;
        darkMode?: boolean;
        defaultHttpClient?: { clientKey: string; targetKey: string };
        defaultOpenAllTags?: boolean;
        defaultOpenFirstTag?: boolean;
        defaultRequestBodyView?: "form" | "raw";
        documentDownloadType?: "none" | "json" | "yaml" | "both" | "direct";
        expandAllModelSections?: boolean;
        expandAllParameters?: boolean;
        expandAllResponses?: boolean;
        expandAllSchemaProperties?: boolean;
        favicon?: string;
        featuredClients?: readonly string[];
        forceDarkModeState?: "dark" | "light";
        hiddenClients?:
            | true
            | readonly string[]
            | Readonly<Record<string, boolean | readonly string[]>>;
        hideClientButton?: boolean;
        hideDarkModeToggle?: boolean;
        hideModelNames?: boolean;
        hideModels?: boolean;
        hideSearch?: boolean;
        hideTestRequestButton?: boolean;
        isEditable?: boolean;
        layout?: "modern" | "classic";
        localization?: {
            direction?: "ltr" | "rtl" | "auto";
            locale?: string;
            translations?: Readonly<Record<string, unknown>>;
        };
        maxVisibleRequestBodyProperties?: number;
        mcp?: { disabled?: boolean; name?: string; url?: string };
        metaData?: Readonly<Record<string, string>>;
        modelsSectionLabel?: string;
        oauth2RedirectUri?: string;
        operationsSorter?: "method" | "alpha";
        operationTitleSource?: "summary" | "path";
        orderRequiredPropertiesFirst?: boolean;
        orderSchemaPropertiesBy?: "alpha" | "preserve";
        pathRouting?: { basePath: string };
        persistAuth?: boolean;
        pluginUrls?: readonly string[];
        proxyUrl?: string;
        schemaKeyboardNav?: boolean;
        searchHotKey?: string;
        servers?: readonly ServerObject[];
        showDeveloperTools?: "always" | "localhost" | "never";
        showExtensions?: readonly `x-${string}`[];
        showOperationId?: boolean;
        showSidebar?: boolean;
        tagsSorter?: "alpha";
        telemetry?: boolean;
        theme?:
            | "default"
            | "none"
            | "alternate"
            | "bluePlanet"
            | "deepSpace"
            | "elysiajs"
            | "fastify"
            | "kepler"
            | "laserwave"
            | "mars"
            | "moon"
            | "purple"
            | "saturn"
            | "solarized";
        withDefaultFonts?: boolean;
    }
    Index
    agent?: { disabled?: boolean; key?: string }
    authentication?: {
        createAnySecurityScheme?: boolean;
        preferredSecurityScheme?: string | readonly (string | readonly string[])[];
        securitySchemes?: Readonly<
            Record<string, Readonly<Record<string, unknown>>>,
        >;
    }
    baseServerURL?: string
    customCss?: string
    darkMode?: boolean
    defaultHttpClient?: { clientKey: string; targetKey: string }
    defaultOpenAllTags?: boolean
    defaultOpenFirstTag?: boolean
    defaultRequestBodyView?: "form" | "raw"
    documentDownloadType?: "none" | "json" | "yaml" | "both" | "direct"
    expandAllModelSections?: boolean
    expandAllParameters?: boolean
    expandAllResponses?: boolean
    expandAllSchemaProperties?: boolean
    favicon?: string
    featuredClients?: readonly string[]

    target/client ids, like shell/curl

    forceDarkModeState?: "dark" | "light"
    hiddenClients?:
        | true
        | readonly string[]
        | Readonly<Record<string, boolean | readonly string[]>>
    hideClientButton?: boolean
    hideDarkModeToggle?: boolean
    hideModelNames?: boolean
    hideModels?: boolean
    hideSearch?: boolean
    hideTestRequestButton?: boolean
    isEditable?: boolean
    layout?: "modern" | "classic"
    localization?: {
        direction?: "ltr" | "rtl" | "auto";
        locale?: string;
        translations?: Readonly<Record<string, unknown>>;
    }
    maxVisibleRequestBodyProperties?: number
    mcp?: { disabled?: boolean; name?: string; url?: string }
    metaData?: Readonly<Record<string, string>>
    modelsSectionLabel?: string
    oauth2RedirectUri?: string
    operationsSorter?: "method" | "alpha"
    operationTitleSource?: "summary" | "path"
    orderRequiredPropertiesFirst?: boolean
    orderSchemaPropertiesBy?: "alpha" | "preserve"
    pathRouting?: { basePath: string }
    persistAuth?: boolean
    pluginUrls?: readonly string[]

    ESM modules default-exporting a plugin

    proxyUrl?: string
    schemaKeyboardNav?: boolean
    searchHotKey?: string
    servers?: readonly ServerObject[]
    showDeveloperTools?: "always" | "localhost" | "never"
    showExtensions?: readonly `x-${string}`[]
    showOperationId?: boolean
    showSidebar?: boolean
    tagsSorter?: "alpha"
    telemetry?: boolean
    theme?:
        | "default"
        | "none"
        | "alternate"
        | "bluePlanet"
        | "deepSpace"
        | "elysiajs"
        | "fastify"
        | "kepler"
        | "laserwave"
        | "mars"
        | "moon"
        | "purple"
        | "saturn"
        | "solarized"
    withDefaultFonts?: boolean