<?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' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

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

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

    'tavily' => [
        'api_key' => env('TAVILY_API_KEY'),
    ],

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

    'sendgrid' => [
        'key' => env('SENDGRID_API_KEY'),
        'webhook_public_key' => env('SENDGRID_WEBHOOK_PUBLIC_KEY'),
    ],

    'twilio' => [
        'sid' => env('TWILIO_ACCOUNT_SID'),
        'token' => env('TWILIO_AUTH_TOKEN'),
        'api_key' => env('TWILIO_API_KEY'),
        'api_secret' => env('TWILIO_API_SECRET'),
        'twiml_app_sid' => env('TWILIO_TWIML_APP_SID'),
        'voice_from' => env('TWILIO_VOICE_FROM'),
        'sms_from_fallback' => env('TWILIO_SMS_FROM_FALLBACK'),
        'webhook_base_url' => env('TWILIO_WEBHOOK_BASE_URL', env('APP_URL')),
    ],

    'esign' => [
        // Global default Fintrixor eSign API base URL (per the API docs, "{APP_URL}/api").
        // Each solicitor may override via solicitors.esign_base_url; the bearer key
        // is always per-solicitor (solicitors.esign_api_key).
        'base_url' => env('ESIGN_BASE_URL', 'https://esign.fintrixor.co.uk/api'),
        'timeout'  => env('ESIGN_TIMEOUT', 15),
    ],

];
