windmill-client 0.3.1 → 0.3.3

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 +375 -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 +375 -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,4 +1,5 @@
1
1
  "use strict";
2
+ /* generated using openapi-typescript-codegen -- do no edit */
2
3
  /* istanbul ignore file */
3
4
  /* tslint:disable */
4
5
  /* eslint-disable */
@@ -189,7 +189,7 @@ export declare class AppService {
189
189
  language: string;
190
190
  path?: string;
191
191
  };
192
- force_viewer_static_fields?: any;
192
+ force_viewer_static_fields?: Record<string, any>;
193
193
  };
194
194
  }): CancelablePromise<string>;
195
195
  }
@@ -13,4 +13,14 @@ export declare class DraftService {
13
13
  value?: any;
14
14
  };
15
15
  }): CancelablePromise<string>;
16
+ /**
17
+ * delete draft
18
+ * @returns string draft deleted
19
+ * @throws ApiError
20
+ */
21
+ static deleteDraft({ workspace, kind, path, }: {
22
+ workspace: string;
23
+ kind: 'script' | 'flow' | 'app';
24
+ path: string;
25
+ }): CancelablePromise<string>;
16
26
  }
@@ -20,5 +20,21 @@ class DraftService {
20
20
  mediaType: 'application/json',
21
21
  });
22
22
  }
23
+ /**
24
+ * delete draft
25
+ * @returns string draft deleted
26
+ * @throws ApiError
27
+ */
28
+ static deleteDraft({ workspace, kind, path, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'DELETE',
31
+ url: '/w/{workspace}/drafts/delete/{kind}/{path}',
32
+ path: {
33
+ 'workspace': workspace,
34
+ 'kind': kind,
35
+ 'path': path,
36
+ },
37
+ });
38
+ }
23
39
  }
24
40
  exports.DraftService = DraftService;
@@ -11,7 +11,7 @@ export declare class JobService {
11
11
  * @returns string job created
12
12
  * @throws ApiError
13
13
  */
14
- static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, invisibleToOwner, }: {
14
+ static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, invisibleToOwner, }: {
15
15
  workspace: string;
16
16
  path: string;
17
17
  /**
@@ -30,17 +30,53 @@ export declare class JobService {
30
30
  * The parent job that is at the origin and responsible for the execution of this script if any
31
31
  */
32
32
  parentJob?: string;
33
+ /**
34
+ * 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)
35
+ */
36
+ jobId?: string;
33
37
  /**
34
38
  * make the run invisible to the the script owner (default false)
35
39
  */
36
40
  invisibleToOwner?: boolean;
37
41
  }): CancelablePromise<string>;
42
+ /**
43
+ * run script by path in openai format
44
+ * @returns any job result
45
+ * @throws ApiError
46
+ */
47
+ static openaiSyncScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }: {
48
+ workspace: string;
49
+ path: string;
50
+ /**
51
+ * script args
52
+ */
53
+ requestBody: ScriptArgs;
54
+ /**
55
+ * The parent job that is at the origin and responsible for the execution of this script if any
56
+ */
57
+ parentJob?: string;
58
+ /**
59
+ * 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)
60
+ */
61
+ jobId?: string;
62
+ /**
63
+ * List of headers's keys (separated with ',') whove value are added to the args
64
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
65
+ *
66
+ */
67
+ includeHeader?: string;
68
+ /**
69
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
70
+ *
71
+ */
72
+ queueLimit?: string;
73
+ }): CancelablePromise<any>;
38
74
  /**
39
75
  * run script by path
40
76
  * @returns any job result
41
77
  * @throws ApiError
42
78
  */
