API
This commit is contained in:
69
app/types.py
Normal file
69
app/types.py
Normal file
@@ -0,0 +1,69 @@
|
||||
from enum import StrEnum
|
||||
|
||||
|
||||
class TaskStatus(StrEnum):
|
||||
PENDING = "pending"
|
||||
PLANNING = "planning"
|
||||
READY = "ready"
|
||||
IN_PROGRESS = "in_progress"
|
||||
DONE = "done"
|
||||
DEFERRED = "deferred"
|
||||
|
||||
|
||||
class StepStatus(StrEnum):
|
||||
PENDING = "pending"
|
||||
IN_PROGRESS = "in_progress"
|
||||
DONE = "done"
|
||||
SKIPPED = "skipped"
|
||||
|
||||
|
||||
class SessionStatus(StrEnum):
|
||||
ACTIVE = "active"
|
||||
COMPLETED = "completed"
|
||||
INTERRUPTED = "interrupted"
|
||||
|
||||
|
||||
class DistractionType(StrEnum):
|
||||
APP_SWITCH = "app_switch"
|
||||
OFF_SCREEN = "off_screen"
|
||||
IDLE = "idle"
|
||||
BROWSING = "browsing"
|
||||
|
||||
|
||||
class TaskSource(StrEnum):
|
||||
MANUAL = "manual"
|
||||
BRAIN_DUMP = "brain_dump"
|
||||
VOICE = "voice"
|
||||
|
||||
|
||||
class PlanType(StrEnum):
|
||||
LLM_GENERATED = "llm_generated"
|
||||
USER_DEFINED = "user_defined"
|
||||
HYBRID = "hybrid"
|
||||
|
||||
|
||||
class FrictionType(StrEnum):
|
||||
REPETITIVE_LOOP = "repetitive_loop"
|
||||
STALLED = "stalled"
|
||||
TEDIOUS_MANUAL = "tedious_manual"
|
||||
CONTEXT_OVERHEAD = "context_overhead"
|
||||
TASK_RESUMPTION = "task_resumption"
|
||||
NONE = "none"
|
||||
|
||||
|
||||
class IntentType(StrEnum):
|
||||
SKIMMING = "skimming"
|
||||
ENGAGED = "engaged"
|
||||
UNCLEAR = "unclear"
|
||||
|
||||
|
||||
class ProactiveUserChoice(StrEnum):
|
||||
ACCEPTED = "accepted"
|
||||
DECLINED = "declined"
|
||||
ALTERNATIVE_CHOSEN = "alternative_chosen"
|
||||
|
||||
|
||||
class DevicePlatform(StrEnum):
|
||||
MAC = "mac"
|
||||
IPAD = "ipad"
|
||||
IPHONE = "iphone"
|
||||
Reference in New Issue
Block a user