windmill-client 0.3.1 → 0.3.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 (447) hide show
  1. package/build.sh +2 -0
  2. package/client.ts +376 -0
  3. package/dist/client.d.ts +85 -0
  4. package/dist/client.js +340 -0
  5. package/dist/src/client.d.ts +85 -0
  6. package/dist/src/client.js +340 -0
  7. package/dist/{core → src/core}/CancelablePromise.d.ts +2 -8
  8. package/dist/src/core/CancelablePromise.js +116 -0
  9. package/dist/{core → src/core}/OpenAPI.d.ts +5 -5
  10. package/dist/{core → src/core}/OpenAPI.js +1 -1
  11. package/dist/src/core/request.d.ts +30 -0
  12. package/dist/{core → src/core}/request.js +56 -29
  13. package/dist/{index.d.ts → src/index.d.ts} +45 -0
  14. package/dist/{index.js → src/index.js} +4 -3
  15. package/dist/src/models/AccountId.d.ts +1 -0
  16. package/dist/src/models/AccountId.js +6 -0
  17. package/dist/src/models/ActionKind.d.ts +9 -0
  18. package/dist/src/models/ActionKind.js +17 -0
  19. package/dist/src/models/After.d.ts +4 -0
  20. package/dist/src/models/After.js +6 -0
  21. package/dist/{models → src/models}/AppWithLastVersion.js +2 -1
  22. package/dist/{models → src/models}/AppWithLastVersionWDraft.js +1 -0
  23. package/dist/src/models/ArgsFilter.d.ts +4 -0
  24. package/dist/src/models/ArgsFilter.js +6 -0
  25. package/dist/{models → src/models}/AuditLog.d.ts +1 -1
  26. package/dist/{models → src/models}/AuditLog.js +2 -1
  27. package/dist/src/models/Before.d.ts +4 -0
  28. package/dist/src/models/Before.js +6 -0
  29. package/dist/{models → src/models}/BranchAll.js +1 -0
  30. package/dist/{models → src/models}/BranchOne.js +1 -0
  31. package/dist/src/models/ClientName.d.ts +1 -0
  32. package/dist/src/models/ClientName.js +6 -0
  33. package/dist/{models → src/models}/CompletedJob.d.ts +6 -2
  34. package/dist/{models → src/models}/CompletedJob.js +6 -1
  35. package/dist/{models → src/models}/ContextualVariable.js +1 -0
  36. package/dist/{models → src/models}/CreateInput.d.ts +1 -1
  37. package/dist/{models → src/models}/CreateInput.js +1 -0
  38. package/dist/{models → src/models}/CreateResource.js +1 -0
  39. package/dist/{models → src/models}/CreateVariable.js +1 -0
  40. package/dist/{models → src/models}/CreateWorkspace.js +1 -0
  41. package/dist/src/models/CreatedBy.d.ts +4 -0
  42. package/dist/src/models/CreatedBy.js +6 -0
  43. package/dist/{models → src/models}/EditResource.js +1 -0
  44. package/dist/{models → src/models}/EditResourceType.d.ts +1 -1
  45. package/dist/{models → src/models}/EditResourceType.js +1 -0
  46. package/dist/{models → src/models}/EditSchedule.d.ts +1 -0
  47. package/dist/{models → src/models}/EditSchedule.js +1 -0
  48. package/dist/{models → src/models}/EditVariable.js +1 -0
  49. package/dist/{models → src/models}/EditWorkspaceUser.js +1 -0
  50. package/dist/{models → src/models}/Flow.js +1 -0
  51. package/dist/{models → src/models}/FlowMetadata.d.ts +1 -1
  52. package/dist/{models → src/models}/FlowMetadata.js +1 -0
  53. package/dist/{models → src/models}/FlowModule.d.ts +8 -0
  54. package/dist/{models → src/models}/FlowModule.js +1 -0
  55. package/dist/{models → src/models}/FlowModuleValue.d.ts +3 -1
  56. package/dist/{models → src/models}/FlowModuleValue.js +1 -0
  57. package/dist/{models → src/models}/FlowPreview.js +1 -0
  58. package/dist/{models → src/models}/FlowStatus.js +1 -0
  59. package/dist/{models → src/models}/FlowStatusModule.js +2 -1
  60. package/dist/{models → src/models}/FlowValue.js +1 -0
  61. package/dist/{models → src/models}/Folder.js +1 -0
  62. package/dist/{models → src/models}/ForloopFlow.js +1 -0
  63. package/dist/{models → src/models}/GlobalUserInfo.js +2 -1
  64. package/dist/src/models/Graphql.d.ts +3 -0
  65. package/dist/src/models/Graphql.js +6 -0
  66. package/dist/{models → src/models}/Group.js +1 -0
  67. package/dist/src/models/Http.d.ts +3 -0
  68. package/dist/src/models/Http.js +6 -0
  69. package/dist/{models → src/models}/Identity.js +1 -0
  70. package/dist/src/models/IncludeHeader.d.ts +6 -0
  71. package/dist/src/models/IncludeHeader.js +6 -0
  72. package/dist/{models → src/models}/Input.d.ts +1 -1
  73. package/dist/{models → src/models}/Input.js +1 -0
  74. package/dist/src/models/InputId.d.ts +1 -0
  75. package/dist/src/models/InputId.js +6 -0
  76. package/dist/{models → src/models}/InputTransform.js +1 -0
  77. package/dist/{models → src/models}/JavascriptTransform.js +1 -0
  78. package/dist/{models → src/models}/Job.js +2 -1
  79. package/dist/src/models/JobId.d.ts +1 -0
  80. package/dist/src/models/JobId.js +6 -0
  81. package/dist/src/models/JobKinds.d.ts +4 -0
  82. package/dist/src/models/JobKinds.js +6 -0
  83. package/dist/{models → src/models}/ListableApp.js +2 -1
  84. package/dist/{models → src/models}/ListableRawApp.js +1 -0
  85. package/dist/{models → src/models}/ListableResource.js +1 -0
  86. package/dist/{models → src/models}/ListableVariable.js +1 -0
  87. package/dist/{models → src/models}/Login.js +1 -0
  88. package/dist/{models → src/models}/MainArgSignature.js +2 -1
  89. package/dist/src/models/Name.d.ts +1 -0
  90. package/dist/src/models/Name.js +6 -0
  91. package/dist/src/models/NewJobId.d.ts +4 -0
  92. package/dist/src/models/NewJobId.js +6 -0
  93. package/dist/{models → src/models}/NewSchedule.d.ts +1 -0
  94. package/dist/{models → src/models}/NewSchedule.js +1 -0
  95. package/dist/{models → src/models}/NewScript.d.ts +6 -2
  96. package/dist/{models → src/models}/NewScript.js +5 -1
  97. package/dist/{models → src/models}/NewScriptWithDraft.js +1 -0
  98. package/dist/{models → src/models}/NewToken.d.ts +1 -0
  99. package/dist/{models → src/models}/NewToken.js +1 -0
  100. package/dist/{models → src/models}/NewTokenImpersonate.js +1 -0
  101. package/dist/{models → src/models}/NewUser.js +1 -0
  102. package/dist/{models → src/models}/OpenFlow.d.ts +1 -1
  103. package/dist/{models → src/models}/OpenFlow.js +1 -0
  104. package/dist/{models → src/models}/OpenFlowWPath.js +1 -0
  105. package/dist/src/models/Operation.d.ts +4 -0
  106. package/dist/src/models/Operation.js +6 -0
  107. package/dist/src/models/OrderDesc.d.ts +4 -0
  108. package/dist/src/models/OrderDesc.js +6 -0
  109. package/dist/src/models/Page.d.ts +4 -0
  110. package/dist/src/models/Page.js +6 -0
  111. package/dist/src/models/ParentJob.d.ts +4 -0
  112. package/dist/src/models/ParentJob.js +6 -0
  113. package/dist/src/models/Path.d.ts +1 -0
  114. package/dist/src/models/Path.js +6 -0
  115. package/dist/{models → src/models}/PathFlow.js +1 -0
  116. package/dist/src/models/PathId.d.ts +1 -0
  117. package/dist/src/models/PathId.js +6 -0
  118. package/dist/{models → src/models}/PathScript.js +1 -0
  119. package/dist/src/models/Payload.d.ts +6 -0
  120. package/dist/src/models/Payload.js +6 -0
  121. package/dist/src/models/PerPage.d.ts +4 -0
  122. package/dist/src/models/PerPage.js +6 -0
  123. package/dist/{models → src/models}/Policy.d.ts +1 -1
  124. package/dist/{models → src/models}/Policy.js +2 -1
  125. package/dist/src/models/Preview.d.ts +25 -0
  126. package/dist/{models → src/models}/Preview.js +11 -1
  127. package/dist/src/models/QueueLimit.d.ts +5 -0
  128. package/dist/src/models/QueueLimit.js +6 -0
  129. package/dist/{models → src/models}/QueuedJob.d.ts +6 -2
  130. package/dist/{models → src/models}/QueuedJob.js +6 -1
  131. package/dist/{models → src/models}/RawScript.d.ts +3 -1
  132. package/dist/{models → src/models}/RawScript.js +4 -1
  133. package/dist/{models → src/models}/Resource.js +1 -0
  134. package/dist/src/models/ResourceName.d.ts +4 -0
  135. package/dist/src/models/ResourceName.js +6 -0
  136. package/dist/{models → src/models}/ResourceType.js +1 -0
  137. package/dist/src/models/ResultFilter.d.ts +4 -0
  138. package/dist/src/models/ResultFilter.js +6 -0
  139. package/dist/{models → src/models}/Retry.js +1 -0
  140. package/dist/src/models/RunnableId.d.ts +1 -0
  141. package/dist/src/models/RunnableId.js +6 -0
  142. package/dist/src/models/RunnableType.d.ts +1 -0
  143. package/dist/src/models/RunnableType.js +6 -0
  144. package/dist/src/models/Running.d.ts +4 -0
  145. package/dist/src/models/Running.js +6 -0
  146. package/dist/{models → src/models}/Schedule.d.ts +1 -0
  147. package/dist/{models → src/models}/Schedule.js +1 -0
  148. package/dist/src/models/SchedulePath.d.ts +4 -0
  149. package/dist/src/models/SchedulePath.js +6 -0
  150. package/dist/src/models/ScheduleWJobs.d.ts +8 -0
  151. package/dist/src/models/ScheduleWJobs.js +6 -0
  152. package/dist/{models → src/models}/Script.d.ts +6 -2
  153. package/dist/{models → src/models}/Script.js +5 -1
  154. package/dist/{models → src/models}/ScriptArgs.js +1 -0
  155. package/dist/src/models/ScriptExactHash.d.ts +4 -0
  156. package/dist/src/models/ScriptExactHash.js +6 -0
  157. package/dist/src/models/ScriptExactPath.d.ts +4 -0
  158. package/dist/src/models/ScriptExactPath.js +6 -0
  159. package/dist/src/models/ScriptHash.d.ts +1 -0
  160. package/dist/src/models/ScriptHash.js +6 -0
  161. package/dist/src/models/ScriptPath.d.ts +1 -0
  162. package/dist/src/models/ScriptPath.js +6 -0
  163. package/dist/src/models/ScriptStartPath.d.ts +4 -0
  164. package/dist/src/models/ScriptStartPath.js +6 -0
  165. package/dist/{models → src/models}/SlackToken.js +1 -0
  166. package/dist/src/models/StartedAfter.d.ts +4 -0
  167. package/dist/src/models/StartedAfter.js +6 -0
  168. package/dist/src/models/StartedBefore.d.ts +4 -0
  169. package/dist/src/models/StartedBefore.js +6 -0
  170. package/dist/{models → src/models}/StaticTransform.js +1 -0
  171. package/dist/src/models/Success.d.ts +4 -0
  172. package/dist/src/models/Success.js +6 -0
  173. package/dist/src/models/Suspended.d.ts +4 -0
  174. package/dist/src/models/Suspended.js +6 -0
  175. package/dist/src/models/Tag.d.ts +4 -0
  176. package/dist/src/models/Tag.js +6 -0
  177. package/dist/src/models/Token.d.ts +1 -0
  178. package/dist/src/models/Token.js +6 -0
  179. package/dist/{models → src/models}/TokenResponse.js +1 -0
  180. package/dist/{models → src/models}/TruncatedToken.d.ts +1 -0
  181. package/dist/{models → src/models}/TruncatedToken.js +1 -0
  182. package/dist/{models → src/models}/UpdateInput.js +1 -0
  183. package/dist/{models → src/models}/Usage.js +1 -0
  184. package/dist/{models → src/models}/User.js +1 -0
  185. package/dist/{models → src/models}/UserWorkspaceList.js +1 -0
  186. package/dist/src/models/Username.d.ts +4 -0
  187. package/dist/src/models/Username.js +6 -0
  188. package/dist/src/models/VersionId.d.ts +1 -0
  189. package/dist/src/models/VersionId.js +6 -0
  190. package/dist/{models → src/models}/WorkerPing.js +1 -0
  191. package/dist/{models → src/models}/Workspace.js +1 -0
  192. package/dist/src/models/WorkspaceId.d.ts +1 -0
  193. package/dist/src/models/WorkspaceId.js +6 -0
  194. package/dist/{models → src/models}/WorkspaceInvite.js +1 -0
  195. package/dist/{services → src/services}/AppService.d.ts +1 -1
  196. package/dist/{services → src/services}/DraftService.d.ts +10 -0
  197. package/dist/{services → src/services}/DraftService.js +16 -0
  198. package/dist/{services → src/services}/JobService.d.ts +128 -15
  199. package/dist/{services → src/services}/JobService.js +85 -14
  200. package/dist/{services → src/services}/ResourceService.d.ts +2 -1
  201. package/dist/{services → src/services}/ResourceService.js +4 -1
  202. package/dist/{services → src/services}/ScheduleService.d.ts +17 -0
  203. package/dist/{services → src/services}/ScheduleService.js +18 -0
  204. package/dist/{services → src/services}/ScriptService.d.ts +1 -46
  205. package/dist/{services → src/services}/ScriptService.js +0 -52
  206. package/dist/{services → src/services}/SettingsService.d.ts +12 -0
  207. package/dist/{services → src/services}/SettingsService.js +22 -0
  208. package/dist/{services → src/services}/UserService.d.ts +22 -0
  209. package/dist/{services → src/services}/UserService.js +25 -0
  210. package/dist/{services → src/services}/VariableService.d.ts +12 -0
  211. package/dist/{services → src/services}/VariableService.js +16 -0
  212. package/dist/{services → src/services}/WorkspaceService.d.ts +22 -0
  213. package/dist/{services → src/services}/WorkspaceService.js +30 -0
  214. package/package.json +1 -1
  215. package/src/client.ts +376 -0
  216. package/src/core/ApiError.ts +1 -0
  217. package/src/core/ApiRequestOptions.ts +1 -0
  218. package/src/core/ApiResult.ts +1 -0
  219. package/src/core/CancelablePromise.ts +40 -37
  220. package/src/core/OpenAPI.ts +7 -6
  221. package/src/core/request.ts +32 -18
  222. package/src/index.ts +46 -0
  223. package/src/models/AccountId.ts +6 -0
  224. package/src/models/ActionKind.ts +14 -0
  225. package/src/models/After.ts +9 -0
  226. package/src/models/AppWithLastVersion.ts +1 -0
  227. package/src/models/AppWithLastVersionWDraft.ts +1 -0
  228. package/src/models/ArgsFilter.ts +9 -0
  229. package/src/models/AuditLog.ts +2 -1
  230. package/src/models/Before.ts +9 -0
  231. package/src/models/BranchAll.ts +1 -0
  232. package/src/models/BranchOne.ts +1 -0
  233. package/src/models/ClientName.ts +6 -0
  234. package/src/models/CompletedJob.ts +5 -0
  235. package/src/models/ContextualVariable.ts +1 -0
  236. package/src/models/CreateInput.ts +2 -1
  237. package/src/models/CreateResource.ts +1 -0
  238. package/src/models/CreateVariable.ts +1 -0
  239. package/src/models/CreateWorkspace.ts +1 -0
  240. package/src/models/CreatedBy.ts +9 -0
  241. package/src/models/EditResource.ts +1 -0
  242. package/src/models/EditResourceType.ts +2 -1
  243. package/src/models/EditSchedule.ts +2 -0
  244. package/src/models/EditVariable.ts +1 -0
  245. package/src/models/EditWorkspaceUser.ts +1 -0
  246. package/src/models/Flow.ts +1 -0
  247. package/src/models/FlowMetadata.ts +2 -1
  248. package/src/models/FlowModule.ts +9 -0
  249. package/src/models/FlowModuleValue.ts +4 -1
  250. package/src/models/FlowPreview.ts +1 -0
  251. package/src/models/FlowStatus.ts +1 -0
  252. package/src/models/FlowStatusModule.ts +1 -0
  253. package/src/models/FlowValue.ts +1 -0
  254. package/src/models/Folder.ts +1 -0
  255. package/src/models/ForloopFlow.ts +1 -0
  256. package/src/models/GlobalUserInfo.ts +1 -0
  257. package/src/models/Graphql.ts +9 -0
  258. package/src/models/Group.ts +1 -0
  259. package/src/models/Http.ts +9 -0
  260. package/src/models/Identity.ts +1 -0
  261. package/src/models/IncludeHeader.ts +11 -0
  262. package/src/models/Input.ts +2 -1
  263. package/src/models/InputId.ts +6 -0
  264. package/src/models/InputTransform.ts +1 -0
  265. package/src/models/JavascriptTransform.ts +1 -0
  266. package/src/models/Job.ts +1 -0
  267. package/src/models/JobId.ts +6 -0
  268. package/src/models/JobKinds.ts +9 -0
  269. package/src/models/ListableApp.ts +1 -0
  270. package/src/models/ListableRawApp.ts +1 -0
  271. package/src/models/ListableResource.ts +1 -0
  272. package/src/models/ListableVariable.ts +1 -0
  273. package/src/models/Login.ts +1 -0
  274. package/src/models/MainArgSignature.ts +1 -0
  275. package/src/models/Name.ts +6 -0
  276. package/src/models/NewJobId.ts +9 -0
  277. package/src/models/NewSchedule.ts +2 -0
  278. package/src/models/NewScript.ts +6 -1
  279. package/src/models/NewScriptWithDraft.ts +1 -0
  280. package/src/models/NewToken.ts +2 -0
  281. package/src/models/NewTokenImpersonate.ts +1 -0
  282. package/src/models/NewUser.ts +1 -0
  283. package/src/models/OpenFlow.ts +2 -1
  284. package/src/models/OpenFlowWPath.ts +1 -0
  285. package/src/models/Operation.ts +9 -0
  286. package/src/models/OrderDesc.ts +9 -0
  287. package/src/models/Page.ts +9 -0
  288. package/src/models/ParentJob.ts +9 -0
  289. package/src/models/Path.ts +6 -0
  290. package/src/models/PathFlow.ts +1 -0
  291. package/src/models/PathId.ts +6 -0
  292. package/src/models/PathScript.ts +1 -0
  293. package/src/models/Payload.ts +11 -0
  294. package/src/models/PerPage.ts +9 -0
  295. package/src/models/Policy.ts +2 -1
  296. package/src/models/Preview.ts +13 -2
  297. package/src/models/QueueLimit.ts +10 -0
  298. package/src/models/QueuedJob.ts +5 -0
  299. package/src/models/RawScript.ts +3 -0
  300. package/src/models/Resource.ts +1 -0
  301. package/src/models/ResourceName.ts +9 -0
  302. package/src/models/ResourceType.ts +1 -0
  303. package/src/models/ResultFilter.ts +9 -0
  304. package/src/models/Retry.ts +1 -0
  305. package/src/models/RunnableId.ts +6 -0
  306. package/src/models/RunnableType.ts +2 -5
  307. package/src/models/Running.ts +9 -0
  308. package/src/models/Schedule.ts +2 -0
  309. package/src/models/SchedulePath.ts +9 -0
  310. package/src/models/ScheduleWJobs.ts +15 -0
  311. package/src/models/Script.ts +6 -1
  312. package/src/models/ScriptArgs.ts +1 -0
  313. package/src/models/ScriptExactHash.ts +9 -0
  314. package/src/models/ScriptExactPath.ts +9 -0
  315. package/src/models/ScriptHash.ts +6 -0
  316. package/src/models/ScriptPath.ts +6 -0
  317. package/src/models/ScriptStartPath.ts +9 -0
  318. package/src/models/SlackToken.ts +1 -0
  319. package/src/models/StartedAfter.ts +9 -0
  320. package/src/models/StartedBefore.ts +9 -0
  321. package/src/models/StaticTransform.ts +1 -0
  322. package/src/models/Success.ts +9 -0
  323. package/src/models/Suspended.ts +9 -0
  324. package/src/models/Tag.ts +9 -0
  325. package/src/models/Token.ts +6 -0
  326. package/src/models/TokenResponse.ts +1 -0
  327. package/src/models/TruncatedToken.ts +2 -0
  328. package/src/models/UpdateInput.ts +1 -0
  329. package/src/models/Usage.ts +1 -0
  330. package/src/models/User.ts +1 -0
  331. package/src/models/UserWorkspaceList.ts +1 -0
  332. package/src/models/Username.ts +9 -0
  333. package/src/models/VersionId.ts +6 -0
  334. package/src/models/WorkerPing.ts +1 -0
  335. package/src/models/Workspace.ts +1 -0
  336. package/src/models/WorkspaceId.ts +6 -0
  337. package/src/models/WorkspaceInvite.ts +1 -0
  338. package/src/services/AdminService.ts +1 -0
  339. package/src/services/AppService.ts +2 -1
  340. package/src/services/AuditService.ts +1 -0
  341. package/src/services/CaptureService.ts +1 -0
  342. package/src/services/DraftService.ts +26 -0
  343. package/src/services/FavoriteService.ts +1 -0
  344. package/src/services/FlowService.ts +1 -0
  345. package/src/services/FolderService.ts +1 -0
  346. package/src/services/GranularAclService.ts +1 -0
  347. package/src/services/GroupService.ts +1 -0
  348. package/src/services/InputService.ts +1 -0
  349. package/src/services/JobService.ts +206 -7
  350. package/src/services/OauthService.ts +1 -0
  351. package/src/services/RawAppService.ts +1 -0
  352. package/src/services/ResourceService.ts +6 -0
  353. package/src/services/ScheduleService.ts +35 -0
  354. package/src/services/ScriptService.ts +2 -86
  355. package/src/services/SettingsService.ts +25 -0
  356. package/src/services/UserService.ts +40 -0
  357. package/src/services/VariableService.ts +27 -0
  358. package/src/services/WorkerService.ts +1 -0
  359. package/src/services/WorkspaceService.ts +48 -0
  360. package/tsconfig.json +1 -1
  361. package/dist/core/CancelablePromise.js +0 -94
  362. package/dist/core/request.d.ts +0 -13
  363. package/dist/models/Preview.d.ts +0 -16
  364. package/dist/models/RunnableType.d.ts +0 -5
  365. package/dist/models/RunnableType.js +0 -12
  366. package/src/index.d.ts +0 -95
  367. /package/dist/{core → src/core}/ApiError.d.ts +0 -0
  368. /package/dist/{core → src/core}/ApiError.js +0 -0
  369. /package/dist/{core → src/core}/ApiRequestOptions.d.ts +0 -0
  370. /package/dist/{core → src/core}/ApiRequestOptions.js +0 -0
  371. /package/dist/{core → src/core}/ApiResult.d.ts +0 -0
  372. /package/dist/{core → src/core}/ApiResult.js +0 -0
  373. /package/dist/{models → src/models}/AppWithLastVersion.d.ts +0 -0
  374. /package/dist/{models → src/models}/AppWithLastVersionWDraft.d.ts +0 -0
  375. /package/dist/{models → src/models}/BranchAll.d.ts +0 -0
  376. /package/dist/{models → src/models}/BranchOne.d.ts +0 -0
  377. /package/dist/{models → src/models}/ContextualVariable.d.ts +0 -0
  378. /package/dist/{models → src/models}/CreateResource.d.ts +0 -0
  379. /package/dist/{models → src/models}/CreateVariable.d.ts +0 -0
  380. /package/dist/{models → src/models}/CreateWorkspace.d.ts +0 -0
  381. /package/dist/{models → src/models}/EditResource.d.ts +0 -0
  382. /package/dist/{models → src/models}/EditVariable.d.ts +0 -0
  383. /package/dist/{models → src/models}/EditWorkspaceUser.d.ts +0 -0
  384. /package/dist/{models → src/models}/Flow.d.ts +0 -0
  385. /package/dist/{models → src/models}/FlowPreview.d.ts +0 -0
  386. /package/dist/{models → src/models}/FlowStatus.d.ts +0 -0
  387. /package/dist/{models → src/models}/FlowStatusModule.d.ts +0 -0
  388. /package/dist/{models → src/models}/FlowValue.d.ts +0 -0
  389. /package/dist/{models → src/models}/Folder.d.ts +0 -0
  390. /package/dist/{models → src/models}/ForloopFlow.d.ts +0 -0
  391. /package/dist/{models → src/models}/GlobalUserInfo.d.ts +0 -0
  392. /package/dist/{models → src/models}/Group.d.ts +0 -0
  393. /package/dist/{models → src/models}/Identity.d.ts +0 -0
  394. /package/dist/{models → src/models}/InputTransform.d.ts +0 -0
  395. /package/dist/{models → src/models}/JavascriptTransform.d.ts +0 -0
  396. /package/dist/{models → src/models}/Job.d.ts +0 -0
  397. /package/dist/{models → src/models}/ListableApp.d.ts +0 -0
  398. /package/dist/{models → src/models}/ListableRawApp.d.ts +0 -0
  399. /package/dist/{models → src/models}/ListableResource.d.ts +0 -0
  400. /package/dist/{models → src/models}/ListableVariable.d.ts +0 -0
  401. /package/dist/{models → src/models}/Login.d.ts +0 -0
  402. /package/dist/{models → src/models}/MainArgSignature.d.ts +0 -0
  403. /package/dist/{models → src/models}/NewScriptWithDraft.d.ts +0 -0
  404. /package/dist/{models → src/models}/NewTokenImpersonate.d.ts +0 -0
  405. /package/dist/{models → src/models}/NewUser.d.ts +0 -0
  406. /package/dist/{models → src/models}/OpenFlowWPath.d.ts +0 -0
  407. /package/dist/{models → src/models}/PathFlow.d.ts +0 -0
  408. /package/dist/{models → src/models}/PathScript.d.ts +0 -0
  409. /package/dist/{models → src/models}/Resource.d.ts +0 -0
  410. /package/dist/{models → src/models}/ResourceType.d.ts +0 -0
  411. /package/dist/{models → src/models}/Retry.d.ts +0 -0
  412. /package/dist/{models → src/models}/ScriptArgs.d.ts +0 -0
  413. /package/dist/{models → src/models}/SlackToken.d.ts +0 -0
  414. /package/dist/{models → src/models}/StaticTransform.d.ts +0 -0
  415. /package/dist/{models → src/models}/TokenResponse.d.ts +0 -0
  416. /package/dist/{models → src/models}/UpdateInput.d.ts +0 -0
  417. /package/dist/{models → src/models}/Usage.d.ts +0 -0
  418. /package/dist/{models → src/models}/User.d.ts +0 -0
  419. /package/dist/{models → src/models}/UserWorkspaceList.d.ts +0 -0
  420. /package/dist/{models → src/models}/WorkerPing.d.ts +0 -0
  421. /package/dist/{models → src/models}/Workspace.d.ts +0 -0
  422. /package/dist/{models → src/models}/WorkspaceInvite.d.ts +0 -0
  423. /package/dist/{services → src/services}/AdminService.d.ts +0 -0
  424. /package/dist/{services → src/services}/AdminService.js +0 -0
  425. /package/dist/{services → src/services}/AppService.js +0 -0
  426. /package/dist/{services → src/services}/AuditService.d.ts +0 -0
  427. /package/dist/{services → src/services}/AuditService.js +0 -0
  428. /package/dist/{services → src/services}/CaptureService.d.ts +0 -0
  429. /package/dist/{services → src/services}/CaptureService.js +0 -0
  430. /package/dist/{services → src/services}/FavoriteService.d.ts +0 -0
  431. /package/dist/{services → src/services}/FavoriteService.js +0 -0
  432. /package/dist/{services → src/services}/FlowService.d.ts +0 -0
  433. /package/dist/{services → src/services}/FlowService.js +0 -0
  434. /package/dist/{services → src/services}/FolderService.d.ts +0 -0
  435. /package/dist/{services → src/services}/FolderService.js +0 -0
  436. /package/dist/{services → src/services}/GranularAclService.d.ts +0 -0
  437. /package/dist/{services → src/services}/GranularAclService.js +0 -0
  438. /package/dist/{services → src/services}/GroupService.d.ts +0 -0
  439. /package/dist/{services → src/services}/GroupService.js +0 -0
  440. /package/dist/{services → src/services}/InputService.d.ts +0 -0
  441. /package/dist/{services → src/services}/InputService.js +0 -0
  442. /package/dist/{services → src/services}/OauthService.d.ts +0 -0
  443. /package/dist/{services → src/services}/OauthService.js +0 -0
  444. /package/dist/{services → src/services}/RawAppService.d.ts +0 -0
  445. /package/dist/{services → src/services}/RawAppService.js +0 -0
  446. /package/dist/{services → src/services}/WorkerService.d.ts +0 -0
  447. /package/dist/{services → src/services}/WorkerService.js +0 -0
