mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-14 22:08:45 +00:00
20 lines
615 B
TypeScript
20 lines
615 B
TypeScript
import { z } from "zod";
|
|
|
|
export const masterKeyListResponse = z.object({
|
|
meks: z.array(
|
|
z.object({
|
|
version: z.number().int().positive(),
|
|
state: z.enum(["active", "retired"]),
|
|
mek: z.string().base64().nonempty(),
|
|
mekSig: z.string().base64().nonempty(),
|
|
}),
|
|
),
|
|
});
|
|
export type MasterKeyListResponse = z.output<typeof masterKeyListResponse>;
|
|
|
|
export const initialMasterKeyRegisterRequest = z.object({
|
|
mek: z.string().base64().nonempty(),
|
|
mekSig: z.string().base64().nonempty(),
|
|
});
|
|
export type InitialMasterKeyRegisterRequest = z.input<typeof initialMasterKeyRegisterRequest>;
|