43
- static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, includeHeader, queueLimit, }: {
79
+ static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }: {
44
80
  workspace: string;
45
81
  path: string;
46
82
  /**
@@ -51,6 +87,10 @@ export declare class JobService {
51
87
  * The parent job that is at the origin and responsible for the execution of this script if any
52
88
  */
53
89
  parentJob?: string;
90
+ /**
91
+ * 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)
92
+ */
93
+ jobId?: string;
54
94
  /**
55
95
  * List of headers's keys (separated with ',') whove value are added to the args
56
96
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -68,13 +108,17 @@ export declare class JobService {
68
108
  * @returns any job result
69
109
  * @throws ApiError
70
110
  */
71
- static runWaitResultScriptByPathGet({ workspace, path, parentJob, includeHeader, queueLimit, payload, }: {
111
+ static runWaitResultScriptByPathGet({ workspace, path, parentJob, jobId, includeHeader, queueLimit, payload, }: {
72
112
  workspace: string;
73
113
  path: string;
74
114
  /**
75
115
  * The parent job that is at the origin and responsible for the execution of this script if any
76
116
  */
77
117
  parentJob?: string;
118
+ /**
119
+ * 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)
120
+ */
121
+ jobId?: string;
78
122
  /**
79
123
  * List of headers's keys (separated with ',') whove value are added to the args
80
124
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -93,12 +137,40 @@ export declare class JobService {
93
137
  */
94
138
  payload?: string;
95
139
  }): CancelablePromise<any>;
140
+ /**
141
+ * run flow by path and wait until completion in openai format
142
+ * @returns any job result
143
+ * @throws ApiError
144
+ */
145
+ static openaiSyncFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }: {
146
+ workspace: string;
147
+ path: string;
148
+ /**
149
+ * script args
150
+ */
151
+ requestBody: ScriptArgs;
152
+ /**
153
+ * List of headers's keys (separated with ',') whove value are added to the args
154
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
155
+ *
156
+ */
157
+ includeHeader?: string;
158
+ /**
159
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
160
+ *
161
+ */
162
+ queueLimit?: string;
163
+ /**
164
+ * 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)
165
+ */
166
+ jobId?: string;
167
+ }): CancelablePromise<any>;
96
168
  /**
97
169
  * run flow by path and wait until completion
98
170
  * @returns any job result
99
171
  * @throws ApiError
100
172
  */
101
- static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, }: {
173
+ static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }: {
102
174
  workspace: string;
103
175
  path: string;
104
176
  /**
@@ -116,6 +188,10 @@ export declare class JobService {
116
188
  *
117
189
  */
118
190
  queueLimit?: string;
191
+ /**
192
+ * 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)
193
+ */
194
+ jobId?: string;
119
195
  }): CancelablePromise<any>;
120
196
  /**
121
197
  * get job result by id
@@ -132,7 +208,7 @@ export declare class JobService {
132
208
  * @returns string job created
133
209
  * @throws ApiError
134
210
  */
135
- static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }: {
211
+ static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }: {
136
212
  workspace: string;
137
213
  path: string;
138
214
  /**
@@ -151,6 +227,10 @@ export declare class JobService {
151
227
  * The parent job that is at the origin and responsible for the execution of this script if any
152
228
  */
153
229
  parentJob?: string;
230
+ /**
231
+ * 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)
232
+ */
233
+ jobId?: string;
154
234
  /**
155
235
  * List of headers's keys (separated with ',') whove value are added to the args
156
236
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -167,13 +247,13 @@ export declare class JobService {
167
247
  * @returns string job created
168
248
  * @throws ApiError
169
249
  */
170
- static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }: {
250
+ static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }: {
171
251
  workspace: string;
172
252
  hash: string;
173
253
  /**
174
254
  * Partially filled args
175
255
  */
176
- requestBody: any;
256
+ requestBody: Record<string, any>;
177
257
  /**
178
258
  * when to schedule this job (leave empty for immediate run)
179
259
  */
@@ -186,6 +266,10 @@ export declare class JobService {
186
266
  * The parent job that is at the origin and responsible for the execution of this script if any
187
267
  */
188
268
  parentJob?: string;
269
+ /**
270
+ * 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)
271
+ */
272
+ jobId?: string;
189
273
  /**
190
274
  * List of headers's keys (separated with ',') whove value are added to the args
191
275
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -202,7 +286,7 @@ export declare class JobService {
202
286
  * @returns string job created
203
287
  * @throws ApiError
204
288
  */
205
- static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }: {
289
+ static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }: {
206
290
  workspace: string;
207
291
  /**
208
292
  * preview
@@ -218,13 +302,17 @@ export declare class JobService {
218
302
  * make the run invisible to the the script owner (default false)
219
303
  */
220
304
  invisibleToOwner?: boolean;
305
+ /**
306
+ * 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)
307
+ */
308
+ jobId?: string;
221
309
  }): CancelablePromise<string>;
