windmill-client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ApiError.d.ts +10 -0
- package/dist/core/ApiError.js +15 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiRequestOptions.js +2 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/ApiResult.js +2 -0
- package/dist/core/CancelablePromise.d.ts +26 -0
- package/dist/core/CancelablePromise.js +94 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/OpenAPI.js +14 -0
- package/dist/core/request.d.ts +13 -0
- package/dist/core/request.js +269 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.js +85 -0
- package/dist/models/AppWithLastVersion.d.ts +21 -0
- package/dist/models/AppWithLastVersion.js +15 -0
- package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
- package/dist/models/AppWithLastVersionWDraft.js +5 -0
- package/dist/models/AuditLog.d.ts +32 -0
- package/dist/models/AuditLog.js +32 -0
- package/dist/models/BranchAll.d.ts +10 -0
- package/dist/models/BranchAll.js +5 -0
- package/dist/models/BranchOne.d.ts +10 -0
- package/dist/models/BranchOne.js +5 -0
- package/dist/models/CompletedJob.d.ts +57 -0
- package/dist/models/CompletedJob.js +26 -0
- package/dist/models/ContextualVariable.d.ts +5 -0
- package/dist/models/ContextualVariable.js +5 -0
- package/dist/models/CreateInput.d.ts +4 -0
- package/dist/models/CreateInput.js +5 -0
- package/dist/models/CreateResource.d.ts +6 -0
- package/dist/models/CreateResource.js +5 -0
- package/dist/models/CreateVariable.d.ts +8 -0
- package/dist/models/CreateVariable.js +5 -0
- package/dist/models/CreateWorkspace.d.ts +5 -0
- package/dist/models/CreateWorkspace.js +5 -0
- package/dist/models/EditResource.d.ts +5 -0
- package/dist/models/EditResource.js +5 -0
- package/dist/models/EditResourceType.d.ts +4 -0
- package/dist/models/EditResourceType.js +5 -0
- package/dist/models/EditSchedule.d.ts +6 -0
- package/dist/models/EditSchedule.js +5 -0
- package/dist/models/EditVariable.d.ts +6 -0
- package/dist/models/EditVariable.js +5 -0
- package/dist/models/EditWorkspaceUser.d.ts +5 -0
- package/dist/models/EditWorkspaceUser.js +5 -0
- package/dist/models/Flow.d.ts +3 -0
- package/dist/models/Flow.js +5 -0
- package/dist/models/FlowMetadata.d.ts +11 -0
- package/dist/models/FlowMetadata.js +5 -0
- package/dist/models/FlowModule.d.ts +18 -0
- package/dist/models/FlowModule.js +5 -0
- package/dist/models/FlowModuleValue.d.ts +8 -0
- package/dist/models/FlowModuleValue.js +5 -0
- package/dist/models/FlowPreview.d.ts +7 -0
- package/dist/models/FlowPreview.js +5 -0
- package/dist/models/FlowStatus.d.ts +12 -0
- package/dist/models/FlowStatus.js +5 -0
- package/dist/models/FlowStatusModule.d.ts +34 -0
- package/dist/models/FlowStatusModule.js +18 -0
- package/dist/models/FlowValue.d.ts +6 -0
- package/dist/models/FlowValue.js +5 -0
- package/dist/models/Folder.d.ts +5 -0
- package/dist/models/Folder.js +5 -0
- package/dist/models/ForloopFlow.d.ts +9 -0
- package/dist/models/ForloopFlow.js +5 -0
- package/dist/models/GlobalUserInfo.d.ts +14 -0
- package/dist/models/GlobalUserInfo.js +14 -0
- package/dist/models/Group.d.ts +6 -0
- package/dist/models/Group.js +5 -0
- package/dist/models/Identity.d.ts +4 -0
- package/dist/models/Identity.js +5 -0
- package/dist/models/Input.d.ts +8 -0
- package/dist/models/Input.js +5 -0
- package/dist/models/InputTransform.d.ts +3 -0
- package/dist/models/InputTransform.js +5 -0
- package/dist/models/JavascriptTransform.d.ts +4 -0
- package/dist/models/JavascriptTransform.js +5 -0
- package/dist/models/Job.d.ts +11 -0
- package/dist/models/Job.js +14 -0
- package/dist/models/ListableApp.d.ts +18 -0
- package/dist/models/ListableApp.js +15 -0
- package/dist/models/ListableResource.d.ts +14 -0
- package/dist/models/ListableResource.js +5 -0
- package/dist/models/ListableVariable.d.ts +14 -0
- package/dist/models/ListableVariable.js +5 -0
- package/dist/models/Login.d.ts +4 -0
- package/dist/models/Login.js +5 -0
- package/dist/models/MainArgSignature.d.ts +33 -0
- package/dist/models/MainArgSignature.js +14 -0
- package/dist/models/NewSchedule.d.ts +10 -0
- package/dist/models/NewSchedule.js +5 -0
- package/dist/models/NewScript.d.ts +29 -0
- package/dist/models/NewScript.js +24 -0
- package/dist/models/NewScriptWithDraft.d.ts +5 -0
- package/dist/models/NewScriptWithDraft.js +5 -0
- package/dist/models/NewToken.d.ts +4 -0
- package/dist/models/NewToken.js +5 -0
- package/dist/models/NewTokenImpersonate.d.ts +5 -0
- package/dist/models/NewTokenImpersonate.js +5 -0
- package/dist/models/NewUser.d.ts +5 -0
- package/dist/models/NewUser.js +5 -0
- package/dist/models/OpenFlow.d.ts +7 -0
- package/dist/models/OpenFlow.js +5 -0
- package/dist/models/OpenFlowWPath.d.ts +4 -0
- package/dist/models/OpenFlowWPath.js +5 -0
- package/dist/models/PathFlow.d.ts +6 -0
- package/dist/models/PathFlow.js +5 -0
- package/dist/models/PathScript.d.ts +7 -0
- package/dist/models/PathScript.js +5 -0
- package/dist/models/Policy.d.ts +13 -0
- package/dist/models/Policy.js +15 -0
- package/dist/models/Preview.d.ts +16 -0
- package/dist/models/Preview.js +16 -0
- package/dist/models/QueuedJob.d.ts +55 -0
- package/dist/models/QueuedJob.js +26 -0
- package/dist/models/RawScript.d.ts +18 -0
- package/dist/models/RawScript.js +16 -0
- package/dist/models/Resource.d.ts +9 -0
- package/dist/models/Resource.js +5 -0
- package/dist/models/ResourceType.d.ts +6 -0
- package/dist/models/ResourceType.js +5 -0
- package/dist/models/Retry.d.ts +11 -0
- package/dist/models/Retry.js +5 -0
- package/dist/models/RunnableType.d.ts +5 -0
- package/dist/models/RunnableType.js +12 -0
- package/dist/models/Schedule.d.ts +15 -0
- package/dist/models/Schedule.js +5 -0
- package/dist/models/Script.d.ts +43 -0
- package/dist/models/Script.js +24 -0
- package/dist/models/ScriptArgs.d.ts +1 -0
- package/dist/models/ScriptArgs.js +5 -0
- package/dist/models/SlackToken.d.ts +8 -0
- package/dist/models/SlackToken.js +5 -0
- package/dist/models/StaticTransform.d.ts +4 -0
- package/dist/models/StaticTransform.js +5 -0
- package/dist/models/TokenResponse.d.ts +6 -0
- package/dist/models/TokenResponse.js +5 -0
- package/dist/models/TruncatedToken.d.ts +7 -0
- package/dist/models/TruncatedToken.js +5 -0
- package/dist/models/UpdateInput.d.ts +5 -0
- package/dist/models/UpdateInput.js +5 -0
- package/dist/models/Usage.d.ts +3 -0
- package/dist/models/Usage.js +5 -0
- package/dist/models/User.d.ts +14 -0
- package/dist/models/User.js +5 -0
- package/dist/models/UserWorkspaceList.d.ts +8 -0
- package/dist/models/UserWorkspaceList.js +5 -0
- package/dist/models/WorkerPing.d.ts +8 -0
- package/dist/models/WorkerPing.js +5 -0
- package/dist/models/Workspace.d.ts +6 -0
- package/dist/models/Workspace.js +5 -0
- package/dist/models/WorkspaceInvite.d.ts +6 -0
- package/dist/models/WorkspaceInvite.js +5 -0
- package/dist/services/AdminService.d.ts +39 -0
- package/dist/services/AdminService.js +56 -0
- package/dist/services/AppService.d.ts +194 -0
- package/dist/services/AppService.js +211 -0
- package/dist/services/AuditService.d.ts +53 -0
- package/dist/services/AuditService.js +47 -0
- package/dist/services/CaptureService.d.ts +30 -0
- package/dist/services/CaptureService.js +56 -0
- package/dist/services/DraftService.d.ts +16 -0
- package/dist/services/DraftService.js +24 -0
- package/dist/services/FavoriteService.d.ts +27 -0
- package/dist/services/FavoriteService.js +40 -0
- package/dist/services/FlowService.d.ts +186 -0
- package/dist/services/FlowService.js +200 -0
- package/dist/services/FolderService.d.ts +128 -0
- package/dist/services/FolderService.js +155 -0
- package/dist/services/GranularAclService.d.ts +46 -0
- package/dist/services/GranularAclService.js +60 -0
- package/dist/services/GroupService.d.ts +110 -0
- package/dist/services/GroupService.js +140 -0
- package/dist/services/InputService.d.ts +78 -0
- package/dist/services/InputService.js +99 -0
- package/dist/services/JobService.d.ts +636 -0
- package/dist/services/JobService.js +564 -0
- package/dist/services/OauthService.d.ts +95 -0
- package/dist/services/OauthService.js +124 -0
- package/dist/services/ResourceService.d.ts +177 -0
- package/dist/services/ResourceService.js +244 -0
- package/dist/services/ScheduleService.d.ts +103 -0
- package/dist/services/ScheduleService.js +134 -0
- package/dist/services/ScriptService.d.ts +303 -0
- package/dist/services/ScriptService.js +339 -0
- package/dist/services/SettingsService.d.ts +15 -0
- package/dist/services/SettingsService.js +30 -0
- package/dist/services/UserService.d.ts +284 -0
- package/dist/services/UserService.js +376 -0
- package/dist/services/VariableService.d.ts +83 -0
- package/dist/services/VariableService.js +123 -0
- package/dist/services/WorkerService.d.ts +25 -0
- package/dist/services/WorkerService.js +34 -0
- package/dist/services/WorkspaceService.d.ts +227 -0
- package/dist/services/WorkspaceService.js +275 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { AppWithLastVersion } from '../models/AppWithLastVersion';
|
|
2
|
+
import type { AppWithLastVersionWDraft } from '../models/AppWithLastVersionWDraft';
|
|
3
|
+
import type { ListableApp } from '../models/ListableApp';
|
|
4
|
+
import type { Policy } from '../models/Policy';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class AppService {
|
|
7
|
+
/**
|
|
8
|
+
* list all available hub apps
|
|
9
|
+
* @returns any hub apps list
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listHubApps(): CancelablePromise<{
|
|
13
|
+
apps?: Array<{
|
|
14
|
+
id: number;
|
|
15
|
+
app_id: number;
|
|
16
|
+
summary: string;
|
|
17
|
+
apps: Array<string>;
|
|
18
|
+
approved: boolean;
|
|
19
|
+
votes: number;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* get hub app by id
|
|
24
|
+
* @returns any app
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static getHubAppById({ id, }: {
|
|
28
|
+
id: number;
|
|
29
|
+
}): CancelablePromise<{
|
|
30
|
+
app: {
|
|
31
|
+
summary: string;
|
|
32
|
+
value: any;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* list all available apps
|
|
37
|
+
* @returns ListableApp All available apps
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
|
|
41
|
+
workspace: string;
|
|
42
|
+
/**
|
|
43
|
+
* which page to return (start at 1, default 1)
|
|
44
|
+
*/
|
|
45
|
+
page?: number;
|
|
46
|
+
/**
|
|
47
|
+
* number of items to return for a given page (default 30, max 100)
|
|
48
|
+
*/
|
|
49
|
+
perPage?: number;
|
|
50
|
+
/**
|
|
51
|
+
* order by desc order (default true)
|
|
52
|
+
*/
|
|
53
|
+
orderDesc?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* mask to filter exact matching user creator
|
|
56
|
+
*/
|
|
57
|
+
createdBy?: string;
|
|
58
|
+
/**
|
|
59
|
+
* mask to filter matching starting path
|
|
60
|
+
*/
|
|
61
|
+
pathStart?: string;
|
|
62
|
+
/**
|
|
63
|
+
* mask to filter exact matching path
|
|
64
|
+
*/
|
|
65
|
+
pathExact?: string;
|
|
66
|
+
/**
|
|
67
|
+
* (default false)
|
|
68
|
+
* show only the starred items
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
starredOnly?: boolean;
|
|
72
|
+
}): CancelablePromise<Array<ListableApp>>;
|
|
73
|
+
/**
|
|
74
|
+
* does an app exisst at path
|
|
75
|
+
* @returns boolean app exists
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static existsApp({ workspace, path, }: {
|
|
79
|
+
workspace: string;
|
|
80
|
+
path: string;
|
|
81
|
+
}): CancelablePromise<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* get app by path
|
|
84
|
+
* @returns AppWithLastVersion app details
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static getAppByPath({ workspace, path, }: {
|
|
88
|
+
workspace: string;
|
|
89
|
+
path: string;
|
|
90
|
+
}): CancelablePromise<AppWithLastVersion>;
|
|
91
|
+
/**
|
|
92
|
+
* get app by path with draft
|
|
93
|
+
* @returns AppWithLastVersionWDraft app details with draft
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static getAppByPathWithDraft({ workspace, path, }: {
|
|
97
|
+
workspace: string;
|
|
98
|
+
path: string;
|
|
99
|
+
}): CancelablePromise<AppWithLastVersionWDraft>;
|
|
100
|
+
/**
|
|
101
|
+
* get public app by secret
|
|
102
|
+
* @returns AppWithLastVersion app details
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
static getPublicAppBySecret({ workspace, path, }: {
|
|
106
|
+
workspace: string;
|
|
107
|
+
path: string;
|
|
108
|
+
}): CancelablePromise<AppWithLastVersion>;
|
|
109
|
+
/**
|
|
110
|
+
* get public secret of app
|
|
111
|
+
* @returns string app secret
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static getPublicSecretOfApp({ workspace, path, }: {
|
|
115
|
+
workspace: string;
|
|
116
|
+
path: string;
|
|
117
|
+
}): CancelablePromise<string>;
|
|
118
|
+
/**
|
|
119
|
+
* get app by version
|
|
120
|
+
* @returns AppWithLastVersion app details
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
static getAppByVersion({ workspace, id, }: {
|
|
124
|
+
workspace: string;
|
|
125
|
+
id: number;
|
|
126
|
+
}): CancelablePromise<AppWithLastVersion>;
|
|
127
|
+
/**
|
|
128
|
+
* create app
|
|
129
|
+
* @returns string app created
|
|
130
|
+
* @throws ApiError
|
|
131
|
+
*/
|
|
132
|
+
static createApp({ workspace, requestBody, }: {
|
|
133
|
+
workspace: string;
|
|
134
|
+
/**
|
|
135
|
+
* new app
|
|
136
|
+
*/
|
|
137
|
+
requestBody: {
|
|
138
|
+
path: string;
|
|
139
|
+
value: any;
|
|
140
|
+
summary: string;
|
|
141
|
+
policy: Policy;
|
|
142
|
+
draft_only?: boolean;
|
|
143
|
+
};
|
|
144
|
+
}): CancelablePromise<string>;
|
|
145
|
+
/**
|
|
146
|
+
* delete app
|
|
147
|
+
* @returns string app deleted
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static deleteApp({ workspace, path, }: {
|
|
151
|
+
workspace: string;
|
|
152
|
+
path: string;
|
|
153
|
+
}): CancelablePromise<string>;
|
|
154
|
+
/**
|
|
155
|
+
* update app
|
|
156
|
+
* @returns string app updated
|
|
157
|
+
* @throws ApiError
|
|
158
|
+
*/
|
|
159
|
+
static updateApp({ workspace, path, requestBody, }: {
|
|
160
|
+
workspace: string;
|
|
161
|
+
path: string;
|
|
162
|
+
/**
|
|
163
|
+
* update app
|
|
164
|
+
*/
|
|
165
|
+
requestBody: {
|
|
166
|
+
path?: string;
|
|
167
|
+
summary?: string;
|
|
168
|
+
value?: any;
|
|
169
|
+
policy?: Policy;
|
|
170
|
+
};
|
|
171
|
+
}): CancelablePromise<string>;
|
|
172
|
+
/**
|
|
173
|
+
* executeComponent
|
|
174
|
+
* @returns string job uuid
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static executeComponent({ workspace, path, requestBody, }: {
|
|
178
|
+
workspace: string;
|
|
179
|
+
path: string;
|
|
180
|
+
/**
|
|
181
|
+
* update app
|
|
182
|
+
*/
|
|
183
|
+
requestBody: {
|
|
184
|
+
path?: string;
|
|
185
|
+
args: any;
|
|
186
|
+
raw_code?: {
|
|
187
|
+
content: string;
|
|
188
|
+
language: string;
|
|
189
|
+
path?: string;
|
|
190
|
+
};
|
|
191
|
+
force_viewer_static_fields?: any;
|
|
192
|
+
};
|
|
193
|
+
}): CancelablePromise<string>;
|
|
194
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class AppService {
|
|
7
|
+
/**
|
|
8
|
+
* list all available hub apps
|
|
9
|
+
* @returns any hub apps list
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listHubApps() {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/apps/hub/list',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* get hub app by id
|
|
20
|
+
* @returns any app
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static getHubAppById({ id, }) {
|
|
24
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/apps/hub/get/{id}',
|
|
27
|
+
path: {
|
|
28
|
+
'id': id,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* list all available apps
|
|
34
|
+
* @returns ListableApp All available apps
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
|
|
38
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
39
|
+
method: 'GET',
|
|
40
|
+
url: '/w/{workspace}/apps/list',
|
|
41
|
+
path: {
|
|
42
|
+
'workspace': workspace,
|
|
43
|
+
},
|
|
44
|
+
query: {
|
|
45
|
+
'page': page,
|
|
46
|
+
'per_page': perPage,
|
|
47
|
+
'order_desc': orderDesc,
|
|
48
|
+
'created_by': createdBy,
|
|
49
|
+
'path_start': pathStart,
|
|
50
|
+
'path_exact': pathExact,
|
|
51
|
+
'starred_only': starredOnly,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* does an app exisst at path
|
|
57
|
+
* @returns boolean app exists
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static existsApp({ workspace, path, }) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
url: '/w/{workspace}/apps/exists/{path}',
|
|
64
|
+
path: {
|
|
65
|
+
'workspace': workspace,
|
|
66
|
+
'path': path,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* get app by path
|
|
72
|
+
* @returns AppWithLastVersion app details
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static getAppByPath({ workspace, path, }) {
|
|
76
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
77
|
+
method: 'GET',
|
|
78
|
+
url: '/w/{workspace}/apps/get/p/{path}',
|
|
79
|
+
path: {
|
|
80
|
+
'workspace': workspace,
|
|
81
|
+
'path': path,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* get app by path with draft
|
|
87
|
+
* @returns AppWithLastVersionWDraft app details with draft
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
static getAppByPathWithDraft({ workspace, path, }) {
|
|
91
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
92
|
+
method: 'GET',
|
|
93
|
+
url: '/w/{workspace}/apps/get/draft/{path}',
|
|
94
|
+
path: {
|
|
95
|
+
'workspace': workspace,
|
|
96
|
+
'path': path,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* get public app by secret
|
|
102
|
+
* @returns AppWithLastVersion app details
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
static getPublicAppBySecret({ workspace, path, }) {
|
|
106
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
107
|
+
method: 'GET',
|
|
108
|
+
url: '/w/{workspace}/apps_u/public_app/{path}',
|
|
109
|
+
path: {
|
|
110
|
+
'workspace': workspace,
|
|
111
|
+
'path': path,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* get public secret of app
|
|
117
|
+
* @returns string app secret
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
static getPublicSecretOfApp({ workspace, path, }) {
|
|
121
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
122
|
+
method: 'GET',
|
|
123
|
+
url: '/w/{workspace}/apps/secret_of/{path}',
|
|
124
|
+
path: {
|
|
125
|
+
'workspace': workspace,
|
|
126
|
+
'path': path,
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* get app by version
|
|
132
|
+
* @returns AppWithLastVersion app details
|
|
133
|
+
* @throws ApiError
|
|
134
|
+
*/
|
|
135
|
+
static getAppByVersion({ workspace, id, }) {
|
|
136
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
137
|
+
method: 'GET',
|
|
138
|
+
url: '/w/{workspace}/apps/get/v/{id}',
|
|
139
|
+
path: {
|
|
140
|
+
'workspace': workspace,
|
|
141
|
+
'id': id,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* create app
|
|
147
|
+
* @returns string app created
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static createApp({ workspace, requestBody, }) {
|
|
151
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: '/w/{workspace}/apps/create',
|
|
154
|
+
path: {
|
|
155
|
+
'workspace': workspace,
|
|
156
|
+
},
|
|
157
|
+
body: requestBody,
|
|
158
|
+
mediaType: 'application/json',
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* delete app
|
|
163
|
+
* @returns string app deleted
|
|
164
|
+
* @throws ApiError
|
|
165
|
+
*/
|
|
166
|
+
static deleteApp({ workspace, path, }) {
|
|
167
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
168
|
+
method: 'DELETE',
|
|
169
|
+
url: '/w/{workspace}/apps/delete/{path}',
|
|
170
|
+
path: {
|
|
171
|
+
'workspace': workspace,
|
|
172
|
+
'path': path,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* update app
|
|
178
|
+
* @returns string app updated
|
|
179
|
+
* @throws ApiError
|
|
180
|
+
*/
|
|
181
|
+
static updateApp({ workspace, path, requestBody, }) {
|
|
182
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
183
|
+
method: 'POST',
|
|
184
|
+
url: '/w/{workspace}/apps/update/{path}',
|
|
185
|
+
path: {
|
|
186
|
+
'workspace': workspace,
|
|
187
|
+
'path': path,
|
|
188
|
+
},
|
|
189
|
+
body: requestBody,
|
|
190
|
+
mediaType: 'application/json',
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* executeComponent
|
|
195
|
+
* @returns string job uuid
|
|
196
|
+
* @throws ApiError
|
|
197
|
+
*/
|
|
198
|
+
static executeComponent({ workspace, path, requestBody, }) {
|
|
199
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
200
|
+
method: 'POST',
|
|
201
|
+
url: '/w/{workspace}/apps_u/execute_component/{path}',
|
|
202
|
+
path: {
|
|
203
|
+
'workspace': workspace,
|
|
204
|
+
'path': path,
|
|
205
|
+
},
|
|
206
|
+
body: requestBody,
|
|
207
|
+
mediaType: 'application/json',
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.AppService = AppService;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { AuditLog } from '../models/AuditLog';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class AuditService {
|
|
4
|
+
/**
|
|
5
|
+
* get audit log (requires admin privilege)
|
|
6
|
+
* @returns AuditLog an audit log
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getAuditLog({ workspace, id, }: {
|
|
10
|
+
workspace: string;
|
|
11
|
+
id: number;
|
|
12
|
+
}): CancelablePromise<AuditLog>;
|
|
13
|
+
/**
|
|
14
|
+
* list audit logs (requires admin privilege)
|
|
15
|
+
* @returns AuditLog a list of audit logs
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }: {
|
|
19
|
+
workspace: string;
|
|
20
|
+
/**
|
|
21
|
+
* which page to return (start at 1, default 1)
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* number of items to return for a given page (default 30, max 100)
|
|
26
|
+
*/
|
|
27
|
+
perPage?: number;
|
|
28
|
+
/**
|
|
29
|
+
* filter on created before (exclusive) timestamp
|
|
30
|
+
*/
|
|
31
|
+
before?: string;
|
|
32
|
+
/**
|
|
33
|
+
* filter on created after (exclusive) timestamp
|
|
34
|
+
*/
|
|
35
|
+
after?: string;
|
|
36
|
+
/**
|
|
37
|
+
* filter on exact username of user
|
|
38
|
+
*/
|
|
39
|
+
username?: string;
|
|
40
|
+
/**
|
|
41
|
+
* filter on exact or prefix name of operation
|
|
42
|
+
*/
|
|
43
|
+
operation?: string;
|
|
44
|
+
/**
|
|
45
|
+
* filter on exact or prefix name of resource
|
|
46
|
+
*/
|
|
47
|
+
resource?: string;
|
|
48
|
+
/**
|
|
49
|
+
* filter on type of operation
|
|
50
|
+
*/
|
|
51
|
+
actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute';
|
|
52
|
+
}): CancelablePromise<Array<AuditLog>>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class AuditService {
|
|
7
|
+
/**
|
|
8
|
+
* get audit log (requires admin privilege)
|
|
9
|
+
* @returns AuditLog an audit log
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getAuditLog({ workspace, id, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/w/{workspace}/audit/get/{id}',
|
|
16
|
+
path: {
|
|
17
|
+
'workspace': workspace,
|
|
18
|
+
'id': id,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* list audit logs (requires admin privilege)
|
|
24
|
+
* @returns AuditLog a list of audit logs
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }) {
|
|
28
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
29
|
+
method: 'GET',
|
|
30
|
+
url: '/w/{workspace}/audit/list',
|
|
31
|
+
path: {
|
|
32
|
+
'workspace': workspace,
|
|
33
|
+
},
|
|
34
|
+
query: {
|
|
35
|
+
'page': page,
|
|
36
|
+
'per_page': perPage,
|
|
37
|
+
'before': before,
|
|
38
|
+
'after': after,
|
|
39
|
+
'username': username,
|
|
40
|
+
'operation': operation,
|
|
41
|
+
'resource': resource,
|
|
42
|
+
'action_kind': actionKind,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.AuditService = AuditService;
|
|
@@ -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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaptureService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class CaptureService {
|
|
7
|
+
/**
|
|
8
|
+
* update flow preview capture
|
|
9
|
+
* @returns void
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static updateCapture({ workspace, path, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: '/w/{workspace}/capture_u/{path}',
|
|
16
|
+
path: {
|
|
17
|
+
'workspace': workspace,
|
|
18
|
+
'path': path,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* create flow preview capture
|
|
24
|
+
* @returns any flow preview capture created
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static createCapture({ workspace, path, }) {
|
|
28
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
29
|
+
method: 'PUT',
|
|
30
|
+
url: '/w/{workspace}/capture/{path}',
|
|
31
|
+
path: {
|
|
32
|
+
'workspace': workspace,
|
|
33
|
+
'path': path,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* get flow preview capture
|
|
39
|
+
* @returns any captured flow preview
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static getCapture({ workspace, path, }) {
|
|
43
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
|
+
method: 'GET',
|
|
45
|
+
url: '/w/{workspace}/capture/{path}',
|
|
46
|
+
path: {
|
|
47
|
+
'workspace': workspace,
|
|
48
|
+
'path': path,
|
|
49
|
+
},
|
|
50
|
+
errors: {
|
|
51
|
+
404: `capture does not exist for this flow`,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.CaptureService = CaptureService;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DraftService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class DraftService {
|
|
7
|
+
/**
|
|
8
|
+
* create draft
|
|
9
|
+
* @returns string draft created
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static createDraft({ workspace, requestBody, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: '/w/{workspace}/drafts/create',
|
|
16
|
+
path: {
|
|
17
|
+
'workspace': workspace,
|
|
18
|
+
},
|
|
19
|
+
body: requestBody,
|
|
20
|
+
mediaType: 'application/json',
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DraftService = DraftService;
|
|
@@ -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';
|
|
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';
|
|
25
|
+
};
|
|
26
|
+
}): CancelablePromise<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FavoriteService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class FavoriteService {
|
|
7
|
+
/**
|
|
8
|
+
* star item
|
|
9
|
+
* @returns any star item
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static star({ workspace, requestBody, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: '/w/{workspace}/favorites/star',
|
|
16
|
+
path: {
|
|
17
|
+
'workspace': workspace,
|
|
18
|
+
},
|
|
19
|
+
body: requestBody,
|
|
20
|
+
mediaType: 'application/json',
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* unstar item
|
|
25
|
+
* @returns any unstar item
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static unstar({ workspace, requestBody, }) {
|
|
29
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
url: '/w/{workspace}/favorites/unstar',
|
|
32
|
+
path: {
|
|
33
|
+
'workspace': workspace,
|
|
34
|
+
},
|
|
35
|
+
body: requestBody,
|
|
36
|
+
mediaType: 'application/json',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.FavoriteService = FavoriteService;
|