@@ -1,3 +1,4 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
@@ -26,6 +27,7 @@ export class JobService {
26
27
  scheduledFor,
27
28
  scheduledInSecs,
28
29
  parentJob,
30
+ jobId,
29
31
  invisibleToOwner,
30
32
  }: {
31
33
  workspace: string,
@@ -46,6 +48,10 @@ export class JobService {
46
48
  * The parent job that is at the origin and responsible for the execution of this script if any
47
49
  */
48
50
  parentJob?: string,
51
+ /**
52
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
53
+ */
54
+ jobId?: string,
49
55
  /**
50
56
  * make the run invisible to the the script owner (default false)
51
57
  */
@@ -62,6 +68,7 @@ export class JobService {
62
68
  'scheduled_for': scheduledFor,
63
69
  'scheduled_in_secs': scheduledInSecs,
64
70
  'parent_job': parentJob,
71
+ 'job_id': jobId,
65
72
  'invisible_to_owner': invisibleToOwner,
66
73
  },
67
74
  body: requestBody,
@@ -69,6 +76,64 @@ export class JobService {
69
76
  });
70
77
  }
71
78
 
79
+ /**
80
+ * run script by path in openai format
81
+ * @returns any job result
82
+ * @throws ApiError
83
+ */
84
+ public static openaiSyncScriptByPath({
85
+ workspace,
86
+ path,
87
+ requestBody,
88
+ parentJob,
89
+ jobId,
90
+ includeHeader,
91
+ queueLimit,
92
+ }: {
93
+ workspace: string,
94
+ path: string,
95
+ /**
96
+ * script args
97
+ */
98
+ requestBody: ScriptArgs,
99
+ /**
100
+ * The parent job that is at the origin and responsible for the execution of this script if any
101
+ */
102
+ parentJob?: string,
103
+ /**
104
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
105
+ */
106
+ jobId?: string,
107
+ /**
108
+ * List of headers's keys (separated with ',') whove value are added to the args
109
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
110
+ *
111
+ */
112
+ includeHeader?: string,
113
+ /**
114
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
115
+ *
116
+ */
117
+ queueLimit?: string,
118
+ }): CancelablePromise<any> {
119
+ return __request(OpenAPI, {
120
+ method: 'POST',
121
+ url: '/w/{workspace}/jobs/openai_sync/p/{path}',
122
+ path: {
123
+ 'workspace': workspace,
124
+ 'path': path,
125
+ },
126
+ query: {
127
+ 'parent_job': parentJob,
128
+ 'job_id': jobId,
129
+ 'include_header': includeHeader,
130
+ 'queue_limit': queueLimit,
131
+ },
132
+ body: requestBody,
133
+ mediaType: 'application/json',
134
+ });
135
+ }
136
+
72
137
  /**
73
138
  * run script by path
74
139
  * @returns any job result
@@ -79,6 +144,7 @@ export class JobService {
79
144
  path,
80
145
  requestBody,
81
146
  parentJob,
147
+ jobId,
82
148
  includeHeader,
83
149
  queueLimit,
84
150
  }: {
@@ -92,6 +158,10 @@ export class JobService {
92
158
  * The parent job that is at the origin and responsible for the execution of this script if any
93
159
  */
