blob: 7b7ca2b2601b1911ee32c3698dab1fc8f3b46f6e (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
"""
Type definitions for the lsfg-vk plugin responses.
"""
from typing import TypedDict, Optional, List, Dict, Any
from .config_schema import ConfigurationData
class BaseResponse(TypedDict):
"""Base response structure"""
success: bool
class ErrorResponse(BaseResponse):
"""Response structure for errors"""
error: str
class MessageResponse(BaseResponse):
"""Response structure with message"""
message: str
class InstallationResponse(BaseResponse):
"""Response for installation operations"""
message: str
error: Optional[str]
class UninstallationResponse(BaseResponse):
"""Response for uninstallation operations"""
message: str
removed_files: Optional[List[str]]
error: Optional[str]
class InstallationCheckResponse(TypedDict):
"""Response for installation check"""
installed: bool
lib_exists: bool
json_exists: bool
script_exists: bool
lib_path: str
json_path: str
script_path: str
error: Optional[str]
class DllDetectionResponse(TypedDict):
"""Response for DLL detection"""
detected: bool
path: Optional[str]
source: Optional[str]
message: Optional[str]
error: Optional[str]
class ConfigurationResponse(BaseResponse):
"""Response for configuration operations"""
config: Optional[ConfigurationData]
message: Optional[str]
error: Optional[str]
class ProfileConfig(TypedDict):
"""Configuration for a single profile"""
exe: str
config: ConfigurationData
class ProfilesResponse(BaseResponse):
"""Response for profile operations"""
profiles: Optional[List[str]]
current_profile: Optional[str]
message: Optional[str]
error: Optional[str]
class ProfileResponse(BaseResponse):
"""Response for single profile operations"""
profile_name: Optional[str]
message: Optional[str]
error: Optional[str]
|