Skip to content

iconSchema

const iconSchema: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{ file: ZodObject<{ expiry_time: ZodUnion<readonly [ZodISODateTime, ZodISODate]>; url: ZodURL; }, $strip>; type: ZodLiteral<"file">; }, $strip>, ZodObject<{ file_upload: ZodObject<{ id: ZodUUID; }, $strip>; type: ZodLiteral<"file_upload">; }, $strip>, ZodObject<{ external: ZodObject<{ url: ZodURL; }, $strip>; type: ZodLiteral<"external">; }, $strip>], "type">, ZodObject<{ emoji: ZodString; type: ZodLiteral<"emoji">; }, $strip>, ZodObject<{ icon: ZodObject<{ color: ZodOptional<ZodEnum<{ blue: "blue"; brown: "brown"; gray: "gray"; green: "green"; lightgray: "lightgray"; orange: "orange"; pink: "pink"; purple: "purple"; red: "red"; yellow: "yellow"; }>>; name: ZodString; }, $strip>; type: ZodLiteral<"icon">; }, $strip>, ZodObject<{ custom_emoji: ZodObject<{ id: ZodUUID; name: ZodOptional<ZodString>; url: ZodOptional<ZodURL>; }, $strip>; type: ZodLiteral<"custom_emoji">; }, $strip>]>

Defined in: src/schemas/icon.schema.ts:79

Shared icon schema covering all icon object variants.