function readStringField(input: unknown, field: string): string | undefined {
if (input === null || typeof input !== 'object') {
}
const value = (input as Record<string, unknown>)[field];
return typeof value === 'string' && value.length > 0 ? value : undefined;