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,623 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkspaceService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class WorkspaceService {
7
- /**
8
- * list all workspaces visible to me
9
- * @returns Workspace all workspaces
10
- * @throws ApiError
11
- */
12
- static listWorkspaces() {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
- method: 'GET',
15
- url: '/workspaces/list',
16
- });
17
- }
18
- /**
19
- * is domain allowed for auto invi
20
- * @returns boolean domain allowed or not
21
- * @throws ApiError
22
- */
23
- static isDomainAllowed() {
24
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
- method: 'GET',
26
- url: '/workspaces/allowed_domain_auto_invite',
27
- });
28
- }
29
- /**
30
- * list all workspaces visible to me with user info
31
- * @returns UserWorkspaceList workspace with associated username
32
- * @throws ApiError
33
- */
34
- static listUserWorkspaces() {
35
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
- method: 'GET',
37
- url: '/workspaces/users',
38
- });
39
- }
40
- /**
41
- * list all workspaces as super admin (require to be super admin)
42
- * @returns Workspace workspaces
43
- * @throws ApiError
44
- */
45
- static listWorkspacesAsSuperAdmin({ page, perPage, }) {
46
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
47
- method: 'GET',
48
- url: '/workspaces/list_as_superadmin',
49
- query: {
50
- 'page': page,
51
- 'per_page': perPage,
52
- },
53
- });
54
- }
55
- /**
56
- * create workspace
57
- * @returns string token created
58
- * @throws ApiError
59
- */
60
- static createWorkspace({ requestBody, }) {
61
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
- method: 'POST',
63
- url: '/workspaces/create',
64
- body: requestBody,
65
- mediaType: 'application/json',
66
- });
67
- }
68
- /**
69
- * exists workspace
70
- * @returns boolean status
71
- * @throws ApiError
72
- */
73
- static existsWorkspace({ requestBody, }) {
74
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
75
- method: 'POST',
76
- url: '/workspaces/exists',
77
- body: requestBody,
78
- mediaType: 'application/json',
79
- });
80
- }
81
- /**
82
- * exists username
83
- * @returns boolean status
84
- * @throws ApiError
85
- */
86
- static existsUsername({ requestBody, }) {
87
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
88
- method: 'POST',
89
- url: '/workspaces/exists_username',
90
- body: requestBody,
91
- mediaType: 'application/json',
92
- });
93
- }
94
- /**
95
- * invite user to workspace
96
- * @returns string status
97
- * @throws ApiError
98
- */
99
- static inviteUser({ workspace, requestBody, }) {
100
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
101
- method: 'POST',
102
- url: '/w/{workspace}/workspaces/invite_user',
103
- path: {
104
- 'workspace': workspace,
105
- },
106
- body: requestBody,
107
- mediaType: 'application/json',
108
- });
109
- }
110
- /**
111
- * add user to workspace
112
- * @returns string status
113
- * @throws ApiError
114
- */
115
- static addUser({ workspace, requestBody, }) {
116
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
117
- method: 'POST',
118
- url: '/w/{workspace}/workspaces/add_user',
119
- path: {
120
- 'workspace': workspace,
121
- },
122
- body: requestBody,
123
- mediaType: 'application/json',
124
- });
125
- }
126
- /**
127
- * delete user invite
128
- * @returns string status
129
- * @throws ApiError
130
- */
131
- static deleteInvite({ workspace, requestBody, }) {
132
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
133
- method: 'POST',
134
- url: '/w/{workspace}/workspaces/delete_invite',
135
- path: {
136
- 'workspace': workspace,
137
- },
138
- body: requestBody,
139
- mediaType: 'application/json',
140
- });
141
- }
142
- /**
143
- * archive workspace
144
- * @returns string status
145
- * @throws ApiError
146
- */
147
- static archiveWorkspace({ workspace, }) {
148
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
149
- method: 'POST',
150
- url: '/w/{workspace}/workspaces/archive',
151
- path: {
152
- 'workspace': workspace,
153
- },
154
- });
155
- }
156
- /**
157
- * unarchive workspace
158
- * @returns string status
159
- * @throws ApiError
160
- */
161
- static unarchiveWorkspace({ workspace, }) {
162
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
163
- method: 'POST',
164
- url: '/workspaces/unarchive/{workspace}',
165
- path: {
166
- 'workspace': workspace,
167
- },
168
- });
169
- }
170
- /**
171
- * delete workspace (require super admin)
172
- * @returns string status
173
- * @throws ApiError
174
- */
175
- static deleteWorkspace({ workspace, }) {
176
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
177
- method: 'DELETE',
178
- url: '/workspaces/delete/{workspace}',
179
- path: {
180
- 'workspace': workspace,
181
- },
182
- });
183
- }
184
- /**
185
- * leave workspace
186
- * @returns string status
187
- * @throws ApiError
188
- */
189
- static leaveWorkspace({ workspace, }) {
190
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
191
- method: 'POST',
192
- url: '/w/{workspace}/workspaces/leave',
193
- path: {
194
- 'workspace': workspace,
195
- },
196
- });
197
- }
198
- /**
199
- * get workspace name
200
- * @returns string status
201
- * @throws ApiError
202
- */
203
- static getWorkspaceName({ workspace, }) {
204
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
205
- method: 'GET',
206
- url: '/w/{workspace}/workspaces/get_workspace_name',
207
- path: {
208
- 'workspace': workspace,
209
- },
210
- });
211
- }
212
- /**
213
- * change workspace name
214
- * @returns string status
215
- * @throws ApiError
216
- */
217
- static changeWorkspaceName({ workspace, requestBody, }) {
218
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
219
- method: 'POST',
220
- url: '/w/{workspace}/workspaces/change_workspace_name',
221
- path: {
222
- 'workspace': workspace,
223
- },
224
- body: requestBody,
225
- mediaType: 'application/json',
226
- });
227
- }
228
- /**
229
- * change workspace id
230
- * @returns string status
231
- * @throws ApiError
232
- */
233
- static changeWorkspaceId({ workspace, requestBody, }) {
234
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
235
- method: 'POST',
236
- url: '/w/{workspace}/workspaces/change_workspace_id',
237
- path: {
238
- 'workspace': workspace,
239
- },
240
- body: requestBody,
241
- mediaType: 'application/json',
242
- });
243
- }
244
- /**
245
- * list pending invites for a workspace
246
- * @returns WorkspaceInvite user
247
- * @throws ApiError
248
- */
249
- static listPendingInvites({ workspace, }) {
250
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
251
- method: 'GET',
252
- url: '/w/{workspace}/workspaces/list_pending_invites',
253
- path: {
254
- 'workspace': workspace,
255
- },
256
- });
257
- }
258
- /**
259
- * get settings
260
- * @returns any status
261
- * @throws ApiError
262
- */
263
- static getSettings({ workspace, }) {
264
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
265
- method: 'GET',
266
- url: '/w/{workspace}/workspaces/get_settings',
267
- path: {
268
- 'workspace': workspace,
269
- },
270
- });
271
- }
272
- /**
273
- * get deploy to
274
- * @returns any status
275
- * @throws ApiError
276
- */
277
- static getDeployTo({ workspace, }) {
278
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
279
- method: 'GET',
280
- url: '/w/{workspace}/workspaces/get_deploy_to',
281
- path: {
282
- 'workspace': workspace,
283
- },
284
- });
285
- }
286
- /**
287
- * get if workspace is premium
288
- * @returns boolean status
289
- * @throws ApiError
290
- */
291
- static getIsPremium({ workspace, }) {
292
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
293
- method: 'GET',
294
- url: '/w/{workspace}/workspaces/is_premium',
295
- path: {
296
- 'workspace': workspace,
297
- },
298
- });
299
- }
300
- /**
301
- * get premium info
302
- * @returns any status
303
- * @throws ApiError
304
- */
305
- static getPremiumInfo({ workspace, }) {
306
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
307
- method: 'GET',
308
- url: '/w/{workspace}/workspaces/premium_info',
309
- path: {
310
- 'workspace': workspace,
311
- },
312
- });
313
- }
314
- /**
315
- * set automatic billing
316
- * @returns string status
317
- * @throws ApiError
318
- */
319
- static setAutomaticBilling({ workspace, requestBody, }) {
320
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
321
- method: 'POST',
322
- url: '/w/{workspace}/workspaces/set_automatic_billing',
323
- path: {
324
- 'workspace': workspace,
325
- },
326
- body: requestBody,
327
- mediaType: 'application/json',
328
- });
329
- }
330
- /**
331
- * edit slack command
332
- * @returns string status
333
- * @throws ApiError
334
- */
335
- static editSlackCommand({ workspace, requestBody, }) {
336
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
337
- method: 'POST',
338
- url: '/w/{workspace}/workspaces/edit_slack_command',
339
- path: {
340
- 'workspace': workspace,
341
- },
342
- body: requestBody,
343
- mediaType: 'application/json',
344
- });
345
- }
346
- /**
347
- * run a job that sends a message to Slack
348
- * @returns any status
349
- * @throws ApiError
350
- */
351
- static runSlackMessageTestJob({ workspace, requestBody, }) {
352
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
353
- method: 'POST',
354
- url: '/w/{workspace}/workspaces/run_slack_message_test_job',
355
- path: {
356
- 'workspace': workspace,
357
- },
358
- body: requestBody,
359
- mediaType: 'application/json',
360
- });
361
- }
362
- /**
363
- * edit deploy to
364
- * @returns string status
365
- * @throws ApiError
366
- */
367
- static editDeployTo({ workspace, requestBody, }) {
368
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
369
- method: 'POST',
370
- url: '/w/{workspace}/workspaces/edit_deploy_to',
371
- path: {
372
- 'workspace': workspace,
373
- },
374
- body: requestBody,
375
- mediaType: 'application/json',
376
- });
377
- }
378
- /**
379
- * edit auto invite
380
- * @returns string status
381
- * @throws ApiError
382
- */
383
- static editAutoInvite({ workspace, requestBody, }) {
384
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
385
- method: 'POST',
386
- url: '/w/{workspace}/workspaces/edit_auto_invite',
387
- path: {
388
- 'workspace': workspace,
389
- },
390
- body: requestBody,
391
- mediaType: 'application/json',
392
- });
393
- }
394
- /**
395
- * edit webhook
396
- * @returns string status
397
- * @throws ApiError
398
- */
399
- static editWebhook({ workspace, requestBody, }) {
400
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
401
- method: 'POST',
402
- url: '/w/{workspace}/workspaces/edit_webhook',
403
- path: {
404
- 'workspace': workspace,
405
- },
406
- body: requestBody,
407
- mediaType: 'application/json',
408
- });
409
- }
410
- /**
411
- * edit copilot config
412
- * @returns string status
413
- * @throws ApiError
414
- */
415
- static editCopilotConfig({ workspace, requestBody, }) {
416
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
417
- method: 'POST',
418
- url: '/w/{workspace}/workspaces/edit_copilot_config',
419
- path: {
420
- 'workspace': workspace,
421
- },
422
- body: requestBody,
423
- mediaType: 'application/json',
424
- });
425
- }
426
- /**
427
- * get copilot info
428
- * @returns any status
429
- * @throws ApiError
430
- */
431
- static getCopilotInfo({ workspace, }) {
432
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
433
- method: 'GET',
434
- url: '/w/{workspace}/workspaces/get_copilot_info',
435
- path: {
436
- 'workspace': workspace,
437
- },
438
- });
439
- }
440
- /**
441
- * edit error handler
442
- * @returns string status
443
- * @throws ApiError
444
- */
445
- static editErrorHandler({ workspace, requestBody, }) {
446
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
447
- method: 'POST',
448
- url: '/w/{workspace}/workspaces/edit_error_handler',
449
- path: {
450
- 'workspace': workspace,
451
- },
452
- body: requestBody,
453
- mediaType: 'application/json',
454
- });
455
- }
456
- /**
457
- * edit large file storage settings
458
- * @returns any status
459
- * @throws ApiError
460
- */
461
- static editLargeFileStorageConfig({ workspace, requestBody, }) {
462
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
463
- method: 'POST',
464
- url: '/w/{workspace}/workspaces/edit_large_file_storage_config',
465
- path: {
466
- 'workspace': workspace,
467
- },
468
- body: requestBody,
469
- mediaType: 'application/json',
470
- });
471
- }
472
- /**
473
- * edit workspace git sync settings
474
- * @returns any status
475
- * @throws ApiError
476
- */
477
- static editWorkspaceGitSyncConfig({ workspace, requestBody, }) {
478
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
479
- method: 'POST',
480
- url: '/w/{workspace}/workspaces/edit_git_sync_config',
481
- path: {
482
- 'workspace': workspace,
483
- },
484
- body: requestBody,
485
- mediaType: 'application/json',
486
- });
487
- }
488
- /**
489
- * edit default app for workspace
490
- * @returns string status
491
- * @throws ApiError
492
- */
493
- static editWorkspaceDefaultApp({ workspace, requestBody, }) {
494
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
495
- method: 'POST',
496
- url: '/w/{workspace}/workspaces/edit_default_app',
497
- path: {
498
- 'workspace': workspace,
499
- },
500
- body: requestBody,
501
- mediaType: 'application/json',
502
- });
503
- }
504
- /**
505
- * edit default scripts for workspace
506
- * @returns string status
507
- * @throws ApiError
508
- */
509
- static editDefaultScripts({ workspace, requestBody, }) {
510
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
511
- method: 'POST',
512
- url: '/w/{workspace}/workspaces/default_scripts',
513
- path: {
514
- 'workspace': workspace,
515
- },
516
- body: requestBody,
517
- mediaType: 'application/json',
518
- });
519
- }
520
- /**
521
- * get default scripts for workspace
522
- * @returns WorkspaceDefaultScripts status
523
- * @throws ApiError
524
- */
525
- static getDefaultScripts({ workspace, }) {
526
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
527
- method: 'GET',
528
- url: '/w/{workspace}/workspaces/default_scripts',
529
- path: {
530
- 'workspace': workspace,
531
- },
532
- });
533
- }
534
- /**
535
- * set environment variable
536
- * @returns string status
537
- * @throws ApiError
538
- */
539
- static setEnvironmentVariable({ workspace, requestBody, }) {
540
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
541
- method: 'POST',
542
- url: '/w/{workspace}/workspaces/set_environment_variable',
543
- path: {
544
- 'workspace': workspace,
545
- },
546
- body: requestBody,
547
- mediaType: 'application/json',
548
- });
549
- }
550
- /**
551
- * retrieves the encryption key for this workspace
552
- * @returns any status
553
- * @throws ApiError
554
- */
555
- static getWorkspaceEncryptionKey({ workspace, }) {
556
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
557
- method: 'GET',
558
- url: '/w/{workspace}/workspaces/encryption_key',
559
- path: {
560
- 'workspace': workspace,
561
- },
562
- });
563
- }
564
- /**
565
- * update the encryption key for this workspace
566
- * @returns string status
567
- * @throws ApiError
568
- */
569
- static setWorkspaceEncryptionKey({ workspace, requestBody, }) {
570
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
571
- method: 'POST',
572
- url: '/w/{workspace}/workspaces/encryption_key',
573
- path: {
574
- 'workspace': workspace,
575
- },
576
- body: requestBody,
577
- mediaType: 'application/json',
578
- });
579
- }
580
- /**
581
- * get default app for workspace
582
- * @returns any status
583
- * @throws ApiError
584
- */
585
- static getWorkspaceDefaultApp({ workspace, }) {
586
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
587
- method: 'GET',
588
- url: '/w/{workspace}/workspaces/default_app',
589
- path: {
590
- 'workspace': workspace,
591
- },
592
- });
593
- }
594
- /**
595
- * get large file storage config
596
- * @returns LargeFileStorage status
597
- * @throws ApiError
598
- */
599
- static getLargeFileStorageConfig({ workspace, }) {
600
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
601
- method: 'GET',
602
- url: '/w/{workspace}/workspaces/get_large_file_storage_config',
603
- path: {
604
- 'workspace': workspace,
605
- },
606
- });
607
- }
608
- /**
609
- * get usage
610
- * @returns number usage
611
- * @throws ApiError
612
- */
613
- static getWorkspaceUsage({ workspace, }) {
614
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
615
- method: 'GET',
616
- url: '/w/{workspace}/workspaces/usage',
617
- path: {
618
- 'workspace': workspace,
619
- },
620
- });
621
- }
622
- }
623
- exports.WorkspaceService = WorkspaceService;