notion_configs.py 821 B

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