@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,969 @@
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.FileSystemApi = exports.FileSystemApiFactory = exports.FileSystemApiFp = exports.FileSystemApiAxiosParamCreator = 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
+ * FileSystemApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const FileSystemApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ * Create a folder with the specified path and optional permissions
31
+ * @summary Create a folder
32
+ * @param {string} path Folder path to create
33
+ * @param {string} mode Octal permission mode (default: 0755)
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ createFolder: async (path, mode, options = {}) => {
38
+ // verify required parameter 'path' is not null or undefined
39
+ (0, common_1.assertParamExists)('createFolder', 'path', path);
40
+ // verify required parameter 'mode' is not null or undefined
41
+ (0, common_1.assertParamExists)('createFolder', 'mode', mode);
42
+ const localVarPath = `/files/folder`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ }
49
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
50
+ const localVarHeaderParameter = {};
51
+ const localVarQueryParameter = {};
52
+ if (path !== undefined) {
53
+ localVarQueryParameter['path'] = path;
54
+ }
55
+ if (mode !== undefined) {
56
+ localVarQueryParameter['mode'] = mode;
57
+ }
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ },
66
+ /**
67
+ * Delete a file or directory at the specified path
68
+ * @summary Delete a file or directory
69
+ * @param {string} path File or directory path to delete
70
+ * @param {boolean} [recursive] Enable recursive deletion for directories
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ deleteFile: async (path, recursive, options = {}) => {
75
+ // verify required parameter 'path' is not null or undefined
76
+ (0, common_1.assertParamExists)('deleteFile', 'path', path);
77
+ const localVarPath = `/files`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ if (path !== undefined) {
88
+ localVarQueryParameter['path'] = path;
89
+ }
90
+ if (recursive !== undefined) {
91
+ localVarQueryParameter['recursive'] = recursive;
92
+ }
93
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
96
+ return {
97
+ url: (0, common_1.toPathString)(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ },
101
+ /**
102
+ * Download a file by providing its path
103
+ * @summary Download a file
104
+ * @param {string} path File path to download
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ downloadFile: async (path, options = {}) => {
109
+ // verify required parameter 'path' is not null or undefined
110
+ (0, common_1.assertParamExists)('downloadFile', 'path', path);
111
+ const localVarPath = `/files/download`;
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ if (path !== undefined) {
122
+ localVarQueryParameter['path'] = path;
123
+ }
124
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
127
+ return {
128
+ url: (0, common_1.toPathString)(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ },
132
+ /**
133
+ * Download multiple files by providing their paths
134
+ * @summary Download multiple files
135
+ * @param {FilesDownloadRequest} downloadFiles Paths of files to download
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ downloadFiles: async (downloadFiles, options = {}) => {
140
+ // verify required parameter 'downloadFiles' is not null or undefined
141
+ (0, common_1.assertParamExists)('downloadFiles', 'downloadFiles', downloadFiles);
142
+ const localVarPath = `/files/bulk-download`;
143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
144
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
145
+ let baseOptions;
146
+ if (configuration) {
147
+ baseOptions = configuration.baseOptions;
148
+ }
149
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
150
+ const localVarHeaderParameter = {};
151
+ const localVarQueryParameter = {};
152
+ localVarHeaderParameter['Content-Type'] = 'application/json';
153
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
156
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(downloadFiles, localVarRequestOptions, configuration);
157
+ return {
158
+ url: (0, common_1.toPathString)(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ },
162
+ /**
163
+ * Search for text pattern within files in a directory
164
+ * @summary Find text in files
165
+ * @param {string} path Directory path to search in
166
+ * @param {string} pattern Text pattern to search for
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ findInFiles: async (path, pattern, options = {}) => {
171
+ // verify required parameter 'path' is not null or undefined
172
+ (0, common_1.assertParamExists)('findInFiles', 'path', path);
173
+ // verify required parameter 'pattern' is not null or undefined
174
+ (0, common_1.assertParamExists)('findInFiles', 'pattern', pattern);
175
+ const localVarPath = `/files/find`;
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
183
+ const localVarHeaderParameter = {};
184
+ const localVarQueryParameter = {};
185
+ if (path !== undefined) {
186
+ localVarQueryParameter['path'] = path;
187
+ }
188
+ if (pattern !== undefined) {
189
+ localVarQueryParameter['pattern'] = pattern;
190
+ }
191
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
194
+ return {
195
+ url: (0, common_1.toPathString)(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ /**
200
+ * Get detailed information about a file or directory
201
+ * @summary Get file information
202
+ * @param {string} path File or directory path
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ getFileInfo: async (path, options = {}) => {
207
+ // verify required parameter 'path' is not null or undefined
208
+ (0, common_1.assertParamExists)('getFileInfo', 'path', path);
209
+ const localVarPath = `/files/info`;
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ if (path !== undefined) {
220
+ localVarQueryParameter['path'] = path;
221
+ }
222
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
225
+ return {
226
+ url: (0, common_1.toPathString)(localVarUrlObj),
227
+ options: localVarRequestOptions,
228
+ };
229
+ },
230
+ /**
231
+ * List files and directories in the specified path
232
+ * @summary List files and directories
233
+ * @param {string} [path] Directory path to list (defaults to working directory)
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ listFiles: async (path, options = {}) => {
238
+ const localVarPath = `/files`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ if (path !== undefined) {
249
+ localVarQueryParameter['path'] = path;
250
+ }
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
254
+ return {
255
+ url: (0, common_1.toPathString)(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ },
259
+ /**
260
+ * Move or rename a file or directory from source to destination
261
+ * @summary Move or rename file/directory
262
+ * @param {string} source Source file or directory path
263
+ * @param {string} destination Destination file or directory path
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ moveFile: async (source, destination, options = {}) => {
268
+ // verify required parameter 'source' is not null or undefined
269
+ (0, common_1.assertParamExists)('moveFile', 'source', source);
270
+ // verify required parameter 'destination' is not null or undefined
271
+ (0, common_1.assertParamExists)('moveFile', 'destination', destination);
272
+ const localVarPath = `/files/move`;
273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
274
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
275
+ let baseOptions;
276
+ if (configuration) {
277
+ baseOptions = configuration.baseOptions;
278
+ }
279
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
280
+ const localVarHeaderParameter = {};
281
+ const localVarQueryParameter = {};
282
+ if (source !== undefined) {
283
+ localVarQueryParameter['source'] = source;
284
+ }
285
+ if (destination !== undefined) {
286
+ localVarQueryParameter['destination'] = destination;
287
+ }
288
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
290
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
291
+ return {
292
+ url: (0, common_1.toPathString)(localVarUrlObj),
293
+ options: localVarRequestOptions,
294
+ };
295
+ },
296
+ /**
297
+ * Replace text pattern with new value in multiple files
298
+ * @summary Replace text in files
299
+ * @param {ReplaceRequest} request Replace request
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ replaceInFiles: async (request, options = {}) => {
304
+ // verify required parameter 'request' is not null or undefined
305
+ (0, common_1.assertParamExists)('replaceInFiles', 'request', request);
306
+ const localVarPath = `/files/replace`;
307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
308
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
309
+ let baseOptions;
310
+ if (configuration) {
311
+ baseOptions = configuration.baseOptions;
312
+ }
313
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
314
+ const localVarHeaderParameter = {};
315
+ const localVarQueryParameter = {};
316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
317
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
318
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
319
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
320
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
321
+ return {
322
+ url: (0, common_1.toPathString)(localVarUrlObj),
323
+ options: localVarRequestOptions,
324
+ };
325
+ },
326
+ /**
327
+ * Search for files matching a specific pattern in a directory
328
+ * @summary Search files by pattern
329
+ * @param {string} path Directory path to search in
330
+ * @param {string} pattern File pattern to match (e.g., *.txt, *.go)
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ searchFiles: async (path, pattern, options = {}) => {
335
+ // verify required parameter 'path' is not null or undefined
336
+ (0, common_1.assertParamExists)('searchFiles', 'path', path);
337
+ // verify required parameter 'pattern' is not null or undefined
338
+ (0, common_1.assertParamExists)('searchFiles', 'pattern', pattern);
339
+ const localVarPath = `/files/search`;
340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
341
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
342
+ let baseOptions;
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ }
346
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
347
+ const localVarHeaderParameter = {};
348
+ const localVarQueryParameter = {};
349
+ if (path !== undefined) {
350
+ localVarQueryParameter['path'] = path;
351
+ }
352
+ if (pattern !== undefined) {
353
+ localVarQueryParameter['pattern'] = pattern;
354
+ }
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
+ * Set file permissions, ownership, and group for a file or directory
365
+ * @summary Set file permissions
366
+ * @param {string} path File or directory path
367
+ * @param {string} [owner] Owner (username or UID)
368
+ * @param {string} [group] Group (group name or GID)
369
+ * @param {string} [mode] File mode in octal format (e.g., 0755)
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ setFilePermissions: async (path, owner, group, mode, options = {}) => {
374
+ // verify required parameter 'path' is not null or undefined
375
+ (0, common_1.assertParamExists)('setFilePermissions', 'path', path);
376
+ const localVarPath = `/files/permissions`;
377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
379
+ let baseOptions;
380
+ if (configuration) {
381
+ baseOptions = configuration.baseOptions;
382
+ }
383
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
384
+ const localVarHeaderParameter = {};
385
+ const localVarQueryParameter = {};
386
+ if (path !== undefined) {
387
+ localVarQueryParameter['path'] = path;
388
+ }
389
+ if (owner !== undefined) {
390
+ localVarQueryParameter['owner'] = owner;
391
+ }
392
+ if (group !== undefined) {
393
+ localVarQueryParameter['group'] = group;
394
+ }
395
+ if (mode !== undefined) {
396
+ localVarQueryParameter['mode'] = mode;
397
+ }
398
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
400
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
401
+ return {
402
+ url: (0, common_1.toPathString)(localVarUrlObj),
403
+ options: localVarRequestOptions,
404
+ };
405
+ },
406
+ /**
407
+ * Upload a file to the specified path
408
+ * @summary Upload a file
409
+ * @param {string} path Destination path for the uploaded file
410
+ * @param {File} file File to upload
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ uploadFile: async (path, file, options = {}) => {
415
+ // verify required parameter 'path' is not null or undefined
416
+ (0, common_1.assertParamExists)('uploadFile', 'path', path);
417
+ // verify required parameter 'file' is not null or undefined
418
+ (0, common_1.assertParamExists)('uploadFile', 'file', file);
419
+ const localVarPath = `/files/upload`;
420
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
421
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
422
+ let baseOptions;
423
+ if (configuration) {
424
+ baseOptions = configuration.baseOptions;
425
+ }
426
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
427
+ const localVarHeaderParameter = {};
428
+ const localVarQueryParameter = {};
429
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
430
+ if (path !== undefined) {
431
+ localVarQueryParameter['path'] = path;
432
+ }
433
+ if (file !== undefined) {
434
+ localVarFormParams.append('file', file);
435
+ }
436
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
440
+ localVarRequestOptions.data = localVarFormParams;
441
+ return {
442
+ url: (0, common_1.toPathString)(localVarUrlObj),
443
+ options: localVarRequestOptions,
444
+ };
445
+ },
446
+ /**
447
+ * Upload multiple files with their destination paths
448
+ * @summary Upload multiple files
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ uploadFiles: async (options = {}) => {
453
+ const localVarPath = `/files/bulk-upload`;
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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
466
+ return {
467
+ url: (0, common_1.toPathString)(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ },
471
+ };
472
+ };
473
+ exports.FileSystemApiAxiosParamCreator = FileSystemApiAxiosParamCreator;
474
+ /**
475
+ * FileSystemApi - functional programming interface
476
+ * @export
477
+ */
478
+ const FileSystemApiFp = function (configuration) {
479
+ const localVarAxiosParamCreator = (0, exports.FileSystemApiAxiosParamCreator)(configuration);
480
+ return {
481
+ /**
482
+ * Create a folder with the specified path and optional permissions
483
+ * @summary Create a folder
484
+ * @param {string} path Folder path to create
485
+ * @param {string} mode Octal permission mode (default: 0755)
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ async createFolder(path, mode, options) {
490
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(path, mode, options);
491
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
492
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.createFolder']?.[localVarOperationServerIndex]?.url;
493
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
494
+ },
495
+ /**
496
+ * Delete a file or directory at the specified path
497
+ * @summary Delete a file or directory
498
+ * @param {string} path File or directory path to delete
499
+ * @param {boolean} [recursive] Enable recursive deletion for directories
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ async deleteFile(path, recursive, options) {
504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(path, recursive, options);
505
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
506
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.deleteFile']?.[localVarOperationServerIndex]?.url;
507
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
508
+ },
509
+ /**
510
+ * Download a file by providing its path
511
+ * @summary Download a file
512
+ * @param {string} path File path to download
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ async downloadFile(path, options) {
517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(path, options);
518
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
519
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.downloadFile']?.[localVarOperationServerIndex]?.url;
520
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
521
+ },
522
+ /**
523
+ * Download multiple files by providing their paths
524
+ * @summary Download multiple files
525
+ * @param {FilesDownloadRequest} downloadFiles Paths of files to download
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ async downloadFiles(downloadFiles, options) {
530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFiles(downloadFiles, options);
531
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
532
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.downloadFiles']?.[localVarOperationServerIndex]?.url;
533
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
534
+ },
535
+ /**
536
+ * Search for text pattern within files in a directory
537
+ * @summary Find text in files
538
+ * @param {string} path Directory path to search in
539
+ * @param {string} pattern Text pattern to search for
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ async findInFiles(path, pattern, options) {
544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(path, pattern, options);
545
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
546
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.findInFiles']?.[localVarOperationServerIndex]?.url;
547
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
548
+ },
549
+ /**
550
+ * Get detailed information about a file or directory
551
+ * @summary Get file information
552
+ * @param {string} path File or directory path
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ async getFileInfo(path, options) {
557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(path, options);
558
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
559
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
560
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
561
+ },
562
+ /**
563
+ * List files and directories in the specified path
564
+ * @summary List files and directories
565
+ * @param {string} [path] Directory path to list (defaults to working directory)
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ async listFiles(path, options) {
570
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(path, options);
571
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
572
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.listFiles']?.[localVarOperationServerIndex]?.url;
573
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
574
+ },
575
+ /**
576
+ * Move or rename a file or directory from source to destination
577
+ * @summary Move or rename file/directory
578
+ * @param {string} source Source file or directory path
579
+ * @param {string} destination Destination file or directory path
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ async moveFile(source, destination, options) {
584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(source, destination, options);
585
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
586
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.moveFile']?.[localVarOperationServerIndex]?.url;
587
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
588
+ },
589
+ /**
590
+ * Replace text pattern with new value in multiple files
591
+ * @summary Replace text in files
592
+ * @param {ReplaceRequest} request Replace request
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ async replaceInFiles(request, options) {
597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(request, options);
598
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
599
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
600
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
601
+ },
602
+ /**
603
+ * Search for files matching a specific pattern in a directory
604
+ * @summary Search files by pattern
605
+ * @param {string} path Directory path to search in
606
+ * @param {string} pattern File pattern to match (e.g., *.txt, *.go)
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ async searchFiles(path, pattern, options) {
611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(path, pattern, options);
612
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
613
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.searchFiles']?.[localVarOperationServerIndex]?.url;
614
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
615
+ },
616
+ /**
617
+ * Set file permissions, ownership, and group for a file or directory
618
+ * @summary Set file permissions
619
+ * @param {string} path File or directory path
620
+ * @param {string} [owner] Owner (username or UID)
621
+ * @param {string} [group] Group (group name or GID)
622
+ * @param {string} [mode] File mode in octal format (e.g., 0755)
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ async setFilePermissions(path, owner, group, mode, options) {
627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(path, owner, group, mode, options);
628
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
629
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
630
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
631
+ },
632
+ /**
633
+ * Upload a file to the specified path
634
+ * @summary Upload a file
635
+ * @param {string} path Destination path for the uploaded file
636
+ * @param {File} file File to upload
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ async uploadFile(path, file, options) {
641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(path, file, options);
642
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
643
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.uploadFile']?.[localVarOperationServerIndex]?.url;
644
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
645
+ },
646
+ /**
647
+ * Upload multiple files with their destination paths
648
+ * @summary Upload multiple files
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ async uploadFiles(options) {
653
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFiles(options);
654
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
655
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileSystemApi.uploadFiles']?.[localVarOperationServerIndex]?.url;
656
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
+ },
658
+ };
659
+ };
660
+ exports.FileSystemApiFp = FileSystemApiFp;
661
+ /**
662
+ * FileSystemApi - factory interface
663
+ * @export
664
+ */
665
+ const FileSystemApiFactory = function (configuration, basePath, axios) {
666
+ const localVarFp = (0, exports.FileSystemApiFp)(configuration);
667
+ return {
668
+ /**
669
+ * Create a folder with the specified path and optional permissions
670
+ * @summary Create a folder
671
+ * @param {string} path Folder path to create
672
+ * @param {string} mode Octal permission mode (default: 0755)
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ createFolder(path, mode, options) {
677
+ return localVarFp.createFolder(path, mode, options).then((request) => request(axios, basePath));
678
+ },
679
+ /**
680
+ * Delete a file or directory at the specified path
681
+ * @summary Delete a file or directory
682
+ * @param {string} path File or directory path to delete
683
+ * @param {boolean} [recursive] Enable recursive deletion for directories
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ deleteFile(path, recursive, options) {
688
+ return localVarFp.deleteFile(path, recursive, options).then((request) => request(axios, basePath));
689
+ },
690
+ /**
691
+ * Download a file by providing its path
692
+ * @summary Download a file
693
+ * @param {string} path File path to download
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ downloadFile(path, options) {
698
+ return localVarFp.downloadFile(path, options).then((request) => request(axios, basePath));
699
+ },
700
+ /**
701
+ * Download multiple files by providing their paths
702
+ * @summary Download multiple files
703
+ * @param {FilesDownloadRequest} downloadFiles Paths of files to download
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ downloadFiles(downloadFiles, options) {
708
+ return localVarFp.downloadFiles(downloadFiles, options).then((request) => request(axios, basePath));
709
+ },
710
+ /**
711
+ * Search for text pattern within files in a directory
712
+ * @summary Find text in files
713
+ * @param {string} path Directory path to search in
714
+ * @param {string} pattern Text pattern to search for
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ findInFiles(path, pattern, options) {
719
+ return localVarFp.findInFiles(path, pattern, options).then((request) => request(axios, basePath));
720
+ },
721
+ /**
722
+ * Get detailed information about a file or directory
723
+ * @summary Get file information
724
+ * @param {string} path File or directory path
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ getFileInfo(path, options) {
729
+ return localVarFp.getFileInfo(path, options).then((request) => request(axios, basePath));
730
+ },
731
+ /**
732
+ * List files and directories in the specified path
733
+ * @summary List files and directories
734
+ * @param {string} [path] Directory path to list (defaults to working directory)
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ */
738
+ listFiles(path, options) {
739
+ return localVarFp.listFiles(path, options).then((request) => request(axios, basePath));
740
+ },
741
+ /**
742
+ * Move or rename a file or directory from source to destination
743
+ * @summary Move or rename file/directory
744
+ * @param {string} source Source file or directory path
745
+ * @param {string} destination Destination file or directory path
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ moveFile(source, destination, options) {
750
+ return localVarFp.moveFile(source, destination, options).then((request) => request(axios, basePath));
751
+ },
752
+ /**
753
+ * Replace text pattern with new value in multiple files
754
+ * @summary Replace text in files
755
+ * @param {ReplaceRequest} request Replace request
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ replaceInFiles(request, options) {
760
+ return localVarFp.replaceInFiles(request, options).then((request) => request(axios, basePath));
761
+ },
762
+ /**
763
+ * Search for files matching a specific pattern in a directory
764
+ * @summary Search files by pattern
765
+ * @param {string} path Directory path to search in
766
+ * @param {string} pattern File pattern to match (e.g., *.txt, *.go)
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ searchFiles(path, pattern, options) {
771
+ return localVarFp.searchFiles(path, pattern, options).then((request) => request(axios, basePath));
772
+ },
773
+ /**
774
+ * Set file permissions, ownership, and group for a file or directory
775
+ * @summary Set file permissions
776
+ * @param {string} path File or directory path
777
+ * @param {string} [owner] Owner (username or UID)
778
+ * @param {string} [group] Group (group name or GID)
779
+ * @param {string} [mode] File mode in octal format (e.g., 0755)
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ setFilePermissions(path, owner, group, mode, options) {
784
+ return localVarFp.setFilePermissions(path, owner, group, mode, options).then((request) => request(axios, basePath));
785
+ },
786
+ /**
787
+ * Upload a file to the specified path
788
+ * @summary Upload a file
789
+ * @param {string} path Destination path for the uploaded file
790
+ * @param {File} file File to upload
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ uploadFile(path, file, options) {
795
+ return localVarFp.uploadFile(path, file, options).then((request) => request(axios, basePath));
796
+ },
797
+ /**
798
+ * Upload multiple files with their destination paths
799
+ * @summary Upload multiple files
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ uploadFiles(options) {
804
+ return localVarFp.uploadFiles(options).then((request) => request(axios, basePath));
805
+ },
806
+ };
807
+ };
808
+ exports.FileSystemApiFactory = FileSystemApiFactory;
809
+ /**
810
+ * FileSystemApi - object-oriented interface
811
+ * @export
812
+ * @class FileSystemApi
813
+ * @extends {BaseAPI}
814
+ */
815
+ class FileSystemApi extends base_1.BaseAPI {
816
+ /**
817
+ * Create a folder with the specified path and optional permissions
818
+ * @summary Create a folder
819
+ * @param {string} path Folder path to create
820
+ * @param {string} mode Octal permission mode (default: 0755)
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ * @memberof FileSystemApi
824
+ */
825
+ createFolder(path, mode, options) {
826
+ return (0, exports.FileSystemApiFp)(this.configuration).createFolder(path, mode, options).then((request) => request(this.axios, this.basePath));
827
+ }
828
+ /**
829
+ * Delete a file or directory at the specified path
830
+ * @summary Delete a file or directory
831
+ * @param {string} path File or directory path to delete
832
+ * @param {boolean} [recursive] Enable recursive deletion for directories
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof FileSystemApi
836
+ */
837
+ deleteFile(path, recursive, options) {
838
+ return (0, exports.FileSystemApiFp)(this.configuration).deleteFile(path, recursive, options).then((request) => request(this.axios, this.basePath));
839
+ }
840
+ /**
841
+ * Download a file by providing its path
842
+ * @summary Download a file
843
+ * @param {string} path File path to download
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ * @memberof FileSystemApi
847
+ */
848
+ downloadFile(path, options) {
849
+ return (0, exports.FileSystemApiFp)(this.configuration).downloadFile(path, options).then((request) => request(this.axios, this.basePath));
850
+ }
851
+ /**
852
+ * Download multiple files by providing their paths
853
+ * @summary Download multiple files
854
+ * @param {FilesDownloadRequest} downloadFiles Paths of files to download
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ * @memberof FileSystemApi
858
+ */
859
+ downloadFiles(downloadFiles, options) {
860
+ return (0, exports.FileSystemApiFp)(this.configuration).downloadFiles(downloadFiles, options).then((request) => request(this.axios, this.basePath));
861
+ }
862
+ /**
863
+ * Search for text pattern within files in a directory
864
+ * @summary Find text in files
865
+ * @param {string} path Directory path to search in
866
+ * @param {string} pattern Text pattern to search for
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ * @memberof FileSystemApi
870
+ */
871
+ findInFiles(path, pattern, options) {
872
+ return (0, exports.FileSystemApiFp)(this.configuration).findInFiles(path, pattern, options).then((request) => request(this.axios, this.basePath));
873
+ }
874
+ /**
875
+ * Get detailed information about a file or directory
876
+ * @summary Get file information
877
+ * @param {string} path File or directory path
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ * @memberof FileSystemApi
881
+ */
882
+ getFileInfo(path, options) {
883
+ return (0, exports.FileSystemApiFp)(this.configuration).getFileInfo(path, options).then((request) => request(this.axios, this.basePath));
884
+ }
885
+ /**
886
+ * List files and directories in the specified path
887
+ * @summary List files and directories
888
+ * @param {string} [path] Directory path to list (defaults to working directory)
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ * @memberof FileSystemApi
892
+ */
893
+ listFiles(path, options) {
894
+ return (0, exports.FileSystemApiFp)(this.configuration).listFiles(path, options).then((request) => request(this.axios, this.basePath));
895
+ }
896
+ /**
897
+ * Move or rename a file or directory from source to destination
898
+ * @summary Move or rename file/directory
899
+ * @param {string} source Source file or directory path
900
+ * @param {string} destination Destination file or directory path
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ * @memberof FileSystemApi
904
+ */
905
+ moveFile(source, destination, options) {
906
+ return (0, exports.FileSystemApiFp)(this.configuration).moveFile(source, destination, options).then((request) => request(this.axios, this.basePath));
907
+ }
908
+ /**
909
+ * Replace text pattern with new value in multiple files
910
+ * @summary Replace text in files
911
+ * @param {ReplaceRequest} request Replace request
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ * @memberof FileSystemApi
915
+ */
916
+ replaceInFiles(request, options) {
917
+ return (0, exports.FileSystemApiFp)(this.configuration).replaceInFiles(request, options).then((request) => request(this.axios, this.basePath));
918
+ }
919
+ /**
920
+ * Search for files matching a specific pattern in a directory
921
+ * @summary Search files by pattern
922
+ * @param {string} path Directory path to search in
923
+ * @param {string} pattern File pattern to match (e.g., *.txt, *.go)
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ * @memberof FileSystemApi
927
+ */
928
+ searchFiles(path, pattern, options) {
929
+ return (0, exports.FileSystemApiFp)(this.configuration).searchFiles(path, pattern, options).then((request) => request(this.axios, this.basePath));
930
+ }
931
+ /**
932
+ * Set file permissions, ownership, and group for a file or directory
933
+ * @summary Set file permissions
934
+ * @param {string} path File or directory path
935
+ * @param {string} [owner] Owner (username or UID)
936
+ * @param {string} [group] Group (group name or GID)
937
+ * @param {string} [mode] File mode in octal format (e.g., 0755)
938
+ * @param {*} [options] Override http request option.
939
+ * @throws {RequiredError}
940
+ * @memberof FileSystemApi
941
+ */
942
+ setFilePermissions(path, owner, group, mode, options) {
943
+ return (0, exports.FileSystemApiFp)(this.configuration).setFilePermissions(path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
944
+ }
945
+ /**
946
+ * Upload a file to the specified path
947
+ * @summary Upload a file
948
+ * @param {string} path Destination path for the uploaded file
949
+ * @param {File} file File to upload
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ * @memberof FileSystemApi
953
+ */
954
+ uploadFile(path, file, options) {
955
+ return (0, exports.FileSystemApiFp)(this.configuration).uploadFile(path, file, options).then((request) => request(this.axios, this.basePath));
956
+ }
957
+ /**
958
+ * Upload multiple files with their destination paths
959
+ * @summary Upload multiple files
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ * @memberof FileSystemApi
963
+ */
964
+ uploadFiles(options) {
965
+ return (0, exports.FileSystemApiFp)(this.configuration).uploadFiles(options).then((request) => request(this.axios, this.basePath));
966
+ }
967
+ }
968
+ exports.FileSystemApi = FileSystemApi;
969
+ //# sourceMappingURL=file-system-api.js.map