@daytonaio/api-client 0.21.8 → 0.22.0-alpha.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 (226) hide show
  1. package/package.json +5 -2
  2. package/src/api/runners-api.d.ts +0 -34
  3. package/src/api/runners-api.js +0 -73
  4. package/src/api/runners-api.js.map +1 -1
  5. package/src/api/sandbox-api.d.ts +7 -11
  6. package/src/api/sandbox-api.js +7 -14
  7. package/src/api/sandbox-api.js.map +1 -1
  8. package/src/api/snapshots-api.d.ts +0 -37
  9. package/src/api/snapshots-api.js +0 -77
  10. package/src/api/snapshots-api.js.map +1 -1
  11. package/src/api/toolbox-api.d.ts +953 -40
  12. package/src/api/toolbox-api.js +2260 -413
  13. package/src/api/toolbox-api.js.map +1 -1
  14. package/src/api.js +12 -11
  15. package/src/api.js.map +1 -1
  16. package/src/index.js +12 -11
  17. package/src/index.js.map +1 -1
  18. package/src/models/account-provider.js +12 -0
  19. package/src/models/account-provider.js.map +1 -1
  20. package/src/models/api-key-list.js +12 -0
  21. package/src/models/api-key-list.js.map +1 -1
  22. package/src/models/api-key-response.js +12 -0
  23. package/src/models/api-key-response.js.map +1 -1
  24. package/src/models/build-info.js +12 -0
  25. package/src/models/build-info.js.map +1 -1
  26. package/src/models/command.js +12 -0
  27. package/src/models/command.js.map +1 -1
  28. package/src/models/completion-context.js +12 -0
  29. package/src/models/completion-context.js.map +1 -1
  30. package/src/models/completion-item.js +12 -0
  31. package/src/models/completion-item.js.map +1 -1
  32. package/src/models/compressed-screenshot-response.d.ts +66 -0
  33. package/src/models/{sandbox-desired-state.js → compressed-screenshot-response.js} +3 -15
  34. package/src/models/compressed-screenshot-response.js.map +1 -0
  35. package/src/models/create-api-key.js +12 -0
  36. package/src/models/create-api-key.js.map +1 -1
  37. package/src/models/create-build-info.js +12 -0
  38. package/src/models/create-build-info.js.map +1 -1
  39. package/src/models/create-docker-registry.js +12 -0
  40. package/src/models/create-docker-registry.js.map +1 -1
  41. package/src/models/create-linked-account.js +12 -0
  42. package/src/models/create-linked-account.js.map +1 -1
  43. package/src/models/create-organization-invitation.js +12 -0
  44. package/src/models/create-organization-invitation.js.map +1 -1
  45. package/src/models/create-organization-quota.js +12 -0
  46. package/src/models/create-organization-quota.js.map +1 -1
  47. package/src/models/create-organization-role.js +12 -0
  48. package/src/models/create-organization-role.js.map +1 -1
  49. package/src/models/create-organization.js +12 -0
  50. package/src/models/create-organization.js.map +1 -1
  51. package/src/models/create-runner.js +12 -0
  52. package/src/models/create-runner.js.map +1 -1
  53. package/src/models/create-session-request.js +12 -0
  54. package/src/models/create-session-request.js.map +1 -1
  55. package/src/models/create-volume.js +12 -0
  56. package/src/models/create-volume.js.map +1 -1
  57. package/src/models/display-info-response.d.ts +36 -0
  58. package/src/models/display-info-response.js +16 -0
  59. package/src/models/display-info-response.js.map +1 -0
  60. package/src/models/docker-registry.js +12 -0
  61. package/src/models/docker-registry.js.map +1 -1
  62. package/src/models/execute-request.js +12 -0
  63. package/src/models/execute-request.js.map +1 -1
  64. package/src/models/execute-response.js +12 -0
  65. package/src/models/execute-response.js.map +1 -1
  66. package/src/models/file-info.js +12 -0
  67. package/src/models/file-info.js.map +1 -1
  68. package/src/models/file-status.js +12 -0
  69. package/src/models/file-status.js.map +1 -1
  70. package/src/models/git-add-request.js +12 -0
  71. package/src/models/git-add-request.js.map +1 -1
  72. package/src/models/git-branch-request.js +12 -0
  73. package/src/models/git-branch-request.js.map +1 -1
  74. package/src/models/git-checkout-request.js +12 -0
  75. package/src/models/git-checkout-request.js.map +1 -1
  76. package/src/models/git-clone-request.js +12 -0
  77. package/src/models/git-clone-request.js.map +1 -1
  78. package/src/models/git-commit-info.js +12 -0
  79. package/src/models/git-commit-info.js.map +1 -1
  80. package/src/models/git-commit-request.js +12 -0
  81. package/src/models/git-commit-request.js.map +1 -1
  82. package/src/models/git-commit-response.js +12 -0
  83. package/src/models/git-commit-response.js.map +1 -1
  84. package/src/models/git-delete-branch-request.js +12 -0
  85. package/src/models/git-delete-branch-request.js.map +1 -1
  86. package/src/models/git-repo-request.js +12 -0
  87. package/src/models/git-repo-request.js.map +1 -1
  88. package/src/models/index.d.ts +20 -2
  89. package/src/models/index.js +20 -2
  90. package/src/models/index.js.map +1 -1
  91. package/src/models/keyboard-hotkey-request.d.ts +24 -0
  92. package/src/models/keyboard-hotkey-request.js +16 -0
  93. package/src/models/keyboard-hotkey-request.js.map +1 -0
  94. package/src/models/keyboard-hotkey-response.d.ts +30 -0
  95. package/src/models/keyboard-hotkey-response.js +16 -0
  96. package/src/models/keyboard-hotkey-response.js.map +1 -0
  97. package/src/models/keyboard-press-request.d.ts +30 -0
  98. package/src/models/keyboard-press-request.js +16 -0
  99. package/src/models/keyboard-press-request.js.map +1 -0
  100. package/src/models/{runner-snapshot-dto.d.ts → keyboard-press-response.d.ts} +13 -13
  101. package/src/models/keyboard-press-response.js +16 -0
  102. package/src/models/keyboard-press-response.js.map +1 -0
  103. package/src/models/keyboard-type-request.d.ts +30 -0
  104. package/src/models/keyboard-type-request.js +16 -0
  105. package/src/models/keyboard-type-request.js.map +1 -0
  106. package/src/models/keyboard-type-response.d.ts +30 -0
  107. package/src/models/keyboard-type-response.js +16 -0
  108. package/src/models/keyboard-type-response.js.map +1 -0
  109. package/src/models/list-branch-response.js +12 -0
  110. package/src/models/list-branch-response.js.map +1 -1
  111. package/src/models/lsp-document-request.js +12 -0
  112. package/src/models/lsp-document-request.js.map +1 -1
  113. package/src/models/lsp-server-request.js +12 -0
  114. package/src/models/lsp-server-request.js.map +1 -1
  115. package/src/models/match.js +12 -0
  116. package/src/models/match.js.map +1 -1
  117. package/src/models/mouse-click-request.d.ts +42 -0
  118. package/src/models/mouse-click-request.js +16 -0
  119. package/src/models/mouse-click-request.js.map +1 -0
  120. package/src/models/mouse-click-response.d.ts +66 -0
  121. package/src/models/mouse-click-response.js +16 -0
  122. package/src/models/mouse-click-response.js.map +1 -0
  123. package/src/models/mouse-drag-request.d.ts +48 -0
  124. package/src/models/mouse-drag-request.js +16 -0
  125. package/src/models/mouse-drag-request.js.map +1 -0
  126. package/src/models/mouse-drag-response.d.ts +54 -0
  127. package/src/models/mouse-drag-response.js +16 -0
  128. package/src/models/mouse-drag-response.js.map +1 -0
  129. package/src/models/mouse-move-request.d.ts +30 -0
  130. package/src/models/mouse-move-request.js +16 -0
  131. package/src/models/mouse-move-request.js.map +1 -0
  132. package/src/models/mouse-move-response.d.ts +48 -0
  133. package/src/models/mouse-move-response.js +16 -0
  134. package/src/models/mouse-move-response.js.map +1 -0
  135. package/src/models/mouse-position.d.ts +30 -0
  136. package/src/models/mouse-position.js +16 -0
  137. package/src/models/mouse-position.js.map +1 -0
  138. package/src/models/mouse-scroll-request.d.ts +42 -0
  139. package/src/models/mouse-scroll-request.js +16 -0
  140. package/src/models/mouse-scroll-request.js.map +1 -0
  141. package/src/models/mouse-scroll-response.d.ts +54 -0
  142. package/src/models/mouse-scroll-response.js +16 -0
  143. package/src/models/mouse-scroll-response.js.map +1 -0
  144. package/src/models/organization-role.js +12 -0
  145. package/src/models/organization-role.js.map +1 -1
  146. package/src/models/organization-suspension.js +12 -0
  147. package/src/models/organization-suspension.js.map +1 -1
  148. package/src/models/organization.js +12 -0
  149. package/src/models/organization.js.map +1 -1
  150. package/src/models/port-preview-url.d.ts +0 -6
  151. package/src/models/port-preview-url.js +12 -0
  152. package/src/models/port-preview-url.js.map +1 -1
  153. package/src/models/position.js +12 -0
  154. package/src/models/position.js.map +1 -1
  155. package/src/models/project-dir-response.js +12 -0
  156. package/src/models/project-dir-response.js.map +1 -1
  157. package/src/models/region-screenshot-response.d.ts +36 -0
  158. package/src/models/region-screenshot-response.js +16 -0
  159. package/src/models/region-screenshot-response.js.map +1 -0
  160. package/src/models/registry-push-access-dto.js +12 -0
  161. package/src/models/registry-push-access-dto.js.map +1 -1
  162. package/src/models/replace-request.js +12 -0
  163. package/src/models/replace-request.js.map +1 -1
  164. package/src/models/replace-result.js +12 -0
  165. package/src/models/replace-result.js.map +1 -1
  166. package/src/models/runner-region.js +3 -2
  167. package/src/models/runner-region.js.map +1 -1
  168. package/src/models/runner-state.js +3 -2
  169. package/src/models/runner-state.js.map +1 -1
  170. package/src/models/sandbox-class.js +3 -2
  171. package/src/models/sandbox-class.js.map +1 -1
  172. package/src/models/sandbox-info.js +12 -0
  173. package/src/models/sandbox-info.js.map +1 -1
  174. package/src/models/sandbox-labels.js +12 -0
  175. package/src/models/sandbox-labels.js.map +1 -1
  176. package/src/models/sandbox-state.js +3 -2
  177. package/src/models/sandbox-state.js.map +1 -1
  178. package/src/models/sandbox-volume.js +12 -0
  179. package/src/models/sandbox-volume.js.map +1 -1
  180. package/src/models/sandbox.d.ts +0 -7
  181. package/src/models/sandbox.js.map +1 -1
  182. package/src/models/screenshot-response.d.ts +42 -0
  183. package/src/models/screenshot-response.js +16 -0
  184. package/src/models/screenshot-response.js.map +1 -0
  185. package/src/models/search-files-response.js +12 -0
  186. package/src/models/search-files-response.js.map +1 -1
  187. package/src/models/session-execute-request.js +12 -0
  188. package/src/models/session-execute-request.js.map +1 -1
  189. package/src/models/session-execute-response.js +12 -0
  190. package/src/models/session-execute-response.js.map +1 -1
  191. package/src/models/set-snapshot-general-status-dto.js +12 -0
  192. package/src/models/set-snapshot-general-status-dto.js.map +1 -1
  193. package/src/models/snapshot-state.d.ts +0 -1
  194. package/src/models/snapshot-state.js +3 -3
  195. package/src/models/snapshot-state.js.map +1 -1
  196. package/src/models/storage-access-dto.js +12 -0
  197. package/src/models/storage-access-dto.js.map +1 -1
  198. package/src/models/toggle-state.js +12 -0
  199. package/src/models/toggle-state.js.map +1 -1
  200. package/src/models/update-assigned-organization-roles.js +12 -0
  201. package/src/models/update-assigned-organization-roles.js.map +1 -1
  202. package/src/models/update-docker-registry.js +12 -0
  203. package/src/models/update-docker-registry.js.map +1 -1
  204. package/src/models/update-organization-invitation.js +12 -0
  205. package/src/models/update-organization-invitation.js.map +1 -1
  206. package/src/models/update-organization-member-role.js +12 -0
  207. package/src/models/update-organization-member-role.js.map +1 -1
  208. package/src/models/update-organization-quota.js +12 -0
  209. package/src/models/update-organization-quota.js.map +1 -1
  210. package/src/models/update-organization-role.js +12 -0
  211. package/src/models/update-organization-role.js.map +1 -1
  212. package/src/models/usage-overview.js +12 -0
  213. package/src/models/usage-overview.js.map +1 -1
  214. package/src/models/user-public-key.js +12 -0
  215. package/src/models/user-public-key.js.map +1 -1
  216. package/src/models/volume-state.js +3 -2
  217. package/src/models/volume-state.js.map +1 -1
  218. package/src/models/windows-response.d.ts +30 -0
  219. package/src/models/windows-response.js +16 -0
  220. package/src/models/windows-response.js.map +1 -0
  221. package/src/models/workspace.d.ts +0 -7
  222. package/src/models/workspace.js.map +1 -1
  223. package/src/models/runner-snapshot-dto.js +0 -4
  224. package/src/models/runner-snapshot-dto.js.map +0 -1
  225. package/src/models/sandbox-desired-state.d.ts +0 -24
  226. package/src/models/sandbox-desired-state.js.map +0 -1
@@ -26,6 +26,47 @@ const base_1 = require("../base");
26
26
  */
27
27
  const ToolboxApiAxiosParamCreator = function (configuration) {
28
28
  return {
29
+ /**
30
+ * Click mouse at specified coordinates
31
+ * @summary Click mouse
32
+ * @param {string} sandboxId
33
+ * @param {MouseClickRequest} mouseClickRequest
34
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ clickMouse: async (sandboxId, mouseClickRequest, xDaytonaOrganizationID, options = {}) => {
39
+ // verify required parameter 'sandboxId' is not null or undefined
40
+ (0, common_1.assertParamExists)('clickMouse', 'sandboxId', sandboxId);
41
+ // verify required parameter 'mouseClickRequest' is not null or undefined
42
+ (0, common_1.assertParamExists)('clickMouse', 'mouseClickRequest', mouseClickRequest);
43
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/mouse/click`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
51
+ const localVarHeaderParameter = {};
52
+ const localVarQueryParameter = {};
53
+ // authentication bearer required
54
+ // http bearer authentication required
55
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
56
+ // authentication oauth2 required
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ if (xDaytonaOrganizationID != null) {
59
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
60
+ }
61
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
64
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mouseClickRequest, localVarRequestOptions, configuration);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ },
29
70
  /**
30
71
  * Create folder inside sandbox
31
72
  * @summary Create folder
@@ -240,6 +281,47 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
240
281
  options: localVarRequestOptions,
241
282
  };
242
283
  },
284
+ /**
285
+ * Drag mouse from start to end coordinates
286
+ * @summary Drag mouse
287
+ * @param {string} sandboxId
288
+ * @param {MouseDragRequest} mouseDragRequest
289
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ dragMouse: async (sandboxId, mouseDragRequest, xDaytonaOrganizationID, options = {}) => {
294
+ // verify required parameter 'sandboxId' is not null or undefined
295
+ (0, common_1.assertParamExists)('dragMouse', 'sandboxId', sandboxId);
296
+ // verify required parameter 'mouseDragRequest' is not null or undefined
297
+ (0, common_1.assertParamExists)('dragMouse', 'mouseDragRequest', mouseDragRequest);
298
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/mouse/drag`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
300
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
301
+ let baseOptions;
302
+ if (configuration) {
303
+ baseOptions = configuration.baseOptions;
304
+ }
305
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
306
+ const localVarHeaderParameter = {};
307
+ const localVarQueryParameter = {};
308
+ // authentication bearer required
309
+ // http bearer authentication required
310
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
311
+ // authentication oauth2 required
312
+ localVarHeaderParameter['Content-Type'] = 'application/json';
313
+ if (xDaytonaOrganizationID != null) {
314
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
315
+ }
316
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
318
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
319
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mouseDragRequest, localVarRequestOptions, configuration);
320
+ return {
321
+ url: (0, common_1.toPathString)(localVarUrlObj),
322
+ options: localVarRequestOptions,
323
+ };
324
+ },
243
325
  /**
244
326
  * Execute command synchronously inside sandbox
245
327
  * @summary Execute command
@@ -376,20 +458,17 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
376
458
  };
377
459
  },
378
460
  /**
379
- * Get file info inside sandbox
380
- * @summary Get file info
461
+ * Get status of all VNC desktop processes
462
+ * @summary Get computer use status
381
463
  * @param {string} sandboxId
382
- * @param {string} path
383
464
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
384
465
  * @param {*} [options] Override http request option.
385
466
  * @throws {RequiredError}
386
467
  */
387
- getFileInfo: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
468
+ getComputerUseStatus: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
388
469
  // verify required parameter 'sandboxId' is not null or undefined
389
- (0, common_1.assertParamExists)('getFileInfo', 'sandboxId', sandboxId);
390
- // verify required parameter 'path' is not null or undefined
391
- (0, common_1.assertParamExists)('getFileInfo', 'path', path);
392
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files/info`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
470
+ (0, common_1.assertParamExists)('getComputerUseStatus', 'sandboxId', sandboxId);
471
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/status`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
393
472
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
394
473
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
395
474
  let baseOptions;
@@ -403,9 +482,6 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
403
482
  // http bearer authentication required
404
483
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
405
484
  // authentication oauth2 required
406
- if (path !== undefined) {
407
- localVarQueryParameter['path'] = path;
408
- }
409
485
  if (xDaytonaOrganizationID != null) {
410
486
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
411
487
  }
@@ -418,17 +494,17 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
418
494
  };
419
495
  },
420
496
  /**
421
- *
422
- * @summary Get sandbox project dir
497
+ * Get information about displays
498
+ * @summary Get display info
423
499
  * @param {string} sandboxId
424
500
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
425
501
  * @param {*} [options] Override http request option.
426
502
  * @throws {RequiredError}
427
503
  */
428
- getProjectDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
504
+ getDisplayInfo: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
429
505
  // verify required parameter 'sandboxId' is not null or undefined
