Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Support for moving tasks, courtesy of @radiant-tangent
- Support for `backups:read` scope
- Re-add support for `X-Request-ID`
- Configurable via `request_id_fn` API constructor argument
- Defaults to random UUID v4
Expand Down
24 changes: 12 additions & 12 deletions todoist_api_python/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
from todoist_api_python._core.utils import run_async
from todoist_api_python.models import AuthResult

# task:add - Only create new tasks
# data:read - Read-only access
# data:read_write - Read and write access
# data:delete - Full access including delete
# project:delete - Can delete projects

"""
Possible permission scopes:

- data:read: Read-only access
- data:read_write: Read and write access
- data:delete: Full access including delete
- task:add: Can create new tasks
- project:delete: Can delete projects
- `data:read`: Read-only access
- `data:read_write`: Read and write access
- `data:delete`: Full access including delete
- `task:add`: Can create new tasks
- `project:delete`: Can delete projects
- `backups:read`: Can access user backups without MFA
"""
Scope = Literal[
"task:add", "data:read", "data:read_write", "data:delete", "project:delete"
"task:add",
"data:read",
"data:read_write",
"data:delete",
"project:delete",
"backups:read",
]


Expand Down