<?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'),
    ],

    'roboflow' => [
        'key' => env('ROBOFLOW_API_KEY'),
        'api_url' => env('ROBOFLOW_API_URL', 'https://serverless.roboflow.com'),
        'workspace' => env('ROBOFLOW_WORKSPACE', 'farizs-workspace-sj3e2'),
        'workflow' => env('ROBOFLOW_WORKFLOW', 'detect-count-and-visualize-5'),
        'default_model' => env('ROBOFLOW_DEFAULT_MODEL', 'modelv1-low'),
        'models' => [
            'modelv1-low' => [
                'label' => 'Model v1 Accurate Filter',
                'api_url' => env('ROBOFLOW_MODELV1_API_URL', env('ROBOFLOW_V1_API_URL', env('ROBOFLOW_API_URL', 'https://serverless.roboflow.com'))),
                'key' => env('ROBOFLOW_MODELV1_API_KEY', env('ROBOFLOW_V1_API_KEY', env('ROBOFLOW_API_KEY'))),
                'workspace' => env('ROBOFLOW_MODELV1_WORKSPACE', env('ROBOFLOW_V1_WORKSPACE', env('ROBOFLOW_WORKSPACE', 'farizs-workspace-sj3e2'))),
                'workflow' => env('ROBOFLOW_MODELV1_WORKFLOW', env('ROBOFLOW_V1_WORKFLOW', env('ROBOFLOW_WORKFLOW', 'detect-count-and-visualize-5'))),
                'min_confidence' => (float) env('ROBOFLOW_MODELV1_MIN_CONFIDENCE', 0.35),
            ],
            'modelv2-accurate' => [
                'label' => 'Model v2 Fast Experimental',
                'api_url' => env('ROBOFLOW_MODELV2_API_URL', env('ROBOFLOW_V2_API_URL', env('ROBOFLOW_API_URL', 'https://serverless.roboflow.com'))),
                'key' => env('ROBOFLOW_MODELV2_API_KEY', env('ROBOFLOW_V2_API_KEY', env('ROBOFLOW_API_KEY'))),
                'workspace' => env('ROBOFLOW_MODELV2_WORKSPACE', env('ROBOFLOW_V2_WORKSPACE', 'players-workspace')),
                'workflow' => env('ROBOFLOW_MODELV2_WORKFLOW', env('ROBOFLOW_V2_WORKFLOW', 'detect-count-and-visualize-2')),
                'min_confidence' => (float) env('ROBOFLOW_MODELV2_MIN_CONFIDENCE', 0.85),
            ],
        ],
        'timeout' => env('ROBOFLOW_TIMEOUT', 45),
        'retries' => env('ROBOFLOW_RETRIES', 2),
    ],

    'groq' => [
        'key' => env('GROQ_API_KEY'),
        'api_url' => env('GROQ_API_URL', 'https://api.groq.com/openai/v1'),
        'timeout' => env('GROQ_TIMEOUT', 60),
        'retries' => env('GROQ_RETRIES', 2),
    ],

    'google' => [
        'client_id' => env('GOOGLE_CLIENT_ID'),
        'client_secret' => env('GOOGLE_CLIENT_SECRET'),
        'redirect' => env('GOOGLE_REDIRECT_URI'),
    ],

    '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'),
        ],
    ],

];
