windmill-client 0.2.0 → 0.2.1

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 (198) hide show
  1. package/dist/core/ApiError.d.ts +10 -0
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.d.ts +13 -0
  4. package/dist/core/ApiRequestOptions.js +2 -0
  5. package/dist/core/ApiResult.d.ts +7 -0
  6. package/dist/core/ApiResult.js +2 -0
  7. package/dist/core/CancelablePromise.d.ts +26 -0
  8. package/dist/core/CancelablePromise.js +94 -0
  9. package/dist/core/OpenAPI.d.ts +16 -0
  10. package/dist/core/OpenAPI.js +14 -0
  11. package/dist/core/request.d.ts +13 -0
  12. package/dist/core/request.js +269 -0
  13. package/dist/index.d.ts +95 -0
  14. package/dist/index.js +85 -0
  15. package/dist/models/AppWithLastVersion.d.ts +21 -0
  16. package/dist/models/AppWithLastVersion.js +15 -0
  17. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  18. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  19. package/dist/models/AuditLog.d.ts +32 -0
  20. package/dist/models/AuditLog.js +32 -0
  21. package/dist/models/BranchAll.d.ts +10 -0
  22. package/dist/models/BranchAll.js +5 -0
  23. package/dist/models/BranchOne.d.ts +10 -0
  24. package/dist/models/BranchOne.js +5 -0
  25. package/dist/models/CompletedJob.d.ts +57 -0
  26. package/dist/models/CompletedJob.js +26 -0
  27. package/dist/models/ContextualVariable.d.ts +5 -0
  28. package/dist/models/ContextualVariable.js +5 -0
  29. package/dist/models/CreateInput.d.ts +4 -0
  30. package/dist/models/CreateInput.js +5 -0
  31. package/dist/models/CreateResource.d.ts +6 -0
  32. package/dist/models/CreateResource.js +5 -0
  33. package/dist/models/CreateVariable.d.ts +8 -0
  34. package/dist/models/CreateVariable.js +5 -0
  35. package/dist/models/CreateWorkspace.d.ts +5 -0
  36. package/dist/models/CreateWorkspace.js +5 -0
  37. package/dist/models/EditResource.d.ts +5 -0
  38. package/dist/models/EditResource.js +5 -0
  39. package/dist/models/EditResourceType.d.ts +4 -0
  40. package/dist/models/EditResourceType.js +5 -0
  41. package/dist/models/EditSchedule.d.ts +6 -0
  42. package/dist/models/EditSchedule.js +5 -0
  43. package/dist/models/EditVariable.d.ts +6 -0
  44. package/dist/models/EditVariable.js +5 -0
  45. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  46. package/dist/models/EditWorkspaceUser.js +5 -0
  47. package/dist/models/Flow.d.ts +3 -0
  48. package/dist/models/Flow.js +5 -0
  49. package/dist/models/FlowMetadata.d.ts +11 -0
  50. package/dist/models/FlowMetadata.js +5 -0
  51. package/dist/models/FlowModule.d.ts +18 -0
  52. package/dist/models/FlowModule.js +5 -0
  53. package/dist/models/FlowModuleValue.d.ts +8 -0
  54. package/dist/models/FlowModuleValue.js +5 -0
  55. package/dist/models/FlowPreview.d.ts +7 -0
  56. package/dist/models/FlowPreview.js +5 -0
  57. package/dist/models/FlowStatus.d.ts +12 -0
  58. package/dist/models/FlowStatus.js +5 -0
  59. package/dist/models/FlowStatusModule.d.ts +34 -0
  60. package/dist/models/FlowStatusModule.js +18 -0
  61. package/dist/models/FlowValue.d.ts +6 -0
  62. package/dist/models/FlowValue.js +5 -0
  63. package/dist/models/Folder.d.ts +5 -0
  64. package/dist/models/Folder.js +5 -0
  65. package/dist/models/ForloopFlow.d.ts +9 -0
  66. package/dist/models/ForloopFlow.js +5 -0
  67. package/dist/models/GlobalUserInfo.d.ts +14 -0
  68. package/dist/models/GlobalUserInfo.js +14 -0
  69. package/dist/models/Group.d.ts +6 -0
  70. package/dist/models/Group.js +5 -0
  71. package/dist/models/Identity.d.ts +4 -0
  72. package/dist/models/Identity.js +5 -0
  73. package/dist/models/Input.d.ts +8 -0
  74. package/dist/models/Input.js +5 -0
  75. package/dist/models/InputTransform.d.ts +3 -0
  76. package/dist/models/InputTransform.js +5 -0
  77. package/dist/models/JavascriptTransform.d.ts +4 -0
  78. package/dist/models/JavascriptTransform.js +5 -0
  79. package/dist/models/Job.d.ts +11 -0
  80. package/dist/models/Job.js +14 -0
  81. package/dist/models/ListableApp.d.ts +18 -0
  82. package/dist/models/ListableApp.js +15 -0
  83. package/dist/models/ListableResource.d.ts +14 -0
  84. package/dist/models/ListableResource.js +5 -0
  85. package/dist/models/ListableVariable.d.ts +14 -0
  86. package/dist/models/ListableVariable.js +5 -0
  87. package/dist/models/Login.d.ts +4 -0
  88. package/dist/models/Login.js +5 -0
  89. package/dist/models/MainArgSignature.d.ts +33 -0
  90. package/dist/models/MainArgSignature.js +14 -0
  91. package/dist/models/NewSchedule.d.ts +10 -0
  92. package/dist/models/NewSchedule.js +5 -0
  93. package/dist/models/NewScript.d.ts +29 -0
  94. package/dist/models/NewScript.js +24 -0
  95. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  96. package/dist/models/NewScriptWithDraft.js +5 -0
  97. package/dist/models/NewToken.d.ts +4 -0
  98. package/dist/models/NewToken.js +5 -0
  99. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  100. package/dist/models/NewTokenImpersonate.js +5 -0
  101. package/dist/models/NewUser.d.ts +5 -0
  102. package/dist/models/NewUser.js +5 -0
  103. package/dist/models/OpenFlow.d.ts +7 -0
  104. package/dist/models/OpenFlow.js +5 -0
  105. package/dist/models/OpenFlowWPath.d.ts +4 -0
  106. package/dist/models/OpenFlowWPath.js +5 -0
  107. package/dist/models/PathFlow.d.ts +6 -0
  108. package/dist/models/PathFlow.js +5 -0
  109. package/dist/models/PathScript.d.ts +7 -0
  110. package/dist/models/PathScript.js +5 -0
  111. package/dist/models/Policy.d.ts +13 -0
  112. package/dist/models/Policy.js +15 -0
  113. package/dist/models/Preview.d.ts +16 -0
  114. package/dist/models/Preview.js +16 -0
  115. package/dist/models/QueuedJob.d.ts +55 -0
  116. package/dist/models/QueuedJob.js +26 -0
  117. package/dist/models/RawScript.d.ts +18 -0
  118. package/dist/models/RawScript.js +16 -0
  119. package/dist/models/Resource.d.ts +9 -0
  120. package/dist/models/Resource.js +5 -0
  121. package/dist/models/ResourceType.d.ts +6 -0
  122. package/dist/models/ResourceType.js +5 -0
  123. package/dist/models/Retry.d.ts +11 -0
  124. package/dist/models/Retry.js +5 -0
  125. package/dist/models/RunnableType.d.ts +5 -0
  126. package/dist/models/RunnableType.js +12 -0
  127. package/dist/models/Schedule.d.ts +15 -0
  128. package/dist/models/Schedule.js +5 -0
  129. package/dist/models/Script.d.ts +43 -0
  130. package/dist/models/Script.js +24 -0
  131. package/dist/models/ScriptArgs.d.ts +1 -0
  132. package/dist/models/ScriptArgs.js +5 -0
  133. package/dist/models/SlackToken.d.ts +8 -0
  134. package/dist/models/SlackToken.js +5 -0
  135. package/dist/models/StaticTransform.d.ts +4 -0
  136. package/dist/models/StaticTransform.js +5 -0
  137. package/dist/models/TokenResponse.d.ts +6 -0
  138. package/dist/models/TokenResponse.js +5 -0
  139. package/dist/models/TruncatedToken.d.ts +7 -0
  140. package/dist/models/TruncatedToken.js +5 -0
  141. package/dist/models/UpdateInput.d.ts +5 -0
  142. package/dist/models/UpdateInput.js +5 -0
  143. package/dist/models/Usage.d.ts +3 -0
  144. package/dist/models/Usage.js +5 -0
  145. package/dist/models/User.d.ts +14 -0
  146. package/dist/models/User.js +5 -0
  147. package/dist/models/UserWorkspaceList.d.ts +8 -0
  148. package/dist/models/UserWorkspaceList.js +5 -0
  149. package/dist/models/WorkerPing.d.ts +8 -0
  150. package/dist/models/WorkerPing.js +5 -0
  151. package/dist/models/Workspace.d.ts +6 -0
  152. package/dist/models/Workspace.js +5 -0
  153. package/dist/models/WorkspaceInvite.d.ts +6 -0
  154. package/dist/models/WorkspaceInvite.js +5 -0
  155. package/dist/services/AdminService.d.ts +39 -0
  156. package/dist/services/AdminService.js +56 -0
  157. package/dist/services/AppService.d.ts +194 -0
  158. package/dist/services/AppService.js +211 -0
  159. package/dist/services/AuditService.d.ts +53 -0
  160. package/dist/services/AuditService.js +47 -0
  161. package/dist/services/CaptureService.d.ts +30 -0
  162. package/dist/services/CaptureService.js +56 -0
  163. package/dist/services/DraftService.d.ts +16 -0
  164. package/dist/services/DraftService.js +24 -0
  165. package/dist/services/FavoriteService.d.ts +27 -0
  166. package/dist/services/FavoriteService.js +40 -0
  167. package/dist/services/FlowService.d.ts +186 -0
  168. package/dist/services/FlowService.js +200 -0
  169. package/dist/services/FolderService.d.ts +128 -0
  170. package/dist/services/FolderService.js +155 -0
  171. package/dist/services/GranularAclService.d.ts +46 -0
  172. package/dist/services/GranularAclService.js +60 -0
  173. package/dist/services/GroupService.d.ts +110 -0
  174. package/dist/services/GroupService.js +140 -0
  175. package/dist/services/InputService.d.ts +78 -0
  176. package/dist/services/InputService.js +99 -0
  177. package/dist/services/JobService.d.ts +636 -0
  178. package/dist/services/JobService.js +564 -0
  179. package/dist/services/OauthService.d.ts +95 -0
  180. package/dist/services/OauthService.js +124 -0
  181. package/dist/services/ResourceService.d.ts +177 -0
  182. package/dist/services/ResourceService.js +244 -0
  183. package/dist/services/ScheduleService.d.ts +103 -0
  184. package/dist/services/ScheduleService.js +134 -0
  185. package/dist/services/ScriptService.d.ts +303 -0
  186. package/dist/services/ScriptService.js +339 -0
  187. package/dist/services/SettingsService.d.ts +15 -0
  188. package/dist/services/SettingsService.js +30 -0
  189. package/dist/services/UserService.d.ts +284 -0
  190. package/dist/services/UserService.js +376 -0
  191. package/dist/services/VariableService.d.ts +83 -0
  192. package/dist/services/VariableService.js +123 -0
  193. package/dist/services/WorkerService.d.ts +25 -0
  194. package/dist/services/WorkerService.js +34 -0
  195. package/dist/services/WorkspaceService.d.ts +227 -0
  196. package/dist/services/WorkspaceService.js +275 -0
  197. package/package.json +1 -1
  198. package/tsconfig.json +1 -1
