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,30 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class CaptureService {
|
|
3
|
+
/**
|
|
4
|
+
* update flow preview capture
|
|
5
|
+
* @returns void
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static updateCapture({ workspace, path, }: {
|
|
9
|
+
workspace: string;
|
|
10
|
+
path: string;
|
|
11
|
+
}): CancelablePromise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* create flow preview capture
|
|
14
|
+
* @returns any flow preview capture created
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static createCapture({ workspace, path, }: {
|
|
18
|
+
workspace: string;
|
|
19
|
+
path: string;
|
|
20
|
+
}): CancelablePromise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* get flow preview capture
|
|
23
|
+
* @returns any captured flow preview
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static getCapture({ workspace, path, }: {
|
|
27
|
+
workspace: string;
|
|
28
|
+
path: string;
|
|
29
|
+
}): CancelablePromise<any>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class CaptureService {
|
|
4
|
+
/**
|
|
5
|
+
* update flow preview capture
|
|
6
|
+
* @returns void
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static updateCapture({ workspace, path, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/w/{workspace}/capture_u/{path}',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
'path': path,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* create flow preview capture
|
|
21
|
+
* @returns any flow preview capture created
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static createCapture({ workspace, path, }) {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: 'PUT',
|
|
27
|
+
url: '/w/{workspace}/capture/{path}',
|
|
28
|
+
path: {
|
|
29
|
+
'workspace': workspace,
|
|
30
|
+
'path': path,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* get flow preview capture
|
|
36
|
+
* @returns any captured flow preview
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static getCapture({ workspace, path, }) {
|
|
40
|
+
return __request(OpenAPI, {
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: '/w/{workspace}/capture/{path}',
|
|
43
|
+
path: {
|
|
44
|
+
'workspace': workspace,
|
|
45
|
+
'path': path,
|
|
46
|
+
},
|
|
47
|
+
errors: {
|
|
48
|
+
404: `capture does not exist for this flow`,
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class DraftService {
|
|
3
|
+
/**
|
|
4
|
+
* create draft
|
|
5
|
+
* @returns string draft created
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static createDraft({ workspace, requestBody, }: {
|
|
9
|
+
workspace: string;
|
|
10
|
+
requestBody: {
|
|
11
|
+
path: string;
|
|
12
|
+
typ: 'flow' | 'script' | 'app';
|
|
13
|
+
value?: any;
|
|
14
|
+
};
|
|
15
|
+
}): CancelablePromise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* delete draft
|
|
18
|
+
* @returns string draft deleted
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static deleteDraft({ workspace, kind, path, }: {
|
|
22
|
+
workspace: string;
|
|
23
|
+
kind: 'script' | 'flow' | 'app';
|
|
24
|
+
path: string;
|
|
25
|
+
}): CancelablePromise<string>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class DraftService {
|
|
4
|
+
/**
|
|
5
|
+
* create draft
|
|
6
|
+
* @returns string draft created
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static createDraft({ workspace, requestBody, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/w/{workspace}/drafts/create',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
},
|
|
16
|
+
body: requestBody,
|
|
17
|
+
mediaType: 'application/json',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* delete draft
|
|
22
|
+
* @returns string draft deleted
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static deleteDraft({ workspace, kind, path, }) {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'DELETE',
|
|
28
|
+
url: '/w/{workspace}/drafts/delete/{kind}/{path}',
|
|
29
|
+
path: {
|
|
30
|
+
'workspace': workspace,
|
|
31
|
+
'kind': kind,
|
|
32
|
+
'path': path,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class FavoriteService {
|
|
3
|
+
/**
|
|
4
|
+
* star item
|
|
5
|
+
* @returns any star item
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static star({ workspace, requestBody, }: {
|
|
9
|
+
workspace: string;
|
|
10
|
+
requestBody?: {
|
|
11
|
+
path?: string;
|
|
12
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
13
|
+
};
|
|
14
|
+
}): CancelablePromise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* unstar item
|
|
17
|
+
* @returns any unstar item
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static unstar({ workspace, requestBody, }: {
|
|
21
|
+
workspace: string;
|
|
22
|
+
requestBody?: {
|
|
23
|
+
path?: string;
|
|
24
|
+
favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
|
|
25
|
+
};
|
|
26
|
+
}): CancelablePromise<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class FavoriteService {
|
|
4
|
+
/**
|
|
5
|
+
* star item
|
|
6
|
+
* @returns any star item
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static star({ workspace, requestBody, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/w/{workspace}/favorites/star',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
},
|
|
16
|
+
body: requestBody,
|
|
17
|
+
mediaType: 'application/json',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* unstar item
|
|
22
|
+
* @returns any unstar item
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static unstar({ workspace, requestBody, }) {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'POST',
|
|
28
|
+
url: '/w/{workspace}/favorites/unstar',
|
|
29
|
+
path: {
|
|
30
|
+
'workspace': workspace,
|
|
31
|
+
},
|
|
32
|
+
body: requestBody,
|
|
33
|
+
mediaType: 'application/json',
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { Flow } from '../models/Flow';
|
|
2
|
+
import type { Input } from '../models/Input';
|
|
3
|
+
import type { OpenFlow } from '../models/OpenFlow';
|
|
4
|
+
import type { OpenFlowWPath } from '../models/OpenFlowWPath';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class FlowService {
|
|
7
|
+
/**
|
|
8
|
+
* list all available hub flows
|
|
9
|
+
* @returns any hub flows list
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listHubFlows(): CancelablePromise<{
|
|
13
|
+
flows?: Array<{
|
|
14
|
+
id: number;
|
|
15
|
+
flow_id: number;
|
|
16
|
+
summary: string;
|
|
17
|
+
apps: Array<string>;
|
|
18
|
+
approved: boolean;
|
|
19
|
+
votes: number;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* get hub flow by id
|
|
24
|
+
* @returns any flow
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static getHubFlowById({ id, }: {
|
|
28
|
+
id: number;
|
|
29
|
+
}): CancelablePromise<{
|
|
30
|
+
flow?: OpenFlow;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* list all available flow paths
|
|
34
|
+
* @returns string list of flow paths
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static listFlowPaths({ workspace, }: {
|
|
38
|
+
workspace: string;
|
|
39
|
+
}): CancelablePromise<Array<string>>;
|
|
40
|
+
/**
|
|
41
|
+
* list all available flows
|
|
42
|
+
* @returns any All available flow
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }: {
|
|
46
|
+
workspace: string;
|
|
47
|
+
/**
|
|
48
|
+
* which page to return (start at 1, default 1)
|
|
49
|
+
*/
|
|
50
|
+
page?: number;
|
|
51
|
+
/**
|
|
52
|
+
* number of items to return for a given page (default 30, max 100)
|
|
53
|
+
*/
|
|
54
|
+
perPage?: number;
|
|
55
|
+
/**
|
|
56
|
+
* order by desc order (default true)
|
|
57
|
+
*/
|
|
58
|
+
orderDesc?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* mask to filter exact matching user creator
|
|
61
|
+
*/
|
|
62
|
+
createdBy?: string;
|
|
63
|
+
/**
|
|
64
|
+
* mask to filter matching starting path
|
|
65
|
+
*/
|
|
66
|
+
pathStart?: string;
|
|
67
|
+
/**
|
|
68
|
+
* mask to filter exact matching path
|
|
69
|
+
*/
|
|
70
|
+
pathExact?: string;
|
|
71
|
+
/**
|
|
72
|
+
* (default false)
|
|
73
|
+
* show also the archived files.
|
|
74
|
+
* when multiple archived hash share the same path, only the ones with the latest create_at
|
|
75
|
+
* are displayed.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
showArchived?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* (default false)
|
|
81
|
+
* show only the starred items
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
starredOnly?: boolean;
|
|
85
|
+
}): CancelablePromise<Array<(Flow & {
|
|
86
|
+
has_draft?: boolean;
|
|
87
|
+
draft_only?: boolean;
|
|
88
|
+
})>>;
|
|
89
|
+
/**
|
|
90
|
+
* get flow by path
|
|
91
|
+
* @returns Flow flow details
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
static getFlowByPath({ workspace, path, }: {
|
|
95
|
+
workspace: string;
|
|
96
|
+
path: string;
|
|
97
|
+
}): CancelablePromise<Flow>;
|
|
98
|
+
/**
|
|
99
|
+
* get flow by path with draft
|
|
100
|
+
* @returns any flow details with draft
|
|
101
|
+
* @throws ApiError
|
|
102
|
+
*/
|
|
103
|
+
static getFlowByPathWithDraft({ workspace, path, }: {
|
|
104
|
+
workspace: string;
|
|
105
|
+
path: string;
|
|
106
|
+
}): CancelablePromise<(Flow & {
|
|
107
|
+
draft?: Flow;
|
|
108
|
+
})>;
|
|
109
|
+
/**
|
|
110
|
+
* exists flow by path
|
|
111
|
+
* @returns boolean flow details
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static existsFlowByPath({ workspace, path, }: {
|
|
115
|
+
workspace: string;
|
|
116
|
+
path: string;
|
|
117
|
+
}): CancelablePromise<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* create flow
|
|
120
|
+
* @returns string flow created
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
static createFlow({ workspace, requestBody, }: {
|
|
124
|
+
workspace: string;
|
|
125
|
+
/**
|
|
126
|
+
* Partially filled flow
|
|
127
|
+
*/
|
|
128
|
+
requestBody: (OpenFlowWPath & {
|
|
129
|
+
draft_only?: boolean;
|
|
130
|
+
});
|
|
131
|
+
}): CancelablePromise<string>;
|
|
132
|
+
/**
|
|
133
|
+
* update flow
|
|
134
|
+
* @returns string flow updated
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static updateFlow({ workspace, path, requestBody, }: {
|
|
138
|
+
workspace: string;
|
|
139
|
+
path: string;
|
|
140
|
+
/**
|
|
141
|
+
* Partially filled flow
|
|
142
|
+
*/
|
|
143
|
+
requestBody: OpenFlowWPath;
|
|
144
|
+
}): CancelablePromise<string>;
|
|
145
|
+
/**
|
|
146
|
+
* archive flow by path
|
|
147
|
+
* @returns string flow archived
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static archiveFlowByPath({ workspace, path, requestBody, }: {
|
|
151
|
+
workspace: string;
|
|
152
|
+
path: string;
|
|
153
|
+
/**
|
|
154
|
+
* archiveFlow
|
|
155
|
+
*/
|
|
156
|
+
requestBody: {
|
|
157
|
+
archived?: boolean;
|
|
158
|
+
};
|
|
159
|
+
}): CancelablePromise<string>;
|
|
160
|
+
/**
|
|
161
|
+
* delete flow by path
|
|
162
|
+
* @returns string flow delete
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
static deleteFlowByPath({ workspace, path, }: {
|
|
166
|
+
workspace: string;
|
|
167
|
+
path: string;
|
|
168
|
+
}): CancelablePromise<string>;
|
|
169
|
+
/**
|
|
170
|
+
* list inputs for previous completed flow jobs
|
|
171
|
+
* @returns Input input history for completed jobs with this flow path
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
static getFlowInputHistoryByPath({ workspace, path, page, perPage, }: {
|
|
175
|
+
workspace: string;
|
|
176
|
+
path: string;
|
|
177
|
+
/**
|
|
178
|
+
* which page to return (start at 1, default 1)
|
|
179
|
+
*/
|
|
180
|
+
page?: number;
|
|
181
|
+
/**
|
|
182
|
+
* number of items to return for a given page (default 30, max 100)
|
|
183
|
+
*/
|
|
184
|
+
perPage?: number;
|
|
185
|
+
}): CancelablePromise<Array<Input>>;
|
|
186
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class FlowService {
|
|
4
|
+
/**
|
|
5
|
+
* list all available hub flows
|
|
6
|
+
* @returns any hub flows list
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static listHubFlows() {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'GET',
|
|
12
|
+
url: '/flows/hub/list',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* get hub flow by id
|
|
17
|
+
* @returns any flow
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static getHubFlowById({ id, }) {
|
|
21
|
+
return __request(OpenAPI, {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/flows/hub/get/{id}',
|
|
24
|
+
path: {
|
|
25
|
+
'id': id,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* list all available flow paths
|
|
31
|
+
* @returns string list of flow paths
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static listFlowPaths({ workspace, }) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/w/{workspace}/flows/list_paths',
|
|
38
|
+
path: {
|
|
39
|
+
'workspace': workspace,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* list all available flows
|
|
45
|
+
* @returns any All available flow
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }) {
|
|
49
|
+
return __request(OpenAPI, {
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/w/{workspace}/flows/list',
|
|
52
|
+
path: {
|
|
53
|
+
'workspace': workspace,
|
|
54
|
+
},
|
|
55
|
+
query: {
|
|
56
|
+
'page': page,
|
|
57
|
+
'per_page': perPage,
|
|
58
|
+
'order_desc': orderDesc,
|
|
59
|
+
'created_by': createdBy,
|
|
60
|
+
'path_start': pathStart,
|
|
61
|
+
'path_exact': pathExact,
|
|
62
|
+
'show_archived': showArchived,
|
|
63
|
+
'starred_only': starredOnly,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* get flow by path
|
|
69
|
+
* @returns Flow flow details
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static getFlowByPath({ workspace, path, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/w/{workspace}/flows/get/{path}',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
'path': path,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* get flow by path with draft
|
|
84
|
+
* @returns any flow details with draft
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static getFlowByPathWithDraft({ workspace, path, }) {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: 'GET',
|
|
90
|
+
url: '/w/{workspace}/flows/get/draft/{path}',
|
|
91
|
+
path: {
|
|
92
|
+
'workspace': workspace,
|
|
93
|
+
'path': path,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* exists flow by path
|
|
99
|
+
* @returns boolean flow details
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static existsFlowByPath({ workspace, path, }) {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '/w/{workspace}/flows/exists/{path}',
|
|
106
|
+
path: {
|
|
107
|
+
'workspace': workspace,
|
|
108
|
+
'path': path,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* create flow
|
|
114
|
+
* @returns string flow created
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
static createFlow({ workspace, requestBody, }) {
|
|
118
|
+
return __request(OpenAPI, {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
url: '/w/{workspace}/flows/create',
|
|
121
|
+
path: {
|
|
122
|
+
'workspace': workspace,
|
|
123
|
+
},
|
|
124
|
+
body: requestBody,
|
|
125
|
+
mediaType: 'application/json',
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* update flow
|
|
130
|
+
* @returns string flow updated
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
static updateFlow({ workspace, path, requestBody, }) {
|
|
134
|
+
return __request(OpenAPI, {
|
|
135
|
+
method: 'POST',
|
|
136
|
+
url: '/w/{workspace}/flows/update/{path}',
|
|
137
|
+
path: {
|
|
138
|
+
'workspace': workspace,
|
|
139
|
+
'path': path,
|
|
140
|
+
},
|
|
141
|
+
body: requestBody,
|
|
142
|
+
mediaType: 'application/json',
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* archive flow by path
|
|
147
|
+
* @returns string flow archived
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static archiveFlowByPath({ workspace, path, requestBody, }) {
|
|
151
|
+
return __request(OpenAPI, {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: '/w/{workspace}/flows/archive/{path}',
|
|
154
|
+
path: {
|
|
155
|
+
'workspace': workspace,
|
|
156
|
+
'path': path,
|
|
157
|
+
},
|
|
158
|
+
body: requestBody,
|
|
159
|
+
mediaType: 'application/json',
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* delete flow by path
|
|
164
|
+
* @returns string flow delete
|
|
165
|
+
* @throws ApiError
|
|
166
|
+
*/
|
|
167
|
+
static deleteFlowByPath({ workspace, path, }) {
|
|
168
|
+
return __request(OpenAPI, {
|
|
169
|
+
method: 'DELETE',
|
|
170
|
+
url: '/w/{workspace}/flows/delete/{path}',
|
|
171
|
+
path: {
|
|
172
|
+
'workspace': workspace,
|
|
173
|
+
'path': path,
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* list inputs for previous completed flow jobs
|
|
179
|
+
* @returns Input input history for completed jobs with this flow path
|
|
180
|
+
* @throws ApiError
|
|
181
|
+
*/
|
|
182
|
+
static getFlowInputHistoryByPath({ workspace, path, page, perPage, }) {
|
|
183
|
+
return __request(OpenAPI, {
|
|
184
|
+
method: 'GET',
|
|
185
|
+
url: '/w/{workspace}/flows/input_history/p/{path}',
|
|
186
|
+
path: {
|
|
187
|
+
'workspace': workspace,
|
|
188
|
+
'path': path,
|
|
189
|
+
},
|
|
190
|
+
query: {
|
|
191
|
+
'page': page,
|
|
192
|
+
'per_page': perPage,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|