Definitions#

These TypeScript definitions document server validation. check.object rejects unknown fields. Custom functions and refinements specify additional checks.

Imported definitions#

matrixDirectorySearch#

matrixDirectorySearch = object({ search_term: text(200, 0), limit: optional(integer(0, 100)) })

Related definitions:

MatrixDirectoryResult#

export type MatrixDirectoryResult = {
    results: {
        user_id: string;
        display_name: string;
    }[];
    limited: boolean;
};