Type alias LicenseInfo

LicenseInfo: {
    features: {
        expires?: number;
    };
    hash: string;
    license?: string;
    status: "good" | "expiring" | "expired" | "read-only";
    upgrading: boolean;
    version: number;
}

Information about the server license.

Type declaration

  • features: {
        expires?: number;
    }

    Properties of the license.

    • Optional expires?: number

      The timestamp of the expiration date of the license in seconds since the Unix epoch.

  • hash: string

    The hash value of the license.

  • Optional license?: string

    The encrypted license key in base 64 encoding, or "none" when running in the Community Edition.

  • status: "good" | "expiring" | "expired" | "read-only"

    The status of the installed license.

    • "good": The license is valid for more than 2 weeks.

    • "expiring": The license is valid for less than 2 weeks.

    • "expired": The license has expired.

    • "read-only": The license has been expired for more than 2 weeks.

  • upgrading: boolean

    Whether the server is performing a database upgrade.

  • version: number

    The license version number.