Implement support for Google docs, including retrieve by url

This commit is contained in:
Taylor Wilsdon
2025-05-14 09:44:45 -04:00
parent 13eb429d67
commit 04e526c0d5
3 changed files with 11 additions and 33 deletions

View File

@@ -41,6 +41,12 @@ BASE_SCOPES = [
OPENID_SCOPE
]
# Calendar-specific scopes
DOCS_SCOPES = [
DOCS_READONLY_SCOPE,
DOCS_WRITE_SCOPE
]
# Calendar-specific scopes
CALENDAR_SCOPES = [
CALENDAR_READONLY_SCOPE,
@@ -49,7 +55,8 @@ CALENDAR_SCOPES = [
# Drive-specific scopes
DRIVE_SCOPES = [
DRIVE_READONLY_SCOPE
DRIVE_READONLY_SCOPE,
DRIVE_FILE_SCOPE
]
# Gmail-specific scopes
@@ -59,7 +66,7 @@ GMAIL_SCOPES = [
]
# Combined scopes for all supported Google Workspace operations
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + GMAIL_SCOPES + [DRIVE_FILE_SCOPE])) # Add DRIVE_FILE_SCOPE and GMAIL_SCOPES
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + GMAIL_SCOPES + DOCS_SCOPES))
# Note: OAUTH_REDIRECT_URI is defined in core/server.py as it depends on the server's port.
# It will be imported directly from core.server where needed.