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

    'gemini' => [
        'api_key' => env('GEMINI_API_KEY'),
        'model' => env('GEMINI_MODEL', 'gemini-2.0-flash'),
        'base_url' => env('GEMINI_BASE_URL', 'https://generativelanguage.googleapis.com/v1beta'),
        'project_id' => env('GEMINI_PROJECT_ID', 'codebridge-chatbot'),
    ],

    'claude' => [
        'api_key' => env('CLAUDE_API_KEY'),
    ],

    'notion' => [
        'api_key' => env('NOTION_API_KEY'),
        'version' => env('NOTION_VERSION', '2025-09-03'),
        'base_url' => env('NOTION_BASE_URL', 'https://api.notion.com/v1'),
    ],

    'google' => [
        'credentials_path' => env('GOOGLE_APPLICATION_CREDENTIALS'),
        'storage_bucket' => env('GOOGLE_STORAGE_BUCKET'),
        'location' => env('GOOGLE_STT_LOCATION', 'asia-southeast1'),
    ],

    'vertex_ai' => [
        'project_id' => env('VERTEX_AI_PROJECT_ID', 'codebridge-chatbot'),
        'location' => env('VERTEX_AI_LOCATION', 'us-central1'),
    ],

    /*
    |--------------------------------------------------------------------------
    | 바로빌 API
    |--------------------------------------------------------------------------
    | 바로빌 SOAP 웹서비스 연동 설정
    | - cert_key_test: 테스트 환경용 CERTKEY
    | - cert_key_prod: 운영 환경용 CERTKEY
    | - corp_num: 파트너 사업자번호 (하이픈 제외)
    | - test_mode: 테스트 환경 사용 여부 (true: 테스트, false: 운영)
    |
    | @see https://dev.barobill.co.kr/
    */
    'barobill' => [
        'cert_key_test' => env('BAROBILL_CERT_KEY_TEST', ''),
        'cert_key_prod' => env('BAROBILL_CERT_KEY_PROD', ''),
        'corp_num' => env('BAROBILL_CORP_NUM', ''),
        'test_mode' => env('BAROBILL_TEST_MODE', true),
    ],

    /*
    |--------------------------------------------------------------------------
    | SAM API Server
    |--------------------------------------------------------------------------
    | API 로그 재전송 시 사용할 API 서버 URL
    | - 로컬 Docker: http://api:80
    | - 개발 서버: https://api.codebridge-x.com
    | - 운영 서버: https://api.sam.kr
    */
    'api' => [
        'base_url' => env('API_BASE_URL'),
        'key' => env('FLOW_TESTER_API_KEY'),
        'exchange_secret' => env('INTERNAL_EXCHANGE_SECRET'),
    ],

    /*
    |--------------------------------------------------------------------------
    | DEV Site (React Frontend)
    |--------------------------------------------------------------------------
    | MNG → DEV 자동 로그인 시 사용할 DEV 사이트 URL
    | - 로컬: https://dev.sam.kr
    | - 개발: https://dev.codebridge-x.com
    */
    'dev' => [
        'app_url' => env('DEV_APP_URL', 'https://dev.sam.kr'),
    ],

    /*
    |--------------------------------------------------------------------------
    | 기상청 공공데이터포털 API
    |--------------------------------------------------------------------------
    | 단기예보 + 중기예보 조합으로 7일 날씨 제공
    | - KMA_SERVICE_KEY: data.go.kr 인코딩 서비스키
    */
    'kma' => [
        'service_key' => env('KMA_SERVICE_KEY', ''),
    ],

];
