lemmy-js-client 0.20.0-api-v4.1 → 0.20.0-api-v4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +1 -1
- package/dist/http.js +2 -2
- package/dist/types/GetSiteResponse.d.ts +0 -2
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -209,7 +209,7 @@ export declare class LemmyHttp {
|
|
209
209
|
*
|
210
210
|
* `HTTP.GET /account/settings`
|
211
211
|
*/
|
212
|
-
|
212
|
+
getMyUser(options?: RequestOptions): Promise<MyUserInfo>;
|
213
213
|
/**
|
214
214
|
* Export a backup of your user settings, including your saved content,
|
215
215
|
* followed communities, and blocks.
|
package/dist/http.js
CHANGED
@@ -100,8 +100,8 @@ class LemmyHttp {
|
|
100
100
|
*
|
101
101
|
* `HTTP.GET /account/settings`
|
102
102
|
*/
|
103
|
-
|
104
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings",
|
103
|
+
getMyUser(options) {
|
104
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings", {}, options);
|
105
105
|
}
|
106
106
|
/**
|
107
107
|
* Export a backup of your user settings, including your saved content,
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { Language } from "./Language";
|
2
2
|
import type { LanguageId } from "./LanguageId";
|
3
3
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
4
|
-
import type { MyUserInfo } from "./MyUserInfo";
|
5
4
|
import type { OAuthProvider } from "./OAuthProvider";
|
6
5
|
import type { PersonView } from "./PersonView";
|
7
6
|
import type { PublicOAuthProvider } from "./PublicOAuthProvider";
|
@@ -14,7 +13,6 @@ export type GetSiteResponse = {
|
|
14
13
|
site_view: SiteView;
|
15
14
|
admins: Array<PersonView>;
|
16
15
|
version: string;
|
17
|
-
my_user?: MyUserInfo;
|
18
16
|
all_languages: Array<Language>;
|
19
17
|
discussion_languages: Array<LanguageId>;
|
20
18
|
/**
|
package/package.json
CHANGED