X-Git-Url: http://these/git/?a=blobdiff_plain;f=ui%2Fsrc%2Finterfaces.ts;h=12430836c45d1b0ad9f95f550bdc4a6d1ea2e210;hb=1336b4ed6023e7fcf0fd40be63569966ee4b1b45;hp=b9842516167733e345d4cb4ec11364b022c5ff19;hpb=f040dac647d50c97e3f9ab8058563a7fe0f29261;p=lemmy.git diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index b9842516..12430836 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -43,6 +43,8 @@ export enum UserOperation { GetPrivateMessages, UserJoin, GetComments, + GetSiteConfig, + SaveSiteConfig, } export enum CommentSortType { @@ -724,6 +726,19 @@ export interface SiteForm { auth?: string; } +export interface GetSiteConfig { + auth?: string; +} + +export interface GetSiteConfigResponse { + config_hjson: string; +} + +export interface SiteConfigForm { + config_hjson: string; + auth?: string; +} + export interface GetSiteResponse { site: Site; admins: Array; @@ -871,7 +886,8 @@ export type MessageType = | PasswordChangeForm | PrivateMessageForm | EditPrivateMessageForm - | GetPrivateMessagesForm; + | GetPrivateMessagesForm + | SiteConfigForm; type ResponseType = | SiteResponse @@ -893,7 +909,8 @@ type ResponseType = | BanUserResponse | AddAdminResponse | PrivateMessageResponse - | PrivateMessagesResponse; + | PrivateMessagesResponse + | GetSiteConfigResponse; export interface WebSocketResponse { op: UserOperation;