import 'package:flutter_dotenv/flutter_dotenv.dart';

class Endpoints {
  // Environment variables
  static String get supabaseUrl => dotenv.env['SUPABASE_URL'] ?? '';
  static String get supabaseAnonKey => dotenv.env['SUPABASE_ANON_KEY'] ?? '';
  static String get supabaseServiceRoleKey =>
      dotenv.env['SERVICE_ROLE_SECRET'] ?? ' ';
 
  // Base URL
  static const devUrl = "";
  static const String prodUrl = '';
  static const String baseUrl = '$devUrl/api';
 

  static String get azureResource => dotenv.env['AZURE_RESOURCE_NAME'] ?? '';
  static String get azureFaceResource =>
      dotenv.env['AZURE_FACE_RESOURCE_NAME'] ?? '';
  static String get azureSubscriptionKey =>
      dotenv.env['AZURE_SUBSCRIPTION_KEY'] ?? '';
  static String get azureFaceSubscriptionKey =>
      dotenv.env['AZURE_FACE_SUBSCRIPTION_KEY'] ?? '';

  static String get azureEndpoint =>
      'https://$azureResource.cognitiveservices.azure.com/';
  static String get azureFaceEndpoint =>
      'https://$azureFaceResource.cognitiveservices.azure.com/';

  static String get ocrApiPath => 'vision/v3.2/read/analyze';
  static String ocrResultPath(String operationId) =>
      'vision/v3.2/read/analyzeResults/$operationId';

  static String get faceApiPath => 'face/v1.2/detect';
  static String get faceVerifyPath => 'face/v1.2/verify';

  // AWS Recognition Configuration
  static String awsRegion =
      dotenv.env['AWS_REGION'] ?? ''; // Replace with your AWS region
  static String awsAccessKey = dotenv.env['AWS_ACCESS_KEY'] ?? '';
  static String awsSecretKey = dotenv.env['AWS_SECRET_KEY'] ?? '';
  static String awsRekognitionEndpoint =
      'https://rekognition.$awsRegion.amazonaws.com';
} 
