nightona_toolbox_api_client 0.191.0

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 (120) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +39 -0
  3. data/.openapi-generator/FILES +113 -0
  4. data/.openapi-generator/VERSION +1 -0
  5. data/.openapi-generator-ignore +13 -0
  6. data/.rspec +2 -0
  7. data/.rubocop.yml +148 -0
  8. data/Rakefile +10 -0
  9. data/fix-gemspec.sh +13 -0
  10. data/lib/nightona_toolbox_api_client/api/computer_use_api.rb +2179 -0
  11. data/lib/nightona_toolbox_api_client/api/file_system_api.rb +893 -0
  12. data/lib/nightona_toolbox_api_client/api/git_api.rb +744 -0
  13. data/lib/nightona_toolbox_api_client/api/info_api.rb +193 -0
  14. data/lib/nightona_toolbox_api_client/api/interpreter_api.rb +267 -0
  15. data/lib/nightona_toolbox_api_client/api/lsp_api.rb +510 -0
  16. data/lib/nightona_toolbox_api_client/api/port_api.rb +142 -0
  17. data/lib/nightona_toolbox_api_client/api/process_api.rb +1201 -0
  18. data/lib/nightona_toolbox_api_client/api/server_api.rb +85 -0
  19. data/lib/nightona_toolbox_api_client/api_client.rb +397 -0
  20. data/lib/nightona_toolbox_api_client/api_error.rb +58 -0
  21. data/lib/nightona_toolbox_api_client/api_model_base.rb +88 -0
  22. data/lib/nightona_toolbox_api_client/configuration.rb +308 -0
  23. data/lib/nightona_toolbox_api_client/models/accessibility_bounds.rb +174 -0
  24. data/lib/nightona_toolbox_api_client/models/accessibility_invoke_request.rb +173 -0
  25. data/lib/nightona_toolbox_api_client/models/accessibility_node_request.rb +164 -0
  26. data/lib/nightona_toolbox_api_client/models/accessibility_nodes_response.rb +158 -0
  27. data/lib/nightona_toolbox_api_client/models/accessibility_set_value_request.rb +173 -0
  28. data/lib/nightona_toolbox_api_client/models/accessibility_tree_response.rb +156 -0
  29. data/lib/nightona_toolbox_api_client/models/chart.rb +256 -0
  30. data/lib/nightona_toolbox_api_client/models/chart_element.rb +295 -0
  31. data/lib/nightona_toolbox_api_client/models/code_run_artifacts.rb +149 -0
  32. data/lib/nightona_toolbox_api_client/models/code_run_request.rb +222 -0
  33. data/lib/nightona_toolbox_api_client/models/code_run_response.rb +165 -0
  34. data/lib/nightona_toolbox_api_client/models/command.rb +199 -0
  35. data/lib/nightona_toolbox_api_client/models/completion_context.rb +173 -0
  36. data/lib/nightona_toolbox_api_client/models/completion_item.rb +218 -0
  37. data/lib/nightona_toolbox_api_client/models/completion_list.rb +192 -0
  38. data/lib/nightona_toolbox_api_client/models/computer_use_accessibility_node.rb +216 -0
  39. data/lib/nightona_toolbox_api_client/models/computer_use_start_response.rb +158 -0
  40. data/lib/nightona_toolbox_api_client/models/computer_use_status_response.rb +147 -0
  41. data/lib/nightona_toolbox_api_client/models/computer_use_stop_response.rb +158 -0
  42. data/lib/nightona_toolbox_api_client/models/create_context_request.rb +156 -0
  43. data/lib/nightona_toolbox_api_client/models/create_session_request.rb +164 -0
  44. data/lib/nightona_toolbox_api_client/models/display_info.rb +192 -0
  45. data/lib/nightona_toolbox_api_client/models/display_info_response.rb +149 -0
  46. data/lib/nightona_toolbox_api_client/models/execute_request.rb +196 -0
  47. data/lib/nightona_toolbox_api_client/models/execute_response.rb +173 -0
  48. data/lib/nightona_toolbox_api_client/models/file_info.rb +373 -0
  49. data/lib/nightona_toolbox_api_client/models/file_status.rb +264 -0
  50. data/lib/nightona_toolbox_api_client/models/files_download_request.rb +166 -0
  51. data/lib/nightona_toolbox_api_client/models/find_accessibility_nodes_request.rb +204 -0
  52. data/lib/nightona_toolbox_api_client/models/git_add_request.rb +193 -0
  53. data/lib/nightona_toolbox_api_client/models/git_branch_request.rb +190 -0
  54. data/lib/nightona_toolbox_api_client/models/git_checkout_request.rb +190 -0
  55. data/lib/nightona_toolbox_api_client/models/git_clone_request.rb +236 -0
  56. data/lib/nightona_toolbox_api_client/models/git_commit_info.rb +268 -0
  57. data/lib/nightona_toolbox_api_client/models/git_commit_request.rb +251 -0
  58. data/lib/nightona_toolbox_api_client/models/git_commit_response.rb +164 -0
  59. data/lib/nightona_toolbox_api_client/models/git_delete_branch_request.rb +190 -0
  60. data/lib/nightona_toolbox_api_client/models/git_repo_request.rb +182 -0
  61. data/lib/nightona_toolbox_api_client/models/git_status.rb +219 -0
  62. data/lib/nightona_toolbox_api_client/models/initialize_request.rb +164 -0
  63. data/lib/nightona_toolbox_api_client/models/interpreter_context.rb +268 -0
  64. data/lib/nightona_toolbox_api_client/models/is_port_in_use_response.rb +147 -0
  65. data/lib/nightona_toolbox_api_client/models/keyboard_hotkey_request.rb +148 -0
  66. data/lib/nightona_toolbox_api_client/models/keyboard_press_request.rb +159 -0
  67. data/lib/nightona_toolbox_api_client/models/keyboard_type_request.rb +157 -0
  68. data/lib/nightona_toolbox_api_client/models/list_branch_response.rb +166 -0
  69. data/lib/nightona_toolbox_api_client/models/list_contexts_response.rb +166 -0
  70. data/lib/nightona_toolbox_api_client/models/list_recordings_response.rb +166 -0
  71. data/lib/nightona_toolbox_api_client/models/lsp_completion_params.rb +251 -0
  72. data/lib/nightona_toolbox_api_client/models/lsp_document_request.rb +216 -0
  73. data/lib/nightona_toolbox_api_client/models/lsp_location.rb +190 -0
  74. data/lib/nightona_toolbox_api_client/models/lsp_position.rb +190 -0
  75. data/lib/nightona_toolbox_api_client/models/lsp_range.rb +190 -0
  76. data/lib/nightona_toolbox_api_client/models/lsp_server_request.rb +190 -0
  77. data/lib/nightona_toolbox_api_client/models/lsp_symbol.rb +216 -0
  78. data/lib/nightona_toolbox_api_client/models/match.rb +216 -0
  79. data/lib/nightona_toolbox_api_client/models/mouse_click_request.rb +175 -0
  80. data/lib/nightona_toolbox_api_client/models/mouse_click_response.rb +156 -0
  81. data/lib/nightona_toolbox_api_client/models/mouse_drag_request.rb +183 -0
  82. data/lib/nightona_toolbox_api_client/models/mouse_drag_response.rb +156 -0
  83. data/lib/nightona_toolbox_api_client/models/mouse_move_request.rb +156 -0
  84. data/lib/nightona_toolbox_api_client/models/mouse_position_response.rb +156 -0
  85. data/lib/nightona_toolbox_api_client/models/mouse_scroll_request.rb +194 -0
  86. data/lib/nightona_toolbox_api_client/models/port_list.rb +149 -0
  87. data/lib/nightona_toolbox_api_client/models/position.rb +156 -0
  88. data/lib/nightona_toolbox_api_client/models/process_errors_response.rb +156 -0
  89. data/lib/nightona_toolbox_api_client/models/process_logs_response.rb +156 -0
  90. data/lib/nightona_toolbox_api_client/models/process_restart_response.rb +156 -0
  91. data/lib/nightona_toolbox_api_client/models/process_status.rb +174 -0
  92. data/lib/nightona_toolbox_api_client/models/process_status_response.rb +156 -0
  93. data/lib/nightona_toolbox_api_client/models/pty_create_request.rb +195 -0
  94. data/lib/nightona_toolbox_api_client/models/pty_create_response.rb +164 -0
  95. data/lib/nightona_toolbox_api_client/models/pty_list_response.rb +166 -0
  96. data/lib/nightona_toolbox_api_client/models/pty_resize_request.rb +226 -0
  97. data/lib/nightona_toolbox_api_client/models/pty_session_info.rb +349 -0
  98. data/lib/nightona_toolbox_api_client/models/recording.rb +295 -0
  99. data/lib/nightona_toolbox_api_client/models/replace_request.rb +218 -0
  100. data/lib/nightona_toolbox_api_client/models/replace_result.rb +165 -0
  101. data/lib/nightona_toolbox_api_client/models/screenshot_response.rb +165 -0
  102. data/lib/nightona_toolbox_api_client/models/scroll_response.rb +147 -0
  103. data/lib/nightona_toolbox_api_client/models/search_files_response.rb +166 -0
  104. data/lib/nightona_toolbox_api_client/models/session.rb +192 -0
  105. data/lib/nightona_toolbox_api_client/models/session_command_logs_response.rb +216 -0
  106. data/lib/nightona_toolbox_api_client/models/session_execute_request.rb +191 -0
  107. data/lib/nightona_toolbox_api_client/models/session_execute_response.rb +200 -0
  108. data/lib/nightona_toolbox_api_client/models/session_send_input_request.rb +164 -0
  109. data/lib/nightona_toolbox_api_client/models/start_recording_request.rb +147 -0
  110. data/lib/nightona_toolbox_api_client/models/status.rb +47 -0
  111. data/lib/nightona_toolbox_api_client/models/stop_recording_request.rb +164 -0
  112. data/lib/nightona_toolbox_api_client/models/user_home_dir_response.rb +164 -0
  113. data/lib/nightona_toolbox_api_client/models/window_info.rb +201 -0
  114. data/lib/nightona_toolbox_api_client/models/windows_response.rb +149 -0
  115. data/lib/nightona_toolbox_api_client/models/work_dir_response.rb +164 -0
  116. data/lib/nightona_toolbox_api_client/version.rb +15 -0
  117. data/lib/nightona_toolbox_api_client.rb +142 -0
  118. data/nightona_toolbox_api_client.gemspec +39 -0
  119. data/project.json +71 -0
  120. metadata +200 -0