430
- (0, common_1.assertParamExists)('getProjectDir', 'sandboxId', sandboxId);
431
- const localVarPath = `/toolbox/{sandboxId}/toolbox/project-dir`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
506
+ (0, common_1.assertParamExists)('getDisplayInfo', 'sandboxId', sandboxId);
507
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/display/info`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
432
508
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
509
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
434
510
  let baseOptions;
@@ -454,22 +530,20 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
454
530
  };
455
531
  },
456
532
  /**
457
- * Get session by ID
458
- * @summary Get session
533
+ * Get file info inside sandbox
534
+ * @summary Get file info
459
535
  * @param {string} sandboxId
460
- * @param {string} sessionId
536
+ * @param {string} path
461
537
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
462
538
  * @param {*} [options] Override http request option.
463
539
  * @throws {RequiredError}
464
540
  */
465
- getSession: async (sandboxId, sessionId, xDaytonaOrganizationID, options = {}) => {
541
+ getFileInfo: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
466
542
  // verify required parameter 'sandboxId' is not null or undefined
467
- (0, common_1.assertParamExists)('getSession', 'sandboxId', sandboxId);
468
- // verify required parameter 'sessionId' is not null or undefined
469
- (0, common_1.assertParamExists)('getSession', 'sessionId', sessionId);
470
- const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}`
471
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
472
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)));
543
+ (0, common_1.assertParamExists)('getFileInfo', 'sandboxId', sandboxId);
544
+ // verify required parameter 'path' is not null or undefined
545
+ (0, common_1.assertParamExists)('getFileInfo', 'path', path);
546
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/info`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
473
547
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
474
548
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
475
549
  let baseOptions;
@@ -483,6 +557,9 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
483
557
  // http bearer authentication required
484
558
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
485
559
  // authentication oauth2 required
560
+ if (path !== undefined) {
561
+ localVarQueryParameter['path'] = path;
562
+ }
486
563
  if (xDaytonaOrganizationID != null) {
487
564
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
488
565
  }
@@ -495,26 +572,17 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
495
572
  };
496
573
  },
497
574
  /**
498
- * Get session command by ID
499
- * @summary Get session command
575
+ * Get current mouse cursor position
576
+ * @summary Get mouse position
500
577
  * @param {string} sandboxId
501
- * @param {string} sessionId
502
- * @param {string} commandId
503
578
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
504
579
  * @param {*} [options] Override http request option.
505
580
  * @throws {RequiredError}
506
581
  */
507
- getSessionCommand: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, options = {}) => {
582
+ getMousePosition: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
508
583
  // verify required parameter 'sandboxId' is not null or undefined
509
- (0, common_1.assertParamExists)('getSessionCommand', 'sandboxId', sandboxId);
510
- // verify required parameter 'sessionId' is not null or undefined
511
- (0, common_1.assertParamExists)('getSessionCommand', 'sessionId', sessionId);
512
- // verify required parameter 'commandId' is not null or undefined
513
- (0, common_1.assertParamExists)('getSessionCommand', 'commandId', commandId);
514
- const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}`
515
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
516
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
517
- .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
584
+ (0, common_1.assertParamExists)('getMousePosition', 'sandboxId', sandboxId);
585
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/mouse/position`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
518
586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
587
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
520
588
  let baseOptions;
@@ -540,27 +608,22 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
540
608
  };
541
609
  },
542
610
  /**
543
- * Get logs for a specific command in a session
544
- * @summary Get command logs
611
+ * Get error logs for a specific VNC process
612
+ * @summary Get process errors
613
+ * @param {string} processName
545
614
  * @param {string} sandboxId
546
- * @param {string} sessionId
547
- * @param {string} commandId
548
615
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
549
- * @param {boolean} [follow]
550
616
  * @param {*} [options] Override http request option.
551
617
  * @throws {RequiredError}
552
618
  */
553
- getSessionCommandLogs: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options = {}) => {
619
+ getProcessErrors: async (processName, sandboxId, xDaytonaOrganizationID, options = {}) => {
620
+ // verify required parameter 'processName' is not null or undefined
621
+ (0, common_1.assertParamExists)('getProcessErrors', 'processName', processName);
554
622
  // verify required parameter 'sandboxId' is not null or undefined
555
- (0, common_1.assertParamExists)('getSessionCommandLogs', 'sandboxId', sandboxId);
556
- // verify required parameter 'sessionId' is not null or undefined
557
- (0, common_1.assertParamExists)('getSessionCommandLogs', 'sessionId', sessionId);
558
- // verify required parameter 'commandId' is not null or undefined
559
- (0, common_1.assertParamExists)('getSessionCommandLogs', 'commandId', commandId);
560
- const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
561
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
562
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
563
- .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
623
+ (0, common_1.assertParamExists)('getProcessErrors', 'sandboxId', sandboxId);
624
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/errors`
625
+ .replace(`{${'processName'}}`, encodeURIComponent(String(processName)))
626
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
564
627
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
565
628
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
566
629
  let baseOptions;
@@ -574,9 +637,6 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
574
637
  // http bearer authentication required
575
638
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
576
639
  // authentication oauth2 required
577
- if (follow !== undefined) {
578
- localVarQueryParameter['follow'] = follow;
579
- }
580
640
  if (xDaytonaOrganizationID != null) {
581
641
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
582
642
  }
@@ -589,266 +649,968 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
589
649
  };
590
650
  },
591
651
  /**
592
- * Add files to git commit
593
- * @summary Add files
652
+ * Get logs for a specific VNC process
653
+ * @summary Get process logs
654
+ * @param {string} processName
594
655
  * @param {string} sandboxId
595
- * @param {GitAddRequest} gitAddRequest
596
656
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
597
657
  * @param {*} [options] Override http request option.
598
658
  * @throws {RequiredError}
599
659
  */
600
- gitAddFiles: async (sandboxId, gitAddRequest, xDaytonaOrganizationID, options = {}) => {
660
+ getProcessLogs: async (processName, sandboxId, xDaytonaOrganizationID, options = {}) => {
661
+ // verify required parameter 'processName' is not null or undefined
662
+ (0, common_1.assertParamExists)('getProcessLogs', 'processName', processName);
601
663
  // verify required parameter 'sandboxId' is not null or undefined
602
- (0, common_1.assertParamExists)('gitAddFiles', 'sandboxId', sandboxId);
603
- // verify required parameter 'gitAddRequest' is not null or undefined
604
- (0, common_1.assertParamExists)('gitAddFiles', 'gitAddRequest', gitAddRequest);
605
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/add`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
664
+ (0, common_1.assertParamExists)('getProcessLogs', 'sandboxId', sandboxId);
665
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/logs`
666
+ .replace(`{${'processName'}}`, encodeURIComponent(String(processName)))
667
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
606
668
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
607
669
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
608
670
  let baseOptions;
609
671
  if (configuration) {
610
672
  baseOptions = configuration.baseOptions;
611
673
  }
612
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
674
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
613
675
  const localVarHeaderParameter = {};
614
676
  const localVarQueryParameter = {};
615
677
  // authentication bearer required
616
678
  // http bearer authentication required
617
679
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
618
680
  // authentication oauth2 required
619
- localVarHeaderParameter['Content-Type'] = 'application/json';
620
681
  if (xDaytonaOrganizationID != null) {
621
682
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
622
683
  }
623
684
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
624
685
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
625
686
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
626
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitAddRequest, localVarRequestOptions, configuration);
627
687
  return {
628
688
  url: (0, common_1.toPathString)(localVarUrlObj),
629
689
  options: localVarRequestOptions,
630
690
  };
631
691
  },
632
692
  /**
633
- * Checkout branch or commit in git repository
634
- * @summary Checkout branch
693
+ * Get status of a specific VNC process
694
+ * @summary Get process status
695
+ * @param {string} processName
635
696
  * @param {string} sandboxId
636
- * @param {GitCheckoutRequest} gitCheckoutRequest
637
697
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
638
698
  * @param {*} [options] Override http request option.
639
699
  * @throws {RequiredError}
640
700
  */
641
- gitCheckoutBranch: async (sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options = {}) => {
701
+ getProcessStatus: async (processName, sandboxId, xDaytonaOrganizationID, options = {}) => {
702
+ // verify required parameter 'processName' is not null or undefined
703
+ (0, common_1.assertParamExists)('getProcessStatus', 'processName', processName);
642
704
  // verify required parameter 'sandboxId' is not null or undefined
643
- (0, common_1.assertParamExists)('gitCheckoutBranch', 'sandboxId', sandboxId);
644
- // verify required parameter 'gitCheckoutRequest' is not null or undefined
645
- (0, common_1.assertParamExists)('gitCheckoutBranch', 'gitCheckoutRequest', gitCheckoutRequest);
646
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/checkout`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
705
+ (0, common_1.assertParamExists)('getProcessStatus', 'sandboxId', sandboxId);
706
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/status`
707
+ .replace(`{${'processName'}}`, encodeURIComponent(String(processName)))
708
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
647
709
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
648
710
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
649
711
  let baseOptions;
650
712
  if (configuration) {
651
713
  baseOptions = configuration.baseOptions;
652
714
  }
653
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
715
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
654
716
  const localVarHeaderParameter = {};
655
717
  const localVarQueryParameter = {};
656
718
  // authentication bearer required
657
719
  // http bearer authentication required
658
720
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
659
721
  // authentication oauth2 required
660
- localVarHeaderParameter['Content-Type'] = 'application/json';
661
722
  if (xDaytonaOrganizationID != null) {
662
723
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
663
724
  }
664
725
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
665
726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
666
727
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
667
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCheckoutRequest, localVarRequestOptions, configuration);
668
728
  return {
669
729
  url: (0, common_1.toPathString)(localVarUrlObj),
670
730
  options: localVarRequestOptions,
671
731
  };
672
732
  },
673
733
  /**
674
- * Clone git repository
675
- * @summary Clone repository
734
+ *
735
+ * @summary Get sandbox project dir
676
736
  * @param {string} sandboxId
677
- * @param {GitCloneRequest} gitCloneRequest
678
737
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
679
738
  * @param {*} [options] Override http request option.
680
739
  * @throws {RequiredError}
681
740
  */
682
- gitCloneRepository: async (sandboxId, gitCloneRequest, xDaytonaOrganizationID, options = {}) => {
741
+ getProjectDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
683
742
  // verify required parameter 'sandboxId' is not null or undefined
684
- (0, common_1.assertParamExists)('gitCloneRepository', 'sandboxId', sandboxId);
685
- // verify required parameter 'gitCloneRequest' is not null or undefined
686
- (0, common_1.assertParamExists)('gitCloneRepository', 'gitCloneRequest', gitCloneRequest);
687
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/clone`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
743
+ (0, common_1.assertParamExists)('getProjectDir', 'sandboxId', sandboxId);
744
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/project-dir`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
688
745
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
689
746
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
690
747
  let baseOptions;
691
748
  if (configuration) {
692
749
  baseOptions = configuration.baseOptions;
693
750
  }
694
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
751
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
695
752
  const localVarHeaderParameter = {};
696
753
  const localVarQueryParameter = {};
697
754
  // authentication bearer required
698
755
  // http bearer authentication required
699
756
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
700
757
  // authentication oauth2 required
701
- localVarHeaderParameter['Content-Type'] = 'application/json';
702
758
  if (xDaytonaOrganizationID != null) {
703
759
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
704
760
  }
705
761
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
706
762
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
707
763
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
708
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCloneRequest, localVarRequestOptions, configuration);
709
764
  return {
710
765
  url: (0, common_1.toPathString)(localVarUrlObj),
711
766
  options: localVarRequestOptions,
712
767
  };
713
768
  },
714
769
  /**
715
- * Commit changes to git repository
716
- * @summary Commit changes
770
+ * Get session by ID
771
+ * @summary Get session
717
772
  * @param {string} sandboxId
718
- * @param {GitCommitRequest} gitCommitRequest
773
+ * @param {string} sessionId
719
774
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
720
775
  * @param {*} [options] Override http request option.
721
776
  * @throws {RequiredError}
722
777
  */
723
- gitCommitChanges: async (sandboxId, gitCommitRequest, xDaytonaOrganizationID, options = {}) => {
778
+ getSession: async (sandboxId, sessionId, xDaytonaOrganizationID, options = {}) => {
724
779
  // verify required parameter 'sandboxId' is not null or undefined
725
- (0, common_1.assertParamExists)('gitCommitChanges', 'sandboxId', sandboxId);
726
- // verify required parameter 'gitCommitRequest' is not null or undefined
727
- (0, common_1.assertParamExists)('gitCommitChanges', 'gitCommitRequest', gitCommitRequest);
728
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/commit`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
780
+ (0, common_1.assertParamExists)('getSession', 'sandboxId', sandboxId);
781
+ // verify required parameter 'sessionId' is not null or undefined
782
+ (0, common_1.assertParamExists)('getSession', 'sessionId', sessionId);
783
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}`
784
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
785
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)));
729
786
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
787
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
731
788
  let baseOptions;
732
789
  if (configuration) {
733
790
  baseOptions = configuration.baseOptions;
734
791
  }
735
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
792
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
736
793
  const localVarHeaderParameter = {};
737
794
  const localVarQueryParameter = {};
738
795
  // authentication bearer required
739
796
  // http bearer authentication required
740
797
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
741
798
  // authentication oauth2 required
742
- localVarHeaderParameter['Content-Type'] = 'application/json';
743
799
  if (xDaytonaOrganizationID != null) {
744
800
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
745
801
  }
746
802
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
747
803
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
748
804
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
749
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCommitRequest, localVarRequestOptions, configuration);
750
805
  return {
751
806
  url: (0, common_1.toPathString)(localVarUrlObj),
752
807
  options: localVarRequestOptions,
753
808
  };
754
809
  },
755
810
  /**
756
- * Create branch on git repository
757
- * @summary Create branch
811
+ * Get session command by ID
812
+ * @summary Get session command
758
813
  * @param {string} sandboxId
759
- * @param {GitBranchRequest} gitBranchRequest
814
+ * @param {string} sessionId
815
+ * @param {string} commandId
760
816
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
761
817
  * @param {*} [options] Override http request option.
762
818
  * @throws {RequiredError}
763
819
  */
