16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import { z } from "zod";
|
|
|
|
export enum FeatureResType {
|
|
Boolean = "boolean",
|
|
SingleUsage = "single_use",
|
|
ContinuousUse = "continuous_use",
|
|
CreditSystem = "credit_system",
|
|
}
|
|
export const FeatureResponseSchema = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
type: z.nativeEnum(FeatureResType),
|
|
});
|
|
|
|
export type FeatureResponse = z.infer<typeof FeatureResponseSchema>;
|