File: capabilities.py

package info (click to toggle)
python-yalexs 9.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,120 kB
  • sloc: python: 7,916; makefile: 3; sh: 2
file content (42 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Device capabilities type definitions."""

from typing import Any, TypedDict


class LockCapabilities(TypedDict, total=False):
    """TypedDict for lock capabilities."""

    concurrentBLE: int
    batteryType: str
    doorSense: bool
    hasMagnetometer: bool
    hasIntegratedWiFi: bool
    scheduledSmartAlerts: bool
    standalone: bool
    bluetooth: bool
    slotRange: Any  # Can be None or other values
    integratedKeypad: bool
    entryCodeSlots: bool
    pinSlotMax: int
    pinSlotMin: int
    supportsRFID: bool
    supportsRFIDLegacy: bool
    supportsRFIDCredential: bool
    supportsRFIDOnlyAccess: bool
    supportsRFIDWithCode: bool
    supportsSecureMode: bool
    supportsSecureModeCodeDisable: bool
    supportsSecureModeMobileControl: bool
    supportsFingerprintCredential: bool
    supportsDeliveryMode: bool
    supportsSchedulePerUser: bool
    supportsFingerprintOnlyAccess: bool
    batteryLifeMS: int
    supportedPartners: list[str]
    unlatch: bool


class CapabilitiesResponse(TypedDict, total=False):
    """TypedDict for the full capabilities API response."""

    lock: LockCapabilities