764
- gitCreateBranch: async (sandboxId, gitBranchRequest, xDaytonaOrganizationID, options = {}) => {
820
+ getSessionCommand: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, options = {}) => {
765
821
  // verify required parameter 'sandboxId' is not null or undefined
766
- (0, common_1.assertParamExists)('gitCreateBranch', 'sandboxId', sandboxId);
767
- // verify required parameter 'gitBranchRequest' is not null or undefined
768
- (0, common_1.assertParamExists)('gitCreateBranch', 'gitBranchRequest', gitBranchRequest);
769
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
822
+ (0, common_1.assertParamExists)('getSessionCommand', 'sandboxId', sandboxId);
823
+ // verify required parameter 'sessionId' is not null or undefined
824
+ (0, common_1.assertParamExists)('getSessionCommand', 'sessionId', sessionId);
825
+ // verify required parameter 'commandId' is not null or undefined
826
+ (0, common_1.assertParamExists)('getSessionCommand', 'commandId', commandId);
827
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}`
828
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
829
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
830
+ .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
770
831
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
771
832
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
772
833
  let baseOptions;
773
834
  if (configuration) {
774
835
  baseOptions = configuration.baseOptions;
775
836
  }
776
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
837
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
777
838
  const localVarHeaderParameter = {};
778
839
  const localVarQueryParameter = {};
779
840
  // authentication bearer required
780
841
  // http bearer authentication required
781
842
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
782
843
  // authentication oauth2 required
783
- localVarHeaderParameter['Content-Type'] = 'application/json';
784
844
  if (xDaytonaOrganizationID != null) {
785
845
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
786
846
  }
787
847
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
788
848
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
789
849
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
790
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitBranchRequest, localVarRequestOptions, configuration);
791
850
  return {
792
851
  url: (0, common_1.toPathString)(localVarUrlObj),
793
852
  options: localVarRequestOptions,
794
853
  };
795
854
  },
796
855
  /**
797
- * Delete branch on git repository
798
- * @summary Delete branch
856
+ * Get logs for a specific command in a session
857
+ * @summary Get command logs
799
858
  * @param {string} sandboxId
800
- * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
859
+ * @param {string} sessionId
860
+ * @param {string} commandId
801
861
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
862
+ * @param {boolean} [follow]
802
863
  * @param {*} [options] Override http request option.
803
864
  * @throws {RequiredError}
804
865
  */
805
- gitDeleteBranch: async (sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options = {}) => {
866
+ getSessionCommandLogs: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options = {}) => {
806
867
  // verify required parameter 'sandboxId' is not null or undefined
807
- (0, common_1.assertParamExists)('gitDeleteBranch', 'sandboxId', sandboxId);
808
- // verify required parameter 'gitDeleteBranchRequest' is not null or undefined
809
- (0, common_1.assertParamExists)('gitDeleteBranch', 'gitDeleteBranchRequest', gitDeleteBranchRequest);
810
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
868
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'sandboxId', sandboxId);
869
+ // verify required parameter 'sessionId' is not null or undefined
870
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'sessionId', sessionId);
871
+ // verify required parameter 'commandId' is not null or undefined
872
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'commandId', commandId);
873
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
874
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
875
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
876
+ .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
811
877
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
812
878
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
813
879
  let baseOptions;
814
880
  if (configuration) {
815
881
  baseOptions = configuration.baseOptions;
816
882
  }
817
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
883
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
818
884
  const localVarHeaderParameter = {};
819
885
  const localVarQueryParameter = {};
820
886
  // authentication bearer required
821
887
  // http bearer authentication required
822
888
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
823
889
  // authentication oauth2 required
824
- localVarHeaderParameter['Content-Type'] = 'application/json';
890
+ if (follow !== undefined) {
891
+ localVarQueryParameter['follow'] = follow;
892
+ }
825
893
  if (xDaytonaOrganizationID != null) {
826
894
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
827
895
  }
828
896
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
829
897
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
830
898
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
831
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitDeleteBranchRequest, localVarRequestOptions, configuration);
832
899
  return {
833
900
  url: (0, common_1.toPathString)(localVarUrlObj),
834
901
  options: localVarRequestOptions,
835
902
  };
836
903
  },
837
904
  /**
838
- * Get commit history from git repository
839
- * @summary Get commit history
905
+ * Get list of open windows
906
+ * @summary Get windows
840
907
  * @param {string} sandboxId
841
- * @param {string} path
842
908
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
843
909
  * @param {*} [options] Override http request option.
844
910
  * @throws {RequiredError}
845
911
  */
846
- gitGetHistory: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
912
+ getWindows: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
913
+ // verify required parameter 'sandboxId' is not null or undefined
914
+ (0, common_1.assertParamExists)('getWindows', 'sandboxId', sandboxId);
915
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/windows`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
916
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
917
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
918
+ let baseOptions;
919
+ if (configuration) {
920
+ baseOptions = configuration.baseOptions;
921
+ }
922
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
923
+ const localVarHeaderParameter = {};
924
+ const localVarQueryParameter = {};
925
+ // authentication bearer required
926
+ // http bearer authentication required
927
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
928
+ // authentication oauth2 required
929
+ if (xDaytonaOrganizationID != null) {
930
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
931
+ }
932
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
934
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
935
+ return {
936
+ url: (0, common_1.toPathString)(localVarUrlObj),
937
+ options: localVarRequestOptions,
938
+ };
939
+ },
940
+ /**
941
+ * Add files to git commit
942
+ * @summary Add files
943
+ * @param {string} sandboxId
944
+ * @param {GitAddRequest} gitAddRequest
945
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ */
949
+ gitAddFiles: async (sandboxId, gitAddRequest, xDaytonaOrganizationID, options = {}) => {
950
+ // verify required parameter 'sandboxId' is not null or undefined
951
+ (0, common_1.assertParamExists)('gitAddFiles', 'sandboxId', sandboxId);
952
+ // verify required parameter 'gitAddRequest' is not null or undefined
953
+ (0, common_1.assertParamExists)('gitAddFiles', 'gitAddRequest', gitAddRequest);
954
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/add`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
955
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
956
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
957
+ let baseOptions;
958
+ if (configuration) {
959
+ baseOptions = configuration.baseOptions;
960
+ }
961
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
962
+ const localVarHeaderParameter = {};
963
+ const localVarQueryParameter = {};
964
+ // authentication bearer required
965
+ // http bearer authentication required
966
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
967
+ // authentication oauth2 required
968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
969
+ if (xDaytonaOrganizationID != null) {
970
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
971
+ }
972
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
974
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
975
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitAddRequest, localVarRequestOptions, configuration);
976
+ return {
977
+ url: (0, common_1.toPathString)(localVarUrlObj),
978
+ options: localVarRequestOptions,
979
+ };
980
+ },
981
+ /**
982
+ * Checkout branch or commit in git repository
983
+ * @summary Checkout branch
984
+ * @param {string} sandboxId
985
+ * @param {GitCheckoutRequest} gitCheckoutRequest
986
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ gitCheckoutBranch: async (sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options = {}) => {
991
+ // verify required parameter 'sandboxId' is not null or undefined
992
+ (0, common_1.assertParamExists)('gitCheckoutBranch', 'sandboxId', sandboxId);
993
+ // verify required parameter 'gitCheckoutRequest' is not null or undefined
994
+ (0, common_1.assertParamExists)('gitCheckoutBranch', 'gitCheckoutRequest', gitCheckoutRequest);
995
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/checkout`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
997
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
998
+ let baseOptions;
999
+ if (configuration) {
1000
+ baseOptions = configuration.baseOptions;
1001
+ }
1002
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1003
+ const localVarHeaderParameter = {};
1004
+ const localVarQueryParameter = {};
1005
+ // authentication bearer required
1006
+ // http bearer authentication required
1007
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1008
+ // authentication oauth2 required
1009
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1010
+ if (xDaytonaOrganizationID != null) {
1011
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1012
+ }
1013
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1015
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1016
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCheckoutRequest, localVarRequestOptions, configuration);
1017
+ return {
1018
+ url: (0, common_1.toPathString)(localVarUrlObj),
1019
+ options: localVarRequestOptions,
1020
+ };
1021
+ },
1022
+ /**
1023
+ * Clone git repository
1024
+ * @summary Clone repository
1025
+ * @param {string} sandboxId
1026
+ * @param {GitCloneRequest} gitCloneRequest
1027
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ gitCloneRepository: async (sandboxId, gitCloneRequest, xDaytonaOrganizationID, options = {}) => {
1032
+ // verify required parameter 'sandboxId' is not null or undefined
1033
+ (0, common_1.assertParamExists)('gitCloneRepository', 'sandboxId', sandboxId);
1034
+ // verify required parameter 'gitCloneRequest' is not null or undefined
1035
+ (0, common_1.assertParamExists)('gitCloneRepository', 'gitCloneRequest', gitCloneRequest);
1036
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/clone`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1038
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1039
+ let baseOptions;
1040
+ if (configuration) {
1041
+ baseOptions = configuration.baseOptions;
1042
+ }
1043
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1044
+ const localVarHeaderParameter = {};
1045
+ const localVarQueryParameter = {};
1046
+ // authentication bearer required
1047
+ // http bearer authentication required
1048
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1049
+ // authentication oauth2 required
1050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1051
+ if (xDaytonaOrganizationID != null) {
1052
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1053
+ }
1054
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1056
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1057
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCloneRequest, localVarRequestOptions, configuration);
1058
+ return {
1059
+ url: (0, common_1.toPathString)(localVarUrlObj),
1060
+ options: localVarRequestOptions,
1061
+ };
1062
+ },
1063
+ /**
1064
+ * Commit changes to git repository
1065
+ * @summary Commit changes
1066
+ * @param {string} sandboxId
1067
+ * @param {GitCommitRequest} gitCommitRequest
1068
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ gitCommitChanges: async (sandboxId, gitCommitRequest, xDaytonaOrganizationID, options = {}) => {
1073
+ // verify required parameter 'sandboxId' is not null or undefined
1074
+ (0, common_1.assertParamExists)('gitCommitChanges', 'sandboxId', sandboxId);
1075
+ // verify required parameter 'gitCommitRequest' is not null or undefined
1076
+ (0, common_1.assertParamExists)('gitCommitChanges', 'gitCommitRequest', gitCommitRequest);
1077
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/commit`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1079
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1080
+ let baseOptions;
1081
+ if (configuration) {
1082
+ baseOptions = configuration.baseOptions;
1083
+ }
1084
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1085
+ const localVarHeaderParameter = {};
1086
+ const localVarQueryParameter = {};
1087
+ // authentication bearer required
1088
+ // http bearer authentication required
1089
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1090
+ // authentication oauth2 required
1091
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1092
+ if (xDaytonaOrganizationID != null) {
1093
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1094
+ }
1095
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1097
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1098
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCommitRequest, localVarRequestOptions, configuration);
1099
+ return {
1100
+ url: (0, common_1.toPathString)(localVarUrlObj),
1101
+ options: localVarRequestOptions,
1102
+ };
1103
+ },
1104
+ /**
1105
+ * Create branch on git repository
1106
+ * @summary Create branch
1107
+ * @param {string} sandboxId
1108
+ * @param {GitBranchRequest} gitBranchRequest
1109
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ gitCreateBranch: async (sandboxId, gitBranchRequest, xDaytonaOrganizationID, options = {}) => {
1114
+ // verify required parameter 'sandboxId' is not null or undefined
1115
+ (0, common_1.assertParamExists)('gitCreateBranch', 'sandboxId', sandboxId);
1116
+ // verify required parameter 'gitBranchRequest' is not null or undefined
1117
+ (0, common_1.assertParamExists)('gitCreateBranch', 'gitBranchRequest', gitBranchRequest);
1118
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1120
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1121
+ let baseOptions;
1122
+ if (configuration) {
1123
+ baseOptions = configuration.baseOptions;
1124
+ }
1125
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1126
+ const localVarHeaderParameter = {};
1127
+ const localVarQueryParameter = {};
1128
+ // authentication bearer required
1129
+ // http bearer authentication required
1130
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1131
+ // authentication oauth2 required
1132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1133
+ if (xDaytonaOrganizationID != null) {
1134
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1135
+ }
1136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1137
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1138
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitBranchRequest, localVarRequestOptions, configuration);
1140
+ return {
1141
+ url: (0, common_1.toPathString)(localVarUrlObj),
1142
+ options: localVarRequestOptions,
1143
+ };
1144
+ },
1145
+ /**
1146
+ * Delete branch on git repository
1147
+ * @summary Delete branch
1148
+ * @param {string} sandboxId
1149
+ * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
1150
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ gitDeleteBranch: async (sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options = {}) => {
1155
+ // verify required parameter 'sandboxId' is not null or undefined
1156
+ (0, common_1.assertParamExists)('gitDeleteBranch', 'sandboxId', sandboxId);
1157
+ // verify required parameter 'gitDeleteBranchRequest' is not null or undefined
1158
+ (0, common_1.assertParamExists)('gitDeleteBranch', 'gitDeleteBranchRequest', gitDeleteBranchRequest);
1159
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1161
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1162
+ let baseOptions;
1163
+ if (configuration) {
1164
+ baseOptions = configuration.baseOptions;
1165
+ }
1166
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1167
+ const localVarHeaderParameter = {};
1168
+ const localVarQueryParameter = {};
1169
+ // authentication bearer required
1170
+ // http bearer authentication required
1171
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1172
+ // authentication oauth2 required
1173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1174
+ if (xDaytonaOrganizationID != null) {
1175
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1176
+ }
1177
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1179
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1180
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitDeleteBranchRequest, localVarRequestOptions, configuration);
1181
+ return {
1182
+ url: (0, common_1.toPathString)(localVarUrlObj),
1183
+ options: localVarRequestOptions,
1184
+ };
1185
+ },
1186
+ /**
1187
+ * Get commit history from git repository
1188
+ * @summary Get commit history
1189
+ * @param {string} sandboxId
1190
+ * @param {string} path
1191
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1192
+ * @param {*} [options] Override http request option.
1193
+ * @throws {RequiredError}
1194
+ */
1195
+ gitGetHistory: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
847
1196
  // verify required parameter 'sandboxId' is not null or undefined
848
1197
  (0, common_1.assertParamExists)('gitGetHistory', 'sandboxId', sandboxId);
849
1198
  // verify required parameter 'path' is not null or undefined
850
- (0, common_1.assertParamExists)('gitGetHistory', 'path', path);
851
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/history`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1199
+ (0, common_1.assertParamExists)('gitGetHistory', 'path', path);
1200
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/history`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1202
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1203
+ let baseOptions;
1204
+ if (configuration) {
1205
+ baseOptions = configuration.baseOptions;
1206
+ }
1207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1208
+ const localVarHeaderParameter = {};
1209
+ const localVarQueryParameter = {};
1210
+ // authentication bearer required
1211
+ // http bearer authentication required
1212
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1213
+ // authentication oauth2 required
1214
+ if (path !== undefined) {
1215
+ localVarQueryParameter['path'] = path;
1216
+ }
1217
+ if (xDaytonaOrganizationID != null) {
1218
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1219
+ }
1220
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1222
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1223
+ return {
1224
+ url: (0, common_1.toPathString)(localVarUrlObj),
1225
+ options: localVarRequestOptions,
1226
+ };
1227
+ },
1228
+ /**
1229
+ * Get status from git repository
1230
+ * @summary Get git status
1231
+ * @param {string} sandboxId
1232
+ * @param {string} path
1233
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ gitGetStatus: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
1238
+ // verify required parameter 'sandboxId' is not null or undefined
1239
+ (0, common_1.assertParamExists)('gitGetStatus', 'sandboxId', sandboxId);
1240
+ // verify required parameter 'path' is not null or undefined
1241
+ (0, common_1.assertParamExists)('gitGetStatus', 'path', path);
1242
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/status`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1244
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1245
+ let baseOptions;
1246
+ if (configuration) {
1247
+ baseOptions = configuration.baseOptions;
1248
+ }
1249
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1250
+ const localVarHeaderParameter = {};
1251
+ const localVarQueryParameter = {};
1252
+ // authentication bearer required
1253
+ // http bearer authentication required
1254
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1255
+ // authentication oauth2 required
1256
+ if (path !== undefined) {
1257
+ localVarQueryParameter['path'] = path;
1258
+ }
1259
+ if (xDaytonaOrganizationID != null) {
1260
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1261
+ }
1262
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1264
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1265
+ return {
1266
+ url: (0, common_1.toPathString)(localVarUrlObj),
1267
+ options: localVarRequestOptions,
1268
+ };
1269
+ },
1270
+ /**
1271
+ * Get branch list from git repository
1272
+ * @summary Get branch list
1273
+ * @param {string} sandboxId
1274
+ * @param {string} path
1275
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ */
1279
+ gitListBranches: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
1280
+ // verify required parameter 'sandboxId' is not null or undefined
1281
+ (0, common_1.assertParamExists)('gitListBranches', 'sandboxId', sandboxId);
1282
+ // verify required parameter 'path' is not null or undefined
1283
+ (0, common_1.assertParamExists)('gitListBranches', 'path', path);
1284
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1286
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1287
+ let baseOptions;
1288
+ if (configuration) {
1289
+ baseOptions = configuration.baseOptions;
1290
+ }
1291
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1292
+ const localVarHeaderParameter = {};
1293
+ const localVarQueryParameter = {};
1294
+ // authentication bearer required
1295
+ // http bearer authentication required
1296
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1297
+ // authentication oauth2 required
1298
+ if (path !== undefined) {
1299
+ localVarQueryParameter['path'] = path;
1300
+ }
1301
+ if (xDaytonaOrganizationID != null) {
1302
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1303
+ }
1304
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1306
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1307
+ return {
1308
+ url: (0, common_1.toPathString)(localVarUrlObj),
1309
+ options: localVarRequestOptions,
1310
+ };
1311
+ },
1312
+ /**
1313
+ * Pull changes from remote
1314
+ * @summary Pull changes
1315
+ * @param {string} sandboxId
1316
+ * @param {GitRepoRequest} gitRepoRequest
1317
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1318
+ * @param {*} [options] Override http request option.
1319
+ * @throws {RequiredError}
1320
+ */
1321
+ gitPullChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
1322
+ // verify required parameter 'sandboxId' is not null or undefined
1323
+ (0, common_1.assertParamExists)('gitPullChanges', 'sandboxId', sandboxId);
1324
+ // verify required parameter 'gitRepoRequest' is not null or undefined
1325
+ (0, common_1.assertParamExists)('gitPullChanges', 'gitRepoRequest', gitRepoRequest);
1326
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/pull`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1328
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1329
+ let baseOptions;
1330
+ if (configuration) {
1331
+ baseOptions = configuration.baseOptions;
1332
+ }
1333
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1334
+ const localVarHeaderParameter = {};
1335
+ const localVarQueryParameter = {};
1336
+ // authentication bearer required
1337
+ // http bearer authentication required
1338
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1339
+ // authentication oauth2 required
1340
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1341
+ if (xDaytonaOrganizationID != null) {
1342
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1343
+ }
1344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1346
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1347
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
1348
+ return {
1349
+ url: (0, common_1.toPathString)(localVarUrlObj),
1350
+ options: localVarRequestOptions,
1351
+ };
1352
+ },
1353
+ /**
1354
+ * Push changes to remote
1355
+ * @summary Push changes
1356
+ * @param {string} sandboxId
1357
+ * @param {GitRepoRequest} gitRepoRequest
1358
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ gitPushChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
1363
+ // verify required parameter 'sandboxId' is not null or undefined
1364
+ (0, common_1.assertParamExists)('gitPushChanges', 'sandboxId', sandboxId);
1365
+ // verify required parameter 'gitRepoRequest' is not null or undefined
1366
+ (0, common_1.assertParamExists)('gitPushChanges', 'gitRepoRequest', gitRepoRequest);
1367
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/push`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1368
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1369
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1370
+ let baseOptions;
1371
+ if (configuration) {
1372
+ baseOptions = configuration.baseOptions;
1373
+ }
1374
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1375
+ const localVarHeaderParameter = {};
1376
+ const localVarQueryParameter = {};
1377
+ // authentication bearer required
1378
+ // http bearer authentication required
1379
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1380
+ // authentication oauth2 required
1381
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1382
+ if (xDaytonaOrganizationID != null) {
1383
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1384
+ }
1385
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1387
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1388
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
1389
+ return {
1390
+ url: (0, common_1.toPathString)(localVarUrlObj),
1391
+ options: localVarRequestOptions,
1392
+ };
1393
+ },
1394
+ /**
1395
+ *
1396
+ * @summary List files
1397
+ * @param {string} sandboxId
1398
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1399
+ * @param {string} [path]
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ listFiles: async (sandboxId, xDaytonaOrganizationID, path, options = {}) => {
1404
+ // verify required parameter 'sandboxId' is not null or undefined
1405
+ (0, common_1.assertParamExists)('listFiles', 'sandboxId', sandboxId);
1406
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1407
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1408
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1409
+ let baseOptions;
1410
+ if (configuration) {
1411
+ baseOptions = configuration.baseOptions;
1412
+ }
1413
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1414
+ const localVarHeaderParameter = {};
1415
+ const localVarQueryParameter = {};
1416
+ // authentication bearer required
1417
+ // http bearer authentication required
1418
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1419
+ // authentication oauth2 required
1420
+ if (path !== undefined) {
1421
+ localVarQueryParameter['path'] = path;
1422
+ }
1423
+ if (xDaytonaOrganizationID != null) {
1424
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1425
+ }
1426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1428
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1429
+ return {
1430
+ url: (0, common_1.toPathString)(localVarUrlObj),
1431
+ options: localVarRequestOptions,
1432
+ };
1433
+ },
1434
+ /**
1435
+ * List all active sessions in the sandbox
1436
+ * @summary List sessions
1437
+ * @param {string} sandboxId
1438
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1439
+ * @param {*} [options] Override http request option.
1440
+ * @throws {RequiredError}
1441
+ */
1442
+ listSessions: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1443
+ // verify required parameter 'sandboxId' is not null or undefined
1444
+ (0, common_1.assertParamExists)('listSessions', 'sandboxId', sandboxId);
1445
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1447
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1448
+ let baseOptions;
1449
+ if (configuration) {
1450
+ baseOptions = configuration.baseOptions;
1451
+ }
1452
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1453
+ const localVarHeaderParameter = {};
1454
+ const localVarQueryParameter = {};
1455
+ // authentication bearer required
1456
+ // http bearer authentication required
1457
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1458
+ // authentication oauth2 required
1459
+ if (xDaytonaOrganizationID != null) {
1460
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1461
+ }
1462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1464
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1465
+ return {
1466
+ url: (0, common_1.toPathString)(localVarUrlObj),
1467
+ options: localVarRequestOptions,
1468
+ };
1469
+ },
1470
+ /**
1471
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1472
+ * @summary Get Lsp Completions
1473
+ * @param {string} sandboxId
1474
+ * @param {LspCompletionParams} lspCompletionParams
1475
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ */
1479
+ lspCompletions: async (sandboxId, lspCompletionParams, xDaytonaOrganizationID, options = {}) => {
1480
+ // verify required parameter 'sandboxId' is not null or undefined
1481
+ (0, common_1.assertParamExists)('lspCompletions', 'sandboxId', sandboxId);
1482
+ // verify required parameter 'lspCompletionParams' is not null or undefined
1483
+ (0, common_1.assertParamExists)('lspCompletions', 'lspCompletionParams', lspCompletionParams);
1484
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/completions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1486
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1487
+ let baseOptions;
1488
+ if (configuration) {
1489
+ baseOptions = configuration.baseOptions;
1490
+ }
1491
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1492
+ const localVarHeaderParameter = {};
1493
+ const localVarQueryParameter = {};
1494
+ // authentication bearer required
1495
+ // http bearer authentication required
1496
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1497
+ // authentication oauth2 required
1498
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1499
+ if (xDaytonaOrganizationID != null) {
1500
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1501
+ }
1502
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1503
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1504
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1505
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspCompletionParams, localVarRequestOptions, configuration);
1506
+ return {
1507
+ url: (0, common_1.toPathString)(localVarUrlObj),
1508
+ options: localVarRequestOptions,
1509
+ };
1510
+ },
1511
+ /**
1512
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1513
+ * @summary Call Lsp DidClose
1514
+ * @param {string} sandboxId
1515
+ * @param {LspDocumentRequest} lspDocumentRequest
1516
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ */
1520
+ lspDidClose: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
1521
+ // verify required parameter 'sandboxId' is not null or undefined
1522
+ (0, common_1.assertParamExists)('lspDidClose', 'sandboxId', sandboxId);
1523
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1524
+ (0, common_1.assertParamExists)('lspDidClose', 'lspDocumentRequest', lspDocumentRequest);
1525
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-close`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
+ let baseOptions;
1529
+ if (configuration) {
1530
+ baseOptions = configuration.baseOptions;
1531
+ }
1532
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1533
+ const localVarHeaderParameter = {};
1534
+ const localVarQueryParameter = {};
1535
+ // authentication bearer required
1536
+ // http bearer authentication required
1537
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1538
+ // authentication oauth2 required
1539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1540
+ if (xDaytonaOrganizationID != null) {
1541
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1542
+ }
1543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1545
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1546
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
1547
+ return {
1548
+ url: (0, common_1.toPathString)(localVarUrlObj),
1549
+ options: localVarRequestOptions,
1550
+ };
1551
+ },
1552
+ /**
1553
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1554
+ * @summary Call Lsp DidOpen
1555
+ * @param {string} sandboxId
1556
+ * @param {LspDocumentRequest} lspDocumentRequest
1557
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ lspDidOpen: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
1562
+ // verify required parameter 'sandboxId' is not null or undefined
1563
+ (0, common_1.assertParamExists)('lspDidOpen', 'sandboxId', sandboxId);
1564
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1565
+ (0, common_1.assertParamExists)('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest);
1566
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-open`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1567
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1568
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1569
+ let baseOptions;
1570
+ if (configuration) {
1571
+ baseOptions = configuration.baseOptions;
1572
+ }
1573
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1574
+ const localVarHeaderParameter = {};
1575
+ const localVarQueryParameter = {};
1576
+ // authentication bearer required
1577
+ // http bearer authentication required
1578
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1579
+ // authentication oauth2 required
1580
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1581
+ if (xDaytonaOrganizationID != null) {
1582
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1583
+ }
1584
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1586
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1587
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
1588
+ return {
1589
+ url: (0, common_1.toPathString)(localVarUrlObj),
1590
+ options: localVarRequestOptions,
1591
+ };
1592
+ },
1593
+ /**
1594
+ * The document symbol request is sent from the client to the server.
1595
+ * @summary Call Lsp DocumentSymbols
1596
+ * @param {string} sandboxId
1597
+ * @param {string} languageId
1598
+ * @param {string} pathToProject
1599
+ * @param {string} uri
1600
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1601
+ * @param {*} [options] Override http request option.
1602
+ * @throws {RequiredError}
1603
+ */
1604
+ lspDocumentSymbols: async (sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options = {}) => {
1605
+ // verify required parameter 'sandboxId' is not null or undefined
1606
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'sandboxId', sandboxId);
1607
+ // verify required parameter 'languageId' is not null or undefined
1608
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'languageId', languageId);
1609
+ // verify required parameter 'pathToProject' is not null or undefined
1610
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'pathToProject', pathToProject);
1611
+ // verify required parameter 'uri' is not null or undefined
1612
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'uri', uri);
1613
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/document-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
852
1614
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
853
1615
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
854
1616
  let baseOptions;
@@ -862,8 +1624,14 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
862
1624
  // http bearer authentication required
863
1625
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
864
1626
  // authentication oauth2 required
865
- if (path !== undefined) {
866
- localVarQueryParameter['path'] = path;
1627
+ if (languageId !== undefined) {
1628
+ localVarQueryParameter['languageId'] = languageId;
1629
+ }
1630
+ if (pathToProject !== undefined) {
1631
+ localVarQueryParameter['pathToProject'] = pathToProject;
1632
+ }
1633
+ if (uri !== undefined) {
1634
+ localVarQueryParameter['uri'] = uri;
867
1635
  }
868
1636
  if (xDaytonaOrganizationID != null) {
869
1637
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -877,20 +1645,108 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
877
1645
  };
878
1646
  },
879
1647
  /**
880
- * Get status from git repository
881
- * @summary Get git status
1648
+ * Start Lsp server process inside sandbox project
1649
+ * @summary Start Lsp server
882
1650
  * @param {string} sandboxId
883
- * @param {string} path
1651
+ * @param {LspServerRequest} lspServerRequest
884
1652
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
885
1653
  * @param {*} [options] Override http request option.
886
1654
  * @throws {RequiredError}
887
1655
  */
888
- gitGetStatus: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
1656
+ lspStart: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
889
1657
  // verify required parameter 'sandboxId' is not null or undefined
890
- (0, common_1.assertParamExists)('gitGetStatus', 'sandboxId', sandboxId);
891
- // verify required parameter 'path' is not null or undefined
892
- (0, common_1.assertParamExists)('gitGetStatus', 'path', path);
893
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/status`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1658
+ (0, common_1.assertParamExists)('lspStart', 'sandboxId', sandboxId);
1659
+ // verify required parameter 'lspServerRequest' is not null or undefined
1660
+ (0, common_1.assertParamExists)('lspStart', 'lspServerRequest', lspServerRequest);
1661
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1663
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1664
+ let baseOptions;
1665
+ if (configuration) {
1666
+ baseOptions = configuration.baseOptions;
1667
+ }
1668
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1669
+ const localVarHeaderParameter = {};
1670
+ const localVarQueryParameter = {};
1671
+ // authentication bearer required
1672
+ // http bearer authentication required
1673
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1674
+ // authentication oauth2 required
1675
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1676
+ if (xDaytonaOrganizationID != null) {
1677
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1678
+ }
1679
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1681
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1682
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1683
+ return {
1684
+ url: (0, common_1.toPathString)(localVarUrlObj),
1685
+ options: localVarRequestOptions,
1686
+ };
1687
+ },
1688
+ /**
1689
+ * Stop Lsp server process inside sandbox project
1690
+ * @summary Stop Lsp server
1691
+ * @param {string} sandboxId
1692
+ * @param {LspServerRequest} lspServerRequest
1693
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ lspStop: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
1698
+ // verify required parameter 'sandboxId' is not null or undefined
1699
+ (0, common_1.assertParamExists)('lspStop', 'sandboxId', sandboxId);
1700
+ // verify required parameter 'lspServerRequest' is not null or undefined
1701
+ (0, common_1.assertParamExists)('lspStop', 'lspServerRequest', lspServerRequest);
1702
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1704
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1705
+ let baseOptions;
1706
+ if (configuration) {
1707
+ baseOptions = configuration.baseOptions;
1708
+ }
1709
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1710
+ const localVarHeaderParameter = {};
1711
+ const localVarQueryParameter = {};
1712
+ // authentication bearer required
1713
+ // http bearer authentication required
1714
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1715
+ // authentication oauth2 required
1716
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1717
+ if (xDaytonaOrganizationID != null) {
1718
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1719
+ }
1720
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1722
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1723
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1724
+ return {
1725
+ url: (0, common_1.toPathString)(localVarUrlObj),
1726
+ options: localVarRequestOptions,
1727
+ };
1728
+ },
1729
+ /**
1730
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1731
+ * @summary Call Lsp WorkspaceSymbols
1732
+ * @param {string} sandboxId
1733
+ * @param {string} languageId
1734
+ * @param {string} pathToProject
1735
+ * @param {string} query
1736
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1737
+ * @param {*} [options] Override http request option.
1738
+ * @throws {RequiredError}
1739
+ */
1740
+ lspWorkspaceSymbols: async (sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options = {}) => {
1741
+ // verify required parameter 'sandboxId' is not null or undefined
1742
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'sandboxId', sandboxId);
1743
+ // verify required parameter 'languageId' is not null or undefined
1744
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'languageId', languageId);
1745
+ // verify required parameter 'pathToProject' is not null or undefined
1746
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'pathToProject', pathToProject);
1747
+ // verify required parameter 'query' is not null or undefined
1748
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'query', query);
1749
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/workspace-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
894
1750
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
895
1751
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
896
1752
  let baseOptions;
@@ -904,8 +1760,14 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
904
1760
  // http bearer authentication required
905
1761
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
906
1762
  // authentication oauth2 required
907
- if (path !== undefined) {
908
- localVarQueryParameter['path'] = path;
1763
+ if (languageId !== undefined) {
1764
+ localVarQueryParameter['languageId'] = languageId;
1765
+ }
1766
+ if (pathToProject !== undefined) {
1767
+ localVarQueryParameter['pathToProject'] = pathToProject;
1768
+ }
1769
+ if (query !== undefined) {
1770
+ localVarQueryParameter['query'] = query;
909
1771
  }
910
1772
  if (xDaytonaOrganizationID != null) {
911
1773
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -919,35 +1781,41 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
919
1781
  };
920
1782
  },
921
1783
  /**
922
- * Get branch list from git repository
923
- * @summary Get branch list
1784
+ * Move file inside sandbox
1785
+ * @summary Move file
924
1786
  * @param {string} sandboxId
925
- * @param {string} path
1787
+ * @param {string} source
1788
+ * @param {string} destination
926
1789
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
927
1790
  * @param {*} [options] Override http request option.
928
1791
  * @throws {RequiredError}
929
1792
  */
930
- gitListBranches: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
1793
+ moveFile: async (sandboxId, source, destination, xDaytonaOrganizationID, options = {}) => {
931
1794
  // verify required parameter 'sandboxId' is not null or undefined
932
- (0, common_1.assertParamExists)('gitListBranches', 'sandboxId', sandboxId);
933
- // verify required parameter 'path' is not null or undefined
934
- (0, common_1.assertParamExists)('gitListBranches', 'path', path);
935
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1795
+ (0, common_1.assertParamExists)('moveFile', 'sandboxId', sandboxId);
1796
+ // verify required parameter 'source' is not null or undefined
1797
+ (0, common_1.assertParamExists)('moveFile', 'source', source);
1798
+ // verify required parameter 'destination' is not null or undefined
1799
+ (0, common_1.assertParamExists)('moveFile', 'destination', destination);
1800
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/move`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
936
1801
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
937
1802
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
938
1803
  let baseOptions;
939
1804
  if (configuration) {
940
1805
  baseOptions = configuration.baseOptions;
941
1806
  }
942
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1807
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
943
1808
  const localVarHeaderParameter = {};
944
1809
  const localVarQueryParameter = {};
945
1810
  // authentication bearer required
946
1811
  // http bearer authentication required
947
1812
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
948
1813
  // authentication oauth2 required
949
- if (path !== undefined) {
950
- localVarQueryParameter['path'] = path;
1814
+ if (source !== undefined) {
1815
+ localVarQueryParameter['source'] = source;
1816
+ }
1817
+ if (destination !== undefined) {
1818
+ localVarQueryParameter['destination'] = destination;
951
1819
  }
952
1820
  if (xDaytonaOrganizationID != null) {
953
1821
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -961,20 +1829,20 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
961
1829
  };
962
1830
  },
963
1831
  /**
964
- * Pull changes from remote
965
- * @summary Pull changes
1832
+ * Move mouse cursor to specified coordinates
1833
+ * @summary Move mouse
966
1834
  * @param {string} sandboxId
967
- * @param {GitRepoRequest} gitRepoRequest
1835
+ * @param {MouseMoveRequest} mouseMoveRequest
968
1836
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
969
1837
  * @param {*} [options] Override http request option.
970
1838
  * @throws {RequiredError}
971
1839
  */
972
- gitPullChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
1840
+ moveMouse: async (sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options = {}) => {
973
1841
  // verify required parameter 'sandboxId' is not null or undefined
974
- (0, common_1.assertParamExists)('gitPullChanges', 'sandboxId', sandboxId);
975
- // verify required parameter 'gitRepoRequest' is not null or undefined
976
- (0, common_1.assertParamExists)('gitPullChanges', 'gitRepoRequest', gitRepoRequest);
977
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/pull`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1842
+ (0, common_1.assertParamExists)('moveMouse', 'sandboxId', sandboxId);
1843
+ // verify required parameter 'mouseMoveRequest' is not null or undefined
1844
+ (0, common_1.assertParamExists)('moveMouse', 'mouseMoveRequest', mouseMoveRequest);
1845
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/mouse/move`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
978
1846
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
979
1847
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
980
1848
  let baseOptions;
@@ -995,27 +1863,27 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
995
1863
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
996
1864
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
997
1865
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
998
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
1866
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mouseMoveRequest, localVarRequestOptions, configuration);
999
1867
  return {
1000
1868
  url: (0, common_1.toPathString)(localVarUrlObj),
1001
1869
  options: localVarRequestOptions,
1002
1870
  };
1003
1871
  },
1004
1872
  /**
1005
- * Push changes to remote
1006
- * @summary Push changes
1873
+ * Press a hotkey combination
1874
+ * @summary Press hotkey
1007
1875
  * @param {string} sandboxId
1008
- * @param {GitRepoRequest} gitRepoRequest
1876
+ * @param {KeyboardHotkeyRequest} keyboardHotkeyRequest
1009
1877
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1010
1878
  * @param {*} [options] Override http request option.
1011
1879
  * @throws {RequiredError}
1012
1880
  */
1013
- gitPushChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
1881
+ pressHotkey: async (sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options = {}) => {
1014
1882
  // verify required parameter 'sandboxId' is not null or undefined
1015
- (0, common_1.assertParamExists)('gitPushChanges', 'sandboxId', sandboxId);
1016
- // verify required parameter 'gitRepoRequest' is not null or undefined
1017
- (0, common_1.assertParamExists)('gitPushChanges', 'gitRepoRequest', gitRepoRequest);
1018
- const localVarPath = `/toolbox/{sandboxId}/toolbox/git/push`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1883
+ (0, common_1.assertParamExists)('pressHotkey', 'sandboxId', sandboxId);
1884
+ // verify required parameter 'keyboardHotkeyRequest' is not null or undefined
1885
+ (0, common_1.assertParamExists)('pressHotkey', 'keyboardHotkeyRequest', keyboardHotkeyRequest);
1886
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/keyboard/hotkey`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1019
1887
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1020
1888
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1021
1889
  let baseOptions;
@@ -1036,103 +1904,111 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1036
1904
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1037
1905
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1038
1906
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1039
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
1907
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(keyboardHotkeyRequest, localVarRequestOptions, configuration);
1040
1908
  return {
1041
1909
  url: (0, common_1.toPathString)(localVarUrlObj),
1042
1910
  options: localVarRequestOptions,
1043
1911
  };
1044
1912
  },
1045
1913
  /**
1046
- *
1047
- * @summary List files
1914
+ * Press a key with optional modifiers
1915
+ * @summary Press key
1048
1916
  * @param {string} sandboxId
1917
+ * @param {KeyboardPressRequest} keyboardPressRequest
1049
1918
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1050
- * @param {string} [path]
1051
1919
  * @param {*} [options] Override http request option.
1052
1920
  * @throws {RequiredError}
1053
1921
  */
1054
- listFiles: async (sandboxId, xDaytonaOrganizationID, path, options = {}) => {
1922
+ pressKey: async (sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options = {}) => {
1055
1923
  // verify required parameter 'sandboxId' is not null or undefined
1056
- (0, common_1.assertParamExists)('listFiles', 'sandboxId', sandboxId);
1057
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1924
+ (0, common_1.assertParamExists)('pressKey', 'sandboxId', sandboxId);
1925
+ // verify required parameter 'keyboardPressRequest' is not null or undefined
1926
+ (0, common_1.assertParamExists)('pressKey', 'keyboardPressRequest', keyboardPressRequest);
1927
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/keyboard/press`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1058
1928
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1059
1929
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1060
1930
  let baseOptions;
1061
1931
  if (configuration) {
1062
1932
  baseOptions = configuration.baseOptions;
1063
1933
  }
1064
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1934
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1065
1935
  const localVarHeaderParameter = {};
1066
1936
  const localVarQueryParameter = {};
1067
1937
  // authentication bearer required
1068
1938
  // http bearer authentication required
1069
1939
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1070
1940
  // authentication oauth2 required
1071
- if (path !== undefined) {
1072
- localVarQueryParameter['path'] = path;
1073
- }
1941
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1074
1942
  if (xDaytonaOrganizationID != null) {
1075
1943
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1076
1944
  }
1077
1945
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1078
1946
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1079
1947
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1948
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(keyboardPressRequest, localVarRequestOptions, configuration);
1080
1949
  return {
1081
1950
  url: (0, common_1.toPathString)(localVarUrlObj),
1082
1951
  options: localVarRequestOptions,
1083
1952
  };
1084
1953
  },
1085
1954
  /**
1086
- * List all active sessions in the sandbox
1087
- * @summary List sessions
1955
+ * Replace text/pattern in multiple files inside sandbox
1956
+ * @summary Replace in files
1088
1957
  * @param {string} sandboxId
1958
+ * @param {ReplaceRequest} replaceRequest
1089
1959
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1090
1960
  * @param {*} [options] Override http request option.
1091
1961
  * @throws {RequiredError}
1092
1962
  */
1093
- listSessions: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1963
+ replaceInFiles: async (sandboxId, replaceRequest, xDaytonaOrganizationID, options = {}) => {
1094
1964
  // verify required parameter 'sandboxId' is not null or undefined
1095
- (0, common_1.assertParamExists)('listSessions', 'sandboxId', sandboxId);
1096
- const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1965
+ (0, common_1.assertParamExists)('replaceInFiles', 'sandboxId', sandboxId);
1966
+ // verify required parameter 'replaceRequest' is not null or undefined
1967
+ (0, common_1.assertParamExists)('replaceInFiles', 'replaceRequest', replaceRequest);
1968
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/replace`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1097
1969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1098
1970
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1099
1971
  let baseOptions;
1100
1972
  if (configuration) {
1101
1973
  baseOptions = configuration.baseOptions;
1102
1974
  }
1103
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1975
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1104
1976
  const localVarHeaderParameter = {};
1105
1977
  const localVarQueryParameter = {};
1106
1978
  // authentication bearer required
1107
1979
  // http bearer authentication required
1108
1980
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1109
1981
  // authentication oauth2 required
1982
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1110
1983
  if (xDaytonaOrganizationID != null) {
1111
1984
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1112
1985
  }
1113
1986
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1114
1987
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1115
1988
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1989
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceRequest, localVarRequestOptions, configuration);
1116
1990
  return {
1117
1991
  url: (0, common_1.toPathString)(localVarUrlObj),
1118
1992
  options: localVarRequestOptions,
1119
1993
  };
1120
1994
  },
1121
1995
  /**
1122
- * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1123
- * @summary Get Lsp Completions
1996
+ * Restart a specific VNC process
1997
+ * @summary Restart process
1998
+ * @param {string} processName
1124
1999
  * @param {string} sandboxId
1125
- * @param {LspCompletionParams} lspCompletionParams
1126
2000
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1127
2001
  * @param {*} [options] Override http request option.
1128
2002
  * @throws {RequiredError}
1129
2003
  */
1130
- lspCompletions: async (sandboxId, lspCompletionParams, xDaytonaOrganizationID, options = {}) => {
2004
+ restartProcess: async (processName, sandboxId, xDaytonaOrganizationID, options = {}) => {
2005
+ // verify required parameter 'processName' is not null or undefined
2006
+ (0, common_1.assertParamExists)('restartProcess', 'processName', processName);
1131
2007
  // verify required parameter 'sandboxId' is not null or undefined
1132
- (0, common_1.assertParamExists)('lspCompletions', 'sandboxId', sandboxId);
1133
- // verify required parameter 'lspCompletionParams' is not null or undefined
1134
- (0, common_1.assertParamExists)('lspCompletions', 'lspCompletionParams', lspCompletionParams);
1135
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/completions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2008
+ (0, common_1.assertParamExists)('restartProcess', 'sandboxId', sandboxId);
2009
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/restart`
2010
+ .replace(`{${'processName'}}`, encodeURIComponent(String(processName)))
2011
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1136
2012
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1137
2013
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1138
2014
  let baseOptions;
@@ -1146,34 +2022,32 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1146
2022
  // http bearer authentication required
1147
2023
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1148
2024
  // authentication oauth2 required
1149
- localVarHeaderParameter['Content-Type'] = 'application/json';
1150
2025
  if (xDaytonaOrganizationID != null) {
1151
2026
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1152
2027
  }
1153
2028
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1154
2029
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
2030
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1156
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspCompletionParams, localVarRequestOptions, configuration);
1157
2031
  return {
1158
2032
  url: (0, common_1.toPathString)(localVarUrlObj),
1159
2033
  options: localVarRequestOptions,
1160
2034
  };
1161
2035
  },
1162
2036
  /**
1163
- * The document close notification is sent from the client to the server when the document got closed in the client.
1164
- * @summary Call Lsp DidClose
2037
+ * Scroll mouse at specified coordinates
2038
+ * @summary Scroll mouse
1165
2039
  * @param {string} sandboxId
1166
- * @param {LspDocumentRequest} lspDocumentRequest
2040
+ * @param {MouseScrollRequest} mouseScrollRequest
1167
2041
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1168
2042
  * @param {*} [options] Override http request option.
1169
2043
  * @throws {RequiredError}
1170
2044
  */
1171
- lspDidClose: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
2045
+ scrollMouse: async (sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options = {}) => {
1172
2046
  // verify required parameter 'sandboxId' is not null or undefined
1173
- (0, common_1.assertParamExists)('lspDidClose', 'sandboxId', sandboxId);
1174
- // verify required parameter 'lspDocumentRequest' is not null or undefined
1175
- (0, common_1.assertParamExists)('lspDidClose', 'lspDocumentRequest', lspDocumentRequest);
1176
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-close`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2047
+ (0, common_1.assertParamExists)('scrollMouse', 'sandboxId', sandboxId);
2048
+ // verify required parameter 'mouseScrollRequest' is not null or undefined
2049
+ (0, common_1.assertParamExists)('scrollMouse', 'mouseScrollRequest', mouseScrollRequest);
2050
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/mouse/scroll`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1177
2051
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1178
2052
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1179
2053
  let baseOptions;
@@ -1194,95 +2068,102 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1194
2068
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1195
2069
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1196
2070
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1197
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
2071
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mouseScrollRequest, localVarRequestOptions, configuration);
1198
2072
  return {
1199
2073
  url: (0, common_1.toPathString)(localVarUrlObj),
1200
2074
  options: localVarRequestOptions,
1201
2075
  };
1202
2076
  },
1203
2077
  /**
1204
- * The document open notification is sent from the client to the server to signal newly opened text documents.
1205
- * @summary Call Lsp DidOpen
2078
+ * Search for files inside sandbox
2079
+ * @summary Search files
1206
2080
  * @param {string} sandboxId
1207
- * @param {LspDocumentRequest} lspDocumentRequest
2081
+ * @param {string} path
2082
+ * @param {string} pattern
1208
2083
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1209
2084
  * @param {*} [options] Override http request option.
1210
2085
  * @throws {RequiredError}
1211
2086
  */
1212
- lspDidOpen: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
2087
+ searchFiles: async (sandboxId, path, pattern, xDaytonaOrganizationID, options = {}) => {
1213
2088
  // verify required parameter 'sandboxId' is not null or undefined
1214
- (0, common_1.assertParamExists)('lspDidOpen', 'sandboxId', sandboxId);
1215
- // verify required parameter 'lspDocumentRequest' is not null or undefined
1216
- (0, common_1.assertParamExists)('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest);
1217
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-open`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2089
+ (0, common_1.assertParamExists)('searchFiles', 'sandboxId', sandboxId);
2090
+ // verify required parameter 'path' is not null or undefined
2091
+ (0, common_1.assertParamExists)('searchFiles', 'path', path);
2092
+ // verify required parameter 'pattern' is not null or undefined
2093
+ (0, common_1.assertParamExists)('searchFiles', 'pattern', pattern);
2094
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/search`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1218
2095
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1219
2096
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1220
2097
  let baseOptions;
1221
2098
  if (configuration) {
1222
2099
  baseOptions = configuration.baseOptions;
1223
2100
  }
1224
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2101
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1225
2102
  const localVarHeaderParameter = {};
1226
2103
  const localVarQueryParameter = {};
1227
2104
  // authentication bearer required
1228
2105
  // http bearer authentication required
1229
2106
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1230
2107
  // authentication oauth2 required
1231
- localVarHeaderParameter['Content-Type'] = 'application/json';
2108
+ if (path !== undefined) {
2109
+ localVarQueryParameter['path'] = path;
2110
+ }
2111
+ if (pattern !== undefined) {
2112
+ localVarQueryParameter['pattern'] = pattern;
2113
+ }
1232
2114
  if (xDaytonaOrganizationID != null) {
1233
2115
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1234
2116
  }
1235
2117
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1236
2118
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1237
2119
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1238
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
1239
2120
  return {
1240
2121
  url: (0, common_1.toPathString)(localVarUrlObj),
1241
2122
  options: localVarRequestOptions,
1242
2123
  };
1243
2124
  },
1244
2125
  /**
1245
- * The document symbol request is sent from the client to the server.
1246
- * @summary Call Lsp DocumentSymbols
2126
+ * Set file owner/group/permissions inside sandbox
2127
+ * @summary Set file permissions
1247
2128
  * @param {string} sandboxId
1248
- * @param {string} languageId
1249
- * @param {string} pathToProject
1250
- * @param {string} uri
2129
+ * @param {string} path
1251
2130
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2131
+ * @param {string} [owner]
2132
+ * @param {string} [group]
2133
+ * @param {string} [mode]
1252
2134
  * @param {*} [options] Override http request option.
1253
2135
  * @throws {RequiredError}
1254
2136
  */
1255
- lspDocumentSymbols: async (sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options = {}) => {
2137
+ setFilePermissions: async (sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options = {}) => {
1256
2138
  // verify required parameter 'sandboxId' is not null or undefined
1257
- (0, common_1.assertParamExists)('lspDocumentSymbols', 'sandboxId', sandboxId);
1258
- // verify required parameter 'languageId' is not null or undefined
1259
- (0, common_1.assertParamExists)('lspDocumentSymbols', 'languageId', languageId);
1260
- // verify required parameter 'pathToProject' is not null or undefined
1261
- (0, common_1.assertParamExists)('lspDocumentSymbols', 'pathToProject', pathToProject);
1262
- // verify required parameter 'uri' is not null or undefined
1263
- (0, common_1.assertParamExists)('lspDocumentSymbols', 'uri', uri);
1264
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/document-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2139
+ (0, common_1.assertParamExists)('setFilePermissions', 'sandboxId', sandboxId);
2140
+ // verify required parameter 'path' is not null or undefined
2141
+ (0, common_1.assertParamExists)('setFilePermissions', 'path', path);
2142
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/permissions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1265
2143
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1266
2144
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1267
2145
  let baseOptions;
1268
2146
  if (configuration) {
1269
2147
  baseOptions = configuration.baseOptions;
1270
2148
  }
1271
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2149
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1272
2150
  const localVarHeaderParameter = {};
1273
2151
  const localVarQueryParameter = {};
1274
2152
  // authentication bearer required
1275
2153
  // http bearer authentication required
1276
2154
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1277
2155
  // authentication oauth2 required
1278
- if (languageId !== undefined) {
1279
- localVarQueryParameter['languageId'] = languageId;
2156
+ if (path !== undefined) {
2157
+ localVarQueryParameter['path'] = path;
1280
2158
  }
1281
- if (pathToProject !== undefined) {
1282
- localVarQueryParameter['pathToProject'] = pathToProject;
2159
+ if (owner !== undefined) {
2160
+ localVarQueryParameter['owner'] = owner;
1283
2161
  }
1284
- if (uri !== undefined) {
1285
- localVarQueryParameter['uri'] = uri;
2162
+ if (group !== undefined) {
2163
+ localVarQueryParameter['group'] = group;
2164
+ }
2165
+ if (mode !== undefined) {
2166
+ localVarQueryParameter['mode'] = mode;
1286
2167
  }
1287
2168
  if (xDaytonaOrganizationID != null) {
1288
2169
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -1296,20 +2177,17 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1296
2177
  };
1297
2178
  },
1298
2179
  /**
1299
- * Start Lsp server process inside sandbox project
1300
- * @summary Start Lsp server
2180
+ * Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
2181
+ * @summary Start computer use processes
1301
2182
  * @param {string} sandboxId
1302
- * @param {LspServerRequest} lspServerRequest
1303
2183
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1304
2184
  * @param {*} [options] Override http request option.
1305
2185
  * @throws {RequiredError}
1306
2186
  */
1307
- lspStart: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
2187
+ startComputerUse: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1308
2188
  // verify required parameter 'sandboxId' is not null or undefined
1309
- (0, common_1.assertParamExists)('lspStart', 'sandboxId', sandboxId);
1310
- // verify required parameter 'lspServerRequest' is not null or undefined
1311
- (0, common_1.assertParamExists)('lspStart', 'lspServerRequest', lspServerRequest);
1312
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2189
+ (0, common_1.assertParamExists)('startComputerUse', 'sandboxId', sandboxId);
2190
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1313
2191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1314
2192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1315
2193
  let baseOptions;
@@ -1323,34 +2201,29 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1323
2201
  // http bearer authentication required
1324
2202
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1325
2203
  // authentication oauth2 required
1326
- localVarHeaderParameter['Content-Type'] = 'application/json';
1327
2204
  if (xDaytonaOrganizationID != null) {
1328
2205
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1329
2206
  }
1330
2207
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1331
2208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1332
2209
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1333
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1334
2210
  return {
1335
2211
  url: (0, common_1.toPathString)(localVarUrlObj),
1336
2212
  options: localVarRequestOptions,
1337
2213
  };
1338
2214
  },
1339
2215
  /**
1340
- * Stop Lsp server process inside sandbox project
1341
- * @summary Stop Lsp server
2216
+ * Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
2217
+ * @summary Stop computer use processes
1342
2218
  * @param {string} sandboxId
1343
- * @param {LspServerRequest} lspServerRequest
1344
2219
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1345
2220
  * @param {*} [options] Override http request option.
1346
2221
  * @throws {RequiredError}
1347
2222
  */
1348
- lspStop: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
2223
+ stopComputerUse: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1349
2224
  // verify required parameter 'sandboxId' is not null or undefined
1350
- (0, common_1.assertParamExists)('lspStop', 'sandboxId', sandboxId);
1351
- // verify required parameter 'lspServerRequest' is not null or undefined
1352
- (0, common_1.assertParamExists)('lspStop', 'lspServerRequest', lspServerRequest);
1353
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2225
+ (0, common_1.assertParamExists)('stopComputerUse', 'sandboxId', sandboxId);
2226
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1354
2227
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1355
2228
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1356
2229
  let baseOptions;
@@ -1364,40 +2237,45 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1364
2237
  // http bearer authentication required
1365
2238
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1366
2239
  // authentication oauth2 required
1367
- localVarHeaderParameter['Content-Type'] = 'application/json';
1368
2240
  if (xDaytonaOrganizationID != null) {
1369
2241
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1370
2242
  }
1371
2243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1372
2244
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1373
2245
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1374
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1375
2246
  return {
1376
2247
  url: (0, common_1.toPathString)(localVarUrlObj),
1377
2248
  options: localVarRequestOptions,
1378
2249
  };
1379
2250
  },
1380
2251
  /**
1381
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1382
- * @summary Call Lsp WorkspaceSymbols
2252
+ * Take a compressed screenshot of a specific region
2253
+ * @summary Take compressed region screenshot
1383
2254
  * @param {string} sandboxId
1384
- * @param {string} languageId
1385
- * @param {string} pathToProject
1386
- * @param {string} query
2255
+ * @param {number} height
2256
+ * @param {number} width
2257
+ * @param {number} y
2258
+ * @param {number} x
1387
2259
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2260
+ * @param {number} [scale]
2261
+ * @param {number} [quality]
2262
+ * @param {string} [format]
2263
+ * @param {boolean} [showCursor]
1388
2264
  * @param {*} [options] Override http request option.
1389
2265
  * @throws {RequiredError}
1390
2266
  */
1391
- lspWorkspaceSymbols: async (sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options = {}) => {
2267
+ takeCompressedRegionScreenshot: async (sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options = {}) => {
1392
2268
  // verify required parameter 'sandboxId' is not null or undefined
1393
- (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'sandboxId', sandboxId);
1394
- // verify required parameter 'languageId' is not null or undefined
1395
- (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'languageId', languageId);
1396
- // verify required parameter 'pathToProject' is not null or undefined
1397
- (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'pathToProject', pathToProject);
1398
- // verify required parameter 'query' is not null or undefined
1399
- (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'query', query);
1400
- const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/workspace-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2269
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'sandboxId', sandboxId);
2270
+ // verify required parameter 'height' is not null or undefined
2271
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'height', height);
2272
+ // verify required parameter 'width' is not null or undefined
2273
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'width', width);
2274
+ // verify required parameter 'y' is not null or undefined
2275
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'y', y);
2276
+ // verify required parameter 'x' is not null or undefined
2277
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'x', x);
2278
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/screenshot/region/compressed`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1401
2279
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1402
2280
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1403
2281
  let baseOptions;
@@ -1411,14 +2289,29 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1411
2289
  // http bearer authentication required
1412
2290
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1413
2291
  // authentication oauth2 required
1414
- if (languageId !== undefined) {
1415
- localVarQueryParameter['languageId'] = languageId;
2292
+ if (scale !== undefined) {
2293
+ localVarQueryParameter['scale'] = scale;
1416
2294
  }
1417
- if (pathToProject !== undefined) {
1418
- localVarQueryParameter['pathToProject'] = pathToProject;
2295
+ if (quality !== undefined) {
2296
+ localVarQueryParameter['quality'] = quality;
1419
2297
  }
1420
- if (query !== undefined) {
1421
- localVarQueryParameter['query'] = query;
2298
+ if (format !== undefined) {
2299
+ localVarQueryParameter['format'] = format;
2300
+ }
2301
+ if (showCursor !== undefined) {
2302
+ localVarQueryParameter['show_cursor'] = showCursor;
2303
+ }
2304
+ if (height !== undefined) {
2305
+ localVarQueryParameter['height'] = height;
2306
+ }
2307
+ if (width !== undefined) {
2308
+ localVarQueryParameter['width'] = width;
2309
+ }
2310
+ if (y !== undefined) {
2311
+ localVarQueryParameter['y'] = y;
2312
+ }
2313
+ if (x !== undefined) {
2314
+ localVarQueryParameter['x'] = x;
1422
2315
  }
1423
2316
  if (xDaytonaOrganizationID != null) {
1424
2317
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -1432,41 +2325,45 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1432
2325
  };
1433
2326
  },
1434
2327
  /**
1435
- * Move file inside sandbox
1436
- * @summary Move file
2328
+ * Take a compressed screenshot with format, quality, and scale options
2329
+ * @summary Take compressed screenshot
1437
2330
  * @param {string} sandboxId
1438
- * @param {string} source
1439
- * @param {string} destination
1440
2331
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2332
+ * @param {number} [scale]
2333
+ * @param {number} [quality]
2334
+ * @param {string} [format]
2335
+ * @param {boolean} [showCursor]
1441
2336
  * @param {*} [options] Override http request option.
1442
2337
  * @throws {RequiredError}
1443
2338
  */
1444
- moveFile: async (sandboxId, source, destination, xDaytonaOrganizationID, options = {}) => {
2339
+ takeCompressedScreenshot: async (sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options = {}) => {
1445
2340
  // verify required parameter 'sandboxId' is not null or undefined
1446
- (0, common_1.assertParamExists)('moveFile', 'sandboxId', sandboxId);
1447
- // verify required parameter 'source' is not null or undefined
1448
- (0, common_1.assertParamExists)('moveFile', 'source', source);
1449
- // verify required parameter 'destination' is not null or undefined
1450
- (0, common_1.assertParamExists)('moveFile', 'destination', destination);
1451
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files/move`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2341
+ (0, common_1.assertParamExists)('takeCompressedScreenshot', 'sandboxId', sandboxId);
2342
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/screenshot/compressed`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1452
2343
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1453
2344
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1454
2345
  let baseOptions;
1455
2346
  if (configuration) {
1456
2347
  baseOptions = configuration.baseOptions;
1457
2348
  }
1458
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2349
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1459
2350
  const localVarHeaderParameter = {};
1460
2351
  const localVarQueryParameter = {};
1461
2352
  // authentication bearer required
1462
2353
  // http bearer authentication required
1463
2354
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1464
2355
  // authentication oauth2 required
1465
- if (source !== undefined) {
1466
- localVarQueryParameter['source'] = source;
2356
+ if (scale !== undefined) {
2357
+ localVarQueryParameter['scale'] = scale;
1467
2358
  }
1468
- if (destination !== undefined) {
1469
- localVarQueryParameter['destination'] = destination;
2359
+ if (quality !== undefined) {
2360
+ localVarQueryParameter['quality'] = quality;
2361
+ }
2362
+ if (format !== undefined) {
2363
+ localVarQueryParameter['format'] = format;
2364
+ }
2365
+ if (showCursor !== undefined) {
2366
+ localVarQueryParameter['show_cursor'] = showCursor;
1470
2367
  }
1471
2368
  if (xDaytonaOrganizationID != null) {
1472
2369
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -1480,64 +2377,82 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1480
2377
  };
1481
2378
  },
1482
2379
  /**
1483
- * Replace text/pattern in multiple files inside sandbox
1484
- * @summary Replace in files
2380
+ * Take a screenshot of a specific region
2381
+ * @summary Take region screenshot
1485
2382
  * @param {string} sandboxId
1486
- * @param {ReplaceRequest} replaceRequest
2383
+ * @param {number} height
2384
+ * @param {number} width
2385
+ * @param {number} y
2386
+ * @param {number} x
1487
2387
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2388
+ * @param {boolean} [showCursor]
1488
2389
  * @param {*} [options] Override http request option.
1489
2390
  * @throws {RequiredError}
1490
2391
  */
1491
- replaceInFiles: async (sandboxId, replaceRequest, xDaytonaOrganizationID, options = {}) => {
2392
+ takeRegionScreenshot: async (sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options = {}) => {
1492
2393
  // verify required parameter 'sandboxId' is not null or undefined
1493
- (0, common_1.assertParamExists)('replaceInFiles', 'sandboxId', sandboxId);
1494
- // verify required parameter 'replaceRequest' is not null or undefined
1495
- (0, common_1.assertParamExists)('replaceInFiles', 'replaceRequest', replaceRequest);
1496
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files/replace`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2394
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'sandboxId', sandboxId);
2395
+ // verify required parameter 'height' is not null or undefined
2396
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'height', height);
2397
+ // verify required parameter 'width' is not null or undefined
2398
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'width', width);
2399
+ // verify required parameter 'y' is not null or undefined
2400
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'y', y);
2401
+ // verify required parameter 'x' is not null or undefined
2402
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'x', x);
2403
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/screenshot/region`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1497
2404
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1498
2405
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1499
2406
  let baseOptions;
1500
2407
  if (configuration) {
1501
2408
  baseOptions = configuration.baseOptions;
1502
2409
  }
1503
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2410
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1504
2411
  const localVarHeaderParameter = {};
1505
2412
  const localVarQueryParameter = {};
1506
2413
  // authentication bearer required
1507
2414
  // http bearer authentication required
1508
2415
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1509
2416
  // authentication oauth2 required
1510
- localVarHeaderParameter['Content-Type'] = 'application/json';
2417
+ if (showCursor !== undefined) {
2418
+ localVarQueryParameter['show_cursor'] = showCursor;
2419
+ }
2420
+ if (height !== undefined) {
2421
+ localVarQueryParameter['height'] = height;
2422
+ }
2423
+ if (width !== undefined) {
2424
+ localVarQueryParameter['width'] = width;
2425
+ }
2426
+ if (y !== undefined) {
2427
+ localVarQueryParameter['y'] = y;
2428
+ }
2429
+ if (x !== undefined) {
2430
+ localVarQueryParameter['x'] = x;
2431
+ }
1511
2432
  if (xDaytonaOrganizationID != null) {
1512
2433
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1513
2434
  }
1514
2435
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1515
2436
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1516
2437
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1517
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceRequest, localVarRequestOptions, configuration);
1518
2438
  return {
1519
2439
  url: (0, common_1.toPathString)(localVarUrlObj),
1520
2440
  options: localVarRequestOptions,
1521
2441
  };
1522
2442
  },
1523
2443
  /**
1524
- * Search for files inside sandbox
1525
- * @summary Search files
2444
+ * Take a screenshot of the entire screen
2445
+ * @summary Take screenshot
1526
2446
  * @param {string} sandboxId
1527
- * @param {string} path
1528
- * @param {string} pattern
1529
2447
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2448
+ * @param {boolean} [showCursor]
1530
2449
  * @param {*} [options] Override http request option.
1531
2450
  * @throws {RequiredError}
1532
2451
  */
1533
- searchFiles: async (sandboxId, path, pattern, xDaytonaOrganizationID, options = {}) => {
2452
+ takeScreenshot: async (sandboxId, xDaytonaOrganizationID, showCursor, options = {}) => {
1534
2453
  // verify required parameter 'sandboxId' is not null or undefined
1535
- (0, common_1.assertParamExists)('searchFiles', 'sandboxId', sandboxId);
1536
- // verify required parameter 'path' is not null or undefined
1537
- (0, common_1.assertParamExists)('searchFiles', 'path', path);
1538
- // verify required parameter 'pattern' is not null or undefined
1539
- (0, common_1.assertParamExists)('searchFiles', 'pattern', pattern);
1540
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files/search`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2454
+ (0, common_1.assertParamExists)('takeScreenshot', 'sandboxId', sandboxId);
2455
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/screenshot`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1541
2456
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1542
2457
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1543
2458
  let baseOptions;
@@ -1551,11 +2466,8 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1551
2466
  // http bearer authentication required
1552
2467
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1553
2468
  // authentication oauth2 required
1554
- if (path !== undefined) {
1555
- localVarQueryParameter['path'] = path;
1556
- }
1557
- if (pattern !== undefined) {
1558
- localVarQueryParameter['pattern'] = pattern;
2469
+ if (showCursor !== undefined) {
2470
+ localVarQueryParameter['show_cursor'] = showCursor;
1559
2471
  }
1560
2472
  if (xDaytonaOrganizationID != null) {
1561
2473
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -1569,23 +2481,20 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1569
2481
  };
1570
2482
  },
1571
2483
  /**
1572
- * Set file owner/group/permissions inside sandbox
1573
- * @summary Set file permissions
2484
+ * Type text using keyboard
2485
+ * @summary Type text
1574
2486
  * @param {string} sandboxId
1575
- * @param {string} path
2487
+ * @param {KeyboardTypeRequest} keyboardTypeRequest
1576
2488
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1577
- * @param {string} [owner]
1578
- * @param {string} [group]
1579
- * @param {string} [mode]
1580
2489
  * @param {*} [options] Override http request option.
1581
2490
  * @throws {RequiredError}
1582
2491
  */
1583
- setFilePermissions: async (sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options = {}) => {
2492
+ typeText: async (sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options = {}) => {
1584
2493
  // verify required parameter 'sandboxId' is not null or undefined
1585
- (0, common_1.assertParamExists)('setFilePermissions', 'sandboxId', sandboxId);
1586
- // verify required parameter 'path' is not null or undefined
1587
- (0, common_1.assertParamExists)('setFilePermissions', 'path', path);
1588
- const localVarPath = `/toolbox/{sandboxId}/toolbox/files/permissions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
2494
+ (0, common_1.assertParamExists)('typeText', 'sandboxId', sandboxId);
2495
+ // verify required parameter 'keyboardTypeRequest' is not null or undefined
2496
+ (0, common_1.assertParamExists)('typeText', 'keyboardTypeRequest', keyboardTypeRequest);
2497
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/computeruse/keyboard/type`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1589
2498
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1590
2499
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1591
2500
  let baseOptions;
@@ -1599,24 +2508,14 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
1599
2508
  // http bearer authentication required
1600
2509
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1601
2510
  // authentication oauth2 required
1602
- if (path !== undefined) {
1603
- localVarQueryParameter['path'] = path;
1604
- }
1605
- if (owner !== undefined) {
1606
- localVarQueryParameter['owner'] = owner;
1607
- }
1608
- if (group !== undefined) {
1609
- localVarQueryParameter['group'] = group;
1610
- }
1611
- if (mode !== undefined) {
1612
- localVarQueryParameter['mode'] = mode;
1613
- }
2511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1614
2512
  if (xDaytonaOrganizationID != null) {
1615
2513
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1616
2514
  }
1617
2515
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1618
2516
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1619
2517
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2518
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(keyboardTypeRequest, localVarRequestOptions, configuration);
1620
2519
  return {
1621
2520
  url: (0, common_1.toPathString)(localVarUrlObj),
1622
2521
  options: localVarRequestOptions,
@@ -1718,6 +2617,21 @@ exports.ToolboxApiAxiosParamCreator = ToolboxApiAxiosParamCreator;
1718
2617
  const ToolboxApiFp = function (configuration) {
1719
2618
  const localVarAxiosParamCreator = (0, exports.ToolboxApiAxiosParamCreator)(configuration);
1720
2619
  return {
2620
+ /**
2621
+ * Click mouse at specified coordinates
2622
+ * @summary Click mouse
2623
+ * @param {string} sandboxId
2624
+ * @param {MouseClickRequest} mouseClickRequest
2625
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2626
+ * @param {*} [options] Override http request option.
2627
+ * @throws {RequiredError}
2628
+ */
2629
+ async clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options) {
2630
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options);
2631
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2632
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.clickMouse']?.[localVarOperationServerIndex]?.url;
2633
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2634
+ },
1721
2635
  /**
1722
2636
  * Create folder inside sandbox
1723
2637
  * @summary Create folder
@@ -1794,6 +2708,21 @@ const ToolboxApiFp = function (configuration) {
1794
2708
  const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url;
1795
2709
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1796
2710
  },
2711
+ /**
2712
+ * Drag mouse from start to end coordinates
2713
+ * @summary Drag mouse
2714
+ * @param {string} sandboxId
2715
+ * @param {MouseDragRequest} mouseDragRequest
2716
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2717
+ * @param {*} [options] Override http request option.
2718
+ * @throws {RequiredError}
2719
+ */
2720
+ async dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options) {
2721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options);
2722
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2723
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.dragMouse']?.[localVarOperationServerIndex]?.url;
2724
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2725
+ },
1797
2726
  /**
1798
2727
  * Execute command synchronously inside sandbox
1799
2728
  * @summary Execute command
@@ -1841,6 +2770,34 @@ const ToolboxApiFp = function (configuration) {
1841
2770
  const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url;
1842
2771
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1843
2772
  },
2773
+ /**
2774
+ * Get status of all VNC desktop processes
2775
+ * @summary Get computer use status
2776
+ * @param {string} sandboxId
2777
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2778
+ * @param {*} [options] Override http request option.
2779
+ * @throws {RequiredError}
2780
+ */
2781
+ async getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options) {
2782
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options);
2783
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2784
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getComputerUseStatus']?.[localVarOperationServerIndex]?.url;
2785
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2786
+ },
2787
+ /**
2788
+ * Get information about displays
2789
+ * @summary Get display info
2790
+ * @param {string} sandboxId
2791
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2792
+ * @param {*} [options] Override http request option.
2793
+ * @throws {RequiredError}
2794
+ */
2795
+ async getDisplayInfo(sandboxId, xDaytonaOrganizationID, options) {
2796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDisplayInfo(sandboxId, xDaytonaOrganizationID, options);
2797
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2798
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getDisplayInfo']?.[localVarOperationServerIndex]?.url;
2799
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2800
+ },
1844
2801
  /**
1845
2802
  * Get file info inside sandbox
1846
2803
  * @summary Get file info
@@ -1856,6 +2813,65 @@ const ToolboxApiFp = function (configuration) {
1856
2813
  const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
1857
2814
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1858
2815
  },
2816
+ /**
2817
+ * Get current mouse cursor position
2818
+ * @summary Get mouse position
2819
+ * @param {string} sandboxId
2820
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2821
+ * @param {*} [options] Override http request option.
2822
+ * @throws {RequiredError}
2823
+ */
2824
+ async getMousePosition(sandboxId, xDaytonaOrganizationID, options) {
2825
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMousePosition(sandboxId, xDaytonaOrganizationID, options);
2826
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2827
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getMousePosition']?.[localVarOperationServerIndex]?.url;
2828
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2829
+ },
2830
+ /**
2831
+ * Get error logs for a specific VNC process
2832
+ * @summary Get process errors
2833
+ * @param {string} processName
2834
+ * @param {string} sandboxId
2835
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ */
2839
+ async getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options) {
2840
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options);
2841
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2842
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getProcessErrors']?.[localVarOperationServerIndex]?.url;
2843
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2844
+ },
2845
+ /**
2846
+ * Get logs for a specific VNC process
2847
+ * @summary Get process logs
2848
+ * @param {string} processName
2849
+ * @param {string} sandboxId
2850
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2851
+ * @param {*} [options] Override http request option.
2852
+ * @throws {RequiredError}
2853
+ */
2854
+ async getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options) {
2855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options);
2856
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2857
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getProcessLogs']?.[localVarOperationServerIndex]?.url;
2858
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2859
+ },
2860
+ /**
2861
+ * Get status of a specific VNC process
2862
+ * @summary Get process status
2863
+ * @param {string} processName
2864
+ * @param {string} sandboxId
2865
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2866
+ * @param {*} [options] Override http request option.
2867
+ * @throws {RequiredError}
2868
+ */
2869
+ async getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options) {
2870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options);
2871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2872
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getProcessStatus']?.[localVarOperationServerIndex]?.url;
2873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2874
+ },
1859
2875
  /**
1860
2876
  *
1861
2877
  * @summary Get sandbox project dir
@@ -1918,6 +2934,20 @@ const ToolboxApiFp = function (configuration) {
1918
2934
  const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
1919
2935
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1920
2936
  },
2937
+ /**
2938
+ * Get list of open windows
2939
+ * @summary Get windows
2940
+ * @param {string} sandboxId
2941
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2942
+ * @param {*} [options] Override http request option.
2943
+ * @throws {RequiredError}
2944
+ */
2945
+ async getWindows(sandboxId, xDaytonaOrganizationID, options) {
2946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWindows(sandboxId, xDaytonaOrganizationID, options);
2947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2948
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getWindows']?.[localVarOperationServerIndex]?.url;
2949
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2950
+ },
1921
2951
  /**
1922
2952
  * Add files to git commit
1923
2953
  * @summary Add files
@@ -2231,59 +3261,251 @@ const ToolboxApiFp = function (configuration) {
2231
3261
  * @param {*} [options] Override http request option.
2232
3262
  * @throws {RequiredError}
2233
3263
  */
2234
- async moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
2235
- const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options);
3264
+ async moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
3265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options);
3266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3267
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url;
3268
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3269
+ },
3270
+ /**
3271
+ * Move mouse cursor to specified coordinates
3272
+ * @summary Move mouse
3273
+ * @param {string} sandboxId
3274
+ * @param {MouseMoveRequest} mouseMoveRequest
3275
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3276
+ * @param {*} [options] Override http request option.
3277
+ * @throws {RequiredError}
3278
+ */
3279
+ async moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options) {
3280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options);
3281
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3282
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.moveMouse']?.[localVarOperationServerIndex]?.url;
3283
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3284
+ },
3285
+ /**
3286
+ * Press a hotkey combination
3287
+ * @summary Press hotkey
3288
+ * @param {string} sandboxId
3289
+ * @param {KeyboardHotkeyRequest} keyboardHotkeyRequest
3290
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3291
+ * @param {*} [options] Override http request option.
3292
+ * @throws {RequiredError}
3293
+ */
3294
+ async pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options) {
3295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options);
3296
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3297
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.pressHotkey']?.[localVarOperationServerIndex]?.url;
3298
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3299
+ },
3300
+ /**
3301
+ * Press a key with optional modifiers
3302
+ * @summary Press key
3303
+ * @param {string} sandboxId
3304
+ * @param {KeyboardPressRequest} keyboardPressRequest
3305
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3306
+ * @param {*} [options] Override http request option.
3307
+ * @throws {RequiredError}
3308
+ */
3309
+ async pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options) {
3310
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options);
3311
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3312
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.pressKey']?.[localVarOperationServerIndex]?.url;
3313
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3314
+ },
3315
+ /**
3316
+ * Replace text/pattern in multiple files inside sandbox
3317
+ * @summary Replace in files
3318
+ * @param {string} sandboxId
3319
+ * @param {ReplaceRequest} replaceRequest
3320
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ */
3324
+ async replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
3325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options);
3326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3327
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
3328
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3329
+ },
3330
+ /**
3331
+ * Restart a specific VNC process
3332
+ * @summary Restart process
3333
+ * @param {string} processName
3334
+ * @param {string} sandboxId
3335
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3336
+ * @param {*} [options] Override http request option.
3337
+ * @throws {RequiredError}
3338
+ */
3339
+ async restartProcess(processName, sandboxId, xDaytonaOrganizationID, options) {
3340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restartProcess(processName, sandboxId, xDaytonaOrganizationID, options);
3341
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3342
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.restartProcess']?.[localVarOperationServerIndex]?.url;
3343
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3344
+ },
3345
+ /**
3346
+ * Scroll mouse at specified coordinates
3347
+ * @summary Scroll mouse
3348
+ * @param {string} sandboxId
3349
+ * @param {MouseScrollRequest} mouseScrollRequest
3350
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3351
+ * @param {*} [options] Override http request option.
3352
+ * @throws {RequiredError}
3353
+ */
3354
+ async scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options) {
3355
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options);
3356
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3357
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.scrollMouse']?.[localVarOperationServerIndex]?.url;
3358
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3359
+ },
3360
+ /**
3361
+ * Search for files inside sandbox
3362
+ * @summary Search files
3363
+ * @param {string} sandboxId
3364
+ * @param {string} path
3365
+ * @param {string} pattern
3366
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3367
+ * @param {*} [options] Override http request option.
3368
+ * @throws {RequiredError}
3369
+ */
3370
+ async searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
3371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options);
3372
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3373
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
3374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3375
+ },
3376
+ /**
3377
+ * Set file owner/group/permissions inside sandbox
3378
+ * @summary Set file permissions
3379
+ * @param {string} sandboxId
3380
+ * @param {string} path
3381
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3382
+ * @param {string} [owner]
3383
+ * @param {string} [group]
3384
+ * @param {string} [mode]
3385
+ * @param {*} [options] Override http request option.
3386
+ * @throws {RequiredError}
3387
+ */
3388
+ async setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
3389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options);
3390
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3391
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
3392
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3393
+ },
3394
+ /**
3395
+ * Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
3396
+ * @summary Start computer use processes
3397
+ * @param {string} sandboxId
3398
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3399
+ * @param {*} [options] Override http request option.
3400
+ * @throws {RequiredError}
3401
+ */
3402
+ async startComputerUse(sandboxId, xDaytonaOrganizationID, options) {
3403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startComputerUse(sandboxId, xDaytonaOrganizationID, options);
3404
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3405
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.startComputerUse']?.[localVarOperationServerIndex]?.url;
3406
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3407
+ },
3408
+ /**
3409
+ * Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
3410
+ * @summary Stop computer use processes
3411
+ * @param {string} sandboxId
3412
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3413
+ * @param {*} [options] Override http request option.
3414
+ * @throws {RequiredError}
3415
+ */
3416
+ async stopComputerUse(sandboxId, xDaytonaOrganizationID, options) {
3417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopComputerUse(sandboxId, xDaytonaOrganizationID, options);
3418
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3419
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.stopComputerUse']?.[localVarOperationServerIndex]?.url;
3420
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3421
+ },
3422
+ /**
3423
+ * Take a compressed screenshot of a specific region
3424
+ * @summary Take compressed region screenshot
3425
+ * @param {string} sandboxId
3426
+ * @param {number} height
3427
+ * @param {number} width
3428
+ * @param {number} y
3429
+ * @param {number} x
3430
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3431
+ * @param {number} [scale]
3432
+ * @param {number} [quality]
3433
+ * @param {string} [format]
3434
+ * @param {boolean} [showCursor]
3435
+ * @param {*} [options] Override http request option.
3436
+ * @throws {RequiredError}
3437
+ */
3438
+ async takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
3439
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options);
3440
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3441
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.takeCompressedRegionScreenshot']?.[localVarOperationServerIndex]?.url;
3442
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3443
+ },
3444
+ /**
3445
+ * Take a compressed screenshot with format, quality, and scale options
3446
+ * @summary Take compressed screenshot
3447
+ * @param {string} sandboxId
3448
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3449
+ * @param {number} [scale]
3450
+ * @param {number} [quality]
3451
+ * @param {string} [format]
3452
+ * @param {boolean} [showCursor]
3453
+ * @param {*} [options] Override http request option.
3454
+ * @throws {RequiredError}
3455
+ */
3456
+ async takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
3457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options);
2236
3458
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2237
- const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url;
3459
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.takeCompressedScreenshot']?.[localVarOperationServerIndex]?.url;
2238
3460
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2239
3461
  },
2240
3462
  /**
2241
- * Replace text/pattern in multiple files inside sandbox
2242
- * @summary Replace in files
3463
+ * Take a screenshot of a specific region
3464
+ * @summary Take region screenshot
2243
3465
  * @param {string} sandboxId
2244
- * @param {ReplaceRequest} replaceRequest
3466
+ * @param {number} height
3467
+ * @param {number} width
3468
+ * @param {number} y
3469
+ * @param {number} x
2245
3470
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3471
+ * @param {boolean} [showCursor]
2246
3472
  * @param {*} [options] Override http request option.
2247
3473
  * @throws {RequiredError}
2248
3474
  */
2249
- async replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
2250
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options);
3475
+ async takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options) {
3476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options);
2251
3477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2252
- const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
3478
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.takeRegionScreenshot']?.[localVarOperationServerIndex]?.url;
2253
3479
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2254
3480
  },
2255
3481
  /**
2256
- * Search for files inside sandbox
2257
- * @summary Search files
3482
+ * Take a screenshot of the entire screen
3483
+ * @summary Take screenshot
2258
3484
  * @param {string} sandboxId
2259
- * @param {string} path
2260
- * @param {string} pattern
2261
3485
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3486
+ * @param {boolean} [showCursor]
2262
3487
  * @param {*} [options] Override http request option.
2263
3488
  * @throws {RequiredError}
2264
3489
  */
2265
- async searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
2266
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options);
3490
+ async takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options) {
3491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options);
2267
3492
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2268
- const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
3493
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.takeScreenshot']?.[localVarOperationServerIndex]?.url;
2269
3494
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2270
3495
  },
2271
3496
  /**
2272
- * Set file owner/group/permissions inside sandbox
2273
- * @summary Set file permissions
3497
+ * Type text using keyboard
3498
+ * @summary Type text
2274
3499
  * @param {string} sandboxId
2275
- * @param {string} path
3500
+ * @param {KeyboardTypeRequest} keyboardTypeRequest
2276
3501
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2277
- * @param {string} [owner]
2278
- * @param {string} [group]
2279
- * @param {string} [mode]
2280
3502
  * @param {*} [options] Override http request option.
2281
3503
  * @throws {RequiredError}
2282
3504
  */
2283
- async setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
2284
- const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options);
3505
+ async typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options) {
3506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options);
2285
3507
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2286
- const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
3508
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.typeText']?.[localVarOperationServerIndex]?.url;
2287
3509
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2288
3510
  },
2289
3511
  /**
@@ -2327,6 +3549,20 @@ exports.ToolboxApiFp = ToolboxApiFp;
2327
3549
  const ToolboxApiFactory = function (configuration, basePath, axios) {
2328
3550
  const localVarFp = (0, exports.ToolboxApiFp)(configuration);
2329
3551
  return {
3552
+ /**
3553
+ * Click mouse at specified coordinates
3554
+ * @summary Click mouse
3555
+ * @param {string} sandboxId
3556
+ * @param {MouseClickRequest} mouseClickRequest
3557
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3558
+ * @param {*} [options] Override http request option.
3559
+ * @throws {RequiredError}
3560
+ */
3561
+ clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options) {
3562
+ return localVarFp
3563
+ .clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options)
3564
+ .then((request) => request(axios, basePath));
3565
+ },
2330
3566
  /**
2331
3567
  * Create folder inside sandbox
2332
3568
  * @summary Create folder
@@ -2398,6 +3634,20 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
2398
3634
  .downloadFile(sandboxId, path, xDaytonaOrganizationID, options)
2399
3635
  .then((request) => request(axios, basePath));
2400
3636
  },
3637
+ /**
3638
+ * Drag mouse from start to end coordinates
3639
+ * @summary Drag mouse
3640
+ * @param {string} sandboxId
3641
+ * @param {MouseDragRequest} mouseDragRequest
3642
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3643
+ * @param {*} [options] Override http request option.
3644
+ * @throws {RequiredError}
3645
+ */
3646
+ dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options) {
3647
+ return localVarFp
3648
+ .dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options)
3649
+ .then((request) => request(axios, basePath));
3650
+ },
2401
3651
  /**
2402
3652
  * Execute command synchronously inside sandbox
2403
3653
  * @summary Execute command
@@ -2442,6 +3692,32 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
2442
3692
  .findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
2443
3693
  .then((request) => request(axios, basePath));
2444
3694
  },
3695
+ /**
3696
+ * Get status of all VNC desktop processes
3697
+ * @summary Get computer use status
3698
+ * @param {string} sandboxId
3699
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3700
+ * @param {*} [options] Override http request option.
3701
+ * @throws {RequiredError}
3702
+ */
3703
+ getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options) {
3704
+ return localVarFp
3705
+ .getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options)
3706
+ .then((request) => request(axios, basePath));
3707
+ },
3708
+ /**
3709
+ * Get information about displays
3710
+ * @summary Get display info
3711
+ * @param {string} sandboxId
3712
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3713
+ * @param {*} [options] Override http request option.
3714
+ * @throws {RequiredError}
3715
+ */
3716
+ getDisplayInfo(sandboxId, xDaytonaOrganizationID, options) {
3717
+ return localVarFp
3718
+ .getDisplayInfo(sandboxId, xDaytonaOrganizationID, options)
3719
+ .then((request) => request(axios, basePath));
3720
+ },
2445
3721
  /**
2446
3722
  * Get file info inside sandbox
2447
3723
  * @summary Get file info
@@ -2456,6 +3732,61 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
2456
3732
  .getFileInfo(sandboxId, path, xDaytonaOrganizationID, options)
2457
3733
  .then((request) => request(axios, basePath));
2458
3734
  },
3735
+ /**
3736
+ * Get current mouse cursor position
3737
+ * @summary Get mouse position
3738
+ * @param {string} sandboxId
3739
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3740
+ * @param {*} [options] Override http request option.
3741
+ * @throws {RequiredError}
3742
+ */
3743
+ getMousePosition(sandboxId, xDaytonaOrganizationID, options) {
3744
+ return localVarFp
3745
+ .getMousePosition(sandboxId, xDaytonaOrganizationID, options)
3746
+ .then((request) => request(axios, basePath));
3747
+ },
3748
+ /**
3749
+ * Get error logs for a specific VNC process
3750
+ * @summary Get process errors
3751
+ * @param {string} processName
3752
+ * @param {string} sandboxId
3753
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3754
+ * @param {*} [options] Override http request option.
3755
+ * @throws {RequiredError}
3756
+ */
3757
+ getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options) {
3758
+ return localVarFp
3759
+ .getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options)
3760
+ .then((request) => request(axios, basePath));
3761
+ },
3762
+ /**
3763
+ * Get logs for a specific VNC process
3764
+ * @summary Get process logs
3765
+ * @param {string} processName
3766
+ * @param {string} sandboxId
3767
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3768
+ * @param {*} [options] Override http request option.
3769
+ * @throws {RequiredError}
3770
+ */
3771
+ getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options) {
3772
+ return localVarFp
3773
+ .getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options)
3774
+ .then((request) => request(axios, basePath));
3775
+ },
3776
+ /**
3777
+ * Get status of a specific VNC process
3778
+ * @summary Get process status
3779
+ * @param {string} processName
3780
+ * @param {string} sandboxId
3781
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3782
+ * @param {*} [options] Override http request option.
3783
+ * @throws {RequiredError}
3784
+ */
3785
+ getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options) {
3786
+ return localVarFp
3787
+ .getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options)
3788
+ .then((request) => request(axios, basePath));
3789
+ },
2459
3790
  /**
2460
3791
  *
2461
3792
  * @summary Get sandbox project dir
@@ -2514,6 +3845,19 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
2514
3845
  .getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
2515
3846
  .then((request) => request(axios, basePath));
2516
3847
  },
3848
+ /**
3849
+ * Get list of open windows
3850
+ * @summary Get windows
3851
+ * @param {string} sandboxId
3852
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3853
+ * @param {*} [options] Override http request option.
3854
+ * @throws {RequiredError}
3855
+ */
3856
+ getWindows(sandboxId, xDaytonaOrganizationID, options) {
3857
+ return localVarFp
3858
+ .getWindows(sandboxId, xDaytonaOrganizationID, options)
3859
+ .then((request) => request(axios, basePath));
3860
+ },
2517
3861
  /**
2518
3862
  * Add files to git commit
2519
3863
  * @summary Add files
@@ -2748,114 +4092,294 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
2748
4092
  * @param {*} [options] Override http request option.
2749
4093
  * @throws {RequiredError}
2750
4094
  */
2751
- lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options) {
4095
+ lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options) {
4096
+ return localVarFp
4097
+ .lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
4098
+ .then((request) => request(axios, basePath));
4099
+ },
4100
+ /**
4101
+ * Start Lsp server process inside sandbox project
4102
+ * @summary Start Lsp server
4103
+ * @param {string} sandboxId
4104
+ * @param {LspServerRequest} lspServerRequest
4105
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4106
+ * @param {*} [options] Override http request option.
4107
+ * @throws {RequiredError}
4108
+ */
4109
+ lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
4110
+ return localVarFp
4111
+ .lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
4112
+ .then((request) => request(axios, basePath));
4113
+ },
4114
+ /**
4115
+ * Stop Lsp server process inside sandbox project
4116
+ * @summary Stop Lsp server
4117
+ * @param {string} sandboxId
4118
+ * @param {LspServerRequest} lspServerRequest
4119
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4120
+ * @param {*} [options] Override http request option.
4121
+ * @throws {RequiredError}
4122
+ */
4123
+ lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
4124
+ return localVarFp
4125
+ .lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
4126
+ .then((request) => request(axios, basePath));
4127
+ },
4128
+ /**
4129
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
4130
+ * @summary Call Lsp WorkspaceSymbols
4131
+ * @param {string} sandboxId
4132
+ * @param {string} languageId
4133
+ * @param {string} pathToProject
4134
+ * @param {string} query
4135
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4136
+ * @param {*} [options] Override http request option.
4137
+ * @throws {RequiredError}
4138
+ */
4139
+ lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options) {
4140
+ return localVarFp
4141
+ .lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
4142
+ .then((request) => request(axios, basePath));
4143
+ },
4144
+ /**
4145
+ * Move file inside sandbox
4146
+ * @summary Move file
4147
+ * @param {string} sandboxId
4148
+ * @param {string} source
4149
+ * @param {string} destination
4150
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4151
+ * @param {*} [options] Override http request option.
4152
+ * @throws {RequiredError}
4153
+ */
4154
+ moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
4155
+ return localVarFp
4156
+ .moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options)
4157
+ .then((request) => request(axios, basePath));
4158
+ },
4159
+ /**
4160
+ * Move mouse cursor to specified coordinates
4161
+ * @summary Move mouse
4162
+ * @param {string} sandboxId
4163
+ * @param {MouseMoveRequest} mouseMoveRequest
4164
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4165
+ * @param {*} [options] Override http request option.
4166
+ * @throws {RequiredError}
4167
+ */
4168
+ moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options) {
4169
+ return localVarFp
4170
+ .moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options)
4171
+ .then((request) => request(axios, basePath));
4172
+ },
4173
+ /**
4174
+ * Press a hotkey combination
4175
+ * @summary Press hotkey
4176
+ * @param {string} sandboxId
4177
+ * @param {KeyboardHotkeyRequest} keyboardHotkeyRequest
4178
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4179
+ * @param {*} [options] Override http request option.
4180
+ * @throws {RequiredError}
4181
+ */
4182
+ pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options) {
4183
+ return localVarFp
4184
+ .pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options)
4185
+ .then((request) => request(axios, basePath));
4186
+ },
4187
+ /**
4188
+ * Press a key with optional modifiers
4189
+ * @summary Press key
4190
+ * @param {string} sandboxId
4191
+ * @param {KeyboardPressRequest} keyboardPressRequest
4192
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4193
+ * @param {*} [options] Override http request option.
4194
+ * @throws {RequiredError}
4195
+ */
4196
+ pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options) {
4197
+ return localVarFp
4198
+ .pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options)
4199
+ .then((request) => request(axios, basePath));
4200
+ },
4201
+ /**
4202
+ * Replace text/pattern in multiple files inside sandbox
4203
+ * @summary Replace in files
4204
+ * @param {string} sandboxId
4205
+ * @param {ReplaceRequest} replaceRequest
4206
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4207
+ * @param {*} [options] Override http request option.
4208
+ * @throws {RequiredError}
4209
+ */
4210
+ replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
4211
+ return localVarFp
4212
+ .replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options)
4213
+ .then((request) => request(axios, basePath));
4214
+ },
4215
+ /**
4216
+ * Restart a specific VNC process
4217
+ * @summary Restart process
4218
+ * @param {string} processName
4219
+ * @param {string} sandboxId
4220
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4221
+ * @param {*} [options] Override http request option.
4222
+ * @throws {RequiredError}
4223
+ */
4224
+ restartProcess(processName, sandboxId, xDaytonaOrganizationID, options) {
4225
+ return localVarFp
4226
+ .restartProcess(processName, sandboxId, xDaytonaOrganizationID, options)
4227
+ .then((request) => request(axios, basePath));
4228
+ },
4229
+ /**
4230
+ * Scroll mouse at specified coordinates
4231
+ * @summary Scroll mouse
4232
+ * @param {string} sandboxId
4233
+ * @param {MouseScrollRequest} mouseScrollRequest
4234
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4235
+ * @param {*} [options] Override http request option.
4236
+ * @throws {RequiredError}
4237
+ */
4238
+ scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options) {
4239
+ return localVarFp
4240
+ .scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options)
4241
+ .then((request) => request(axios, basePath));
4242
+ },
4243
+ /**
4244
+ * Search for files inside sandbox
4245
+ * @summary Search files
4246
+ * @param {string} sandboxId
4247
+ * @param {string} path
4248
+ * @param {string} pattern
4249
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4250
+ * @param {*} [options] Override http request option.
4251
+ * @throws {RequiredError}
4252
+ */
4253
+ searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
4254
+ return localVarFp
4255
+ .searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
4256
+ .then((request) => request(axios, basePath));
4257
+ },
4258
+ /**
4259
+ * Set file owner/group/permissions inside sandbox
4260
+ * @summary Set file permissions
4261
+ * @param {string} sandboxId
4262
+ * @param {string} path
4263
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4264
+ * @param {string} [owner]
4265
+ * @param {string} [group]
4266
+ * @param {string} [mode]
4267
+ * @param {*} [options] Override http request option.
4268
+ * @throws {RequiredError}
4269
+ */
4270
+ setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
2752
4271
  return localVarFp
2753
- .lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
4272
+ .setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options)
2754
4273
  .then((request) => request(axios, basePath));
2755
4274
  },
2756
4275
  /**
2757
- * Start Lsp server process inside sandbox project
2758
- * @summary Start Lsp server
4276
+ * Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
4277
+ * @summary Start computer use processes
2759
4278
  * @param {string} sandboxId
2760
- * @param {LspServerRequest} lspServerRequest
2761
4279
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2762
4280
  * @param {*} [options] Override http request option.
2763
4281
  * @throws {RequiredError}
2764
4282
  */
2765
- lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
4283
+ startComputerUse(sandboxId, xDaytonaOrganizationID, options) {
2766
4284
  return localVarFp
2767
- .lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
4285
+ .startComputerUse(sandboxId, xDaytonaOrganizationID, options)
2768
4286
  .then((request) => request(axios, basePath));
2769
4287
  },
2770
4288
  /**
2771
- * Stop Lsp server process inside sandbox project
2772
- * @summary Stop Lsp server
4289
+ * Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
4290
+ * @summary Stop computer use processes
2773
4291
  * @param {string} sandboxId
2774
- * @param {LspServerRequest} lspServerRequest
2775
4292
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2776
4293
  * @param {*} [options] Override http request option.
2777
4294
  * @throws {RequiredError}
2778
4295
  */
2779
- lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
4296
+ stopComputerUse(sandboxId, xDaytonaOrganizationID, options) {
2780
4297
  return localVarFp
2781
- .lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
4298
+ .stopComputerUse(sandboxId, xDaytonaOrganizationID, options)
2782
4299
  .then((request) => request(axios, basePath));
2783
4300
  },
2784
4301
  /**
2785
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2786
- * @summary Call Lsp WorkspaceSymbols
4302
+ * Take a compressed screenshot of a specific region
4303
+ * @summary Take compressed region screenshot
2787
4304
  * @param {string} sandboxId
2788
- * @param {string} languageId
2789
- * @param {string} pathToProject
2790
- * @param {string} query
4305
+ * @param {number} height
4306
+ * @param {number} width
4307
+ * @param {number} y
4308
+ * @param {number} x
2791
4309
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4310
+ * @param {number} [scale]
4311
+ * @param {number} [quality]
4312
+ * @param {string} [format]
4313
+ * @param {boolean} [showCursor]
2792
4314
  * @param {*} [options] Override http request option.
2793
4315
  * @throws {RequiredError}
2794
4316
  */
2795
- lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options) {
4317
+ takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
2796
4318
  return localVarFp
2797
- .lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
4319
+ .takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options)
2798
4320
  .then((request) => request(axios, basePath));
2799
4321
  },
2800
4322
  /**
2801
- * Move file inside sandbox
2802
- * @summary Move file
4323
+ * Take a compressed screenshot with format, quality, and scale options
4324
+ * @summary Take compressed screenshot
2803
4325
  * @param {string} sandboxId
2804
- * @param {string} source
2805
- * @param {string} destination
2806
4326
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4327
+ * @param {number} [scale]
4328
+ * @param {number} [quality]
4329
+ * @param {string} [format]
4330
+ * @param {boolean} [showCursor]
2807
4331
  * @param {*} [options] Override http request option.
2808
4332
  * @throws {RequiredError}
2809
4333
  */
2810
- moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
4334
+ takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
2811
4335
  return localVarFp
2812
- .moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options)
4336
+ .takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options)
2813
4337
  .then((request) => request(axios, basePath));
2814
4338
  },
2815
4339
  /**
2816
- * Replace text/pattern in multiple files inside sandbox
2817
- * @summary Replace in files
4340
+ * Take a screenshot of a specific region
4341
+ * @summary Take region screenshot
2818
4342
  * @param {string} sandboxId
2819
- * @param {ReplaceRequest} replaceRequest
4343
+ * @param {number} height
4344
+ * @param {number} width
4345
+ * @param {number} y
4346
+ * @param {number} x
2820
4347
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4348
+ * @param {boolean} [showCursor]
2821
4349
  * @param {*} [options] Override http request option.
2822
4350
  * @throws {RequiredError}
2823
4351
  */
2824
- replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
4352
+ takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options) {
2825
4353
  return localVarFp
2826
- .replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options)
4354
+ .takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options)
2827
4355
  .then((request) => request(axios, basePath));
2828
4356
  },
2829
4357
  /**
2830
- * Search for files inside sandbox
2831
- * @summary Search files
4358
+ * Take a screenshot of the entire screen
4359
+ * @summary Take screenshot
2832
4360
  * @param {string} sandboxId
2833
- * @param {string} path
2834
- * @param {string} pattern
2835
4361
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4362
+ * @param {boolean} [showCursor]
2836
4363
  * @param {*} [options] Override http request option.
2837
4364
  * @throws {RequiredError}
2838
4365
  */
2839
- searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
4366
+ takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options) {
2840
4367
  return localVarFp
2841
- .searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
4368
+ .takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options)
2842
4369
  .then((request) => request(axios, basePath));
2843
4370
  },
2844
4371
  /**
2845
- * Set file owner/group/permissions inside sandbox
2846
- * @summary Set file permissions
4372
+ * Type text using keyboard
4373
+ * @summary Type text
2847
4374
  * @param {string} sandboxId
2848
- * @param {string} path
4375
+ * @param {KeyboardTypeRequest} keyboardTypeRequest
2849
4376
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2850
- * @param {string} [owner]
2851
- * @param {string} [group]
2852
- * @param {string} [mode]
2853
4377
  * @param {*} [options] Override http request option.
2854
4378
  * @throws {RequiredError}
2855
4379
  */
2856
- setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
4380
+ typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options) {
2857
4381
  return localVarFp
2858
- .setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options)
4382
+ .typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options)
2859
4383
  .then((request) => request(axios, basePath));
2860
4384
  },
2861
4385
  /**
@@ -2897,6 +4421,21 @@ exports.ToolboxApiFactory = ToolboxApiFactory;
2897
4421
  * @extends {BaseAPI}
2898
4422
  */
2899
4423
  class ToolboxApi extends base_1.BaseAPI {
4424
+ /**
4425
+ * Click mouse at specified coordinates
4426
+ * @summary Click mouse
4427
+ * @param {string} sandboxId
4428
+ * @param {MouseClickRequest} mouseClickRequest
4429
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4430
+ * @param {*} [options] Override http request option.
4431
+ * @throws {RequiredError}
4432
+ * @memberof ToolboxApi
4433
+ */
4434
+ clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options) {
4435
+ return (0, exports.ToolboxApiFp)(this.configuration)
4436
+ .clickMouse(sandboxId, mouseClickRequest, xDaytonaOrganizationID, options)
4437
+ .then((request) => request(this.axios, this.basePath));
4438
+ }
2900
4439
  /**
2901
4440
  * Create folder inside sandbox
2902
4441
  * @summary Create folder
@@ -2973,6 +4512,21 @@ class ToolboxApi extends base_1.BaseAPI {
2973
4512
  .downloadFile(sandboxId, path, xDaytonaOrganizationID, options)
2974
4513
  .then((request) => request(this.axios, this.basePath));
2975
4514
  }
4515
+ /**
4516
+ * Drag mouse from start to end coordinates
4517
+ * @summary Drag mouse
4518
+ * @param {string} sandboxId
4519
+ * @param {MouseDragRequest} mouseDragRequest
4520
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4521
+ * @param {*} [options] Override http request option.
4522
+ * @throws {RequiredError}
4523
+ * @memberof ToolboxApi
4524
+ */
4525
+ dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options) {
4526
+ return (0, exports.ToolboxApiFp)(this.configuration)
4527
+ .dragMouse(sandboxId, mouseDragRequest, xDaytonaOrganizationID, options)
4528
+ .then((request) => request(this.axios, this.basePath));
4529
+ }
2976
4530
  /**
2977
4531
  * Execute command synchronously inside sandbox
2978
4532
  * @summary Execute command
@@ -3020,6 +4574,34 @@ class ToolboxApi extends base_1.BaseAPI {
3020
4574
  .findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
3021
4575
  .then((request) => request(this.axios, this.basePath));
3022
4576
  }
4577
+ /**
4578
+ * Get status of all VNC desktop processes
4579
+ * @summary Get computer use status
4580
+ * @param {string} sandboxId
4581
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4582
+ * @param {*} [options] Override http request option.
4583
+ * @throws {RequiredError}
4584
+ * @memberof ToolboxApi
4585
+ */
4586
+ getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options) {
4587
+ return (0, exports.ToolboxApiFp)(this.configuration)
4588
+ .getComputerUseStatus(sandboxId, xDaytonaOrganizationID, options)
4589
+ .then((request) => request(this.axios, this.basePath));
4590
+ }
4591
+ /**
4592
+ * Get information about displays
4593
+ * @summary Get display info
4594
+ * @param {string} sandboxId
4595
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4596
+ * @param {*} [options] Override http request option.
4597
+ * @throws {RequiredError}
4598
+ * @memberof ToolboxApi
4599
+ */
4600
+ getDisplayInfo(sandboxId, xDaytonaOrganizationID, options) {
4601
+ return (0, exports.ToolboxApiFp)(this.configuration)
4602
+ .getDisplayInfo(sandboxId, xDaytonaOrganizationID, options)
4603
+ .then((request) => request(this.axios, this.basePath));
4604
+ }
3023
4605
  /**
3024
4606
  * Get file info inside sandbox
3025
4607
  * @summary Get file info
@@ -3035,6 +4617,65 @@ class ToolboxApi extends base_1.BaseAPI {
3035
4617
  .getFileInfo(sandboxId, path, xDaytonaOrganizationID, options)
3036
4618
  .then((request) => request(this.axios, this.basePath));
3037
4619
  }
4620
+ /**
4621
+ * Get current mouse cursor position
4622
+ * @summary Get mouse position
4623
+ * @param {string} sandboxId
4624
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4625
+ * @param {*} [options] Override http request option.
4626
+ * @throws {RequiredError}
4627
+ * @memberof ToolboxApi
4628
+ */
4629
+ getMousePosition(sandboxId, xDaytonaOrganizationID, options) {
4630
+ return (0, exports.ToolboxApiFp)(this.configuration)
4631
+ .getMousePosition(sandboxId, xDaytonaOrganizationID, options)
4632
+ .then((request) => request(this.axios, this.basePath));
4633
+ }
4634
+ /**
4635
+ * Get error logs for a specific VNC process
4636
+ * @summary Get process errors
4637
+ * @param {string} processName
4638
+ * @param {string} sandboxId
4639
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4640
+ * @param {*} [options] Override http request option.
4641
+ * @throws {RequiredError}
4642
+ * @memberof ToolboxApi
4643
+ */
4644
+ getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options) {
4645
+ return (0, exports.ToolboxApiFp)(this.configuration)
4646
+ .getProcessErrors(processName, sandboxId, xDaytonaOrganizationID, options)
4647
+ .then((request) => request(this.axios, this.basePath));
4648
+ }
4649
+ /**
4650
+ * Get logs for a specific VNC process
4651
+ * @summary Get process logs
4652
+ * @param {string} processName
4653
+ * @param {string} sandboxId
4654
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4655
+ * @param {*} [options] Override http request option.
4656
+ * @throws {RequiredError}
4657
+ * @memberof ToolboxApi
4658
+ */
4659
+ getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options) {
4660
+ return (0, exports.ToolboxApiFp)(this.configuration)
4661
+ .getProcessLogs(processName, sandboxId, xDaytonaOrganizationID, options)
4662
+ .then((request) => request(this.axios, this.basePath));
4663
+ }
4664
+ /**
4665
+ * Get status of a specific VNC process
4666
+ * @summary Get process status
4667
+ * @param {string} processName
4668
+ * @param {string} sandboxId
4669
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4670
+ * @param {*} [options] Override http request option.
4671
+ * @throws {RequiredError}
4672
+ * @memberof ToolboxApi
4673
+ */
4674
+ getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options) {
4675
+ return (0, exports.ToolboxApiFp)(this.configuration)
4676
+ .getProcessStatus(processName, sandboxId, xDaytonaOrganizationID, options)
4677
+ .then((request) => request(this.axios, this.basePath));
4678
+ }
3038
4679
  /**
3039
4680
  *
3040
4681
  * @summary Get sandbox project dir
@@ -3097,6 +4738,20 @@ class ToolboxApi extends base_1.BaseAPI {
3097
4738
  .getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
3098
4739
  .then((request) => request(this.axios, this.basePath));
3099
4740
  }
4741
+ /**
4742
+ * Get list of open windows
4743
+ * @summary Get windows
4744
+ * @param {string} sandboxId
4745
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4746
+ * @param {*} [options] Override http request option.
4747
+ * @throws {RequiredError}
4748
+ * @memberof ToolboxApi
4749
+ */
4750
+ getWindows(sandboxId, xDaytonaOrganizationID, options) {
4751
+ return (0, exports.ToolboxApiFp)(this.configuration)
4752
+ .getWindows(sandboxId, xDaytonaOrganizationID, options)
4753
+ .then((request) => request(this.axios, this.basePath));
4754
+ }
3100
4755
  /**
3101
4756
  * Add files to git commit
3102
4757
  * @summary Add files
@@ -3416,6 +5071,51 @@ class ToolboxApi extends base_1.BaseAPI {
3416
5071
  .moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options)
3417
5072
  .then((request) => request(this.axios, this.basePath));
3418
5073
  }
5074
+ /**
5075
+ * Move mouse cursor to specified coordinates
5076
+ * @summary Move mouse
5077
+ * @param {string} sandboxId
5078
+ * @param {MouseMoveRequest} mouseMoveRequest
5079
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5080
+ * @param {*} [options] Override http request option.
5081
+ * @throws {RequiredError}
5082
+ * @memberof ToolboxApi
5083
+ */
5084
+ moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options) {
5085
+ return (0, exports.ToolboxApiFp)(this.configuration)
5086
+ .moveMouse(sandboxId, mouseMoveRequest, xDaytonaOrganizationID, options)
5087
+ .then((request) => request(this.axios, this.basePath));
5088
+ }
5089
+ /**
5090
+ * Press a hotkey combination
5091
+ * @summary Press hotkey
5092
+ * @param {string} sandboxId
5093
+ * @param {KeyboardHotkeyRequest} keyboardHotkeyRequest
5094
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5095
+ * @param {*} [options] Override http request option.
5096
+ * @throws {RequiredError}
5097
+ * @memberof ToolboxApi
5098
+ */
5099
+ pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options) {
5100
+ return (0, exports.ToolboxApiFp)(this.configuration)
5101
+ .pressHotkey(sandboxId, keyboardHotkeyRequest, xDaytonaOrganizationID, options)
5102
+ .then((request) => request(this.axios, this.basePath));
5103
+ }
5104
+ /**
5105
+ * Press a key with optional modifiers
5106
+ * @summary Press key
5107
+ * @param {string} sandboxId
5108
+ * @param {KeyboardPressRequest} keyboardPressRequest
5109
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5110
+ * @param {*} [options] Override http request option.
5111
+ * @throws {RequiredError}
5112
+ * @memberof ToolboxApi
5113
+ */
5114
+ pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options) {
5115
+ return (0, exports.ToolboxApiFp)(this.configuration)
5116
+ .pressKey(sandboxId, keyboardPressRequest, xDaytonaOrganizationID, options)
5117
+ .then((request) => request(this.axios, this.basePath));
5118
+ }
3419
5119
  /**
3420
5120
  * Replace text/pattern in multiple files inside sandbox
3421
5121
  * @summary Replace in files
@@ -3431,6 +5131,36 @@ class ToolboxApi extends base_1.BaseAPI {
3431
5131
  .replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options)
3432
5132
  .then((request) => request(this.axios, this.basePath));
3433
5133
  }
5134
+ /**
5135
+ * Restart a specific VNC process
5136
+ * @summary Restart process
5137
+ * @param {string} processName
5138
+ * @param {string} sandboxId
5139
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5140
+ * @param {*} [options] Override http request option.
5141
+ * @throws {RequiredError}
5142
+ * @memberof ToolboxApi
5143
+ */
5144
+ restartProcess(processName, sandboxId, xDaytonaOrganizationID, options) {
5145
+ return (0, exports.ToolboxApiFp)(this.configuration)
5146
+ .restartProcess(processName, sandboxId, xDaytonaOrganizationID, options)
5147
+ .then((request) => request(this.axios, this.basePath));
5148
+ }
5149
+ /**
5150
+ * Scroll mouse at specified coordinates
5151
+ * @summary Scroll mouse
5152
+ * @param {string} sandboxId
5153
+ * @param {MouseScrollRequest} mouseScrollRequest
5154
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5155
+ * @param {*} [options] Override http request option.
5156
+ * @throws {RequiredError}
5157
+ * @memberof ToolboxApi
5158
+ */
5159
+ scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options) {
5160
+ return (0, exports.ToolboxApiFp)(this.configuration)
5161
+ .scrollMouse(sandboxId, mouseScrollRequest, xDaytonaOrganizationID, options)
5162
+ .then((request) => request(this.axios, this.basePath));
5163
+ }
3434
5164
  /**
3435
5165
  * Search for files inside sandbox
3436
5166
  * @summary Search files
@@ -3465,6 +5195,123 @@ class ToolboxApi extends base_1.BaseAPI {
3465
5195
  .setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options)
3466
5196
  .then((request) => request(this.axios, this.basePath));
3467
5197
  }
5198
+ /**
5199
+ * Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
5200
+ * @summary Start computer use processes
5201
+ * @param {string} sandboxId
5202
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5203
+ * @param {*} [options] Override http request option.
5204
+ * @throws {RequiredError}
5205
+ * @memberof ToolboxApi
5206
+ */
5207
+ startComputerUse(sandboxId, xDaytonaOrganizationID, options) {
5208
+ return (0, exports.ToolboxApiFp)(this.configuration)
5209
+ .startComputerUse(sandboxId, xDaytonaOrganizationID, options)
5210
+ .then((request) => request(this.axios, this.basePath));
5211
+ }
5212
+ /**
5213
+ * Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
5214
+ * @summary Stop computer use processes
5215
+ * @param {string} sandboxId
5216
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5217
+ * @param {*} [options] Override http request option.
5218
+ * @throws {RequiredError}
5219
+ * @memberof ToolboxApi
5220
+ */
5221
+ stopComputerUse(sandboxId, xDaytonaOrganizationID, options) {
5222
+ return (0, exports.ToolboxApiFp)(this.configuration)
5223
+ .stopComputerUse(sandboxId, xDaytonaOrganizationID, options)
5224
+ .then((request) => request(this.axios, this.basePath));
5225
+ }
5226
+ /**
5227
+ * Take a compressed screenshot of a specific region
5228
+ * @summary Take compressed region screenshot
5229
+ * @param {string} sandboxId
5230
+ * @param {number} height
5231
+ * @param {number} width
5232
+ * @param {number} y
5233
+ * @param {number} x
5234
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5235
+ * @param {number} [scale]
5236
+ * @param {number} [quality]
5237
+ * @param {string} [format]
5238
+ * @param {boolean} [showCursor]
5239
+ * @param {*} [options] Override http request option.
5240
+ * @throws {RequiredError}
5241
+ * @memberof ToolboxApi
5242
+ */
5243
+ takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
5244
+ return (0, exports.ToolboxApiFp)(this.configuration)
5245
+ .takeCompressedRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, scale, quality, format, showCursor, options)
5246
+ .then((request) => request(this.axios, this.basePath));
5247
+ }
5248
+ /**
5249
+ * Take a compressed screenshot with format, quality, and scale options
5250
+ * @summary Take compressed screenshot
5251
+ * @param {string} sandboxId
5252
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5253
+ * @param {number} [scale]
5254
+ * @param {number} [quality]
5255
+ * @param {string} [format]
5256
+ * @param {boolean} [showCursor]
5257
+ * @param {*} [options] Override http request option.
5258
+ * @throws {RequiredError}
5259
+ * @memberof ToolboxApi
5260
+ */
5261
+ takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options) {
5262
+ return (0, exports.ToolboxApiFp)(this.configuration)
5263
+ .takeCompressedScreenshot(sandboxId, xDaytonaOrganizationID, scale, quality, format, showCursor, options)
5264
+ .then((request) => request(this.axios, this.basePath));
5265
+ }
5266
+ /**
5267
+ * Take a screenshot of a specific region
5268
+ * @summary Take region screenshot
5269
+ * @param {string} sandboxId
5270
+ * @param {number} height
5271
+ * @param {number} width
5272
+ * @param {number} y
5273
+ * @param {number} x
5274
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5275
+ * @param {boolean} [showCursor]
5276
+ * @param {*} [options] Override http request option.
5277
+ * @throws {RequiredError}
5278
+ * @memberof ToolboxApi
5279
+ */
5280
+ takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options) {
5281
+ return (0, exports.ToolboxApiFp)(this.configuration)
5282
+ .takeRegionScreenshot(sandboxId, height, width, y, x, xDaytonaOrganizationID, showCursor, options)
5283
+ .then((request) => request(this.axios, this.basePath));
5284
+ }
5285
+ /**
5286
+ * Take a screenshot of the entire screen
5287
+ * @summary Take screenshot
5288
+ * @param {string} sandboxId
5289
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5290
+ * @param {boolean} [showCursor]
5291
+ * @param {*} [options] Override http request option.
5292
+ * @throws {RequiredError}
5293
+ * @memberof ToolboxApi
5294
+ */
5295
+ takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options) {
5296
+ return (0, exports.ToolboxApiFp)(this.configuration)
5297
+ .takeScreenshot(sandboxId, xDaytonaOrganizationID, showCursor, options)
5298
+ .then((request) => request(this.axios, this.basePath));
5299
+ }
5300
+ /**
5301
+ * Type text using keyboard
5302
+ * @summary Type text
5303
+ * @param {string} sandboxId
5304
+ * @param {KeyboardTypeRequest} keyboardTypeRequest
5305
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
5306
+ * @param {*} [options] Override http request option.
5307
+ * @throws {RequiredError}
5308
+ * @memberof ToolboxApi
5309
+ */
5310
+ typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options) {
5311
+ return (0, exports.ToolboxApiFp)(this.configuration)
5312
+ .typeText(sandboxId, keyboardTypeRequest, xDaytonaOrganizationID, options)
5313
+ .then((request) => request(this.axios, this.basePath));
5314
+ }
3468
5315
  /**
3469
5316
  * Upload file inside sandbox
3470
5317
  * @summary Upload file