m-oauth/lib/types.ts
2023-06-06 00:31:36 +08:00

27 lines
No EOL
434 B
TypeScript

export type MethodType =
| "read"
| "write"
| "follow"
| "crypto"
| "follow"
| "admin"
| "push";
export interface ScopeInfo {
method: MethodType;
label: string;
scopes?: string[] | string[][];
description: string;
}
export interface AppEntry {
id: string;
name: string;
website: string | null;
redirectUri: string;
clientId: string;
clientSecret: string;
vapidKey: string;
}