From ada672c2253d66b025d421ad5d23b6258ca9482a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:51:16 -0500 Subject: [PATCH] Adding ban_expires to person (#40) --- src/interfaces/api/community.ts | 6 ++++++ src/interfaces/api/person.ts | 3 +++ src/interfaces/source.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index e7d6a37..7d072ed 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -64,6 +64,9 @@ export interface BanFromCommunity { */ remove_data?: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } @@ -110,6 +113,9 @@ export interface RemoveCommunity { community_id: number; removed: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index c85b1c6..8272552 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -173,6 +173,9 @@ export interface BanPerson { */ remove_data?: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index abf6b4a..838654f 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -35,6 +35,7 @@ export interface PersonSafe { matrix_user_id?: string; admin: boolean; bot_account: boolean; + ban_expires?: string; } export interface Site {