daytona_toolbox_api_client 0.223.0.alpha.2 → 0.223.1
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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +6 -0
- data/lib/daytona_toolbox_api_client/api/computer_use_api.rb +272 -0
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +5 -5
- data/lib/daytona_toolbox_api_client/api/git_api.rb +2 -2
- data/lib/daytona_toolbox_api_client/models/daemon_error_code.rb +3 -1
- data/lib/daytona_toolbox_api_client/models/fs_file_result.rb +156 -0
- data/lib/daytona_toolbox_api_client/models/initialize_request.rb +0 -17
- data/lib/daytona_toolbox_api_client/models/keyboard_key_down_request.rb +165 -0
- data/lib/daytona_toolbox_api_client/models/keyboard_key_up_request.rb +165 -0
- data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +22 -1
- data/lib/daytona_toolbox_api_client/models/mouse_down_request.rb +166 -0
- data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +12 -1
- data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +13 -2
- data/lib/daytona_toolbox_api_client/models/mouse_up_request.rb +166 -0
- data/lib/daytona_toolbox_api_client/models/upload_files_response.rb +160 -0
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +6 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 717333746794e97b51984357e5c6bd620b33858af2ba16d2db3da6e1628f53f5
|
|
4
|
+
data.tar.gz: ae23f713c779408ee04cd96c180db310f27327672597edb68d669056b285d752
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad9e2ece9ca8de5422f2828449a8fd052576595268fea6b71f03e107b9ebe263d26c46c41e9e6fb6c51e43396e324cdcd7239946ff692737f0d068cbb425dc03
|
|
7
|
+
data.tar.gz: d05a6618eba950dca03b33e42d89abaaee02c0f58166b7ae9602d9f083906a2ad4209a6c81bcc4137a920e04a9356091445d6d6e31bd53f30a1c9c686d76785f
|
data/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,7 @@ lib/daytona_toolbox_api_client/models/file_info.rb
|
|
|
49
49
|
lib/daytona_toolbox_api_client/models/file_status.rb
|
|
50
50
|
lib/daytona_toolbox_api_client/models/files_download_request.rb
|
|
51
51
|
lib/daytona_toolbox_api_client/models/find_accessibility_nodes_request.rb
|
|
52
|
+
lib/daytona_toolbox_api_client/models/fs_file_result.rb
|
|
52
53
|
lib/daytona_toolbox_api_client/models/git_add_remote_request.rb
|
|
53
54
|
lib/daytona_toolbox_api_client/models/git_add_request.rb
|
|
54
55
|
lib/daytona_toolbox_api_client/models/git_authenticate_request.rb
|
|
@@ -73,6 +74,8 @@ lib/daytona_toolbox_api_client/models/initialize_request.rb
|
|
|
73
74
|
lib/daytona_toolbox_api_client/models/interpreter_context.rb
|
|
74
75
|
lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb
|
|
75
76
|
lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb
|
|
77
|
+
lib/daytona_toolbox_api_client/models/keyboard_key_down_request.rb
|
|
78
|
+
lib/daytona_toolbox_api_client/models/keyboard_key_up_request.rb
|
|
76
79
|
lib/daytona_toolbox_api_client/models/keyboard_press_request.rb
|
|
77
80
|
lib/daytona_toolbox_api_client/models/keyboard_type_request.rb
|
|
78
81
|
lib/daytona_toolbox_api_client/models/list_branch_response.rb
|
|
@@ -89,11 +92,13 @@ lib/daytona_toolbox_api_client/models/lsp_symbol.rb
|
|
|
89
92
|
lib/daytona_toolbox_api_client/models/match.rb
|
|
90
93
|
lib/daytona_toolbox_api_client/models/mouse_click_request.rb
|
|
91
94
|
lib/daytona_toolbox_api_client/models/mouse_click_response.rb
|
|
95
|
+
lib/daytona_toolbox_api_client/models/mouse_down_request.rb
|
|
92
96
|
lib/daytona_toolbox_api_client/models/mouse_drag_request.rb
|
|
93
97
|
lib/daytona_toolbox_api_client/models/mouse_drag_response.rb
|
|
94
98
|
lib/daytona_toolbox_api_client/models/mouse_move_request.rb
|
|
95
99
|
lib/daytona_toolbox_api_client/models/mouse_position_response.rb
|
|
96
100
|
lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb
|
|
101
|
+
lib/daytona_toolbox_api_client/models/mouse_up_request.rb
|
|
97
102
|
lib/daytona_toolbox_api_client/models/port_list.rb
|
|
98
103
|
lib/daytona_toolbox_api_client/models/position.rb
|
|
99
104
|
lib/daytona_toolbox_api_client/models/process_errors_response.rb
|
|
@@ -122,6 +127,7 @@ lib/daytona_toolbox_api_client/models/status.rb
|
|
|
122
127
|
lib/daytona_toolbox_api_client/models/stop_recording_request.rb
|
|
123
128
|
lib/daytona_toolbox_api_client/models/system_metrics.rb
|
|
124
129
|
lib/daytona_toolbox_api_client/models/update_env_request.rb
|
|
130
|
+
lib/daytona_toolbox_api_client/models/upload_files_response.rb
|
|
125
131
|
lib/daytona_toolbox_api_client/models/uploaded_file.rb
|
|
126
132
|
lib/daytona_toolbox_api_client/models/user_home_dir_response.rb
|
|
127
133
|
lib/daytona_toolbox_api_client/models/window_info.rb
|
|
@@ -1088,6 +1088,142 @@ module DaytonaToolboxApiClient
|
|
|
1088
1088
|
return data, status_code, headers
|
|
1089
1089
|
end
|
|
1090
1090
|
|
|
1091
|
+
# Press and hold a keyboard key
|
|
1092
|
+
# Press a key or modifier and hold it down until a matching key up call
|
|
1093
|
+
# @param request [KeyboardKeyDownRequest] Key down request
|
|
1094
|
+
# @param [Hash] opts the optional parameters
|
|
1095
|
+
# @return [Object]
|
|
1096
|
+
def key_down(request, opts = {})
|
|
1097
|
+
data, _status_code, _headers = key_down_with_http_info(request, opts)
|
|
1098
|
+
data
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
# Press and hold a keyboard key
|
|
1102
|
+
# Press a key or modifier and hold it down until a matching key up call
|
|
1103
|
+
# @param request [KeyboardKeyDownRequest] Key down request
|
|
1104
|
+
# @param [Hash] opts the optional parameters
|
|
1105
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1106
|
+
def key_down_with_http_info(request, opts = {})
|
|
1107
|
+
if @api_client.config.debugging
|
|
1108
|
+
@api_client.config.logger.debug 'Calling API: ComputerUseApi.key_down ...'
|
|
1109
|
+
end
|
|
1110
|
+
# verify the required parameter 'request' is set
|
|
1111
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1112
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.key_down"
|
|
1113
|
+
end
|
|
1114
|
+
# resource path
|
|
1115
|
+
local_var_path = '/computeruse/keyboard/down'
|
|
1116
|
+
|
|
1117
|
+
# query parameters
|
|
1118
|
+
query_params = opts[:query_params] || {}
|
|
1119
|
+
|
|
1120
|
+
# header parameters
|
|
1121
|
+
header_params = opts[:header_params] || {}
|
|
1122
|
+
# HTTP header 'Accept' (if needed)
|
|
1123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1124
|
+
# HTTP header 'Content-Type'
|
|
1125
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1126
|
+
if !content_type.nil?
|
|
1127
|
+
header_params['Content-Type'] = content_type
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
# form parameters
|
|
1131
|
+
form_params = opts[:form_params] || {}
|
|
1132
|
+
|
|
1133
|
+
# http body (model)
|
|
1134
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1135
|
+
|
|
1136
|
+
# return_type
|
|
1137
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1138
|
+
|
|
1139
|
+
# auth_names
|
|
1140
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1141
|
+
|
|
1142
|
+
new_options = opts.merge(
|
|
1143
|
+
:operation => :"ComputerUseApi.key_down",
|
|
1144
|
+
:header_params => header_params,
|
|
1145
|
+
:query_params => query_params,
|
|
1146
|
+
:form_params => form_params,
|
|
1147
|
+
:body => post_body,
|
|
1148
|
+
:auth_names => auth_names,
|
|
1149
|
+
:return_type => return_type
|
|
1150
|
+
)
|
|
1151
|
+
|
|
1152
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1153
|
+
if @api_client.config.debugging
|
|
1154
|
+
@api_client.config.logger.debug "API called: ComputerUseApi#key_down\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1155
|
+
end
|
|
1156
|
+
return data, status_code, headers
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
# Release a held keyboard key
|
|
1160
|
+
# Release a key or modifier that is currently held down
|
|
1161
|
+
# @param request [KeyboardKeyUpRequest] Key up request
|
|
1162
|
+
# @param [Hash] opts the optional parameters
|
|
1163
|
+
# @return [Object]
|
|
1164
|
+
def key_up(request, opts = {})
|
|
1165
|
+
data, _status_code, _headers = key_up_with_http_info(request, opts)
|
|
1166
|
+
data
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Release a held keyboard key
|
|
1170
|
+
# Release a key or modifier that is currently held down
|
|
1171
|
+
# @param request [KeyboardKeyUpRequest] Key up request
|
|
1172
|
+
# @param [Hash] opts the optional parameters
|
|
1173
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1174
|
+
def key_up_with_http_info(request, opts = {})
|
|
1175
|
+
if @api_client.config.debugging
|
|
1176
|
+
@api_client.config.logger.debug 'Calling API: ComputerUseApi.key_up ...'
|
|
1177
|
+
end
|
|
1178
|
+
# verify the required parameter 'request' is set
|
|
1179
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1180
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.key_up"
|
|
1181
|
+
end
|
|
1182
|
+
# resource path
|
|
1183
|
+
local_var_path = '/computeruse/keyboard/up'
|
|
1184
|
+
|
|
1185
|
+
# query parameters
|
|
1186
|
+
query_params = opts[:query_params] || {}
|
|
1187
|
+
|
|
1188
|
+
# header parameters
|
|
1189
|
+
header_params = opts[:header_params] || {}
|
|
1190
|
+
# HTTP header 'Accept' (if needed)
|
|
1191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1192
|
+
# HTTP header 'Content-Type'
|
|
1193
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1194
|
+
if !content_type.nil?
|
|
1195
|
+
header_params['Content-Type'] = content_type
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1198
|
+
# form parameters
|
|
1199
|
+
form_params = opts[:form_params] || {}
|
|
1200
|
+
|
|
1201
|
+
# http body (model)
|
|
1202
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1203
|
+
|
|
1204
|
+
# return_type
|
|
1205
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1206
|
+
|
|
1207
|
+
# auth_names
|
|
1208
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1209
|
+
|
|
1210
|
+
new_options = opts.merge(
|
|
1211
|
+
:operation => :"ComputerUseApi.key_up",
|
|
1212
|
+
:header_params => header_params,
|
|
1213
|
+
:query_params => query_params,
|
|
1214
|
+
:form_params => form_params,
|
|
1215
|
+
:body => post_body,
|
|
1216
|
+
:auth_names => auth_names,
|
|
1217
|
+
:return_type => return_type
|
|
1218
|
+
)
|
|
1219
|
+
|
|
1220
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1221
|
+
if @api_client.config.debugging
|
|
1222
|
+
@api_client.config.logger.debug "API called: ComputerUseApi#key_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1223
|
+
end
|
|
1224
|
+
return data, status_code, headers
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1091
1227
|
# List all recordings
|
|
1092
1228
|
# Get a list of all recordings (active and completed)
|
|
1093
1229
|
# @param [Hash] opts the optional parameters
|
|
@@ -1145,6 +1281,142 @@ module DaytonaToolboxApiClient
|
|
|
1145
1281
|
return data, status_code, headers
|
|
1146
1282
|
end
|
|
1147
1283
|
|
|
1284
|
+
# Press mouse button
|
|
1285
|
+
# Press and hold a mouse button, optionally moving to the specified coordinates first
|
|
1286
|
+
# @param request [MouseDownRequest] Mouse button press request
|
|
1287
|
+
# @param [Hash] opts the optional parameters
|
|
1288
|
+
# @return [MousePositionResponse]
|
|
1289
|
+
def mouse_down(request, opts = {})
|
|
1290
|
+
data, _status_code, _headers = mouse_down_with_http_info(request, opts)
|
|
1291
|
+
data
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
# Press mouse button
|
|
1295
|
+
# Press and hold a mouse button, optionally moving to the specified coordinates first
|
|
1296
|
+
# @param request [MouseDownRequest] Mouse button press request
|
|
1297
|
+
# @param [Hash] opts the optional parameters
|
|
1298
|
+
# @return [Array<(MousePositionResponse, Integer, Hash)>] MousePositionResponse data, response status code and response headers
|
|
1299
|
+
def mouse_down_with_http_info(request, opts = {})
|
|
1300
|
+
if @api_client.config.debugging
|
|
1301
|
+
@api_client.config.logger.debug 'Calling API: ComputerUseApi.mouse_down ...'
|
|
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.mouse_down"
|
|
1306
|
+
end
|
|
1307
|
+
# resource path
|
|
1308
|
+
local_var_path = '/computeruse/mouse/down'
|
|
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] || 'MousePositionResponse'
|
|
1331
|
+
|
|
1332
|
+
# auth_names
|
|
1333
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1334
|
+
|
|
1335
|
+
new_options = opts.merge(
|
|
1336
|
+
:operation => :"ComputerUseApi.mouse_down",
|
|
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#mouse_down\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1348
|
+
end
|
|
1349
|
+
return data, status_code, headers
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
# Release mouse button
|
|
1353
|
+
# Release a held mouse button, optionally moving to the specified coordinates first
|
|
1354
|
+
# @param request [MouseUpRequest] Mouse button release request
|
|
1355
|
+
# @param [Hash] opts the optional parameters
|
|
1356
|
+
# @return [MousePositionResponse]
|
|
1357
|
+
def mouse_up(request, opts = {})
|
|
1358
|
+
data, _status_code, _headers = mouse_up_with_http_info(request, opts)
|
|
1359
|
+
data
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
# Release mouse button
|
|
1363
|
+
# Release a held mouse button, optionally moving to the specified coordinates first
|
|
1364
|
+
# @param request [MouseUpRequest] Mouse button release request
|
|
1365
|
+
# @param [Hash] opts the optional parameters
|
|
1366
|
+
# @return [Array<(MousePositionResponse, Integer, Hash)>] MousePositionResponse data, response status code and response headers
|
|
1367
|
+
def mouse_up_with_http_info(request, opts = {})
|
|
1368
|
+
if @api_client.config.debugging
|
|
1369
|
+
@api_client.config.logger.debug 'Calling API: ComputerUseApi.mouse_up ...'
|
|
1370
|
+
end
|
|
1371
|
+
# verify the required parameter 'request' is set
|
|
1372
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1373
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ComputerUseApi.mouse_up"
|
|
1374
|
+
end
|
|
1375
|
+
# resource path
|
|
1376
|
+
local_var_path = '/computeruse/mouse/up'
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
1386
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1387
|
+
if !content_type.nil?
|
|
1388
|
+
header_params['Content-Type'] = content_type
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
# form parameters
|
|
1392
|
+
form_params = opts[:form_params] || {}
|
|
1393
|
+
|
|
1394
|
+
# http body (model)
|
|
1395
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1396
|
+
|
|
1397
|
+
# return_type
|
|
1398
|
+
return_type = opts[:debug_return_type] || 'MousePositionResponse'
|
|
1399
|
+
|
|
1400
|
+
# auth_names
|
|
1401
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1402
|
+
|
|
1403
|
+
new_options = opts.merge(
|
|
1404
|
+
:operation => :"ComputerUseApi.mouse_up",
|
|
1405
|
+
:header_params => header_params,
|
|
1406
|
+
:query_params => query_params,
|
|
1407
|
+
:form_params => form_params,
|
|
1408
|
+
:body => post_body,
|
|
1409
|
+
:auth_names => auth_names,
|
|
1410
|
+
:return_type => return_type
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1414
|
+
if @api_client.config.debugging
|
|
1415
|
+
@api_client.config.logger.debug "API called: ComputerUseApi#mouse_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1416
|
+
end
|
|
1417
|
+
return data, status_code, headers
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1148
1420
|
# Move mouse cursor
|
|
1149
1421
|
# Move the mouse cursor to the specified coordinates
|
|
1150
1422
|
# @param request [MouseMoveRequest] Mouse move request
|
|
@@ -845,16 +845,16 @@ module DaytonaToolboxApiClient
|
|
|
845
845
|
# Upload multiple files
|
|
846
846
|
# Upload multiple files with their destination paths
|
|
847
847
|
# @param [Hash] opts the optional parameters
|
|
848
|
-
# @return [
|
|
848
|
+
# @return [UploadFilesResponse]
|
|
849
849
|
def upload_files(opts = {})
|
|
850
|
-
upload_files_with_http_info(opts)
|
|
851
|
-
|
|
850
|
+
data, _status_code, _headers = upload_files_with_http_info(opts)
|
|
851
|
+
data
|
|
852
852
|
end
|
|
853
853
|
|
|
854
854
|
# Upload multiple files
|
|
855
855
|
# Upload multiple files with their destination paths
|
|
856
856
|
# @param [Hash] opts the optional parameters
|
|
857
|
-
# @return [Array<(
|
|
857
|
+
# @return [Array<(UploadFilesResponse, Integer, Hash)>] UploadFilesResponse data, response status code and response headers
|
|
858
858
|
def upload_files_with_http_info(opts = {})
|
|
859
859
|
if @api_client.config.debugging
|
|
860
860
|
@api_client.config.logger.debug 'Calling API: FileSystemApi.upload_files ...'
|
|
@@ -877,7 +877,7 @@ module DaytonaToolboxApiClient
|
|
|
877
877
|
post_body = opts[:debug_body]
|
|
878
878
|
|
|
879
879
|
# return_type
|
|
880
|
-
return_type = opts[:debug_return_type]
|
|
880
|
+
return_type = opts[:debug_return_type] || 'UploadFilesResponse'
|
|
881
881
|
|
|
882
882
|
# auth_names
|
|
883
883
|
auth_names = opts[:debug_auth_names] || []
|
|
@@ -1116,6 +1116,8 @@ module DaytonaToolboxApiClient
|
|
|
1116
1116
|
|
|
1117
1117
|
# header parameters
|
|
1118
1118
|
header_params = opts[:header_params] || {}
|
|
1119
|
+
# HTTP header 'Accept' (if needed)
|
|
1120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1119
1121
|
# HTTP header 'Content-Type'
|
|
1120
1122
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1121
1123
|
if !content_type.nil?
|
|
@@ -1248,8 +1250,6 @@ module DaytonaToolboxApiClient
|
|
|
1248
1250
|
|
|
1249
1251
|
# header parameters
|
|
1250
1252
|
header_params = opts[:header_params] || {}
|
|
1251
|
-
# HTTP header 'Accept' (if needed)
|
|
1252
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1253
1253
|
# HTTP header 'Content-Type'
|
|
1254
1254
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1255
1255
|
if !content_type.nil?
|
|
@@ -26,6 +26,8 @@ module DaytonaToolboxApiClient
|
|
|
26
26
|
CodeGitRemoteRejected = "GIT_REMOTE_REJECTED".freeze
|
|
27
27
|
CodeFileNotFound = "FILE_NOT_FOUND".freeze
|
|
28
28
|
CodeFileAccessDenied = "FILE_ACCESS_DENIED".freeze
|
|
29
|
+
CodeInvalidFilePath = "INVALID_FILE_PATH".freeze
|
|
30
|
+
CodeFileReadFailed = "FILE_READ_FAILED".freeze
|
|
29
31
|
CodeLspServerNotInitialized = "LSP_SERVER_NOT_INITIALIZED".freeze
|
|
30
32
|
CodeProcessExecutionTimeout = "PROCESS_EXECUTION_TIMEOUT".freeze
|
|
31
33
|
CodeProcessNotFound = "PROCESS_NOT_FOUND".freeze
|
|
@@ -47,7 +49,7 @@ module DaytonaToolboxApiClient
|
|
|
47
49
|
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
48
50
|
|
|
49
51
|
def self.all_vars
|
|
50
|
-
@all_vars ||= [CodeGitAuthFailed, CodeGitRepoNotFound, CodeGitBranchNotFound, CodeGitBranchExists, CodeGitPushRejected, CodeGitDirtyWorktree, CodeGitMergeConflict, CodeGitTransportFailed, CodeGitRemoteRejected, CodeFileNotFound, CodeFileAccessDenied, CodeLspServerNotInitialized, CodeProcessExecutionTimeout, CodeProcessNotFound, CodeSessionEnded, CodeCommandAlreadyCompleted, CodeA11yUnavailable, CodeRecordingStillActive, CodeRecordingFfmpegNotFound, CodeBadRequest, CodeInvalidRequestBody, CodeUnauthorized, CodeForbidden, CodeNotFound, CodeConflict, CodeRequestTimeout, CodeGone, CodeUnprocessableEntity, CodeInternalServerError, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
52
|
+
@all_vars ||= [CodeGitAuthFailed, CodeGitRepoNotFound, CodeGitBranchNotFound, CodeGitBranchExists, CodeGitPushRejected, CodeGitDirtyWorktree, CodeGitMergeConflict, CodeGitTransportFailed, CodeGitRemoteRejected, CodeFileNotFound, CodeFileAccessDenied, CodeInvalidFilePath, CodeFileReadFailed, CodeLspServerNotInitialized, CodeProcessExecutionTimeout, CodeProcessNotFound, CodeSessionEnded, CodeCommandAlreadyCompleted, CodeA11yUnavailable, CodeRecordingStillActive, CodeRecordingFfmpegNotFound, CodeBadRequest, CodeInvalidRequestBody, CodeUnauthorized, CodeForbidden, CodeNotFound, CodeConflict, CodeRequestTimeout, CodeGone, CodeUnprocessableEntity, CodeInternalServerError, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
# Builds the enum from string
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona Toolbox API
|
|
3
|
+
|
|
4
|
+
#Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona 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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DaytonaToolboxApiClient
|
|
17
|
+
class FsFileResult < ApiModelBase
|
|
18
|
+
attr_accessor :bytes
|
|
19
|
+
|
|
20
|
+
attr_accessor :path
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'bytes' => :'bytes',
|
|
26
|
+
:'path' => :'path'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'bytes' => :'Integer',
|
|
44
|
+
:'path' => :'String'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::FsFileResult` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::FsFileResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'bytes')
|
|
71
|
+
self.bytes = attributes[:'bytes']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'path')
|
|
75
|
+
self.path = attributes[:'path']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Checks equality by comparing each attribute.
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def ==(o)
|
|
97
|
+
return true if self.equal?(o)
|
|
98
|
+
self.class == o.class &&
|
|
99
|
+
bytes == o.bytes &&
|
|
100
|
+
path == o.path
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @see the `==` method
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def eql?(o)
|
|
106
|
+
self == o
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Calculates hash code according to all attributes.
|
|
110
|
+
# @return [Integer] Hash code
|
|
111
|
+
def hash
|
|
112
|
+
[bytes, path].hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Builds the object from hash
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
# @return [Object] Returns the model itself
|
|
118
|
+
def self.build_from_hash(attributes)
|
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
121
|
+
transformed_hash = {}
|
|
122
|
+
openapi_types.each_pair do |key, type|
|
|
123
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
124
|
+
transformed_hash["#{key}"] = nil
|
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
126
|
+
# check to ensure the input is an array given that the attribute
|
|
127
|
+
# is documented as an array but the input is not
|
|
128
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
129
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
130
|
+
end
|
|
131
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
new(transformed_hash)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Returns the object in the form of hash
|
|
139
|
+
# @return [Hash] Returns the object in the form of hash
|
|
140
|
+
def to_hash
|
|
141
|
+
hash = {}
|
|
142
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
143
|
+
value = self.send(attr)
|
|
144
|
+
if value.nil?
|
|
145
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
146
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
hash[param] = _to_hash(value)
|
|
150
|
+
end
|
|
151
|
+
hash
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|
|
@@ -65,8 +65,6 @@ module DaytonaToolboxApiClient
|
|
|
65
65
|
|
|
66
66
|
if attributes.key?(:'token')
|
|
67
67
|
self.token = attributes[:'token']
|
|
68
|
-
else
|
|
69
|
-
self.token = nil
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
70
|
|
|
@@ -75,10 +73,6 @@ module DaytonaToolboxApiClient
|
|
|
75
73
|
def list_invalid_properties
|
|
76
74
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
75
|
invalid_properties = Array.new
|
|
78
|
-
if @token.nil?
|
|
79
|
-
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
|
80
|
-
end
|
|
81
|
-
|
|
82
76
|
invalid_properties
|
|
83
77
|
end
|
|
84
78
|
|
|
@@ -86,20 +80,9 @@ module DaytonaToolboxApiClient
|
|
|
86
80
|
# @return true if the model is valid
|
|
87
81
|
def valid?
|
|
88
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @token.nil?
|
|
90
83
|
true
|
|
91
84
|
end
|
|
92
85
|
|
|
93
|
-
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object] token Value to be assigned
|
|
95
|
-
def token=(token)
|
|
96
|
-
if token.nil?
|
|
97
|
-
fail ArgumentError, 'token cannot be nil'
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
@token = token
|
|
101
|
-
end
|
|
102
|
-
|
|
103
86
|
# Checks equality by comparing each attribute.
|
|
104
87
|
# @param [Object] Object to be compared
|
|
105
88
|
def ==(o)
|