<?php

return [
    'api_keys' => [
        'max_total' => (int) env('EARN_MAX_TOTAL_TOKENS', 5),
        'allowed_durations' => ['1_day', '7_days', '30_days', '90_days', '180_days', '1_year', 'unlimited'],
        'default_duration' => '90_days',
    ],
    'device' => ['hash_key' => env('EARN_DEVICE_HASH_KEY')],
    'api' => [
        'bind_per_minute' => (int) env('EARN_DEVICE_BIND_RATE_LIMIT', 5),
        'tasks_per_minute' => (int) env('EARN_TASKS_RATE_LIMIT', 30),
        /*
        | Görev sonucu gönderim hızını ve güvenli hata metni sınırını belirler.
        |
        | Yazar: Gökhan Engin - İletişim : https://bit.ly/YazılımUzmanı
        */
        'task_results_per_minute' => (int) env('EARN_TASK_RESULTS_RATE_LIMIT', 30),
        'task_result_max_error_length' => (int) env('EARN_TASK_RESULT_MAX_ERROR_LENGTH', 500),
        'failed_device_per_minute' => (int) env('EARN_FAILED_DEVICE_RATE_LIMIT', 3),
        'access_log_retention_days' => (int) env('EARN_API_ACCESS_LOG_RETENTION_DAYS', 90),
    ],
    'legal' => [
        'terms' => ['version' => '1.0-draft', 'effective_date' => '2026-08-22'],
        'privacy' => ['version' => '1.0-draft', 'effective_date' => '2026-08-22'],
    ],
    'tasks_per_usd' => 10_000,
    'minimum_payout_usd' => 50,
];
