2024-06-19 13:41:12 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
from pydantic import Field
|
|
|
|
from pydantic_settings import BaseSettings
|
2024-06-19 13:41:12 +08:00
|
|
|
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
class NotionConfig(BaseSettings):
|
2024-06-19 13:41:12 +08:00
|
|
|
"""
|
|
|
|
Notion integration configs
|
|
|
|
"""
|
2024-08-23 23:46:01 +08:00
|
|
|
|
2024-06-19 13:41:12 +08:00
|
|
|
NOTION_CLIENT_ID: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="Notion client ID",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
NOTION_CLIENT_SECRET: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="Notion client secret key",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
NOTION_INTEGRATION_TYPE: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="Notion integration type, default to None, available values: internal.",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
NOTION_INTERNAL_SECRET: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="Notion internal secret key",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
NOTION_INTEGRATION_TOKEN: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="Notion integration token",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=None,
|
|
|
|
)
|