mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
9 lines
386 B
TypeScript
9 lines
386 B
TypeScript
import { z } from 'zod'
|
|
|
|
const APP_STAR_SOURCE_VALUES = ['star_nag', 'settings', 'landing'] as const
|
|
|
|
// Why: renderer-originated IPC is untrusted, so main validates against this
|
|
// closed enum before attaching source context to successful star telemetry.
|
|
export const appStarSourceSchema = z.enum(APP_STAR_SOURCE_VALUES)
|
|
export type AppStarSource = z.infer<typeof appStarSourceSchema>
|