m-oauth/lib/types.ts
2023-06-06 02:47:14 +08:00

26 lines
436 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;
redirect_uri: string;
client_id: string;
client_secret: string;
vapid_key: string;
}