@@ -0,0 +1,2179 @@
1
+ =begin
2
+ #Nightona Toolbox API
3
+
4
+ #Nightona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Nightona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Nightona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
5
+
6
+ The version of the OpenAPI document: v0.0.0-dev
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module NightonaToolboxApiClient
16
+ class ComputerUseApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Click mouse button
23
+ # Click the mouse button at the specified coordinates
24
+ # @param request [MouseClickRequest] Mouse click request
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [MouseClickResponse]
27
+ def click(request, opts = {})
28
+ data, _status_code, _headers = click_with_http_info(request, opts)
29
+ data
30
+ end
31
+
32
+ # Click mouse button
33
+ # Click the mouse button at the specified coordinates
34
+ # @param request [MouseClickRequest] Mouse click request
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(MouseClickResponse, Integer, Hash)>] MouseClickResponse data, response status code and response headers
37
+ def click_with_http_info(request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.click ...'
40
+ end
41
+ # verify the required parameter 'request' is set
42
+ if @api_client.config.client_side_validation && request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.click"
44
+ end
45
+ # resource path
46
+ local_var_path = '/computeruse/mouse/click'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'MouseClickResponse'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || []
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"ComputerUseApi.click",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ComputerUseApi#click\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Delete a recording
91
+ # Delete a recording file by ID
92
+ # @param id [String] Recording ID
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [nil]
95
+ def delete_recording(id, opts = {})
96
+ delete_recording_with_http_info(id, opts)
97
+ nil
98
+ end
99
+
100
+ # Delete a recording
101
+ # Delete a recording file by ID
102
+ # @param id [String] Recording ID
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def delete_recording_with_http_info(id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.delete_recording ...'
108
+ end
109
+ # verify the required parameter 'id' is set
110
+ if @api_client.config.client_side_validation && id.nil?
111
+ fail ArgumentError, "Missing the required parameter 'id' when calling ComputerUseApi.delete_recording"
112
+ end
113
+ # resource path
114
+ local_var_path = '/computeruse/recordings/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type]
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || []
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"ComputerUseApi.delete_recording",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: ComputerUseApi#delete_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # Download a recording
154
+ # Download a recording by providing its ID
155
+ # @param id [String] Recording ID
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [File]
158
+ def download_recording(id, opts = {})
159
+ data, _status_code, _headers = download_recording_with_http_info(id, opts)
160
+ data
161
+ end
162
+
163
+ # Download a recording
164
+ # Download a recording by providing its ID
165
+ # @param id [String] Recording ID
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
168
+ def download_recording_with_http_info(id, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.download_recording ...'
171
+ end
172
+ # verify the required parameter 'id' is set
173
+ if @api_client.config.client_side_validation && id.nil?
174
+ fail ArgumentError, "Missing the required parameter 'id' when calling ComputerUseApi.download_recording"
175
+ end
176
+ # resource path
177
+ local_var_path = '/computeruse/recordings/{id}/download'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+
182
+ # header parameters
183
+ header_params = opts[:header_params] || {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream']) unless header_params['Accept']
186
+
187
+ # form parameters
188
+ form_params = opts[:form_params] || {}
189
+
190
+ # http body (model)
191
+ post_body = opts[:debug_body]
192
+
193
+ # return_type
194
+ return_type = opts[:debug_return_type] || 'File'
195
+
196
+ # auth_names
197
+ auth_names = opts[:debug_auth_names] || []
198
+
199
+ new_options = opts.merge(
200
+ :operation => :"ComputerUseApi.download_recording",
201
+ :header_params => header_params,
202
+ :query_params => query_params,
203
+ :form_params => form_params,
204
+ :body => post_body,
205
+ :auth_names => auth_names,
206
+ :return_type => return_type
207
+ )
208
+
209
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "API called: ComputerUseApi#download_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ end
213
+ return data, status_code, headers
214
+ end
215
+
216
+ # Drag mouse
217
+ # Drag the mouse from start to end coordinates
218
+ # @param request [MouseDragRequest] Mouse drag request
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [MouseDragResponse]
221
+ def drag(request, opts = {})
222
+ data, _status_code, _headers = drag_with_http_info(request, opts)
223
+ data
224
+ end
225
+
226
+ # Drag mouse
227
+ # Drag the mouse from start to end coordinates
228
+ # @param request [MouseDragRequest] Mouse drag request
229
+ # @param [Hash] opts the optional parameters
230
+ # @return [Array<(MouseDragResponse, Integer, Hash)>] MouseDragResponse data, response status code and response headers
231
+ def drag_with_http_info(request, opts = {})
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.drag ...'
234
+ end
235
+ # verify the required parameter 'request' is set
236
+ if @api_client.config.client_side_validation && request.nil?
237
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.drag"
238
+ end
239
+ # resource path
240
+ local_var_path = '/computeruse/mouse/drag'
241
+
242
+ # query parameters
243
+ query_params = opts[:query_params] || {}
244
+
245
+ # header parameters
246
+ header_params = opts[:header_params] || {}
247
+ # HTTP header 'Accept' (if needed)
248
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
249
+ # HTTP header 'Content-Type'
250
+ content_type = @api_client.select_header_content_type(['application/json'])
251
+ if !content_type.nil?
252
+ header_params['Content-Type'] = content_type
253
+ end
254
+
255
+ # form parameters
256
+ form_params = opts[:form_params] || {}
257
+
258
+ # http body (model)
259
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
260
+
261
+ # return_type
262
+ return_type = opts[:debug_return_type] || 'MouseDragResponse'
263
+
264
+ # auth_names
265
+ auth_names = opts[:debug_auth_names] || []
266
+
267
+ new_options = opts.merge(
268
+ :operation => :"ComputerUseApi.drag",
269
+ :header_params => header_params,
270
+ :query_params => query_params,
271
+ :form_params => form_params,
272
+ :body => post_body,
273
+ :auth_names => auth_names,
274
+ :return_type => return_type
275
+ )
276
+
277
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: ComputerUseApi#drag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+
284
+ # Find accessibility nodes
285
+ # Search the AT-SPI tree for nodes matching a role/name/state filter and return a flat list.
286
+ # @param request [FindAccessibilityNodesRequest] Find request
287
+ # @param [Hash] opts the optional parameters
288
+ # @return [AccessibilityNodesResponse]
289
+ def find_accessibility_nodes(request, opts = {})
290
+ data, _status_code, _headers = find_accessibility_nodes_with_http_info(request, opts)
291
+ data
292
+ end
293
+
294
+ # Find accessibility nodes
295
+ # Search the AT-SPI tree for nodes matching a role/name/state filter and return a flat list.
296
+ # @param request [FindAccessibilityNodesRequest] Find request
297
+ # @param [Hash] opts the optional parameters
298
+ # @return [Array<(AccessibilityNodesResponse, Integer, Hash)>] AccessibilityNodesResponse data, response status code and response headers
299
+ def find_accessibility_nodes_with_http_info(request, opts = {})
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.find_accessibility_nodes ...'
302
+ end
303
+ # verify the required parameter 'request' is set
304
+ if @api_client.config.client_side_validation && request.nil?
305
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.find_accessibility_nodes"
306
+ end
307
+ # resource path
308
+ local_var_path = '/computeruse/a11y/find'
309
+
310
+ # query parameters
311
+ query_params = opts[:query_params] || {}
312
+
313
+ # header parameters
314
+ header_params = opts[:header_params] || {}
315
+ # HTTP header 'Accept' (if needed)
316
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
317
+ # HTTP header 'Content-Type'
318
+ content_type = @api_client.select_header_content_type(['application/json'])
319
+ if !content_type.nil?
320
+ header_params['Content-Type'] = content_type
321
+ end
322
+
323
+ # form parameters
324
+ form_params = opts[:form_params] || {}
325
+
326
+ # http body (model)
327
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
328
+
329
+ # return_type
330
+ return_type = opts[:debug_return_type] || 'AccessibilityNodesResponse'
331
+
332
+ # auth_names
333
+ auth_names = opts[:debug_auth_names] || []
334
+
335
+ new_options = opts.merge(
336
+ :operation => :"ComputerUseApi.find_accessibility_nodes",
337
+ :header_params => header_params,
338
+ :query_params => query_params,
339
+ :form_params => form_params,
340
+ :body => post_body,
341
+ :auth_names => auth_names,
342
+ :return_type => return_type
343
+ )
344
+
345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
346
+ if @api_client.config.debugging
347
+ @api_client.config.logger.debug "API called: ComputerUseApi#find_accessibility_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
+ end
349
+ return data, status_code, headers
350
+ end
351
+
352
+ # Focus an accessibility node
353
+ # Move keyboard focus to the AT-SPI node identified by id (bus-name:object-path).
354
+ # @param request [AccessibilityNodeRequest] Node focus request
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [Object]
357
+ def focus_accessibility_node(request, opts = {})
358
+ data, _status_code, _headers = focus_accessibility_node_with_http_info(request, opts)
359
+ data
360
+ end
361
+
362
+ # Focus an accessibility node
363
+ # Move keyboard focus to the AT-SPI node identified by id (bus-name:object-path).
364
+ # @param request [AccessibilityNodeRequest] Node focus request
365
+ # @param [Hash] opts the optional parameters
366
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
367
+ def focus_accessibility_node_with_http_info(request, opts = {})
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.focus_accessibility_node ...'
370
+ end
371
+ # verify the required parameter 'request' is set
372
+ if @api_client.config.client_side_validation && request.nil?
373
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.focus_accessibility_node"
374
+ end
375
+ # resource path
376
+ local_var_path = '/computeruse/a11y/node/focus'
377
+
378
+ # query parameters
379
+ query_params = opts[:query_params] || {}
380
+
381
+ # header parameters
382
+ header_params = opts[:header_params] || {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
385
+ # HTTP header 'Content-Type'
386
+ content_type = @api_client.select_header_content_type(['application/json'])
387
+ if !content_type.nil?
388
+ header_params['Content-Type'] = content_type
389
+ end
390
+
391
+ # form parameters
392
+ form_params = opts[:form_params] || {}
393
+
394
+ # http body (model)
395
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
396
+
397
+ # return_type
398
+ return_type = opts[:debug_return_type] || 'Object'
399
+
400
+ # auth_names
401
+ auth_names = opts[:debug_auth_names] || []
402
+
403
+ new_options = opts.merge(
404
+ :operation => :"ComputerUseApi.focus_accessibility_node",
405
+ :header_params => header_params,
406
+ :query_params => query_params,
407
+ :form_params => form_params,
408
+ :body => post_body,
409
+ :auth_names => auth_names,
410
+ :return_type => return_type
411
+ )
412
+
413
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
414
+ if @api_client.config.debugging
415
+ @api_client.config.logger.debug "API called: ComputerUseApi#focus_accessibility_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
416
+ end
417
+ return data, status_code, headers
418
+ end
419
+
420
+ # Get accessibility tree
421
+ # Fetch the AT-SPI accessibility tree for the focused application, a specific PID, or all registered applications.
422
+ # @param [Hash] opts the optional parameters
423
+ # @option opts [String] :scope Scope: focused | pid | all (default: focused)
424
+ # @option opts [Integer] :pid Process ID when scope&#x3D;pid
425
+ # @option opts [Integer] :max_depth Max tree depth (-1 unbounded, 0 root only; default -1)
426
+ # @return [AccessibilityTreeResponse]
427
+ def get_accessibility_tree(opts = {})
428
+ data, _status_code, _headers = get_accessibility_tree_with_http_info(opts)
429
+ data
430
+ end
431
+
432
+ # Get accessibility tree
433
+ # Fetch the AT-SPI accessibility tree for the focused application, a specific PID, or all registered applications.
434
+ # @param [Hash] opts the optional parameters
435
+ # @option opts [String] :scope Scope: focused | pid | all (default: focused)
436
+ # @option opts [Integer] :pid Process ID when scope&#x3D;pid
437
+ # @option opts [Integer] :max_depth Max tree depth (-1 unbounded, 0 root only; default -1)
438
+ # @return [Array<(AccessibilityTreeResponse, Integer, Hash)>] AccessibilityTreeResponse data, response status code and response headers
439
+ def get_accessibility_tree_with_http_info(opts = {})
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_accessibility_tree ...'
442
+ end
443
+ # resource path
444
+ local_var_path = '/computeruse/a11y/tree'
445
+
446
+ # query parameters
447
+ query_params = opts[:query_params] || {}
448
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
449
+ query_params[:'pid'] = opts[:'pid'] if !opts[:'pid'].nil?
450
+ query_params[:'maxDepth'] = opts[:'max_depth'] if !opts[:'max_depth'].nil?
451
+
452
+ # header parameters
453
+ header_params = opts[:header_params] || {}
454
+ # HTTP header 'Accept' (if needed)
455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
456
+
457
+ # form parameters
458
+ form_params = opts[:form_params] || {}
459
+
460
+ # http body (model)
461
+ post_body = opts[:debug_body]
462
+
463
+ # return_type
464
+ return_type = opts[:debug_return_type] || 'AccessibilityTreeResponse'
465
+
466
+ # auth_names
467
+ auth_names = opts[:debug_auth_names] || []
468
+
469
+ new_options = opts.merge(
470
+ :operation => :"ComputerUseApi.get_accessibility_tree",
471
+ :header_params => header_params,
472
+ :query_params => query_params,
473
+ :form_params => form_params,
474
+ :body => post_body,
475
+ :auth_names => auth_names,
476
+ :return_type => return_type
477
+ )
478
+
479
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_accessibility_tree\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
482
+ end
483
+ return data, status_code, headers
484
+ end
485
+
486
+ # Get computer use process status
487
+ # Get the status of all computer use processes
488
+ # @param [Hash] opts the optional parameters
489
+ # @return [ComputerUseStatusResponse]
490
+ def get_computer_use_status(opts = {})
491
+ data, _status_code, _headers = get_computer_use_status_with_http_info(opts)
492
+ data
493
+ end
494
+
495
+ # Get computer use process status
496
+ # Get the status of all computer use processes
497
+ # @param [Hash] opts the optional parameters
498
+ # @return [Array<(ComputerUseStatusResponse, Integer, Hash)>] ComputerUseStatusResponse data, response status code and response headers
499
+ def get_computer_use_status_with_http_info(opts = {})
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_computer_use_status ...'
502
+ end
503
+ # resource path
504
+ local_var_path = '/computeruse/process-status'
505
+
506
+ # query parameters
507
+ query_params = opts[:query_params] || {}
508
+
509
+ # header parameters
510
+ header_params = opts[:header_params] || {}
511
+ # HTTP header 'Accept' (if needed)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
513
+
514
+ # form parameters
515
+ form_params = opts[:form_params] || {}
516
+
517
+ # http body (model)
518
+ post_body = opts[:debug_body]
519
+
520
+ # return_type
521
+ return_type = opts[:debug_return_type] || 'ComputerUseStatusResponse'
522
+
523
+ # auth_names
524
+ auth_names = opts[:debug_auth_names] || []
525
+
526
+ new_options = opts.merge(
527
+ :operation => :"ComputerUseApi.get_computer_use_status",
528
+ :header_params => header_params,
529
+ :query_params => query_params,
530
+ :form_params => form_params,
531
+ :body => post_body,
532
+ :auth_names => auth_names,
533
+ :return_type => return_type
534
+ )
535
+
536
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
537
+ if @api_client.config.debugging
538
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_computer_use_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
539
+ end
540
+ return data, status_code, headers
541
+ end
542
+
543
+ # Get computer use status
544
+ # Get the current status of the computer use system
545
+ # @param [Hash] opts the optional parameters
546
+ # @return [ComputerUseStatusResponse]
547
+ def get_computer_use_system_status(opts = {})
548
+ data, _status_code, _headers = get_computer_use_system_status_with_http_info(opts)
549
+ data
550
+ end
551
+
552
+ # Get computer use status
553
+ # Get the current status of the computer use system
554
+ # @param [Hash] opts the optional parameters
555
+ # @return [Array<(ComputerUseStatusResponse, Integer, Hash)>] ComputerUseStatusResponse data, response status code and response headers
556
+ def get_computer_use_system_status_with_http_info(opts = {})
557
+ if @api_client.config.debugging
558
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_computer_use_system_status ...'
559
+ end
560
+ # resource path
561
+ local_var_path = '/computeruse/status'
562
+
563
+ # query parameters
564
+ query_params = opts[:query_params] || {}
565
+
566
+ # header parameters
567
+ header_params = opts[:header_params] || {}
568
+ # HTTP header 'Accept' (if needed)
569
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
570
+
571
+ # form parameters
572
+ form_params = opts[:form_params] || {}
573
+
574
+ # http body (model)
575
+ post_body = opts[:debug_body]
576
+
577
+ # return_type
578
+ return_type = opts[:debug_return_type] || 'ComputerUseStatusResponse'
579
+
580
+ # auth_names
581
+ auth_names = opts[:debug_auth_names] || []
582
+
583
+ new_options = opts.merge(
584
+ :operation => :"ComputerUseApi.get_computer_use_system_status",
585
+ :header_params => header_params,
586
+ :query_params => query_params,
587
+ :form_params => form_params,
588
+ :body => post_body,
589
+ :auth_names => auth_names,
590
+ :return_type => return_type
591
+ )
592
+
593
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_computer_use_system_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
596
+ end
597
+ return data, status_code, headers
598
+ end
599
+
600
+ # Get display information
601
+ # Get information about all available displays
602
+ # @param [Hash] opts the optional parameters
603
+ # @return [DisplayInfoResponse]
604
+ def get_display_info(opts = {})
605
+ data, _status_code, _headers = get_display_info_with_http_info(opts)
606
+ data
607
+ end
608
+
609
+ # Get display information
610
+ # Get information about all available displays
611
+ # @param [Hash] opts the optional parameters
612
+ # @return [Array<(DisplayInfoResponse, Integer, Hash)>] DisplayInfoResponse data, response status code and response headers
613
+ def get_display_info_with_http_info(opts = {})
614
+ if @api_client.config.debugging
615
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_display_info ...'
616
+ end
617
+ # resource path
618
+ local_var_path = '/computeruse/display/info'
619
+
620
+ # query parameters
621
+ query_params = opts[:query_params] || {}
622
+
623
+ # header parameters
624
+ header_params = opts[:header_params] || {}
625
+ # HTTP header 'Accept' (if needed)
626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
627
+
628
+ # form parameters
629
+ form_params = opts[:form_params] || {}
630
+
631
+ # http body (model)
632
+ post_body = opts[:debug_body]
633
+
634
+ # return_type
635
+ return_type = opts[:debug_return_type] || 'DisplayInfoResponse'
636
+
637
+ # auth_names
638
+ auth_names = opts[:debug_auth_names] || []
639
+
640
+ new_options = opts.merge(
641
+ :operation => :"ComputerUseApi.get_display_info",
642
+ :header_params => header_params,
643
+ :query_params => query_params,
644
+ :form_params => form_params,
645
+ :body => post_body,
646
+ :auth_names => auth_names,
647
+ :return_type => return_type
648
+ )
649
+
650
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_display_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
+ end
654
+ return data, status_code, headers
655
+ end
656
+
657
+ # Get mouse position
658
+ # Get the current mouse cursor position
659
+ # @param [Hash] opts the optional parameters
660
+ # @return [MousePositionResponse]
661
+ def get_mouse_position(opts = {})
662
+ data, _status_code, _headers = get_mouse_position_with_http_info(opts)
663
+ data
664
+ end
665
+
666
+ # Get mouse position
667
+ # Get the current mouse cursor position
668
+ # @param [Hash] opts the optional parameters
669
+ # @return [Array<(MousePositionResponse, Integer, Hash)>] MousePositionResponse data, response status code and response headers
670
+ def get_mouse_position_with_http_info(opts = {})
671
+ if @api_client.config.debugging
672
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_mouse_position ...'
673
+ end
674
+ # resource path
675
+ local_var_path = '/computeruse/mouse/position'
676
+
677
+ # query parameters
678
+ query_params = opts[:query_params] || {}
679
+
680
+ # header parameters
681
+ header_params = opts[:header_params] || {}
682
+ # HTTP header 'Accept' (if needed)
683
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
684
+
685
+ # form parameters
686
+ form_params = opts[:form_params] || {}
687
+
688
+ # http body (model)
689
+ post_body = opts[:debug_body]
690
+
691
+ # return_type
692
+ return_type = opts[:debug_return_type] || 'MousePositionResponse'
693
+
694
+ # auth_names
695
+ auth_names = opts[:debug_auth_names] || []
696
+
697
+ new_options = opts.merge(
698
+ :operation => :"ComputerUseApi.get_mouse_position",
699
+ :header_params => header_params,
700
+ :query_params => query_params,
701
+ :form_params => form_params,
702
+ :body => post_body,
703
+ :auth_names => auth_names,
704
+ :return_type => return_type
705
+ )
706
+
707
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
708
+ if @api_client.config.debugging
709
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_mouse_position\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
710
+ end
711
+ return data, status_code, headers
712
+ end
713
+
714
+ # Get process errors
715
+ # Get errors for a specific computer use process
716
+ # @param process_name [String] Process name to get errors for
717
+ # @param [Hash] opts the optional parameters
718
+ # @return [ProcessErrorsResponse]
719
+ def get_process_errors(process_name, opts = {})
720
+ data, _status_code, _headers = get_process_errors_with_http_info(process_name, opts)
721
+ data
722
+ end
723
+
724
+ # Get process errors
725
+ # Get errors for a specific computer use process
726
+ # @param process_name [String] Process name to get errors for
727
+ # @param [Hash] opts the optional parameters
728
+ # @return [Array<(ProcessErrorsResponse, Integer, Hash)>] ProcessErrorsResponse data, response status code and response headers
729
+ def get_process_errors_with_http_info(process_name, opts = {})
730
+ if @api_client.config.debugging
731
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_process_errors ...'
732
+ end
733
+ # verify the required parameter 'process_name' is set
734
+ if @api_client.config.client_side_validation && process_name.nil?
735
+ fail ArgumentError, "Missing the required parameter 'process_name' when calling ComputerUseApi.get_process_errors"
736
+ end
737
+ # resource path
738
+ local_var_path = '/computeruse/process/{processName}/errors'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s))
739
+
740
+ # query parameters
741
+ query_params = opts[:query_params] || {}
742
+
743
+ # header parameters
744
+ header_params = opts[:header_params] || {}
745
+ # HTTP header 'Accept' (if needed)
746
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
747
+
748
+ # form parameters
749
+ form_params = opts[:form_params] || {}
750
+
751
+ # http body (model)
752
+ post_body = opts[:debug_body]
753
+
754
+ # return_type
755
+ return_type = opts[:debug_return_type] || 'ProcessErrorsResponse'
756
+
757
+ # auth_names
758
+ auth_names = opts[:debug_auth_names] || []
759
+
760
+ new_options = opts.merge(
761
+ :operation => :"ComputerUseApi.get_process_errors",
762
+ :header_params => header_params,
763
+ :query_params => query_params,
764
+ :form_params => form_params,
765
+ :body => post_body,
766
+ :auth_names => auth_names,
767
+ :return_type => return_type
768
+ )
769
+
770
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
771
+ if @api_client.config.debugging
772
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_process_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
+ end
774
+ return data, status_code, headers
775
+ end
776
+
777
+ # Get process logs
778
+ # Get logs for a specific computer use process
779
+ # @param process_name [String] Process name to get logs for
780
+ # @param [Hash] opts the optional parameters
781
+ # @return [ProcessLogsResponse]
782
+ def get_process_logs(process_name, opts = {})
783
+ data, _status_code, _headers = get_process_logs_with_http_info(process_name, opts)
784
+ data
785
+ end
786
+
787
+ # Get process logs
788
+ # Get logs for a specific computer use process
789
+ # @param process_name [String] Process name to get logs for
790
+ # @param [Hash] opts the optional parameters
791
+ # @return [Array<(ProcessLogsResponse, Integer, Hash)>] ProcessLogsResponse data, response status code and response headers
792
+ def get_process_logs_with_http_info(process_name, opts = {})
793
+ if @api_client.config.debugging
794
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_process_logs ...'
795
+ end
796
+ # verify the required parameter 'process_name' is set
797
+ if @api_client.config.client_side_validation && process_name.nil?
798
+ fail ArgumentError, "Missing the required parameter 'process_name' when calling ComputerUseApi.get_process_logs"
799
+ end
800
+ # resource path
801
+ local_var_path = '/computeruse/process/{processName}/logs'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s))
802
+
803
+ # query parameters
804
+ query_params = opts[:query_params] || {}
805
+
806
+ # header parameters
807
+ header_params = opts[:header_params] || {}
808
+ # HTTP header 'Accept' (if needed)
809
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
810
+
811
+ # form parameters
812
+ form_params = opts[:form_params] || {}
813
+
814
+ # http body (model)
815
+ post_body = opts[:debug_body]
816
+
817
+ # return_type
818
+ return_type = opts[:debug_return_type] || 'ProcessLogsResponse'
819
+
820
+ # auth_names
821
+ auth_names = opts[:debug_auth_names] || []
822
+
823
+ new_options = opts.merge(
824
+ :operation => :"ComputerUseApi.get_process_logs",
825
+ :header_params => header_params,
826
+ :query_params => query_params,
827
+ :form_params => form_params,
828
+ :body => post_body,
829
+ :auth_names => auth_names,
830
+ :return_type => return_type
831
+ )
832
+
833
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
834
+ if @api_client.config.debugging
835
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_process_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
836
+ end
837
+ return data, status_code, headers
838
+ end
839
+
840
+ # Get specific process status
841
+ # Check if a specific computer use process is running
842
+ # @param process_name [String] Process name to check
843
+ # @param [Hash] opts the optional parameters
844
+ # @return [ProcessStatusResponse]
845
+ def get_process_status(process_name, opts = {})
846
+ data, _status_code, _headers = get_process_status_with_http_info(process_name, opts)
847
+ data
848
+ end
849
+
850
+ # Get specific process status
851
+ # Check if a specific computer use process is running
852
+ # @param process_name [String] Process name to check
853
+ # @param [Hash] opts the optional parameters
854
+ # @return [Array<(ProcessStatusResponse, Integer, Hash)>] ProcessStatusResponse data, response status code and response headers
855
+ def get_process_status_with_http_info(process_name, opts = {})
856
+ if @api_client.config.debugging
857
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_process_status ...'
858
+ end
859
+ # verify the required parameter 'process_name' is set
860
+ if @api_client.config.client_side_validation && process_name.nil?
861
+ fail ArgumentError, "Missing the required parameter 'process_name' when calling ComputerUseApi.get_process_status"
862
+ end
863
+ # resource path
864
+ local_var_path = '/computeruse/process/{processName}/status'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s))
865
+
866
+ # query parameters
867
+ query_params = opts[:query_params] || {}
868
+
869
+ # header parameters
870
+ header_params = opts[:header_params] || {}
871
+ # HTTP header 'Accept' (if needed)
872
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
873
+
874
+ # form parameters
875
+ form_params = opts[:form_params] || {}
876
+
877
+ # http body (model)
878
+ post_body = opts[:debug_body]
879
+
880
+ # return_type
881
+ return_type = opts[:debug_return_type] || 'ProcessStatusResponse'
882
+
883
+ # auth_names
884
+ auth_names = opts[:debug_auth_names] || []
885
+
886
+ new_options = opts.merge(
887
+ :operation => :"ComputerUseApi.get_process_status",
888
+ :header_params => header_params,
889
+ :query_params => query_params,
890
+ :form_params => form_params,
891
+ :body => post_body,
892
+ :auth_names => auth_names,
893
+ :return_type => return_type
894
+ )
895
+
896
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
897
+ if @api_client.config.debugging
898
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_process_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
899
+ end
900
+ return data, status_code, headers
901
+ end
902
+
903
+ # Get recording details
904
+ # Get details of a specific recording by ID
905
+ # @param id [String] Recording ID
906
+ # @param [Hash] opts the optional parameters
907
+ # @return [Recording]
908
+ def get_recording(id, opts = {})
909
+ data, _status_code, _headers = get_recording_with_http_info(id, opts)
910
+ data
911
+ end
912
+
913
+ # Get recording details
914
+ # Get details of a specific recording by ID
915
+ # @param id [String] Recording ID
916
+ # @param [Hash] opts the optional parameters
917
+ # @return [Array<(Recording, Integer, Hash)>] Recording data, response status code and response headers
918
+ def get_recording_with_http_info(id, opts = {})
919
+ if @api_client.config.debugging
920
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_recording ...'
921
+ end
922
+ # verify the required parameter 'id' is set
923
+ if @api_client.config.client_side_validation && id.nil?
924
+ fail ArgumentError, "Missing the required parameter 'id' when calling ComputerUseApi.get_recording"
925
+ end
926
+ # resource path
927
+ local_var_path = '/computeruse/recordings/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
928
+
929
+ # query parameters
930
+ query_params = opts[:query_params] || {}
931
+
932
+ # header parameters
933
+ header_params = opts[:header_params] || {}
934
+ # HTTP header 'Accept' (if needed)
935
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
936
+
937
+ # form parameters
938
+ form_params = opts[:form_params] || {}
939
+
940
+ # http body (model)
941
+ post_body = opts[:debug_body]
942
+
943
+ # return_type
944
+ return_type = opts[:debug_return_type] || 'Recording'
945
+
946
+ # auth_names
947
+ auth_names = opts[:debug_auth_names] || []
948
+
949
+ new_options = opts.merge(
950
+ :operation => :"ComputerUseApi.get_recording",
951
+ :header_params => header_params,
952
+ :query_params => query_params,
953
+ :form_params => form_params,
954
+ :body => post_body,
955
+ :auth_names => auth_names,
956
+ :return_type => return_type
957
+ )
958
+
959
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
960
+ if @api_client.config.debugging
961
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
962
+ end
963
+ return data, status_code, headers
964
+ end
965
+
966
+ # Get windows information
967
+ # Get information about all open windows
968
+ # @param [Hash] opts the optional parameters
969
+ # @return [WindowsResponse]
970
+ def get_windows(opts = {})
971
+ data, _status_code, _headers = get_windows_with_http_info(opts)
972
+ data
973
+ end
974
+
975
+ # Get windows information
976
+ # Get information about all open windows
977
+ # @param [Hash] opts the optional parameters
978
+ # @return [Array<(WindowsResponse, Integer, Hash)>] WindowsResponse data, response status code and response headers
979
+ def get_windows_with_http_info(opts = {})
980
+ if @api_client.config.debugging
981
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.get_windows ...'
982
+ end
983
+ # resource path
984
+ local_var_path = '/computeruse/display/windows'
985
+
986
+ # query parameters
987
+ query_params = opts[:query_params] || {}
988
+
989
+ # header parameters
990
+ header_params = opts[:header_params] || {}
991
+ # HTTP header 'Accept' (if needed)
992
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
993
+
994
+ # form parameters
995
+ form_params = opts[:form_params] || {}
996
+
997
+ # http body (model)
998
+ post_body = opts[:debug_body]
999
+
1000
+ # return_type
1001
+ return_type = opts[:debug_return_type] || 'WindowsResponse'
1002
+
1003
+ # auth_names
1004
+ auth_names = opts[:debug_auth_names] || []
1005
+
1006
+ new_options = opts.merge(
1007
+ :operation => :"ComputerUseApi.get_windows",
1008
+ :header_params => header_params,
1009
+ :query_params => query_params,
1010
+ :form_params => form_params,
1011
+ :body => post_body,
1012
+ :auth_names => auth_names,
1013
+ :return_type => return_type
1014
+ )
1015
+
1016
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1017
+ if @api_client.config.debugging
1018
+ @api_client.config.logger.debug "API called: ComputerUseApi#get_windows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1019
+ end
1020
+ return data, status_code, headers
1021
+ end
1022
+
1023
+ # Invoke an action on an accessibility node
1024
+ # Call an AT-SPI Action on the node. Leave action empty to invoke the node's primary (first) action.
1025
+ # @param request [AccessibilityInvokeRequest] Invoke request
1026
+ # @param [Hash] opts the optional parameters
1027
+ # @return [Object]
1028
+ def invoke_accessibility_node(request, opts = {})
1029
+ data, _status_code, _headers = invoke_accessibility_node_with_http_info(request, opts)
1030
+ data
1031
+ end
1032
+
1033
+ # Invoke an action on an accessibility node
1034
+ # Call an AT-SPI Action on the node. Leave action empty to invoke the node&#39;s primary (first) action.
1035
+ # @param request [AccessibilityInvokeRequest] Invoke request
1036
+ # @param [Hash] opts the optional parameters
1037
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1038
+ def invoke_accessibility_node_with_http_info(request, opts = {})
1039
+ if @api_client.config.debugging
1040
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.invoke_accessibility_node ...'
1041
+ end
1042
+ # verify the required parameter 'request' is set
1043
+ if @api_client.config.client_side_validation && request.nil?
1044
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.invoke_accessibility_node"
1045
+ end
1046
+ # resource path
1047
+ local_var_path = '/computeruse/a11y/node/invoke'
1048
+
1049
+ # query parameters
1050
+ query_params = opts[:query_params] || {}
1051
+
1052
+ # header parameters
1053
+ header_params = opts[:header_params] || {}
1054
+ # HTTP header 'Accept' (if needed)
1055
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1056
+ # HTTP header 'Content-Type'
1057
+ content_type = @api_client.select_header_content_type(['application/json'])
1058
+ if !content_type.nil?
1059
+ header_params['Content-Type'] = content_type
1060
+ end
1061
+
1062
+ # form parameters
1063
+ form_params = opts[:form_params] || {}
1064
+
1065
+ # http body (model)
1066
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1067
+
1068
+ # return_type
1069
+ return_type = opts[:debug_return_type] || 'Object'
1070
+
1071
+ # auth_names
1072
+ auth_names = opts[:debug_auth_names] || []
1073
+
1074
+ new_options = opts.merge(
1075
+ :operation => :"ComputerUseApi.invoke_accessibility_node",
1076
+ :header_params => header_params,
1077
+ :query_params => query_params,
1078
+ :form_params => form_params,
1079
+ :body => post_body,
1080
+ :auth_names => auth_names,
1081
+ :return_type => return_type
1082
+ )
1083
+
1084
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug "API called: ComputerUseApi#invoke_accessibility_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ # List all recordings
1092
+ # Get a list of all recordings (active and completed)
1093
+ # @param [Hash] opts the optional parameters
1094
+ # @return [ListRecordingsResponse]
1095
+ def list_recordings(opts = {})
1096
+ data, _status_code, _headers = list_recordings_with_http_info(opts)
1097
+ data
1098
+ end
1099
+
1100
+ # List all recordings
1101
+ # Get a list of all recordings (active and completed)
1102
+ # @param [Hash] opts the optional parameters
1103
+ # @return [Array<(ListRecordingsResponse, Integer, Hash)>] ListRecordingsResponse data, response status code and response headers
1104
+ def list_recordings_with_http_info(opts = {})
1105
+ if @api_client.config.debugging
1106
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.list_recordings ...'
1107
+ end
1108
+ # resource path
1109
+ local_var_path = '/computeruse/recordings'
1110
+
1111
+ # query parameters
1112
+ query_params = opts[:query_params] || {}
1113
+
1114
+ # header parameters
1115
+ header_params = opts[:header_params] || {}
1116
+ # HTTP header 'Accept' (if needed)
1117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1118
+
1119
+ # form parameters
1120
+ form_params = opts[:form_params] || {}
1121
+
1122
+ # http body (model)
1123
+ post_body = opts[:debug_body]
1124
+
1125
+ # return_type
1126
+ return_type = opts[:debug_return_type] || 'ListRecordingsResponse'
1127
+
1128
+ # auth_names
1129
+ auth_names = opts[:debug_auth_names] || []
1130
+
1131
+ new_options = opts.merge(
1132
+ :operation => :"ComputerUseApi.list_recordings",
1133
+ :header_params => header_params,
1134
+ :query_params => query_params,
1135
+ :form_params => form_params,
1136
+ :body => post_body,
1137
+ :auth_names => auth_names,
1138
+ :return_type => return_type
1139
+ )
1140
+
1141
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug "API called: ComputerUseApi#list_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1144
+ end
1145
+ return data, status_code, headers
1146
+ end
1147
+
1148
+ # Move mouse cursor
1149
+ # Move the mouse cursor to the specified coordinates
1150
+ # @param request [MouseMoveRequest] Mouse move request
1151
+ # @param [Hash] opts the optional parameters
1152
+ # @return [MousePositionResponse]
1153
+ def move_mouse(request, opts = {})
1154
+ data, _status_code, _headers = move_mouse_with_http_info(request, opts)
1155
+ data
1156
+ end
1157
+
1158
+ # Move mouse cursor
1159
+ # Move the mouse cursor to the specified coordinates
1160
+ # @param request [MouseMoveRequest] Mouse move request
1161
+ # @param [Hash] opts the optional parameters
1162
+ # @return [Array<(MousePositionResponse, Integer, Hash)>] MousePositionResponse data, response status code and response headers
1163
+ def move_mouse_with_http_info(request, opts = {})
1164
+ if @api_client.config.debugging
1165
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.move_mouse ...'
1166
+ end
1167
+ # verify the required parameter 'request' is set
1168
+ if @api_client.config.client_side_validation && request.nil?
1169
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.move_mouse"
1170
+ end
1171
+ # resource path
1172
+ local_var_path = '/computeruse/mouse/move'
1173
+
1174
+ # query parameters
1175
+ query_params = opts[:query_params] || {}
1176
+
1177
+ # header parameters
1178
+ header_params = opts[:header_params] || {}
1179
+ # HTTP header 'Accept' (if needed)
1180
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1181
+ # HTTP header 'Content-Type'
1182
+ content_type = @api_client.select_header_content_type(['application/json'])
1183
+ if !content_type.nil?
1184
+ header_params['Content-Type'] = content_type
1185
+ end
1186
+
1187
+ # form parameters
1188
+ form_params = opts[:form_params] || {}
1189
+
1190
+ # http body (model)
1191
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1192
+
1193
+ # return_type
1194
+ return_type = opts[:debug_return_type] || 'MousePositionResponse'
1195
+
1196
+ # auth_names
1197
+ auth_names = opts[:debug_auth_names] || []
1198
+
1199
+ new_options = opts.merge(
1200
+ :operation => :"ComputerUseApi.move_mouse",
1201
+ :header_params => header_params,
1202
+ :query_params => query_params,
1203
+ :form_params => form_params,
1204
+ :body => post_body,
1205
+ :auth_names => auth_names,
1206
+ :return_type => return_type
1207
+ )
1208
+
1209
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1210
+ if @api_client.config.debugging
1211
+ @api_client.config.logger.debug "API called: ComputerUseApi#move_mouse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1212
+ end
1213
+ return data, status_code, headers
1214
+ end
1215
+
1216
+ # Press hotkey
1217
+ # Press a hotkey combination (e.g., ctrl+c, cmd+v)
1218
+ # @param request [KeyboardHotkeyRequest] Hotkey press request
1219
+ # @param [Hash] opts the optional parameters
1220
+ # @return [Object]
1221
+ def press_hotkey(request, opts = {})
1222
+ data, _status_code, _headers = press_hotkey_with_http_info(request, opts)
1223
+ data
1224
+ end
1225
+
1226
+ # Press hotkey
1227
+ # Press a hotkey combination (e.g., ctrl+c, cmd+v)
1228
+ # @param request [KeyboardHotkeyRequest] Hotkey press request
1229
+ # @param [Hash] opts the optional parameters
1230
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1231
+ def press_hotkey_with_http_info(request, opts = {})
1232
+ if @api_client.config.debugging
1233
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.press_hotkey ...'
1234
+ end
1235
+ # verify the required parameter 'request' is set
1236
+ if @api_client.config.client_side_validation && request.nil?
1237
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.press_hotkey"
1238
+ end
1239
+ # resource path
1240
+ local_var_path = '/computeruse/keyboard/hotkey'
1241
+
1242
+ # query parameters
1243
+ query_params = opts[:query_params] || {}
1244
+
1245
+ # header parameters
1246
+ header_params = opts[:header_params] || {}
1247
+ # HTTP header 'Accept' (if needed)
1248
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1249
+ # HTTP header 'Content-Type'
1250
+ content_type = @api_client.select_header_content_type(['application/json'])
1251
+ if !content_type.nil?
1252
+ header_params['Content-Type'] = content_type
1253
+ end
1254
+
1255
+ # form parameters
1256
+ form_params = opts[:form_params] || {}
1257
+
1258
+ # http body (model)
1259
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1260
+
1261
+ # return_type
1262
+ return_type = opts[:debug_return_type] || 'Object'
1263
+
1264
+ # auth_names
1265
+ auth_names = opts[:debug_auth_names] || []
1266
+
1267
+ new_options = opts.merge(
1268
+ :operation => :"ComputerUseApi.press_hotkey",
1269
+ :header_params => header_params,
1270
+ :query_params => query_params,
1271
+ :form_params => form_params,
1272
+ :body => post_body,
1273
+ :auth_names => auth_names,
1274
+ :return_type => return_type
1275
+ )
1276
+
1277
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1278
+ if @api_client.config.debugging
1279
+ @api_client.config.logger.debug "API called: ComputerUseApi#press_hotkey\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1280
+ end
1281
+ return data, status_code, headers
1282
+ end
1283
+
1284
+ # Press key
1285
+ # Press a key with optional modifiers
1286
+ # @param request [KeyboardPressRequest] Key press request
1287
+ # @param [Hash] opts the optional parameters
1288
+ # @return [Object]
1289
+ def press_key(request, opts = {})
1290
+ data, _status_code, _headers = press_key_with_http_info(request, opts)
1291
+ data
1292
+ end
1293
+
1294
+ # Press key
1295
+ # Press a key with optional modifiers
1296
+ # @param request [KeyboardPressRequest] Key press request
1297
+ # @param [Hash] opts the optional parameters
1298
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1299
+ def press_key_with_http_info(request, opts = {})
1300
+ if @api_client.config.debugging
1301
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.press_key ...'
1302
+ end
1303
+ # verify the required parameter 'request' is set
1304
+ if @api_client.config.client_side_validation && request.nil?
1305
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.press_key"
1306
+ end
1307
+ # resource path
1308
+ local_var_path = '/computeruse/keyboard/key'
1309
+
1310
+ # query parameters
1311
+ query_params = opts[:query_params] || {}
1312
+
1313
+ # header parameters
1314
+ header_params = opts[:header_params] || {}
1315
+ # HTTP header 'Accept' (if needed)
1316
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1317
+ # HTTP header 'Content-Type'
1318
+ content_type = @api_client.select_header_content_type(['application/json'])
1319
+ if !content_type.nil?
1320
+ header_params['Content-Type'] = content_type
1321
+ end
1322
+
1323
+ # form parameters
1324
+ form_params = opts[:form_params] || {}
1325
+
1326
+ # http body (model)
1327
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1328
+
1329
+ # return_type
1330
+ return_type = opts[:debug_return_type] || 'Object'
1331
+
1332
+ # auth_names
1333
+ auth_names = opts[:debug_auth_names] || []
1334
+
1335
+ new_options = opts.merge(
1336
+ :operation => :"ComputerUseApi.press_key",
1337
+ :header_params => header_params,
1338
+ :query_params => query_params,
1339
+ :form_params => form_params,
1340
+ :body => post_body,
1341
+ :auth_names => auth_names,
1342
+ :return_type => return_type
1343
+ )
1344
+
1345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1346
+ if @api_client.config.debugging
1347
+ @api_client.config.logger.debug "API called: ComputerUseApi#press_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1348
+ end
1349
+ return data, status_code, headers
1350
+ end
1351
+
1352
+ # Restart specific process
1353
+ # Restart a specific computer use process
1354
+ # @param process_name [String] Process name to restart
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @return [ProcessRestartResponse]
1357
+ def restart_process(process_name, opts = {})
1358
+ data, _status_code, _headers = restart_process_with_http_info(process_name, opts)
1359
+ data
1360
+ end
1361
+
1362
+ # Restart specific process
1363
+ # Restart a specific computer use process
1364
+ # @param process_name [String] Process name to restart
1365
+ # @param [Hash] opts the optional parameters
1366
+ # @return [Array<(ProcessRestartResponse, Integer, Hash)>] ProcessRestartResponse data, response status code and response headers
1367
+ def restart_process_with_http_info(process_name, opts = {})
1368
+ if @api_client.config.debugging
1369
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.restart_process ...'
1370
+ end
1371
+ # verify the required parameter 'process_name' is set
1372
+ if @api_client.config.client_side_validation && process_name.nil?
1373
+ fail ArgumentError, "Missing the required parameter 'process_name' when calling ComputerUseApi.restart_process"
1374
+ end
1375
+ # resource path
1376
+ local_var_path = '/computeruse/process/{processName}/restart'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s))
1377
+
1378
+ # query parameters
1379
+ query_params = opts[:query_params] || {}
1380
+
1381
+ # header parameters
1382
+ header_params = opts[:header_params] || {}
1383
+ # HTTP header 'Accept' (if needed)
1384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1385
+
1386
+ # form parameters
1387
+ form_params = opts[:form_params] || {}
1388
+
1389
+ # http body (model)
1390
+ post_body = opts[:debug_body]
1391
+
1392
+ # return_type
1393
+ return_type = opts[:debug_return_type] || 'ProcessRestartResponse'
1394
+
1395
+ # auth_names
1396
+ auth_names = opts[:debug_auth_names] || []
1397
+
1398
+ new_options = opts.merge(
1399
+ :operation => :"ComputerUseApi.restart_process",
1400
+ :header_params => header_params,
1401
+ :query_params => query_params,
1402
+ :form_params => form_params,
1403
+ :body => post_body,
1404
+ :auth_names => auth_names,
1405
+ :return_type => return_type
1406
+ )
1407
+
1408
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1409
+ if @api_client.config.debugging
1410
+ @api_client.config.logger.debug "API called: ComputerUseApi#restart_process\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1411
+ end
1412
+ return data, status_code, headers
1413
+ end
1414
+
1415
+ # Scroll mouse wheel
1416
+ # Scroll the mouse wheel at the specified coordinates
1417
+ # @param request [MouseScrollRequest] Mouse scroll request
1418
+ # @param [Hash] opts the optional parameters
1419
+ # @return [ScrollResponse]
1420
+ def scroll(request, opts = {})
1421
+ data, _status_code, _headers = scroll_with_http_info(request, opts)
1422
+ data
1423
+ end
1424
+
1425
+ # Scroll mouse wheel
1426
+ # Scroll the mouse wheel at the specified coordinates
1427
+ # @param request [MouseScrollRequest] Mouse scroll request
1428
+ # @param [Hash] opts the optional parameters
1429
+ # @return [Array<(ScrollResponse, Integer, Hash)>] ScrollResponse data, response status code and response headers
1430
+ def scroll_with_http_info(request, opts = {})
1431
+ if @api_client.config.debugging
1432
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.scroll ...'
1433
+ end
1434
+ # verify the required parameter 'request' is set
1435
+ if @api_client.config.client_side_validation && request.nil?
1436
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.scroll"
1437
+ end
1438
+ # resource path
1439
+ local_var_path = '/computeruse/mouse/scroll'
1440
+
1441
+ # query parameters
1442
+ query_params = opts[:query_params] || {}
1443
+
1444
+ # header parameters
1445
+ header_params = opts[:header_params] || {}
1446
+ # HTTP header 'Accept' (if needed)
1447
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1448
+ # HTTP header 'Content-Type'
1449
+ content_type = @api_client.select_header_content_type(['application/json'])
1450
+ if !content_type.nil?
1451
+ header_params['Content-Type'] = content_type
1452
+ end
1453
+
1454
+ # form parameters
1455
+ form_params = opts[:form_params] || {}
1456
+
1457
+ # http body (model)
1458
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1459
+
1460
+ # return_type
1461
+ return_type = opts[:debug_return_type] || 'ScrollResponse'
1462
+
1463
+ # auth_names
1464
+ auth_names = opts[:debug_auth_names] || []
1465
+
1466
+ new_options = opts.merge(
1467
+ :operation => :"ComputerUseApi.scroll",
1468
+ :header_params => header_params,
1469
+ :query_params => query_params,
1470
+ :form_params => form_params,
1471
+ :body => post_body,
1472
+ :auth_names => auth_names,
1473
+ :return_type => return_type
1474
+ )
1475
+
1476
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1477
+ if @api_client.config.debugging
1478
+ @api_client.config.logger.debug "API called: ComputerUseApi#scroll\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1479
+ end
1480
+ return data, status_code, headers
1481
+ end
1482
+
1483
+ # Set the value of an accessibility node
1484
+ # Write the given value to the node via EditableText.SetTextContents or, for numeric controls, Value.CurrentValue.
1485
+ # @param request [AccessibilitySetValueRequest] Set value request
1486
+ # @param [Hash] opts the optional parameters
1487
+ # @return [Object]
1488
+ def set_accessibility_node_value(request, opts = {})
1489
+ data, _status_code, _headers = set_accessibility_node_value_with_http_info(request, opts)
1490
+ data
1491
+ end
1492
+
1493
+ # Set the value of an accessibility node
1494
+ # Write the given value to the node via EditableText.SetTextContents or, for numeric controls, Value.CurrentValue.
1495
+ # @param request [AccessibilitySetValueRequest] Set value request
1496
+ # @param [Hash] opts the optional parameters
1497
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1498
+ def set_accessibility_node_value_with_http_info(request, opts = {})
1499
+ if @api_client.config.debugging
1500
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.set_accessibility_node_value ...'
1501
+ end
1502
+ # verify the required parameter 'request' is set
1503
+ if @api_client.config.client_side_validation && request.nil?
1504
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.set_accessibility_node_value"
1505
+ end
1506
+ # resource path
1507
+ local_var_path = '/computeruse/a11y/node/value'
1508
+
1509
+ # query parameters
1510
+ query_params = opts[:query_params] || {}
1511
+
1512
+ # header parameters
1513
+ header_params = opts[:header_params] || {}
1514
+ # HTTP header 'Accept' (if needed)
1515
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1516
+ # HTTP header 'Content-Type'
1517
+ content_type = @api_client.select_header_content_type(['application/json'])
1518
+ if !content_type.nil?
1519
+ header_params['Content-Type'] = content_type
1520
+ end
1521
+
1522
+ # form parameters
1523
+ form_params = opts[:form_params] || {}
1524
+
1525
+ # http body (model)
1526
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1527
+
1528
+ # return_type
1529
+ return_type = opts[:debug_return_type] || 'Object'
1530
+
1531
+ # auth_names
1532
+ auth_names = opts[:debug_auth_names] || []
1533
+
1534
+ new_options = opts.merge(
1535
+ :operation => :"ComputerUseApi.set_accessibility_node_value",
1536
+ :header_params => header_params,
1537
+ :query_params => query_params,
1538
+ :form_params => form_params,
1539
+ :body => post_body,
1540
+ :auth_names => auth_names,
1541
+ :return_type => return_type
1542
+ )
1543
+
1544
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1545
+ if @api_client.config.debugging
1546
+ @api_client.config.logger.debug "API called: ComputerUseApi#set_accessibility_node_value\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1547
+ end
1548
+ return data, status_code, headers
1549
+ end
1550
+
1551
+ # Start computer use processes
1552
+ # Start all computer use processes and return their status
1553
+ # @param [Hash] opts the optional parameters
1554
+ # @return [ComputerUseStartResponse]
1555
+ def start_computer_use(opts = {})
1556
+ data, _status_code, _headers = start_computer_use_with_http_info(opts)
1557
+ data
1558
+ end
1559
+
1560
+ # Start computer use processes
1561
+ # Start all computer use processes and return their status
1562
+ # @param [Hash] opts the optional parameters
1563
+ # @return [Array<(ComputerUseStartResponse, Integer, Hash)>] ComputerUseStartResponse data, response status code and response headers
1564
+ def start_computer_use_with_http_info(opts = {})
1565
+ if @api_client.config.debugging
1566
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.start_computer_use ...'
1567
+ end
1568
+ # resource path
1569
+ local_var_path = '/computeruse/start'
1570
+
1571
+ # query parameters
1572
+ query_params = opts[:query_params] || {}
1573
+
1574
+ # header parameters
1575
+ header_params = opts[:header_params] || {}
1576
+ # HTTP header 'Accept' (if needed)
1577
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1578
+
1579
+ # form parameters
1580
+ form_params = opts[:form_params] || {}
1581
+
1582
+ # http body (model)
1583
+ post_body = opts[:debug_body]
1584
+
1585
+ # return_type
1586
+ return_type = opts[:debug_return_type] || 'ComputerUseStartResponse'
1587
+
1588
+ # auth_names
1589
+ auth_names = opts[:debug_auth_names] || []
1590
+
1591
+ new_options = opts.merge(
1592
+ :operation => :"ComputerUseApi.start_computer_use",
1593
+ :header_params => header_params,
1594
+ :query_params => query_params,
1595
+ :form_params => form_params,
1596
+ :body => post_body,
1597
+ :auth_names => auth_names,
1598
+ :return_type => return_type
1599
+ )
1600
+
1601
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1602
+ if @api_client.config.debugging
1603
+ @api_client.config.logger.debug "API called: ComputerUseApi#start_computer_use\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1604
+ end
1605
+ return data, status_code, headers
1606
+ end
1607
+
1608
+ # Start a new recording
1609
+ # Start a new screen recording session
1610
+ # @param [Hash] opts the optional parameters
1611
+ # @option opts [StartRecordingRequest] :request Recording options
1612
+ # @return [Recording]
1613
+ def start_recording(opts = {})
1614
+ data, _status_code, _headers = start_recording_with_http_info(opts)
1615
+ data
1616
+ end
1617
+
1618
+ # Start a new recording
1619
+ # Start a new screen recording session
1620
+ # @param [Hash] opts the optional parameters
1621
+ # @option opts [StartRecordingRequest] :request Recording options
1622
+ # @return [Array<(Recording, Integer, Hash)>] Recording data, response status code and response headers
1623
+ def start_recording_with_http_info(opts = {})
1624
+ if @api_client.config.debugging
1625
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.start_recording ...'
1626
+ end
1627
+ # resource path
1628
+ local_var_path = '/computeruse/recordings/start'
1629
+
1630
+ # query parameters
1631
+ query_params = opts[:query_params] || {}
1632
+
1633
+ # header parameters
1634
+ header_params = opts[:header_params] || {}
1635
+ # HTTP header 'Accept' (if needed)
1636
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1637
+ # HTTP header 'Content-Type'
1638
+ content_type = @api_client.select_header_content_type(['application/json'])
1639
+ if !content_type.nil?
1640
+ header_params['Content-Type'] = content_type
1641
+ end
1642
+
1643
+ # form parameters
1644
+ form_params = opts[:form_params] || {}
1645
+
1646
+ # http body (model)
1647
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request'])
1648
+
1649
+ # return_type
1650
+ return_type = opts[:debug_return_type] || 'Recording'
1651
+
1652
+ # auth_names
1653
+ auth_names = opts[:debug_auth_names] || []
1654
+
1655
+ new_options = opts.merge(
1656
+ :operation => :"ComputerUseApi.start_recording",
1657
+ :header_params => header_params,
1658
+ :query_params => query_params,
1659
+ :form_params => form_params,
1660
+ :body => post_body,
1661
+ :auth_names => auth_names,
1662
+ :return_type => return_type
1663
+ )
1664
+
1665
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1666
+ if @api_client.config.debugging
1667
+ @api_client.config.logger.debug "API called: ComputerUseApi#start_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1668
+ end
1669
+ return data, status_code, headers
1670
+ end
1671
+
1672
+ # Stop computer use processes
1673
+ # Stop all computer use processes and return their status
1674
+ # @param [Hash] opts the optional parameters
1675
+ # @return [ComputerUseStopResponse]
1676
+ def stop_computer_use(opts = {})
1677
+ data, _status_code, _headers = stop_computer_use_with_http_info(opts)
1678
+ data
1679
+ end
1680
+
1681
+ # Stop computer use processes
1682
+ # Stop all computer use processes and return their status
1683
+ # @param [Hash] opts the optional parameters
1684
+ # @return [Array<(ComputerUseStopResponse, Integer, Hash)>] ComputerUseStopResponse data, response status code and response headers
1685
+ def stop_computer_use_with_http_info(opts = {})
1686
+ if @api_client.config.debugging
1687
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.stop_computer_use ...'
1688
+ end
1689
+ # resource path
1690
+ local_var_path = '/computeruse/stop'
1691
+
1692
+ # query parameters
1693
+ query_params = opts[:query_params] || {}
1694
+
1695
+ # header parameters
1696
+ header_params = opts[:header_params] || {}
1697
+ # HTTP header 'Accept' (if needed)
1698
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1699
+
1700
+ # form parameters
1701
+ form_params = opts[:form_params] || {}
1702
+
1703
+ # http body (model)
1704
+ post_body = opts[:debug_body]
1705
+
1706
+ # return_type
1707
+ return_type = opts[:debug_return_type] || 'ComputerUseStopResponse'
1708
+
1709
+ # auth_names
1710
+ auth_names = opts[:debug_auth_names] || []
1711
+
1712
+ new_options = opts.merge(
1713
+ :operation => :"ComputerUseApi.stop_computer_use",
1714
+ :header_params => header_params,
1715
+ :query_params => query_params,
1716
+ :form_params => form_params,
1717
+ :body => post_body,
1718
+ :auth_names => auth_names,
1719
+ :return_type => return_type
1720
+ )
1721
+
1722
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1723
+ if @api_client.config.debugging
1724
+ @api_client.config.logger.debug "API called: ComputerUseApi#stop_computer_use\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1725
+ end
1726
+ return data, status_code, headers
1727
+ end
1728
+
1729
+ # Stop a recording
1730
+ # Stop an active screen recording session
1731
+ # @param request [StopRecordingRequest] Recording ID to stop
1732
+ # @param [Hash] opts the optional parameters
1733
+ # @return [Recording]
1734
+ def stop_recording(request, opts = {})
1735
+ data, _status_code, _headers = stop_recording_with_http_info(request, opts)
1736
+ data
1737
+ end
1738
+
1739
+ # Stop a recording
1740
+ # Stop an active screen recording session
1741
+ # @param request [StopRecordingRequest] Recording ID to stop
1742
+ # @param [Hash] opts the optional parameters
1743
+ # @return [Array<(Recording, Integer, Hash)>] Recording data, response status code and response headers
1744
+ def stop_recording_with_http_info(request, opts = {})
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.stop_recording ...'
1747
+ end
1748
+ # verify the required parameter 'request' is set
1749
+ if @api_client.config.client_side_validation && request.nil?
1750
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.stop_recording"
1751
+ end
1752
+ # resource path
1753
+ local_var_path = '/computeruse/recordings/stop'
1754
+
1755
+ # query parameters
1756
+ query_params = opts[:query_params] || {}
1757
+
1758
+ # header parameters
1759
+ header_params = opts[:header_params] || {}
1760
+ # HTTP header 'Accept' (if needed)
1761
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1762
+ # HTTP header 'Content-Type'
1763
+ content_type = @api_client.select_header_content_type(['application/json'])
1764
+ if !content_type.nil?
1765
+ header_params['Content-Type'] = content_type
1766
+ end
1767
+
1768
+ # form parameters
1769
+ form_params = opts[:form_params] || {}
1770
+
1771
+ # http body (model)
1772
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
1773
+
1774
+ # return_type
1775
+ return_type = opts[:debug_return_type] || 'Recording'
1776
+
1777
+ # auth_names
1778
+ auth_names = opts[:debug_auth_names] || []
1779
+
1780
+ new_options = opts.merge(
1781
+ :operation => :"ComputerUseApi.stop_recording",
1782
+ :header_params => header_params,
1783
+ :query_params => query_params,
1784
+ :form_params => form_params,
1785
+ :body => post_body,
1786
+ :auth_names => auth_names,
1787
+ :return_type => return_type
1788
+ )
1789
+
1790
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1791
+ if @api_client.config.debugging
1792
+ @api_client.config.logger.debug "API called: ComputerUseApi#stop_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1793
+ end
1794
+ return data, status_code, headers
1795
+ end
1796
+
1797
+ # Take a compressed region screenshot
1798
+ # Take a compressed screenshot of a specific region of the screen
1799
+ # @param x [Integer] X coordinate of the region
1800
+ # @param y [Integer] Y coordinate of the region
1801
+ # @param width [Integer] Width of the region
1802
+ # @param height [Integer] Height of the region
1803
+ # @param [Hash] opts the optional parameters
1804
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1805
+ # @option opts [String] :format Image format (png or jpeg)
1806
+ # @option opts [Integer] :quality JPEG quality (1-100)
1807
+ # @option opts [Float] :scale Scale factor (0.1-1.0)
1808
+ # @return [ScreenshotResponse]
1809
+ def take_compressed_region_screenshot(x, y, width, height, opts = {})
1810
+ data, _status_code, _headers = take_compressed_region_screenshot_with_http_info(x, y, width, height, opts)
1811
+ data
1812
+ end
1813
+
1814
+ # Take a compressed region screenshot
1815
+ # Take a compressed screenshot of a specific region of the screen
1816
+ # @param x [Integer] X coordinate of the region
1817
+ # @param y [Integer] Y coordinate of the region
1818
+ # @param width [Integer] Width of the region
1819
+ # @param height [Integer] Height of the region
1820
+ # @param [Hash] opts the optional parameters
1821
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1822
+ # @option opts [String] :format Image format (png or jpeg)
1823
+ # @option opts [Integer] :quality JPEG quality (1-100)
1824
+ # @option opts [Float] :scale Scale factor (0.1-1.0)
1825
+ # @return [Array<(ScreenshotResponse, Integer, Hash)>] ScreenshotResponse data, response status code and response headers
1826
+ def take_compressed_region_screenshot_with_http_info(x, y, width, height, opts = {})
1827
+ if @api_client.config.debugging
1828
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.take_compressed_region_screenshot ...'
1829
+ end
1830
+ # verify the required parameter 'x' is set
1831
+ if @api_client.config.client_side_validation && x.nil?
1832
+ fail ArgumentError, "Missing the required parameter 'x' when calling ComputerUseApi.take_compressed_region_screenshot"
1833
+ end
1834
+ # verify the required parameter 'y' is set
1835
+ if @api_client.config.client_side_validation && y.nil?
1836
+ fail ArgumentError, "Missing the required parameter 'y' when calling ComputerUseApi.take_compressed_region_screenshot"
1837
+ end
1838
+ # verify the required parameter 'width' is set
1839
+ if @api_client.config.client_side_validation && width.nil?
1840
+ fail ArgumentError, "Missing the required parameter 'width' when calling ComputerUseApi.take_compressed_region_screenshot"
1841
+ end
1842
+ # verify the required parameter 'height' is set
1843
+ if @api_client.config.client_side_validation && height.nil?
1844
+ fail ArgumentError, "Missing the required parameter 'height' when calling ComputerUseApi.take_compressed_region_screenshot"
1845
+ end
1846
+ # resource path
1847
+ local_var_path = '/computeruse/screenshot/region/compressed'
1848
+
1849
+ # query parameters
1850
+ query_params = opts[:query_params] || {}
1851
+ query_params[:'x'] = x
1852
+ query_params[:'y'] = y
1853
+ query_params[:'width'] = width
1854
+ query_params[:'height'] = height
1855
+ query_params[:'showCursor'] = opts[:'show_cursor'] if !opts[:'show_cursor'].nil?
1856
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
1857
+ query_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1858
+ query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
1859
+
1860
+ # header parameters
1861
+ header_params = opts[:header_params] || {}
1862
+ # HTTP header 'Accept' (if needed)
1863
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1864
+
1865
+ # form parameters
1866
+ form_params = opts[:form_params] || {}
1867
+
1868
+ # http body (model)
1869
+ post_body = opts[:debug_body]
1870
+
1871
+ # return_type
1872
+ return_type = opts[:debug_return_type] || 'ScreenshotResponse'
1873
+
1874
+ # auth_names
1875
+ auth_names = opts[:debug_auth_names] || []
1876
+
1877
+ new_options = opts.merge(
1878
+ :operation => :"ComputerUseApi.take_compressed_region_screenshot",
1879
+ :header_params => header_params,
1880
+ :query_params => query_params,
1881
+ :form_params => form_params,
1882
+ :body => post_body,
1883
+ :auth_names => auth_names,
1884
+ :return_type => return_type
1885
+ )
1886
+
1887
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1888
+ if @api_client.config.debugging
1889
+ @api_client.config.logger.debug "API called: ComputerUseApi#take_compressed_region_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1890
+ end
1891
+ return data, status_code, headers
1892
+ end
1893
+
1894
+ # Take a compressed screenshot
1895
+ # Take a compressed screenshot of the entire screen
1896
+ # @param [Hash] opts the optional parameters
1897
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1898
+ # @option opts [String] :format Image format (png or jpeg)
1899
+ # @option opts [Integer] :quality JPEG quality (1-100)
1900
+ # @option opts [Float] :scale Scale factor (0.1-1.0)
1901
+ # @return [ScreenshotResponse]
1902
+ def take_compressed_screenshot(opts = {})
1903
+ data, _status_code, _headers = take_compressed_screenshot_with_http_info(opts)
1904
+ data
1905
+ end
1906
+
1907
+ # Take a compressed screenshot
1908
+ # Take a compressed screenshot of the entire screen
1909
+ # @param [Hash] opts the optional parameters
1910
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1911
+ # @option opts [String] :format Image format (png or jpeg)
1912
+ # @option opts [Integer] :quality JPEG quality (1-100)
1913
+ # @option opts [Float] :scale Scale factor (0.1-1.0)
1914
+ # @return [Array<(ScreenshotResponse, Integer, Hash)>] ScreenshotResponse data, response status code and response headers
1915
+ def take_compressed_screenshot_with_http_info(opts = {})
1916
+ if @api_client.config.debugging
1917
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.take_compressed_screenshot ...'
1918
+ end
1919
+ # resource path
1920
+ local_var_path = '/computeruse/screenshot/compressed'
1921
+
1922
+ # query parameters
1923
+ query_params = opts[:query_params] || {}
1924
+ query_params[:'showCursor'] = opts[:'show_cursor'] if !opts[:'show_cursor'].nil?
1925
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
1926
+ query_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
1927
+ query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
1928
+
1929
+ # header parameters
1930
+ header_params = opts[:header_params] || {}
1931
+ # HTTP header 'Accept' (if needed)
1932
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1933
+
1934
+ # form parameters
1935
+ form_params = opts[:form_params] || {}
1936
+
1937
+ # http body (model)
1938
+ post_body = opts[:debug_body]
1939
+
1940
+ # return_type
1941
+ return_type = opts[:debug_return_type] || 'ScreenshotResponse'
1942
+
1943
+ # auth_names
1944
+ auth_names = opts[:debug_auth_names] || []
1945
+
1946
+ new_options = opts.merge(
1947
+ :operation => :"ComputerUseApi.take_compressed_screenshot",
1948
+ :header_params => header_params,
1949
+ :query_params => query_params,
1950
+ :form_params => form_params,
1951
+ :body => post_body,
1952
+ :auth_names => auth_names,
1953
+ :return_type => return_type
1954
+ )
1955
+
1956
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1957
+ if @api_client.config.debugging
1958
+ @api_client.config.logger.debug "API called: ComputerUseApi#take_compressed_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1959
+ end
1960
+ return data, status_code, headers
1961
+ end
1962
+
1963
+ # Take a region screenshot
1964
+ # Take a screenshot of a specific region of the screen
1965
+ # @param x [Integer] X coordinate of the region
1966
+ # @param y [Integer] Y coordinate of the region
1967
+ # @param width [Integer] Width of the region
1968
+ # @param height [Integer] Height of the region
1969
+ # @param [Hash] opts the optional parameters
1970
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1971
+ # @return [ScreenshotResponse]
1972
+ def take_region_screenshot(x, y, width, height, opts = {})
1973
+ data, _status_code, _headers = take_region_screenshot_with_http_info(x, y, width, height, opts)
1974
+ data
1975
+ end
1976
+
1977
+ # Take a region screenshot
1978
+ # Take a screenshot of a specific region of the screen
1979
+ # @param x [Integer] X coordinate of the region
1980
+ # @param y [Integer] Y coordinate of the region
1981
+ # @param width [Integer] Width of the region
1982
+ # @param height [Integer] Height of the region
1983
+ # @param [Hash] opts the optional parameters
1984
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
1985
+ # @return [Array<(ScreenshotResponse, Integer, Hash)>] ScreenshotResponse data, response status code and response headers
1986
+ def take_region_screenshot_with_http_info(x, y, width, height, opts = {})
1987
+ if @api_client.config.debugging
1988
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.take_region_screenshot ...'
1989
+ end
1990
+ # verify the required parameter 'x' is set
1991
+ if @api_client.config.client_side_validation && x.nil?
1992
+ fail ArgumentError, "Missing the required parameter 'x' when calling ComputerUseApi.take_region_screenshot"
1993
+ end
1994
+ # verify the required parameter 'y' is set
1995
+ if @api_client.config.client_side_validation && y.nil?
1996
+ fail ArgumentError, "Missing the required parameter 'y' when calling ComputerUseApi.take_region_screenshot"
1997
+ end
1998
+ # verify the required parameter 'width' is set
1999
+ if @api_client.config.client_side_validation && width.nil?
2000
+ fail ArgumentError, "Missing the required parameter 'width' when calling ComputerUseApi.take_region_screenshot"
2001
+ end
2002
+ # verify the required parameter 'height' is set
2003
+ if @api_client.config.client_side_validation && height.nil?
2004
+ fail ArgumentError, "Missing the required parameter 'height' when calling ComputerUseApi.take_region_screenshot"
2005
+ end
2006
+ # resource path
2007
+ local_var_path = '/computeruse/screenshot/region'
2008
+
2009
+ # query parameters
2010
+ query_params = opts[:query_params] || {}
2011
+ query_params[:'x'] = x
2012
+ query_params[:'y'] = y
2013
+ query_params[:'width'] = width
2014
+ query_params[:'height'] = height
2015
+ query_params[:'showCursor'] = opts[:'show_cursor'] if !opts[:'show_cursor'].nil?
2016
+
2017
+ # header parameters
2018
+ header_params = opts[:header_params] || {}
2019
+ # HTTP header 'Accept' (if needed)
2020
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2021
+
2022
+ # form parameters
2023
+ form_params = opts[:form_params] || {}
2024
+
2025
+ # http body (model)
2026
+ post_body = opts[:debug_body]
2027
+
2028
+ # return_type
2029
+ return_type = opts[:debug_return_type] || 'ScreenshotResponse'
2030
+
2031
+ # auth_names
2032
+ auth_names = opts[:debug_auth_names] || []
2033
+
2034
+ new_options = opts.merge(
2035
+ :operation => :"ComputerUseApi.take_region_screenshot",
2036
+ :header_params => header_params,
2037
+ :query_params => query_params,
2038
+ :form_params => form_params,
2039
+ :body => post_body,
2040
+ :auth_names => auth_names,
2041
+ :return_type => return_type
2042
+ )
2043
+
2044
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2045
+ if @api_client.config.debugging
2046
+ @api_client.config.logger.debug "API called: ComputerUseApi#take_region_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2047
+ end
2048
+ return data, status_code, headers
2049
+ end
2050
+
2051
+ # Take a screenshot
2052
+ # Take a screenshot of the entire screen
2053
+ # @param [Hash] opts the optional parameters
2054
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
2055
+ # @return [ScreenshotResponse]
2056
+ def take_screenshot(opts = {})
2057
+ data, _status_code, _headers = take_screenshot_with_http_info(opts)
2058
+ data
2059
+ end
2060
+
2061
+ # Take a screenshot
2062
+ # Take a screenshot of the entire screen
2063
+ # @param [Hash] opts the optional parameters
2064
+ # @option opts [Boolean] :show_cursor Whether to show cursor in screenshot
2065
+ # @return [Array<(ScreenshotResponse, Integer, Hash)>] ScreenshotResponse data, response status code and response headers
2066
+ def take_screenshot_with_http_info(opts = {})
2067
+ if @api_client.config.debugging
2068
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.take_screenshot ...'
2069
+ end
2070
+ # resource path
2071
+ local_var_path = '/computeruse/screenshot'
2072
+
2073
+ # query parameters
2074
+ query_params = opts[:query_params] || {}
2075
+ query_params[:'showCursor'] = opts[:'show_cursor'] if !opts[:'show_cursor'].nil?
2076
+
2077
+ # header parameters
2078
+ header_params = opts[:header_params] || {}
2079
+ # HTTP header 'Accept' (if needed)
2080
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2081
+
2082
+ # form parameters
2083
+ form_params = opts[:form_params] || {}
2084
+
2085
+ # http body (model)
2086
+ post_body = opts[:debug_body]
2087
+
2088
+ # return_type
2089
+ return_type = opts[:debug_return_type] || 'ScreenshotResponse'
2090
+
2091
+ # auth_names
2092
+ auth_names = opts[:debug_auth_names] || []
2093
+
2094
+ new_options = opts.merge(
2095
+ :operation => :"ComputerUseApi.take_screenshot",
2096
+ :header_params => header_params,
2097
+ :query_params => query_params,
2098
+ :form_params => form_params,
2099
+ :body => post_body,
2100
+ :auth_names => auth_names,
2101
+ :return_type => return_type
2102
+ )
2103
+
2104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2105
+ if @api_client.config.debugging
2106
+ @api_client.config.logger.debug "API called: ComputerUseApi#take_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2107
+ end
2108
+ return data, status_code, headers
2109
+ end
2110
+
2111
+ # Type text
2112
+ # Type text with optional delay between keystrokes
2113
+ # @param request [KeyboardTypeRequest] Text typing request
2114
+ # @param [Hash] opts the optional parameters
2115
+ # @return [Object]
2116
+ def type_text(request, opts = {})
2117
+ data, _status_code, _headers = type_text_with_http_info(request, opts)
2118
+ data
2119
+ end
2120
+
2121
+ # Type text
2122
+ # Type text with optional delay between keystrokes
2123
+ # @param request [KeyboardTypeRequest] Text typing request
2124
+ # @param [Hash] opts the optional parameters
2125
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2126
+ def type_text_with_http_info(request, opts = {})
2127
+ if @api_client.config.debugging
2128
+ @api_client.config.logger.debug 'Calling API: ComputerUseApi.type_text ...'
2129
+ end
2130
+ # verify the required parameter 'request' is set
2131
+ if @api_client.config.client_side_validation && request.nil?
2132
+ fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.type_text"
2133
+ end
2134
+ # resource path
2135
+ local_var_path = '/computeruse/keyboard/type'
2136
+
2137
+ # query parameters
2138
+ query_params = opts[:query_params] || {}
2139
+
2140
+ # header parameters
2141
+ header_params = opts[:header_params] || {}
2142
+ # HTTP header 'Accept' (if needed)
2143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2144
+ # HTTP header 'Content-Type'
2145
+ content_type = @api_client.select_header_content_type(['application/json'])
2146
+ if !content_type.nil?
2147
+ header_params['Content-Type'] = content_type
2148
+ end
2149
+
2150
+ # form parameters
2151
+ form_params = opts[:form_params] || {}
2152
+
2153
+ # http body (model)
2154
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
2155
+
2156
+ # return_type
2157
+ return_type = opts[:debug_return_type] || 'Object'
2158
+
2159
+ # auth_names
2160
+ auth_names = opts[:debug_auth_names] || []
2161
+
2162
+ new_options = opts.merge(
2163
+ :operation => :"ComputerUseApi.type_text",
2164
+ :header_params => header_params,
2165
+ :query_params => query_params,
2166
+ :form_params => form_params,
2167
+ :body => post_body,
2168
+ :auth_names => auth_names,
2169
+ :return_type => return_type
2170
+ )
2171
+
2172
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2173
+ if @api_client.config.debugging
2174
+ @api_client.config.logger.debug "API called: ComputerUseApi#type_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2175
+ end
2176
+ return data, status_code, headers
2177
+ end
2178
+ end
2179
+ end