From 9972e1badf3e40e844d2200d2591b2a8ea9cc2db Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 15 Jan 2025 11:47:30 -0500 Subject: [PATCH] Pictrs delete token (#446) * no delete token * 0.20.0-no-delete-token.1 * 0.20.0-no-delete-token.2 --------- Co-authored-by: Felix Ableitner --- package.json | 2 +- src/types/DeleteImageParams.ts | 2 +- src/types/LocalImage.ts | 1 - src/types/UploadImageResponse.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a7ed740..a9d6b4c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.20.0-modlog-combined.1", + "version": "0.20.0-no-delete-token.2", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/types/DeleteImageParams.ts b/src/types/DeleteImageParams.ts index 626a45a..9a6e795 100644 --- a/src/types/DeleteImageParams.ts +++ b/src/types/DeleteImageParams.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DeleteImageParams = { filename: string; token: string }; +export type DeleteImageParams = { filename: string }; diff --git a/src/types/LocalImage.ts b/src/types/LocalImage.ts index fcdec28..666c621 100644 --- a/src/types/LocalImage.ts +++ b/src/types/LocalImage.ts @@ -4,6 +4,5 @@ import type { LocalUserId } from "./LocalUserId"; export type LocalImage = { local_user_id?: LocalUserId; pictrs_alias: string; - pictrs_delete_token: string; published: string; }; diff --git a/src/types/UploadImageResponse.ts b/src/types/UploadImageResponse.ts index afc7d98..c27b321 100644 --- a/src/types/UploadImageResponse.ts +++ b/src/types/UploadImageResponse.ts @@ -3,5 +3,4 @@ export type UploadImageResponse = { image_url: string; filename: string; - delete_token: string; };