94
160
  parentJob?: string,
161
+ /**
162
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
163
+ */
164
+ jobId?: string,
95
165
  /**
96
166
  * List of headers's keys (separated with ',') whove value are added to the args
97
167
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -113,6 +183,7 @@ export class JobService {
113
183
  },
114
184
  query: {
115
185
  'parent_job': parentJob,
186
+ 'job_id': jobId,
116
187
  'include_header': includeHeader,
117
188
  'queue_limit': queueLimit,
118
189
  },
@@ -130,6 +201,7 @@ export class JobService {
130
201
  workspace,
131
202
  path,
132
203
  parentJob,
204
+ jobId,
133
205
  includeHeader,
134
206
  queueLimit,
135
207
  payload,
@@ -140,6 +212,10 @@ export class JobService {
140
212
  * The parent job that is at the origin and responsible for the execution of this script if any
141
213
  */
142
214
  parentJob?: string,
215
+ /**
216
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
217
+ */
218
+ jobId?: string,
143
219
  /**
144
220
  * List of headers's keys (separated with ',') whove value are added to the args
145
221
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -167,6 +243,7 @@ export class JobService {
167
243
  },
168
244
  query: {
169
245
  'parent_job': parentJob,
246
+ 'job_id': jobId,
170
247
  'include_header': includeHeader,
171
248
  'queue_limit': queueLimit,
172
249
  'payload': payload,
@@ -174,6 +251,58 @@ export class JobService {
174
251
  });
175
252
  }
176
253
 
254
+ /**
255
+ * run flow by path and wait until completion in openai format
256
+ * @returns any job result
257
+ * @throws ApiError
258
+ */
259
+ public static openaiSyncFlowByPath({
260
+ workspace,
261
+ path,
262
+ requestBody,
263
+ includeHeader,
264
+ queueLimit,
265
+ jobId,
266
+ }: {
267
+ workspace: string,
268
+ path: string,
269
+ /**
270
+ * script args
271
+ */
272
+ requestBody: ScriptArgs,
273
+ /**
274
+ * List of headers's keys (separated with ',') whove value are added to the args
275
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
276
+ *
277
+ */
278
+ includeHeader?: string,
279
+ /**
280
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
281
+ *
282
+ */
283
+ queueLimit?: string,
284
+ /**
285
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
286
+ */
287
+ jobId?: string,
288
+ }): CancelablePromise<any> {
289
+ return __request(OpenAPI, {
290
+ method: 'POST',
291
+ url: '/w/{workspace}/jobs/openai_sync/f/{path}',
292
+ path: {
293
+ 'workspace': workspace,
294
+ 'path': path,
295
+ },
296
+ query: {
297
+ 'include_header': includeHeader,
298
+ 'queue_limit': queueLimit,
299
+ 'job_id': jobId,
300
+ },
301
+ body: requestBody,
302
+ mediaType: 'application/json',
303
+ });
304
+ }
305
+
177
306
  /**
178
307
  * run flow by path and wait until completion
179
308
  * @returns any job result
@@ -185,6 +314,7 @@ export class JobService {
185
314
  requestBody,
186
315
  includeHeader,
187
316
  queueLimit,
317
+ jobId,
188
318
  }: {
189
319
  workspace: string,
190
320
  path: string,
@@ -203,6 +333,10 @@ export class JobService {
203
333
  *
204
334
  */