@@ -0,0 +1,636 @@
1
+ import type { CompletedJob } from '../models/CompletedJob';
2
+ import type { FlowPreview } from '../models/FlowPreview';
3
+ import type { Job } from '../models/Job';
4
+ import type { Preview } from '../models/Preview';
5
+ import type { QueuedJob } from '../models/QueuedJob';
6
+ import type { ScriptArgs } from '../models/ScriptArgs';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ export declare class JobService {
9
+ /**
10
+ * run script by path
11
+ * @returns string job created
12
+ * @throws ApiError
13
+ */
14
+ static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, invisibleToOwner, }: {
15
+ workspace: string;
16
+ path: string;
17
+ /**
18
+ * script args
19
+ */
20
+ requestBody: ScriptArgs;
21
+ /**
22
+ * when to schedule this job (leave empty for immediate run)
23
+ */
24
+ scheduledFor?: string;
25
+ /**
26
+ * schedule the script to execute in the number of seconds starting now
27
+ */
28
+ scheduledInSecs?: number;
29
+ /**
30
+ * The parent job that is at the origin and responsible for the execution of this script if any
31
+ */
32
+ parentJob?: string;
33
+ /**
34
+ * make the run invisible to the the script owner (default false)
35
+ */
36
+ invisibleToOwner?: boolean;
37
+ }): CancelablePromise<string>;
38
+ /**
39
+ * run script by path
40
+ * @returns any job result
41
+ * @throws ApiError
42
+ */
43
+ static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, includeHeader, queueLimit, }: {
44
+ workspace: string;
45
+ path: string;
46
+ /**
47
+ * script args
48
+ */
49
+ requestBody: ScriptArgs;
50
+ /**
51
+ * The parent job that is at the origin and responsible for the execution of this script if any
52
+ */
53
+ parentJob?: string;
54
+ /**
55
+ * List of headers's keys (separated with ',') whove value are added to the args
56
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
57
+ *
58
+ */
59
+ includeHeader?: string;
60
+ /**
61
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
62
+ *
63
+ */
64
+ queueLimit?: string;
65
+ }): CancelablePromise<any>;
66
+ /**
67
+ * run script by path with get
68
+ * @returns any job result
69
+ * @throws ApiError
70
+ */
71
+ static runWaitResultScriptByPathGet({ workspace, path, parentJob, includeHeader, queueLimit, payload, }: {
72
+ workspace: string;
73
+ path: string;
74
+ /**
75
+ * The parent job that is at the origin and responsible for the execution of this script if any
76
+ */
77
+ parentJob?: string;
78
+ /**
79
+ * List of headers's keys (separated with ',') whove value are added to the args
80
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
81
+ *
82
+ */
83
+ includeHeader?: string;
84
+ /**
85
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
86
+ *
87
+ */
88
+ queueLimit?: string;
89
+ /**
90
+ * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
91
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
92
+ *
93
+ */
94
+ payload?: string;
95
+ }): CancelablePromise<any>;
96
+ /**
97
+ * run flow by path and wait until completion
98
+ * @returns any job result
99
+ * @throws ApiError
100
+ */
101
+ static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, }: {
102
+ workspace: string;
103
+ path: string;
104
+ /**
105
+ * script args
106
+ */
107
+ requestBody: ScriptArgs;
108
+ /**
109
+ * List of headers's keys (separated with ',') whove value are added to the args
110
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
111
+ *
112
+ */
113
+ includeHeader?: string;
114
+ /**
115
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
116
+ *
117
+ */
118
+ queueLimit?: string;
119
+ }): CancelablePromise<any>;
120
+ /**
121
+ * get job result by id
122
+ * @returns any job result
123
+ * @throws ApiError
124
+ */
125
+ static resultById({ workspace, flowJobId, nodeId, }: {
126
+ workspace: string;
127
+ flowJobId: string;
128
+ nodeId: string;
129
+ }): CancelablePromise<any>;
130
+ /**
131
+ * run flow by path
132
+ * @returns string job created
133
+ * @throws ApiError
134
+ */
135
+ static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }: {
136
+ workspace: string;
137
+ path: string;
138
+ /**
139
+ * flow args
140
+ */
141
+ requestBody: ScriptArgs;
142
+ /**
143
+ * when to schedule this job (leave empty for immediate run)
144
+ */
145
+ scheduledFor?: string;
146
+ /**
147
+ * schedule the script to execute in the number of seconds starting now
148
+ */
149
+ scheduledInSecs?: number;
150
+ /**
151
+ * The parent job that is at the origin and responsible for the execution of this script if any
152
+ */
153
+ parentJob?: string;
154
+ /**
155
+ * List of headers's keys (separated with ',') whove value are added to the args
156
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
157
+ *
158
+ */
159
+ includeHeader?: string;
160
+ /**
161
+ * make the run invisible to the the flow owner (default false)
162
+ */
163
+ invisibleToOwner?: boolean;
164
+ }): CancelablePromise<string>;
165
+ /**
166
+ * run script by hash
167
+ * @returns string job created
168
+ * @throws ApiError
169
+ */
170
+ static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, invisibleToOwner, }: {
171
+ workspace: string;
172
+ hash: string;
173
+ /**
174
+ * Partially filled args
175
+ */
176
+ requestBody: any;
177
+ /**
178
+ * when to schedule this job (leave empty for immediate run)
179
+ */
180
+ scheduledFor?: string;
181
+ /**
182
+ * schedule the script to execute in the number of seconds starting now
183
+ */
184
+ scheduledInSecs?: number;
185
+ /**
186
+ * The parent job that is at the origin and responsible for the execution of this script if any
187
+ */
188
+ parentJob?: string;
189
+ /**
190
+ * List of headers's keys (separated with ',') whove value are added to the args
191
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
192
+ *
193
+ */
194
+ includeHeader?: string;
195
+ /**
196
+ * make the run invisible to the the script owner (default false)
197
+ */
198
+ invisibleToOwner?: boolean;
199
+ }): CancelablePromise<string>;
200
+ /**
201
+ * run script preview
202
+ * @returns string job created
203
+ * @throws ApiError
204
+ */
205
+ static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }: {
206
+ workspace: string;
207
+ /**
208
+ * preview
209
+ */
210
+ requestBody: Preview;
211
+ /**
212
+ * List of headers's keys (separated with ',') whove value are added to the args
213
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
214
+ *
215
+ */
216
+ includeHeader?: string;
217
+ /**
218
+ * make the run invisible to the the script owner (default false)
219
+ */
220
+ invisibleToOwner?: boolean;
221
+ }): CancelablePromise<string>;
222
+ /**
223
+ * run flow preview
224
+ * @returns string job created
225
+ * @throws ApiError
226
+ */
227
+ static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, }: {
228
+ workspace: string;
229
+ /**
230
+ * preview
231
+ */
232
+ requestBody: FlowPreview;
233
+ /**
234
+ * List of headers's keys (separated with ',') whove value are added to the args
235
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
236
+ *
237
+ */
238
+ includeHeader?: string;
239
+ /**
240
+ * make the run invisible to the the script owner (default false)
241
+ */
242
+ invisibleToOwner?: boolean;
243
+ }): CancelablePromise<string>;
244
+ /**
245
+ * list all available queued jobs
246
+ * @returns QueuedJob All available queued jobs
247
+ * @throws ApiError
248
+ */
249
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }: {
250
+ workspace: string;
251
+ /**
252
+ * order by desc order (default true)
253
+ */
254
+ orderDesc?: boolean;
255
+ /**
256
+ * mask to filter exact matching user creator
257
+ */
258
+ createdBy?: string;
259
+ /**
260
+ * The parent job that is at the origin and responsible for the execution of this script if any
261
+ */
262
+ parentJob?: string;
263
+ /**
264
+ * mask to filter exact matching path
265
+ */
266
+ scriptPathExact?: string;
267
+ /**
268
+ * mask to filter matching starting path
269
+ */
270
+ scriptPathStart?: string;
271
+ /**
272
+ * mask to filter exact matching path
273
+ */
274
+ scriptHash?: string;
275
+ /**
276
+ * filter on created before (inclusive) timestamp
277
+ */
278
+ startedBefore?: string;
279
+ /**
280
+ * filter on created after (exclusive) timestamp
281
+ */
282
+ startedAfter?: string;
283
+ /**
284
+ * filter on successful jobs
285
+ */
286
+ success?: boolean;
287
+ /**
288
+ * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
289
+ */
290
+ jobKinds?: string;
291
+ /**
292
+ * filter on suspended jobs
293
+ */
294
+ suspended?: boolean;
295
+ /**
296
+ * filter on running jobs
297
+ */
298
+ running?: boolean;
299
+ /**
300
+ * filter on jobs containing those args as a json subset (@> in postgres)
301
+ */
302
+ args?: string;
303
+ /**
304
+ * filter on jobs containing those result as a json subset (@> in postgres)
305
+ */
306
+ result?: string;
307
+ /**
308
+ * filter on jobs with a given tag/worker group
309
+ */
310
+ tag?: string;
311
+ }): CancelablePromise<Array<QueuedJob>>;
312
+ /**
313
+ * list all available completed jobs
314
+ * @returns CompletedJob All available completed jobs
315
+ * @throws ApiError
316
+ */
317
+ static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }: {
318
+ workspace: string;
319
+ /**
320
+ * order by desc order (default true)
321
+ */
322
+ orderDesc?: boolean;
323
+ /**
324
+ * mask to filter exact matching user creator
325
+ */
326
+ createdBy?: string;
327
+ /**
328
+ * The parent job that is at the origin and responsible for the execution of this script if any
329
+ */
330
+ parentJob?: string;
331
+ /**
332
+ * mask to filter exact matching path
333
+ */
334
+ scriptPathExact?: string;
335
+ /**
336
+ * mask to filter matching starting path
337
+ */
338
+ scriptPathStart?: string;
339
+ /**
340
+ * mask to filter exact matching path
341
+ */
342
+ scriptHash?: string;
343
+ /**
344
+ * filter on created before (inclusive) timestamp
345
+ */
346
+ startedBefore?: string;
347
+ /**
348
+ * filter on created after (exclusive) timestamp
349
+ */
350
+ startedAfter?: string;
351
+ /**
352
+ * filter on successful jobs
353
+ */
354
+ success?: boolean;
355
+ /**
356
+ * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
357
+ */
358
+ jobKinds?: string;
359
+ /**
360
+ * filter on jobs containing those args as a json subset (@> in postgres)
361
+ */
362
+ args?: string;
363
+ /**
364
+ * filter on jobs containing those result as a json subset (@> in postgres)
365
+ */
366
+ result?: string;
367
+ /**
368
+ * filter on jobs with a given tag/worker group
369
+ */
370
+ tag?: string;
371
+ /**
372
+ * is the job skipped
373
+ */
374
+ isSkipped?: boolean;
375
+ /**
376
+ * is the job a flow step
377
+ */
378
+ isFlowStep?: boolean;
379
+ }): CancelablePromise<Array<CompletedJob>>;
380
+ /**
381
+ * list all available jobs
382
+ * @returns Job All jobs
383
+ * @throws ApiError
384
+ */
385
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
386
+ workspace: string;
387
+ /**
388
+ * mask to filter exact matching user creator
389
+ */
390
+ createdBy?: string;
391
+ /**
392
+ * The parent job that is at the origin and responsible for the execution of this script if any
393
+ */
394
+ parentJob?: string;
395
+ /**
396
+ * mask to filter exact matching path
397
+ */
398
+ scriptPathExact?: string;
399
+ /**
400
+ * mask to filter matching starting path
401
+ */
402
+ scriptPathStart?: string;
403
+ /**
404
+ * mask to filter exact matching path
405
+ */
406
+ scriptHash?: string;
407
+ /**
408
+ * filter on created before (inclusive) timestamp
409
+ */
410
+ startedBefore?: string;
411
+ /**
412
+ * filter on created after (exclusive) timestamp
413
+ */
414
+ startedAfter?: string;
415
+ /**
416
+ * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
417
+ */
418
+ jobKinds?: string;
419
+ /**
420
+ * filter on jobs containing those args as a json subset (@> in postgres)
421
+ */
422
+ args?: string;
423
+ /**
424
+ * filter on jobs with a given tag/worker group
425
+ */
426
+ tag?: string;
427
+ /**
428
+ * filter on jobs containing those result as a json subset (@> in postgres)
429
+ */
430
+ result?: string;
431
+ /**
432
+ * is the job skipped
433
+ */
434
+ isSkipped?: boolean;
435
+ /**
436
+ * is the job a flow step
437
+ */
438
+ isFlowStep?: boolean;
439
+ /**
440
+ * filter on successful jobs
441
+ */
442
+ success?: boolean;
443
+ }): CancelablePromise<Array<Job>>;
444
+ /**
445
+ * get job
446
+ * @returns Job job details
447
+ * @throws ApiError
448
+ */
449
+ static getJob({ workspace, id, }: {
450
+ workspace: string;
451
+ id: string;
452
+ }): CancelablePromise<Job>;
453
+ /**
454
+ * get job updates
455
+ * @returns any job details
456
+ * @throws ApiError
457
+ */
458
+ static getJobUpdates({ workspace, id, running, logOffset, }: {
459
+ workspace: string;
460
+ id: string;
461
+ running?: boolean;
462
+ logOffset?: number;
463
+ }): CancelablePromise<{
464
+ running?: boolean;
465
+ completed?: boolean;
466
+ new_logs?: string;
467
+ mem_peak?: number;
468
+ }>;
469
+ /**
470
+ * get completed job
471
+ * @returns CompletedJob job details
472
+ * @throws ApiError
473
+ */
474
+ static getCompletedJob({ workspace, id, }: {
475
+ workspace: string;
476
+ id: string;
477
+ }): CancelablePromise<CompletedJob>;
478
+ /**
479
+ * get completed job result
480
+ * @returns any result
481
+ * @throws ApiError
482
+ */
483
+ static getCompletedJobResult({ workspace, id, }: {
484
+ workspace: string;
485
+ id: string;
486
+ }): CancelablePromise<any>;
487
+ /**
488
+ * delete completed job (erase content but keep run id)
489
+ * @returns CompletedJob job details
490
+ * @throws ApiError
491
+ */
492
+ static deleteCompletedJob({ workspace, id, }: {
493
+ workspace: string;
494
+ id: string;
495
+ }): CancelablePromise<CompletedJob>;
496
+ /**
497
+ * cancel queued job
498
+ * @returns string job canceled
499
+ * @throws ApiError
500
+ */
501
+ static cancelQueuedJob({ workspace, id, requestBody, }: {
502
+ workspace: string;
503
+ id: string;
504
+ /**
505
+ * reason
506
+ */
507
+ requestBody: {
508
+ reason?: string;
509
+ };
510
+ }): CancelablePromise<string>;
511
+ /**
512
+ * force cancel queued job
513
+ * @returns string job canceled
514
+ * @throws ApiError
515
+ */
516
+ static forceCancelQueuedJob({ workspace, id, requestBody, }: {
517
+ workspace: string;
518
+ id: string;
519
+ /**
520
+ * reason
521
+ */
522
+ requestBody: {
523
+ reason?: string;
524
+ };
525
+ }): CancelablePromise<string>;
526
+ /**
527
+ * create an HMac signature given a job id and a resume id
528
+ * @returns string job signature
529
+ * @throws ApiError
530
+ */
531
+ static createJobSignature({ workspace, id, resumeId, approver, }: {
532
+ workspace: string;
533
+ id: string;
534
+ resumeId: number;
535
+ approver?: string;
536
+ }): CancelablePromise<string>;
537
+ /**
538
+ * get resume urls given a job_id, resume_id and a nonce to resume a flow
539
+ * @returns any url endpoints
540
+ * @throws ApiError
541
+ */
542
+ static getResumeUrls({ workspace, id, resumeId, approver, }: {
543
+ workspace: string;
544
+ id: string;
545
+ resumeId: number;
546
+ approver?: string;
547
+ }): CancelablePromise<{
548
+ approvalPage: string;
549
+ resume: string;
550
+ cancel: string;
551
+ }>;
552
+ /**
553
+ * resume a job for a suspended flow
554
+ * @returns string job resumed
555
+ * @throws ApiError
556
+ */
557
+ static resumeSuspendedJobGet({ workspace, id, resumeId, signature, payload, approver, }: {
558
+ workspace: string;
559
+ id: string;
560
+ resumeId: number;
561
+ signature: string;
562
+ /**
563
+ * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
564
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
565
+ *
566
+ */
567
+ payload?: string;
568
+ approver?: string;
569
+ }): CancelablePromise<string>;
570
+ /**
571
+ * resume a job for a suspended flow
572
+ * @returns string job resumed
573
+ * @throws ApiError
574
+ */
575
+ static resumeSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }: {
576
+ workspace: string;
577
+ id: string;
578
+ resumeId: number;
579
+ signature: string;
580
+ requestBody: any;
581
+ approver?: string;
582
+ }): CancelablePromise<string>;
583
+ /**
584
+ * resume a job for a suspended flow as an owner
585
+ * @returns string job resumed
586
+ * @throws ApiError
587
+ */
588
+ static resumeSuspendedFlowAsOwner({ workspace, id, requestBody, }: {
589
+ workspace: string;
590
+ id: string;
591
+ requestBody: any;
592
+ }): CancelablePromise<string>;
593
+ /**
594
+ * cancel a job for a suspended flow
595
+ * @returns string job resumed
596
+ * @throws ApiError
597
+ */
598
+ static cancelSuspendedJobGet({ workspace, id, resumeId, signature, approver, }: {
599
+ workspace: string;
600
+ id: string;
601
+ resumeId: number;
602
+ signature: string;
603
+ approver?: string;
604
+ }): CancelablePromise<string>;
605
+ /**
606
+ * cancel a job for a suspended flow
607
+ * @returns string job resumed
608
+ * @throws ApiError
609
+ */
610
+ static cancelSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }: {
611
+ workspace: string;
612
+ id: string;
613
+ resumeId: number;
614
+ signature: string;
615
+ requestBody: any;
616
+ approver?: string;
617
+ }): CancelablePromise<string>;
618
+ /**
619
+ * get parent flow job of suspended job
620
+ * @returns any parent flow details
621
+ * @throws ApiError
622
+ */
623
+ static getSuspendedJobFlow({ workspace, id, resumeId, signature, approver, }: {
624
+ workspace: string;
625
+ id: string;
626
+ resumeId: number;
627
+ signature: string;
628
+ approver?: string;
629
+ }): CancelablePromise<{
630
+ job: Job;
631
+ approvers: Array<{
632
+ resume_id: number;
633
+ approver: string;
634
+ }>;
635
+ }>;
636
+ }