matrix-react-sdk
Version:
SDK for matrix.org using React
15 lines (14 loc) • 632 B
TypeScript
import { Widget, WidgetKind } from "matrix-widget-api";
import { SdkContextClass } from "../../contexts/SDKContext";
export declare enum OIDCState {
Allowed = 0,// user has set the remembered value as allowed
Denied = 1,// user has set the remembered value as disallowed
Unknown = 2
}
export declare class WidgetPermissionStore {
private readonly context;
constructor(context: SdkContextClass);
private packSettingKey;
getOIDCState(widget: Widget, kind: WidgetKind, roomId?: string): OIDCState;
setOIDCState(widget: Widget, kind: WidgetKind, roomId: string | undefined, newState: OIDCState): void;
}