cyberdesk 1.10.0__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.

Potentially problematic release.


This version of cyberdesk might be problematic. Click here for more details.

Files changed (51) hide show
  1. cyberdesk/__init__.py +1 -1
  2. cyberdesk/client.py +59 -0
  3. {cyberdesk-1.10.0.dist-info → cyberdesk-2.0.0.dist-info}/METADATA +1 -1
  4. {cyberdesk-1.10.0.dist-info → cyberdesk-2.0.0.dist-info}/RECORD +51 -47
  5. openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +4 -4
  6. openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +4 -4
  7. openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +4 -4
  8. openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +4 -4
  9. openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +4 -4
  10. openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +4 -4
  11. openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +4 -4
  12. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +4 -4
  13. openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +4 -4
  14. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +4 -4
  15. openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +4 -4
  16. openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +4 -4
  17. openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +4 -4
  18. openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +4 -4
  19. openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +4 -4
  20. openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +4 -4
  21. openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_post.py +200 -0
  22. openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +12 -8
  23. openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +8 -4
  24. openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +4 -4
  25. openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +4 -4
  26. openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +8 -12
  27. openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +4 -4
  28. openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +4 -4
  29. openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +4 -4
  30. openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +4 -4
  31. openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +4 -4
  32. openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +4 -4
  33. openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +4 -4
  34. openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +4 -4
  35. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +4 -4
  36. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +4 -4
  37. openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +4 -4
  38. openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +4 -4
  39. openapi_client/cyberdesk_cloud_client/models/__init__.py +6 -0
  40. openapi_client/cyberdesk_cloud_client/models/machine_response.py +50 -8
  41. openapi_client/cyberdesk_cloud_client/models/request_log_response.py +20 -0
  42. openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py +50 -8
  43. openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py +181 -0
  44. openapi_client/cyberdesk_cloud_client/models/run_bulk_create_input_values_type_0.py +44 -0
  45. openapi_client/cyberdesk_cloud_client/models/run_bulk_create_response.py +96 -0
  46. openapi_client/cyberdesk_cloud_client/models/run_response.py +51 -8
  47. openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +50 -8
  48. openapi_client/cyberdesk_cloud_client/models/workflow_response.py +50 -8
  49. {cyberdesk-1.10.0.dist-info → cyberdesk-2.0.0.dist-info}/WHEEL +0 -0
  50. {cyberdesk-1.10.0.dist-info → cyberdesk-2.0.0.dist-info}/licenses/LICENSE +0 -0
  51. {cyberdesk-1.10.0.dist-info → cyberdesk-2.0.0.dist-info}/top_level.txt +0 -0
