<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */

    'postmark' => [
        'key' => env('POSTMARK_API_KEY'),
    ],

    'resend' => [
        'key' => env('RESEND_API_KEY'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'slack' => [
        'notifications' => [
            'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
            'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
        ],
    ],

    'fuel_finder' => [
        'base_url' => env('FUEL_FINDER_BASE_URL', 'https://www.fuel-finder.service.gov.uk/api/v1'),
        'client_id' => env('FUEL_FINDER_CLIENT_ID'),
        'client_secret' => env('FUEL_FINDER_CLIENT_SECRET'),
    ],

    'fred' => [
        'api_key' => env('FRED_API_KEY'),
    ],

    'eia' => [
        'api_key' => env('EIA_API_KEY'),
    ],

    'anthropic' => [
        'api_key' => env('ANTHROPIC_API_KEY'),
        'model' => env('ANTHROPIC_MODEL', 'claude-sonnet-4-6'),
    ],

    'openai' => [
        'api_key' => env('OPENAI_API_KEY'),
        'model' => env('OPENAI_MODEL', 'gpt-4o-mini'),
    ],

    'gemini' => [
        'api_key' => env('GEMINI_API_KEY'),
        'model' => env('GEMINI_MODEL', 'gemini-2.0-flash'),
    ],

    'llm' => [
        'provider' => env('LLM_PREDICTION_PROVIDER', 'anthropic'),
    ],

    'forecasting' => [
        // Phase 9 station-churn trigger is gated until ≥180 days of stable
        // polling. Flip on once `station_prices` has continuous coverage —
        // see `.claude/rules/forecasting.md`.
        'station_churn_enabled' => env('FORECASTING_STATION_CHURN_ENABLED', false),
    ],

    'fuelalert' => [
        'api_key' => env('FUELALERT_API_KEY'),
    ],

    'onesignal' => [
        'app_id' => env('ONESIGNAL_APP_ID'),
        'api_key' => env('ONESIGNAL_API_KEY'),
    ],

    'vonage' => [
        'key' => env('VONAGE_KEY'),
        'secret' => env('VONAGE_SECRET'),
        'whatsapp_from' => env('VONAGE_WHATSAPP_FROM'),
        'sms_from' => env('VONAGE_SMS_FROM', 'FuelAlert'),
    ],

    'stripe' => [
        'prices' => [
            'basic' => [
                'monthly' => env('STRIPE_PRICE_BASIC_MONTHLY'),
                'annual' => env('STRIPE_PRICE_BASIC_ANNUAL'),
            ],
            'plus' => [
                'monthly' => env('STRIPE_PRICE_PLUS_MONTHLY'),
                'annual' => env('STRIPE_PRICE_PLUS_ANNUAL'),
            ],
            'pro' => [
                'monthly' => env('STRIPE_PRICE_PRO_MONTHLY'),
                'annual' => env('STRIPE_PRICE_PRO_ANNUAL'),
            ],
        ],
    ],

];
