UNPKG

matrix-react-sdk

Version:
38 lines (37 loc) 1.92 kB
import { IClientWellKnown, MatrixClient } from "matrix-js-sdk/src/matrix"; import { UnstableValue } from "matrix-js-sdk/src/NamespacedValue"; export declare const TILE_SERVER_WK_KEY: UnstableValue<"m.tile_server", "org.matrix.msc3488.tile_server">; export interface ICallBehaviourWellKnown { widget_build_url?: string; ignore_dm?: boolean; } export interface IE2EEWellKnown { default?: boolean; /** * Forces the encryption to disabled for all new rooms * When true, overrides configured 'default' behaviour * Hides the option to enable encryption on room creation * Disables the option to enable encryption in room settings for all new and existing rooms */ force_disable?: boolean; secure_backup_required?: boolean; secure_backup_setup_methods?: SecureBackupSetupMethod[]; } export interface ITileServerWellKnown { map_style_url?: string; } export interface IEmbeddedPagesWellKnown { home_url?: string; } export declare function getCallBehaviourWellKnown(matrixClient: MatrixClient): ICallBehaviourWellKnown; export declare function getE2EEWellKnown(matrixClient: MatrixClient): IE2EEWellKnown | null; export declare function getTileServerWellKnown(matrixClient: MatrixClient): ITileServerWellKnown | undefined; export declare function tileServerFromWellKnown(clientWellKnown?: IClientWellKnown | undefined): ITileServerWellKnown; export declare function getEmbeddedPagesWellKnown(matrixClient: MatrixClient | undefined): IEmbeddedPagesWellKnown | undefined; export declare function embeddedPagesFromWellKnown(clientWellKnown?: IClientWellKnown): IEmbeddedPagesWellKnown; export declare function isSecureBackupRequired(matrixClient: MatrixClient): boolean; export declare enum SecureBackupSetupMethod { Key = "key", Passphrase = "passphrase" } export declare function getSecureBackupSetupMethods(matrixClient: MatrixClient): SecureBackupSetupMethod[];