222
310
  /**
223
311
  * run flow preview
224
312
  * @returns string job created
225
313
  * @throws ApiError
226
314
  */
227
- static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }: {
315
+ static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }: {
228
316
  workspace: string;
229
317
  /**
230
318
  * preview
@@ -240,13 +328,17 @@ export declare class JobService {
240
328
  * make the run invisible to the the script owner (default false)
241
329
  */
242
330
  invisibleToOwner?: boolean;
331
+ /**
332
+ * 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)
333
+ */
334
+ jobId?: string;
243
335
  }): CancelablePromise<string>;
244
336
  /**
245
337
  * list all available queued jobs
246
338
  * @returns QueuedJob All available queued jobs
247
339
  * @throws ApiError
248
340
  */
249
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }: {
341
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }: {
250
342
  workspace: string;
251
343
  /**
252
344
  * order by desc order (default true)
@@ -268,6 +360,10 @@ export declare class JobService {
268
360
  * mask to filter matching starting path
269
361
  */
270
362
  scriptPathStart?: string;
363
+ /**
364
+ * mask to filter by schedule path
365
+ */
366
+ schedulePath?: string;
271
367
  /**
272
368
  * mask to filter exact matching path
273
369
  */
@@ -314,7 +410,7 @@ export declare class JobService {
314
410
  * @returns CompletedJob All available completed jobs
315
411
  * @throws ApiError
316
412
  */
317
- static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }: {
413
+ static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }: {
318
414
  workspace: string;
319
415
  /**
320
416
  * order by desc order (default true)
@@ -336,6 +432,10 @@ export declare class JobService {
336
432
  * mask to filter matching starting path
337
433
  */
338
434
  scriptPathStart?: string;
435
+ /**
436
+ * mask to filter by schedule path
437
+ */
438
+ schedulePath?: string;
339
439
  /**
340
440
  * mask to filter exact matching path
341
441
  */
@@ -382,7 +482,7 @@ export declare class JobService {
382
482
  * @returns Job All jobs
383
483
  * @throws ApiError
384
484
  */
385
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
485
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
386
486
  workspace: string;
387
487
  /**
388
488
  * mask to filter exact matching user creator
@@ -400,6 +500,10 @@ export declare class JobService {
400
500
  * mask to filter matching starting path
401
501
  */
402
502
  scriptPathStart?: string;
503
+ /**
504
+ * mask to filter by schedule path
505
+ */
506
+ schedulePath?: string;
403
507
  /**
404
508
  * mask to filter exact matching path
405
509
  */
@@ -450,6 +554,15 @@ export declare class JobService {
450
554
  workspace: string;
451
555
  id: string;
452
556
  }): CancelablePromise<Job>;
557
+ /**
558
+ * get job logs
559
+ * @returns string job details
560
+ * @throws ApiError
561
+ */
562
+ static getJobLogs({ workspace, id, }: {
563
+ workspace: string;
564
+ id: string;
565
+ }): CancelablePromise<string>;
453
566
  /**
454
567
  * get job updates
455
568
  * @returns any job details
@@ -589,7 +702,7 @@ export declare class JobService {
589
702
  id: string;
590
703
  resumeId: number;
591
704
  signature: string;
592
- requestBody: any;
705
+ requestBody: Record<string, any>;
593
706
  approver?: string;
594
707
  }): CancelablePromise<string>;
595
708
  /**
@@ -600,7 +713,7 @@ export declare class JobService {
600
713
  static resumeSuspendedFlowAsOwner({ workspace, id, requestBody, }: {
601
714
  workspace: string;
602
715
  id: string;
603
- requestBody: any;
716
+ requestBody: Record<string, any>;
604
717
  }): CancelablePromise<string>;
605
718
  /**
606
719
  * cancel a job for a suspended flow
@@ -624,7 +737,7 @@ export declare class JobService {
624
737
  id: string;
625
738
  resumeId: number;
626
739
  signature: string;
627
- requestBody: any;
740
+ requestBody: Record<string, any>;
628
741
  approver?: string;
629
742
  }): CancelablePromise<string>;
630
743
  /**
@@ -9,7 +9,7 @@ class JobService {
9
9
  * @returns string job created
10
10
  * @throws ApiError
11
11
  */
12
- static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, invisibleToOwner, }) {
12
+ static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, invisibleToOwner, }) {
13
13
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
14
  method: 'POST',
15
15
  url: '/w/{workspace}/jobs/run/p/{path}',
@@ -21,18 +21,42 @@ class JobService {
21
21
  'scheduled_for': scheduledFor,
22
22
  'scheduled_in_secs': scheduledInSecs,
23
23
  'parent_job': parentJob,
24
+ 'job_id': jobId,
24
25
  'invisible_to_owner': invisibleToOwner,
25
26
  },
26
27
  body: requestBody,
27
28
  mediaType: 'application/json',
28
29
  });
