windmill-client 0.3.5 → 0.3.6

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 (151) hide show
  1. package/package.json +9 -2
  2. package/build.sh +0 -8
  3. package/client.ts +0 -364
  4. package/publish.sh +0 -5
  5. package/src/client.ts +0 -364
  6. package/src/core/ApiError.ts +0 -25
  7. package/src/core/ApiRequestOptions.ts +0 -17
  8. package/src/core/ApiResult.ts +0 -11
  9. package/src/core/CancelablePromise.ts +0 -131
  10. package/src/core/OpenAPI.ts +0 -32
  11. package/src/core/request.ts +0 -322
  12. package/src/index.ts +0 -148
  13. package/src/models/AccountId.ts +0 -6
  14. package/src/models/ActionKind.ts +0 -14
  15. package/src/models/After.ts +0 -9
  16. package/src/models/AppWithLastVersion.ts +0 -32
  17. package/src/models/AppWithLastVersionWDraft.ts +0 -12
  18. package/src/models/ArgsFilter.ts +0 -9
  19. package/src/models/AuditLog.ts +0 -43
  20. package/src/models/Before.ts +0 -9
  21. package/src/models/BranchAll.ts +0 -17
  22. package/src/models/BranchOne.ts +0 -17
  23. package/src/models/ClientName.ts +0 -6
  24. package/src/models/CompletedJob.ts +0 -73
  25. package/src/models/ContextualVariable.ts +0 -11
  26. package/src/models/CreateInput.ts +0 -10
  27. package/src/models/CreateResource.ts +0 -12
  28. package/src/models/CreateVariable.ts +0 -14
  29. package/src/models/CreateWorkspace.ts +0 -11
  30. package/src/models/CreatedBy.ts +0 -9
  31. package/src/models/EditResource.ts +0 -11
  32. package/src/models/EditResourceType.ts +0 -10
  33. package/src/models/EditSchedule.ts +0 -14
  34. package/src/models/EditVariable.ts +0 -12
  35. package/src/models/EditWorkspaceUser.ts +0 -11
  36. package/src/models/Flow.ts +0 -10
  37. package/src/models/FlowMetadata.ts +0 -17
  38. package/src/models/FlowModule.ts +0 -33
  39. package/src/models/FlowModuleValue.ts +0 -17
  40. package/src/models/FlowPreview.ts +0 -14
  41. package/src/models/FlowStatus.ts +0 -19
  42. package/src/models/FlowStatusModule.ts +0 -44
  43. package/src/models/FlowValue.ts +0 -13
  44. package/src/models/Folder.ts +0 -11
  45. package/src/models/ForloopFlow.ts +0 -16
  46. package/src/models/GlobalUserInfo.ts +0 -24
  47. package/src/models/Graphql.ts +0 -9
  48. package/src/models/Group.ts +0 -12
  49. package/src/models/Http.ts +0 -9
  50. package/src/models/Identity.ts +0 -10
  51. package/src/models/IncludeHeader.ts +0 -11
  52. package/src/models/Input.ts +0 -14
  53. package/src/models/InputId.ts +0 -6
  54. package/src/models/InputTransform.ts +0 -10
  55. package/src/models/JavascriptTransform.ts +0 -10
  56. package/src/models/Job.ts +0 -22
  57. package/src/models/JobId.ts +0 -6
  58. package/src/models/JobKinds.ts +0 -9
  59. package/src/models/ListableApp.ts +0 -28
  60. package/src/models/ListableRawApp.ts +0 -15
  61. package/src/models/ListableResource.ts +0 -20
  62. package/src/models/ListableVariable.ts +0 -20
  63. package/src/models/Login.ts +0 -10
  64. package/src/models/MainArgSignature.ts +0 -43
  65. package/src/models/Name.ts +0 -6
  66. package/src/models/NewJobId.ts +0 -9
  67. package/src/models/NewSchedule.ts +0 -18
  68. package/src/models/NewScript.ts +0 -44
  69. package/src/models/NewScriptWithDraft.ts +0 -12
  70. package/src/models/NewToken.ts +0 -11
  71. package/src/models/NewTokenImpersonate.ts +0 -11
  72. package/src/models/NewUser.ts +0 -11
  73. package/src/models/OpenFlow.ts +0 -14
  74. package/src/models/OpenFlowWPath.ts +0 -11
  75. package/src/models/Operation.ts +0 -9
  76. package/src/models/OrderDesc.ts +0 -9
  77. package/src/models/Page.ts +0 -9
  78. package/src/models/ParentJob.ts +0 -9
  79. package/src/models/Path.ts +0 -6
  80. package/src/models/PathFlow.ts +0 -13
  81. package/src/models/PathId.ts +0 -6
  82. package/src/models/PathScript.ts +0 -14
  83. package/src/models/Payload.ts +0 -11
  84. package/src/models/PerPage.ts +0 -9
  85. package/src/models/Policy.ts +0 -23
  86. package/src/models/Preview.ts +0 -37
  87. package/src/models/QueueLimit.ts +0 -10
  88. package/src/models/QueuedJob.ts +0 -71
  89. package/src/models/RawScript.ts +0 -31
  90. package/src/models/Resource.ts +0 -15
  91. package/src/models/ResourceName.ts +0 -9
  92. package/src/models/ResourceType.ts +0 -12
  93. package/src/models/ResultFilter.ts +0 -9
  94. package/src/models/Retry.ts +0 -17
  95. package/src/models/RunnableId.ts +0 -6
  96. package/src/models/RunnableType.ts +0 -10
  97. package/src/models/RunnableTypeQuery.ts +0 -8
  98. package/src/models/Running.ts +0 -9
  99. package/src/models/Schedule.ts +0 -23
  100. package/src/models/SchedulePath.ts +0 -9
  101. package/src/models/ScheduleWJobs.ts +0 -15
  102. package/src/models/Script.ts +0 -58
  103. package/src/models/ScriptArgs.ts +0 -6
  104. package/src/models/ScriptExactHash.ts +0 -9
  105. package/src/models/ScriptExactPath.ts +0 -9
  106. package/src/models/ScriptHash.ts +0 -6
  107. package/src/models/ScriptPath.ts +0 -6
  108. package/src/models/ScriptStartPath.ts +0 -9
  109. package/src/models/SlackToken.ts +0 -14
  110. package/src/models/StartedAfter.ts +0 -9
  111. package/src/models/StartedBefore.ts +0 -9
  112. package/src/models/StaticTransform.ts +0 -10
  113. package/src/models/Success.ts +0 -9
  114. package/src/models/Suspended.ts +0 -9
  115. package/src/models/Tag.ts +0 -9
  116. package/src/models/Token.ts +0 -6
  117. package/src/models/TokenResponse.ts +0 -12
  118. package/src/models/TruncatedToken.ts +0 -14
  119. package/src/models/UpdateInput.ts +0 -11
  120. package/src/models/Usage.ts +0 -9
  121. package/src/models/User.ts +0 -21
  122. package/src/models/UserWorkspaceList.ts +0 -14
  123. package/src/models/Username.ts +0 -9
  124. package/src/models/VersionId.ts +0 -6
  125. package/src/models/WorkerPing.ts +0 -14
  126. package/src/models/Workspace.ts +0 -12
  127. package/src/models/WorkspaceId.ts +0 -6
  128. package/src/models/WorkspaceInvite.ts +0 -12
  129. package/src/services/AdminService.ts +0 -91
  130. package/src/services/AppService.ts +0 -385
  131. package/src/services/AuditService.ts +0 -104
  132. package/src/services/CaptureService.ts +0 -80
  133. package/src/services/DraftService.ts +0 -63
  134. package/src/services/FavoriteService.ts +0 -63
  135. package/src/services/FlowService.ts +0 -369
  136. package/src/services/FolderService.ts +0 -270
  137. package/src/services/GranularAclService.ts +0 -105
  138. package/src/services/GroupService.ts +0 -239
  139. package/src/services/InputService.ts +0 -176
  140. package/src/services/JobService.ts +0 -1471
  141. package/src/services/OauthService.ts +0 -198
  142. package/src/services/RawAppService.ts +0 -210
  143. package/src/services/ResourceService.ts +0 -401
  144. package/src/services/ScheduleService.ts +0 -258
  145. package/src/services/ScriptService.ts +0 -517
  146. package/src/services/SettingsService.ts +0 -59
  147. package/src/services/UserService.ts +0 -614
  148. package/src/services/VariableService.ts +0 -221
  149. package/src/services/WorkerService.ts +0 -53
  150. package/src/services/WorkspaceService.ts +0 -494
  151. package/tsconfig.json +0 -110
