import { H3Event } from 'h3'; type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; export interface RequestOptions { event: H3Event; endpoint: string; method: Method; query?: Record; body?: Record; parseJson?: boolean; cookie?: string; referer?: string; redirect?: RequestRedirect; /** * start_login: 开始登录流程 (把微信原始响应中的 uuid 这个 set-cookie 传递给客户端,以便后续扫码登录用) * login: 登录流程完成 (把微信原始响应中的所有 set-cookie 存储在 CookieStore 中,并返回给客户端一个唯一的cookie: auth-key=xxx) * switch_account: 切换公众号 */ action?: 'start_login' | 'login' | 'switch_account'; }