clerk-sdk 0.4.6__tar.gz → 0.4.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. {clerk_sdk-0.4.6/clerk_sdk.egg-info → clerk_sdk-0.4.8}/PKG-INFO +1 -1
  2. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/client.py +10 -10
  3. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/document_statuses.py +1 -0
  4. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8/clerk_sdk.egg-info}/PKG-INFO +1 -1
  5. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/setup.py +1 -1
  6. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/LICENSE +0 -0
  7. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/MANIFEST.in +0 -0
  8. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/README.md +0 -0
  9. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/__init__.py +0 -0
  10. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/base.py +0 -0
  11. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/client.py +0 -0
  12. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/decorator/__init__.py +0 -0
  13. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/decorator/models.py +0 -0
  14. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/decorator/task_decorator.py +0 -0
  15. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/exceptions/__init__.py +0 -0
  16. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/exceptions/exceptions.py +0 -0
  17. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/exceptions/remote_device.py +0 -0
  18. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/__init__.py +0 -0
  19. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/action_model/__init__.py +0 -0
  20. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/action_model/model.py +0 -0
  21. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/action_model/utils.py +0 -0
  22. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/client_actor/__init__.py +0 -0
  23. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/client_actor/client_actor.py +0 -0
  24. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/client_actor/exception.py +0 -0
  25. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/client_actor/model.py +0 -0
  26. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/decorators/__init__.py +0 -0
  27. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/decorators/gui_automation.py +0 -0
  28. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/exceptions/__init__.py +0 -0
  29. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/exceptions/agent_manager.py +0 -0
  30. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/exceptions/modality/__init__.py +0 -0
  31. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/exceptions/modality/exc.py +0 -0
  32. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/exceptions/websocket.py +0 -0
  33. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/requirements.txt +0 -0
  34. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_actions/__init__.py +0 -0
  35. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_actions/actions.py +0 -0
  36. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_actions/base.py +0 -0
  37. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_actions/support.py +0 -0
  38. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_inspector/__init__.py +0 -0
  39. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_inspector/gui_vision.py +0 -0
  40. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_inspector/models.py +0 -0
  41. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/__init__.py +0 -0
  42. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/ai_recovery.py +0 -0
  43. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/decorators.py +0 -0
  44. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/exceptions.py +0 -0
  45. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/models.py +0 -0
  46. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/gui_automation/ui_state_machine/state_machine.py +0 -0
  47. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/__init__.py +0 -0
  48. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/document.py +0 -0
  49. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/file.py +0 -0
  50. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/remote_device.py +0 -0
  51. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/response_model.py +0 -0
  52. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/models/ui_operator.py +0 -0
  53. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/utils/__init__.py +0 -0
  54. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/utils/logger.py +0 -0
  55. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk/utils/save_artifact.py +0 -0
  56. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk_sdk.egg-info/SOURCES.txt +0 -0
  57. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk_sdk.egg-info/dependency_links.txt +0 -0
  58. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk_sdk.egg-info/requires.txt +0 -0
  59. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/clerk_sdk.egg-info/top_level.txt +0 -0
  60. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/pyproject.toml +0 -0
  61. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/requirements.txt +0 -0
  62. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/setup.cfg +0 -0
  63. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_base.py +0 -0
  64. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_client.py +0 -0
  65. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_document_models.py +0 -0
  66. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_exceptions.py +0 -0
  67. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_file_models.py +0 -0
  68. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_gui_automation.py +0 -0
  69. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_task_decorator.py +0 -0
  70. {clerk_sdk-0.4.6 → clerk_sdk-0.4.8}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.4.6
3
+ Version: 0.4.8
4
4
  Summary: Library for interacting with Clerk
5
5
  Home-page: https://github.com/F-ONE-Group/clerk_pypi
6
6
  Author: F-ONE Group
@@ -27,7 +27,7 @@ class RPAClerk(BaseClerk):
27
27
  if res.data[0] is None: # type: ignore
28
28
  raise NoClientsAvailable()
29
29
 
30
- return RemoteDevice(**res.data[0])
30
+ return RemoteDevice.model_validate(res.data[0])
31
31
 
