import { MaybeTimestamp } from "../../../util/timestamp.js";
import { z } from "zod/v3";
//#region lib/modules/datasource/crate/schema.ts
const RegistryConfigSchema = z.object({
	dl: z.string(),
	api: z.string().optional()
});
const ReleaseTimestamp = z.object({ version: z.object({ created_at: MaybeTimestamp }) }).transform(({ version: { created_at } }) => created_at).nullable().catch(null);
//#endregion
export { RegistryConfigSchema, ReleaseTimestamp };

//# sourceMappingURL=schema.js.map