@@ -1,1471 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { CompletedJob } from '../models/CompletedJob';
6
- import type { FlowPreview } from '../models/FlowPreview';
7
- import type { Job } from '../models/Job';
8
- import type { Preview } from '../models/Preview';
9
- import type { QueuedJob } from '../models/QueuedJob';
10
- import type { ScriptArgs } from '../models/ScriptArgs';
11
-
12
- import type { CancelablePromise } from '../core/CancelablePromise';
13
- import { OpenAPI } from '../core/OpenAPI';
14
- import { request as __request } from '../core/request';
15
-
16
- export class JobService {
17
-
18
- /**
19
- * run script by path
20
- * @returns string job created
21
- * @throws ApiError
22
- */
23
- public static runScriptByPath({
24
- workspace,
25
- path,
26
- requestBody,
27
- scheduledFor,
28
- scheduledInSecs,
29
- parentJob,
30
- jobId,
31
- invisibleToOwner,
32
- }: {
33
- workspace: string,
34
- path: string,
35
- /**
36
- * script args
37
- */
38
- requestBody: ScriptArgs,
39
- /**
40
- * when to schedule this job (leave empty for immediate run)
41
- */
42
- scheduledFor?: string,
43
- /**
44
- * schedule the script to execute in the number of seconds starting now
45
- */
46
- scheduledInSecs?: number,
47
- /**
48
- * The parent job that is at the origin and responsible for the execution of this script if any
49
- */
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,
55
- /**
56
- * make the run invisible to the the script owner (default false)
57
- */
58
- invisibleToOwner?: boolean,
59
- }): CancelablePromise<string> {
60
- return __request(OpenAPI, {
61
- method: 'POST',
62
- url: '/w/{workspace}/jobs/run/p/{path}',
63
- path: {
64
- 'workspace': workspace,
65
- 'path': path,
66
- },
67
- query: {
68
- 'scheduled_for': scheduledFor,
69
- 'scheduled_in_secs': scheduledInSecs,
70
- 'parent_job': parentJob,
71
- 'job_id': jobId,
72
- 'invisible_to_owner': invisibleToOwner,
73
- },
74
- body: requestBody,
75
- mediaType: 'application/json',
76
- });
77
- }
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
-
137
- /**
138
- * run script by path
139
- * @returns any job result
140
- * @throws ApiError
141
- */
142
- public static runWaitResultScriptByPath({
143
- workspace,
144
- path,
145
- requestBody,
146
- parentJob,
147
- jobId,
148
- includeHeader,
149
- queueLimit,
150
- }: {
151
- workspace: string,
152
- path: string,
153
- /**
154
- * script args
155
- */
156
- requestBody: ScriptArgs,
157
- /**
158
- * The parent job that is at the origin and responsible for the execution of this script if any
159
- */
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,
165
- /**
166
- * List of headers's keys (separated with ',') whove value are added to the args
167
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
168
- *
169
- */
170
- includeHeader?: string,
171
- /**
172
- * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
173
- *
174
- */
175
- queueLimit?: string,
176
- }): CancelablePromise<any> {
177
- return __request(OpenAPI, {
178
- method: 'POST',
179
- url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
180
- path: {
181
- 'workspace': workspace,
182
- 'path': path,
183
- },
184
- query: {
185
- 'parent_job': parentJob,
186
- 'job_id': jobId,
187
- 'include_header': includeHeader,
188
- 'queue_limit': queueLimit,
189
- },
190
- body: requestBody,
191
- mediaType: 'application/json',
192
- });
193
- }
194
-
195
- /**
196
- * run script by path with get
197
- * @returns any job result
198
- * @throws ApiError
199
- */
200
- public static runWaitResultScriptByPathGet({
201
- workspace,
202
- path,
203
- parentJob,
204
- jobId,
205
- includeHeader,
206
- queueLimit,
207
- payload,
208
- }: {
209
- workspace: string,
210
- path: string,
211
- /**
212
- * The parent job that is at the origin and responsible for the execution of this script if any
213
- */
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,
219
- /**
220
- * List of headers's keys (separated with ',') whove value are added to the args
221
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
222
- *
223
- */
224
- includeHeader?: string,
225
- /**
226
- * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
227
- *
228
- */
229
- queueLimit?: string,
230
- /**
231
- * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
232
- * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
233
- *
234
- */
235
- payload?: string,
236
- }): CancelablePromise<any> {
237
- return __request(OpenAPI, {
238
- method: 'GET',
239
- url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
240
- path: {
241
- 'workspace': workspace,
242
- 'path': path,
243
- },
244
- query: {
245
- 'parent_job': parentJob,
246
- 'job_id': jobId,
247
- 'include_header': includeHeader,
248
- 'queue_limit': queueLimit,
249
- 'payload': payload,
250
- },
251
- });
252
- }
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
-
306
- /**
307
- * run flow by path and wait until completion
308
- * @returns any job result
309
- * @throws ApiError
310
- */
311
- public static runWaitResultFlowByPath({
312
- workspace,
313
- path,
314
- requestBody,
315
- includeHeader,
316
- queueLimit,
317
- jobId,
318
- }: {
319
- workspace: string,
320
- path: string,
321
- /**
322
- * script args
323
- */
324
- requestBody: ScriptArgs,
325
- /**
326
- * List of headers's keys (separated with ',') whove value are added to the args
327
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
328
- *
329
- */
330
- includeHeader?: string,
331
- /**
332
- * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
333
- *
334
- */
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,
340
- }): CancelablePromise<any> {
341
- return __request(OpenAPI, {
342
- method: 'POST',
343
- url: '/w/{workspace}/jobs/run_wait_result/f/{path}',
344
- path: {
345
- 'workspace': workspace,
346
- 'path': path,
347
- },
348
- query: {
349
- 'include_header': includeHeader,
350
- 'queue_limit': queueLimit,
351
- 'job_id': jobId,
352
- },
353
- body: requestBody,
354
- mediaType: 'application/json',
355
- });
356
- }
357
-
358
- /**
359
- * get job result by id
360
- * @returns any job result
361
- * @throws ApiError
362
- */
363
- public static resultById({
364
- workspace,
365
- flowJobId,
366
- nodeId,
367
- }: {
368
- workspace: string,
369
- flowJobId: string,
370
- nodeId: string,
371
- }): CancelablePromise<any> {
372
- return __request(OpenAPI, {
373
- method: 'GET',
374
- url: '/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}',
375
- path: {
376
- 'workspace': workspace,
377
- 'flow_job_id': flowJobId,
378
- 'node_id': nodeId,
379
- },
380
- });
381
- }
382
-
383
- /**
384
- * run flow by path
385
- * @returns string job created
386
- * @throws ApiError
387
- */
388
- public static runFlowByPath({
389
- workspace,
390
- path,
391
- requestBody,
392
- scheduledFor,
393
- scheduledInSecs,
394
- parentJob,
395
- jobId,
396
- includeHeader,
397
- invisibleToOwner,
398
- }: {
399
- workspace: string,
400
- path: string,
401
- /**
402
- * flow args
403
- */
404
- requestBody: ScriptArgs,
405
- /**
406
- * when to schedule this job (leave empty for immediate run)
407
- */
408
- scheduledFor?: string,
409
- /**
410
- * schedule the script to execute in the number of seconds starting now
411
- */
412
- scheduledInSecs?: number,
413
- /**
414
- * The parent job that is at the origin and responsible for the execution of this script if any
415
- */
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,
421
- /**
422
- * List of headers's keys (separated with ',') whove value are added to the args
423
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
424
- *
425
- */
426
- includeHeader?: string,
427
- /**
428
- * make the run invisible to the the flow owner (default false)
429
- */
430
- invisibleToOwner?: boolean,
431
- }): CancelablePromise<string> {
432
- return __request(OpenAPI, {
433
- method: 'POST',
434
- url: '/w/{workspace}/jobs/run/f/{path}',
435
- path: {
436
- 'workspace': workspace,
437
- 'path': path,
438
- },
439
- query: {
440
- 'scheduled_for': scheduledFor,
441
- 'scheduled_in_secs': scheduledInSecs,
442
- 'parent_job': parentJob,
443
- 'job_id': jobId,
444
- 'include_header': includeHeader,
445
- 'invisible_to_owner': invisibleToOwner,
446
- },
447
- body: requestBody,
448
- mediaType: 'application/json',
449
- });
450
- }
451
-
452
- /**
453
- * run script by hash
454
- * @returns string job created
455
- * @throws ApiError
456
- */
457
- public static runScriptByHash({
458
- workspace,
459
- hash,
460
- requestBody,
461
- scheduledFor,
462
- scheduledInSecs,
463
- parentJob,
464
- jobId,
465
- includeHeader,
466
- invisibleToOwner,
467
- }: {
468
- workspace: string,
469
- hash: string,
470
- /**
471
- * Partially filled args
472
- */
473
- requestBody: Record<string, any>,
474
- /**
475
- * when to schedule this job (leave empty for immediate run)
476
- */
477
- scheduledFor?: string,
478
- /**
479
- * schedule the script to execute in the number of seconds starting now
480
- */
481
- scheduledInSecs?: number,
482
- /**
483
- * The parent job that is at the origin and responsible for the execution of this script if any
484
- */
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,
490
- /**
491
- * List of headers's keys (separated with ',') whove value are added to the args
492
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
493
- *
494
- */
495
- includeHeader?: string,
496
- /**
497
- * make the run invisible to the the script owner (default false)
498
- */
499
- invisibleToOwner?: boolean,
500
- }): CancelablePromise<string> {
501
- return __request(OpenAPI, {
502
- method: 'POST',
503
- url: '/w/{workspace}/jobs/run/h/{hash}',
504
- path: {
505
- 'workspace': workspace,
506
- 'hash': hash,
507
- },
508
- query: {
509
- 'scheduled_for': scheduledFor,
510
- 'scheduled_in_secs': scheduledInSecs,
511
- 'parent_job': parentJob,
512
- 'job_id': jobId,
513
- 'include_header': includeHeader,
514
- 'invisible_to_owner': invisibleToOwner,
515
- },
516
- body: requestBody,
517
- mediaType: 'application/json',
518
- });
519
- }
520
-
521
- /**
522
- * run script preview
523
- * @returns string job created
524
- * @throws ApiError
525
- */
526
- public static runScriptPreview({
527
- workspace,
528
- requestBody,
529
- includeHeader,
530
- invisibleToOwner,
531
- jobId,
532
- }: {
533
- workspace: string,
534
- /**
535
- * preview
536
- */
537
- requestBody: Preview,
538
- /**
539
- * List of headers's keys (separated with ',') whove value are added to the args
540
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
541
- *
542
- */
543
- includeHeader?: string,
544
- /**
545
- * make the run invisible to the the script owner (default false)
546
- */
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,
552
- }): CancelablePromise<string> {
553
- return __request(OpenAPI, {
554
- method: 'POST',
555
- url: '/w/{workspace}/jobs/run/preview',
556
- path: {
557
- 'workspace': workspace,
558
- },
559
- query: {
560
- 'include_header': includeHeader,
561
- 'invisible_to_owner': invisibleToOwner,
562
- 'job_id': jobId,
563
- },
564
- body: requestBody,
565
- mediaType: 'application/json',
566
- });
567
- }
568
-
569
- /**
570
- * run flow preview
571
- * @returns string job created
572
- * @throws ApiError
573
- */
574
- public static runFlowPreview({
575
- workspace,
576
- requestBody,
577
- includeHeader,
578
- invisibleToOwner,
579
- jobId,
580
- }: {
581
- workspace: string,
582
- /**
583
- * preview
584
- */
585
- requestBody: FlowPreview,
586
- /**
587
- * List of headers's keys (separated with ',') whove value are added to the args
588
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
589
- *
590
- */
591
- includeHeader?: string,
592
- /**
593
- * make the run invisible to the the script owner (default false)
594
- */
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,
600
- }): CancelablePromise<string> {
601
- return __request(OpenAPI, {
602
- method: 'POST',
603
- url: '/w/{workspace}/jobs/run/preview_flow',
604
- path: {
605
- 'workspace': workspace,
606
- },
607
- query: {
608
- 'include_header': includeHeader,
609
- 'invisible_to_owner': invisibleToOwner,
610
- 'job_id': jobId,
611
- },
612
- body: requestBody,
613
- mediaType: 'application/json',
614
- });
615
- }
616
-
617
- /**
618
- * list all available queued jobs
619
- * @returns QueuedJob All available queued jobs
620
- * @throws ApiError
621
- */
622
- public static listQueue({
623
- workspace,
624
- orderDesc,
625
- createdBy,
626
- parentJob,
627
- scriptPathExact,
628
- scriptPathStart,
629
- schedulePath,
630
- scriptHash,
631
- startedBefore,
632
- startedAfter,
633
- success,
634
- jobKinds,
635
- suspended,
636
- running,
637
- args,
638
- result,
639
- tag,
640
- }: {
641
- workspace: string,
642
- /**
643
- * order by desc order (default true)
644
- */
645
- orderDesc?: boolean,
646
- /**
647
- * mask to filter exact matching user creator
648
- */
649
- createdBy?: string,
650
- /**
651
- * The parent job that is at the origin and responsible for the execution of this script if any
652
- */
653
- parentJob?: string,
654
- /**
655
- * mask to filter exact matching path
656
- */
657
- scriptPathExact?: string,
658
- /**
659
- * mask to filter matching starting path
660
- */
661
- scriptPathStart?: string,
662
- /**
663
- * mask to filter by schedule path
664
- */
665
- schedulePath?: string,
666
- /**
667
- * mask to filter exact matching path
668
- */
669
- scriptHash?: string,
670
- /**
671
- * filter on created before (inclusive) timestamp
672
- */
673
- startedBefore?: string,
674
- /**
675
- * filter on created after (exclusive) timestamp
676
- */
677
- startedAfter?: string,
678
- /**
679
- * filter on successful jobs
680
- */
681
- success?: boolean,
682
- /**
683
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
684
- */
685
- jobKinds?: string,
686
- /**
687
- * filter on suspended jobs
688
- */
689
- suspended?: boolean,
690
- /**
691
- * filter on running jobs
692
- */
693
- running?: boolean,
694
- /**
695
- * filter on jobs containing those args as a json subset (@> in postgres)
696
- */
697
- args?: string,
698
- /**
699
- * filter on jobs containing those result as a json subset (@> in postgres)
700
- */
701
- result?: string,
702
- /**
703
- * filter on jobs with a given tag/worker group
704
- */
705
- tag?: string,
706
- }): CancelablePromise<Array<QueuedJob>> {
707
- return __request(OpenAPI, {
708
- method: 'GET',
709
- url: '/w/{workspace}/jobs/queue/list',
710
- path: {
711
- 'workspace': workspace,
712
- },
713
- query: {
714
- 'order_desc': orderDesc,
715
- 'created_by': createdBy,
716
- 'parent_job': parentJob,
717
- 'script_path_exact': scriptPathExact,
718
- 'script_path_start': scriptPathStart,
719
- 'schedule_path': schedulePath,
720
- 'script_hash': scriptHash,
721
- 'started_before': startedBefore,
722
- 'started_after': startedAfter,
723
- 'success': success,
724
- 'job_kinds': jobKinds,
725
- 'suspended': suspended,
726
- 'running': running,
727
- 'args': args,
728
- 'result': result,
729
- 'tag': tag,
730
- },
731
- });
732
- }
733
-
734
- /**
735
- * list all available completed jobs
736
- * @returns CompletedJob All available completed jobs
737
- * @throws ApiError
738
- */
739
- public static listCompletedJobs({
740
- workspace,
741
- orderDesc,
742
- createdBy,
743
- parentJob,
744
- scriptPathExact,
745
- scriptPathStart,
746
- schedulePath,
747
- scriptHash,
748
- startedBefore,
749
- startedAfter,
750
- success,
751
- jobKinds,
752
- args,
753
- result,
754
- tag,
755
- isSkipped,
756
- isFlowStep,
757
- }: {
758
- workspace: string,
759
- /**
760
- * order by desc order (default true)
761
- */
762
- orderDesc?: boolean,
763
- /**
764
- * mask to filter exact matching user creator
765
- */
766
- createdBy?: string,
767
- /**
768
- * The parent job that is at the origin and responsible for the execution of this script if any
769
- */
770
- parentJob?: string,
771
- /**
772
- * mask to filter exact matching path
773
- */
774
- scriptPathExact?: string,
775
- /**
776
- * mask to filter matching starting path
777
- */
778
- scriptPathStart?: string,
779
- /**
780
- * mask to filter by schedule path
781
- */
782
- schedulePath?: string,
783
- /**
784
- * mask to filter exact matching path
785
- */
786
- scriptHash?: string,
787
- /**
788
- * filter on created before (inclusive) timestamp
789
- */
790
- startedBefore?: string,
791
- /**
792
- * filter on created after (exclusive) timestamp
793
- */
794
- startedAfter?: string,
795
- /**
796
- * filter on successful jobs
797
- */
798
- success?: boolean,
799
- /**
800
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
801
- */
802
- jobKinds?: string,
803
- /**
804
- * filter on jobs containing those args as a json subset (@> in postgres)
805
- */
806
- args?: string,
807
- /**
808
- * filter on jobs containing those result as a json subset (@> in postgres)
809
- */
810
- result?: string,
811
- /**
812
- * filter on jobs with a given tag/worker group
813
- */
814
- tag?: string,
815
- /**
816
- * is the job skipped
817
- */
818
- isSkipped?: boolean,
819
- /**
820
- * is the job a flow step
821
- */
822
- isFlowStep?: boolean,
823
- }): CancelablePromise<Array<CompletedJob>> {
824
- return __request(OpenAPI, {
825
- method: 'GET',
826
- url: '/w/{workspace}/jobs/completed/list',
827
- path: {
828
- 'workspace': workspace,
829
- },
830
- query: {
831
- 'order_desc': orderDesc,
832
- 'created_by': createdBy,
833
- 'parent_job': parentJob,
834
- 'script_path_exact': scriptPathExact,
835
- 'script_path_start': scriptPathStart,
836
- 'schedule_path': schedulePath,
837
- 'script_hash': scriptHash,
838
- 'started_before': startedBefore,
839
- 'started_after': startedAfter,
840
- 'success': success,
841
- 'job_kinds': jobKinds,
842
- 'args': args,
843
- 'result': result,
844
- 'tag': tag,
845
- 'is_skipped': isSkipped,
846
- 'is_flow_step': isFlowStep,
847
- },
848
- });
849
- }
850
-
851
- /**
852
- * list all available jobs
853
- * @returns Job All jobs
854
- * @throws ApiError
855
- */
856
- public static listJobs({
857
- workspace,
858
- createdBy,
859
- parentJob,
860
- scriptPathExact,
861
- scriptPathStart,
862
- schedulePath,
863
- scriptHash,
864
- startedBefore,
865
- startedAfter,
866
- jobKinds,
867
- args,
868
- tag,
869
- result,
870
- isSkipped,
871
- isFlowStep,
872
- success,
873
- }: {
874
- workspace: string,
875
- /**
876
- * mask to filter exact matching user creator
877
- */
878
- createdBy?: string,
879
- /**
880
- * The parent job that is at the origin and responsible for the execution of this script if any
881
- */
882
- parentJob?: string,
883
- /**
884
- * mask to filter exact matching path
885
- */
886
- scriptPathExact?: string,
887
- /**
888
- * mask to filter matching starting path
889
- */
890
- scriptPathStart?: string,
891
- /**
892
- * mask to filter by schedule path
893
- */
894
- schedulePath?: string,
895
- /**
896
- * mask to filter exact matching path
897
- */
898
- scriptHash?: string,
899
- /**
900
- * filter on created before (inclusive) timestamp
901
- */
902
- startedBefore?: string,
903
- /**
904
- * filter on created after (exclusive) timestamp
905
- */
906
- startedAfter?: string,
907
- /**
908
- * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
909
- */
910
- jobKinds?: string,
911
- /**
912
- * filter on jobs containing those args as a json subset (@> in postgres)
913
- */
914
- args?: string,
915
- /**
916
- * filter on jobs with a given tag/worker group
917
- */
918
- tag?: string,
919
- /**
920
- * filter on jobs containing those result as a json subset (@> in postgres)
921
- */
922
- result?: string,
923
- /**
924
- * is the job skipped
925
- */
926
- isSkipped?: boolean,
927
- /**
928
- * is the job a flow step
929
- */
930
- isFlowStep?: boolean,
931
- /**
932
- * filter on successful jobs
933
- */
934
- success?: boolean,
935
- }): CancelablePromise<Array<Job>> {
936
- return __request(OpenAPI, {
937
- method: 'GET',
938
- url: '/w/{workspace}/jobs/list',
939
- path: {
940
- 'workspace': workspace,
941
- },
942
- query: {
943
- 'created_by': createdBy,
944
- 'parent_job': parentJob,
945
- 'script_path_exact': scriptPathExact,
946
- 'script_path_start': scriptPathStart,
947
- 'schedule_path': schedulePath,
948
- 'script_hash': scriptHash,
949
- 'started_before': startedBefore,
950
- 'started_after': startedAfter,
951
- 'job_kinds': jobKinds,
952
- 'args': args,
953
- 'tag': tag,
954
- 'result': result,
955
- 'is_skipped': isSkipped,
956
- 'is_flow_step': isFlowStep,
957
- 'success': success,
958
- },
959
- });
960
- }
961
-
962
- /**
963
- * get job
964
- * @returns Job job details
965
- * @throws ApiError
966
- */
967
- public static getJob({
968
- workspace,
969
- id,
970
- }: {
971
- workspace: string,
972
- id: string,
973
- }): CancelablePromise<Job> {
974
- return __request(OpenAPI, {
975
- method: 'GET',
976
- url: '/w/{workspace}/jobs_u/get/{id}',
977
- path: {
978
- 'workspace': workspace,
979
- 'id': id,
980
- },
981
- });
982
- }
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
-
1006
- /**
1007
- * get job updates
1008
- * @returns any job details
1009
- * @throws ApiError
1010
- */
1011
- public static getJobUpdates({
1012
- workspace,
1013
- id,
1014
- running,
1015
- logOffset,
1016
- }: {
1017
- workspace: string,
1018
- id: string,
1019
- running?: boolean,
1020
- logOffset?: number,
1021
- }): CancelablePromise<{
1022
- running?: boolean;
1023
- completed?: boolean;
1024
- new_logs?: string;
1025
- mem_peak?: number;
1026
- }> {
1027
- return __request(OpenAPI, {
1028
- method: 'GET',
1029
- url: '/w/{workspace}/jobs_u/getupdate/{id}',
1030
- path: {
1031
- 'workspace': workspace,
1032
- 'id': id,
1033
- },
1034
- query: {
1035
- 'running': running,
1036
- 'log_offset': logOffset,
1037
- },
1038
- });
1039
- }
1040
-
1041
- /**
1042
- * get completed job
1043
- * @returns CompletedJob job details
1044
- * @throws ApiError
1045
- */
1046
- public static getCompletedJob({
1047
- workspace,
1048
- id,
1049
- }: {
1050
- workspace: string,
1051
- id: string,
1052
- }): CancelablePromise<CompletedJob> {
1053
- return __request(OpenAPI, {
1054
- method: 'GET',
1055
- url: '/w/{workspace}/jobs_u/completed/get/{id}',
1056
- path: {
1057
- 'workspace': workspace,
1058
- 'id': id,
1059
- },
1060
- });
1061
- }
1062
-
1063
- /**
1064
- * get completed job result
1065
- * @returns any result
1066
- * @throws ApiError
1067
- */
1068
- public static getCompletedJobResult({
1069
- workspace,
1070
- id,
1071
- }: {
1072
- workspace: string,
1073
- id: string,
1074
- }): CancelablePromise<any> {
1075
- return __request(OpenAPI, {
1076
- method: 'GET',
1077
- url: '/w/{workspace}/jobs_u/completed/get_result/{id}',
1078
- path: {
1079
- 'workspace': workspace,
1080
- 'id': id,
1081
- },
1082
- });
1083
- }
1084
-
1085
- /**
1086
- * get completed job result if job is completed
1087
- * @returns any result
1088
- * @throws ApiError
1089
- */
1090
- public static getCompletedJobResultMaybe({
1091
- workspace,
1092
- id,
1093
- }: {
1094
- workspace: string,
1095
- id: string,
1096
- }): CancelablePromise<{
1097
- completed: boolean;
1098
- result: any;
1099
- }> {
1100
- return __request(OpenAPI, {
1101
- method: 'GET',
1102
- url: '/w/{workspace}/jobs_u/completed/get_result_maybe/{id}',
1103
- path: {
1104
- 'workspace': workspace,
1105
- 'id': id,
1106
- },
1107
- });
1108
- }
1109
-
1110
- /**
1111
- * delete completed job (erase content but keep run id)
1112
- * @returns CompletedJob job details
1113
- * @throws ApiError
1114
- */
1115
- public static deleteCompletedJob({
1116
- workspace,
1117
- id,
1118
- }: {
1119
- workspace: string,
1120
- id: string,
1121
- }): CancelablePromise<CompletedJob> {
1122
- return __request(OpenAPI, {
1123
- method: 'POST',
1124
- url: '/w/{workspace}/jobs/completed/delete/{id}',
1125
- path: {
1126
- 'workspace': workspace,
1127
- 'id': id,
1128
- },
1129
- });
1130
- }
1131
-
1132
- /**
1133
- * cancel queued job
1134
- * @returns string job canceled
1135
- * @throws ApiError
1136
- */
1137
- public static cancelQueuedJob({
1138
- workspace,
1139
- id,
1140
- requestBody,
1141
- }: {
1142
- workspace: string,
1143
- id: string,
1144
- /**
1145
- * reason
1146
- */
1147
- requestBody: {
1148
- reason?: string;
1149
- },
1150
- }): CancelablePromise<string> {
1151
- return __request(OpenAPI, {
1152
- method: 'POST',
1153
- url: '/w/{workspace}/jobs_u/queue/cancel/{id}',
1154
- path: {
1155
- 'workspace': workspace,
1156
- 'id': id,
1157
- },
1158
- body: requestBody,
1159
- mediaType: 'application/json',
1160
- });
1161
- }
1162
-
1163
- /**
1164
- * force cancel queued job
1165
- * @returns string job canceled
1166
- * @throws ApiError
1167
- */
1168
- public static forceCancelQueuedJob({
1169
- workspace,
1170
- id,
1171
- requestBody,
1172
- }: {
1173
- workspace: string,
1174
- id: string,
1175
- /**
1176
- * reason
1177
- */
1178
- requestBody: {
1179
- reason?: string;
1180
- },
1181
- }): CancelablePromise<string> {
1182
- return __request(OpenAPI, {
1183
- method: 'POST',
1184
- url: '/w/{workspace}/jobs_u/queue/force_cancel/{id}',
1185
- path: {
1186
- 'workspace': workspace,
1187
- 'id': id,
1188
- },
1189
- body: requestBody,
1190
- mediaType: 'application/json',
1191
- });
1192
- }
1193
-
1194
- /**
1195
- * create an HMac signature given a job id and a resume id
1196
- * @returns string job signature
1197
- * @throws ApiError
1198
- */
1199
- public static createJobSignature({
1200
- workspace,
1201
- id,
1202
- resumeId,
1203
- approver,
1204
- }: {
1205
- workspace: string,
1206
- id: string,
1207
- resumeId: number,
1208
- approver?: string,
1209
- }): CancelablePromise<string> {
1210
- return __request(OpenAPI, {
1211
- method: 'GET',
1212
- url: '/w/{workspace}/jobs/job_signature/{id}/{resume_id}',
1213
- path: {
1214
- 'workspace': workspace,
1215
- 'id': id,
1216
- 'resume_id': resumeId,
1217
- },
1218
- query: {
1219
- 'approver': approver,
1220
- },
1221
- });
1222
- }
1223
-
1224
- /**
1225
- * get resume urls given a job_id, resume_id and a nonce to resume a flow
1226
- * @returns any url endpoints
1227
- * @throws ApiError
1228
- */
1229
- public static getResumeUrls({
1230
- workspace,
1231
- id,
1232
- resumeId,
1233
- approver,
1234
- }: {
1235
- workspace: string,
1236
- id: string,
1237
- resumeId: number,
1238
- approver?: string,
1239
- }): CancelablePromise<{
1240
- approvalPage: string;
1241
- resume: string;
1242
- cancel: string;
1243
- }> {
1244
- return __request(OpenAPI, {
1245
- method: 'GET',
1246
- url: '/w/{workspace}/jobs/resume_urls/{id}/{resume_id}',
1247
- path: {
1248
- 'workspace': workspace,
1249
- 'id': id,
1250
- 'resume_id': resumeId,
1251
- },
1252
- query: {
1253
- 'approver': approver,
1254
- },
1255
- });
1256
- }
1257
-
1258
- /**
1259
- * resume a job for a suspended flow
1260
- * @returns string job resumed
1261
- * @throws ApiError
1262
- */
1263
- public static resumeSuspendedJobGet({
1264
- workspace,
1265
- id,
1266
- resumeId,
1267
- signature,
1268
- payload,
1269
- approver,
1270
- }: {
1271
- workspace: string,
1272
- id: string,
1273
- resumeId: number,
1274
- signature: string,
1275
- /**
1276
- * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
1277
- * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
1278
- *
1279
- */
1280
- payload?: string,
1281
- approver?: string,
1282
- }): CancelablePromise<string> {
1283
- return __request(OpenAPI, {
1284
- method: 'GET',
1285
- url: '/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}',
1286
- path: {
1287
- 'workspace': workspace,
1288
- 'id': id,
1289
- 'resume_id': resumeId,
1290
- 'signature': signature,
1291
- },
1292
- query: {
1293
- 'payload': payload,
1294
- 'approver': approver,
1295
- },
1296
- });
1297
- }
1298
-
1299
- /**
1300
- * resume a job for a suspended flow
1301
- * @returns string job resumed
1302
- * @throws ApiError
1303
- */
1304
- public static resumeSuspendedJobPost({
1305
- workspace,
1306
- id,
1307
- resumeId,
1308
- signature,
1309
- requestBody,
1310
- approver,
1311
- }: {
1312
- workspace: string,
1313
- id: string,
1314
- resumeId: number,
1315
- signature: string,
1316
- requestBody: Record<string, any>,
1317
- approver?: string,
1318
- }): CancelablePromise<string> {
1319
- return __request(OpenAPI, {
1320
- method: 'POST',
1321
- url: '/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}',
1322
- path: {
1323
- 'workspace': workspace,
1324
- 'id': id,
1325
- 'resume_id': resumeId,
1326
- 'signature': signature,
1327
- },
1328
- query: {
1329
- 'approver': approver,
1330
- },
1331
- body: requestBody,
1332
- mediaType: 'application/json',
1333
- });
1334
- }
1335
-
1336
- /**
1337
- * resume a job for a suspended flow as an owner
1338
- * @returns string job resumed
1339
- * @throws ApiError
1340
- */
1341
- public static resumeSuspendedFlowAsOwner({
1342
- workspace,
1343
- id,
1344
- requestBody,
1345
- }: {
1346
- workspace: string,
1347
- id: string,
1348
- requestBody: Record<string, any>,
1349
- }): CancelablePromise<string> {
1350
- return __request(OpenAPI, {
1351
- method: 'POST',
1352
- url: '/w/{workspace}/jobs/flow/resume/{id}',
1353
- path: {
1354
- 'workspace': workspace,
1355
- 'id': id,
1356
- },
1357
- body: requestBody,
1358
- mediaType: 'application/json',
1359
- });
1360
- }
1361
-
1362
- /**
1363
- * cancel a job for a suspended flow
1364
- * @returns string job resumed
1365
- * @throws ApiError
1366
- */
1367
- public static cancelSuspendedJobGet({
1368
- workspace,
1369
- id,
1370
- resumeId,
1371
- signature,
1372
- approver,
1373
- }: {
1374
- workspace: string,
1375
- id: string,
1376
- resumeId: number,
1377
- signature: string,
1378
- approver?: string,
1379
- }): CancelablePromise<string> {
1380
- return __request(OpenAPI, {
1381
- method: 'GET',
1382
- url: '/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}',
1383
- path: {
1384
- 'workspace': workspace,
1385
- 'id': id,
1386
- 'resume_id': resumeId,
1387
- 'signature': signature,
1388
- },
1389
- query: {
1390
- 'approver': approver,
1391
- },
1392
- });
1393
- }
1394
-
1395
- /**
1396
- * cancel a job for a suspended flow
1397
- * @returns string job resumed
1398
- * @throws ApiError
1399
- */
1400
- public static cancelSuspendedJobPost({
1401
- workspace,
1402
- id,
1403
- resumeId,
1404
- signature,
1405
- requestBody,
1406
- approver,
1407
- }: {
1408
- workspace: string,
1409
- id: string,
1410
- resumeId: number,
1411
- signature: string,
1412
- requestBody: Record<string, any>,
1413
- approver?: string,
1414
- }): CancelablePromise<string> {
1415
- return __request(OpenAPI, {
1416
- method: 'POST',
1417
- url: '/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}',
1418
- path: {
1419
- 'workspace': workspace,
1420
- 'id': id,
1421
- 'resume_id': resumeId,
1422
- 'signature': signature,
1423
- },
1424
- query: {
1425
- 'approver': approver,
1426
- },
1427
- body: requestBody,
1428
- mediaType: 'application/json',
1429
- });
1430
- }
1431
-
1432
- /**
1433
- * get parent flow job of suspended job
1434
- * @returns any parent flow details
1435
- * @throws ApiError
1436
- */
1437
- public static getSuspendedJobFlow({
1438
- workspace,
1439
- id,
1440
- resumeId,
1441
- signature,
1442
- approver,
1443
- }: {
1444
- workspace: string,
1445
- id: string,
1446
- resumeId: number,
1447
- signature: string,
1448
- approver?: string,
1449
- }): CancelablePromise<{
1450
- job: Job;
1451
- approvers: Array<{
1452
- resume_id: number;
1453
- approver: string;
1454
- }>;
1455
- }> {
1456
- return __request(OpenAPI, {
1457
- method: 'GET',
1458
- url: '/w/{workspace}/jobs_u/get_flow/{id}/{resume_id}/{signature}',
1459
- path: {
1460
- 'workspace': workspace,
1461
- 'id': id,
1462
- 'resume_id': resumeId,
1463
- 'signature': signature,
1464
- },
1465
- query: {
1466
- 'approver': approver,
1467
- },
1468
- });
1469
- }
1470
-
1471
- }