add: GitHub authentication
This commit is contained in:
@@ -167,7 +167,7 @@ export interface Paper {
|
||||
};
|
||||
authors: {
|
||||
profilePicture: number | Media;
|
||||
user: number | User;
|
||||
user: string | User;
|
||||
position: 'leader' | 'member';
|
||||
description: string;
|
||||
id?: string | null;
|
||||
@@ -286,18 +286,21 @@ export interface Media {
|
||||
* via the `definition` "users".
|
||||
*/
|
||||
export interface User {
|
||||
id: number;
|
||||
id: string;
|
||||
email: string;
|
||||
emailVerified?: string | null;
|
||||
name?: string | null;
|
||||
image?: string | null;
|
||||
accounts?:
|
||||
| {
|
||||
id?: string | null;
|
||||
provider: string;
|
||||
providerAccountId: string;
|
||||
type: string;
|
||||
}[]
|
||||
| null;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
email: string;
|
||||
resetPasswordToken?: string | null;
|
||||
resetPasswordExpiration?: string | null;
|
||||
salt?: string | null;
|
||||
hash?: string | null;
|
||||
loginAttempts?: number | null;
|
||||
lockUntil?: string | null;
|
||||
password?: string | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
@@ -399,7 +402,7 @@ export interface Post {
|
||||
description?: string | null;
|
||||
};
|
||||
publishedAt?: string | null;
|
||||
authors?: (number | User)[] | null;
|
||||
authors?: (string | User)[] | null;
|
||||
populatedAuthors?:
|
||||
| {
|
||||
id?: string | null;
|
||||
@@ -973,7 +976,7 @@ export interface PayloadLockedDocument {
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'users';
|
||||
value: number | User;
|
||||
value: string | User;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'redirects';
|
||||
@@ -998,7 +1001,7 @@ export interface PayloadLockedDocument {
|
||||
globalSlug?: string | null;
|
||||
user: {
|
||||
relationTo: 'users';
|
||||
value: number | User;
|
||||
value: string | User;
|
||||
};
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
@@ -1011,7 +1014,7 @@ export interface PayloadPreference {
|
||||
id: number;
|
||||
user: {
|
||||
relationTo: 'users';
|
||||
value: number | User;
|
||||
value: string | User;
|
||||
};
|
||||
key?: string | null;
|
||||
value?:
|
||||
@@ -1367,16 +1370,21 @@ export interface CategoriesSelect<T extends boolean = true> {
|
||||
* via the `definition` "users_select".
|
||||
*/
|
||||
export interface UsersSelect<T extends boolean = true> {
|
||||
id?: T;
|
||||
email?: T;
|
||||
emailVerified?: T;
|
||||
name?: T;
|
||||
image?: T;
|
||||
accounts?:
|
||||
| T
|
||||
| {
|
||||
id?: T;
|
||||
provider?: T;
|
||||
providerAccountId?: T;
|
||||
type?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
email?: T;
|
||||
resetPasswordToken?: T;
|
||||
resetPasswordExpiration?: T;
|
||||
salt?: T;
|
||||
hash?: T;
|
||||
loginAttempts?: T;
|
||||
lockUntil?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
@@ -1754,7 +1762,7 @@ export interface TaskSchedulePublish {
|
||||
value: number | Post;
|
||||
} | null);
|
||||
global?: string | null;
|
||||
user?: (number | null) | User;
|
||||
user?: (string | null) | User;
|
||||
};
|
||||
output?: unknown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user