lemmy-js-client 0.19.4-alpha.11 → 0.19.4-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +14 -0
- package/dist/http.js +16 -0
- package/dist/index.d.ts +3 -0
- package/dist/types/CommentReplyView.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +4 -0
- package/dist/types/ListMedia.js +3 -0
- package/dist/types/ListMediaResponse.d.ts +4 -0
- package/dist/types/ListMediaResponse.js +2 -0
- package/dist/types/LocalImage.d.ts +7 -0
- package/dist/types/LocalImage.js +2 -0
- package/dist/types/PersonMentionView.d.ts +1 -0
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -132,6 +132,8 @@ import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
132
132
|
import { ListCommentLikes } from "./types/ListCommentLikes";
|
133
133
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
134
134
|
import { HidePost } from "./types/HidePost";
|
135
|
+
import { ListMedia } from "./types/ListMedia";
|
136
|
+
import { ListMediaResponse } from "./types/ListMediaResponse";
|
135
137
|
/**
|
136
138
|
* Helps build lemmy HTTP requests.
|
137
139
|
*/
|
@@ -205,6 +207,18 @@ export declare class LemmyHttp {
|
|
205
207
|
* `HTTP.GET /user/validate_auth`
|
206
208
|
*/
|
207
209
|
validateAuth(): Promise<SuccessResponse>;
|
210
|
+
/**
|
211
|
+
* List all the media for your user
|
212
|
+
*
|
213
|
+
* `HTTP.GET /account/list_media`
|
214
|
+
*/
|
215
|
+
listMedia(form?: ListMedia): Promise<ListMediaResponse>;
|
216
|
+
/**
|
217
|
+
* List all the media known to your instance.
|
218
|
+
*
|
219
|
+
* `HTTP.GET /admin/list_all_media`
|
220
|
+
*/
|
221
|
+
listAllMedia(form?: ListMedia): Promise<ListMediaResponse>;
|
208
222
|
/**
|
209
223
|
* Enable / Disable TOTP / two-factor authentication.
|
210
224
|
*
|
package/dist/http.js
CHANGED
@@ -128,6 +128,22 @@ class LemmyHttp {
|
|
128
128
|
validateAuth() {
|
129
129
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/validate_auth", {});
|
130
130
|
}
|
131
|
+
/**
|
132
|
+
* List all the media for your user
|
133
|
+
*
|
134
|
+
* `HTTP.GET /account/list_media`
|
135
|
+
*/
|
136
|
+
listMedia(form = {}) {
|
137
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form);
|
138
|
+
}
|
139
|
+
/**
|
140
|
+
* List all the media known to your instance.
|
141
|
+
*
|
142
|
+
* `HTTP.GET /admin/list_all_media`
|
143
|
+
*/
|
144
|
+
listAllMedia(form = {}) {
|
145
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form);
|
146
|
+
}
|
131
147
|
/**
|
132
148
|
* Enable / Disable TOTP / two-factor authentication.
|
133
149
|
*
|
package/dist/index.d.ts
CHANGED
@@ -125,6 +125,8 @@ export { ListCommentReports } from "./types/ListCommentReports";
|
|
125
125
|
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
|
126
126
|
export { ListCommunities } from "./types/ListCommunities";
|
127
127
|
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
128
|
+
export { ListMedia } from "./types/ListMedia";
|
129
|
+
export { ListMediaResponse } from "./types/ListMediaResponse";
|
128
130
|
export { ListPostLikes } from "./types/ListPostLikes";
|
129
131
|
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
130
132
|
export { ListPostReports } from "./types/ListPostReports";
|
@@ -134,6 +136,7 @@ export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageRep
|
|
134
136
|
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
135
137
|
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
136
138
|
export { ListingType } from "./types/ListingType";
|
139
|
+
export { LocalImage } from "./types/LocalImage";
|
137
140
|
export { LocalSite } from "./types/LocalSite";
|
138
141
|
export { LocalSiteId } from "./types/LocalSiteId";
|
139
142
|
export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
package/package.json
CHANGED