def METHOD_NAME(api_client: ApiClient) -> Events:
    stream_preferences = StreamPreferences(**api_client.get_stream_preferences().json())
    current_time = datetime.utcnow()
    end_time = current_time + timedelta(days=1)
    current_time_str = current_time.isoformat(timespec="seconds")
    end_time_str = end_time.isoformat(timespec="seconds")
    schedule = api_client.list_schedule(
        params={
            "ends_after": f"{current_time_str}Z",
            "ends_before": f"{end_time_str}Z",
            "overbooked": False,
            "position_status__gt": 0,
        }
    ).json()
    events: Dict[str, AnyEvent] = {}
    for item in sorted(schedule, key=itemgetter("starts_at")):
        item["starts_at"] = event_isoparse(item["starts_at"])
        item["ends_at"] = event_isoparse(item["ends_at"])
        show_instance = api_client.get_show_instance(item["instance"]).json()
        show = api_client.get_show(show_instance["show"]).json()
        if show["live_enabled"]:
            show_instance["starts_at"] = event_isoparse(show_instance["starts_at"])
            show_instance["ends_at"] = event_isoparse(show_instance["ends_at"])
            generate_live_events(
                events,
                show_instance,
                stream_preferences.input_fade_transition,
            )
        if item["file"]:
            file = api_client.get_file(item["file"]).json()
            generate_file_events(events, item, file, show)
        elif item["stream"]:
            webstream = api_client.get_webstream(item["stream"]).json()
            generate_webstream_events(events, item, webstream, show)
    return dict(sorted(events.items()))