export type PlayRunInputPayload = Record | unknown[]; export function normalizePlayRunInputPayload( input: unknown, ): PlayRunInputPayload { if (Array.isArray(input)) return input; if (input && typeof input === 'object') { return input as Record; } return {}; } export function playRunInputObjectView( input: PlayRunInputPayload, ): Record { return Array.isArray(input) ? {} : input; }