cal.pub0.org/packages/app-store/dailyvideo/lib/getDailyAppKeys.ts

13 lines
310 B
TypeScript

import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
const dailyAppKeysSchema = z.object({
api_key: z.string(),
});
export const getDailyAppKeys = async () => {
const appKeys = await getAppKeysFromSlug("daily-video");
return dailyAppKeysSchema.parse(appKeys);
};