13 行
373 B
TypeScript
13 行
373 B
TypeScript
import { z } from "zod";
|
|
|
|
export const bootstrapStatusSchema = z
|
|
.object({
|
|
appVersion: z.string().min(1),
|
|
platform: z.string().min(1),
|
|
rustCore: z.enum(["ready", "pending"]),
|
|
protocolVersion: z.string().min(1),
|
|
databaseSchemaVersion: z.number().int().positive(),
|
|
})
|
|
.strict();
|
|
|
|
export type BootstrapStatus = z.infer<typeof bootstrapStatusSchema>;
|