notion_config.py 856 B

1234567891011121314151617181920212223242526272829303132333435
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class NotionConfig(BaseSettings):
  5. """
  6. Notion integration configs
  7. """
  8. NOTION_CLIENT_ID: Optional[str] = Field(
  9. description="Notion client ID",
  10. default=None,
  11. )
  12. NOTION_CLIENT_SECRET: Optional[str] = Field(
  13. description="Notion client secret key",
  14. default=None,
  15. )
  16. NOTION_INTEGRATION_TYPE: Optional[str] = Field(
  17. description="Notion integration type, default to None, available values: internal.",
  18. default=None,
  19. )
  20. NOTION_INTERNAL_SECRET: Optional[str] = Field(
  21. description="Notion internal secret key",
  22. default=None,
  23. )
  24. NOTION_INTEGRATION_TOKEN: Optional[str] = Field(
  25. description="Notion integration token",
  26. default=None,
  27. )