29
30
  }
31
+ /**
32
+ * run script by path in openai format
33
+ * @returns any job result
34
+ * @throws ApiError
35
+ */
36
+ static openaiSyncScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }) {
37
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
38
+ method: 'POST',
39
+ url: '/w/{workspace}/jobs/openai_sync/p/{path}',
40
+ path: {
41
+ 'workspace': workspace,
42
+ 'path': path,
43
+ },
44
+ query: {
45
+ 'parent_job': parentJob,
46
+ 'job_id': jobId,
47
+ 'include_header': includeHeader,
48
+ 'queue_limit': queueLimit,
49
+ },
50
+ body: requestBody,
51
+ mediaType: 'application/json',
52
+ });
53
+ }
30
54
  /**
31
55
  * run script by path
32
56
  * @returns any job result
33
57
  * @throws ApiError
34
58
  */
35
- static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, includeHeader, queueLimit, }) {
59
+ static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }) {
36
60
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
37
61
  method: 'POST',
38
62
  url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
@@ -42,6 +66,7 @@ class JobService {
42
66
  },
43
67
  query: {
44
68
  'parent_job': parentJob,
69
+ 'job_id': jobId,
45
70
  'include_header': includeHeader,
46
71
  'queue_limit': queueLimit,
47
72
  },
@@ -54,7 +79,7 @@ class JobService {
54
79
  * @returns any job result
55
80
  * @throws ApiError
56
81
  */
57
- static runWaitResultScriptByPathGet({ workspace, path, parentJob, includeHeader, queueLimit, payload, }) {
82
+ static runWaitResultScriptByPathGet({ workspace, path, parentJob, jobId, includeHeader, queueLimit, payload, }) {
58
83
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
59
84
  method: 'GET',
60
85
  url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
@@ -64,18 +89,41 @@ class JobService {
64
89
  },
65
90
  query: {
66
91
  'parent_job': parentJob,
92
+ 'job_id': jobId,
67
93
  'include_header': includeHeader,
68
94
  'queue_limit': queueLimit,
69
95
  'payload': payload,
70
96
  },
71
97
  });
72
98
  }
99
+ /**
100
+ * run flow by path and wait until completion in openai format
101
+ * @returns any job result
102
+ * @throws ApiError
103
+ */
104
+ static openaiSyncFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }) {
105
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
106
+ method: 'POST',
107
+ url: '/w/{workspace}/jobs/openai_sync/f/{path}',
108
+ path: {
109
+ 'workspace': workspace,
110
+ 'path': path,
111
+ },
112
+ query: {
113
+ 'include_header': includeHeader,
114
+ 'queue_limit': queueLimit,
115
+ 'job_id': jobId,
116
+ },
117
+ body: requestBody,
118
+ mediaType: 'application/json',
119
+ });
120
+ }
73
121
  /**
74
122
  * run flow by path and wait until completion
75
123
  * @returns any job result
76
124
  * @throws ApiError
77
125
  */
