lemmy-js-client 1.0.0-action-structs.1 → 1.0.0-media-fixes.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/http.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Controller } from "tsoa";
1
+ import { Controller } from "@tsoa/runtime";
2
2
  import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
@@ -194,13 +194,21 @@ export declare class LemmyHttp extends Controller {
194
194
  */
195
195
  validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
196
196
  /**
197
- * @summary List all the media for your user
197
+ * @summary List all the media for your account.
198
198
  */
199
199
  listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
200
+ /**
201
+ * @summary Delete media for your account.
202
+ */
203
+ deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
204
+ /**
205
+ * @summary Delete any media. (Admin only)
206
+ */
207
+ deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
200
208
  /**
201
209
  * @summary List all the media known to your instance.
202
210
  */
203
- listAllMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
211
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
204
212
  /**
205
213
  * @summary Enable / Disable TOTP / two-factor authentication.
206
214
  *
@@ -424,7 +432,7 @@ export declare class LemmyHttp extends Controller {
424
432
  /**
425
433
  * @summary Mark a private message as read.
426
434
  */
427
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
435
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
428
436
  /**
429
437
  * @summary Create a report for a private message.
430
438
  */
@@ -632,7 +640,7 @@ export declare class LemmyHttp extends Controller {
632
640
  /**
633
641
  * @summary Upload new user avatar.
634
642
  */
635
- uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
643
+ uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
636
644
  /**
637
645
  * @summary Delete the user avatar.
638
646
  */
@@ -640,7 +648,7 @@ export declare class LemmyHttp extends Controller {
640
648
  /**
641
649
  * @summary Upload new user banner.
642
650
  */
643
- uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
651
+ uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
644
652
  /**
645
653
  * @summary Delete the user banner.
646
654
  */
@@ -648,7 +656,7 @@ export declare class LemmyHttp extends Controller {
648
656
  /**
649
657
  * @summary Upload new community icon.
650
658
  */
651
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
659
+ uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
652
660
  /**
653
661
  * @summary Delete the community icon.
654
662
  */
@@ -656,7 +664,7 @@ export declare class LemmyHttp extends Controller {
656
664
  /**
657
665
  * @summary Upload new community banner.
658
666
  */
659
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
667
+ uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
660
668
  /**
661
669
  * @summary Delete the community banner.
662
670
  */
@@ -664,7 +672,7 @@ export declare class LemmyHttp extends Controller {
664
672
  /**
665
673
  * @summary Upload new site icon.
666
674
  */
667
- uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
675
+ uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
668
676
  /**
669
677
  * @summary Delete the site icon.
670
678
  */
@@ -672,7 +680,7 @@ export declare class LemmyHttp extends Controller {
672
680
  /**
673
681
  * @summary Upload new site banner.
674
682
  */
675
- uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
683
+ uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
676
684
  /**
677
685
  * @summary Delete the site banner.
678
686
  */
@@ -681,10 +689,6 @@ export declare class LemmyHttp extends Controller {
681
689
  * @summary Upload an image to the server.
682
690
  */
683
691
  uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
684
- /**
685
- * @summary Delete a pictrs image
686
- */
687
- deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
688
692
  /**
689
693
  * @summary Health check for image functionality
690
694
  */