windmill-client 1.309.0 → 1.309.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 (369) hide show
  1. package/dist/core/ApiError.d.ts +1 -1
  2. package/dist/core/ApiRequestOptions.d.ts +5 -5
  3. package/dist/core/ApiResult.d.ts +3 -3
  4. package/dist/core/CancelablePromise.d.ts +10 -4
  5. package/dist/core/CancelablePromise.js +33 -56
  6. package/dist/core/OpenAPI.d.ts +17 -6
  7. package/dist/core/OpenAPI.js +26 -6
  8. package/dist/core/request.d.ts +6 -7
  9. package/dist/core/request.js +40 -56
  10. package/dist/index.d.ts +4 -178
  11. package/dist/index.js +19 -102
  12. package/dist/schemas.gen.d.ts +3155 -0
  13. package/dist/schemas.gen.js +3222 -0
  14. package/dist/services.gen.d.ts +1928 -0
  15. package/dist/services.gen.js +5341 -0
  16. package/dist/types.gen.d.ts +6898 -0
  17. package/dist/{models/After.js → types.gen.js} +1 -0
  18. package/package.json +3 -2
  19. package/dist/models/AccountId.d.ts +0 -1
  20. package/dist/models/AccountId.js +0 -2
  21. package/dist/models/ActionKind.d.ts +0 -9
  22. package/dist/models/ActionKind.js +0 -17
  23. package/dist/models/After.d.ts +0 -4
  24. package/dist/models/AppHistory.d.ts +0 -4
  25. package/dist/models/AppHistory.js +0 -2
  26. package/dist/models/AppWithLastVersion.d.ts +0 -21
  27. package/dist/models/AppWithLastVersion.js +0 -12
  28. package/dist/models/AppWithLastVersionWDraft.d.ts +0 -5
  29. package/dist/models/AppWithLastVersionWDraft.js +0 -2
  30. package/dist/models/ArgsFilter.d.ts +0 -4
  31. package/dist/models/ArgsFilter.js +0 -2
  32. package/dist/models/AuditLog.d.ts +0 -102
  33. package/dist/models/AuditLog.js +0 -99
  34. package/dist/models/Before.d.ts +0 -4
  35. package/dist/models/Before.js +0 -2
  36. package/dist/models/BranchAll.d.ts +0 -10
  37. package/dist/models/BranchAll.js +0 -2
  38. package/dist/models/BranchOne.d.ts +0 -10
  39. package/dist/models/BranchOne.js +0 -2
  40. package/dist/models/CacheTtl.d.ts +0 -4
  41. package/dist/models/CacheTtl.js +0 -2
  42. package/dist/models/ClientName.d.ts +0 -1
  43. package/dist/models/ClientName.js +0 -2
  44. package/dist/models/CompletedJob.d.ts +0 -71
  45. package/dist/models/CompletedJob.js +0 -36
  46. package/dist/models/ConcurrencyGroup.d.ts +0 -4
  47. package/dist/models/ConcurrencyGroup.js +0 -2
  48. package/dist/models/ConcurrencyId.d.ts +0 -1
  49. package/dist/models/ConcurrencyId.js +0 -2
  50. package/dist/models/ContextualVariable.d.ts +0 -6
  51. package/dist/models/ContextualVariable.js +0 -2
  52. package/dist/models/CreateInput.d.ts +0 -4
  53. package/dist/models/CreateInput.js +0 -2
  54. package/dist/models/CreateResource.d.ts +0 -6
  55. package/dist/models/CreateResource.js +0 -2
  56. package/dist/models/CreateVariable.d.ts +0 -8
  57. package/dist/models/CreateVariable.js +0 -2
  58. package/dist/models/CreateWorkspace.d.ts +0 -5
  59. package/dist/models/CreateWorkspace.js +0 -2
  60. package/dist/models/CreatedBy.d.ts +0 -4
  61. package/dist/models/CreatedBy.js +0 -2
  62. package/dist/models/CreatedOrStartedAfter.d.ts +0 -4
  63. package/dist/models/CreatedOrStartedAfter.js +0 -2
  64. package/dist/models/CreatedOrStartedBefore.d.ts +0 -4
  65. package/dist/models/CreatedOrStartedBefore.js +0 -2
  66. package/dist/models/EditResource.d.ts +0 -5
  67. package/dist/models/EditResource.js +0 -2
  68. package/dist/models/EditResourceType.d.ts +0 -4
  69. package/dist/models/EditResourceType.js +0 -2
  70. package/dist/models/EditSchedule.d.ts +0 -19
  71. package/dist/models/EditSchedule.js +0 -2
  72. package/dist/models/EditVariable.d.ts +0 -6
  73. package/dist/models/EditVariable.js +0 -2
  74. package/dist/models/EditWorkspaceUser.d.ts +0 -5
  75. package/dist/models/EditWorkspaceUser.js +0 -2
  76. package/dist/models/Flow.d.ts +0 -3
  77. package/dist/models/Flow.js +0 -2
  78. package/dist/models/FlowMetadata.d.ts +0 -16
  79. package/dist/models/FlowMetadata.js +0 -2
  80. package/dist/models/FlowModule.d.ts +0 -34
  81. package/dist/models/FlowModule.js +0 -2
  82. package/dist/models/FlowModuleValue.d.ts +0 -9
  83. package/dist/models/FlowModuleValue.js +0 -2
  84. package/dist/models/FlowPreview.d.ts +0 -10
  85. package/dist/models/FlowPreview.js +0 -2
  86. package/dist/models/FlowStatus.d.ts +0 -13
  87. package/dist/models/FlowStatus.js +0 -2
  88. package/dist/models/FlowStatusModule.d.ts +0 -34
  89. package/dist/models/FlowStatusModule.js +0 -15
  90. package/dist/models/FlowValue.d.ts +0 -13
  91. package/dist/models/FlowValue.js +0 -2
  92. package/dist/models/Folder.d.ts +0 -5
  93. package/dist/models/Folder.js +0 -2
  94. package/dist/models/ForloopFlow.d.ts +0 -10
  95. package/dist/models/ForloopFlow.js +0 -2
  96. package/dist/models/GetStarted.d.ts +0 -1
  97. package/dist/models/GetStarted.js +0 -2
  98. package/dist/models/GitRepositorySettings.d.ts +0 -7
  99. package/dist/models/GitRepositorySettings.js +0 -2
  100. package/dist/models/GlobalUserInfo.d.ts +0 -15
  101. package/dist/models/GlobalUserInfo.js +0 -11
  102. package/dist/models/Group.d.ts +0 -6
  103. package/dist/models/Group.js +0 -2
  104. package/dist/models/HubScriptKind.d.ts +0 -1
  105. package/dist/models/HubScriptKind.js +0 -2
  106. package/dist/models/Identity.d.ts +0 -4
  107. package/dist/models/Identity.js +0 -2
  108. package/dist/models/IncludeHeader.d.ts +0 -6
  109. package/dist/models/IncludeHeader.js +0 -2
  110. package/dist/models/Input.d.ts +0 -9
  111. package/dist/models/Input.js +0 -2
  112. package/dist/models/InputId.d.ts +0 -1
  113. package/dist/models/InputId.js +0 -2
  114. package/dist/models/InputTransform.d.ts +0 -3
  115. package/dist/models/InputTransform.js +0 -2
  116. package/dist/models/InstanceGroup.d.ts +0 -5
  117. package/dist/models/InstanceGroup.js +0 -2
  118. package/dist/models/JavascriptTransform.d.ts +0 -4
  119. package/dist/models/JavascriptTransform.js +0 -2
  120. package/dist/models/Job.d.ts +0 -12
  121. package/dist/models/Job.js +0 -10
  122. package/dist/models/JobId.d.ts +0 -1
  123. package/dist/models/JobId.js +0 -2
  124. package/dist/models/JobKinds.d.ts +0 -4
  125. package/dist/models/JobKinds.js +0 -2
  126. package/dist/models/Key.d.ts +0 -1
  127. package/dist/models/Key.js +0 -2
  128. package/dist/models/LargeFileStorage.d.ts +0 -14
  129. package/dist/models/LargeFileStorage.js +0 -13
  130. package/dist/models/ListableApp.d.ts +0 -18
  131. package/dist/models/ListableApp.js +0 -12
  132. package/dist/models/ListableRawApp.d.ts +0 -9
  133. package/dist/models/ListableRawApp.js +0 -2
  134. package/dist/models/ListableResource.d.ts +0 -14
  135. package/dist/models/ListableResource.js +0 -2
  136. package/dist/models/ListableVariable.d.ts +0 -14
  137. package/dist/models/ListableVariable.js +0 -2
  138. package/dist/models/Login.d.ts +0 -4
  139. package/dist/models/Login.js +0 -2
  140. package/dist/models/MainArgSignature.d.ts +0 -33
  141. package/dist/models/MainArgSignature.js +0 -11
  142. package/dist/models/MetricDataPoint.d.ts +0 -4
  143. package/dist/models/MetricDataPoint.js +0 -2
  144. package/dist/models/MetricMetadata.d.ts +0 -4
  145. package/dist/models/MetricMetadata.js +0 -2
  146. package/dist/models/Name.d.ts +0 -1
  147. package/dist/models/Name.js +0 -2
  148. package/dist/models/NewJobId.d.ts +0 -4
  149. package/dist/models/NewJobId.js +0 -2
  150. package/dist/models/NewSchedule.d.ts +0 -23
  151. package/dist/models/NewSchedule.js +0 -2
  152. package/dist/models/NewScript.d.ts +0 -51
  153. package/dist/models/NewScript.js +0 -30
  154. package/dist/models/NewScriptWithDraft.d.ts +0 -5
  155. package/dist/models/NewScriptWithDraft.js +0 -2
  156. package/dist/models/NewToken.d.ts +0 -5
  157. package/dist/models/NewToken.js +0 -2
  158. package/dist/models/NewTokenImpersonate.d.ts +0 -5
  159. package/dist/models/NewTokenImpersonate.js +0 -2
  160. package/dist/models/OpenFlow.d.ts +0 -7
  161. package/dist/models/OpenFlow.js +0 -2
  162. package/dist/models/OpenFlowWPath.d.ts +0 -10
  163. package/dist/models/OpenFlowWPath.js +0 -2
  164. package/dist/models/Operation.d.ts +0 -4
  165. package/dist/models/Operation.js +0 -2
  166. package/dist/models/OrderDesc.d.ts +0 -4
  167. package/dist/models/OrderDesc.js +0 -2
  168. package/dist/models/Page.d.ts +0 -4
  169. package/dist/models/Page.js +0 -2
  170. package/dist/models/ParentJob.d.ts +0 -4
  171. package/dist/models/ParentJob.js +0 -2
  172. package/dist/models/Path.d.ts +0 -1
  173. package/dist/models/Path.js +0 -2
  174. package/dist/models/PathFlow.d.ts +0 -6
  175. package/dist/models/PathFlow.js +0 -2
  176. package/dist/models/PathId.d.ts +0 -1
  177. package/dist/models/PathId.js +0 -2
  178. package/dist/models/PathScript.d.ts +0 -7
  179. package/dist/models/PathScript.js +0 -2
  180. package/dist/models/PathVersion.d.ts +0 -1
  181. package/dist/models/PathVersion.js +0 -2
  182. package/dist/models/Payload.d.ts +0 -6
  183. package/dist/models/Payload.js +0 -2
  184. package/dist/models/PerPage.d.ts +0 -4
  185. package/dist/models/PerPage.js +0 -2
  186. package/dist/models/PolarsClientKwargs.d.ts +0 -3
  187. package/dist/models/PolarsClientKwargs.js +0 -2
  188. package/dist/models/Policy.d.ts +0 -13
  189. package/dist/models/Policy.js +0 -12
  190. package/dist/models/Preview.d.ts +0 -33
  191. package/dist/models/Preview.js +0 -28
  192. package/dist/models/QueueLimit.d.ts +0 -5
  193. package/dist/models/QueueLimit.js +0 -2
  194. package/dist/models/QueuedJob.d.ts +0 -69
  195. package/dist/models/QueuedJob.js +0 -36
  196. package/dist/models/RawScript.d.ts +0 -29
  197. package/dist/models/RawScript.js +0 -22
  198. package/dist/models/RawScriptForDependencies.d.ts +0 -22
  199. package/dist/models/RawScriptForDependencies.js +0 -22
  200. package/dist/models/Resource.d.ts +0 -9
  201. package/dist/models/Resource.js +0 -2
  202. package/dist/models/ResourceName.d.ts +0 -4
  203. package/dist/models/ResourceName.js +0 -2
  204. package/dist/models/ResourceType.d.ts +0 -6
  205. package/dist/models/ResourceType.js +0 -2
  206. package/dist/models/RestartedFrom.d.ts +0 -5
  207. package/dist/models/RestartedFrom.js +0 -2
  208. package/dist/models/ResultFilter.d.ts +0 -4
  209. package/dist/models/ResultFilter.js +0 -2
  210. package/dist/models/Retry.d.ts +0 -12
  211. package/dist/models/Retry.js +0 -2
  212. package/dist/models/RunnableId.d.ts +0 -1
  213. package/dist/models/RunnableId.js +0 -2
  214. package/dist/models/RunnableType.d.ts +0 -5
  215. package/dist/models/RunnableType.js +0 -13
  216. package/dist/models/RunnableTypeQuery.d.ts +0 -2
  217. package/dist/models/RunnableTypeQuery.js +0 -2
  218. package/dist/models/Running.d.ts +0 -4
  219. package/dist/models/Running.js +0 -2
  220. package/dist/models/S3Resource.d.ts +0 -9
  221. package/dist/models/S3Resource.js +0 -2
  222. package/dist/models/ScalarMetric.d.ts +0 -4
  223. package/dist/models/ScalarMetric.js +0 -2
  224. package/dist/models/Schedule.d.ts +0 -28
  225. package/dist/models/Schedule.js +0 -2
  226. package/dist/models/SchedulePath.d.ts +0 -4
  227. package/dist/models/SchedulePath.js +0 -2
  228. package/dist/models/ScheduleWJobs.d.ts +0 -8
  229. package/dist/models/ScheduleWJobs.js +0 -2
  230. package/dist/models/ScheduledForBeforeNow.d.ts +0 -4
  231. package/dist/models/ScheduledForBeforeNow.js +0 -2
  232. package/dist/models/Script.d.ts +0 -63
  233. package/dist/models/Script.js +0 -30
  234. package/dist/models/ScriptArgs.d.ts +0 -1
  235. package/dist/models/ScriptArgs.js +0 -2
  236. package/dist/models/ScriptExactHash.d.ts +0 -4
  237. package/dist/models/ScriptExactHash.js +0 -2
  238. package/dist/models/ScriptExactPath.d.ts +0 -4
  239. package/dist/models/ScriptExactPath.js +0 -2
  240. package/dist/models/ScriptHash.d.ts +0 -1
  241. package/dist/models/ScriptHash.js +0 -2
  242. package/dist/models/ScriptHistory.d.ts +0 -4
  243. package/dist/models/ScriptHistory.js +0 -2
  244. package/dist/models/ScriptPath.d.ts +0 -1
  245. package/dist/models/ScriptPath.js +0 -2
  246. package/dist/models/ScriptStartPath.d.ts +0 -4
  247. package/dist/models/ScriptStartPath.js +0 -2
  248. package/dist/models/SlackToken.d.ts +0 -8
  249. package/dist/models/SlackToken.js +0 -2
  250. package/dist/models/StartedAfter.d.ts +0 -4
  251. package/dist/models/StartedAfter.js +0 -2
  252. package/dist/models/StartedBefore.d.ts +0 -4
  253. package/dist/models/StartedBefore.js +0 -2
  254. package/dist/models/StaticTransform.d.ts +0 -4
  255. package/dist/models/StaticTransform.js +0 -2
  256. package/dist/models/Success.d.ts +0 -4
  257. package/dist/models/Success.js +0 -2
  258. package/dist/models/Suspended.d.ts +0 -4
  259. package/dist/models/Suspended.js +0 -2
  260. package/dist/models/Tag.d.ts +0 -4
  261. package/dist/models/Tag.js +0 -2
  262. package/dist/models/TimeseriesMetric.d.ts +0 -5
  263. package/dist/models/TimeseriesMetric.js +0 -2
  264. package/dist/models/Token.d.ts +0 -1
  265. package/dist/models/Token.js +0 -2
  266. package/dist/models/TokenResponse.d.ts +0 -6
  267. package/dist/models/TokenResponse.js +0 -2
  268. package/dist/models/TruncatedToken.d.ts +0 -8
  269. package/dist/models/TruncatedToken.js +0 -2
  270. package/dist/models/UpdateInput.d.ts +0 -5
  271. package/dist/models/UpdateInput.js +0 -2
  272. package/dist/models/UploadFilePart.d.ts +0 -4
  273. package/dist/models/UploadFilePart.js +0 -2
  274. package/dist/models/User.d.ts +0 -12
  275. package/dist/models/User.js +0 -2
  276. package/dist/models/UserUsage.d.ts +0 -4
  277. package/dist/models/UserUsage.js +0 -2
  278. package/dist/models/UserWorkspaceList.d.ts +0 -8
  279. package/dist/models/UserWorkspaceList.js +0 -2
  280. package/dist/models/Username.d.ts +0 -4
  281. package/dist/models/Username.js +0 -2
  282. package/dist/models/VersionId.d.ts +0 -1
  283. package/dist/models/VersionId.js +0 -2
  284. package/dist/models/WhileloopFlow.d.ts +0 -8
  285. package/dist/models/WhileloopFlow.js +0 -2
  286. package/dist/models/WindmillFileMetadata.d.ts +0 -7
  287. package/dist/models/WindmillFileMetadata.js +0 -2
  288. package/dist/models/WindmillFilePreview.d.ts +0 -13
  289. package/dist/models/WindmillFilePreview.js +0 -13
  290. package/dist/models/WindmillLargeFile.d.ts +0 -3
  291. package/dist/models/WindmillLargeFile.js +0 -2
  292. package/dist/models/WorkerPing.d.ts +0 -11
  293. package/dist/models/WorkerPing.js +0 -2
  294. package/dist/models/WorkerTag.d.ts +0 -4
  295. package/dist/models/WorkerTag.js +0 -2
  296. package/dist/models/WorkflowStatus.d.ts +0 -6
  297. package/dist/models/WorkflowStatus.js +0 -2
  298. package/dist/models/WorkflowStatusRecord.d.ts +0 -2
  299. package/dist/models/WorkflowStatusRecord.js +0 -2
  300. package/dist/models/WorkflowTask.d.ts +0 -4
  301. package/dist/models/WorkflowTask.js +0 -2
  302. package/dist/models/Workspace.d.ts +0 -6
  303. package/dist/models/Workspace.js +0 -2
  304. package/dist/models/WorkspaceDefaultScripts.d.ts +0 -5
  305. package/dist/models/WorkspaceDefaultScripts.js +0 -2
  306. package/dist/models/WorkspaceGitSyncSettings.d.ts +0 -6
  307. package/dist/models/WorkspaceGitSyncSettings.js +0 -2
  308. package/dist/models/WorkspaceId.d.ts +0 -1
  309. package/dist/models/WorkspaceId.js +0 -2
  310. package/dist/models/WorkspaceInvite.d.ts +0 -6
  311. package/dist/models/WorkspaceInvite.js +0 -2
  312. package/dist/services/AdminService.d.ts +0 -36
  313. package/dist/services/AdminService.js +0 -55
  314. package/dist/services/AppService.d.ts +0 -244
  315. package/dist/services/AppService.js +0 -273
  316. package/dist/services/AuditService.d.ts +0 -53
  317. package/dist/services/AuditService.js +0 -47
  318. package/dist/services/CaptureService.d.ts +0 -30
  319. package/dist/services/CaptureService.js +0 -56
  320. package/dist/services/ConcurrencyGroupsService.d.ts +0 -18
  321. package/dist/services/ConcurrencyGroupsService.js +0 -33
  322. package/dist/services/ConfigService.d.ts +0 -40
  323. package/dist/services/ConfigService.js +0 -63
  324. package/dist/services/DraftService.d.ts +0 -26
  325. package/dist/services/DraftService.js +0 -40
  326. package/dist/services/FavoriteService.d.ts +0 -27
  327. package/dist/services/FavoriteService.js +0 -40
  328. package/dist/services/FlowService.d.ts +0 -215
  329. package/dist/services/FlowService.js +0 -231
  330. package/dist/services/FolderService.d.ts +0 -129
  331. package/dist/services/FolderService.js +0 -155
  332. package/dist/services/GranularAclService.d.ts +0 -46
  333. package/dist/services/GranularAclService.js +0 -60
  334. package/dist/services/GroupService.d.ts +0 -189
  335. package/dist/services/GroupService.js +0 -240
  336. package/dist/services/HelpersService.d.ts +0 -215
  337. package/dist/services/HelpersService.js +0 -260
  338. package/dist/services/InputService.d.ts +0 -78
  339. package/dist/services/InputService.js +0 -99
  340. package/dist/services/IntegrationService.d.ts +0 -16
  341. package/dist/services/IntegrationService.js +0 -22
  342. package/dist/services/JobService.d.ts +0 -1052
  343. package/dist/services/JobService.js +0 -894
  344. package/dist/services/MetricsService.d.ts +0 -27
  345. package/dist/services/MetricsService.js +0 -25
  346. package/dist/services/OauthService.d.ts +0 -97
  347. package/dist/services/OauthService.js +0 -124
  348. package/dist/services/OidcService.d.ts +0 -12
  349. package/dist/services/OidcService.js +0 -23
  350. package/dist/services/RawAppService.d.ts +0 -103
  351. package/dist/services/RawAppService.js +0 -110
  352. package/dist/services/ResourceService.d.ts +0 -234
  353. package/dist/services/ResourceService.js +0 -312
  354. package/dist/services/ScheduleService.d.ts +0 -149
  355. package/dist/services/ScheduleService.js +0 -171
  356. package/dist/services/ScriptService.d.ts +0 -355
  357. package/dist/services/ScriptService.js +0 -373
  358. package/dist/services/SettingService.d.ts +0 -93
  359. package/dist/services/SettingService.js +0 -112
  360. package/dist/services/SettingsService.d.ts +0 -27
  361. package/dist/services/SettingsService.js +0 -52
  362. package/dist/services/UserService.d.ts +0 -366
  363. package/dist/services/UserService.js +0 -479
  364. package/dist/services/VariableService.d.ts +0 -109
  365. package/dist/services/VariableService.js +0 -155
  366. package/dist/services/WorkerService.d.ts +0 -49
  367. package/dist/services/WorkerService.js +0 -71
  368. package/dist/services/WorkspaceService.d.ts +0 -517
  369. package/dist/services/WorkspaceService.js +0 -623
