/** * Seed Pod CLI Module * * 提供对 seed pod 的管理功能: * - status: 查看 seed pod 状态 * - credentials: 生成测试凭证 * - reset: 重置 seed pod * * 安全限制:只能操作 seed 配置中定义的账户,不能操作任意用户。 */ export interface SeedAccount { email: string; password: string; pods?: Array<{ name: string; }>; } export interface SeedCredentials { clientId: string; clientSecret: string; webId: string; podUrl: string; issuer: string; } export interface ResolveSeedCredentialsOptions { seedPath?: string; baseUrl?: string; podName?: string; label?: string; } /** * 加载 seed 配置 */ export declare function loadSeedConfig(seedPath?: string): SeedAccount[]; /** * 获取服务 Base URL */ export declare function getBaseUrl(): string; /** * 检查服务是否运行 */ export declare function checkServer(baseUrl: string): Promise; /** * 使用 seed 账户登录 */ export declare function loginWithSeed(baseUrl: string, email: string, password: string): Promise; export declare function resolveSeedCredentials(options?: ResolveSeedCredentialsOptions): Promise; /** * seed status 命令 */ export declare function seedStatus(seedPath?: string): Promise; /** * seed credentials 命令 * * 生成 seed pod 的测试凭证,输出到控制台。 * 只能操作 seed 配置中定义的账户。 */ export declare function seedCredentials(seedPath?: string): Promise; /** * seed reset 命令 * * 重置 seed pod 数据。当前仅输出提示,实际实现需要清理 Pod 数据。 */ export declare function seedReset(seedPath?: string): Promise;