windmill-client 0.3.11 → 0.3.13
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.
- package/dist/client.js +120 -155
- package/dist/core/CancelablePromise.js +3 -6
- package/dist/core/request.d.ts +0 -4
- package/dist/core/request.js +47 -43
- package/dist/index.js +42 -42
- package/dist/services/AdminService.js +2 -2
- package/dist/services/AppService.js +2 -2
- package/dist/services/AuditService.js +2 -2
- package/dist/services/CaptureService.js +2 -2
- package/dist/services/DraftService.js +2 -2
- package/dist/services/FavoriteService.js +2 -2
- package/dist/services/FlowService.js +2 -2
- package/dist/services/FolderService.js +2 -2
- package/dist/services/GranularAclService.js +2 -2
- package/dist/services/GroupService.js +2 -2
- package/dist/services/InputService.js +2 -2
- package/dist/services/JobService.js +2 -2
- package/dist/services/OauthService.js +2 -2
- package/dist/services/RawAppService.js +2 -2
- package/dist/services/ResourceService.js +2 -2
- package/dist/services/ScheduleService.js +2 -2
- package/dist/services/ScriptService.js +2 -2
- package/dist/services/SettingsService.js +2 -2
- package/dist/services/UserService.js +2 -2
- package/dist/services/VariableService.js +2 -2
- package/dist/services/WorkerService.js +2 -2
- package/dist/services/WorkspaceService.js +2 -2
- package/dist/src/client.d.ts +77 -0
- package/dist/src/client.js +301 -0
- package/dist/src/core/ApiError.d.ts +10 -0
- package/dist/src/core/ApiError.js +11 -0
- package/dist/src/core/ApiRequestOptions.d.ts +13 -0
- package/dist/src/core/ApiRequestOptions.js +1 -0
- package/dist/src/core/ApiResult.d.ts +7 -0
- package/dist/src/core/ApiResult.js +1 -0
- package/dist/src/core/CancelablePromise.d.ts +20 -0
- package/dist/src/core/CancelablePromise.js +108 -0
- package/dist/src/core/OpenAPI.d.ts +16 -0
- package/dist/src/core/OpenAPI.js +11 -0
- package/dist/src/core/request.d.ts +30 -0
- package/dist/src/core/request.js +274 -0
- package/dist/src/index.d.ts +143 -0
- package/dist/src/index.js +46 -0
- package/dist/src/models/AccountId.d.ts +1 -0
- package/dist/src/models/AccountId.js +5 -0
- package/dist/src/models/ActionKind.d.ts +9 -0
- package/dist/src/models/ActionKind.js +14 -0
- package/dist/src/models/After.d.ts +4 -0
- package/dist/src/models/After.js +5 -0
- package/dist/src/models/AppWithLastVersion.d.ts +21 -0
- package/dist/src/models/AppWithLastVersion.js +13 -0
- package/dist/src/models/AppWithLastVersionWDraft.d.ts +5 -0
- package/dist/src/models/AppWithLastVersionWDraft.js +5 -0
- package/dist/src/models/ArgsFilter.d.ts +4 -0
- package/dist/src/models/ArgsFilter.js +5 -0
- package/dist/src/models/AuditLog.d.ts +32 -0
- package/dist/src/models/AuditLog.js +30 -0
- package/dist/src/models/Before.d.ts +4 -0
- package/dist/src/models/Before.js +5 -0
- package/dist/src/models/BranchAll.d.ts +10 -0
- package/dist/src/models/BranchAll.js +5 -0
- package/dist/src/models/BranchOne.d.ts +10 -0
- package/dist/src/models/BranchOne.js +5 -0
- package/dist/src/models/ClientName.d.ts +1 -0
- package/dist/src/models/ClientName.js +5 -0
- package/dist/src/models/CompletedJob.d.ts +61 -0
- package/dist/src/models/CompletedJob.js +28 -0
- package/dist/src/models/ContextualVariable.d.ts +5 -0
- package/dist/src/models/ContextualVariable.js +5 -0
- package/dist/src/models/CreateInput.d.ts +4 -0
- package/dist/src/models/CreateInput.js +5 -0
- package/dist/src/models/CreateResource.d.ts +6 -0
- package/dist/src/models/CreateResource.js +5 -0
- package/dist/src/models/CreateVariable.d.ts +8 -0
- package/dist/src/models/CreateVariable.js +5 -0
- package/dist/src/models/CreateWorkspace.d.ts +5 -0
- package/dist/src/models/CreateWorkspace.js +5 -0
- package/dist/src/models/CreatedBy.d.ts +4 -0
- package/dist/src/models/CreatedBy.js +5 -0
- package/dist/src/models/EditResource.d.ts +5 -0
- package/dist/src/models/EditResource.js +5 -0
- package/dist/src/models/EditResourceType.d.ts +4 -0
- package/dist/src/models/EditResourceType.js +5 -0
- package/dist/src/models/EditSchedule.d.ts +7 -0
- package/dist/src/models/EditSchedule.js +5 -0
- package/dist/src/models/EditVariable.d.ts +6 -0
- package/dist/src/models/EditVariable.js +5 -0
- package/dist/src/models/EditWorkspaceUser.d.ts +5 -0
- package/dist/src/models/EditWorkspaceUser.js +5 -0
- package/dist/src/models/Flow.d.ts +3 -0
- package/dist/src/models/Flow.js +5 -0
- package/dist/src/models/FlowMetadata.d.ts +11 -0
- package/dist/src/models/FlowMetadata.js +5 -0
- package/dist/src/models/FlowModule.d.ts +26 -0
- package/dist/src/models/FlowModule.js +5 -0
- package/dist/src/models/FlowModuleValue.d.ts +10 -0
- package/dist/src/models/FlowModuleValue.js +5 -0
- package/dist/src/models/FlowPreview.d.ts +7 -0
- package/dist/src/models/FlowPreview.js +5 -0
- package/dist/src/models/FlowStatus.d.ts +12 -0
- package/dist/src/models/FlowStatus.js +5 -0
- package/dist/src/models/FlowStatusModule.d.ts +34 -0
- package/dist/src/models/FlowStatusModule.js +16 -0
- package/dist/src/models/FlowValue.d.ts +6 -0
- package/dist/src/models/FlowValue.js +5 -0
- package/dist/src/models/Folder.d.ts +5 -0
- package/dist/src/models/Folder.js +5 -0
- package/dist/src/models/ForloopFlow.d.ts +9 -0
- package/dist/src/models/ForloopFlow.js +5 -0
- package/dist/src/models/GlobalUserInfo.d.ts +14 -0
- package/dist/src/models/GlobalUserInfo.js +12 -0
- package/dist/src/models/Graphql.d.ts +3 -0
- package/dist/src/models/Graphql.js +5 -0
- package/dist/src/models/Group.d.ts +6 -0
- package/dist/src/models/Group.js +5 -0
- package/dist/src/models/Http.d.ts +3 -0
- package/dist/src/models/Http.js +5 -0
- package/dist/src/models/Identity.d.ts +4 -0
- package/dist/src/models/Identity.js +5 -0
- package/dist/src/models/IncludeHeader.d.ts +6 -0
- package/dist/src/models/IncludeHeader.js +5 -0
- package/dist/src/models/Input.d.ts +8 -0
- package/dist/src/models/Input.js +5 -0
- package/dist/src/models/InputId.d.ts +1 -0
- package/dist/src/models/InputId.js +5 -0
- package/dist/src/models/InputTransform.d.ts +3 -0
- package/dist/src/models/InputTransform.js +5 -0
- package/dist/src/models/JavascriptTransform.d.ts +4 -0
- package/dist/src/models/JavascriptTransform.js +5 -0
- package/dist/src/models/Job.d.ts +11 -0
- package/dist/src/models/Job.js +12 -0
- package/dist/src/models/JobId.d.ts +1 -0
- package/dist/src/models/JobId.js +5 -0
- package/dist/src/models/JobKinds.d.ts +4 -0
- package/dist/src/models/JobKinds.js +5 -0
- package/dist/src/models/ListableApp.d.ts +18 -0
- package/dist/src/models/ListableApp.js +13 -0
- package/dist/src/models/ListableRawApp.d.ts +9 -0
- package/dist/src/models/ListableRawApp.js +5 -0
- package/dist/src/models/ListableResource.d.ts +14 -0
- package/dist/src/models/ListableResource.js +5 -0
- package/dist/src/models/ListableVariable.d.ts +14 -0
- package/dist/src/models/ListableVariable.js +5 -0
- package/dist/src/models/Login.d.ts +4 -0
- package/dist/src/models/Login.js +5 -0
- package/dist/src/models/MainArgSignature.d.ts +33 -0
- package/dist/src/models/MainArgSignature.js +12 -0
- package/dist/src/models/Name.d.ts +1 -0
- package/dist/src/models/Name.js +5 -0
- package/dist/src/models/NewJobId.d.ts +4 -0
- package/dist/src/models/NewJobId.js +5 -0
- package/dist/src/models/NewSchedule.d.ts +11 -0
- package/dist/src/models/NewSchedule.js +5 -0
- package/dist/src/models/NewScript.d.ts +33 -0
- package/dist/src/models/NewScript.js +25 -0
- package/dist/src/models/NewScriptWithDraft.d.ts +5 -0
- package/dist/src/models/NewScriptWithDraft.js +5 -0
- package/dist/src/models/NewToken.d.ts +5 -0
- package/dist/src/models/NewToken.js +5 -0
- package/dist/src/models/NewTokenImpersonate.d.ts +5 -0
- package/dist/src/models/NewTokenImpersonate.js +5 -0
- package/dist/src/models/NewUser.d.ts +5 -0
- package/dist/src/models/NewUser.js +5 -0
- package/dist/src/models/OpenFlow.d.ts +7 -0
- package/dist/src/models/OpenFlow.js +5 -0
- package/dist/src/models/OpenFlowWPath.d.ts +4 -0
- package/dist/src/models/OpenFlowWPath.js +5 -0
- package/dist/src/models/Operation.d.ts +4 -0
- package/dist/src/models/Operation.js +5 -0
- package/dist/src/models/OrderDesc.d.ts +4 -0
- package/dist/src/models/OrderDesc.js +5 -0
- package/dist/src/models/Page.d.ts +4 -0
- package/dist/src/models/Page.js +5 -0
- package/dist/src/models/ParentJob.d.ts +4 -0
- package/dist/src/models/ParentJob.js +5 -0
- package/dist/src/models/Path.d.ts +1 -0
- package/dist/src/models/Path.js +5 -0
- package/dist/src/models/PathFlow.d.ts +6 -0
- package/dist/src/models/PathFlow.js +5 -0
- package/dist/src/models/PathId.d.ts +1 -0
- package/dist/src/models/PathId.js +5 -0
- package/dist/src/models/PathScript.d.ts +7 -0
- package/dist/src/models/PathScript.js +5 -0
- package/dist/src/models/Payload.d.ts +6 -0
- package/dist/src/models/Payload.js +5 -0
- package/dist/src/models/PerPage.d.ts +4 -0
- package/dist/src/models/PerPage.js +5 -0
- package/dist/src/models/Policy.d.ts +13 -0
- package/dist/src/models/Policy.js +13 -0
- package/dist/src/models/Preview.d.ts +25 -0
- package/dist/src/models/Preview.js +23 -0
- package/dist/src/models/QueueLimit.d.ts +5 -0
- package/dist/src/models/QueueLimit.js +5 -0
- package/dist/src/models/QueuedJob.d.ts +59 -0
- package/dist/src/models/QueuedJob.js +28 -0
- package/dist/src/models/RawScript.d.ts +20 -0
- package/dist/src/models/RawScript.js +16 -0
- package/dist/src/models/Resource.d.ts +9 -0
- package/dist/src/models/Resource.js +5 -0
- package/dist/src/models/ResourceName.d.ts +4 -0
- package/dist/src/models/ResourceName.js +5 -0
- package/dist/src/models/ResourceType.d.ts +6 -0
- package/dist/src/models/ResourceType.js +5 -0
- package/dist/src/models/ResultFilter.d.ts +4 -0
- package/dist/src/models/ResultFilter.js +5 -0
- package/dist/src/models/Retry.d.ts +11 -0
- package/dist/src/models/Retry.js +5 -0
- package/dist/src/models/RunnableId.d.ts +1 -0
- package/dist/src/models/RunnableId.js +5 -0
- package/dist/src/models/RunnableType.d.ts +5 -0
- package/dist/src/models/RunnableType.js +10 -0
- package/dist/src/models/RunnableTypeQuery.d.ts +2 -0
- package/dist/src/models/RunnableTypeQuery.js +5 -0
- package/dist/src/models/Running.d.ts +4 -0
- package/dist/src/models/Running.js +5 -0
- package/dist/src/models/Schedule.d.ts +16 -0
- package/dist/src/models/Schedule.js +5 -0
- package/dist/src/models/SchedulePath.d.ts +4 -0
- package/dist/src/models/SchedulePath.js +5 -0
- package/dist/src/models/ScheduleWJobs.d.ts +8 -0
- package/dist/src/models/ScheduleWJobs.js +5 -0
- package/dist/src/models/Script.d.ts +47 -0
- package/dist/src/models/Script.js +25 -0
- package/dist/src/models/ScriptArgs.d.ts +1 -0
- package/dist/src/models/ScriptArgs.js +5 -0
- package/dist/src/models/ScriptExactHash.d.ts +4 -0
- package/dist/src/models/ScriptExactHash.js +5 -0
- package/dist/src/models/ScriptExactPath.d.ts +4 -0
- package/dist/src/models/ScriptExactPath.js +5 -0
- package/dist/src/models/ScriptHash.d.ts +1 -0
- package/dist/src/models/ScriptHash.js +5 -0
- package/dist/src/models/ScriptPath.d.ts +1 -0
- package/dist/src/models/ScriptPath.js +5 -0
- package/dist/src/models/ScriptStartPath.d.ts +4 -0
- package/dist/src/models/ScriptStartPath.js +5 -0
- package/dist/src/models/SlackToken.d.ts +8 -0
- package/dist/src/models/SlackToken.js +5 -0
- package/dist/src/models/StartedAfter.d.ts +4 -0
- package/dist/src/models/StartedAfter.js +5 -0
- package/dist/src/models/StartedBefore.d.ts +4 -0
- package/dist/src/models/StartedBefore.js +5 -0
- package/dist/src/models/StaticTransform.d.ts +4 -0
- package/dist/src/models/StaticTransform.js +5 -0
- package/dist/src/models/Success.d.ts +4 -0
- package/dist/src/models/Success.js +5 -0
- package/dist/src/models/Suspended.d.ts +4 -0
- package/dist/src/models/Suspended.js +5 -0
- package/dist/src/models/Tag.d.ts +4 -0
- package/dist/src/models/Tag.js +5 -0
- package/dist/src/models/Token.d.ts +1 -0
- package/dist/src/models/Token.js +5 -0
- package/dist/src/models/TokenResponse.d.ts +6 -0
- package/dist/src/models/TokenResponse.js +5 -0
- package/dist/src/models/TruncatedToken.d.ts +8 -0
- package/dist/src/models/TruncatedToken.js +5 -0
- package/dist/src/models/UpdateInput.d.ts +5 -0
- package/dist/src/models/UpdateInput.js +5 -0
- package/dist/src/models/Usage.d.ts +3 -0
- package/dist/src/models/Usage.js +5 -0
- package/dist/src/models/User.d.ts +14 -0
- package/dist/src/models/User.js +5 -0
- package/dist/src/models/UserWorkspaceList.d.ts +8 -0
- package/dist/src/models/UserWorkspaceList.js +5 -0
- package/dist/src/models/Username.d.ts +4 -0
- package/dist/src/models/Username.js +5 -0
- package/dist/src/models/VersionId.d.ts +1 -0
- package/dist/src/models/VersionId.js +5 -0
- package/dist/src/models/WorkerPing.d.ts +8 -0
- package/dist/src/models/WorkerPing.js +5 -0
- package/dist/src/models/Workspace.d.ts +6 -0
- package/dist/src/models/Workspace.js +5 -0
- package/dist/src/models/WorkspaceId.d.ts +1 -0
- package/dist/src/models/WorkspaceId.js +5 -0
- package/dist/src/models/WorkspaceInvite.d.ts +6 -0
- package/dist/src/models/WorkspaceInvite.js +5 -0
- package/dist/src/services/AdminService.d.ts +39 -0
- package/dist/src/services/AdminService.js +52 -0
- package/dist/src/services/AppService.d.ts +195 -0
- package/dist/src/services/AppService.js +207 -0
- package/dist/src/services/AuditService.d.ts +53 -0
- package/dist/src/services/AuditService.js +43 -0
- package/dist/src/services/CaptureService.d.ts +30 -0
- package/dist/src/services/CaptureService.js +52 -0
- package/dist/src/services/DraftService.d.ts +26 -0
- package/dist/src/services/DraftService.js +36 -0
- package/dist/src/services/FavoriteService.d.ts +27 -0
- package/dist/src/services/FavoriteService.js +36 -0
- package/dist/src/services/FlowService.d.ts +186 -0
- package/dist/src/services/FlowService.js +196 -0
- package/dist/src/services/FolderService.d.ts +128 -0
- package/dist/src/services/FolderService.js +151 -0
- package/dist/src/services/GranularAclService.d.ts +46 -0
- package/dist/src/services/GranularAclService.js +56 -0
- package/dist/src/services/GroupService.d.ts +110 -0
- package/dist/src/services/GroupService.js +136 -0
- package/dist/src/services/InputService.d.ts +78 -0
- package/dist/src/services/InputService.js +95 -0
- package/dist/src/services/JobService.d.ts +761 -0
- package/dist/src/services/JobService.js +646 -0
- package/dist/src/services/OauthService.d.ts +95 -0
- package/dist/src/services/OauthService.js +120 -0
- package/dist/src/services/RawAppService.d.ts +103 -0
- package/dist/src/services/RawAppService.js +106 -0
- package/dist/src/services/ResourceService.d.ts +178 -0
- package/dist/src/services/ResourceService.js +243 -0
- package/dist/src/services/ScheduleService.d.ts +120 -0
- package/dist/src/services/ScheduleService.js +148 -0
- package/dist/src/services/ScriptService.d.ts +258 -0
- package/dist/src/services/ScriptService.js +283 -0
- package/dist/src/services/SettingsService.d.ts +27 -0
- package/dist/src/services/SettingsService.js +48 -0
- package/dist/src/services/UserService.d.ts +306 -0
- package/dist/src/services/UserService.js +397 -0
- package/dist/src/services/VariableService.d.ts +95 -0
- package/dist/src/services/VariableService.js +135 -0
- package/dist/src/services/WorkerService.d.ts +25 -0
- package/dist/src/services/WorkerService.js +30 -0
- package/dist/src/services/WorkspaceService.d.ts +249 -0
- package/dist/src/services/WorkspaceService.js +301 -0
- package/package.json +2 -3
|
@@ -0,0 +1,761 @@
|
|
|
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, jobId, 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
|
+
* 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;
|
|
37
|
+
/**
|
|
38
|
+
* make the run invisible to the the script owner (default false)
|
|
39
|
+
*/
|
|
40
|
+
invisibleToOwner?: boolean;
|
|
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>;
|
|
74
|
+
/**
|
|
75
|
+
* run script by path
|
|
76
|
+
* @returns any job result
|
|
77
|
+
* @throws ApiError
|
|
78
|
+
*/
|
|
79
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, jobId, includeHeader, queueLimit, }: {
|
|
80
|
+
workspace: string;
|
|
81
|
+
path: string;
|
|
82
|
+
/**
|
|
83
|
+
* script args
|
|
84
|
+
*/
|
|
85
|
+
requestBody: ScriptArgs;
|
|
86
|
+
/**
|
|
87
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
88
|
+
*/
|
|
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;
|
|
94
|
+
/**
|
|
95
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
96
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
includeHeader?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
queueLimit?: string;
|
|
105
|
+
}): CancelablePromise<any>;
|
|
106
|
+
/**
|
|
107
|
+
* run script by path with get
|
|
108
|
+
* @returns any job result
|
|
109
|
+
* @throws ApiError
|
|
110
|
+
*/
|
|
111
|
+
static runWaitResultScriptByPathGet({ workspace, path, parentJob, jobId, includeHeader, queueLimit, payload, }: {
|
|
112
|
+
workspace: string;
|
|
113
|
+
path: string;
|
|
114
|
+
/**
|
|
115
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
116
|
+
*/
|
|
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;
|
|
122
|
+
/**
|
|
123
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
124
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
includeHeader?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
queueLimit?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
135
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
payload?: string;
|
|
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>;
|
|
168
|
+
/**
|
|
169
|
+
* run flow by path and wait until completion
|
|
170
|
+
* @returns any job result
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
static runWaitResultFlowByPath({ workspace, path, requestBody, includeHeader, queueLimit, jobId, }: {
|
|
174
|
+
workspace: string;
|
|
175
|
+
path: string;
|
|
176
|
+
/**
|
|
177
|
+
* script args
|
|
178
|
+
*/
|
|
179
|
+
requestBody: ScriptArgs;
|
|
180
|
+
/**
|
|
181
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
182
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
includeHeader?: string;
|
|
186
|
+
/**
|
|
187
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
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;
|
|
195
|
+
}): CancelablePromise<any>;
|
|
196
|
+
/**
|
|
197
|
+
* get job result by id
|
|
198
|
+
* @returns any job result
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
static resultById({ workspace, flowJobId, nodeId, }: {
|
|
202
|
+
workspace: string;
|
|
203
|
+
flowJobId: string;
|
|
204
|
+
nodeId: string;
|
|
205
|
+
}): CancelablePromise<any>;
|
|
206
|
+
/**
|
|
207
|
+
* run flow by path
|
|
208
|
+
* @returns string job created
|
|
209
|
+
* @throws ApiError
|
|
210
|
+
*/
|
|
211
|
+
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }: {
|
|
212
|
+
workspace: string;
|
|
213
|
+
path: string;
|
|
214
|
+
/**
|
|
215
|
+
* flow args
|
|
216
|
+
*/
|
|
217
|
+
requestBody: ScriptArgs;
|
|
218
|
+
/**
|
|
219
|
+
* when to schedule this job (leave empty for immediate run)
|
|
220
|
+
*/
|
|
221
|
+
scheduledFor?: string;
|
|
222
|
+
/**
|
|
223
|
+
* schedule the script to execute in the number of seconds starting now
|
|
224
|
+
*/
|
|
225
|
+
scheduledInSecs?: number;
|
|
226
|
+
/**
|
|
227
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
228
|
+
*/
|
|
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;
|
|
234
|
+
/**
|
|
235
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
236
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
includeHeader?: string;
|
|
240
|
+
/**
|
|
241
|
+
* make the run invisible to the the flow owner (default false)
|
|
242
|
+
*/
|
|
243
|
+
invisibleToOwner?: boolean;
|
|
244
|
+
}): CancelablePromise<string>;
|
|
245
|
+
/**
|
|
246
|
+
* run script by hash
|
|
247
|
+
* @returns string job created
|
|
248
|
+
* @throws ApiError
|
|
249
|
+
*/
|
|
250
|
+
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }: {
|
|
251
|
+
workspace: string;
|
|
252
|
+
hash: string;
|
|
253
|
+
/**
|
|
254
|
+
* Partially filled args
|
|
255
|
+
*/
|
|
256
|
+
requestBody: Record<string, any>;
|
|
257
|
+
/**
|
|
258
|
+
* when to schedule this job (leave empty for immediate run)
|
|
259
|
+
*/
|
|
260
|
+
scheduledFor?: string;
|
|
261
|
+
/**
|
|
262
|
+
* schedule the script to execute in the number of seconds starting now
|
|
263
|
+
*/
|
|
264
|
+
scheduledInSecs?: number;
|
|
265
|
+
/**
|
|
266
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
267
|
+
*/
|
|
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;
|
|
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
|
+
* make the run invisible to the the script owner (default false)
|
|
281
|
+
*/
|
|
282
|
+
invisibleToOwner?: boolean;
|
|
283
|
+
}): CancelablePromise<string>;
|
|
284
|
+
/**
|
|
285
|
+
* run script preview
|
|
286
|
+
* @returns string job created
|
|
287
|
+
* @throws ApiError
|
|
288
|
+
*/
|
|
289
|
+
static runScriptPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }: {
|
|
290
|
+
workspace: string;
|
|
291
|
+
/**
|
|
292
|
+
* preview
|
|
293
|
+
*/
|
|
294
|
+
requestBody: Preview;
|
|
295
|
+
/**
|
|
296
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
297
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
includeHeader?: string;
|
|
301
|
+
/**
|
|
302
|
+
* make the run invisible to the the script owner (default false)
|
|
303
|
+
*/
|
|
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;
|
|
309
|
+
}): CancelablePromise<string>;
|
|
310
|
+
/**
|
|
311
|
+
* run flow preview
|
|
312
|
+
* @returns string job created
|
|
313
|
+
* @throws ApiError
|
|
314
|
+
*/
|
|
315
|
+
static runFlowPreview({ workspace, requestBody, includeHeader, invisibleToOwner, jobId, }: {
|
|
316
|
+
workspace: string;
|
|
317
|
+
/**
|
|
318
|
+
* preview
|
|
319
|
+
*/
|
|
320
|
+
requestBody: FlowPreview;
|
|
321
|
+
/**
|
|
322
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
323
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
324
|
+
*
|
|
325
|
+
*/
|
|
326
|
+
includeHeader?: string;
|
|
327
|
+
/**
|
|
328
|
+
* make the run invisible to the the script owner (default false)
|
|
329
|
+
*/
|
|
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;
|
|
335
|
+
}): CancelablePromise<string>;
|
|
336
|
+
/**
|
|
337
|
+
* list all available queued jobs
|
|
338
|
+
* @returns QueuedJob All available queued jobs
|
|
339
|
+
* @throws ApiError
|
|
340
|
+
*/
|
|
341
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }: {
|
|
342
|
+
workspace: string;
|
|
343
|
+
/**
|
|
344
|
+
* order by desc order (default true)
|
|
345
|
+
*/
|
|
346
|
+
orderDesc?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* mask to filter exact matching user creator
|
|
349
|
+
*/
|
|
350
|
+
createdBy?: string;
|
|
351
|
+
/**
|
|
352
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
353
|
+
*/
|
|
354
|
+
parentJob?: string;
|
|
355
|
+
/**
|
|
356
|
+
* mask to filter exact matching path
|
|
357
|
+
*/
|
|
358
|
+
scriptPathExact?: string;
|
|
359
|
+
/**
|
|
360
|
+
* mask to filter matching starting path
|
|
361
|
+
*/
|
|
362
|
+
scriptPathStart?: string;
|
|
363
|
+
/**
|
|
364
|
+
* mask to filter by schedule path
|
|
365
|
+
*/
|
|
366
|
+
schedulePath?: string;
|
|
367
|
+
/**
|
|
368
|
+
* mask to filter exact matching path
|
|
369
|
+
*/
|
|
370
|
+
scriptHash?: string;
|
|
371
|
+
/**
|
|
372
|
+
* filter on created before (inclusive) timestamp
|
|
373
|
+
*/
|
|
374
|
+
startedBefore?: string;
|
|
375
|
+
/**
|
|
376
|
+
* filter on created after (exclusive) timestamp
|
|
377
|
+
*/
|
|
378
|
+
startedAfter?: string;
|
|
379
|
+
/**
|
|
380
|
+
* filter on successful jobs
|
|
381
|
+
*/
|
|
382
|
+
success?: boolean;
|
|
383
|
+
/**
|
|
384
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
385
|
+
*/
|
|
386
|
+
jobKinds?: string;
|
|
387
|
+
/**
|
|
388
|
+
* filter on suspended jobs
|
|
389
|
+
*/
|
|
390
|
+
suspended?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* filter on running jobs
|
|
393
|
+
*/
|
|
394
|
+
running?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
397
|
+
*/
|
|
398
|
+
args?: string;
|
|
399
|
+
/**
|
|
400
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
401
|
+
*/
|
|
402
|
+
result?: string;
|
|
403
|
+
/**
|
|
404
|
+
* filter on jobs with a given tag/worker group
|
|
405
|
+
*/
|
|
406
|
+
tag?: string;
|
|
407
|
+
}): CancelablePromise<Array<QueuedJob>>;
|
|
408
|
+
/**
|
|
409
|
+
* list all available completed jobs
|
|
410
|
+
* @returns CompletedJob All available completed jobs
|
|
411
|
+
* @throws ApiError
|
|
412
|
+
*/
|
|
413
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }: {
|
|
414
|
+
workspace: string;
|
|
415
|
+
/**
|
|
416
|
+
* order by desc order (default true)
|
|
417
|
+
*/
|
|
418
|
+
orderDesc?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* mask to filter exact matching user creator
|
|
421
|
+
*/
|
|
422
|
+
createdBy?: string;
|
|
423
|
+
/**
|
|
424
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
425
|
+
*/
|
|
426
|
+
parentJob?: string;
|
|
427
|
+
/**
|
|
428
|
+
* mask to filter exact matching path
|
|
429
|
+
*/
|
|
430
|
+
scriptPathExact?: string;
|
|
431
|
+
/**
|
|
432
|
+
* mask to filter matching starting path
|
|
433
|
+
*/
|
|
434
|
+
scriptPathStart?: string;
|
|
435
|
+
/**
|
|
436
|
+
* mask to filter by schedule path
|
|
437
|
+
*/
|
|
438
|
+
schedulePath?: string;
|
|
439
|
+
/**
|
|
440
|
+
* mask to filter exact matching path
|
|
441
|
+
*/
|
|
442
|
+
scriptHash?: string;
|
|
443
|
+
/**
|
|
444
|
+
* filter on created before (inclusive) timestamp
|
|
445
|
+
*/
|
|
446
|
+
startedBefore?: string;
|
|
447
|
+
/**
|
|
448
|
+
* filter on created after (exclusive) timestamp
|
|
449
|
+
*/
|
|
450
|
+
startedAfter?: string;
|
|
451
|
+
/**
|
|
452
|
+
* filter on successful jobs
|
|
453
|
+
*/
|
|
454
|
+
success?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
457
|
+
*/
|
|
458
|
+
jobKinds?: string;
|
|
459
|
+
/**
|
|
460
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
461
|
+
*/
|
|
462
|
+
args?: string;
|
|
463
|
+
/**
|
|
464
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
465
|
+
*/
|
|
466
|
+
result?: string;
|
|
467
|
+
/**
|
|
468
|
+
* filter on jobs with a given tag/worker group
|
|
469
|
+
*/
|
|
470
|
+
tag?: string;
|
|
471
|
+
/**
|
|
472
|
+
* is the job skipped
|
|
473
|
+
*/
|
|
474
|
+
isSkipped?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* is the job a flow step
|
|
477
|
+
*/
|
|
478
|
+
isFlowStep?: boolean;
|
|
479
|
+
}): CancelablePromise<Array<CompletedJob>>;
|
|
480
|
+
/**
|
|
481
|
+
* list all available jobs
|
|
482
|
+
* @returns Job All jobs
|
|
483
|
+
* @throws ApiError
|
|
484
|
+
*/
|
|
485
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
|
|
486
|
+
workspace: string;
|
|
487
|
+
/**
|
|
488
|
+
* mask to filter exact matching user creator
|
|
489
|
+
*/
|
|
490
|
+
createdBy?: string;
|
|
491
|
+
/**
|
|
492
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
493
|
+
*/
|
|
494
|
+
parentJob?: string;
|
|
495
|
+
/**
|
|
496
|
+
* mask to filter exact matching path
|
|
497
|
+
*/
|
|
498
|
+
scriptPathExact?: string;
|
|
499
|
+
/**
|
|
500
|
+
* mask to filter matching starting path
|
|
501
|
+
*/
|
|
502
|
+
scriptPathStart?: string;
|
|
503
|
+
/**
|
|
504
|
+
* mask to filter by schedule path
|
|
505
|
+
*/
|
|
506
|
+
schedulePath?: string;
|
|
507
|
+
/**
|
|
508
|
+
* mask to filter exact matching path
|
|
509
|
+
*/
|
|
510
|
+
scriptHash?: string;
|
|
511
|
+
/**
|
|
512
|
+
* filter on created before (inclusive) timestamp
|
|
513
|
+
*/
|
|
514
|
+
startedBefore?: string;
|
|
515
|
+
/**
|
|
516
|
+
* filter on created after (exclusive) timestamp
|
|
517
|
+
*/
|
|
518
|
+
startedAfter?: string;
|
|
519
|
+
/**
|
|
520
|
+
* filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
521
|
+
*/
|
|
522
|
+
jobKinds?: string;
|
|
523
|
+
/**
|
|
524
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
525
|
+
*/
|
|
526
|
+
args?: string;
|
|
527
|
+
/**
|
|
528
|
+
* filter on jobs with a given tag/worker group
|
|
529
|
+
*/
|
|
530
|
+
tag?: string;
|
|
531
|
+
/**
|
|
532
|
+
* filter on jobs containing those result as a json subset (@> in postgres)
|
|
533
|
+
*/
|
|
534
|
+
result?: string;
|
|
535
|
+
/**
|
|
536
|
+
* is the job skipped
|
|
537
|
+
*/
|
|
538
|
+
isSkipped?: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* is the job a flow step
|
|
541
|
+
*/
|
|
542
|
+
isFlowStep?: boolean;
|
|
543
|
+
/**
|
|
544
|
+
* filter on successful jobs
|
|
545
|
+
*/
|
|
546
|
+
success?: boolean;
|
|
547
|
+
}): CancelablePromise<Array<Job>>;
|
|
548
|
+
/**
|
|
549
|
+
* get job
|
|
550
|
+
* @returns Job job details
|
|
551
|
+
* @throws ApiError
|
|
552
|
+
*/
|
|
553
|
+
static getJob({ workspace, id, }: {
|
|
554
|
+
workspace: string;
|
|
555
|
+
id: string;
|
|
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>;
|
|
566
|
+
/**
|
|
567
|
+
* get job updates
|
|
568
|
+
* @returns any job details
|
|
569
|
+
* @throws ApiError
|
|
570
|
+
*/
|
|
571
|
+
static getJobUpdates({ workspace, id, running, logOffset, }: {
|
|
572
|
+
workspace: string;
|
|
573
|
+
id: string;
|
|
574
|
+
running?: boolean;
|
|
575
|
+
logOffset?: number;
|
|
576
|
+
}): CancelablePromise<{
|
|
577
|
+
running?: boolean;
|
|
578
|
+
completed?: boolean;
|
|
579
|
+
new_logs?: string;
|
|
580
|
+
mem_peak?: number;
|
|
581
|
+
}>;
|
|
582
|
+
/**
|
|
583
|
+
* get completed job
|
|
584
|
+
* @returns CompletedJob job details
|
|
585
|
+
* @throws ApiError
|
|
586
|
+
*/
|
|
587
|
+
static getCompletedJob({ workspace, id, }: {
|
|
588
|
+
workspace: string;
|
|
589
|
+
id: string;
|
|
590
|
+
}): CancelablePromise<CompletedJob>;
|
|
591
|
+
/**
|
|
592
|
+
* get completed job result
|
|
593
|
+
* @returns any result
|
|
594
|
+
* @throws ApiError
|
|
595
|
+
*/
|
|
596
|
+
static getCompletedJobResult({ workspace, id, }: {
|
|
597
|
+
workspace: string;
|
|
598
|
+
id: string;
|
|
599
|
+
}): CancelablePromise<any>;
|
|
600
|
+
/**
|
|
601
|
+
* get completed job result if job is completed
|
|
602
|
+
* @returns any result
|
|
603
|
+
* @throws ApiError
|
|
604
|
+
*/
|
|
605
|
+
static getCompletedJobResultMaybe({ workspace, id, }: {
|
|
606
|
+
workspace: string;
|
|
607
|
+
id: string;
|
|
608
|
+
}): CancelablePromise<{
|
|
609
|
+
completed: boolean;
|
|
610
|
+
result: any;
|
|
611
|
+
}>;
|
|
612
|
+
/**
|
|
613
|
+
* delete completed job (erase content but keep run id)
|
|
614
|
+
* @returns CompletedJob job details
|
|
615
|
+
* @throws ApiError
|
|
616
|
+
*/
|
|
617
|
+
static deleteCompletedJob({ workspace, id, }: {
|
|
618
|
+
workspace: string;
|
|
619
|
+
id: string;
|
|
620
|
+
}): CancelablePromise<CompletedJob>;
|
|
621
|
+
/**
|
|
622
|
+
* cancel queued job
|
|
623
|
+
* @returns string job canceled
|
|
624
|
+
* @throws ApiError
|
|
625
|
+
*/
|
|
626
|
+
static cancelQueuedJob({ workspace, id, requestBody, }: {
|
|
627
|
+
workspace: string;
|
|
628
|
+
id: string;
|
|
629
|
+
/**
|
|
630
|
+
* reason
|
|
631
|
+
*/
|
|
632
|
+
requestBody: {
|
|
633
|
+
reason?: string;
|
|
634
|
+
};
|
|
635
|
+
}): CancelablePromise<string>;
|
|
636
|
+
/**
|
|
637
|
+
* force cancel queued job
|
|
638
|
+
* @returns string job canceled
|
|
639
|
+
* @throws ApiError
|
|
640
|
+
*/
|
|
641
|
+
static forceCancelQueuedJob({ workspace, id, requestBody, }: {
|
|
642
|
+
workspace: string;
|
|
643
|
+
id: string;
|
|
644
|
+
/**
|
|
645
|
+
* reason
|
|
646
|
+
*/
|
|
647
|
+
requestBody: {
|
|
648
|
+
reason?: string;
|
|
649
|
+
};
|
|
650
|
+
}): CancelablePromise<string>;
|
|
651
|
+
/**
|
|
652
|
+
* create an HMac signature given a job id and a resume id
|
|
653
|
+
* @returns string job signature
|
|
654
|
+
* @throws ApiError
|
|
655
|
+
*/
|
|
656
|
+
static createJobSignature({ workspace, id, resumeId, approver, }: {
|
|
657
|
+
workspace: string;
|
|
658
|
+
id: string;
|
|
659
|
+
resumeId: number;
|
|
660
|
+
approver?: string;
|
|
661
|
+
}): CancelablePromise<string>;
|
|
662
|
+
/**
|
|
663
|
+
* get resume urls given a job_id, resume_id and a nonce to resume a flow
|
|
664
|
+
* @returns any url endpoints
|
|
665
|
+
* @throws ApiError
|
|
666
|
+
*/
|
|
667
|
+
static getResumeUrls({ workspace, id, resumeId, approver, }: {
|
|
668
|
+
workspace: string;
|
|
669
|
+
id: string;
|
|
670
|
+
resumeId: number;
|
|
671
|
+
approver?: string;
|
|
672
|
+
}): CancelablePromise<{
|
|
673
|
+
approvalPage: string;
|
|
674
|
+
resume: string;
|
|
675
|
+
cancel: string;
|
|
676
|
+
}>;
|
|
677
|
+
/**
|
|
678
|
+
* resume a job for a suspended flow
|
|
679
|
+
* @returns string job resumed
|
|
680
|
+
* @throws ApiError
|
|
681
|
+
*/
|
|
682
|
+
static resumeSuspendedJobGet({ workspace, id, resumeId, signature, payload, approver, }: {
|
|
683
|
+
workspace: string;
|
|
684
|
+
id: string;
|
|
685
|
+
resumeId: number;
|
|
686
|
+
signature: string;
|
|
687
|
+
/**
|
|
688
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
689
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
690
|
+
*
|
|
691
|
+
*/
|
|
692
|
+
payload?: string;
|
|
693
|
+
approver?: string;
|
|
694
|
+
}): CancelablePromise<string>;
|
|
695
|
+
/**
|
|
696
|
+
* resume a job for a suspended flow
|
|
697
|
+
* @returns string job resumed
|
|
698
|
+
* @throws ApiError
|
|
699
|
+
*/
|
|
700
|
+
static resumeSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }: {
|
|
701
|
+
workspace: string;
|
|
702
|
+
id: string;
|
|
703
|
+
resumeId: number;
|
|
704
|
+
signature: string;
|
|
705
|
+
requestBody: Record<string, any>;
|
|
706
|
+
approver?: string;
|
|
707
|
+
}): CancelablePromise<string>;
|
|
708
|
+
/**
|
|
709
|
+
* resume a job for a suspended flow as an owner
|
|
710
|
+
* @returns string job resumed
|
|
711
|
+
* @throws ApiError
|
|
712
|
+
*/
|
|
713
|
+
static resumeSuspendedFlowAsOwner({ workspace, id, requestBody, }: {
|
|
714
|
+
workspace: string;
|
|
715
|
+
id: string;
|
|
716
|
+
requestBody: Record<string, any>;
|
|
717
|
+
}): CancelablePromise<string>;
|
|
718
|
+
/**
|
|
719
|
+
* cancel a job for a suspended flow
|
|
720
|
+
* @returns string job resumed
|
|
721
|
+
* @throws ApiError
|
|
722
|
+
*/
|
|
723
|
+
static cancelSuspendedJobGet({ workspace, id, resumeId, signature, approver, }: {
|
|
724
|
+
workspace: string;
|
|
725
|
+
id: string;
|
|
726
|
+
resumeId: number;
|
|
727
|
+
signature: string;
|
|
728
|
+
approver?: string;
|
|
729
|
+
}): CancelablePromise<string>;
|
|
730
|
+
/**
|
|
731
|
+
* cancel a job for a suspended flow
|
|
732
|
+
* @returns string job resumed
|
|
733
|
+
* @throws ApiError
|
|
734
|
+
*/
|
|
735
|
+
static cancelSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }: {
|
|
736
|
+
workspace: string;
|
|
737
|
+
id: string;
|
|
738
|
+
resumeId: number;
|
|
739
|
+
signature: string;
|
|
740
|
+
requestBody: Record<string, any>;
|
|
741
|
+
approver?: string;
|
|
742
|
+
}): CancelablePromise<string>;
|
|
743
|
+
/**
|
|
744
|
+
* get parent flow job of suspended job
|
|
745
|
+
* @returns any parent flow details
|
|
746
|
+
* @throws ApiError
|
|
747
|
+
*/
|
|
748
|
+
static getSuspendedJobFlow({ workspace, id, resumeId, signature, approver, }: {
|
|
749
|
+
workspace: string;
|
|
750
|
+
id: string;
|
|
751
|
+
resumeId: number;
|
|
752
|
+
signature: string;
|
|
753
|
+
approver?: string;
|
|
754
|
+
}): CancelablePromise<{
|
|
755
|
+
job: Job;
|
|
756
|
+
approvers: Array<{
|
|
757
|
+
resume_id: number;
|
|
758
|
+
approver: string;
|
|
759
|
+
}>;
|
|
760
|
+
}>;
|
|
761
|
+
}
|