@@ -57,7 +57,7 @@ def sync_detailed(
57
57
 
58
58
  Delete a trajectory.
59
59
 
60
- The trajectory must belong to the authenticated user.
60
+ The trajectory must belong to the authenticated organization.
61
61
 
62
62
  Args:
63
63
  trajectory_id (UUID):
@@ -90,7 +90,7 @@ def sync(
90
90
 
91
91
  Delete a trajectory.
92
92
 
93
- The trajectory must belong to the authenticated user.
93
+ The trajectory must belong to the authenticated organization.
94
94
 
95
95
  Args:
96
96
  trajectory_id (UUID):
@@ -118,7 +118,7 @@ async def asyncio_detailed(
118
118
 
119
119
  Delete a trajectory.
120
120
 
121
- The trajectory must belong to the authenticated user.
121
+ The trajectory must belong to the authenticated organization.
122
122
 
123
123
  Args:
124
124
  trajectory_id (UUID):
@@ -149,7 +149,7 @@ async def asyncio(
149
149
 
150
150
  Delete a trajectory.
151
151
 
152
- The trajectory must belong to the authenticated user.
152
+ The trajectory must belong to the authenticated organization.
153
153
 
154
154
  Args:
155
155
  trajectory_id (UUID):
@@ -60,7 +60,7 @@ def sync_detailed(
60
60
  Get the latest trajectory for a specific workflow.
61
61
 
62
62
  Returns the most recently updated trajectory for the workflow.
63
- The workflow must belong to the authenticated user.
63
+ The workflow must belong to the authenticated organization.
64
64
 
65
65
  Args:
66
66
  workflow_id (UUID):
@@ -94,7 +94,7 @@ def sync(
94
94
  Get the latest trajectory for a specific workflow.
95
95
 
96
96
  Returns the most recently updated trajectory for the workflow.
97
- The workflow must belong to the authenticated user.
97
+ The workflow must belong to the authenticated organization.
98
98
 
99
99
  Args:
100
100
  workflow_id (UUID):
@@ -123,7 +123,7 @@ async def asyncio_detailed(
123
123
  Get the latest trajectory for a specific workflow.
124
124
 
125
125
  Returns the most recently updated trajectory for the workflow.
126
- The workflow must belong to the authenticated user.
126
+ The workflow must belong to the authenticated organization.
127
127
 
128
128
  Args:
129
129
  workflow_id (UUID):
@@ -155,7 +155,7 @@ async def asyncio(
155
155
  Get the latest trajectory for a specific workflow.
156
156
 
157
157
  Returns the most recently updated trajectory for the workflow.
158
- The workflow must belong to the authenticated user.
158
+ The workflow must belong to the authenticated organization.
159
159
 
160
160
  Args:
161
161
  workflow_id (UUID):
@@ -60,7 +60,7 @@ def sync_detailed(
60
60
  Get a specific trajectory by ID.
61
61
 
62
62
  Returns the trajectory with its associated workflow data.
63
- The trajectory must belong to the authenticated user.
63
+ The trajectory must belong to the authenticated organization.
64
64
 
65
65
  Args:
66
66
  trajectory_id (UUID):
@@ -94,7 +94,7 @@ def sync(
94
94
  Get a specific trajectory by ID.
95
95
 
96
96
  Returns the trajectory with its associated workflow data.
97
- The trajectory must belong to the authenticated user.
97
+ The trajectory must belong to the authenticated organization.
98
98
 
99
99
  Args:
100
100
  trajectory_id (UUID):
@@ -123,7 +123,7 @@ async def asyncio_detailed(
123
123
  Get a specific trajectory by ID.
124
124
 
125
125
  Returns the trajectory with its associated workflow data.
126
- The trajectory must belong to the authenticated user.
126
+ The trajectory must belong to the authenticated organization.
127
127
 
128
128
  Args:
129
129
  trajectory_id (UUID):
@@ -155,7 +155,7 @@ async def asyncio(
155
155
  Get a specific trajectory by ID.
156
156
 
157
157
  Returns the trajectory with its associated workflow data.
158
- The trajectory must belong to the authenticated user.
158
+ The trajectory must belong to the authenticated organization.
159
159
 
160
160
  Args:
161
161
  trajectory_id (UUID):
@@ -80,7 +80,7 @@ def sync_detailed(
80
80
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
81
81
  """List Trajectories
82
82
 
83
- List all trajectories for the authenticated user.
83
+ List all trajectories for the authenticated organization.
84
84
 
85
85
  Supports pagination and filtering by workflow.
86
86
  Returns trajectories with their associated workflow data.
@@ -120,7 +120,7 @@ def sync(
120
120
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
121
121
  """List Trajectories
122
122
 
123
- List all trajectories for the authenticated user.
123
+ List all trajectories for the authenticated organization.
124
124
 
125
125
  Supports pagination and filtering by workflow.
126
126
  Returns trajectories with their associated workflow data.
@@ -155,7 +155,7 @@ async def asyncio_detailed(
155
155
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
156
156
  """List Trajectories
157
157
 
158
- List all trajectories for the authenticated user.
158
+ List all trajectories for the authenticated organization.
159
159
 
160
160
  Supports pagination and filtering by workflow.
161
161
  Returns trajectories with their associated workflow data.
@@ -193,7 +193,7 @@ async def asyncio(
193
193
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
194
194
  """List Trajectories
195
195
 
196
- List all trajectories for the authenticated user.
196
+ List all trajectories for the authenticated organization.
197
197
 
198
198
  Supports pagination and filtering by workflow.
199
199
  Returns trajectories with their associated workflow data.
@@ -71,7 +71,7 @@ def sync_detailed(
71
71
  Update a trajectory's data.
72
72
 
73
73
  Only the fields provided in the request body will be updated.
74
- The trajectory must belong to the authenticated user.
74
+ The trajectory must belong to the authenticated organization.
75
75
 
76
76
  Args:
77
77
  trajectory_id (UUID):
@@ -108,7 +108,7 @@ def sync(
108
108
  Update a trajectory's data.
109
109
 
110
110
  Only the fields provided in the request body will be updated.
111
- The trajectory must belong to the authenticated user.
111
+ The trajectory must belong to the authenticated organization.
112
112
 
113
113
  Args:
114
114
  trajectory_id (UUID):
@@ -140,7 +140,7 @@ async def asyncio_detailed(
140
140
  Update a trajectory's data.
141
141
 
142
142
  Only the fields provided in the request body will be updated.
143
- The trajectory must belong to the authenticated user.
143
+ The trajectory must belong to the authenticated organization.
144
144
 
145
145
  Args:
146
146
  trajectory_id (UUID):
@@ -175,7 +175,7 @@ async def asyncio(
175
175
  Update a trajectory's data.
176
176
 
177
177
  Only the fields provided in the request body will be updated.
178
- The trajectory must belong to the authenticated user.
178
+ The trajectory must belong to the authenticated organization.
179
179
 
180
180
  Args:
181
181
  trajectory_id (UUID):
@@ -67,7 +67,7 @@ def sync_detailed(
67
67
 
68
68
  Create a new workflow.
69
69
 
70
- The workflow will be associated with the authenticated user.
70
+ The workflow will be associated with the authenticated organization.
71
71
 
72
72
  Args:
73
73
  body (WorkflowCreate): Schema for creating a workflow
@@ -100,7 +100,7 @@ def sync(
100
100
 
101
101
  Create a new workflow.
102
102
 
103
- The workflow will be associated with the authenticated user.
103
+ The workflow will be associated with the authenticated organization.
104
104
 
105
105
  Args:
106
106
  body (WorkflowCreate): Schema for creating a workflow
@@ -128,7 +128,7 @@ async def asyncio_detailed(
128
128
 
129
129
  Create a new workflow.
130
130
 
131
- The workflow will be associated with the authenticated user.
131
+ The workflow will be associated with the authenticated organization.
132
132
 
133
133
  Args:
134
134
  body (WorkflowCreate): Schema for creating a workflow
@@ -159,7 +159,7 @@ async def asyncio(
159
159
 
160
160
  Create a new workflow.
161
161
 
162
- The workflow will be associated with the authenticated user.
162
+ The workflow will be associated with the authenticated organization.
163
163
 
164
164
  Args:
165
165
  body (WorkflowCreate): Schema for creating a workflow
@@ -58,7 +58,7 @@ def sync_detailed(
58
58
  Delete a workflow.
59
59
 
60
60
  This will also delete all associated runs and trajectories.
61
- The workflow must belong to the authenticated user.
61
+ The workflow must belong to the authenticated organization.
62
62
 
63
63
  Args:
64
64
  workflow_id (UUID):
@@ -92,7 +92,7 @@ def sync(
92
92
  Delete a workflow.
93
93
 
94
94
  This will also delete all associated runs and trajectories.
95
- The workflow must belong to the authenticated user.
95
+ The workflow must belong to the authenticated organization.
96
96
 
97
97
  Args:
98
98
  workflow_id (UUID):
@@ -121,7 +121,7 @@ async def asyncio_detailed(
121
121
  Delete a workflow.
122
122
 
123
123
  This will also delete all associated runs and trajectories.
124
- The workflow must belong to the authenticated user.
124
+ The workflow must belong to the authenticated organization.
125
125
 
126
126
  Args:
127
127
  workflow_id (UUID):
@@ -153,7 +153,7 @@ async def asyncio(
153
153
  Delete a workflow.
154
154
 
155
155
  This will also delete all associated runs and trajectories.
156
- The workflow must belong to the authenticated user.
156
+ The workflow must belong to the authenticated organization.
157
157
 
158
158
  Args:
159
159
  workflow_id (UUID):
@@ -59,7 +59,7 @@ def sync_detailed(
59
59
 
60
60
  Get a specific workflow by ID.
61
61
 
62
- The workflow must belong to the authenticated user.
62
+ The workflow must belong to the authenticated organization.
63
63
 
64
64
  Args:
65
65
  workflow_id (UUID):
@@ -92,7 +92,7 @@ def sync(
92
92
 
93
93
  Get a specific workflow by ID.
94
94
 
95
- The workflow must belong to the authenticated user.
95
+ The workflow must belong to the authenticated organization.
96
96
 
97
97
  Args:
98
98
  workflow_id (UUID):
@@ -120,7 +120,7 @@ async def asyncio_detailed(
120
120
 
121
121
  Get a specific workflow by ID.
122
122
 
123
- The workflow must belong to the authenticated user.
123
+ The workflow must belong to the authenticated organization.
124
124
 
125
125
  Args:
126
126
  workflow_id (UUID):
@@ -151,7 +151,7 @@ async def asyncio(
151
151
 
152
152
  Get a specific workflow by ID.
153
153
 
154
- The workflow must belong to the authenticated user.
154
+ The workflow must belong to the authenticated organization.
155
155
 
156
156
  Args:
157
157
  workflow_id (UUID):
@@ -69,7 +69,7 @@ def sync_detailed(
69
69
  Get the version history of a workflow.
70
70
 
71
71
  Returns a list of previous versions with their prompts and timestamps.
72
- The workflow must belong to the authenticated user.
72
+ The workflow must belong to the authenticated organization.
73
73
 
74
74
  Args:
75
75
  workflow_id (UUID):
@@ -103,7 +103,7 @@ def sync(
103
103
  Get the version history of a workflow.
104
104
 
105
105
  Returns a list of previous versions with their prompts and timestamps.
106
- The workflow must belong to the authenticated user.
106
+ The workflow must belong to the authenticated organization.
107
107
 
108
108
  Args:
109
109
  workflow_id (UUID):
@@ -132,7 +132,7 @@ async def asyncio_detailed(
132
132
  Get the version history of a workflow.
133
133
 
134
134
  Returns a list of previous versions with their prompts and timestamps.
135
- The workflow must belong to the authenticated user.
135
+ The workflow must belong to the authenticated organization.
136
136
 
137
137
  Args:
138
138
  workflow_id (UUID):
@@ -164,7 +164,7 @@ async def asyncio(
164
164
  Get the version history of a workflow.
165
165
 
166
166
  Returns a list of previous versions with their prompts and timestamps.
167
- The workflow must belong to the authenticated user.
167
+ The workflow must belong to the authenticated organization.
168
168
 
169
169
  Args:
170
170
  workflow_id (UUID):
@@ -68,7 +68,7 @@ def sync_detailed(
68
68
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
69
69
  """List Workflows
70
70
 
71
- List all workflows for the authenticated user.
71
+ List all workflows for the authenticated organization.
72
72
 
73
73
  Supports pagination and returns workflows ordered by updated_at descending.
74
74
 
@@ -104,7 +104,7 @@ def sync(
104
104
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
105
105
  """List Workflows
106
106
 
107
- List all workflows for the authenticated user.
107
+ List all workflows for the authenticated organization.
108
108
 
109
109
  Supports pagination and returns workflows ordered by updated_at descending.
110
110
 
@@ -135,7 +135,7 @@ async def asyncio_detailed(
135
135
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
136
136
  """List Workflows
137
137
 
138
- List all workflows for the authenticated user.
138
+ List all workflows for the authenticated organization.
139
139
 
140
140
  Supports pagination and returns workflows ordered by updated_at descending.
141
141
 
@@ -169,7 +169,7 @@ async def asyncio(
169
169
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
170
170
  """List Workflows
171
171
 
172
- List all workflows for the authenticated user.
172
+ List all workflows for the authenticated organization.
173
173
 
174
174
  Supports pagination and returns workflows ordered by updated_at descending.
175
175
 
@@ -72,7 +72,7 @@ def sync_detailed(
72
72
 
73
73
  The current version will be saved to the version history.
74
74
  Only the fields provided in the request body will be updated.
75
- The workflow must belong to the authenticated user.
75
+ The workflow must belong to the authenticated organization.
76
76
 
77
77
  Args:
78
78
  workflow_id (UUID):
@@ -110,7 +110,7 @@ def sync(
110
110
 
111
111
  The current version will be saved to the version history.
112
112
  Only the fields provided in the request body will be updated.
113
- The workflow must belong to the authenticated user.
113
+ The workflow must belong to the authenticated organization.
114
114
 
115
115
  Args:
116
116
  workflow_id (UUID):
@@ -143,7 +143,7 @@ async def asyncio_detailed(
143
143
 
144
144
  The current version will be saved to the version history.
145
145
  Only the fields provided in the request body will be updated.
146
- The workflow must belong to the authenticated user.
146
+ The workflow must belong to the authenticated organization.
147
147
 
148
148
  Args:
149
149
  workflow_id (UUID):
@@ -179,7 +179,7 @@ async def asyncio(
179
179
 
180
180
  The current version will be saved to the version history.
181
181
  Only the fields provided in the request body will be updated.
182
- The workflow must belong to the authenticated user.
182
+ The workflow must belong to the authenticated organization.
183
183
 
184
184
  Args:
185
185
  workflow_id (UUID):
@@ -60,6 +60,9 @@ from .run_attachment_create import RunAttachmentCreate
60
60
  from .run_attachment_download_url_response import RunAttachmentDownloadUrlResponse
61
61
  from .run_attachment_response import RunAttachmentResponse
62
62
  from .run_attachment_update import RunAttachmentUpdate
63
+ from .run_bulk_create import RunBulkCreate
64
+ from .run_bulk_create_input_values_type_0 import RunBulkCreateInputValuesType0
65
+ from .run_bulk_create_response import RunBulkCreateResponse
63
66
  from .run_create import RunCreate
64
67
  from .run_create_input_values_type_0 import RunCreateInputValuesType0
65
68
  from .run_response import RunResponse
@@ -130,6 +133,9 @@ __all__ = (
130
133
  "RunAttachmentDownloadUrlResponse",
131
134
  "RunAttachmentResponse",
132
135
  "RunAttachmentUpdate",
136
+ "RunBulkCreate",
137
+ "RunBulkCreateInputValuesType0",
138
+ "RunBulkCreateResponse",
133
139
  "RunCreate",
134
140
  "RunCreateInputValuesType0",
135
141
  "RunResponse",
@@ -20,7 +20,6 @@ class MachineResponse:
20
20
  Attributes:
21
21
  fingerprint (str):
22
22
  id (UUID):
23
- user_id (UUID):
24
23
  unkey_key_id (str):
25
24
  status (MachineStatus):
26
25
  is_available (bool):
@@ -30,11 +29,12 @@ class MachineResponse:
30
29
  version (Union[None, Unset, str]):
31
30
  hostname (Union[None, Unset, str]):
32
31
  os_info (Union[None, Unset, str]):
32
+ user_id (Union[None, UUID, Unset]):
33
+ organization_id (Union[None, Unset, str]):
33
34
  """
34
35
 
35
36
  fingerprint: str
36
37
  id: UUID
37
- user_id: UUID
38
38
  unkey_key_id: str
39
39
  status: MachineStatus
40
40
  is_available: bool
@@ -44,6 +44,8 @@ class MachineResponse:
44
44
  version: Union[None, Unset, str] = UNSET
45
45
  hostname: Union[None, Unset, str] = UNSET
46
46
  os_info: Union[None, Unset, str] = UNSET
47
+ user_id: Union[None, UUID, Unset] = UNSET
48
+ organization_id: Union[None, Unset, str] = UNSET
47
49
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
48
50
 
49
51
  def to_dict(self) -> dict[str, Any]:
@@ -51,8 +53,6 @@ class MachineResponse:
51
53
 
52
54
  id = str(self.id)
53
55
 
54
- user_id = str(self.user_id)
55
-
56
56
  unkey_key_id = self.unkey_key_id
57
57
 
58
58
  status = self.status.value
@@ -87,13 +87,26 @@ class MachineResponse:
87
87
  else:
88
88
  os_info = self.os_info
89
89
 
90
+ user_id: Union[None, Unset, str]
91
+ if isinstance(self.user_id, Unset):
92
+ user_id = UNSET
93
+ elif isinstance(self.user_id, UUID):
94
+ user_id = str(self.user_id)
95
+ else:
96
+ user_id = self.user_id
97
+
98
+ organization_id: Union[None, Unset, str]
99
+ if isinstance(self.organization_id, Unset):
100
+ organization_id = UNSET
101
+ else:
102
+ organization_id = self.organization_id
103
+
90
104
  field_dict: dict[str, Any] = {}
91
105
  field_dict.update(self.additional_properties)
92
106
  field_dict.update(
93
107
  {
94
108
  "fingerprint": fingerprint,
95
109
  "id": id,
96
- "user_id": user_id,
97
110
  "unkey_key_id": unkey_key_id,
98
111
  "status": status,
99
112
  "is_available": is_available,
@@ -109,6 +122,10 @@ class MachineResponse:
109
122
  field_dict["hostname"] = hostname
110
123
  if os_info is not UNSET:
111
124
  field_dict["os_info"] = os_info
125
+ if user_id is not UNSET:
126
+ field_dict["user_id"] = user_id
127
+ if organization_id is not UNSET:
128
+ field_dict["organization_id"] = organization_id
112
129
 
113
130
  return field_dict
114
131
 
@@ -119,8 +136,6 @@ class MachineResponse:
119
136
 
120
137
  id = UUID(d.pop("id"))
121
138
 
122
- user_id = UUID(d.pop("user_id"))
123
-
124
139
  unkey_key_id = d.pop("unkey_key_id")
125
140
 
126
141
  status = MachineStatus(d.pop("status"))
@@ -167,10 +182,35 @@ class MachineResponse:
167
182
 
168
183
  os_info = _parse_os_info(d.pop("os_info", UNSET))
169
184
 
185
+ def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
186
+ if data is None:
187
+ return data
188
+ if isinstance(data, Unset):
189
+ return data
190
+ try:
191
+ if not isinstance(data, str):
192
+ raise TypeError()
193
+ user_id_type_0 = UUID(data)
194
+
195
+ return user_id_type_0
196
+ except: # noqa: E722
197
+ pass
198
+ return cast(Union[None, UUID, Unset], data)
199
+
200
+ user_id = _parse_user_id(d.pop("user_id", UNSET))
201
+
202
+ def _parse_organization_id(data: object) -> Union[None, Unset, str]:
203
+ if data is None:
204
+ return data
205
+ if isinstance(data, Unset):
206
+ return data
207
+ return cast(Union[None, Unset, str], data)
208
+
209
+ organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
210
+
170
211
  machine_response = cls(
171
212
  fingerprint=fingerprint,
172
213
  id=id,
173
- user_id=user_id,
174
214
  unkey_key_id=unkey_key_id,
175
215
  status=status,
176
216
  is_available=is_available,
@@ -180,6 +220,8 @@ class MachineResponse:
180
220
  version=version,
181
221
  hostname=hostname,
182
222
  os_info=os_info,
223
+ user_id=user_id,
224
+ organization_id=organization_id,
183
225
  )
184
226
 
185
227
  machine_response.additional_properties = d
@@ -29,6 +29,7 @@ class RequestLogResponse:
29
29
  response_size_bytes (Union[None, Unset, int]):
30
30
  duration_ms (Union[None, Unset, int]):
31
31
  error_message (Union[None, Unset, str]):
32
+ organization_id (Union[None, Unset, str]):
32
33
  """
33
34
 
34
35
  request_id: str
@@ -43,6 +44,7 @@ class RequestLogResponse:
43
44
  response_size_bytes: Union[None, Unset, int] = UNSET
44
45
  duration_ms: Union[None, Unset, int] = UNSET
45
46
  error_message: Union[None, Unset, str] = UNSET
47
+ organization_id: Union[None, Unset, str] = UNSET
46
48
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
47
49
 
48
50
  def to_dict(self) -> dict[str, Any]:
@@ -94,6 +96,12 @@ class RequestLogResponse:
94
96
  else:
95
97
  error_message = self.error_message
96
98
 
99
+ organization_id: Union[None, Unset, str]
100
+ if isinstance(self.organization_id, Unset):
101
+ organization_id = UNSET
102
+ else:
103
+ organization_id = self.organization_id
104
+
97
105
  field_dict: dict[str, Any] = {}
98
106
  field_dict.update(self.additional_properties)
99
107
  field_dict.update(
@@ -117,6 +125,8 @@ class RequestLogResponse:
117
125
  field_dict["duration_ms"] = duration_ms
118
126
  if error_message is not UNSET:
119
127
  field_dict["error_message"] = error_message
128
+ if organization_id is not UNSET:
129
+ field_dict["organization_id"] = organization_id
120
130
 
121
131
  return field_dict
122
132
 
@@ -195,6 +205,15 @@ class RequestLogResponse:
195
205
 
196
206
  error_message = _parse_error_message(d.pop("error_message", UNSET))
197
207
 
208
+ def _parse_organization_id(data: object) -> Union[None, Unset, str]:
209
+ if data is None:
210
+ return data
211
+ if isinstance(data, Unset):
212
+ return data
213
+ return cast(Union[None, Unset, str], data)
214
+
215
+ organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
216
+
198
217
  request_log_response = cls(
199
218
  request_id=request_id,
200
219
  method=method,
@@ -208,6 +227,7 @@ class RequestLogResponse:
208
227
  response_size_bytes=response_size_bytes,
209
228
  duration_ms=duration_ms,
210
229
  error_message=error_message,
230
+ organization_id=organization_id,
211
231
  )
212
232
 
213
233
  request_log_response.additional_properties = d