mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { z } from 'zod'
|
|
import { conditionSchema } from './condition.js'
|
|
import { responseSchema } from './response.js'
|
|
|
|
export const commandResponderSchema = z.object({
|
|
condition: conditionSchema.optional(),
|
|
responses: z.array(responseSchema),
|
|
hints: z.array(z.string()),
|
|
})
|
|
|
|
export type CommandResponder = z.infer<typeof commandResponderSchema>
|