windmill-components 1.13.25 → 1.22.0
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/common.js +1 -5
- package/components/AppConnect.svelte +281 -0
- package/components/AppConnect.svelte.d.ts +22 -0
- package/components/ArgInfo.svelte +11 -16
- package/components/ArgInput.svelte +73 -70
- package/components/ArgInput.svelte.d.ts +6 -1
- package/components/AutosizedTextarea.svelte +6 -8
- package/components/Badge.svelte +4 -10
- package/components/Button.svelte +22 -18
- package/components/ButtonAndDropdown.svelte +6 -12
- package/components/CenteredModal.svelte +30 -0
- package/components/CenteredModal.svelte.d.ts +19 -0
- package/components/ChevronButton.svelte +4 -9
- package/components/DisplayResult.svelte +58 -57
- package/components/Dropdown.svelte +8 -13
- package/components/Editor.svelte +108 -149
- package/components/Editor.svelte.d.ts +3 -1
- package/components/FieldHeader.svelte +7 -12
- package/components/FlowBuilder.svelte +72 -121
- package/components/FlowBuilder.svelte.d.ts +0 -2
- package/components/FlowEditor.svelte +185 -73
- package/components/FlowEditor.svelte.d.ts +4 -4
- package/components/FlowJobResult.svelte +23 -0
- package/components/FlowJobResult.svelte.d.ts +17 -0
- package/components/FlowPreview.svelte +36 -51
- package/components/FlowPreview.svelte.d.ts +7 -1
- package/components/FlowStatusViewer.svelte +66 -40
- package/components/FlowStatusViewer.svelte.d.ts +1 -1
- package/components/FlowViewer.svelte +100 -0
- package/components/FlowViewer.svelte.d.ts +24 -0
- package/components/GroupModal.svelte +13 -20
- package/components/IconedResourceType.svelte +15 -18
- package/components/InviteGlobalUser.svelte +8 -15
- package/components/InviteUser.svelte +9 -16
- package/components/ItemPicker.svelte +11 -14
- package/components/JobStatus.svelte +6 -11
- package/components/Modal.svelte +14 -17
- package/components/ModuleStep.svelte +125 -64
- package/components/ModuleStep.svelte.d.ts +4 -8
- package/components/ObjectResourceInput.svelte +15 -20
- package/components/ObjectTypeNarrowing.svelte +7 -12
- package/components/PageHeader.svelte +4 -9
- package/components/Password.svelte +6 -8
- package/components/Path.svelte +78 -38
- package/components/Path.svelte.d.ts +2 -0
- package/components/RadioButton.svelte +7 -8
- package/components/RadioButtonV2.svelte +33 -0
- package/components/RadioButtonV2.svelte.d.ts +20 -0
- package/components/Required.svelte +2 -4
- package/components/ResourceEditor.svelte +44 -48
- package/components/ResourcePicker.svelte +6 -7
- package/components/ResourcePicker.svelte.d.ts +2 -2
- package/components/ResourceTypePicker.svelte +8 -13
- package/components/RunForm.svelte +15 -20
- package/components/SchemaEditor.svelte +31 -61
- package/components/SchemaForm.svelte +126 -134
- package/components/SchemaForm.svelte.d.ts +6 -4
- package/components/SchemaModal.svelte +25 -40
- package/components/SchemaModal.svelte.d.ts +1 -1
- package/components/SchemaViewer.svelte +6 -12
- package/components/ScriptBuilder.svelte +76 -101
- package/components/ScriptEditor.svelte +55 -60
- package/components/ScriptPicker.svelte +28 -34
- package/components/ScriptPicker.svelte.d.ts +1 -0
- package/components/ScriptSchema.svelte +13 -17
- package/components/ShareModal.svelte +23 -29
- package/components/SharedBadge.svelte +11 -16
- package/components/StringTypeNarrowing.svelte +8 -11
- package/components/Switch.svelte.d.ts +2 -2
- package/components/TableCustom.svelte +5 -8
- package/components/TableSimple.svelte +9 -8
- package/components/Tabs.svelte +6 -8
- package/components/Toggle.svelte +34 -0
- package/components/Toggle.svelte.d.ts +28 -0
- package/components/Tooltip.svelte +56 -89
- package/components/Tooltip.svelte.d.ts +1 -5
- package/components/VariableEditor.svelte +30 -29
- package/components/flows/CopyFirstStepSchema.svelte +10 -0
- package/components/flows/CopyFirstStepSchema.svelte.d.ts +14 -0
- package/components/flows/DynamicInputHelpBox.svelte +72 -0
- package/components/flows/DynamicInputHelpBox.svelte.d.ts +14 -0
- package/components/flows/FlowInputs.svelte +27 -0
- package/components/flows/FlowInputs.svelte.d.ts +19 -0
- package/components/flows/FlowModuleHeader.svelte +91 -0
- package/components/flows/FlowModuleHeader.svelte.d.ts +22 -0
- package/components/flows/flowStore.d.ts +17 -0
- package/components/flows/flowStore.js +161 -0
- package/components/flows/pickers/FlowScriptPicker.svelte +11 -0
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +22 -0
- package/components/flows/pickers/PickHubScript.svelte +30 -0
- package/components/flows/pickers/PickHubScript.svelte.d.ts +18 -0
- package/components/flows/pickers/PickScript.svelte +38 -0
- package/components/flows/pickers/PickScript.svelte.d.ts +18 -0
- package/components/flows/utils.d.ts +21 -0
- package/components/flows/utils.js +164 -0
- package/components/icons/DbIcon.svelte +2 -5
- package/components/icons/Mail.svelte +2 -5
- package/components/icons/Mysql.svelte +2 -5
- package/components/icons/PostgresIcon.svelte +2 -5
- package/components/icons/Slack.svelte +2 -5
- package/components/propertyPicker/ObjectViewer.svelte +113 -0
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +21 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte +69 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +21 -0
- package/components/propertyPicker/PropPicker.svelte +24 -0
- package/components/propertyPicker/PropPicker.svelte.d.ts +18 -0
- package/components/propertyPicker/WarningMessage.svelte +43 -0
- package/components/propertyPicker/WarningMessage.svelte.d.ts +16 -0
- package/components/propertyPicker/utils.d.ts +2 -0
- package/components/propertyPicker/utils.js +40 -0
- package/gen/core/ApiError.d.ts +3 -1
- package/gen/core/ApiError.js +4 -6
- package/gen/core/ApiRequestOptions.js +1 -2
- package/gen/core/ApiResult.js +1 -2
- package/gen/core/CancelablePromise.js +2 -7
- package/gen/core/OpenAPI.js +2 -5
- package/gen/core/request.js +8 -13
- package/gen/index.d.ts +3 -0
- package/gen/index.js +28 -58
- package/gen/models/AuditLog.js +2 -5
- package/gen/models/CompletedJob.d.ts +3 -1
- package/gen/models/CompletedJob.js +3 -5
- package/gen/models/ContextualVariable.js +1 -2
- package/gen/models/CreateResource.d.ts +1 -0
- package/gen/models/CreateResource.js +1 -2
- package/gen/models/CreateVariable.d.ts +2 -0
- package/gen/models/CreateVariable.js +1 -2
- package/gen/models/CreateWorkspace.js +1 -2
- package/gen/models/EditResource.js +1 -2
- package/gen/models/EditResourceType.js +1 -2
- package/gen/models/EditSchedule.js +1 -2
- package/gen/models/EditVariable.js +1 -2
- package/gen/models/EditWorkspaceUser.js +1 -2
- package/gen/models/Flow.js +1 -2
- package/gen/models/FlowModule.d.ts +2 -0
- package/gen/models/FlowModule.js +1 -2
- package/gen/models/FlowModuleValue.d.ts +14 -2
- package/gen/models/FlowModuleValue.js +9 -5
- package/gen/models/FlowPreview.js +1 -2
- package/gen/models/FlowStatus.js +1 -2
- package/gen/models/FlowStatusModule.d.ts +6 -0
- package/gen/models/FlowStatusModule.js +2 -5
- package/gen/models/FlowValue.js +1 -2
- package/gen/models/GlobalUserInfo.js +2 -5
- package/gen/models/Group.js +1 -2
- package/gen/models/InputTransform.js +2 -5
- package/gen/models/Job.js +2 -5
- package/gen/models/ListableVariable.d.ts +2 -0
- package/gen/models/ListableVariable.js +1 -2
- package/gen/models/Login.js +1 -2
- package/gen/models/MainArgSignature.js +1 -2
- package/gen/models/NewSchedule.js +1 -2
- package/gen/models/NewToken.js +1 -2
- package/gen/models/NewUser.js +1 -2
- package/gen/models/Preview.js +2 -5
- package/gen/models/QueuedJob.d.ts +2 -1
- package/gen/models/QueuedJob.js +3 -5
- package/gen/models/Resource.d.ts +1 -0
- package/gen/models/Resource.js +1 -2
- package/gen/models/ResourceType.js +1 -2
- package/gen/models/Schedule.js +1 -2
- package/gen/models/Script.d.ts +1 -0
- package/gen/models/Script.js +2 -5
- package/gen/models/ScriptArgs.js +1 -2
- package/gen/models/SlackToken.d.ts +8 -0
- package/gen/models/SlackToken.js +4 -0
- package/gen/models/TokenResponse.d.ts +6 -0
- package/gen/models/TokenResponse.js +4 -0
- package/gen/models/TruncatedToken.js +1 -2
- package/gen/models/User.js +1 -2
- package/gen/models/UserWorkspaceList.js +1 -2
- package/gen/models/WorkerPing.js +1 -2
- package/gen/models/Workspace.js +1 -2
- package/gen/models/WorkspaceInvite.js +1 -2
- package/gen/services/AdminService.d.ts +6 -2
- package/gen/services/AdminService.js +6 -10
- package/gen/services/AuditService.d.ts +24 -8
- package/gen/services/AuditService.js +5 -9
- package/gen/services/FlowService.d.ts +37 -10
- package/gen/services/FlowService.js +23 -12
- package/gen/services/GranularAclService.d.ts +6 -2
- package/gen/services/GranularAclService.js +6 -10
- package/gen/services/GroupService.d.ts +18 -6
- package/gen/services/GroupService.js +11 -15
- package/gen/services/JobService.d.ts +167 -46
- package/gen/services/JobService.js +42 -22
- package/gen/services/OauthService.d.ts +104 -0
- package/gen/services/OauthService.js +133 -0
- package/gen/services/ResourceService.d.ts +39 -7
- package/gen/services/ResourceService.js +44 -18
- package/gen/services/ScheduleService.d.ts +36 -6
- package/gen/services/ScheduleService.js +39 -13
- package/gen/services/ScriptService.d.ts +66 -19
- package/gen/services/ScriptService.js +32 -20
- package/gen/services/SettingsService.js +5 -9
- package/gen/services/UserService.d.ts +49 -11
- package/gen/services/UserService.js +42 -29
- package/gen/services/VariableService.d.ts +19 -4
- package/gen/services/VariableService.js +24 -13
- package/gen/services/WorkerService.d.ts +6 -2
- package/gen/services/WorkerService.js +4 -8
- package/gen/services/WorkspaceService.d.ts +29 -24
- package/gen/services/WorkspaceService.js +23 -42
- package/infer.js +5 -9
- package/logout.js +20 -18
- package/package.json +51 -24
- package/script_helpers.d.ts +4 -0
- package/script_helpers.js +70 -0
- package/scripts.d.ts +2 -1
- package/scripts.js +11 -15
- package/stores.d.ts +6 -0
- package/stores.js +30 -22
- package/user.js +10 -15
- package/utils.d.ts +15 -1
- package/utils.js +191 -52
|
@@ -12,6 +12,7 @@ export declare class ScriptService {
|
|
|
12
12
|
summary: string;
|
|
13
13
|
app: string;
|
|
14
14
|
approved: boolean;
|
|
15
|
+
is_trigger: boolean;
|
|
15
16
|
}>>;
|
|
16
17
|
/**
|
|
17
18
|
* get hub script content by path
|
|
@@ -26,46 +27,76 @@ export declare class ScriptService {
|
|
|
26
27
|
* @returns Script All available scripts
|
|
27
28
|
* @throws ApiError
|
|
28
29
|
*/
|
|
29
|
-
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, }: {
|
|
30
|
+
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, isTrigger, }: {
|
|
30
31
|
workspace: string;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* which page to return (start at 1, default 1)
|
|
34
|
+
*/
|
|
32
35
|
page?: number;
|
|
33
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* number of items to return for a given page (default 30, max 100)
|
|
38
|
+
*/
|
|
34
39
|
perPage?: number;
|
|
35
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* order by desc order (default true)
|
|
42
|
+
*/
|
|
36
43
|
orderDesc?: boolean;
|
|
37
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* mask to filter exact matching user creator
|
|
46
|
+
*/
|
|
38
47
|
createdBy?: string;
|
|
39
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* mask to filter matching starting parh
|
|
50
|
+
*/
|
|
40
51
|
pathStart?: string;
|
|
41
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* mask to filter exact matching path
|
|
54
|
+
*/
|
|
42
55
|
pathExact?: string;
|
|
43
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* mask to filter scripts whom first direct parent has exact hash
|
|
58
|
+
*/
|
|
44
59
|
firstParentHash?: string;
|
|
45
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* mask to filter scripts whom last parent in the chain has exact hash.
|
|
46
62
|
* Beware that each script stores only a limited number of parents. Hence
|
|
47
63
|
* the last parent hash for a script is not necessarily its top-most parent.
|
|
48
64
|
* To find the top-most parent you will have to jump from last to last hash
|
|
49
65
|
* until finding the parent
|
|
50
|
-
*
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
51
68
|
lastParentHash?: string;
|
|
52
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* is the hash present in the array of stored parent hashes for this script.
|
|
53
71
|
* The same warning applies than for last_parent_hash. A script only store a
|
|
54
72
|
* limited number of direct parent
|
|
55
|
-
*
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
56
75
|
parentHash?: string;
|
|
57
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* (default false)
|
|
58
78
|
* show also the archived files.
|
|
59
79
|
* when multiple archived hash share the same path, only the ones with the latest create_at
|
|
60
80
|
* are displayed.
|
|
61
|
-
*
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
62
83
|
showArchived?: boolean;
|
|
63
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* (default regardless)
|
|
64
86
|
* if true show only the templates
|
|
65
87
|
* if false show only the non templates
|
|
66
88
|
* if not defined, show all regardless of if the script is a template
|
|
67
|
-
*
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
68
91
|
isTemplate?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* (default regardless)
|
|
94
|
+
* if true show only the trigger scripts
|
|
95
|
+
* if false show only the non trigger scripts
|
|
96
|
+
* if not defined, show all regardless of if the script is a trigger script
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
isTrigger?: boolean;
|
|
69
100
|
}): CancelablePromise<Array<Script>>;
|
|
70
101
|
/**
|
|
71
102
|
* create script
|
|
@@ -74,7 +105,9 @@ export declare class ScriptService {
|
|
|
74
105
|
*/
|
|
75
106
|
static createScript({ workspace, requestBody, }: {
|
|
76
107
|
workspace: string;
|
|
77
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Partially filled script
|
|
110
|
+
*/
|
|
78
111
|
requestBody: {
|
|
79
112
|
path: string;
|
|
80
113
|
parent_hash?: string;
|
|
@@ -85,6 +118,7 @@ export declare class ScriptService {
|
|
|
85
118
|
is_template?: boolean;
|
|
86
119
|
lock?: Array<string>;
|
|
87
120
|
language: 'python3' | 'deno';
|
|
121
|
+
is_trigger?: boolean;
|
|
88
122
|
};
|
|
89
123
|
}): CancelablePromise<string>;
|
|
90
124
|
/**
|
|
@@ -93,7 +127,9 @@ export declare class ScriptService {
|
|
|
93
127
|
* @throws ApiError
|
|
94
128
|
*/
|
|
95
129
|
static pythonToJsonschema({ requestBody, }: {
|
|
96
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* python code with the main function
|
|
132
|
+
*/
|
|
97
133
|
requestBody: string;
|
|
98
134
|
}): CancelablePromise<MainArgSignature>;
|
|
99
135
|
/**
|
|
@@ -102,7 +138,9 @@ export declare class ScriptService {
|
|
|
102
138
|
* @throws ApiError
|
|
103
139
|
*/
|
|
104
140
|
static denoToJsonschema({ requestBody, }: {
|
|
105
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* deno code with the main function
|
|
143
|
+
*/
|
|
106
144
|
requestBody: string;
|
|
107
145
|
}): CancelablePromise<MainArgSignature>;
|
|
108
146
|
/**
|
|
@@ -141,6 +179,15 @@ export declare class ScriptService {
|
|
|
141
179
|
workspace: string;
|
|
142
180
|
path: string;
|
|
143
181
|
}): CancelablePromise<Script>;
|
|
182
|
+
/**
|
|
183
|
+
* exists script by path
|
|
184
|
+
* @returns boolean does it exists
|
|
185
|
+
* @throws ApiError
|
|
186
|
+
*/
|
|
187
|
+
static existsScriptByPath({ workspace, path, }: {
|
|
188
|
+
workspace: string;
|
|
189
|
+
path: string;
|
|
190
|
+
}): CancelablePromise<boolean>;
|
|
144
191
|
/**
|
|
145
192
|
* get script by hash
|
|
146
193
|
* @returns Script script details
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class ScriptService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ScriptService {
|
|
7
4
|
/**
|
|
8
5
|
* list all available hub scripts
|
|
9
6
|
* @returns any hub scripts list
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listHubScripts() {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/scripts/hub/list',
|
|
16
13
|
});
|
|
@@ -21,7 +18,7 @@ class ScriptService {
|
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
static getHubScriptContentByPath({ path, }) {
|
|
24
|
-
return (
|
|
21
|
+
return __request(OpenAPI, {
|
|
25
22
|
method: 'GET',
|
|
26
23
|
url: '/scripts/hub/get/{path}',
|
|
27
24
|
path: {
|
|
@@ -34,8 +31,8 @@ class ScriptService {
|
|
|
34
31
|
* @returns Script All available scripts
|
|
35
32
|
* @throws ApiError
|
|
36
33
|
*/
|
|
37
|
-
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, }) {
|
|
38
|
-
return (
|
|
34
|
+
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, isTrigger, }) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
39
36
|
method: 'GET',
|
|
40
37
|
url: '/w/{workspace}/scripts/list',
|
|
41
38
|
path: {
|
|
@@ -53,6 +50,7 @@ class ScriptService {
|
|
|
53
50
|
'parent_hash': parentHash,
|
|
54
51
|
'show_archived': showArchived,
|
|
55
52
|
'is_template': isTemplate,
|
|
53
|
+
'is_trigger': isTrigger,
|
|
56
54
|
},
|
|
57
55
|
});
|
|
58
56
|
}
|
|
@@ -62,7 +60,7 @@ class ScriptService {
|
|
|
62
60
|
* @throws ApiError
|
|
63
61
|
*/
|
|
64
62
|
static createScript({ workspace, requestBody, }) {
|
|
65
|
-
return (
|
|
63
|
+
return __request(OpenAPI, {
|
|
66
64
|
method: 'POST',
|
|
67
65
|
url: '/w/{workspace}/scripts/create',
|
|
68
66
|
path: {
|
|
@@ -78,7 +76,7 @@ class ScriptService {
|
|
|
78
76
|
* @throws ApiError
|
|
79
77
|
*/
|
|
80
78
|
static pythonToJsonschema({ requestBody, }) {
|
|
81
|
-
return (
|
|
79
|
+
return __request(OpenAPI, {
|
|
82
80
|
method: 'POST',
|
|
83
81
|
url: '/scripts/python/tojsonschema',
|
|
84
82
|
body: requestBody,
|
|
@@ -91,7 +89,7 @@ class ScriptService {
|
|
|
91
89
|
* @throws ApiError
|
|
92
90
|
*/
|
|
93
91
|
static denoToJsonschema({ requestBody, }) {
|
|
94
|
-
return (
|
|
92
|
+
return __request(OpenAPI, {
|
|
95
93
|
method: 'POST',
|
|
96
94
|
url: '/scripts/deno/tojsonschema',
|
|
97
95
|
body: requestBody,
|
|
@@ -104,7 +102,7 @@ class ScriptService {
|
|
|
104
102
|
* @throws ApiError
|
|
105
103
|
*/
|
|
106
104
|
static archiveScriptByPath({ workspace, path, }) {
|
|
107
|
-
return (
|
|
105
|
+
return __request(OpenAPI, {
|
|
108
106
|
method: 'POST',
|
|
109
107
|
url: '/w/{workspace}/scripts/archive/p/{path}',
|
|
110
108
|
path: {
|
|
@@ -119,7 +117,7 @@ class ScriptService {
|
|
|
119
117
|
* @throws ApiError
|
|
120
118
|
*/
|
|
121
119
|
static archiveScriptByHash({ workspace, hash, }) {
|
|
122
|
-
return (
|
|
120
|
+
return __request(OpenAPI, {
|
|
123
121
|
method: 'POST',
|
|
124
122
|
url: '/w/{workspace}/scripts/archive/h/{hash}',
|
|
125
123
|
path: {
|
|
@@ -134,7 +132,7 @@ class ScriptService {
|
|
|
134
132
|
* @throws ApiError
|
|
135
133
|
*/
|
|
136
134
|
static deleteScriptByHash({ workspace, hash, }) {
|
|
137
|
-
return (
|
|
135
|
+
return __request(OpenAPI, {
|
|
138
136
|
method: 'POST',
|
|
139
137
|
url: '/w/{workspace}/scripts/delete/h/{hash}',
|
|
140
138
|
path: {
|
|
@@ -149,7 +147,7 @@ class ScriptService {
|
|
|
149
147
|
* @throws ApiError
|
|
150
148
|
*/
|
|
151
149
|
static getScriptByPath({ workspace, path, }) {
|
|
152
|
-
return (
|
|
150
|
+
return __request(OpenAPI, {
|
|
153
151
|
method: 'GET',
|
|
154
152
|
url: '/w/{workspace}/scripts/get/p/{path}',
|
|
155
153
|
path: {
|
|
@@ -158,13 +156,28 @@ class ScriptService {
|
|
|
158
156
|
},
|
|
159
157
|
});
|
|
160
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* exists script by path
|
|
161
|
+
* @returns boolean does it exists
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
static existsScriptByPath({ workspace, path, }) {
|
|
165
|
+
return __request(OpenAPI, {
|
|
166
|
+
method: 'GET',
|
|
167
|
+
url: '/w/{workspace}/scripts/exists/p/{path}',
|
|
168
|
+
path: {
|
|
169
|
+
'workspace': workspace,
|
|
170
|
+
'path': path,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
161
174
|
/**
|
|
162
175
|
* get script by hash
|
|
163
176
|
* @returns Script script details
|
|
164
177
|
* @throws ApiError
|
|
165
178
|
*/
|
|
166
179
|
static getScriptByHash({ workspace, hash, }) {
|
|
167
|
-
return (
|
|
180
|
+
return __request(OpenAPI, {
|
|
168
181
|
method: 'GET',
|
|
169
182
|
url: '/w/{workspace}/scripts/get/h/{hash}',
|
|
170
183
|
path: {
|
|
@@ -179,7 +192,7 @@ class ScriptService {
|
|
|
179
192
|
* @throws ApiError
|
|
180
193
|
*/
|
|
181
194
|
static getScriptDeploymentStatus({ workspace, hash, }) {
|
|
182
|
-
return (
|
|
195
|
+
return __request(OpenAPI, {
|
|
183
196
|
method: 'GET',
|
|
184
197
|
url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
|
|
185
198
|
path: {
|
|
@@ -189,4 +202,3 @@ class ScriptService {
|
|
|
189
202
|
});
|
|
190
203
|
}
|
|
191
204
|
}
|
|
192
|
-
exports.ScriptService = ScriptService;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class SettingsService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class SettingsService {
|
|
7
4
|
/**
|
|
8
5
|
* get backend version
|
|
9
6
|
* @returns string git version of backend
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static backendVersion() {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/version',
|
|
16
13
|
});
|
|
@@ -21,10 +18,9 @@ class SettingsService {
|
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
static getOpenApiYaml() {
|
|
24
|
-
return (
|
|
21
|
+
return __request(OpenAPI, {
|
|
25
22
|
method: 'GET',
|
|
26
23
|
url: '/openapi.yaml',
|
|
27
24
|
});
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
exports.SettingsService = SettingsService;
|
|
@@ -15,7 +15,9 @@ export declare class UserService {
|
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
17
|
static login({ requestBody, }: {
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* credentials
|
|
20
|
+
*/
|
|
19
21
|
requestBody: Login;
|
|
20
22
|
}): CancelablePromise<string>;
|
|
21
23
|
/**
|
|
@@ -25,7 +27,9 @@ export declare class UserService {
|
|
|
25
27
|
*/
|
|
26
28
|
static createUser({ workspace, requestBody, }: {
|
|
27
29
|
workspace: string;
|
|
28
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* new user
|
|
32
|
+
*/
|
|
29
33
|
requestBody: NewUser;
|
|
30
34
|
}): CancelablePromise<string>;
|
|
31
35
|
/**
|
|
@@ -36,7 +40,9 @@ export declare class UserService {
|
|
|
36
40
|
static updateUser({ workspace, username, requestBody, }: {
|
|
37
41
|
workspace: string;
|
|
38
42
|
username: string;
|
|
39
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* new user
|
|
45
|
+
*/
|
|
40
46
|
requestBody: EditWorkspaceUser;
|
|
41
47
|
}): CancelablePromise<string>;
|
|
42
48
|
/**
|
|
@@ -45,7 +51,9 @@ export declare class UserService {
|
|
|
45
51
|
* @throws ApiError
|
|
46
52
|
*/
|
|
47
53
|
static setPassword({ requestBody, }: {
|
|
48
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* set password
|
|
56
|
+
*/
|
|
49
57
|
requestBody: {
|
|
50
58
|
password: string;
|
|
51
59
|
};
|
|
@@ -56,7 +64,9 @@ export declare class UserService {
|
|
|
56
64
|
* @throws ApiError
|
|
57
65
|
*/
|
|
58
66
|
static createUserGlobally({ requestBody, }: {
|
|
59
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* user info
|
|
69
|
+
*/
|
|
60
70
|
requestBody: {
|
|
61
71
|
email: string;
|
|
62
72
|
password: string;
|
|
@@ -72,7 +82,9 @@ export declare class UserService {
|
|
|
72
82
|
*/
|
|
73
83
|
static globalUserUpdate({ email, requestBody, }: {
|
|
74
84
|
email: string;
|
|
75
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* new user info
|
|
87
|
+
*/
|
|
76
88
|
requestBody: {
|
|
77
89
|
is_super_admin?: boolean;
|
|
78
90
|
};
|
|
@@ -132,7 +144,9 @@ export declare class UserService {
|
|
|
132
144
|
* @throws ApiError
|
|
133
145
|
*/
|
|
134
146
|
static acceptInvite({ requestBody, }: {
|
|
135
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* accept invite
|
|
149
|
+
*/
|
|
136
150
|
requestBody: {
|
|
137
151
|
workspace_id: string;
|
|
138
152
|
username: string;
|
|
@@ -144,7 +158,9 @@ export declare class UserService {
|
|
|
144
158
|
* @throws ApiError
|
|
145
159
|
*/
|
|
146
160
|
static declineInvite({ requestBody, }: {
|
|
147
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* decline invite
|
|
163
|
+
*/
|
|
148
164
|
requestBody: {
|
|
149
165
|
workspace_id: string;
|
|
150
166
|
};
|
|
@@ -164,9 +180,13 @@ export declare class UserService {
|
|
|
164
180
|
* @throws ApiError
|
|
165
181
|
*/
|
|
166
182
|
static listUsersAsSuperAdmin({ page, perPage, }: {
|
|
167
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* which page to return (start at 1, default 1)
|
|
185
|
+
*/
|
|
168
186
|
page?: number;
|
|
169
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* number of items to return for a given page (default 30, max 100)
|
|
189
|
+
*/
|
|
170
190
|
perPage?: number;
|
|
171
191
|
}): CancelablePromise<Array<GlobalUserInfo>>;
|
|
172
192
|
/**
|
|
@@ -191,7 +211,9 @@ export declare class UserService {
|
|
|
191
211
|
* @throws ApiError
|
|
192
212
|
*/
|
|
193
213
|
static createToken({ requestBody, }: {
|
|
194
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* new token
|
|
216
|
+
*/
|
|
195
217
|
requestBody: NewToken;
|
|
196
218
|
}): CancelablePromise<string>;
|
|
197
219
|
/**
|
|
@@ -208,4 +230,20 @@ export declare class UserService {
|
|
|
208
230
|
* @throws ApiError
|
|
209
231
|
*/
|
|
210
232
|
static listTokens(): CancelablePromise<Array<TruncatedToken>>;
|
|
233
|
+
/**
|
|
234
|
+
* login with oauth authorization flow
|
|
235
|
+
* @returns string Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.
|
|
236
|
+
*
|
|
237
|
+
* @throws ApiError
|
|
238
|
+
*/
|
|
239
|
+
static loginWithOauth({ clientName, requestBody, }: {
|
|
240
|
+
clientName: string;
|
|
241
|
+
/**
|
|
242
|
+
* Partially filled script
|
|
243
|
+
*/
|
|
244
|
+
requestBody: {
|
|
245
|
+
code?: string;
|
|
246
|
+
state?: string;
|
|
247
|
+
};
|
|
248
|
+
}): CancelablePromise<string>;
|
|
211
249
|
}
|