feat: implement get cookies and CSRF and credentials

This commit is contained in:
H3CoF6 committed 2026-05-09 05:17:18 +08:00
1 parent 8b313fe088
commit c8dd520d65
5 files changed
+95 -6

No files matched your search

+3
View File
@@ -102,6 +102,9 @@ export interface ApiActionContext {
getGroupEssenceAll?: (groupId: number) => Promise<GroupEssenceMsgRet[]>;
sendGroupNotice?: (groupId: number, content: string, options?: any) => Promise<any>;
getGroupNotice?: (groupId: number) => Promise<any[]>;
getCookiesStr?: (domain: string) => Promise<string>;
getCsrfToken?: () => Promise<number>;
getCredentials?: (domain: string) => Promise<{ cookies: string; token: number; csrf_token: number }>;
}
type ActionHandler = (params: JsonObject) => Promise<import('./types').ApiResponse>;