Definitions#

All code blocks below are TypeScript declarations copied from the server. They document validation, not JSON to send or code to paste into a chat. Clients can use any HTTP library without importing these declarations. 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;
};