From d9878b283f6755532672e9e6403c7b43c6dd002a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Wed, 7 May 2025 18:41:50 +0100 Subject: [PATCH] Add the `backups:read` scope --- CHANGELOG.md | 1 + todoist_api_python/authentication.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bda79a..1a26cd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/todoist_api_python/authentication.py b/todoist_api_python/authentication.py index fa31758..0e11b70 100644 --- a/todoist_api_python/authentication.py +++ b/todoist_api_python/authentication.py @@ -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", ]