| 9 | import { apiGet, apiPost } from './request'; |
| 10 | |
| 11 | export interface BootstrapInfo { |
| 12 | initialized: boolean; |
| 13 | site_title: string; |
| 14 | site_host: string; |
| 15 | mail_enabled: boolean; |
| 16 | db_source: 'd1' | 'mysql' | 'prisma' | 'unset'; |
| 17 | db_ok: boolean; |
| 18 | db_error?: string; |
| 19 | register_allow: boolean; |
| 20 | register_code_required: boolean; |
| 21 | cert_captcha: { |
| 22 | enabled: boolean; |
| 23 | provider: string; |
| 24 | site_key: string; |
| 25 | }; |
| 26 | /** |
| 27 | * 登录 / 注册 / 找回密码发送邮件验证码的人机验证开关。 |
| 28 | * 与 cert_captcha 共用同一套 provider / site_key 凭证。 |
| 29 | */ |
| 30 | base_captcha: { |
| 31 | enabled: boolean; |
| 32 | provider: string; |
| 33 | site_key: string; |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * 获取系统初始化/运行状态。 |
nothing calls this directly
no outgoing calls
no test coverage detected