lemmy-js-client 0.20.0-api-v4.15 → 0.20.0-api-v4.17

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -691,7 +691,7 @@ export declare class LemmyHttp {
691
691
  /**
692
692
  * Mark all replies as read.
693
693
  *
694
- * `HTTP.POST /account/mention/mark_all_as_read`
694
+ * `HTTP.POST /account/mention/mark_as_read/all`
695
695
  */
696
696
  markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
697
697
  /**
package/dist/http.js CHANGED
@@ -745,10 +745,10 @@ class LemmyHttp {
745
745
  /**
746
746
  * Mark all replies as read.
747
747
  *
748
- * `HTTP.POST /account/mention/mark_all_as_read`
748
+ * `HTTP.POST /account/mention/mark_as_read/all`
749
749
  */
750
750
  markAllAsRead(options) {
751
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_all_as_read", {}, options);
751
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read/all", {}, options);
752
752
  }
753
753
  /**
754
754
  * Save your user settings.
@@ -4,6 +4,7 @@ import type { OAuthProviderId } from "./OAuthProviderId";
4
4
  */
5
5
  export type AuthenticateWithOauth = {
6
6
  code: string;
7
+ pkce_code_verifier?: string;
7
8
  oauth_provider_id: OAuthProviderId;
8
9
  redirect_uri: string;
9
10
  show_nsfw?: boolean;
@@ -12,4 +12,6 @@ export type CommentAggregates = {
12
12
  * The total number of children in this comment branch.
13
13
  */
14
14
  child_count: number;
15
+ report_count: number;
16
+ unresolved_report_count: number;
15
17
  };
@@ -13,5 +13,6 @@ export type CreateOAuthProvider = {
13
13
  scopes: string;
14
14
  auto_verify_email?: boolean;
15
15
  account_linking_enabled?: boolean;
16
+ use_pkce?: boolean;
16
17
  enabled?: boolean;
17
18
  };
@@ -13,5 +13,6 @@ export type EditOAuthProvider = {
13
13
  scopes?: string;
14
14
  auto_verify_email?: boolean;
15
15
  account_linking_enabled?: boolean;
16
+ use_pkce?: boolean;
16
17
  enabled?: boolean;
17
18
  };
@@ -130,6 +130,8 @@ export type LemmyErrorType = {
130
130
  error: "rate_limit_error";
131
131
  } | {
132
132
  error: "invalid_name";
133
+ } | {
134
+ error: "invalid_code_verifier";
133
135
  } | {
134
136
  error: "invalid_display_name";
135
137
  } | {
@@ -56,4 +56,8 @@ export type OAuthProvider = {
56
56
  enabled: boolean;
57
57
  published: string;
58
58
  updated?: string;
59
+ /**
60
+ * switch to enable or disable PKCE
61
+ */
62
+ use_pkce: boolean;
59
63
  };
@@ -13,4 +13,6 @@ export type PostAggregates = {
13
13
  * The time of the newest comment in the post.
14
14
  */
15
15
  newest_comment_time: string;
16
+ report_count: number;
17
+ unresolved_report_count: number;
16
18
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-api-v4.15",
4
+ "version": "0.20.0-api-v4.17",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -31,11 +31,11 @@
31
31
  "prettier-plugin-organize-imports": "^4.0.0",
32
32
  "prettier-plugin-packagejson": "^2.5.1",
33
33
  "sortpack": "^2.4.0",
34
- "typedoc": "^0.26.5",
34
+ "typedoc": "^0.27.0",
35
35
  "typescript": "^5.5.4",
36
36
  "typescript-eslint": "^8.7.0"
37
37
  },
38
- "packageManager": "pnpm@9.14.2",
38
+ "packageManager": "pnpm@9.15.0",
39
39
  "types": "./dist/index.d.ts",
40
40
  "lint-staged": {
41
41
  "*.{ts,tsx,js}": [