Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

notion_config.py 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. from pydantic import Field
  2. from pydantic_settings import BaseSettings
  3. class NotionConfig(BaseSettings):
  4. """
  5. Configuration settings for Notion integration
  6. """
  7. NOTION_CLIENT_ID: str | None = Field(
  8. description="Client ID for Notion API authentication. Required for OAuth 2.0 flow.",
  9. default=None,
  10. )
  11. NOTION_CLIENT_SECRET: str | None = Field(
  12. description="Client secret for Notion API authentication. Required for OAuth 2.0 flow.",
  13. default=None,
  14. )
  15. NOTION_INTEGRATION_TYPE: str | None = Field(
  16. description="Type of Notion integration."
  17. " Set to 'internal' for internal integrations, or None for public integrations.",
  18. default=None,
  19. )
  20. NOTION_INTERNAL_SECRET: str | None = Field(
  21. description="Secret key for internal Notion integrations. Required when NOTION_INTEGRATION_TYPE is 'internal'.",
  22. default=None,
  23. )
  24. NOTION_INTEGRATION_TOKEN: str | None = Field(
  25. description="Integration token for Notion API access. Used for direct API calls without OAuth flow.",
  26. default=None,
  27. )