windmill-components 1.13.23 → 1.13.24
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 +5 -1
- package/components/ArgInfo.svelte +16 -11
- package/components/ArgInput.svelte +50 -45
- package/components/AutosizedTextarea.svelte +8 -6
- package/components/Badge.svelte +10 -4
- package/components/Button.svelte +11 -6
- package/components/ButtonAndDropdown.svelte +12 -6
- package/components/ChevronButton.svelte +9 -4
- package/components/DisplayResult.svelte +11 -6
- package/components/Dropdown.svelte +13 -8
- package/components/Editor.svelte +95 -62
- package/components/FieldHeader.svelte +12 -7
- package/components/FlowBuilder.svelte +35 -30
- package/components/FlowEditor.svelte +25 -19
- package/components/FlowPreview.svelte +31 -27
- package/components/FlowStatusViewer.svelte +21 -17
- package/components/GroupModal.svelte +20 -13
- package/components/IconedResourceType.svelte +16 -11
- package/components/InviteGlobalUser.svelte +15 -8
- package/components/InviteUser.svelte +16 -9
- package/components/ItemPicker.svelte +14 -11
- package/components/JobStatus.svelte +10 -5
- package/components/Modal.svelte +14 -9
- package/components/ModuleStep.svelte +24 -20
- package/components/ObjectResourceInput.svelte +20 -16
- package/components/ObjectTypeNarrowing.svelte +12 -7
- package/components/PageHeader.svelte +9 -4
- package/components/Password.svelte +8 -6
- package/components/Path.svelte +30 -23
- package/components/RadioButton.svelte +7 -6
- package/components/Required.svelte +4 -2
- package/components/ResourceEditor.svelte +33 -25
- package/components/ResourcePicker.svelte +7 -6
- package/components/ResourceTypePicker.svelte +13 -8
- package/components/RunForm.svelte +19 -15
- package/components/SchemaEditor.svelte +61 -31
- package/components/SchemaForm.svelte +22 -16
- package/components/SchemaModal.svelte +40 -25
- package/components/SchemaViewer.svelte +12 -6
- package/components/ScriptBuilder.svelte +44 -38
- package/components/ScriptEditor.svelte +58 -53
- package/components/ScriptPicker.svelte +34 -28
- package/components/ScriptSchema.svelte +17 -13
- package/components/ShareModal.svelte +29 -23
- package/components/SharedBadge.svelte +16 -11
- package/components/StringTypeNarrowing.svelte +11 -8
- package/components/TableCustom.svelte +8 -5
- package/components/TableSimple.svelte +8 -9
- package/components/Tabs.svelte +8 -6
- package/components/Tooltip.svelte +11 -5
- package/components/VariableEditor.svelte +27 -19
- package/components/icons/DbIcon.svelte +5 -2
- package/components/icons/Mail.svelte +5 -2
- package/components/icons/Mysql.svelte +5 -2
- package/components/icons/PostgresIcon.svelte +5 -2
- package/components/icons/Slack.svelte +5 -2
- package/gen/core/ApiError.js +5 -1
- package/gen/core/ApiRequestOptions.js +2 -1
- package/gen/core/ApiResult.js +2 -1
- package/gen/core/CancelablePromise.js +7 -2
- package/gen/core/OpenAPI.js +4 -1
- package/gen/core/request.js +13 -8
- package/gen/index.js +58 -27
- package/gen/models/AuditLog.js +5 -2
- package/gen/models/CompletedJob.js +5 -2
- package/gen/models/ContextualVariable.js +2 -1
- package/gen/models/CreateResource.js +2 -1
- package/gen/models/CreateVariable.js +2 -1
- package/gen/models/CreateWorkspace.js +2 -1
- package/gen/models/EditResource.js +2 -1
- package/gen/models/EditResourceType.js +2 -1
- package/gen/models/EditSchedule.js +2 -1
- package/gen/models/EditVariable.js +2 -1
- package/gen/models/EditWorkspaceUser.js +2 -1
- package/gen/models/Flow.js +2 -1
- package/gen/models/FlowModule.js +2 -1
- package/gen/models/FlowModuleValue.js +5 -2
- package/gen/models/FlowPreview.js +2 -1
- package/gen/models/FlowStatus.js +2 -1
- package/gen/models/FlowStatusModule.js +5 -2
- package/gen/models/FlowValue.js +2 -1
- package/gen/models/GlobalUserInfo.js +5 -2
- package/gen/models/Group.js +2 -1
- package/gen/models/InputTransform.js +5 -2
- package/gen/models/Job.js +5 -2
- package/gen/models/ListableVariable.js +2 -1
- package/gen/models/Login.js +2 -1
- package/gen/models/MainArgSignature.js +2 -1
- package/gen/models/NewSchedule.js +2 -1
- package/gen/models/NewToken.js +2 -1
- package/gen/models/NewUser.js +2 -1
- package/gen/models/Preview.js +5 -2
- package/gen/models/QueuedJob.js +5 -2
- package/gen/models/Resource.js +2 -1
- package/gen/models/ResourceType.js +2 -1
- package/gen/models/Schedule.js +2 -1
- package/gen/models/Script.js +5 -2
- package/gen/models/ScriptArgs.js +2 -1
- package/gen/models/TruncatedToken.js +2 -1
- package/gen/models/User.js +2 -1
- package/gen/models/UserWorkspaceList.js +2 -1
- package/gen/models/WorkerPing.js +2 -1
- package/gen/models/Workspace.js +2 -1
- package/gen/models/WorkspaceInvite.js +2 -1
- package/gen/services/AdminService.js +10 -6
- package/gen/services/AuditService.js +9 -5
- package/gen/services/FlowService.js +12 -8
- package/gen/services/GranularAclService.js +10 -6
- package/gen/services/GroupService.js +15 -11
- package/gen/services/JobService.js +20 -16
- package/gen/services/ResourceService.js +18 -14
- package/gen/services/ScheduleService.js +13 -9
- package/gen/services/ScriptService.js +19 -15
- package/gen/services/SettingsService.js +9 -5
- package/gen/services/UserService.js +29 -25
- package/gen/services/VariableService.js +13 -9
- package/gen/services/WorkerService.js +8 -4
- package/gen/services/WorkspaceService.js +20 -16
- package/infer.js +9 -5
- package/logout.js +17 -12
- package/package.json +3 -2
- package/scripts.js +15 -11
- package/stores.js +22 -18
- package/user.js +15 -10
- package/utils.js +52 -26
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class ResourceService {
|
|
4
7
|
/**
|
|
5
8
|
* create resource
|
|
6
9
|
* @returns string resource created
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static createResource({ workspace, requestBody, }) {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'POST',
|
|
12
15
|
url: '/w/{workspace}/resources/create',
|
|
13
16
|
path: {
|
|
@@ -23,7 +26,7 @@ export class ResourceService {
|
|
|
23
26
|
* @throws ApiError
|
|
24
27
|
*/
|
|
25
28
|
static deleteResource({ workspace, path, }) {
|
|
26
|
-
return
|
|
29
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
27
30
|
method: 'DELETE',
|
|
28
31
|
url: '/w/{workspace}/resources/delete/{path}',
|
|
29
32
|
path: {
|
|
@@ -38,7 +41,7 @@ export class ResourceService {
|
|
|
38
41
|
* @throws ApiError
|
|
39
42
|
*/
|
|
40
43
|
static updateResource({ workspace, path, requestBody, }) {
|
|
41
|
-
return
|
|
44
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
42
45
|
method: 'POST',
|
|
43
46
|
url: '/w/{workspace}/resources/update/{path}',
|
|
44
47
|
path: {
|
|
@@ -55,7 +58,7 @@ export class ResourceService {
|
|
|
55
58
|
* @throws ApiError
|
|
56
59
|
*/
|
|
57
60
|
static getResource({ workspace, path, }) {
|
|
58
|
-
return
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
59
62
|
method: 'GET',
|
|
60
63
|
url: '/w/{workspace}/resources/get/{path}',
|
|
61
64
|
path: {
|
|
@@ -70,7 +73,7 @@ export class ResourceService {
|
|
|
70
73
|
* @throws ApiError
|
|
71
74
|
*/
|
|
72
75
|
static listResource({ workspace, page, perPage, resourceType, }) {
|
|
73
|
-
return
|
|
76
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
74
77
|
method: 'GET',
|
|
75
78
|
url: '/w/{workspace}/resources/list',
|
|
76
79
|
path: {
|
|
@@ -89,7 +92,7 @@ export class ResourceService {
|
|
|
89
92
|
* @throws ApiError
|
|
90
93
|
*/
|
|
91
94
|
static createResourceType({ workspace, requestBody, }) {
|
|
92
|
-
return
|
|
95
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
93
96
|
method: 'POST',
|
|
94
97
|
url: '/w/{workspace}/resources/type/create',
|
|
95
98
|
path: {
|
|
@@ -105,7 +108,7 @@ export class ResourceService {
|
|
|
105
108
|
* @throws ApiError
|
|
106
109
|
*/
|
|
107
110
|
static deleteResourceType({ workspace, path, }) {
|
|
108
|
-
return
|
|
111
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
109
112
|
method: 'DELETE',
|
|
110
113
|
url: '/w/{workspace}/resources/type/delete/{path}',
|
|
111
114
|
path: {
|
|
@@ -120,7 +123,7 @@ export class ResourceService {
|
|
|
120
123
|
* @throws ApiError
|
|
121
124
|
*/
|
|
122
125
|
static updateResourceType({ workspace, path, requestBody, }) {
|
|
123
|
-
return
|
|
126
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
124
127
|
method: 'POST',
|
|
125
128
|
url: '/w/{workspace}/resources/type/update/{path}',
|
|
126
129
|
path: {
|
|
@@ -137,7 +140,7 @@ export class ResourceService {
|
|
|
137
140
|
* @throws ApiError
|
|
138
141
|
*/
|
|
139
142
|
static getResourceType({ workspace, path, }) {
|
|
140
|
-
return
|
|
143
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
141
144
|
method: 'GET',
|
|
142
145
|
url: '/w/{workspace}/resources/type/get/{path}',
|
|
143
146
|
path: {
|
|
@@ -152,7 +155,7 @@ export class ResourceService {
|
|
|
152
155
|
* @throws ApiError
|
|
153
156
|
*/
|
|
154
157
|
static listResourceType({ workspace, }) {
|
|
155
|
-
return
|
|
158
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
156
159
|
method: 'GET',
|
|
157
160
|
url: '/w/{workspace}/resources/type/list',
|
|
158
161
|
path: {
|
|
@@ -166,7 +169,7 @@ export class ResourceService {
|
|
|
166
169
|
* @throws ApiError
|
|
167
170
|
*/
|
|
168
171
|
static listResourceTypeNames({ workspace, }) {
|
|
169
|
-
return
|
|
172
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
170
173
|
method: 'GET',
|
|
171
174
|
url: '/w/{workspace}/resources/type/listnames',
|
|
172
175
|
path: {
|
|
@@ -175,3 +178,4 @@ export class ResourceService {
|
|
|
175
178
|
});
|
|
176
179
|
}
|
|
177
180
|
}
|
|
181
|
+
exports.ResourceService = ResourceService;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class ScheduleService {
|
|
4
7
|
/**
|
|
5
8
|
* preview schedule
|
|
6
9
|
* @returns string the preview of the next 10 time this schedule would apply to
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static previewSchedule({ requestBody, }) {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'POST',
|
|
12
15
|
url: '/schedules/preview',
|
|
13
16
|
body: requestBody,
|
|
@@ -20,7 +23,7 @@ export class ScheduleService {
|
|
|
20
23
|
* @throws ApiError
|
|
21
24
|
*/
|
|
22
25
|
static createSchedule({ workspace, requestBody, }) {
|
|
23
|
-
return
|
|
26
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
24
27
|
method: 'POST',
|
|
25
28
|
url: '/w/{workspace}/schedules/create',
|
|
26
29
|
path: {
|
|
@@ -36,7 +39,7 @@ export class ScheduleService {
|
|
|
36
39
|
* @throws ApiError
|
|
37
40
|
*/
|
|
38
41
|
static updateSchedule({ workspace, path, requestBody, }) {
|
|
39
|
-
return
|
|
42
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
40
43
|
method: 'POST',
|
|
41
44
|
url: '/w/{workspace}/schedules/update/{path}',
|
|
42
45
|
path: {
|
|
@@ -53,7 +56,7 @@ export class ScheduleService {
|
|
|
53
56
|
* @throws ApiError
|
|
54
57
|
*/
|
|
55
58
|
static setScheduleEnabled({ workspace, path, requestBody, }) {
|
|
56
|
-
return
|
|
59
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
57
60
|
method: 'POST',
|
|
58
61
|
url: '/w/{workspace}/schedules/setenabled/{path}',
|
|
59
62
|
path: {
|
|
@@ -70,7 +73,7 @@ export class ScheduleService {
|
|
|
70
73
|
* @throws ApiError
|
|
71
74
|
*/
|
|
72
75
|
static getSchedule({ workspace, path, }) {
|
|
73
|
-
return
|
|
76
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
74
77
|
method: 'GET',
|
|
75
78
|
url: '/w/{workspace}/schedules/get/{path}',
|
|
76
79
|
path: {
|
|
@@ -85,7 +88,7 @@ export class ScheduleService {
|
|
|
85
88
|
* @throws ApiError
|
|
86
89
|
*/
|
|
87
90
|
static listSchedules({ workspace, page, perPage, }) {
|
|
88
|
-
return
|
|
91
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
89
92
|
method: 'GET',
|
|
90
93
|
url: '/w/{workspace}/schedules/list',
|
|
91
94
|
path: {
|
|
@@ -98,3 +101,4 @@ export class ScheduleService {
|
|
|
98
101
|
});
|
|
99
102
|
}
|
|
100
103
|
}
|
|
104
|
+
exports.ScheduleService = ScheduleService;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScriptService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class ScriptService {
|
|
4
7
|
/**
|
|
5
8
|
* list all available hub scripts
|
|
6
9
|
* @returns any hub scripts list
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static listHubScripts() {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/scripts/hub/list',
|
|
13
16
|
});
|
|
@@ -18,7 +21,7 @@ export class ScriptService {
|
|
|
18
21
|
* @throws ApiError
|
|
19
22
|
*/
|
|
20
23
|
static getHubScriptContentByPath({ path, }) {
|
|
21
|
-
return
|
|
24
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
22
25
|
method: 'GET',
|
|
23
26
|
url: '/scripts/hub/get/{path}',
|
|
24
27
|
path: {
|
|
@@ -32,7 +35,7 @@ export class ScriptService {
|
|
|
32
35
|
* @throws ApiError
|
|
33
36
|
*/
|
|
34
37
|
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, }) {
|
|
35
|
-
return
|
|
38
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
39
|
method: 'GET',
|
|
37
40
|
url: '/w/{workspace}/scripts/list',
|
|
38
41
|
path: {
|
|
@@ -59,7 +62,7 @@ export class ScriptService {
|
|
|
59
62
|
* @throws ApiError
|
|
60
63
|
*/
|
|
61
64
|
static createScript({ workspace, requestBody, }) {
|
|
62
|
-
return
|
|
65
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
66
|
method: 'POST',
|
|
64
67
|
url: '/w/{workspace}/scripts/create',
|
|
65
68
|
path: {
|
|
@@ -75,7 +78,7 @@ export class ScriptService {
|
|
|
75
78
|
* @throws ApiError
|
|
76
79
|
*/
|
|
77
80
|
static pythonToJsonschema({ requestBody, }) {
|
|
78
|
-
return
|
|
81
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
79
82
|
method: 'POST',
|
|
80
83
|
url: '/scripts/python/tojsonschema',
|
|
81
84
|
body: requestBody,
|
|
@@ -88,7 +91,7 @@ export class ScriptService {
|
|
|
88
91
|
* @throws ApiError
|
|
89
92
|
*/
|
|
90
93
|
static denoToJsonschema({ requestBody, }) {
|
|
91
|
-
return
|
|
94
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
92
95
|
method: 'POST',
|
|
93
96
|
url: '/scripts/deno/tojsonschema',
|
|
94
97
|
body: requestBody,
|
|
@@ -101,7 +104,7 @@ export class ScriptService {
|
|
|
101
104
|
* @throws ApiError
|
|
102
105
|
*/
|
|
103
106
|
static archiveScriptByPath({ workspace, path, }) {
|
|
104
|
-
return
|
|
107
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
105
108
|
method: 'POST',
|
|
106
109
|
url: '/w/{workspace}/scripts/archive/p/{path}',
|
|
107
110
|
path: {
|
|
@@ -116,7 +119,7 @@ export class ScriptService {
|
|
|
116
119
|
* @throws ApiError
|
|
117
120
|
*/
|
|
118
121
|
static archiveScriptByHash({ workspace, hash, }) {
|
|
119
|
-
return
|
|
122
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
120
123
|
method: 'POST',
|
|
121
124
|
url: '/w/{workspace}/scripts/archive/h/{hash}',
|
|
122
125
|
path: {
|
|
@@ -131,7 +134,7 @@ export class ScriptService {
|
|
|
131
134
|
* @throws ApiError
|
|
132
135
|
*/
|
|
133
136
|
static deleteScriptByHash({ workspace, hash, }) {
|
|
134
|
-
return
|
|
137
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
135
138
|
method: 'POST',
|
|
136
139
|
url: '/w/{workspace}/scripts/delete/h/{hash}',
|
|
137
140
|
path: {
|
|
@@ -146,7 +149,7 @@ export class ScriptService {
|
|
|
146
149
|
* @throws ApiError
|
|
147
150
|
*/
|
|
148
151
|
static getScriptByPath({ workspace, path, }) {
|
|
149
|
-
return
|
|
152
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
150
153
|
method: 'GET',
|
|
151
154
|
url: '/w/{workspace}/scripts/get/p/{path}',
|
|
152
155
|
path: {
|
|
@@ -161,7 +164,7 @@ export class ScriptService {
|
|
|
161
164
|
* @throws ApiError
|
|
162
165
|
*/
|
|
163
166
|
static getScriptByHash({ workspace, hash, }) {
|
|
164
|
-
return
|
|
167
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
165
168
|
method: 'GET',
|
|
166
169
|
url: '/w/{workspace}/scripts/get/h/{hash}',
|
|
167
170
|
path: {
|
|
@@ -176,7 +179,7 @@ export class ScriptService {
|
|
|
176
179
|
* @throws ApiError
|
|
177
180
|
*/
|
|
178
181
|
static getScriptDeploymentStatus({ workspace, hash, }) {
|
|
179
|
-
return
|
|
182
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
180
183
|
method: 'GET',
|
|
181
184
|
url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
|
|
182
185
|
path: {
|
|
@@ -186,3 +189,4 @@ export class ScriptService {
|
|
|
186
189
|
});
|
|
187
190
|
}
|
|
188
191
|
}
|
|
192
|
+
exports.ScriptService = ScriptService;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class SettingsService {
|
|
4
7
|
/**
|
|
5
8
|
* get backend version
|
|
6
9
|
* @returns string git version of backend
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static backendVersion() {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/version',
|
|
13
16
|
});
|
|
@@ -18,9 +21,10 @@ export class SettingsService {
|
|
|
18
21
|
* @throws ApiError
|
|
19
22
|
*/
|
|
20
23
|
static getOpenApiYaml() {
|
|
21
|
-
return
|
|
24
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
22
25
|
method: 'GET',
|
|
23
26
|
url: '/openapi.yaml',
|
|
24
27
|
});
|
|
25
28
|
}
|
|
26
29
|
}
|
|
30
|
+
exports.SettingsService = SettingsService;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class UserService {
|
|
4
7
|
/**
|
|
5
8
|
* login with password
|
|
6
9
|
* @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.
|
|
@@ -8,7 +11,7 @@ export class UserService {
|
|
|
8
11
|
* @throws ApiError
|
|
9
12
|
*/
|
|
10
13
|
static login({ requestBody, }) {
|
|
11
|
-
return
|
|
14
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
12
15
|
method: 'POST',
|
|
13
16
|
url: '/auth/login',
|
|
14
17
|
body: requestBody,
|
|
@@ -21,7 +24,7 @@ export class UserService {
|
|
|
21
24
|
* @throws ApiError
|
|
22
25
|
*/
|
|
23
26
|
static createUser({ workspace, requestBody, }) {
|
|
24
|
-
return
|
|
27
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
25
28
|
method: 'POST',
|
|
26
29
|
url: '/w/{workspace}/users/add',
|
|
27
30
|
path: {
|
|
@@ -37,7 +40,7 @@ export class UserService {
|
|
|
37
40
|
* @throws ApiError
|
|
38
41
|
*/
|
|
39
42
|
static updateUser({ workspace, username, requestBody, }) {
|
|
40
|
-
return
|
|
43
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
41
44
|
method: 'POST',
|
|
42
45
|
url: '/w/{workspace}/users/update/{username}',
|
|
43
46
|
path: {
|
|
@@ -54,7 +57,7 @@ export class UserService {
|
|
|
54
57
|
* @throws ApiError
|
|
55
58
|
*/
|
|
56
59
|
static setPassword({ requestBody, }) {
|
|
57
|
-
return
|
|
60
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
61
|
method: 'POST',
|
|
59
62
|
url: '/users/setpassword',
|
|
60
63
|
body: requestBody,
|
|
@@ -67,7 +70,7 @@ export class UserService {
|
|
|
67
70
|
* @throws ApiError
|
|
68
71
|
*/
|
|
69
72
|
static createUserGlobally({ requestBody, }) {
|
|
70
|
-
return
|
|
73
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
71
74
|
method: 'POST',
|
|
72
75
|
url: '/users/create',
|
|
73
76
|
body: requestBody,
|
|
@@ -80,7 +83,7 @@ export class UserService {
|
|
|
80
83
|
* @throws ApiError
|
|
81
84
|
*/
|
|
82
85
|
static globalUserUpdate({ email, requestBody, }) {
|
|
83
|
-
return
|
|
86
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
84
87
|
method: 'POST',
|
|
85
88
|
url: '/users/update/{email}',
|
|
86
89
|
path: {
|
|
@@ -96,7 +99,7 @@ export class UserService {
|
|
|
96
99
|
* @throws ApiError
|
|
97
100
|
*/
|
|
98
101
|
static deleteUser({ workspace, username, }) {
|
|
99
|
-
return
|
|
102
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
100
103
|
method: 'DELETE',
|
|
101
104
|
url: '/w/{workspace}/users/delete/{username}',
|
|
102
105
|
path: {
|
|
@@ -111,7 +114,7 @@ export class UserService {
|
|
|
111
114
|
* @throws ApiError
|
|
112
115
|
*/
|
|
113
116
|
static logout() {
|
|
114
|
-
return
|
|
117
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
115
118
|
method: 'POST',
|
|
116
119
|
url: '/users/logout',
|
|
117
120
|
});
|
|
@@ -122,7 +125,7 @@ export class UserService {
|
|
|
122
125
|
* @throws ApiError
|
|
123
126
|
*/
|
|
124
127
|
static getCurrentEmail() {
|
|
125
|
-
return
|
|
128
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
126
129
|
method: 'GET',
|
|
127
130
|
url: '/users/email',
|
|
128
131
|
});
|
|
@@ -133,7 +136,7 @@ export class UserService {
|
|
|
133
136
|
* @throws ApiError
|
|
134
137
|
*/
|
|
135
138
|
static globalWhoami() {
|
|
136
|
-
return
|
|
139
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
137
140
|
method: 'GET',
|
|
138
141
|
url: '/users/whoami',
|
|
139
142
|
});
|
|
@@ -144,7 +147,7 @@ export class UserService {
|
|
|
144
147
|
* @throws ApiError
|
|
145
148
|
*/
|
|
146
149
|
static listWorkspaceInvites() {
|
|
147
|
-
return
|
|
150
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
148
151
|
method: 'GET',
|
|
149
152
|
url: '/users/list_invites',
|
|
150
153
|
});
|
|
@@ -155,7 +158,7 @@ export class UserService {
|
|
|
155
158
|
* @throws ApiError
|
|
156
159
|
*/
|
|
157
160
|
static whoami({ workspace, }) {
|
|
158
|
-
return
|
|
161
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
159
162
|
method: 'GET',
|
|
160
163
|
url: '/w/{workspace}/users/whoami',
|
|
161
164
|
path: {
|
|
@@ -169,7 +172,7 @@ export class UserService {
|
|
|
169
172
|
* @throws ApiError
|
|
170
173
|
*/
|
|
171
174
|
static leaveWorkspace({ workspace, }) {
|
|
172
|
-
return
|
|
175
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
173
176
|
method: 'POST',
|
|
174
177
|
url: '/w/{workspace}/users/leave_workspace',
|
|
175
178
|
path: {
|
|
@@ -183,7 +186,7 @@ export class UserService {
|
|
|
183
186
|
* @throws ApiError
|
|
184
187
|
*/
|
|
185
188
|
static acceptInvite({ requestBody, }) {
|
|
186
|
-
return
|
|
189
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
187
190
|
method: 'POST',
|
|
188
191
|
url: '/users/accept_invite',
|
|
189
192
|
body: requestBody,
|
|
@@ -196,7 +199,7 @@ export class UserService {
|
|
|
196
199
|
* @throws ApiError
|
|
197
200
|
*/
|
|
198
201
|
static declineInvite({ requestBody, }) {
|
|
199
|
-
return
|
|
202
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
200
203
|
method: 'POST',
|
|
201
204
|
url: '/users/decline_invite',
|
|
202
205
|
body: requestBody,
|
|
@@ -209,7 +212,7 @@ export class UserService {
|
|
|
209
212
|
* @throws ApiError
|
|
210
213
|
*/
|
|
211
214
|
static whois({ workspace, username, }) {
|
|
212
|
-
return
|
|
215
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
213
216
|
method: 'GET',
|
|
214
217
|
url: '/w/{workspace}/users/whois/{username}',
|
|
215
218
|
path: {
|
|
@@ -224,7 +227,7 @@ export class UserService {
|
|
|
224
227
|
* @throws ApiError
|
|
225
228
|
*/
|
|
226
229
|
static listUsersAsSuperAdmin({ page, perPage, }) {
|
|
227
|
-
return
|
|
230
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
228
231
|
method: 'GET',
|
|
229
232
|
url: '/users/list_as_super_admin',
|
|
230
233
|
query: {
|
|
@@ -239,7 +242,7 @@ export class UserService {
|
|
|
239
242
|
* @throws ApiError
|
|
240
243
|
*/
|
|
241
244
|
static listUsers({ workspace, }) {
|
|
242
|
-
return
|
|
245
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
243
246
|
method: 'GET',
|
|
244
247
|
url: '/w/{workspace}/users/list',
|
|
245
248
|
path: {
|
|
@@ -253,7 +256,7 @@ export class UserService {
|
|
|
253
256
|
* @throws ApiError
|
|
254
257
|
*/
|
|
255
258
|
static listUsernames({ workspace, }) {
|
|
256
|
-
return
|
|
259
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
257
260
|
method: 'GET',
|
|
258
261
|
url: '/w/{workspace}/users/list_usernames',
|
|
259
262
|
path: {
|
|
@@ -267,7 +270,7 @@ export class UserService {
|
|
|
267
270
|
* @throws ApiError
|
|
268
271
|
*/
|
|
269
272
|
static createToken({ requestBody, }) {
|
|
270
|
-
return
|
|
273
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
271
274
|
method: 'POST',
|
|
272
275
|
url: '/users/tokens/create',
|
|
273
276
|
body: requestBody,
|
|
@@ -280,7 +283,7 @@ export class UserService {
|
|
|
280
283
|
* @throws ApiError
|
|
281
284
|
*/
|
|
282
285
|
static deleteToken({ tokenPrefix, }) {
|
|
283
|
-
return
|
|
286
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
284
287
|
method: 'DELETE',
|
|
285
288
|
url: '/users/tokens/delete/{token_prefix}',
|
|
286
289
|
path: {
|
|
@@ -294,9 +297,10 @@ export class UserService {
|
|
|
294
297
|
* @throws ApiError
|
|
295
298
|
*/
|
|
296
299
|
static listTokens() {
|
|
297
|
-
return
|
|
300
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
298
301
|
method: 'GET',
|
|
299
302
|
url: '/users/tokens/list',
|
|
300
303
|
});
|
|
301
304
|
}
|
|
302
305
|
}
|
|
306
|
+
exports.UserService = UserService;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariableService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class VariableService {
|
|
4
7
|
/**
|
|
5
8
|
* create variable
|
|
6
9
|
* @returns string variable created
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static createVariable({ workspace, requestBody, }) {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'POST',
|
|
12
15
|
url: '/w/{workspace}/variables/create',
|
|
13
16
|
path: {
|
|
@@ -23,7 +26,7 @@ export class VariableService {
|
|
|
23
26
|
* @throws ApiError
|
|
24
27
|
*/
|
|
25
28
|
static deleteVariable({ workspace, path, }) {
|
|
26
|
-
return
|
|
29
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
27
30
|
method: 'DELETE',
|
|
28
31
|
url: '/w/{workspace}/variables/delete/{path}',
|
|
29
32
|
path: {
|
|
@@ -38,7 +41,7 @@ export class VariableService {
|
|
|
38
41
|
* @throws ApiError
|
|
39
42
|
*/
|
|
40
43
|
static updateVariable({ workspace, path, requestBody, }) {
|
|
41
|
-
return
|
|
44
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
42
45
|
method: 'POST',
|
|
43
46
|
url: '/w/{workspace}/variables/update/{path}',
|
|
44
47
|
path: {
|
|
@@ -55,7 +58,7 @@ export class VariableService {
|
|
|
55
58
|
* @throws ApiError
|
|
56
59
|
*/
|
|
57
60
|
static getVariable({ workspace, path, decryptSecret, }) {
|
|
58
|
-
return
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
59
62
|
method: 'GET',
|
|
60
63
|
url: '/w/{workspace}/variables/get/{path}',
|
|
61
64
|
path: {
|
|
@@ -73,7 +76,7 @@ export class VariableService {
|
|
|
73
76
|
* @throws ApiError
|
|
74
77
|
*/
|
|
75
78
|
static listVariable({ workspace, }) {
|
|
76
|
-
return
|
|
79
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
77
80
|
method: 'GET',
|
|
78
81
|
url: '/w/{workspace}/variables/list',
|
|
79
82
|
path: {
|
|
@@ -87,7 +90,7 @@ export class VariableService {
|
|
|
87
90
|
* @throws ApiError
|
|
88
91
|
*/
|
|
89
92
|
static listContextualVariables({ workspace, }) {
|
|
90
|
-
return
|
|
93
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
91
94
|
method: 'GET',
|
|
92
95
|
url: '/w/{workspace}/variables/list_contextual',
|
|
93
96
|
path: {
|
|
@@ -96,3 +99,4 @@ export class VariableService {
|
|
|
96
99
|
});
|
|
97
100
|
}
|
|
98
101
|
}
|
|
102
|
+
exports.VariableService = VariableService;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkerService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class WorkerService {
|
|
4
7
|
/**
|
|
5
8
|
* list workers
|
|
6
9
|
* @returns WorkerPing a list of workers
|
|
7
10
|
* @throws ApiError
|
|
8
11
|
*/
|
|
9
12
|
static listWorkers({ page, perPage, }) {
|
|
10
|
-
return
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
11
14
|
method: 'GET',
|
|
12
15
|
url: '/workers/list',
|
|
13
16
|
query: {
|
|
@@ -17,3 +20,4 @@ export class WorkerService {
|
|
|
17
20
|
});
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
exports.WorkerService = WorkerService;
|