notion_config.py 855 B

12345678910111213141516171819202122232425262728293031323334
  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. )