diff --git a/package.json b/package.json index 6654159..8aa4aad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.19.6-beta.1", + "version": "0.20.0-alpha.4", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/types/BanFromCommunity.ts b/src/types/BanFromCommunity.ts index bcbf1ed..8571430 100644 --- a/src/types/BanFromCommunity.ts +++ b/src/types/BanFromCommunity.ts @@ -6,7 +6,7 @@ export interface BanFromCommunity { community_id: CommunityId; person_id: PersonId; ban: boolean; - remove_data?: boolean; + remove_or_restore_data?: boolean; reason?: string; expires?: number; } diff --git a/src/types/BanPerson.ts b/src/types/BanPerson.ts index 57195ed..bfd1bba 100644 --- a/src/types/BanPerson.ts +++ b/src/types/BanPerson.ts @@ -4,7 +4,7 @@ import type { PersonId } from "./PersonId"; export interface BanPerson { person_id: PersonId; ban: boolean; - remove_data?: boolean; + remove_or_restore_data?: boolean; reason?: string; expires?: number; }