@@ -1,373 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScriptService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class ScriptService {
7
- /**
8
- * get hub script content by path
9
- * @returns string script details
10
- * @throws ApiError
11
- */
12
- static getHubScriptContentByPath({ path, }) {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
- method: 'GET',
15
- url: '/scripts/hub/get/{path}',
16
- path: {
17
- 'path': path,
18
- },
19
- });
20
- }
21
- /**
22
- * get full hub script by path
23
- * @returns any script details
24
- * @throws ApiError
25
- */
26
- static getHubScriptByPath({ path, }) {
27
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
28
- method: 'GET',
29
- url: '/scripts/hub/get_full/{path}',
30
- path: {
31
- 'path': path,
32
- },
33
- });
34
- }
35
- /**
36
- * get top hub scripts
37
- * @returns any hub scripts list
38
- * @throws ApiError
39
- */
40
- static getTopHubScripts({ limit, app, kind, }) {
41
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
42
- method: 'GET',
43
- url: '/scripts/hub/top',
44
- query: {
45
- 'limit': limit,
46
- 'app': app,
47
- 'kind': kind,
48
- },
49
- });
50
- }
51
- /**
52
- * query hub scripts by similarity
53
- * @returns any script details
54
- * @throws ApiError
55
- */
56
- static queryHubScripts({ text, kind, limit, app, }) {
57
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
58
- method: 'GET',
59
- url: '/embeddings/query_hub_scripts',
60
- query: {
61
- 'text': text,
62
- 'kind': kind,
63
- 'limit': limit,
64
- 'app': app,
65
- },
66
- });
67
- }
68
- /**
69
- * list scripts for search
70
- * @returns any script list
71
- * @throws ApiError
72
- */
73
- static listSearchScript({ workspace, }) {
74
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
75
- method: 'GET',
76
- url: '/w/{workspace}/scripts/list_search',
77
- path: {
78
- 'workspace': workspace,
79
- },
80
- });
81
- }
82
- /**
83
- * list all scripts
84
- * @returns Script All scripts
85
- * @throws ApiError
86
- */
87
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }) {
88
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
89
- method: 'GET',
90
- url: '/w/{workspace}/scripts/list',
91
- path: {
92
- 'workspace': workspace,
93
- },
94
- query: {
95
- 'page': page,
96
- 'per_page': perPage,
97
- 'order_desc': orderDesc,
98
- 'created_by': createdBy,
99
- 'path_start': pathStart,
100
- 'path_exact': pathExact,
101
- 'first_parent_hash': firstParentHash,
102
- 'last_parent_hash': lastParentHash,
103
- 'parent_hash': parentHash,
104
- 'show_archived': showArchived,
105
- 'is_template': isTemplate,
106
- 'kinds': kinds,
107
- 'starred_only': starredOnly,
108
- },
109
- });
110
- }
111
- /**
112
- * list all scripts paths
113
- * @returns string list of script paths
114
- * @throws ApiError
115
- */
116
- static listScriptPaths({ workspace, }) {
117
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
118
- method: 'GET',
119
- url: '/w/{workspace}/scripts/list_paths',
120
- path: {
121
- 'workspace': workspace,
122
- },
123
- });
124
- }
125
- /**
126
- * create script
127
- * @returns string script created
128
- * @throws ApiError
129
- */
130
- static createScript({ workspace, requestBody, }) {
131
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
132
- method: 'POST',
133
- url: '/w/{workspace}/scripts/create',
134
- path: {
135
- 'workspace': workspace,
136
- },
137
- body: requestBody,
138
- mediaType: 'application/json',
139
- });
140
- }
141
- /**
142
- * Toggle ON and OFF the workspace error handler for a given script
143
- * @returns string error handler toggled
144
- * @throws ApiError
145
- */
146
- static toggleWorkspaceErrorHandlerForScript({ workspace, path, requestBody, }) {
147
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
148
- method: 'POST',
149
- url: '/w/{workspace}/scripts/toggle_workspace_error_handler/p/{path}',
150
- path: {
151
- 'workspace': workspace,
152
- 'path': path,
153
- },
154
- body: requestBody,
155
- mediaType: 'application/json',
156
- });
157
- }
158
- /**
159
- * archive script by path
160
- * @returns string script archived
161
- * @throws ApiError
162
- */
163
- static archiveScriptByPath({ workspace, path, }) {
164
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
165
- method: 'POST',
166
- url: '/w/{workspace}/scripts/archive/p/{path}',
167
- path: {
168
- 'workspace': workspace,
169
- 'path': path,
170
- },
171
- });
172
- }
173
- /**
174
- * archive script by hash
175
- * @returns Script script details
176
- * @throws ApiError
177
- */
178
- static archiveScriptByHash({ workspace, hash, }) {
179
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
180
- method: 'POST',
181
- url: '/w/{workspace}/scripts/archive/h/{hash}',
182
- path: {
183
- 'workspace': workspace,
184
- 'hash': hash,
185
- },
186
- });
187
- }
188
- /**
189
- * delete script by hash (erase content but keep hash, require admin)
190
- * @returns Script script details
191
- * @throws ApiError
192
- */
193
- static deleteScriptByHash({ workspace, hash, }) {
194
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
195
- method: 'POST',
196
- url: '/w/{workspace}/scripts/delete/h/{hash}',
197
- path: {
198
- 'workspace': workspace,
199
- 'hash': hash,
200
- },
201
- });
202
- }
203
- /**
204
- * delete all scripts at a given path (require admin)
205
- * @returns string script path
206
- * @throws ApiError
207
- */
208
- static deleteScriptByPath({ workspace, path, }) {
209
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
210
- method: 'POST',
211
- url: '/w/{workspace}/scripts/delete/p/{path}',
212
- path: {
213
- 'workspace': workspace,
214
- 'path': path,
215
- },
216
- });
217
- }
218
- /**
219
- * get script by path
220
- * @returns Script script details
221
- * @throws ApiError
222
- */
223
- static getScriptByPath({ workspace, path, }) {
224
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
225
- method: 'GET',
226
- url: '/w/{workspace}/scripts/get/p/{path}',
227
- path: {
228
- 'workspace': workspace,
229
- 'path': path,
230
- },
231
- });
232
- }
233
- /**
234
- * get script by path with draft
235
- * @returns NewScriptWithDraft script details
236
- * @throws ApiError
237
- */
238
- static getScriptByPathWithDraft({ workspace, path, }) {
239
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
240
- method: 'GET',
241
- url: '/w/{workspace}/scripts/get/draft/{path}',
242
- path: {
243
- 'workspace': workspace,
244
- 'path': path,
245
- },
246
- });
247
- }
248
- /**
249
- * get history of a script by path
250
- * @returns ScriptHistory script history
251
- * @throws ApiError
252
- */
253
- static getScriptHistoryByPath({ workspace, path, }) {
254
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
255
- method: 'GET',
256
- url: '/w/{workspace}/scripts/history/p/{path}',
257
- path: {
258
- 'workspace': workspace,
259
- 'path': path,
260
- },
261
- });
262
- }
263
- /**
264
- * update history of a script
265
- * @returns string success
266
- * @throws ApiError
267
- */
268
- static updateScriptHistory({ workspace, hash, path, requestBody, }) {
269
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
270
- method: 'POST',
271
- url: '/w/{workspace}/scripts/history_update/h/{hash}/p/{path}',
272
- path: {
273
- 'workspace': workspace,
274
- 'hash': hash,
275
- 'path': path,
276
- },
277
- body: requestBody,
278
- mediaType: 'application/json',
279
- });
280
- }
281
- /**
282
- * raw script by path
283
- * @returns string script content
284
- * @throws ApiError
285
- */
286
- static rawScriptByPath({ workspace, path, }) {
287
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
288
- method: 'GET',
289
- url: '/w/{workspace}/scripts/raw/p/{path}',
290
- path: {
291
- 'workspace': workspace,
292
- 'path': path,
293
- },
294
- });
295
- }
296
- /**
297
- * raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts)
298
- * @returns string script content
299
- * @throws ApiError
300
- */
301
- static rawScriptByPathTokened({ workspace, token, path, }) {
302
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
303
- method: 'GET',
304
- url: '/scripts_u/tokened_raw/{workspace}/{token}/{path}',
305
- path: {
306
- 'workspace': workspace,
307
- 'token': token,
308
- 'path': path,
309
- },
310
- });
311
- }
312
- /**
313
- * exists script by path
314
- * @returns boolean does it exists
315
- * @throws ApiError
316
- */
317
- static existsScriptByPath({ workspace, path, }) {
318
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
319
- method: 'GET',
320
- url: '/w/{workspace}/scripts/exists/p/{path}',
321
- path: {
322
- 'workspace': workspace,
323
- 'path': path,
324
- },
325
- });
326
- }
327
- /**
328
- * get script by hash
329
- * @returns Script script details
330
- * @throws ApiError
331
- */
332
- static getScriptByHash({ workspace, hash, }) {
333
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
334
- method: 'GET',
335
- url: '/w/{workspace}/scripts/get/h/{hash}',
336
- path: {
337
- 'workspace': workspace,
338
- 'hash': hash,
339
- },
340
- });
341
- }
342
- /**
343
- * raw script by hash
344
- * @returns string script content
345
- * @throws ApiError
346
- */
347
- static rawScriptByHash({ workspace, path, }) {
348
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
349
- method: 'GET',
350
- url: '/w/{workspace}/scripts/raw/h/{path}',
351
- path: {
352
- 'workspace': workspace,
353
- 'path': path,
354
- },
355
- });
356
- }
357
- /**
358
- * get script deployment status
359
- * @returns any script details
360
- * @throws ApiError
361
- */
362
- static getScriptDeploymentStatus({ workspace, hash, }) {
363
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
364
- method: 'GET',
365
- url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
366
- path: {
367
- 'workspace': workspace,
368
- 'hash': hash,
369
- },
370
- });
371
- }
372
- }
373
- exports.ScriptService = ScriptService;
@@ -1,93 +0,0 @@
1
- import type { CancelablePromise } from '../core/CancelablePromise';
2
- export declare class SettingService {
3
- /**
4
- * get global settings
5
- * @returns any status
6
- * @throws ApiError
7
- */
8
- static getGlobal({ key, }: {
9
- key: string;
10
- }): CancelablePromise<any>;
11
- /**
12
- * post global settings
13
- * @returns string status
14
- * @throws ApiError
15
- */
16
- static setGlobal({ key, requestBody, }: {
17
- key: string;
18
- /**
19
- * value set
20
- */
21
- requestBody: {
22
- value?: any;
23
- };
24
- }): CancelablePromise<string>;
25
- /**
26
- * get local settings
27
- * @returns any status
28
- * @throws ApiError
29
- */
30
- static getLocal(): CancelablePromise<any>;
31
- /**
32
- * test smtp
33
- * @returns string status
34
- * @throws ApiError
35
- */
36
- static testSmtp({ requestBody, }: {
37
- /**
38
- * test smtp payload
39
- */
40
- requestBody: {
41
- to: string;
42
- smtp: {
43
- host: string;
44
- username: string;
45
- password: string;
46
- port: number;
47
- from: string;
48
- tls_implicit: boolean;
49
- };
50
- };
51
- }): CancelablePromise<string>;
52
- /**
53
- * test license key
54
- * @returns string status
55
- * @throws ApiError
56
- */
57
- static testLicenseKey({ requestBody, }: {
58
- /**
59
- * test license key
60
- */
61
- requestBody: {
62
- license_key: string;
63
- };
64
- }): CancelablePromise<string>;
65
- /**
66
- * test object storage config
67
- * @returns string status
68
- * @throws ApiError
69
- */
70
- static testObjectStorageConfig({ requestBody, }: {
71
- /**
72
- * test object storage config
73
- */
74
- requestBody: Record<string, any>;
75
- }): CancelablePromise<string>;
76
- /**
77
- * send stats
78
- * @returns string status
79
- * @throws ApiError
80
- */
81
- static sendStats(): CancelablePromise<string>;
82
- /**
83
- * test metadata
84
- * @returns string status
85
- * @throws ApiError
86
- */
87
- static testMetadata({ requestBody, }: {
88
- /**
89
- * test metadata
90
- */
91
- requestBody: string;
92
- }): CancelablePromise<string>;
93
- }
@@ -1,112 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class SettingService {
7
- /**
8
- * get global settings
9
- * @returns any status
10
- * @throws ApiError
11
- */
12
- static getGlobal({ key, }) {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
- method: 'GET',
15
- url: '/settings/global/{key}',
16
- path: {
17
- 'key': key,
18
- },
19
- });
20
- }
21
- /**
22
- * post global settings
23
- * @returns string status
24
- * @throws ApiError
25
- */
26
- static setGlobal({ key, requestBody, }) {
27
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
28
- method: 'POST',
29
- url: '/settings/global/{key}',
30
- path: {
31
- 'key': key,
32
- },
33
- body: requestBody,
34
- mediaType: 'application/json',
35
- });
36
- }
37
- /**
38
- * get local settings
39
- * @returns any status
40
- * @throws ApiError
41
- */
42
- static getLocal() {
43
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
44
- method: 'GET',
45
- url: '/settings/local',
46
- });
47
- }
48
- /**
49
- * test smtp
50
- * @returns string status
51
- * @throws ApiError
52
- */
53
- static testSmtp({ requestBody, }) {
54
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
55
- method: 'POST',
56
- url: '/settings/test_smtp',
57
- body: requestBody,
58
- mediaType: 'application/json',
59
- });
60
- }
61
- /**
62
- * test license key
63
- * @returns string status
64
- * @throws ApiError
65
- */
66
- static testLicenseKey({ requestBody, }) {
67
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
68
- method: 'POST',
69
- url: '/settings/test_license_key',
70
- body: requestBody,
71
- mediaType: 'application/json',
72
- });
73
- }
74
- /**
75
- * test object storage config
76
- * @returns string status
77
- * @throws ApiError
78
- */
79
- static testObjectStorageConfig({ requestBody, }) {
80
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
81
- method: 'POST',
82
- url: '/settings/test_object_storage_config',
83
- body: requestBody,
84
- mediaType: 'application/json',
85
- });
86
- }
87
- /**
88
- * send stats
89
- * @returns string status
90
- * @throws ApiError
91
- */
92
- static sendStats() {
93
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
94
- method: 'POST',
95
- url: '/settings/send_stats',
96
- });
97
- }
98
- /**
99
- * test metadata
100
- * @returns string status
101
- * @throws ApiError
102
- */
103
- static testMetadata({ requestBody, }) {
104
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
105
- method: 'POST',
106
- url: '/saml/test_metadata',
107
- body: requestBody,
108
- mediaType: 'application/json',
109
- });
110
- }
111
- }
112
- exports.SettingService = SettingService;
@@ -1,27 +0,0 @@
1
- import type { CancelablePromise } from '../core/CancelablePromise';
2
- export declare class SettingsService {
3
- /**
4
- * get backend version
5
- * @returns string git version of backend
6
- * @throws ApiError
7
- */
8
- static backendVersion(): CancelablePromise<string>;
9
- /**
10
- * is backend up to date
11
- * @returns string is backend up to date
12
- * @throws ApiError
13
- */
14
- static backendUptodate(): CancelablePromise<string>;
15
- /**
16
- * get license id
17
- * @returns string get license id (empty if not ee)
18
- * @throws ApiError
19
- */
20
- static getLicenseId(): CancelablePromise<string>;
21
- /**
22
- * get openapi yaml spec
23
- * @returns string openapi yaml file content
24
- * @throws ApiError
25
- */
26
- static getOpenApiYaml(): CancelablePromise<string>;
27
- }
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class SettingsService {
7
- /**
8
- * get backend version
9
- * @returns string git version of backend
10
- * @throws ApiError
11
- */
12
- static backendVersion() {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
- method: 'GET',
15
- url: '/version',
16
- });
17
- }
18
- /**
19
- * is backend up to date
20
- * @returns string is backend up to date
21
- * @throws ApiError
22
- */
23
- static backendUptodate() {
24
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
- method: 'GET',
26
- url: '/uptodate',
27
- });
28
- }
29
- /**
30
- * get license id
31
- * @returns string get license id (empty if not ee)
32
- * @throws ApiError
33
- */
34
- static getLicenseId() {
35
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
- method: 'GET',
37
- url: '/ee_license',
38
- });
39
- }
40
- /**
41
- * get openapi yaml spec
42
- * @returns string openapi yaml file content
43
- * @throws ApiError
44
- */
45
- static getOpenApiYaml() {
46
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
47
- method: 'GET',
48
- url: '/openapi.yaml',
49
- });
50
- }
51
- }
52
- exports.SettingsService = SettingsService;