78
- static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, }) {
126
+ static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }) {
79
127
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
80
128
  method: 'POST',
81
129
  url: '/w/{workspace}/jobs/run_wait_result/f/{path}',
@@ -86,6 +134,7 @@ class JobService {
86
134
  query: {
87
135
  'include_header': includeHeader,
88
136
  'queue_limit': queueLimit,
137
+ 'job_id': jobId,
89
138
  },
90
139
  body: requestBody,
91
140
  mediaType: 'application/json',
@@ -112,7 +161,7 @@ class JobService {
112
161
  * @returns string job created
113
162
  * @throws ApiError
114
163
  */
115
- static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }) {
164
+ static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }) {
116
165
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
117
166
  method: 'POST',
118
167
  url: '/w/{workspace}/jobs/run/f/{path}',
@@ -124,6 +173,7 @@ class JobService {
124
173
  'scheduled_for': scheduledFor,
125
174
  'scheduled_in_secs': scheduledInSecs,
126
175
  'parent_job': parentJob,
176
+ 'job_id': jobId,
127
177
  'include_header': includeHeader,
128
178
  'invisible_to_owner': invisibleToOwner,
129
179
  },
@@ -136,7 +186,7 @@ class JobService {
136
186
  * @returns string job created
137
187
  * @throws ApiError
138
188
  */
139
- static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }) {
189
+ static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }) {
140
190
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
141
191
  method: 'POST',
142
192
  url: '/w/{workspace}/jobs/run/h/{hash}',
@@ -148,6 +198,7 @@ class JobService {
148
198
  'scheduled_for': scheduledFor,
149
199
  'scheduled_in_secs': scheduledInSecs,
150
200
  'parent_job': parentJob,
201
+ 'job_id': jobId,
151
202
  'include_header': includeHeader,
152
203
  'invisible_to_owner': invisibleToOwner,
153
204
  },
@@ -160,7 +211,7 @@ class JobService {
160
211
  * @returns string job created
161
212
  * @throws ApiError
162
213
  */
163
- static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }) {
214
+ static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }) {
164
215
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
165
216
  method: 'POST',
166
217
  url: '/w/{workspace}/jobs/run/preview',
@@ -170,6 +221,7 @@ class JobService {
170
221
  query: {
171
222
  'include_header': includeHeader,
172
223
  'invisible_to_owner': invisibleToOwner,
224
+ 'job_id': jobId,
173
225
  },
174
226
  body: requestBody,
175
227
  mediaType: 'application/json',
@@ -180,7 +232,7 @@ class JobService {
180
232
  * @returns string job created
181
233
  * @throws ApiError
182
234
  */
183
- static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }) {
235
+ static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }) {
184
236
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
185
237
  method: 'POST',
186
238
  url: '/w/{workspace}/jobs/run/preview_flow',
@@ -190,6 +242,7 @@ class JobService {
190
242
  query: {
191
243
  'include_header': includeHeader,
192
244
  'invisible_to_owner': invisibleToOwner,
245
+ 'job_id': jobId,
193
246
  },
194
247
  body: requestBody,
195
248
  mediaType: 'application/json',
@@ -200,7 +253,7 @@ class JobService {
200
253
  * @returns QueuedJob All available queued jobs
201
254
  * @throws ApiError
202
255
  */
203
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }) {
256
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }) {
204
257
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
205
258
  method: 'GET',
206
259
  url: '/w/{workspace}/jobs/queue/list',
@@ -213,6 +266,7 @@ class JobService {
213
266
  'parent_job': parentJob,
214
267
  'script_path_exact': scriptPathExact,
215
268
  'script_path_start': scriptPathStart,
269
+ 'schedule_path': schedulePath,
216
270
  'script_hash': scriptHash,
217
271
  'started_before': startedBefore,
218
272
  'started_after': startedAfter,
@@ -231,7 +285,7 @@ class JobService {
231
285
  * @returns CompletedJob All available completed jobs
232
286
  * @throws ApiError
233
287
  */
234
- static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }) {
288
+ static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }) {
235
289
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
236
290
  method: 'GET',
237
291
  url: '/w/{workspace}/jobs/completed/list',
@@ -244,6 +298,7 @@ class JobService {
244
298
  'parent_job': parentJob,
245
299
  'script_path_exact': scriptPathExact,
246
300
  'script_path_start': scriptPathStart,
301
+ 'schedule_path': schedulePath,
247
302
  'script_hash': scriptHash,
248
303
  'started_before': startedBefore,
249
304
  'started_after': startedAfter,
@@ -262,7 +317,7 @@ class JobService {
262
317
  * @returns Job All jobs
263
318
  * @throws ApiError
264
319
  */
265
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
320
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
266
321
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
267
322
  method: 'GET',
268
323
  url: '/w/{workspace}/jobs/list',
@@ -274,6 +329,7 @@ class JobService {
274
329
  'parent_job': parentJob,
275
330
  'script_path_exact': scriptPathExact,
276
331
  'script_path_start': scriptPathStart,
332
+ 'schedule_path': schedulePath,
277
333
  'script_hash': scriptHash,
278
334
  'started_before': startedBefore,
279
335
  'started_after': startedAfter,
@@ -302,6 +358,21 @@ class JobService {
302
358
  },
303
359
  });
304
360
  }
361
+ /**
362
+ * get job logs
363
+ * @returns string job details
364
+ * @throws ApiError
365
+ */
366
+ static getJobLogs({ workspace, id, }) {
367
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
368
+ method: 'GET',
369
+ url: '/w/{workspace}/jobs_u/get_logs/{id}',
370
+ path: {
371
+ 'workspace': workspace,
372
+ 'id': id,
373
+ },
374
+ });
375
+ }
305
376
  /**
306
377
  * get job updates
307
378
  * @returns any job details
@@ -329,7 +400,7 @@ class JobService {
329
400
  static getCompletedJob({ workspace, id, }) {
330
401
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
331
402
  method: 'GET',
332
- url: '/w/{workspace}/jobs/completed/get/{id}',
403
+ url: '/w/{workspace}/jobs_u/completed/get/{id}',
333
404
  path: {
334
405
  'workspace': workspace,
335
406
  'id': id,
@@ -344,7 +415,7 @@ class JobService {
344
415
  static getCompletedJobResult({ workspace, id, }) {
345
416
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
346
417
  method: 'GET',
347
- url: '/w/{workspace}/jobs/completed/get_result/{id}',
418
+ url: '/w/{workspace}/jobs_u/completed/get_result/{id}',
348
419
  path: {
349
420
  'workspace': workspace,
350
421
  'id': id,
@@ -359,7 +430,7 @@ class JobService {
359
430
  static getCompletedJobResultMaybe({ workspace, id, }) {
360
431
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
361
432
  method: 'GET',
362
- url: '/w/{workspace}/jobs/completed/get_result_maybe/{id}',
433
+ url: '/w/{workspace}/jobs_u/completed/get_result_maybe/{id}',
363
434
  path: {
364
435
  'workspace': workspace,
365
436
  'id': id,
@@ -11,12 +11,13 @@ export declare class ResourceService {
11
11
  * @returns string resource created
12
12
  * @throws ApiError
13
13
  */
14
- static createResource({ workspace, requestBody, }: {
14
+ static createResource({ workspace, requestBody, updateIfExists, }: {
15
15
  workspace: string;
16
16
  /**
17
17
  * new resource
18
18
  */
19
19
  requestBody: CreateResource;
20
+ updateIfExists?: boolean;
20
21
  }): CancelablePromise<string>;
21
22
  /**
22
23
  * delete resource