|
| 1 | +"""Volvo Cars API scopes.""" |
| 2 | + |
| 3 | +from enum import StrEnum |
| 4 | + |
| 5 | +class RestrictedScope(StrEnum): |
| 6 | + LOCK = "conve:lock" |
| 7 | + UNLOCK = "conve:unlock" |
| 8 | + ENGINE_START_STOP = "conve:engine_start_stop" |
| 9 | + HONK_FLASH = "conve:honk_flash" |
| 10 | + LOCATION = "location:read" |
| 11 | + |
| 12 | +DEFAULT_SCOPES = [ |
| 13 | + "openid", |
| 14 | + "conve:battery_charge_level", |
| 15 | + "conve:brake_status", |
| 16 | + "conve:climatization_start_stop", |
| 17 | + "conve:command_accessibility", |
| 18 | + "conve:commands", |
| 19 | + "conve:diagnostics_engine_status", |
| 20 | + "conve:diagnostics_workshop", |
| 21 | + "conve:doors_status", |
| 22 | + "conve:engine_status", |
| 23 | + "conve:fuel_status", |
| 24 | + "conve:lock_status", |
| 25 | + "conve:odometer_status", |
| 26 | + "conve:trip_statistics", |
| 27 | + "conve:tyre_status", |
| 28 | + "conve:vehicle_relation", |
| 29 | + "conve:warnings", |
| 30 | + "conve:windows_status", |
| 31 | + "energy:battery_charge_level", |
| 32 | + "energy:charging_connection_status", |
| 33 | + "energy:charging_current_limit", |
| 34 | + "energy:charging_system_status", |
| 35 | + "energy:electric_range", |
| 36 | + "energy:estimated_charging_time", |
| 37 | + "energy:recharge_status", |
| 38 | + "energy:target_battery_level", |
| 39 | +] |
| 40 | + |
| 41 | +ALL_SCOPES = DEFAULT_SCOPES + [s.value for s in RestrictedScope] |
0 commit comments