import { z } from 'zod';
export const SESSION_PERMISSION_MODES = [
    'default',
    'acceptEdits',
    'bypassPermissions',
    'plan',
    'read-only',
    'safe-yolo',
    'yolo',
];
/**
 * Parse behavior:
 * - Known values parse as-is.
 * - Unknown/invalid values parse as `'default'` (forward compatible; never throws).
 */
export function createSessionPermissionModeSchema(zod) {
    return zod.enum(SESSION_PERMISSION_MODES).catch('default');
}
export const SessionPermissionModeSchema = createSessionPermissionModeSchema(z);
//# sourceMappingURL=sessionPermissionModes.js.map