mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-04 18:21:12 +00:00
parent
efffc3c6e8
commit
ba49f4ea72
8 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "lemmy-js-client",
|
||||
"description": "A javascript / typescript client for Lemmy",
|
||||
"version": "0.20.0-instance-blocks.5",
|
||||
"version": "0.20.0-pkce.1",
|
||||
"author": "Dessalines <tyhou13@gmx.com>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "./dist/index.js",
|
||||
|
|
|
@ -6,6 +6,7 @@ import type { OAuthProviderId } from "./OAuthProviderId";
|
|||
*/
|
||||
export type AuthenticateWithOauth = {
|
||||
code: string;
|
||||
pkce_code_verifier?: string;
|
||||
oauth_provider_id: OAuthProviderId;
|
||||
redirect_uri: string;
|
||||
show_nsfw?: boolean;
|
||||
|
|
|
@ -14,4 +14,6 @@ export type CommentAggregates = {
|
|||
* The total number of children in this comment branch.
|
||||
*/
|
||||
child_count: number;
|
||||
report_count: number;
|
||||
unresolved_report_count: number;
|
||||
};
|
||||
|
|
|
@ -15,5 +15,6 @@ export type CreateOAuthProvider = {
|
|||
scopes: string;
|
||||
auto_verify_email?: boolean;
|
||||
account_linking_enabled?: boolean;
|
||||
use_pkce?: boolean;
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
|
|
@ -15,5 +15,6 @@ export type EditOAuthProvider = {
|
|||
scopes?: string;
|
||||
auto_verify_email?: boolean;
|
||||
account_linking_enabled?: boolean;
|
||||
use_pkce?: boolean;
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
|
|
@ -66,6 +66,7 @@ export type LemmyErrorType =
|
|||
| { error: "invalid_email_address"; message: string }
|
||||
| { error: "rate_limit_error" }
|
||||
| { error: "invalid_name" }
|
||||
| { error: "invalid_code_verifier" }
|
||||
| { error: "invalid_display_name" }
|
||||
| { error: "invalid_matrix_id" }
|
||||
| { error: "invalid_post_title" }
|
||||
|
|
|
@ -58,4 +58,8 @@ export type OAuthProvider = {
|
|||
enabled: boolean;
|
||||
published: string;
|
||||
updated?: string;
|
||||
/**
|
||||
* switch to enable or disable PKCE
|
||||
*/
|
||||
use_pkce: boolean;
|
||||
};
|
||||
|
|
|
@ -15,4 +15,6 @@ export type PostAggregates = {
|
|||
* The time of the newest comment in the post.
|
||||
*/
|
||||
newest_comment_time: string;
|
||||
report_count: number;
|
||||
unresolved_report_count: number;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue