@daytona/toolbox-api-client 0.161.0-alpha.2

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 (283) hide show
  1. package/package.json +25 -0
  2. package/src/api/computer-use-api.d.ts +1013 -0
  3. package/src/api/computer-use-api.js +1890 -0
  4. package/src/api/computer-use-api.js.map +1 -0
  5. package/src/api/file-system-api.d.ts +519 -0
  6. package/src/api/file-system-api.js +969 -0
  7. package/src/api/file-system-api.js.map +1 -0
  8. package/src/api/git-api.d.ts +414 -0
  9. package/src/api/git-api.js +768 -0
  10. package/src/api/git-api.js.map +1 -0
  11. package/src/api/info-api.d.ts +135 -0
  12. package/src/api/info-api.js +229 -0
  13. package/src/api/info-api.js.map +1 -0
  14. package/src/api/interpreter-api.d.ts +173 -0
  15. package/src/api/interpreter-api.js +300 -0
  16. package/src/api/interpreter-api.js.map +1 -0
  17. package/src/api/lsp-api.d.ts +292 -0
  18. package/src/api/lsp-api.js +547 -0
  19. package/src/api/lsp-api.js.map +1 -0
  20. package/src/api/port-api.d.ts +104 -0
  21. package/src/api/port-api.js +180 -0
  22. package/src/api/port-api.js.map +1 -0
  23. package/src/api/process-api.d.ts +636 -0
  24. package/src/api/process-api.js +1166 -0
  25. package/src/api/process-api.js.map +1 -0
  26. package/src/api/server-api.d.ts +80 -0
  27. package/src/api/server-api.js +125 -0
  28. package/src/api/server-api.js.map +1 -0
  29. package/src/api.d.ts +20 -0
  30. package/src/api.js +39 -0
  31. package/src/api.js.map +1 -0
  32. package/src/base.d.ts +66 -0
  33. package/src/base.js +69 -0
  34. package/src/base.js.map +1 -0
  35. package/src/common.d.ts +65 -0
  36. package/src/common.js +146 -0
  37. package/src/common.js.map +1 -0
  38. package/src/configuration.d.ts +91 -0
  39. package/src/configuration.js +107 -0
  40. package/src/configuration.js.map +1 -0
  41. package/src/index.d.ts +14 -0
  42. package/src/index.js +33 -0
  43. package/src/index.js.map +1 -0
  44. package/src/models/command.d.ts +36 -0
  45. package/src/models/command.js +16 -0
  46. package/src/models/command.js.map +1 -0
  47. package/src/models/completion-context.d.ts +30 -0
  48. package/src/models/completion-context.js +16 -0
  49. package/src/models/completion-context.js.map +1 -0
  50. package/src/models/completion-item.d.ts +60 -0
  51. package/src/models/completion-item.js +16 -0
  52. package/src/models/completion-item.js.map +1 -0
  53. package/src/models/completion-list.d.ts +31 -0
  54. package/src/models/completion-list.js +16 -0
  55. package/src/models/completion-list.js.map +1 -0
  56. package/src/models/computer-use-start-response.d.ts +33 -0
  57. package/src/models/computer-use-start-response.js +16 -0
  58. package/src/models/computer-use-start-response.js.map +1 -0
  59. package/src/models/computer-use-status-response.d.ts +24 -0
  60. package/src/models/computer-use-status-response.js +16 -0
  61. package/src/models/computer-use-status-response.js.map +1 -0
  62. package/src/models/computer-use-stop-response.d.ts +33 -0
  63. package/src/models/computer-use-stop-response.js +16 -0
  64. package/src/models/computer-use-stop-response.js.map +1 -0
  65. package/src/models/create-context-request.d.ts +30 -0
  66. package/src/models/create-context-request.js +16 -0
  67. package/src/models/create-context-request.js.map +1 -0
  68. package/src/models/create-session-request.d.ts +24 -0
  69. package/src/models/create-session-request.js +16 -0
  70. package/src/models/create-session-request.js.map +1 -0
  71. package/src/models/display-info-response.d.ts +25 -0
  72. package/src/models/display-info-response.js +16 -0
  73. package/src/models/display-info-response.js.map +1 -0
  74. package/src/models/display-info.d.ts +54 -0
  75. package/src/models/display-info.js +16 -0
  76. package/src/models/display-info.js.map +1 -0
  77. package/src/models/execute-request.d.ts +36 -0
  78. package/src/models/execute-request.js +16 -0
  79. package/src/models/execute-request.js.map +1 -0
  80. package/src/models/execute-response.d.ts +30 -0
  81. package/src/models/execute-response.js +16 -0
  82. package/src/models/execute-response.js.map +1 -0
  83. package/src/models/file-info.d.ts +66 -0
  84. package/src/models/file-info.js +16 -0
  85. package/src/models/file-info.js.map +1 -0
  86. package/src/models/file-status.d.ts +43 -0
  87. package/src/models/file-status.js +16 -0
  88. package/src/models/file-status.js.map +1 -0
  89. package/src/models/files-download-request.d.ts +24 -0
  90. package/src/models/files-download-request.js +16 -0
  91. package/src/models/files-download-request.js.map +1 -0
  92. package/src/models/git-add-request.d.ts +30 -0
  93. package/src/models/git-add-request.js +16 -0
  94. package/src/models/git-add-request.js.map +1 -0
  95. package/src/models/git-branch-request.d.ts +30 -0
  96. package/src/models/git-branch-request.js +16 -0
  97. package/src/models/git-branch-request.js.map +1 -0
  98. package/src/models/git-checkout-request.d.ts +30 -0
  99. package/src/models/git-checkout-request.js +16 -0
  100. package/src/models/git-checkout-request.js.map +1 -0
  101. package/src/models/git-clone-request.d.ts +54 -0
  102. package/src/models/git-clone-request.js +16 -0
  103. package/src/models/git-clone-request.js.map +1 -0
  104. package/src/models/git-commit-info.d.ts +48 -0
  105. package/src/models/git-commit-info.js +16 -0
  106. package/src/models/git-commit-info.js.map +1 -0
  107. package/src/models/git-commit-request.d.ts +48 -0
  108. package/src/models/git-commit-request.js +16 -0
  109. package/src/models/git-commit-request.js.map +1 -0
  110. package/src/models/git-commit-response.d.ts +24 -0
  111. package/src/models/git-commit-response.js +16 -0
  112. package/src/models/git-commit-response.js.map +1 -0
  113. package/src/models/git-git-delete-branch-request.d.ts +30 -0
  114. package/src/models/git-git-delete-branch-request.js +16 -0
  115. package/src/models/git-git-delete-branch-request.js.map +1 -0
  116. package/src/models/git-repo-request.d.ts +36 -0
  117. package/src/models/git-repo-request.js +16 -0
  118. package/src/models/git-repo-request.js.map +1 -0
  119. package/src/models/git-status.d.ts +49 -0
  120. package/src/models/git-status.js +16 -0
  121. package/src/models/git-status.js.map +1 -0
  122. package/src/models/index.d.ts +79 -0
  123. package/src/models/index.js +96 -0
  124. package/src/models/index.js.map +1 -0
  125. package/src/models/initialize-request.d.ts +24 -0
  126. package/src/models/initialize-request.js +16 -0
  127. package/src/models/initialize-request.js.map +1 -0
  128. package/src/models/interpreter-context.d.ts +48 -0
  129. package/src/models/interpreter-context.js +16 -0
  130. package/src/models/interpreter-context.js.map +1 -0
  131. package/src/models/is-port-in-use-response.d.ts +24 -0
  132. package/src/models/is-port-in-use-response.js +16 -0
  133. package/src/models/is-port-in-use-response.js.map +1 -0
  134. package/src/models/keyboard-hotkey-request.d.ts +24 -0
  135. package/src/models/keyboard-hotkey-request.js +16 -0
  136. package/src/models/keyboard-hotkey-request.js.map +1 -0
  137. package/src/models/keyboard-press-request.d.ts +30 -0
  138. package/src/models/keyboard-press-request.js +16 -0
  139. package/src/models/keyboard-press-request.js.map +1 -0
  140. package/src/models/keyboard-type-request.d.ts +30 -0
  141. package/src/models/keyboard-type-request.js +16 -0
  142. package/src/models/keyboard-type-request.js.map +1 -0
  143. package/src/models/list-branch-response.d.ts +24 -0
  144. package/src/models/list-branch-response.js +16 -0
  145. package/src/models/list-branch-response.js.map +1 -0
  146. package/src/models/list-contexts-response.d.ts +25 -0
  147. package/src/models/list-contexts-response.js +16 -0
  148. package/src/models/list-contexts-response.js.map +1 -0
  149. package/src/models/list-recordings-response.d.ts +25 -0
  150. package/src/models/list-recordings-response.js +16 -0
  151. package/src/models/list-recordings-response.js.map +1 -0
  152. package/src/models/lsp-completion-params.d.ts +50 -0
  153. package/src/models/lsp-completion-params.js +16 -0
  154. package/src/models/lsp-completion-params.js.map +1 -0
  155. package/src/models/lsp-document-request.d.ts +36 -0
  156. package/src/models/lsp-document-request.js +16 -0
  157. package/src/models/lsp-document-request.js.map +1 -0
  158. package/src/models/lsp-location.d.ts +31 -0
  159. package/src/models/lsp-location.js +16 -0
  160. package/src/models/lsp-location.js.map +1 -0
  161. package/src/models/lsp-position.d.ts +30 -0
  162. package/src/models/lsp-position.js +16 -0
  163. package/src/models/lsp-position.js.map +1 -0
  164. package/src/models/lsp-range.d.ts +31 -0
  165. package/src/models/lsp-range.js +16 -0
  166. package/src/models/lsp-range.js.map +1 -0
  167. package/src/models/lsp-server-request.d.ts +30 -0
  168. package/src/models/lsp-server-request.js +16 -0
  169. package/src/models/lsp-server-request.js.map +1 -0
  170. package/src/models/lsp-symbol.d.ts +37 -0
  171. package/src/models/lsp-symbol.js +16 -0
  172. package/src/models/lsp-symbol.js.map +1 -0
  173. package/src/models/match.d.ts +36 -0
  174. package/src/models/match.js +16 -0
  175. package/src/models/match.js.map +1 -0
  176. package/src/models/mouse-click-request.d.ts +42 -0
  177. package/src/models/mouse-click-request.js +16 -0
  178. package/src/models/mouse-click-request.js.map +1 -0
  179. package/src/models/mouse-click-response.d.ts +30 -0
  180. package/src/models/mouse-click-response.js +16 -0
  181. package/src/models/mouse-click-response.js.map +1 -0
  182. package/src/models/mouse-drag-request.d.ts +48 -0
  183. package/src/models/mouse-drag-request.js +16 -0
  184. package/src/models/mouse-drag-request.js.map +1 -0
  185. package/src/models/mouse-drag-response.d.ts +30 -0
  186. package/src/models/mouse-drag-response.js +16 -0
  187. package/src/models/mouse-drag-response.js.map +1 -0
  188. package/src/models/mouse-move-request.d.ts +30 -0
  189. package/src/models/mouse-move-request.js +16 -0
  190. package/src/models/mouse-move-request.js.map +1 -0
  191. package/src/models/mouse-position-response.d.ts +30 -0
  192. package/src/models/mouse-position-response.js +16 -0
  193. package/src/models/mouse-position-response.js.map +1 -0
  194. package/src/models/mouse-scroll-request.d.ts +42 -0
  195. package/src/models/mouse-scroll-request.js +16 -0
  196. package/src/models/mouse-scroll-request.js.map +1 -0
  197. package/src/models/port-list.d.ts +24 -0
  198. package/src/models/port-list.js +16 -0
  199. package/src/models/port-list.js.map +1 -0
  200. package/src/models/position.d.ts +30 -0
  201. package/src/models/position.js +16 -0
  202. package/src/models/position.js.map +1 -0
  203. package/src/models/process-errors-response.d.ts +30 -0
  204. package/src/models/process-errors-response.js +16 -0
  205. package/src/models/process-errors-response.js.map +1 -0
  206. package/src/models/process-logs-response.d.ts +30 -0
  207. package/src/models/process-logs-response.js +16 -0
  208. package/src/models/process-logs-response.js.map +1 -0
  209. package/src/models/process-restart-response.d.ts +30 -0
  210. package/src/models/process-restart-response.js +16 -0
  211. package/src/models/process-restart-response.js.map +1 -0
  212. package/src/models/process-status-response.d.ts +30 -0
  213. package/src/models/process-status-response.js +16 -0
  214. package/src/models/process-status-response.js.map +1 -0
  215. package/src/models/process-status.d.ts +42 -0
  216. package/src/models/process-status.js +16 -0
  217. package/src/models/process-status.js.map +1 -0
  218. package/src/models/pty-create-request.d.ts +56 -0
  219. package/src/models/pty-create-request.js +16 -0
  220. package/src/models/pty-create-request.js.map +1 -0
  221. package/src/models/pty-create-response.d.ts +24 -0
  222. package/src/models/pty-create-response.js +16 -0
  223. package/src/models/pty-create-response.js.map +1 -0
  224. package/src/models/pty-list-response.d.ts +25 -0
  225. package/src/models/pty-list-response.js +16 -0
  226. package/src/models/pty-list-response.js.map +1 -0
  227. package/src/models/pty-resize-request.d.ts +30 -0
  228. package/src/models/pty-resize-request.js +16 -0
  229. package/src/models/pty-resize-request.js.map +1 -0
  230. package/src/models/pty-session-info.d.ts +68 -0
  231. package/src/models/pty-session-info.js +16 -0
  232. package/src/models/pty-session-info.js.map +1 -0
  233. package/src/models/recording.d.ts +66 -0
  234. package/src/models/recording.js +16 -0
  235. package/src/models/recording.js.map +1 -0
  236. package/src/models/replace-request.d.ts +36 -0
  237. package/src/models/replace-request.js +16 -0
  238. package/src/models/replace-request.js.map +1 -0
  239. package/src/models/replace-result.d.ts +36 -0
  240. package/src/models/replace-result.js +16 -0
  241. package/src/models/replace-result.js.map +1 -0
  242. package/src/models/screenshot-response.d.ts +37 -0
  243. package/src/models/screenshot-response.js +16 -0
  244. package/src/models/screenshot-response.js.map +1 -0
  245. package/src/models/scroll-response.d.ts +24 -0
  246. package/src/models/scroll-response.js +16 -0
  247. package/src/models/scroll-response.js.map +1 -0
  248. package/src/models/search-files-response.d.ts +24 -0
  249. package/src/models/search-files-response.js +16 -0
  250. package/src/models/search-files-response.js.map +1 -0
  251. package/src/models/session-execute-request.d.ts +42 -0
  252. package/src/models/session-execute-request.js +16 -0
  253. package/src/models/session-execute-request.js.map +1 -0
  254. package/src/models/session-execute-response.d.ts +48 -0
  255. package/src/models/session-execute-response.js +16 -0
  256. package/src/models/session-execute-response.js.map +1 -0
  257. package/src/models/session-send-input-request.d.ts +24 -0
  258. package/src/models/session-send-input-request.js +16 -0
  259. package/src/models/session-send-input-request.js.map +1 -0
  260. package/src/models/session.d.ts +31 -0
  261. package/src/models/session.js +16 -0
  262. package/src/models/session.js.map +1 -0
  263. package/src/models/start-recording-request.d.ts +24 -0
  264. package/src/models/start-recording-request.js +16 -0
  265. package/src/models/start-recording-request.js.map +1 -0
  266. package/src/models/status.d.ts +27 -0
  267. package/src/models/status.js +32 -0
  268. package/src/models/status.js.map +1 -0
  269. package/src/models/stop-recording-request.d.ts +24 -0
  270. package/src/models/stop-recording-request.js +16 -0
  271. package/src/models/stop-recording-request.js.map +1 -0
  272. package/src/models/user-home-dir-response.d.ts +24 -0
  273. package/src/models/user-home-dir-response.js +16 -0
  274. package/src/models/user-home-dir-response.js.map +1 -0
  275. package/src/models/window-info.d.ts +60 -0
  276. package/src/models/window-info.js +16 -0
  277. package/src/models/window-info.js.map +1 -0
  278. package/src/models/windows-response.d.ts +25 -0
  279. package/src/models/windows-response.js +16 -0
  280. package/src/models/windows-response.js.map +1 -0
  281. package/src/models/work-dir-response.d.ts +24 -0
  282. package/src/models/work-dir-response.js +16 -0
  283. package/src/models/work-dir-response.js.map +1 -0
@@ -0,0 +1,1890 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Toolbox API
6
+ * Daytona Toolbox API
7
+ *
8
+ * The version of the OpenAPI document: v0.0.0-dev
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ComputerUseApi = exports.ComputerUseApiFactory = exports.ComputerUseApiFp = exports.ComputerUseApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * ComputerUseApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const ComputerUseApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ * Click the mouse button at the specified coordinates
31
+ * @summary Click mouse button
32
+ * @param {MouseClickRequest} request Mouse click request
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ click: async (request, options = {}) => {
37
+ // verify required parameter 'request' is not null or undefined
38
+ (0, common_1.assertParamExists)('click', 'request', request);
39
+ const localVarPath = `/computeruse/mouse/click`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
47
+ const localVarHeaderParameter = {};
48
+ const localVarQueryParameter = {};
49
+ localVarHeaderParameter['Content-Type'] = 'application/json';
50
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
54
+ return {
55
+ url: (0, common_1.toPathString)(localVarUrlObj),
56
+ options: localVarRequestOptions,
57
+ };
58
+ },
59
+ /**
60
+ * Delete a recording file by ID
61
+ * @summary Delete a recording
62
+ * @param {string} id Recording ID
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ deleteRecording: async (id, options = {}) => {
67
+ // verify required parameter 'id' is not null or undefined
68
+ (0, common_1.assertParamExists)('deleteRecording', 'id', id);
69
+ const localVarPath = `/computeruse/recordings/{id}`
70
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
71
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
73
+ let baseOptions;
74
+ if (configuration) {
75
+ baseOptions = configuration.baseOptions;
76
+ }
77
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
78
+ const localVarHeaderParameter = {};
79
+ const localVarQueryParameter = {};
80
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
81
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
83
+ return {
84
+ url: (0, common_1.toPathString)(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Download a recording by providing its ID
90
+ * @summary Download a recording
91
+ * @param {string} id Recording ID
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ downloadRecording: async (id, options = {}) => {
96
+ // verify required parameter 'id' is not null or undefined
97
+ (0, common_1.assertParamExists)('downloadRecording', 'id', id);
98
+ const localVarPath = `/computeruse/recordings/{id}/download`
99
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ }
106
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
107
+ const localVarHeaderParameter = {};
108
+ const localVarQueryParameter = {};
109
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
112
+ return {
113
+ url: (0, common_1.toPathString)(localVarUrlObj),
114
+ options: localVarRequestOptions,
115
+ };
116
+ },
117
+ /**
118
+ * Drag the mouse from start to end coordinates
119
+ * @summary Drag mouse
120
+ * @param {MouseDragRequest} request Mouse drag request
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ drag: async (request, options = {}) => {
125
+ // verify required parameter 'request' is not null or undefined
126
+ (0, common_1.assertParamExists)('drag', 'request', request);
127
+ const localVarPath = `/computeruse/mouse/drag`;
128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ }
134
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
135
+ const localVarHeaderParameter = {};
136
+ const localVarQueryParameter = {};
137
+ localVarHeaderParameter['Content-Type'] = 'application/json';
138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
141
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
142
+ return {
143
+ url: (0, common_1.toPathString)(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ /**
148
+ * Get the status of all computer use processes
149
+ * @summary Get computer use process status
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getComputerUseStatus: async (options = {}) => {
154
+ const localVarPath = `/computeruse/process-status`;
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ }
161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
162
+ const localVarHeaderParameter = {};
163
+ const localVarQueryParameter = {};
164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
167
+ return {
168
+ url: (0, common_1.toPathString)(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ },
172
+ /**
173
+ * Get the current status of the computer use system
174
+ * @summary Get computer use status
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ getComputerUseSystemStatus: async (options = {}) => {
179
+ const localVarPath = `/computeruse/status`;
180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ if (configuration) {
184
+ baseOptions = configuration.baseOptions;
185
+ }
186
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
187
+ const localVarHeaderParameter = {};
188
+ const localVarQueryParameter = {};
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
192
+ return {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ };
196
+ },
197
+ /**
198
+ * Get information about all available displays
199
+ * @summary Get display information
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getDisplayInfo: async (options = {}) => {
204
+ const localVarPath = `/computeruse/display/info`;
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ }
211
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
212
+ const localVarHeaderParameter = {};
213
+ const localVarQueryParameter = {};
214
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
217
+ return {
218
+ url: (0, common_1.toPathString)(localVarUrlObj),
219
+ options: localVarRequestOptions,
220
+ };
221
+ },
222
+ /**
223
+ * Get the current mouse cursor position
224
+ * @summary Get mouse position
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ getMousePosition: async (options = {}) => {
229
+ const localVarPath = `/computeruse/mouse/position`;
230
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
231
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
232
+ let baseOptions;
233
+ if (configuration) {
234
+ baseOptions = configuration.baseOptions;
235
+ }
236
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
237
+ const localVarHeaderParameter = {};
238
+ const localVarQueryParameter = {};
239
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
242
+ return {
243
+ url: (0, common_1.toPathString)(localVarUrlObj),
244
+ options: localVarRequestOptions,
245
+ };
246
+ },
247
+ /**
248
+ * Get errors for a specific computer use process
249
+ * @summary Get process errors
250
+ * @param {string} processName Process name to get errors for
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ getProcessErrors: async (processName, options = {}) => {
255
+ // verify required parameter 'processName' is not null or undefined
256
+ (0, common_1.assertParamExists)('getProcessErrors', 'processName', processName);
257
+ const localVarPath = `/computeruse/process/{processName}/errors`
258
+ .replace(`{${"processName"}}`, encodeURIComponent(String(processName)));
259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ let baseOptions;
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ }
265
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
266
+ const localVarHeaderParameter = {};
267
+ const localVarQueryParameter = {};
268
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
271
+ return {
272
+ url: (0, common_1.toPathString)(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ },
276
+ /**
277
+ * Get logs for a specific computer use process
278
+ * @summary Get process logs
279
+ * @param {string} processName Process name to get logs for
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ getProcessLogs: async (processName, options = {}) => {
284
+ // verify required parameter 'processName' is not null or undefined
285
+ (0, common_1.assertParamExists)('getProcessLogs', 'processName', processName);
286
+ const localVarPath = `/computeruse/process/{processName}/logs`
287
+ .replace(`{${"processName"}}`, encodeURIComponent(String(processName)));
288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
289
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
290
+ let baseOptions;
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ }
294
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
295
+ const localVarHeaderParameter = {};
296
+ const localVarQueryParameter = {};
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
300
+ return {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ },
305
+ /**
306
+ * Check if a specific computer use process is running
307
+ * @summary Get specific process status
308
+ * @param {string} processName Process name to check
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ getProcessStatus: async (processName, options = {}) => {
313
+ // verify required parameter 'processName' is not null or undefined
314
+ (0, common_1.assertParamExists)('getProcessStatus', 'processName', processName);
315
+ const localVarPath = `/computeruse/process/{processName}/status`
316
+ .replace(`{${"processName"}}`, encodeURIComponent(String(processName)));
317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
318
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
319
+ let baseOptions;
320
+ if (configuration) {
321
+ baseOptions = configuration.baseOptions;
322
+ }
323
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
324
+ const localVarHeaderParameter = {};
325
+ const localVarQueryParameter = {};
326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
328
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
329
+ return {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ };
333
+ },
334
+ /**
335
+ * Get details of a specific recording by ID
336
+ * @summary Get recording details
337
+ * @param {string} id Recording ID
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ getRecording: async (id, options = {}) => {
342
+ // verify required parameter 'id' is not null or undefined
343
+ (0, common_1.assertParamExists)('getRecording', 'id', id);
344
+ const localVarPath = `/computeruse/recordings/{id}`
345
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
+ let baseOptions;
349
+ if (configuration) {
350
+ baseOptions = configuration.baseOptions;
351
+ }
352
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
353
+ const localVarHeaderParameter = {};
354
+ const localVarQueryParameter = {};
355
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
358
+ return {
359
+ url: (0, common_1.toPathString)(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ /**
364
+ * Get information about all open windows
365
+ * @summary Get windows information
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ getWindows: async (options = {}) => {
370
+ const localVarPath = `/computeruse/display/windows`;
371
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
372
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
373
+ let baseOptions;
374
+ if (configuration) {
375
+ baseOptions = configuration.baseOptions;
376
+ }
377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
378
+ const localVarHeaderParameter = {};
379
+ const localVarQueryParameter = {};
380
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
382
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
383
+ return {
384
+ url: (0, common_1.toPathString)(localVarUrlObj),
385
+ options: localVarRequestOptions,
386
+ };
387
+ },
388
+ /**
389
+ * Get a list of all recordings (active and completed)
390
+ * @summary List all recordings
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ listRecordings: async (options = {}) => {
395
+ const localVarPath = `/computeruse/recordings`;
396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
397
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
398
+ let baseOptions;
399
+ if (configuration) {
400
+ baseOptions = configuration.baseOptions;
401
+ }
402
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
403
+ const localVarHeaderParameter = {};
404
+ const localVarQueryParameter = {};
405
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
408
+ return {
409
+ url: (0, common_1.toPathString)(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ },
413
+ /**
414
+ * Move the mouse cursor to the specified coordinates
415
+ * @summary Move mouse cursor
416
+ * @param {MouseMoveRequest} request Mouse move request
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ moveMouse: async (request, options = {}) => {
421
+ // verify required parameter 'request' is not null or undefined
422
+ (0, common_1.assertParamExists)('moveMouse', 'request', request);
423
+ const localVarPath = `/computeruse/mouse/move`;
424
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
425
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
426
+ let baseOptions;
427
+ if (configuration) {
428
+ baseOptions = configuration.baseOptions;
429
+ }
430
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
431
+ const localVarHeaderParameter = {};
432
+ const localVarQueryParameter = {};
433
+ localVarHeaderParameter['Content-Type'] = 'application/json';
434
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
435
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
437
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
438
+ return {
439
+ url: (0, common_1.toPathString)(localVarUrlObj),
440
+ options: localVarRequestOptions,
441
+ };
442
+ },
443
+ /**
444
+ * Press a hotkey combination (e.g., ctrl+c, cmd+v)
445
+ * @summary Press hotkey
446
+ * @param {KeyboardHotkeyRequest} request Hotkey press request
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ pressHotkey: async (request, options = {}) => {
451
+ // verify required parameter 'request' is not null or undefined
452
+ (0, common_1.assertParamExists)('pressHotkey', 'request', request);
453
+ const localVarPath = `/computeruse/keyboard/hotkey`;
454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
455
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ let baseOptions;
457
+ if (configuration) {
458
+ baseOptions = configuration.baseOptions;
459
+ }
460
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
461
+ const localVarHeaderParameter = {};
462
+ const localVarQueryParameter = {};
463
+ localVarHeaderParameter['Content-Type'] = 'application/json';
464
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
466
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
467
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
468
+ return {
469
+ url: (0, common_1.toPathString)(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ },
473
+ /**
474
+ * Press a key with optional modifiers
475
+ * @summary Press key
476
+ * @param {KeyboardPressRequest} request Key press request
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ pressKey: async (request, options = {}) => {
481
+ // verify required parameter 'request' is not null or undefined
482
+ (0, common_1.assertParamExists)('pressKey', 'request', request);
483
+ const localVarPath = `/computeruse/keyboard/key`;
484
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
485
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
486
+ let baseOptions;
487
+ if (configuration) {
488
+ baseOptions = configuration.baseOptions;
489
+ }
490
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
491
+ const localVarHeaderParameter = {};
492
+ const localVarQueryParameter = {};
493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
494
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
497
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
498
+ return {
499
+ url: (0, common_1.toPathString)(localVarUrlObj),
500
+ options: localVarRequestOptions,
501
+ };
502
+ },
503
+ /**
504
+ * Restart a specific computer use process
505
+ * @summary Restart specific process
506
+ * @param {string} processName Process name to restart
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ restartProcess: async (processName, options = {}) => {
511
+ // verify required parameter 'processName' is not null or undefined
512
+ (0, common_1.assertParamExists)('restartProcess', 'processName', processName);
513
+ const localVarPath = `/computeruse/process/{processName}/restart`
514
+ .replace(`{${"processName"}}`, encodeURIComponent(String(processName)));
515
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
516
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
517
+ let baseOptions;
518
+ if (configuration) {
519
+ baseOptions = configuration.baseOptions;
520
+ }
521
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
522
+ const localVarHeaderParameter = {};
523
+ const localVarQueryParameter = {};
524
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
526
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
527
+ return {
528
+ url: (0, common_1.toPathString)(localVarUrlObj),
529
+ options: localVarRequestOptions,
530
+ };
531
+ },
532
+ /**
533
+ * Scroll the mouse wheel at the specified coordinates
534
+ * @summary Scroll mouse wheel
535
+ * @param {MouseScrollRequest} request Mouse scroll request
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ scroll: async (request, options = {}) => {
540
+ // verify required parameter 'request' is not null or undefined
541
+ (0, common_1.assertParamExists)('scroll', 'request', request);
542
+ const localVarPath = `/computeruse/mouse/scroll`;
543
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
544
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
545
+ let baseOptions;
546
+ if (configuration) {
547
+ baseOptions = configuration.baseOptions;
548
+ }
549
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
550
+ const localVarHeaderParameter = {};
551
+ const localVarQueryParameter = {};
552
+ localVarHeaderParameter['Content-Type'] = 'application/json';
553
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
554
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
555
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
556
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
557
+ return {
558
+ url: (0, common_1.toPathString)(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ };
561
+ },
562
+ /**
563
+ * Start all computer use processes and return their status
564
+ * @summary Start computer use processes
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ startComputerUse: async (options = {}) => {
569
+ const localVarPath = `/computeruse/start`;
570
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
571
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
572
+ let baseOptions;
573
+ if (configuration) {
574
+ baseOptions = configuration.baseOptions;
575
+ }
576
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
577
+ const localVarHeaderParameter = {};
578
+ const localVarQueryParameter = {};
579
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
580
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
582
+ return {
583
+ url: (0, common_1.toPathString)(localVarUrlObj),
584
+ options: localVarRequestOptions,
585
+ };
586
+ },
587
+ /**
588
+ * Start a new screen recording session
589
+ * @summary Start a new recording
590
+ * @param {StartRecordingRequest} [request] Recording options
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ startRecording: async (request, options = {}) => {
595
+ const localVarPath = `/computeruse/recordings/start`;
596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
597
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
598
+ let baseOptions;
599
+ if (configuration) {
600
+ baseOptions = configuration.baseOptions;
601
+ }
602
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
603
+ const localVarHeaderParameter = {};
604
+ const localVarQueryParameter = {};
605
+ localVarHeaderParameter['Content-Type'] = 'application/json';
606
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
608
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
609
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
610
+ return {
611
+ url: (0, common_1.toPathString)(localVarUrlObj),
612
+ options: localVarRequestOptions,
613
+ };
614
+ },
615
+ /**
616
+ * Stop all computer use processes and return their status
617
+ * @summary Stop computer use processes
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ stopComputerUse: async (options = {}) => {
622
+ const localVarPath = `/computeruse/stop`;
623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
624
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
625
+ let baseOptions;
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ }
629
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
630
+ const localVarHeaderParameter = {};
631
+ const localVarQueryParameter = {};
632
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
634
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
635
+ return {
636
+ url: (0, common_1.toPathString)(localVarUrlObj),
637
+ options: localVarRequestOptions,
638
+ };
639
+ },
640
+ /**
641
+ * Stop an active screen recording session
642
+ * @summary Stop a recording
643
+ * @param {StopRecordingRequest} request Recording ID to stop
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ stopRecording: async (request, options = {}) => {
648
+ // verify required parameter 'request' is not null or undefined
649
+ (0, common_1.assertParamExists)('stopRecording', 'request', request);
650
+ const localVarPath = `/computeruse/recordings/stop`;
651
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
652
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
653
+ let baseOptions;
654
+ if (configuration) {
655
+ baseOptions = configuration.baseOptions;
656
+ }
657
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
658
+ const localVarHeaderParameter = {};
659
+ const localVarQueryParameter = {};
660
+ localVarHeaderParameter['Content-Type'] = 'application/json';
661
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
663
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
664
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
665
+ return {
666
+ url: (0, common_1.toPathString)(localVarUrlObj),
667
+ options: localVarRequestOptions,
668
+ };
669
+ },
670
+ /**
671
+ * Take a compressed screenshot of a specific region of the screen
672
+ * @summary Take a compressed region screenshot
673
+ * @param {number} x X coordinate of the region
674
+ * @param {number} y Y coordinate of the region
675
+ * @param {number} width Width of the region
676
+ * @param {number} height Height of the region
677
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
678
+ * @param {string} [format] Image format (png or jpeg)
679
+ * @param {number} [quality] JPEG quality (1-100)
680
+ * @param {number} [scale] Scale factor (0.1-1.0)
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ takeCompressedRegionScreenshot: async (x, y, width, height, showCursor, format, quality, scale, options = {}) => {
685
+ // verify required parameter 'x' is not null or undefined
686
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'x', x);
687
+ // verify required parameter 'y' is not null or undefined
688
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'y', y);
689
+ // verify required parameter 'width' is not null or undefined
690
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'width', width);
691
+ // verify required parameter 'height' is not null or undefined
692
+ (0, common_1.assertParamExists)('takeCompressedRegionScreenshot', 'height', height);
693
+ const localVarPath = `/computeruse/screenshot/region/compressed`;
694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
695
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
696
+ let baseOptions;
697
+ if (configuration) {
698
+ baseOptions = configuration.baseOptions;
699
+ }
700
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
701
+ const localVarHeaderParameter = {};
702
+ const localVarQueryParameter = {};
703
+ if (x !== undefined) {
704
+ localVarQueryParameter['x'] = x;
705
+ }
706
+ if (y !== undefined) {
707
+ localVarQueryParameter['y'] = y;
708
+ }
709
+ if (width !== undefined) {
710
+ localVarQueryParameter['width'] = width;
711
+ }
712
+ if (height !== undefined) {
713
+ localVarQueryParameter['height'] = height;
714
+ }
715
+ if (showCursor !== undefined) {
716
+ localVarQueryParameter['showCursor'] = showCursor;
717
+ }
718
+ if (format !== undefined) {
719
+ localVarQueryParameter['format'] = format;
720
+ }
721
+ if (quality !== undefined) {
722
+ localVarQueryParameter['quality'] = quality;
723
+ }
724
+ if (scale !== undefined) {
725
+ localVarQueryParameter['scale'] = scale;
726
+ }
727
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
729
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
730
+ return {
731
+ url: (0, common_1.toPathString)(localVarUrlObj),
732
+ options: localVarRequestOptions,
733
+ };
734
+ },
735
+ /**
736
+ * Take a compressed screenshot of the entire screen
737
+ * @summary Take a compressed screenshot
738
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
739
+ * @param {string} [format] Image format (png or jpeg)
740
+ * @param {number} [quality] JPEG quality (1-100)
741
+ * @param {number} [scale] Scale factor (0.1-1.0)
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ takeCompressedScreenshot: async (showCursor, format, quality, scale, options = {}) => {
746
+ const localVarPath = `/computeruse/screenshot/compressed`;
747
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
748
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
749
+ let baseOptions;
750
+ if (configuration) {
751
+ baseOptions = configuration.baseOptions;
752
+ }
753
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
754
+ const localVarHeaderParameter = {};
755
+ const localVarQueryParameter = {};
756
+ if (showCursor !== undefined) {
757
+ localVarQueryParameter['showCursor'] = showCursor;
758
+ }
759
+ if (format !== undefined) {
760
+ localVarQueryParameter['format'] = format;
761
+ }
762
+ if (quality !== undefined) {
763
+ localVarQueryParameter['quality'] = quality;
764
+ }
765
+ if (scale !== undefined) {
766
+ localVarQueryParameter['scale'] = scale;
767
+ }
768
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
770
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
771
+ return {
772
+ url: (0, common_1.toPathString)(localVarUrlObj),
773
+ options: localVarRequestOptions,
774
+ };
775
+ },
776
+ /**
777
+ * Take a screenshot of a specific region of the screen
778
+ * @summary Take a region screenshot
779
+ * @param {number} x X coordinate of the region
780
+ * @param {number} y Y coordinate of the region
781
+ * @param {number} width Width of the region
782
+ * @param {number} height Height of the region
783
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ takeRegionScreenshot: async (x, y, width, height, showCursor, options = {}) => {
788
+ // verify required parameter 'x' is not null or undefined
789
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'x', x);
790
+ // verify required parameter 'y' is not null or undefined
791
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'y', y);
792
+ // verify required parameter 'width' is not null or undefined
793
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'width', width);
794
+ // verify required parameter 'height' is not null or undefined
795
+ (0, common_1.assertParamExists)('takeRegionScreenshot', 'height', height);
796
+ const localVarPath = `/computeruse/screenshot/region`;
797
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
798
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
799
+ let baseOptions;
800
+ if (configuration) {
801
+ baseOptions = configuration.baseOptions;
802
+ }
803
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
804
+ const localVarHeaderParameter = {};
805
+ const localVarQueryParameter = {};
806
+ if (x !== undefined) {
807
+ localVarQueryParameter['x'] = x;
808
+ }
809
+ if (y !== undefined) {
810
+ localVarQueryParameter['y'] = y;
811
+ }
812
+ if (width !== undefined) {
813
+ localVarQueryParameter['width'] = width;
814
+ }
815
+ if (height !== undefined) {
816
+ localVarQueryParameter['height'] = height;
817
+ }
818
+ if (showCursor !== undefined) {
819
+ localVarQueryParameter['showCursor'] = showCursor;
820
+ }
821
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
822
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
823
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
824
+ return {
825
+ url: (0, common_1.toPathString)(localVarUrlObj),
826
+ options: localVarRequestOptions,
827
+ };
828
+ },
829
+ /**
830
+ * Take a screenshot of the entire screen
831
+ * @summary Take a screenshot
832
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ */
836
+ takeScreenshot: async (showCursor, options = {}) => {
837
+ const localVarPath = `/computeruse/screenshot`;
838
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
839
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
840
+ let baseOptions;
841
+ if (configuration) {
842
+ baseOptions = configuration.baseOptions;
843
+ }
844
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
845
+ const localVarHeaderParameter = {};
846
+ const localVarQueryParameter = {};
847
+ if (showCursor !== undefined) {
848
+ localVarQueryParameter['showCursor'] = showCursor;
849
+ }
850
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
851
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
852
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
853
+ return {
854
+ url: (0, common_1.toPathString)(localVarUrlObj),
855
+ options: localVarRequestOptions,
856
+ };
857
+ },
858
+ /**
859
+ * Type text with optional delay between keystrokes
860
+ * @summary Type text
861
+ * @param {KeyboardTypeRequest} request Text typing request
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ typeText: async (request, options = {}) => {
866
+ // verify required parameter 'request' is not null or undefined
867
+ (0, common_1.assertParamExists)('typeText', 'request', request);
868
+ const localVarPath = `/computeruse/keyboard/type`;
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
876
+ const localVarHeaderParameter = {};
877
+ const localVarQueryParameter = {};
878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
879
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
881
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
882
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
883
+ return {
884
+ url: (0, common_1.toPathString)(localVarUrlObj),
885
+ options: localVarRequestOptions,
886
+ };
887
+ },
888
+ };
889
+ };
890
+ exports.ComputerUseApiAxiosParamCreator = ComputerUseApiAxiosParamCreator;
891
+ /**
892
+ * ComputerUseApi - functional programming interface
893
+ * @export
894
+ */
895
+ const ComputerUseApiFp = function (configuration) {
896
+ const localVarAxiosParamCreator = (0, exports.ComputerUseApiAxiosParamCreator)(configuration);
897
+ return {
898
+ /**
899
+ * Click the mouse button at the specified coordinates
900
+ * @summary Click mouse button
901
+ * @param {MouseClickRequest} request Mouse click request
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ async click(request, options) {
906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.click(request, options);
907
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
908
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.click']?.[localVarOperationServerIndex]?.url;
909
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ },
911
+ /**
912
+ * Delete a recording file by ID
913
+ * @summary Delete a recording
914
+ * @param {string} id Recording ID
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ */
918
+ async deleteRecording(id, options) {
919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecording(id, options);
920
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
921
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.deleteRecording']?.[localVarOperationServerIndex]?.url;
922
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
923
+ },
924
+ /**
925
+ * Download a recording by providing its ID
926
+ * @summary Download a recording
927
+ * @param {string} id Recording ID
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ async downloadRecording(id, options) {
932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadRecording(id, options);
933
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
934
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.downloadRecording']?.[localVarOperationServerIndex]?.url;
935
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
936
+ },
937
+ /**
938
+ * Drag the mouse from start to end coordinates
939
+ * @summary Drag mouse
940
+ * @param {MouseDragRequest} request Mouse drag request
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ */
944
+ async drag(request, options) {
945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.drag(request, options);
946
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
947
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.drag']?.[localVarOperationServerIndex]?.url;
948
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
949
+ },
950
+ /**
951
+ * Get the status of all computer use processes
952
+ * @summary Get computer use process status
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ async getComputerUseStatus(options) {
957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComputerUseStatus(options);
958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
959
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getComputerUseStatus']?.[localVarOperationServerIndex]?.url;
960
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
961
+ },
962
+ /**
963
+ * Get the current status of the computer use system
964
+ * @summary Get computer use status
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ async getComputerUseSystemStatus(options) {
969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComputerUseSystemStatus(options);
970
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
971
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getComputerUseSystemStatus']?.[localVarOperationServerIndex]?.url;
972
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
973
+ },
974
+ /**
975
+ * Get information about all available displays
976
+ * @summary Get display information
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ async getDisplayInfo(options) {
981
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDisplayInfo(options);
982
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
983
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getDisplayInfo']?.[localVarOperationServerIndex]?.url;
984
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
985
+ },
986
+ /**
987
+ * Get the current mouse cursor position
988
+ * @summary Get mouse position
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ async getMousePosition(options) {
993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMousePosition(options);
994
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
995
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getMousePosition']?.[localVarOperationServerIndex]?.url;
996
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
997
+ },
998
+ /**
999
+ * Get errors for a specific computer use process
1000
+ * @summary Get process errors
1001
+ * @param {string} processName Process name to get errors for
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ async getProcessErrors(processName, options) {
1006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessErrors(processName, options);
1007
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1008
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getProcessErrors']?.[localVarOperationServerIndex]?.url;
1009
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1010
+ },
1011
+ /**
1012
+ * Get logs for a specific computer use process
1013
+ * @summary Get process logs
1014
+ * @param {string} processName Process name to get logs for
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ async getProcessLogs(processName, options) {
1019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessLogs(processName, options);
1020
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1021
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getProcessLogs']?.[localVarOperationServerIndex]?.url;
1022
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1023
+ },
1024
+ /**
1025
+ * Check if a specific computer use process is running
1026
+ * @summary Get specific process status
1027
+ * @param {string} processName Process name to check
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ async getProcessStatus(processName, options) {
1032
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProcessStatus(processName, options);
1033
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1034
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getProcessStatus']?.[localVarOperationServerIndex]?.url;
1035
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1036
+ },
1037
+ /**
1038
+ * Get details of a specific recording by ID
1039
+ * @summary Get recording details
1040
+ * @param {string} id Recording ID
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ async getRecording(id, options) {
1045
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRecording(id, options);
1046
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1047
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getRecording']?.[localVarOperationServerIndex]?.url;
1048
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1049
+ },
1050
+ /**
1051
+ * Get information about all open windows
1052
+ * @summary Get windows information
1053
+ * @param {*} [options] Override http request option.
1054
+ * @throws {RequiredError}
1055
+ */
1056
+ async getWindows(options) {
1057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWindows(options);
1058
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1059
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.getWindows']?.[localVarOperationServerIndex]?.url;
1060
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1061
+ },
1062
+ /**
1063
+ * Get a list of all recordings (active and completed)
1064
+ * @summary List all recordings
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ */
1068
+ async listRecordings(options) {
1069
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRecordings(options);
1070
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1071
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.listRecordings']?.[localVarOperationServerIndex]?.url;
1072
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1073
+ },
1074
+ /**
1075
+ * Move the mouse cursor to the specified coordinates
1076
+ * @summary Move mouse cursor
1077
+ * @param {MouseMoveRequest} request Mouse move request
1078
+ * @param {*} [options] Override http request option.
1079
+ * @throws {RequiredError}
1080
+ */
1081
+ async moveMouse(request, options) {
1082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveMouse(request, options);
1083
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1084
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.moveMouse']?.[localVarOperationServerIndex]?.url;
1085
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1086
+ },
1087
+ /**
1088
+ * Press a hotkey combination (e.g., ctrl+c, cmd+v)
1089
+ * @summary Press hotkey
1090
+ * @param {KeyboardHotkeyRequest} request Hotkey press request
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ async pressHotkey(request, options) {
1095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pressHotkey(request, options);
1096
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1097
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.pressHotkey']?.[localVarOperationServerIndex]?.url;
1098
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1099
+ },
1100
+ /**
1101
+ * Press a key with optional modifiers
1102
+ * @summary Press key
1103
+ * @param {KeyboardPressRequest} request Key press request
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ async pressKey(request, options) {
1108
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pressKey(request, options);
1109
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1110
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.pressKey']?.[localVarOperationServerIndex]?.url;
1111
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1112
+ },
1113
+ /**
1114
+ * Restart a specific computer use process
1115
+ * @summary Restart specific process
1116
+ * @param {string} processName Process name to restart
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ async restartProcess(processName, options) {
1121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restartProcess(processName, options);
1122
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1123
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.restartProcess']?.[localVarOperationServerIndex]?.url;
1124
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1125
+ },
1126
+ /**
1127
+ * Scroll the mouse wheel at the specified coordinates
1128
+ * @summary Scroll mouse wheel
1129
+ * @param {MouseScrollRequest} request Mouse scroll request
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ async scroll(request, options) {
1134
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scroll(request, options);
1135
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1136
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.scroll']?.[localVarOperationServerIndex]?.url;
1137
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1138
+ },
1139
+ /**
1140
+ * Start all computer use processes and return their status
1141
+ * @summary Start computer use processes
1142
+ * @param {*} [options] Override http request option.
1143
+ * @throws {RequiredError}
1144
+ */
1145
+ async startComputerUse(options) {
1146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startComputerUse(options);
1147
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1148
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.startComputerUse']?.[localVarOperationServerIndex]?.url;
1149
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1150
+ },
1151
+ /**
1152
+ * Start a new screen recording session
1153
+ * @summary Start a new recording
1154
+ * @param {StartRecordingRequest} [request] Recording options
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ async startRecording(request, options) {
1159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startRecording(request, options);
1160
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1161
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.startRecording']?.[localVarOperationServerIndex]?.url;
1162
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1163
+ },
1164
+ /**
1165
+ * Stop all computer use processes and return their status
1166
+ * @summary Stop computer use processes
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ async stopComputerUse(options) {
1171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopComputerUse(options);
1172
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1173
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.stopComputerUse']?.[localVarOperationServerIndex]?.url;
1174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1175
+ },
1176
+ /**
1177
+ * Stop an active screen recording session
1178
+ * @summary Stop a recording
1179
+ * @param {StopRecordingRequest} request Recording ID to stop
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ */
1183
+ async stopRecording(request, options) {
1184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopRecording(request, options);
1185
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1186
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.stopRecording']?.[localVarOperationServerIndex]?.url;
1187
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1188
+ },
1189
+ /**
1190
+ * Take a compressed screenshot of a specific region of the screen
1191
+ * @summary Take a compressed region screenshot
1192
+ * @param {number} x X coordinate of the region
1193
+ * @param {number} y Y coordinate of the region
1194
+ * @param {number} width Width of the region
1195
+ * @param {number} height Height of the region
1196
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1197
+ * @param {string} [format] Image format (png or jpeg)
1198
+ * @param {number} [quality] JPEG quality (1-100)
1199
+ * @param {number} [scale] Scale factor (0.1-1.0)
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ */
1203
+ async takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options) {
1204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options);
1205
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1206
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.takeCompressedRegionScreenshot']?.[localVarOperationServerIndex]?.url;
1207
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1208
+ },
1209
+ /**
1210
+ * Take a compressed screenshot of the entire screen
1211
+ * @summary Take a compressed screenshot
1212
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1213
+ * @param {string} [format] Image format (png or jpeg)
1214
+ * @param {number} [quality] JPEG quality (1-100)
1215
+ * @param {number} [scale] Scale factor (0.1-1.0)
1216
+ * @param {*} [options] Override http request option.
1217
+ * @throws {RequiredError}
1218
+ */
1219
+ async takeCompressedScreenshot(showCursor, format, quality, scale, options) {
1220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeCompressedScreenshot(showCursor, format, quality, scale, options);
1221
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1222
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.takeCompressedScreenshot']?.[localVarOperationServerIndex]?.url;
1223
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1224
+ },
1225
+ /**
1226
+ * Take a screenshot of a specific region of the screen
1227
+ * @summary Take a region screenshot
1228
+ * @param {number} x X coordinate of the region
1229
+ * @param {number} y Y coordinate of the region
1230
+ * @param {number} width Width of the region
1231
+ * @param {number} height Height of the region
1232
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ async takeRegionScreenshot(x, y, width, height, showCursor, options) {
1237
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeRegionScreenshot(x, y, width, height, showCursor, options);
1238
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1239
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.takeRegionScreenshot']?.[localVarOperationServerIndex]?.url;
1240
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1241
+ },
1242
+ /**
1243
+ * Take a screenshot of the entire screen
1244
+ * @summary Take a screenshot
1245
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ */
1249
+ async takeScreenshot(showCursor, options) {
1250
+ const localVarAxiosArgs = await localVarAxiosParamCreator.takeScreenshot(showCursor, options);
1251
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1252
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.takeScreenshot']?.[localVarOperationServerIndex]?.url;
1253
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1254
+ },
1255
+ /**
1256
+ * Type text with optional delay between keystrokes
1257
+ * @summary Type text
1258
+ * @param {KeyboardTypeRequest} request Text typing request
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ async typeText(request, options) {
1263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.typeText(request, options);
1264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1265
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComputerUseApi.typeText']?.[localVarOperationServerIndex]?.url;
1266
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1267
+ },
1268
+ };
1269
+ };
1270
+ exports.ComputerUseApiFp = ComputerUseApiFp;
1271
+ /**
1272
+ * ComputerUseApi - factory interface
1273
+ * @export
1274
+ */
1275
+ const ComputerUseApiFactory = function (configuration, basePath, axios) {
1276
+ const localVarFp = (0, exports.ComputerUseApiFp)(configuration);
1277
+ return {
1278
+ /**
1279
+ * Click the mouse button at the specified coordinates
1280
+ * @summary Click mouse button
1281
+ * @param {MouseClickRequest} request Mouse click request
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ click(request, options) {
1286
+ return localVarFp.click(request, options).then((request) => request(axios, basePath));
1287
+ },
1288
+ /**
1289
+ * Delete a recording file by ID
1290
+ * @summary Delete a recording
1291
+ * @param {string} id Recording ID
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ deleteRecording(id, options) {
1296
+ return localVarFp.deleteRecording(id, options).then((request) => request(axios, basePath));
1297
+ },
1298
+ /**
1299
+ * Download a recording by providing its ID
1300
+ * @summary Download a recording
1301
+ * @param {string} id Recording ID
1302
+ * @param {*} [options] Override http request option.
1303
+ * @throws {RequiredError}
1304
+ */
1305
+ downloadRecording(id, options) {
1306
+ return localVarFp.downloadRecording(id, options).then((request) => request(axios, basePath));
1307
+ },
1308
+ /**
1309
+ * Drag the mouse from start to end coordinates
1310
+ * @summary Drag mouse
1311
+ * @param {MouseDragRequest} request Mouse drag request
1312
+ * @param {*} [options] Override http request option.
1313
+ * @throws {RequiredError}
1314
+ */
1315
+ drag(request, options) {
1316
+ return localVarFp.drag(request, options).then((request) => request(axios, basePath));
1317
+ },
1318
+ /**
1319
+ * Get the status of all computer use processes
1320
+ * @summary Get computer use process status
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ */
1324
+ getComputerUseStatus(options) {
1325
+ return localVarFp.getComputerUseStatus(options).then((request) => request(axios, basePath));
1326
+ },
1327
+ /**
1328
+ * Get the current status of the computer use system
1329
+ * @summary Get computer use status
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ getComputerUseSystemStatus(options) {
1334
+ return localVarFp.getComputerUseSystemStatus(options).then((request) => request(axios, basePath));
1335
+ },
1336
+ /**
1337
+ * Get information about all available displays
1338
+ * @summary Get display information
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ */
1342
+ getDisplayInfo(options) {
1343
+ return localVarFp.getDisplayInfo(options).then((request) => request(axios, basePath));
1344
+ },
1345
+ /**
1346
+ * Get the current mouse cursor position
1347
+ * @summary Get mouse position
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ getMousePosition(options) {
1352
+ return localVarFp.getMousePosition(options).then((request) => request(axios, basePath));
1353
+ },
1354
+ /**
1355
+ * Get errors for a specific computer use process
1356
+ * @summary Get process errors
1357
+ * @param {string} processName Process name to get errors for
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ getProcessErrors(processName, options) {
1362
+ return localVarFp.getProcessErrors(processName, options).then((request) => request(axios, basePath));
1363
+ },
1364
+ /**
1365
+ * Get logs for a specific computer use process
1366
+ * @summary Get process logs
1367
+ * @param {string} processName Process name to get logs for
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ */
1371
+ getProcessLogs(processName, options) {
1372
+ return localVarFp.getProcessLogs(processName, options).then((request) => request(axios, basePath));
1373
+ },
1374
+ /**
1375
+ * Check if a specific computer use process is running
1376
+ * @summary Get specific process status
1377
+ * @param {string} processName Process name to check
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ getProcessStatus(processName, options) {
1382
+ return localVarFp.getProcessStatus(processName, options).then((request) => request(axios, basePath));
1383
+ },
1384
+ /**
1385
+ * Get details of a specific recording by ID
1386
+ * @summary Get recording details
1387
+ * @param {string} id Recording ID
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ getRecording(id, options) {
1392
+ return localVarFp.getRecording(id, options).then((request) => request(axios, basePath));
1393
+ },
1394
+ /**
1395
+ * Get information about all open windows
1396
+ * @summary Get windows information
1397
+ * @param {*} [options] Override http request option.
1398
+ * @throws {RequiredError}
1399
+ */
1400
+ getWindows(options) {
1401
+ return localVarFp.getWindows(options).then((request) => request(axios, basePath));
1402
+ },
1403
+ /**
1404
+ * Get a list of all recordings (active and completed)
1405
+ * @summary List all recordings
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ listRecordings(options) {
1410
+ return localVarFp.listRecordings(options).then((request) => request(axios, basePath));
1411
+ },
1412
+ /**
1413
+ * Move the mouse cursor to the specified coordinates
1414
+ * @summary Move mouse cursor
1415
+ * @param {MouseMoveRequest} request Mouse move request
1416
+ * @param {*} [options] Override http request option.
1417
+ * @throws {RequiredError}
1418
+ */
1419
+ moveMouse(request, options) {
1420
+ return localVarFp.moveMouse(request, options).then((request) => request(axios, basePath));
1421
+ },
1422
+ /**
1423
+ * Press a hotkey combination (e.g., ctrl+c, cmd+v)
1424
+ * @summary Press hotkey
1425
+ * @param {KeyboardHotkeyRequest} request Hotkey press request
1426
+ * @param {*} [options] Override http request option.
1427
+ * @throws {RequiredError}
1428
+ */
1429
+ pressHotkey(request, options) {
1430
+ return localVarFp.pressHotkey(request, options).then((request) => request(axios, basePath));
1431
+ },
1432
+ /**
1433
+ * Press a key with optional modifiers
1434
+ * @summary Press key
1435
+ * @param {KeyboardPressRequest} request Key press request
1436
+ * @param {*} [options] Override http request option.
1437
+ * @throws {RequiredError}
1438
+ */
1439
+ pressKey(request, options) {
1440
+ return localVarFp.pressKey(request, options).then((request) => request(axios, basePath));
1441
+ },
1442
+ /**
1443
+ * Restart a specific computer use process
1444
+ * @summary Restart specific process
1445
+ * @param {string} processName Process name to restart
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ */
1449
+ restartProcess(processName, options) {
1450
+ return localVarFp.restartProcess(processName, options).then((request) => request(axios, basePath));
1451
+ },
1452
+ /**
1453
+ * Scroll the mouse wheel at the specified coordinates
1454
+ * @summary Scroll mouse wheel
1455
+ * @param {MouseScrollRequest} request Mouse scroll request
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ */
1459
+ scroll(request, options) {
1460
+ return localVarFp.scroll(request, options).then((request) => request(axios, basePath));
1461
+ },
1462
+ /**
1463
+ * Start all computer use processes and return their status
1464
+ * @summary Start computer use processes
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ startComputerUse(options) {
1469
+ return localVarFp.startComputerUse(options).then((request) => request(axios, basePath));
1470
+ },
1471
+ /**
1472
+ * Start a new screen recording session
1473
+ * @summary Start a new recording
1474
+ * @param {StartRecordingRequest} [request] Recording options
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ startRecording(request, options) {
1479
+ return localVarFp.startRecording(request, options).then((request) => request(axios, basePath));
1480
+ },
1481
+ /**
1482
+ * Stop all computer use processes and return their status
1483
+ * @summary Stop computer use processes
1484
+ * @param {*} [options] Override http request option.
1485
+ * @throws {RequiredError}
1486
+ */
1487
+ stopComputerUse(options) {
1488
+ return localVarFp.stopComputerUse(options).then((request) => request(axios, basePath));
1489
+ },
1490
+ /**
1491
+ * Stop an active screen recording session
1492
+ * @summary Stop a recording
1493
+ * @param {StopRecordingRequest} request Recording ID to stop
1494
+ * @param {*} [options] Override http request option.
1495
+ * @throws {RequiredError}
1496
+ */
1497
+ stopRecording(request, options) {
1498
+ return localVarFp.stopRecording(request, options).then((request) => request(axios, basePath));
1499
+ },
1500
+ /**
1501
+ * Take a compressed screenshot of a specific region of the screen
1502
+ * @summary Take a compressed region screenshot
1503
+ * @param {number} x X coordinate of the region
1504
+ * @param {number} y Y coordinate of the region
1505
+ * @param {number} width Width of the region
1506
+ * @param {number} height Height of the region
1507
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1508
+ * @param {string} [format] Image format (png or jpeg)
1509
+ * @param {number} [quality] JPEG quality (1-100)
1510
+ * @param {number} [scale] Scale factor (0.1-1.0)
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ */
1514
+ takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options) {
1515
+ return localVarFp.takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options).then((request) => request(axios, basePath));
1516
+ },
1517
+ /**
1518
+ * Take a compressed screenshot of the entire screen
1519
+ * @summary Take a compressed screenshot
1520
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1521
+ * @param {string} [format] Image format (png or jpeg)
1522
+ * @param {number} [quality] JPEG quality (1-100)
1523
+ * @param {number} [scale] Scale factor (0.1-1.0)
1524
+ * @param {*} [options] Override http request option.
1525
+ * @throws {RequiredError}
1526
+ */
1527
+ takeCompressedScreenshot(showCursor, format, quality, scale, options) {
1528
+ return localVarFp.takeCompressedScreenshot(showCursor, format, quality, scale, options).then((request) => request(axios, basePath));
1529
+ },
1530
+ /**
1531
+ * Take a screenshot of a specific region of the screen
1532
+ * @summary Take a region screenshot
1533
+ * @param {number} x X coordinate of the region
1534
+ * @param {number} y Y coordinate of the region
1535
+ * @param {number} width Width of the region
1536
+ * @param {number} height Height of the region
1537
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1538
+ * @param {*} [options] Override http request option.
1539
+ * @throws {RequiredError}
1540
+ */
1541
+ takeRegionScreenshot(x, y, width, height, showCursor, options) {
1542
+ return localVarFp.takeRegionScreenshot(x, y, width, height, showCursor, options).then((request) => request(axios, basePath));
1543
+ },
1544
+ /**
1545
+ * Take a screenshot of the entire screen
1546
+ * @summary Take a screenshot
1547
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1548
+ * @param {*} [options] Override http request option.
1549
+ * @throws {RequiredError}
1550
+ */
1551
+ takeScreenshot(showCursor, options) {
1552
+ return localVarFp.takeScreenshot(showCursor, options).then((request) => request(axios, basePath));
1553
+ },
1554
+ /**
1555
+ * Type text with optional delay between keystrokes
1556
+ * @summary Type text
1557
+ * @param {KeyboardTypeRequest} request Text typing request
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ typeText(request, options) {
1562
+ return localVarFp.typeText(request, options).then((request) => request(axios, basePath));
1563
+ },
1564
+ };
1565
+ };
1566
+ exports.ComputerUseApiFactory = ComputerUseApiFactory;
1567
+ /**
1568
+ * ComputerUseApi - object-oriented interface
1569
+ * @export
1570
+ * @class ComputerUseApi
1571
+ * @extends {BaseAPI}
1572
+ */
1573
+ class ComputerUseApi extends base_1.BaseAPI {
1574
+ /**
1575
+ * Click the mouse button at the specified coordinates
1576
+ * @summary Click mouse button
1577
+ * @param {MouseClickRequest} request Mouse click request
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ * @memberof ComputerUseApi
1581
+ */
1582
+ click(request, options) {
1583
+ return (0, exports.ComputerUseApiFp)(this.configuration).click(request, options).then((request) => request(this.axios, this.basePath));
1584
+ }
1585
+ /**
1586
+ * Delete a recording file by ID
1587
+ * @summary Delete a recording
1588
+ * @param {string} id Recording ID
1589
+ * @param {*} [options] Override http request option.
1590
+ * @throws {RequiredError}
1591
+ * @memberof ComputerUseApi
1592
+ */
1593
+ deleteRecording(id, options) {
1594
+ return (0, exports.ComputerUseApiFp)(this.configuration).deleteRecording(id, options).then((request) => request(this.axios, this.basePath));
1595
+ }
1596
+ /**
1597
+ * Download a recording by providing its ID
1598
+ * @summary Download a recording
1599
+ * @param {string} id Recording ID
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ * @memberof ComputerUseApi
1603
+ */
1604
+ downloadRecording(id, options) {
1605
+ return (0, exports.ComputerUseApiFp)(this.configuration).downloadRecording(id, options).then((request) => request(this.axios, this.basePath));
1606
+ }
1607
+ /**
1608
+ * Drag the mouse from start to end coordinates
1609
+ * @summary Drag mouse
1610
+ * @param {MouseDragRequest} request Mouse drag request
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ * @memberof ComputerUseApi
1614
+ */
1615
+ drag(request, options) {
1616
+ return (0, exports.ComputerUseApiFp)(this.configuration).drag(request, options).then((request) => request(this.axios, this.basePath));
1617
+ }
1618
+ /**
1619
+ * Get the status of all computer use processes
1620
+ * @summary Get computer use process status
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ * @memberof ComputerUseApi
1624
+ */
1625
+ getComputerUseStatus(options) {
1626
+ return (0, exports.ComputerUseApiFp)(this.configuration).getComputerUseStatus(options).then((request) => request(this.axios, this.basePath));
1627
+ }
1628
+ /**
1629
+ * Get the current status of the computer use system
1630
+ * @summary Get computer use status
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ * @memberof ComputerUseApi
1634
+ */
1635
+ getComputerUseSystemStatus(options) {
1636
+ return (0, exports.ComputerUseApiFp)(this.configuration).getComputerUseSystemStatus(options).then((request) => request(this.axios, this.basePath));
1637
+ }
1638
+ /**
1639
+ * Get information about all available displays
1640
+ * @summary Get display information
1641
+ * @param {*} [options] Override http request option.
1642
+ * @throws {RequiredError}
1643
+ * @memberof ComputerUseApi
1644
+ */
1645
+ getDisplayInfo(options) {
1646
+ return (0, exports.ComputerUseApiFp)(this.configuration).getDisplayInfo(options).then((request) => request(this.axios, this.basePath));
1647
+ }
1648
+ /**
1649
+ * Get the current mouse cursor position
1650
+ * @summary Get mouse position
1651
+ * @param {*} [options] Override http request option.
1652
+ * @throws {RequiredError}
1653
+ * @memberof ComputerUseApi
1654
+ */
1655
+ getMousePosition(options) {
1656
+ return (0, exports.ComputerUseApiFp)(this.configuration).getMousePosition(options).then((request) => request(this.axios, this.basePath));
1657
+ }
1658
+ /**
1659
+ * Get errors for a specific computer use process
1660
+ * @summary Get process errors
1661
+ * @param {string} processName Process name to get errors for
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ * @memberof ComputerUseApi
1665
+ */
1666
+ getProcessErrors(processName, options) {
1667
+ return (0, exports.ComputerUseApiFp)(this.configuration).getProcessErrors(processName, options).then((request) => request(this.axios, this.basePath));
1668
+ }
1669
+ /**
1670
+ * Get logs for a specific computer use process
1671
+ * @summary Get process logs
1672
+ * @param {string} processName Process name to get logs for
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ * @memberof ComputerUseApi
1676
+ */
1677
+ getProcessLogs(processName, options) {
1678
+ return (0, exports.ComputerUseApiFp)(this.configuration).getProcessLogs(processName, options).then((request) => request(this.axios, this.basePath));
1679
+ }
1680
+ /**
1681
+ * Check if a specific computer use process is running
1682
+ * @summary Get specific process status
1683
+ * @param {string} processName Process name to check
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ * @memberof ComputerUseApi
1687
+ */
1688
+ getProcessStatus(processName, options) {
1689
+ return (0, exports.ComputerUseApiFp)(this.configuration).getProcessStatus(processName, options).then((request) => request(this.axios, this.basePath));
1690
+ }
1691
+ /**
1692
+ * Get details of a specific recording by ID
1693
+ * @summary Get recording details
1694
+ * @param {string} id Recording ID
1695
+ * @param {*} [options] Override http request option.
1696
+ * @throws {RequiredError}
1697
+ * @memberof ComputerUseApi
1698
+ */
1699
+ getRecording(id, options) {
1700
+ return (0, exports.ComputerUseApiFp)(this.configuration).getRecording(id, options).then((request) => request(this.axios, this.basePath));
1701
+ }
1702
+ /**
1703
+ * Get information about all open windows
1704
+ * @summary Get windows information
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ * @memberof ComputerUseApi
1708
+ */
1709
+ getWindows(options) {
1710
+ return (0, exports.ComputerUseApiFp)(this.configuration).getWindows(options).then((request) => request(this.axios, this.basePath));
1711
+ }
1712
+ /**
1713
+ * Get a list of all recordings (active and completed)
1714
+ * @summary List all recordings
1715
+ * @param {*} [options] Override http request option.
1716
+ * @throws {RequiredError}
1717
+ * @memberof ComputerUseApi
1718
+ */
1719
+ listRecordings(options) {
1720
+ return (0, exports.ComputerUseApiFp)(this.configuration).listRecordings(options).then((request) => request(this.axios, this.basePath));
1721
+ }
1722
+ /**
1723
+ * Move the mouse cursor to the specified coordinates
1724
+ * @summary Move mouse cursor
1725
+ * @param {MouseMoveRequest} request Mouse move request
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ * @memberof ComputerUseApi
1729
+ */
1730
+ moveMouse(request, options) {
1731
+ return (0, exports.ComputerUseApiFp)(this.configuration).moveMouse(request, options).then((request) => request(this.axios, this.basePath));
1732
+ }
1733
+ /**
1734
+ * Press a hotkey combination (e.g., ctrl+c, cmd+v)
1735
+ * @summary Press hotkey
1736
+ * @param {KeyboardHotkeyRequest} request Hotkey press request
1737
+ * @param {*} [options] Override http request option.
1738
+ * @throws {RequiredError}
1739
+ * @memberof ComputerUseApi
1740
+ */
1741
+ pressHotkey(request, options) {
1742
+ return (0, exports.ComputerUseApiFp)(this.configuration).pressHotkey(request, options).then((request) => request(this.axios, this.basePath));
1743
+ }
1744
+ /**
1745
+ * Press a key with optional modifiers
1746
+ * @summary Press key
1747
+ * @param {KeyboardPressRequest} request Key press request
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ * @memberof ComputerUseApi
1751
+ */
1752
+ pressKey(request, options) {
1753
+ return (0, exports.ComputerUseApiFp)(this.configuration).pressKey(request, options).then((request) => request(this.axios, this.basePath));
1754
+ }
1755
+ /**
1756
+ * Restart a specific computer use process
1757
+ * @summary Restart specific process
1758
+ * @param {string} processName Process name to restart
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ * @memberof ComputerUseApi
1762
+ */
1763
+ restartProcess(processName, options) {
1764
+ return (0, exports.ComputerUseApiFp)(this.configuration).restartProcess(processName, options).then((request) => request(this.axios, this.basePath));
1765
+ }
1766
+ /**
1767
+ * Scroll the mouse wheel at the specified coordinates
1768
+ * @summary Scroll mouse wheel
1769
+ * @param {MouseScrollRequest} request Mouse scroll request
1770
+ * @param {*} [options] Override http request option.
1771
+ * @throws {RequiredError}
1772
+ * @memberof ComputerUseApi
1773
+ */
1774
+ scroll(request, options) {
1775
+ return (0, exports.ComputerUseApiFp)(this.configuration).scroll(request, options).then((request) => request(this.axios, this.basePath));
1776
+ }
1777
+ /**
1778
+ * Start all computer use processes and return their status
1779
+ * @summary Start computer use processes
1780
+ * @param {*} [options] Override http request option.
1781
+ * @throws {RequiredError}
1782
+ * @memberof ComputerUseApi
1783
+ */
1784
+ startComputerUse(options) {
1785
+ return (0, exports.ComputerUseApiFp)(this.configuration).startComputerUse(options).then((request) => request(this.axios, this.basePath));
1786
+ }
1787
+ /**
1788
+ * Start a new screen recording session
1789
+ * @summary Start a new recording
1790
+ * @param {StartRecordingRequest} [request] Recording options
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ * @memberof ComputerUseApi
1794
+ */
1795
+ startRecording(request, options) {
1796
+ return (0, exports.ComputerUseApiFp)(this.configuration).startRecording(request, options).then((request) => request(this.axios, this.basePath));
1797
+ }
1798
+ /**
1799
+ * Stop all computer use processes and return their status
1800
+ * @summary Stop computer use processes
1801
+ * @param {*} [options] Override http request option.
1802
+ * @throws {RequiredError}
1803
+ * @memberof ComputerUseApi
1804
+ */
1805
+ stopComputerUse(options) {
1806
+ return (0, exports.ComputerUseApiFp)(this.configuration).stopComputerUse(options).then((request) => request(this.axios, this.basePath));
1807
+ }
1808
+ /**
1809
+ * Stop an active screen recording session
1810
+ * @summary Stop a recording
1811
+ * @param {StopRecordingRequest} request Recording ID to stop
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ * @memberof ComputerUseApi
1815
+ */
1816
+ stopRecording(request, options) {
1817
+ return (0, exports.ComputerUseApiFp)(this.configuration).stopRecording(request, options).then((request) => request(this.axios, this.basePath));
1818
+ }
1819
+ /**
1820
+ * Take a compressed screenshot of a specific region of the screen
1821
+ * @summary Take a compressed region screenshot
1822
+ * @param {number} x X coordinate of the region
1823
+ * @param {number} y Y coordinate of the region
1824
+ * @param {number} width Width of the region
1825
+ * @param {number} height Height of the region
1826
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1827
+ * @param {string} [format] Image format (png or jpeg)
1828
+ * @param {number} [quality] JPEG quality (1-100)
1829
+ * @param {number} [scale] Scale factor (0.1-1.0)
1830
+ * @param {*} [options] Override http request option.
1831
+ * @throws {RequiredError}
1832
+ * @memberof ComputerUseApi
1833
+ */
1834
+ takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options) {
1835
+ return (0, exports.ComputerUseApiFp)(this.configuration).takeCompressedRegionScreenshot(x, y, width, height, showCursor, format, quality, scale, options).then((request) => request(this.axios, this.basePath));
1836
+ }
1837
+ /**
1838
+ * Take a compressed screenshot of the entire screen
1839
+ * @summary Take a compressed screenshot
1840
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1841
+ * @param {string} [format] Image format (png or jpeg)
1842
+ * @param {number} [quality] JPEG quality (1-100)
1843
+ * @param {number} [scale] Scale factor (0.1-1.0)
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ * @memberof ComputerUseApi
1847
+ */
1848
+ takeCompressedScreenshot(showCursor, format, quality, scale, options) {
1849
+ return (0, exports.ComputerUseApiFp)(this.configuration).takeCompressedScreenshot(showCursor, format, quality, scale, options).then((request) => request(this.axios, this.basePath));
1850
+ }
1851
+ /**
1852
+ * Take a screenshot of a specific region of the screen
1853
+ * @summary Take a region screenshot
1854
+ * @param {number} x X coordinate of the region
1855
+ * @param {number} y Y coordinate of the region
1856
+ * @param {number} width Width of the region
1857
+ * @param {number} height Height of the region
1858
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ * @memberof ComputerUseApi
1862
+ */
1863
+ takeRegionScreenshot(x, y, width, height, showCursor, options) {
1864
+ return (0, exports.ComputerUseApiFp)(this.configuration).takeRegionScreenshot(x, y, width, height, showCursor, options).then((request) => request(this.axios, this.basePath));
1865
+ }
1866
+ /**
1867
+ * Take a screenshot of the entire screen
1868
+ * @summary Take a screenshot
1869
+ * @param {boolean} [showCursor] Whether to show cursor in screenshot
1870
+ * @param {*} [options] Override http request option.
1871
+ * @throws {RequiredError}
1872
+ * @memberof ComputerUseApi
1873
+ */
1874
+ takeScreenshot(showCursor, options) {
1875
+ return (0, exports.ComputerUseApiFp)(this.configuration).takeScreenshot(showCursor, options).then((request) => request(this.axios, this.basePath));
1876
+ }
1877
+ /**
1878
+ * Type text with optional delay between keystrokes
1879
+ * @summary Type text
1880
+ * @param {KeyboardTypeRequest} request Text typing request
1881
+ * @param {*} [options] Override http request option.
1882
+ * @throws {RequiredError}
1883
+ * @memberof ComputerUseApi
1884
+ */
1885
+ typeText(request, options) {
1886
+ return (0, exports.ComputerUseApiFp)(this.configuration).typeText(request, options).then((request) => request(this.axios, this.basePath));
1887
+ }
1888
+ }
1889
+ exports.ComputerUseApi = ComputerUseApi;
1890
+ //# sourceMappingURL=computer-use-api.js.map