<?php
declare(strict_types=1);

// Current ai_app read calls lacking complete A/B response and C JSON type proof.
// An empty owned source remains an empty branch, never a positive case.
function next_read_routes(): array
{
    $r = static function (string $method, string $path, array $params,
        string $side, string $table, string $owner = '',
        string $selector = ''): array {
        return ['method' => $method, 'path' => $path, 'params' => $params,
            'source_side' => $side, 'source_table' => $table,
            'owner_column' => $owner, 'selector' => $selector];
    };
    return [
        $r('GET', '/api/sport.item/consume', ['duration' => 30],
            'ai', 'sport_item', '', 'sport_item_id'),
        $r('GET', '/api/drill.course/detail', [],
            'ai', 'drill_course', '', 'course_id'),
        $r('GET', '/api/activity/leaderboard', ['limit' => 5],
            'ai', 'activity', '', 'activity_id'),
        $r('POST', '/api/Cashout/read', [],
            'ai', 'recharge_order', 'USER_ID'),
        $r('GET', '/api/user.userCourse/schedule', [],
            'ai', 'user_weight_status', 'USER_ID'),
        $r('POST', '/api/WellandScale/latest', [],
            'store', 'measurement_session', 'AI_USER_ID'),
        $r('POST', '/api/meal.meal/index', ['date' => '2026-10-04'],
            'ai', 'meal', 'STAFF_ID'),
        $r('POST', '/api/meal.meal/calendar', ['start_date' => '2026-10-04',
            'end_date' => '2026-10-04'], 'ai', 'meal', 'STAFF_ID'),
        $r('POST', '/api/meal.meal/infos', ['meal_date' => '2026-10-04',
            'meal_times' => 2], 'ai', 'meal', 'STAFF_ID'),
        $r('GET', '/api/wolland.rope/stats', ['date' => '2026-10-04'],
            'store', 'measurement_session', 'AI_USER_ID'),
        $r('GET', '/api/wolland.rope/all', ['start_date' => '2026-10-04',
            'end_date' => '2026-10-04'], 'store', 'measurement_session', 'AI_USER_ID'),
    ];
}
