supabase_storage_config.py 620 B

12345678910111213141516171819202122232425
  1. from typing import Optional
  2. from pydantic import BaseModel, Field
  3. class SupabaseStorageConfig(BaseModel):
  4. """
  5. Configuration settings for Supabase Object Storage Service
  6. """
  7. SUPABASE_BUCKET_NAME: Optional[str] = Field(
  8. description="Name of the Supabase bucket to store and retrieve objects (e.g., 'dify-bucket')",
  9. default=None,
  10. )
  11. SUPABASE_API_KEY: Optional[str] = Field(
  12. description="API KEY for authenticating with Supabase",
  13. default=None,
  14. )
  15. SUPABASE_URL: Optional[str] = Field(
  16. description="URL of the Supabase",
  17. default=None,
  18. )