mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-18 16:08:48 +00:00
20 lines
611 B
TypeScript
20 lines
611 B
TypeScript
import { z } from "zod";
|
|
|
|
export const hmacSecretListResponse = z.object({
|
|
hsks: z.array(
|
|
z.object({
|
|
version: z.number().int().positive(),
|
|
state: z.enum(["active"]),
|
|
mekVersion: z.number().int().positive(),
|
|
hsk: z.string().base64().nonempty(),
|
|
}),
|
|
),
|
|
});
|
|
export type HmacSecretListResponse = z.infer<typeof hmacSecretListResponse>;
|
|
|
|
export const initialHmacSecretRegisterRequest = z.object({
|
|
mekVersion: z.number().int().positive(),
|
|
hsk: z.string().base64().nonempty(),
|
|
});
|
|
export type InitialHmacSecretRegisterRequest = z.infer<typeof initialHmacSecretRegisterRequest>;
|