205
335
  queueLimit?: string,
336
+ /**
337
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
338
+ */
339
+ jobId?: string,
206
340
  }): CancelablePromise<any> {
207
341
  return __request(OpenAPI, {
208
342
  method: 'POST',
@@ -214,6 +348,7 @@ export class JobService {
214
348
  query: {
215
349
  'include_header': includeHeader,
216
350
  'queue_limit': queueLimit,
351
+ 'job_id': jobId,
217
352
  },
218
353
  body: requestBody,
219
354
  mediaType: 'application/json',
@@ -257,6 +392,7 @@ export class JobService {
257
392
  scheduledFor,
258
393
  scheduledInSecs,
259
394
  parentJob,
395
+ jobId,
260
396
  includeHeader,
261
397
  invisibleToOwner,
262
398
  }: {
@@ -278,6 +414,10 @@ export class JobService {
278
414
  * The parent job that is at the origin and responsible for the execution of this script if any
279
415
  */
280
416
  parentJob?: string,
417
+ /**
418
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
419
+ */
420
+ jobId?: string,
281
421
  /**
282
422
  * List of headers's keys (separated with ',') whove value are added to the args
283
423
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -300,6 +440,7 @@ export class JobService {
300
440
  'scheduled_for': scheduledFor,
301
441
  'scheduled_in_secs': scheduledInSecs,
302
442
  'parent_job': parentJob,
443
+ 'job_id': jobId,
303
444
  'include_header': includeHeader,
304
445
  'invisible_to_owner': invisibleToOwner,
305
446
  },
@@ -320,6 +461,7 @@ export class JobService {
320
461
  scheduledFor,
321
462
  scheduledInSecs,
322
463
  parentJob,
464
+ jobId,
323
465
  includeHeader,
324
466
  invisibleToOwner,
325
467
  }: {
@@ -328,7 +470,7 @@ export class JobService {
328
470
  /**
329
471
  * Partially filled args
330
472
  */
331
- requestBody: any,
473
+ requestBody: Record<string, any>,
332
474
  /**
333
475
  * when to schedule this job (leave empty for immediate run)
334
476
  */
@@ -341,6 +483,10 @@ export class JobService {
341
483
  * The parent job that is at the origin and responsible for the execution of this script if any
342
484
  */
343
485
  parentJob?: string,
486
+ /**
487
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
488
+ */
489
+ jobId?: string,
344
490
  /**
345
491
  * List of headers's keys (separated with ',') whove value are added to the args
346
492
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -363,6 +509,7 @@ export class JobService {
363
509
  'scheduled_for': scheduledFor,
364
510
  'scheduled_in_secs': scheduledInSecs,
365
511
  'parent_job': parentJob,
512
+ 'job_id': jobId,
366
513
  'include_header': includeHeader,
367
514
  'invisible_to_owner': invisibleToOwner,
368
515
  },
@@ -381,6 +528,7 @@ export class JobService {
381
528
  requestBody,
382
529
  includeHeader,
383
530
  invisibleToOwner,
531
+ jobId,
384
532
  }: {
385
533
  workspace: string,
386
534
  /**
@@ -397,6 +545,10 @@ export class JobService {
397
545
  * make the run invisible to the the script owner (default false)
398
546
  */
399
547
  invisibleToOwner?: boolean,
548
+ /**
549
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
550
+ */
551
+ jobId?: string,
400
552
  }): CancelablePromise<string> {
401
553
  return __request(OpenAPI, {
402
554
  method: 'POST',
@@ -407,6 +559,7 @@ export class JobService {
407
559
  query: {
408
560
  'include_header': includeHeader,
409
561
  'invisible_to_owner': invisibleToOwner,
562
+ 'job_id': jobId,
410
563
  },
411
564
  body: requestBody,
412
565
  mediaType: 'application/json',
@@ -423,6 +576,7 @@ export class JobService {
423
576
  requestBody,
424
577
  includeHeader,
425
578
  invisibleToOwner,
579
+ jobId,
426
580
  }: {
427
581
  workspace: string,
428
582
  /**
@@ -439,6 +593,10 @@ export class JobService {
439
593
  * make the run invisible to the the script owner (default false)
440
594
  */
441
595
  invisibleToOwner?: boolean,
596
+ /**
597
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
598
+ */
599
+ jobId?: string,
442
600
  }): CancelablePromise<string> {
443
601
  return __request(OpenAPI, {
444
602
  method: 'POST',
@@ -449,6 +607,7 @@ export class JobService {
449
607
  query: {
450
608
  'include_header': includeHeader,
451
609
  'invisible_to_owner': invisibleToOwner,
610
+ 'job_id': jobId,
452
611
  },
453
612
  body: requestBody,
454
613
  mediaType: 'application/json',
@@ -467,6 +626,7 @@ export class JobService {
467
626
  parentJob,
468
627
  scriptPathExact,
469
628
  scriptPathStart,
629
+ schedulePath,
470
630
  scriptHash,
471
631
  startedBefore,
472
632
  startedAfter,
@@ -499,6 +659,10 @@ export class JobService {
499
659
  * mask to filter matching starting path
500
660
  */
501
661
  scriptPathStart?: string,
662
+ /**
663
+ * mask to filter by schedule path
664
+ */
665
+ schedulePath?: string,
502
666
  /**
503
667
  * mask to filter exact matching path
504
668
  */
@@ -552,6 +716,7 @@ export class JobService {
552
716
  'parent_job': parentJob,
553
717
  'script_path_exact': scriptPathExact,
554
718
  'script_path_start': scriptPathStart,
719
+ 'schedule_path': schedulePath,
555
720
  'script_hash': scriptHash,
556
721
  'started_before': startedBefore,
557
722
  'started_after': startedAfter,
@@ -578,6 +743,7 @@ export class JobService {
578
743
  parentJob,
579
744
  scriptPathExact,
580
745
  scriptPathStart,
746
+ schedulePath,
581
747
  scriptHash,
582
748
  startedBefore,
583
749
  startedAfter,
@@ -610,6 +776,10 @@ export class JobService {
610
776
  * mask to filter matching starting path
611
777
  */
612
778
  scriptPathStart?: string,
779
+ /**
780
+ * mask to filter by schedule path
781
+ */
782
+ schedulePath?: string,
613
783
  /**
614
784
  * mask to filter exact matching path
615
785
  */
@@ -663,6 +833,7 @@ export class JobService {
663
833
  'parent_job': parentJob,
664
834
  'script_path_exact': scriptPathExact,
665
835
  'script_path_start': scriptPathStart,
836
+ 'schedule_path': schedulePath,
666
837
  'script_hash': scriptHash,
667
838
  'started_before': startedBefore,
668
839
  'started_after': startedAfter,
@@ -688,6 +859,7 @@ export class JobService {
688
859
  parentJob,
689
860
  scriptPathExact,
690
861
  scriptPathStart,
862
+ schedulePath,
691
863
  scriptHash,
692
864
  startedBefore,
693
865
  startedAfter,
@@ -716,6 +888,10 @@ export class JobService {
716
888
  * mask to filter matching starting path
717
889
  */
718
890
  scriptPathStart?: string,
891
+ /**
892
+ * mask to filter by schedule path
893
+ */
894
+ schedulePath?: string,
719
895
  /**
720
896
  * mask to filter exact matching path
721
897
  */
@@ -768,6 +944,7 @@ export class JobService {
768
944
  'parent_job': parentJob,
769
945
  'script_path_exact': scriptPathExact,
770
946
  'script_path_start': scriptPathStart,
947
+ 'schedule_path': schedulePath,
771
948
  'script_hash': scriptHash,
772
949
  'started_before': startedBefore,
773
950
  'started_after': startedAfter,
@@ -804,6 +981,28 @@ export class JobService {
804
981
  });
805
982
  }
806
983
 
984
+ /**
985
+ * get job logs
986
+ * @returns string job details
987
+ * @throws ApiError
988
+ */
989
+ public static getJobLogs({
990
+ workspace,
991
+ id,
992
+ }: {
993
+ workspace: string,
994
+ id: string,
995
+ }): CancelablePromise<string> {
996
+ return __request(OpenAPI, {
997
+ method: 'GET',
998
+ url: '/w/{workspace}/jobs_u/get_logs/{id}',
999
+ path: {
1000
+ 'workspace': workspace,
1001
+ 'id': id,
1002
+ },
1003
+ });
1004
+ }
1005
+
807
1006
  /**
808
1007
  * get job updates
809
1008
  * @returns any job details
@@ -853,7 +1052,7 @@ export class JobService {
853
1052
  }): CancelablePromise<CompletedJob> {
854
1053
  return __request(OpenAPI, {
855
1054
  method: 'GET',
856
- url: '/w/{workspace}/jobs/completed/get/{id}',
1055
+ url: '/w/{workspace}/jobs_u/completed/get/{id}',
857
1056
  path: {
858
1057
  'workspace': workspace,
859
1058
  'id': id,
@@ -875,7 +1074,7 @@ export class JobService {
875
1074
  }): CancelablePromise<any> {
876
1075
  return __request(OpenAPI, {
877
1076
  method: 'GET',
878
- url: '/w/{workspace}/jobs/completed/get_result/{id}',
1077
+ url: '/w/{workspace}/jobs_u/completed/get_result/{id}',
879
1078
  path: {
880
1079
  'workspace': workspace,
881
1080
  'id': id,
@@ -900,7 +1099,7 @@ export class JobService {
900
1099
  }> {
901
1100
  return __request(OpenAPI, {
902
1101
  method: 'GET',
903
- url: '/w/{workspace}/jobs/completed/get_result_maybe/{id}',
1102
+ url: '/w/{workspace}/jobs_u/completed/get_result_maybe/{id}',
904
1103
  path: {
905
1104
  'workspace': workspace,
906
1105
  'id': id,
@@ -1114,7 +1313,7 @@ export class JobService {
1114
1313
  id: string,
1115
1314
  resumeId: number,
1116
1315
  signature: string,
1117
- requestBody: any,
1316
+ requestBody: Record<string, any>,
1118
1317
  approver?: string,
1119
1318
  }): CancelablePromise<string> {
1120
1319
  return __request(OpenAPI, {
@@ -1146,7 +1345,7 @@ export class JobService {
1146
1345
  }: {
1147
1346
  workspace: string,
1148
1347
  id: string,
1149
- requestBody: any,
1348
+ requestBody: Record<string, any>,
1150
1349
  }): CancelablePromise<string> {
1151
1350
  return __request(OpenAPI, {
1152
1351
  method: 'POST',
@@ -1210,7 +1409,7 @@ export class JobService {
1210
1409
  id: string,
1211
1410
  resumeId: number,
1212
1411
  signature: string,
1213
- requestBody: any,
1412
+ requestBody: Record<string, any>,
1214
1413
  approver?: string,
1215
1414
  }): CancelablePromise<string> {
1216
1415
  return __request(OpenAPI, {
@@ -1,3 +1,4 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
@@ -1,3 +1,4 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
@@ -1,3 +1,4 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
@@ -22,12 +23,14 @@ export class ResourceService {
22
23
  public static createResource({
23
24
  workspace,
24
25
  requestBody,
26
+ updateIfExists,
25
27
  }: {
26
28
  workspace: string,
27
29
  /**
28
30
  * new resource
29
31
  */
30
32
  requestBody: CreateResource,
33
+ updateIfExists?: boolean,
31
34
  }): CancelablePromise<string> {
32
35
  return __request(OpenAPI, {
33
36
  method: 'POST',
@@ -35,6 +38,9 @@ export class ResourceService {
35
38
  path: {
36
39
  'workspace': workspace,
37
40
  },
41
+ query: {
42
+ 'update_if_exists': updateIfExists,
43
+ },
38
44
  body: requestBody,
39
45
  mediaType: 'application/json',
40
46
  });
@@ -1,9 +1,11 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
4
5
  import type { EditSchedule } from '../models/EditSchedule';
5
6
  import type { NewSchedule } from '../models/NewSchedule';
6
7
  import type { Schedule } from '../models/Schedule';
8
+ import type { ScheduleWJobs } from '../models/ScheduleWJobs';
7
9
 
8
10
  import type { CancelablePromise } from '../core/CancelablePromise';
9
11
  import { OpenAPI } from '../core/OpenAPI';
@@ -220,4 +222,37 @@ export class ScheduleService {
220
222
  });
221
223
  }
222
224
 
225
+ /**
226
+ * list schedules with last 20 jobs
227
+ * @returns ScheduleWJobs schedule list
228
+ * @throws ApiError
229
+ */
230
+ public static listSchedulesWithJobs({
231
+ workspace,
232
+ page,
233
+ perPage,
234
+ }: {
235
+ workspace: string,
236
+ /**
237
+ * which page to return (start at 1, default 1)
238
+ */
239
+ page?: number,
240
+ /**
241
+ * number of items to return for a given page (default 30, max 100)
242
+ */
243
+ perPage?: number,
244
+ }): CancelablePromise<Array<ScheduleWJobs>> {
245
+ return __request(OpenAPI, {
246
+ method: 'GET',
247
+ url: '/w/{workspace}/schedules/list_with_jobs',
248
+ path: {
249
+ 'workspace': workspace,
250
+ },
251
+ query: {
252
+ 'page': page,
253
+ 'per_page': perPage,
254
+ },
255
+ });
256
+ }
257
+
223
258
  }
@@ -1,7 +1,7 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
1
2
  /* istanbul ignore file */
2
3
  /* tslint:disable */
3
4
  /* eslint-disable */
4
- import type { MainArgSignature } from '../models/MainArgSignature';
5
5
  import type { NewScript } from '../models/NewScript';
6
6
  import type { NewScriptWithDraft } from '../models/NewScriptWithDraft';
7
7
  import type { Script } from '../models/Script';
@@ -67,7 +67,7 @@ export class ScriptService {
67
67
  content: string;
68
68
  lockfile?: string;
69
69
  schema?: any;
70
- language: 'deno' | 'python3' | 'go' | 'bash';
70
+ language: string;
71
71
  summary?: string;
72
72
  }> {
73
73
  return __request(OpenAPI, {
@@ -244,90 +244,6 @@ export class ScriptService {
244
244
  });
245
245
  }
246
246
 
247
- /**
248
- * inspect python code to infer jsonschema of arguments
249
- * @returns MainArgSignature parsed args
250
- * @throws ApiError
251
- */
252
- public static pythonToJsonschema({
253
- requestBody,
254
- }: {
255
- /**
256
- * python code with the main function
257
- */
258
- requestBody: string,
259
- }): CancelablePromise<MainArgSignature> {
260
- return __request(OpenAPI, {
261
- method: 'POST',
262
- url: '/scripts/python/tojsonschema',
263
- body: requestBody,
264
- mediaType: 'application/json',
265
- });
266
- }
267
-
268
- /**
269
- * inspect deno code to infer jsonschema of arguments
270
- * @returns MainArgSignature parsed args
271
- * @throws ApiError
272
- */
273
- public static denoToJsonschema({
274
- requestBody,
275
- }: {
276
- /**
277
- * deno code with the main function
278
- */
279
- requestBody: string,
280
- }): CancelablePromise<MainArgSignature> {
281
- return __request(OpenAPI, {
282
- method: 'POST',
283
- url: '/scripts/deno/tojsonschema',
284
- body: requestBody,
285
- mediaType: 'application/json',
286
- });
287
- }
288
-
289
- /**
290
- * inspect bash code to infer jsonschema of arguments
291
- * @returns MainArgSignature parsed args
292
- * @throws ApiError
293
- */
294
- public static bashToJsonschema({
295
- requestBody,
296
- }: {
297
- /**
298
- * bash code with the main function
299
- */
300
- requestBody: string,
301
- }): CancelablePromise<MainArgSignature> {
302
- return __request(OpenAPI, {
303
- method: 'POST',
304
- url: '/scripts/bash/tojsonschema',
305
- body: requestBody,
306
- mediaType: 'application/json',
307
- });
308
- }
309
-
310
- /**
311
- * inspect go code to infer jsonschema of arguments
312
- * @returns MainArgSignature parsed args
313
- * @throws ApiError
314
- */
315
- public static goToJsonschema({
316
- requestBody,
317
- }: {
318
- /**
319
- * go code with the main function
320
- */
321
- requestBody: string,
322
- }): CancelablePromise<MainArgSignature> {
323
- return __request(OpenAPI, {
324
- method: 'POST',
325
- url: '/scripts/go/tojsonschema',
326
- body: requestBody,
327
- mediaType: 'application/json',
328
- });
329
- }
330
-
331
247
  /**
332
248
  * archive script by path
333
249
  * @returns string script archived