import { z } from 'zod';
import { soundNameSchema } from '../../sounds'; // Import from domains/sounds
import { PLAY_SOUND_DURATION, SOUND_ACTION_COMMAND } from './Sound.const';

export const soundActionCommandSchema = z.enum(SOUND_ACTION_COMMAND);

export const playSoundOptionsSchema = z.object({
  soundName: soundNameSchema,
  durationMs: z.union([z.number(), z.literal(PLAY_SOUND_DURATION.INFINITE)]).optional(),
});