32
32
  def deallocate_remote_device(
33
33
  self,
@@ -45,17 +45,17 @@ class RPAClerk(BaseClerk):
45
45
  res = self.post_request(endpoint=endpoint, json=payload)
46
46
  if res.data[0] is None: # type: ignore
47
47
  raise RuntimeError("No coordinates found in the response.")
48
- return Coords(**res.data[0])
48
+ return Coords.model_validate(res.data[0])
49
49
 
50
50
  def create_ui_operator_task(self, payload: Dict[str, Any]) -> UiOperatorTask:
51
51
  endpoint = "/ui_operator"
52
52
  res = self.post_request(endpoint=endpoint, json=payload)
53
- return UiOperatorTask(**res.data[0])
53
+ return UiOperatorTask.model_validate(res.data[0])
54
54
 
55
55
  def get_ui_operator_task(self, id: str) -> UiOperatorTask:
56
56
  endpoint = "/ui_operator"
57
57
  res = self.get_request(endpoint=endpoint, params={"task_id": id})
58
- return UiOperatorTask(**res.data[0])
58
+ return UiOperatorTask.model_validate(res.data[0])
59
59
 
60
60
 
61
61
  class GUIVisionClerk(BaseClerk):
@@ -71,7 +71,7 @@ class GUIVisionClerk(BaseClerk):
71
71
  "target_prompt": target_prompt,
72
72
  },
73
73
  )
74
- return TargetWithAnchor(**res.data[0])
74
+ return TargetWithAnchor.model_validate(res.data[0])
75
75
 
76
76
  def verify_state(
77
77
  self, screen_b64: str, use_ocr: bool, possible_states: States
@@ -86,7 +86,7 @@ class GUIVisionClerk(BaseClerk):
86
86
  },
87
87
  )
88
88
 
89
- return BaseState(**res.data[0])
89
+ return BaseState.model_validate(res.data[0])
90
90
 
91
91
  def answer(
92
92
  self,
@@ -106,7 +106,7 @@ class GUIVisionClerk(BaseClerk):
106
106
  },
107
107
  )
108
108
 
109
- return output_model.model_validate(**res.data[0])
109
+ return output_model.model_validate(res.data[0])
110
110
 
111
111
  def classify_state(
112
112
  self, screen_b64: str, use_ocr: bool, possible_states: List[Dict[str, str]]
@@ -121,7 +121,7 @@ class GUIVisionClerk(BaseClerk):
121
121
  },
122
122
  )
123
123
 
124
- return BaseState(**res.data[0])
124
+ return BaseState.model_validate(res.data[0])
125
125
 
126
126
  def write_action_string(
127
127
  self, screen_b64: str, use_ocr: bool, action_prompt: str
@@ -136,7 +136,7 @@ class GUIVisionClerk(BaseClerk):
136
136
  },
137
137
  )
138
138
 
139
- return ActionString(**res.data[0])
139
+ return ActionString.model_validate(res.data[0])
140
140
 
141
141
 
142
142
  class CourseCorrectorClerk(BaseClerk):
@@ -160,4 +160,4 @@ class CourseCorrectorClerk(BaseClerk):
160
160
  },
161
161
  )
162
162
 
163
- return ActionString(**res.data[0])
163
+ return ActionString.model_validate(res.data[0])
@@ -10,3 +10,4 @@ class DocumentStatuses(str, Enum):
10
10
  EXAMPLE = "example"
11
11
  SUPERSEDED = "superseded"
12
12
  REQUIRES_REVIEW = "requires_review"
13
+ CANCELLED = "cancelled"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.4.6
3
+ Version: 0.4.8
4
4
  Summary: Library for interacting with Clerk
5
5
  Home-page: https://github.com/F-ONE-Group/clerk_pypi
6
6
  Author: F-ONE Group
@@ -13,7 +13,7 @@ gui_requirements = get_requirements("./clerk/gui_automation")
13
13
 
14
14
  setup(
15
15
  name="clerk-sdk",
16
- version="0.4.6",
16
+ version="0.4.8",
17
17
  description="Library for interacting with Clerk",
18
18
  long_description=open("README.md").read(),
19
19
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes