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
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class UserService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class UserService {
|
|
7
4
|
/**
|
|
8
5
|
* login with password
|
|
9
6
|
* @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.
|
|
@@ -11,7 +8,7 @@ class UserService {
|
|
|
11
8
|
* @throws ApiError
|
|
12
9
|
*/
|
|
13
10
|
static login({ requestBody, }) {
|
|
14
|
-
return (
|
|
11
|
+
return __request(OpenAPI, {
|
|
15
12
|
method: 'POST',
|
|
16
13
|
url: '/auth/login',
|
|
17
14
|
body: requestBody,
|
|
@@ -24,7 +21,7 @@ class UserService {
|
|
|
24
21
|
* @throws ApiError
|
|
25
22
|
*/
|
|
26
23
|
static createUser({ workspace, requestBody, }) {
|
|
27
|
-
return (
|
|
24
|
+
return __request(OpenAPI, {
|
|
28
25
|
method: 'POST',
|
|
29
26
|
url: '/w/{workspace}/users/add',
|
|
30
27
|
path: {
|
|
@@ -40,7 +37,7 @@ class UserService {
|
|
|
40
37
|
* @throws ApiError
|
|
41
38
|
*/
|
|
42
39
|
static updateUser({ workspace, username, requestBody, }) {
|
|
43
|
-
return (
|
|
40
|
+
return __request(OpenAPI, {
|
|
44
41
|
method: 'POST',
|
|
45
42
|
url: '/w/{workspace}/users/update/{username}',
|
|
46
43
|
path: {
|
|
@@ -57,7 +54,7 @@ class UserService {
|
|
|
57
54
|
* @throws ApiError
|
|
58
55
|
*/
|
|
59
56
|
static setPassword({ requestBody, }) {
|
|
60
|
-
return (
|
|
57
|
+
return __request(OpenAPI, {
|
|
61
58
|
method: 'POST',
|
|
62
59
|
url: '/users/setpassword',
|
|
63
60
|
body: requestBody,
|
|
@@ -70,7 +67,7 @@ class UserService {
|
|
|
70
67
|
* @throws ApiError
|
|
71
68
|
*/
|
|
72
69
|
static createUserGlobally({ requestBody, }) {
|
|
73
|
-
return (
|
|
70
|
+
return __request(OpenAPI, {
|
|
74
71
|
method: 'POST',
|
|
75
72
|
url: '/users/create',
|
|
76
73
|
body: requestBody,
|
|
@@ -83,7 +80,7 @@ class UserService {
|
|
|
83
80
|
* @throws ApiError
|
|
84
81
|
*/
|
|
85
82
|
static globalUserUpdate({ email, requestBody, }) {
|
|
86
|
-
return (
|
|
83
|
+
return __request(OpenAPI, {
|
|
87
84
|
method: 'POST',
|
|
88
85
|
url: '/users/update/{email}',
|
|
89
86
|
path: {
|
|
@@ -99,7 +96,7 @@ class UserService {
|
|
|
99
96
|
* @throws ApiError
|
|
100
97
|
*/
|
|
101
98
|
static deleteUser({ workspace, username, }) {
|
|
102
|
-
return (
|
|
99
|
+
return __request(OpenAPI, {
|
|
103
100
|
method: 'DELETE',
|
|
104
101
|
url: '/w/{workspace}/users/delete/{username}',
|
|
105
102
|
path: {
|
|
@@ -114,7 +111,7 @@ class UserService {
|
|
|
114
111
|
* @throws ApiError
|
|
115
112
|
*/
|
|
116
113
|
static logout() {
|
|
117
|
-
return (
|
|
114
|
+
return __request(OpenAPI, {
|
|
118
115
|
method: 'POST',
|
|
119
116
|
url: '/users/logout',
|
|
120
117
|
});
|
|
@@ -125,7 +122,7 @@ class UserService {
|
|
|
125
122
|
* @throws ApiError
|
|
126
123
|
*/
|
|
127
124
|
static getCurrentEmail() {
|
|
128
|
-
return (
|
|
125
|
+
return __request(OpenAPI, {
|
|
129
126
|
method: 'GET',
|
|
130
127
|
url: '/users/email',
|
|
131
128
|
});
|
|
@@ -136,7 +133,7 @@ class UserService {
|
|
|
136
133
|
* @throws ApiError
|
|
137
134
|
*/
|
|
138
135
|
static globalWhoami() {
|
|
139
|
-
return (
|
|
136
|
+
return __request(OpenAPI, {
|
|
140
137
|
method: 'GET',
|
|
141
138
|
url: '/users/whoami',
|
|
142
139
|
});
|
|
@@ -147,7 +144,7 @@ class UserService {
|
|
|
147
144
|
* @throws ApiError
|
|
148
145
|
*/
|
|
149
146
|
static listWorkspaceInvites() {
|
|
150
|
-
return (
|
|
147
|
+
return __request(OpenAPI, {
|
|
151
148
|
method: 'GET',
|
|
152
149
|
url: '/users/list_invites',
|
|
153
150
|
});
|
|
@@ -158,7 +155,7 @@ class UserService {
|
|
|
158
155
|
* @throws ApiError
|
|
159
156
|
*/
|
|
160
157
|
static whoami({ workspace, }) {
|
|
161
|
-
return (
|
|
158
|
+
return __request(OpenAPI, {
|
|
162
159
|
method: 'GET',
|
|
163
160
|
url: '/w/{workspace}/users/whoami',
|
|
164
161
|
path: {
|
|
@@ -172,7 +169,7 @@ class UserService {
|
|
|
172
169
|
* @throws ApiError
|
|
173
170
|
*/
|
|
174
171
|
static leaveWorkspace({ workspace, }) {
|
|
175
|
-
return (
|
|
172
|
+
return __request(OpenAPI, {
|
|
176
173
|
method: 'POST',
|
|
177
174
|
url: '/w/{workspace}/users/leave_workspace',
|
|
178
175
|
path: {
|
|
@@ -186,7 +183,7 @@ class UserService {
|
|
|
186
183
|
* @throws ApiError
|
|
187
184
|
*/
|
|
188
185
|
static acceptInvite({ requestBody, }) {
|
|
189
|
-
return (
|
|
186
|
+
return __request(OpenAPI, {
|
|
190
187
|
method: 'POST',
|
|
191
188
|
url: '/users/accept_invite',
|
|
192
189
|
body: requestBody,
|
|
@@ -199,7 +196,7 @@ class UserService {
|
|
|
199
196
|
* @throws ApiError
|
|
200
197
|
*/
|
|
201
198
|
static declineInvite({ requestBody, }) {
|
|
202
|
-
return (
|
|
199
|
+
return __request(OpenAPI, {
|
|
203
200
|
method: 'POST',
|
|
204
201
|
url: '/users/decline_invite',
|
|
205
202
|
body: requestBody,
|
|
@@ -212,7 +209,7 @@ class UserService {
|
|
|
212
209
|
* @throws ApiError
|
|
213
210
|
*/
|
|
214
211
|
static whois({ workspace, username, }) {
|
|
215
|
-
return (
|
|
212
|
+
return __request(OpenAPI, {
|
|
216
213
|
method: 'GET',
|
|
217
214
|
url: '/w/{workspace}/users/whois/{username}',
|
|
218
215
|
path: {
|
|
@@ -227,7 +224,7 @@ class UserService {
|
|
|
227
224
|
* @throws ApiError
|
|
228
225
|
*/
|
|
229
226
|
static listUsersAsSuperAdmin({ page, perPage, }) {
|
|
230
|
-
return (
|
|
227
|
+
return __request(OpenAPI, {
|
|
231
228
|
method: 'GET',
|
|
232
229
|
url: '/users/list_as_super_admin',
|
|
233
230
|
query: {
|
|
@@ -242,7 +239,7 @@ class UserService {
|
|
|
242
239
|
* @throws ApiError
|
|
243
240
|
*/
|
|
244
241
|
static listUsers({ workspace, }) {
|
|
245
|
-
return (
|
|
242
|
+
return __request(OpenAPI, {
|
|
246
243
|
method: 'GET',
|
|
247
244
|
url: '/w/{workspace}/users/list',
|
|
248
245
|
path: {
|
|
@@ -256,7 +253,7 @@ class UserService {
|
|
|
256
253
|
* @throws ApiError
|
|
257
254
|
*/
|
|
258
255
|
static listUsernames({ workspace, }) {
|
|
259
|
-
return (
|
|
256
|
+
return __request(OpenAPI, {
|
|
260
257
|
method: 'GET',
|
|
261
258
|
url: '/w/{workspace}/users/list_usernames',
|
|
262
259
|
path: {
|
|
@@ -270,7 +267,7 @@ class UserService {
|
|
|
270
267
|
* @throws ApiError
|
|
271
268
|
*/
|
|
272
269
|
static createToken({ requestBody, }) {
|
|
273
|
-
return (
|
|
270
|
+
return __request(OpenAPI, {
|
|
274
271
|
method: 'POST',
|
|
275
272
|
url: '/users/tokens/create',
|
|
276
273
|
body: requestBody,
|
|
@@ -283,7 +280,7 @@ class UserService {
|
|
|
283
280
|
* @throws ApiError
|
|
284
281
|
*/
|
|
285
282
|
static deleteToken({ tokenPrefix, }) {
|
|
286
|
-
return (
|
|
283
|
+
return __request(OpenAPI, {
|
|
287
284
|
method: 'DELETE',
|
|
288
285
|
url: '/users/tokens/delete/{token_prefix}',
|
|
289
286
|
path: {
|
|
@@ -297,10 +294,26 @@ class UserService {
|
|
|
297
294
|
* @throws ApiError
|
|
298
295
|
*/
|
|
299
296
|
static listTokens() {
|
|
300
|
-
return (
|
|
297
|
+
return __request(OpenAPI, {
|
|
301
298
|
method: 'GET',
|
|
302
299
|
url: '/users/tokens/list',
|
|
303
300
|
});
|
|
304
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* login with oauth authorization flow
|
|
304
|
+
* @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.
|
|
305
|
+
*
|
|
306
|
+
* @throws ApiError
|
|
307
|
+
*/
|
|
308
|
+
static loginWithOauth({ clientName, requestBody, }) {
|
|
309
|
+
return __request(OpenAPI, {
|
|
310
|
+
method: 'POST',
|
|
311
|
+
url: '/oauth/login_callback/{client_name}',
|
|
312
|
+
path: {
|
|
313
|
+
'client_name': clientName,
|
|
314
|
+
},
|
|
315
|
+
body: requestBody,
|
|
316
|
+
mediaType: 'application/json',
|
|
317
|
+
});
|
|
318
|
+
}
|
|
305
319
|
}
|
|
306
|
-
exports.UserService = UserService;
|
|
@@ -11,7 +11,9 @@ export declare class VariableService {
|
|
|
11
11
|
*/
|
|
12
12
|
static createVariable({ workspace, requestBody, }: {
|
|
13
13
|
workspace: string;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* new variable
|
|
16
|
+
*/
|
|
15
17
|
requestBody: CreateVariable;
|
|
16
18
|
}): CancelablePromise<string>;
|
|
17
19
|
/**
|
|
@@ -31,7 +33,9 @@ export declare class VariableService {
|
|
|
31
33
|
static updateVariable({ workspace, path, requestBody, }: {
|
|
32
34
|
workspace: string;
|
|
33
35
|
path: string;
|
|
34
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* updated variable
|
|
38
|
+
*/
|
|
35
39
|
requestBody: EditVariable;
|
|
36
40
|
}): CancelablePromise<string>;
|
|
37
41
|
/**
|
|
@@ -42,11 +46,22 @@ export declare class VariableService {
|
|
|
42
46
|
static getVariable({ workspace, path, decryptSecret, }: {
|
|
43
47
|
workspace: string;
|
|
44
48
|
path: string;
|
|
45
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* ask to decrypt secret if this variable is secret
|
|
46
51
|
* (if not secret no effect, default: true)
|
|
47
|
-
*
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
48
54
|
decryptSecret?: boolean;
|
|
49
55
|
}): CancelablePromise<ListableVariable>;
|
|
56
|
+
/**
|
|
57
|
+
* does variable exists at path
|
|
58
|
+
* @returns boolean variable
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
static existsVariable({ workspace, path, }: {
|
|
62
|
+
workspace: string;
|
|
63
|
+
path: string;
|
|
64
|
+
}): CancelablePromise<boolean>;
|
|
50
65
|
/**
|
|
51
66
|
* list variables
|
|
52
67
|
* @returns ListableVariable variable list
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class VariableService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class VariableService {
|
|
7
4
|
/**
|
|
8
5
|
* create variable
|
|
9
6
|
* @returns string variable created
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static createVariable({ workspace, requestBody, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'POST',
|
|
15
12
|
url: '/w/{workspace}/variables/create',
|
|
16
13
|
path: {
|
|
@@ -26,7 +23,7 @@ class VariableService {
|
|
|
26
23
|
* @throws ApiError
|
|
27
24
|
*/
|
|
28
25
|
static deleteVariable({ workspace, path, }) {
|
|
29
|
-
return (
|
|
26
|
+
return __request(OpenAPI, {
|
|
30
27
|
method: 'DELETE',
|
|
31
28
|
url: '/w/{workspace}/variables/delete/{path}',
|
|
32
29
|
path: {
|
|
@@ -41,7 +38,7 @@ class VariableService {
|
|
|
41
38
|
* @throws ApiError
|
|
42
39
|
*/
|
|
43
40
|
static updateVariable({ workspace, path, requestBody, }) {
|
|
44
|
-
return (
|
|
41
|
+
return __request(OpenAPI, {
|
|
45
42
|
method: 'POST',
|
|
46
43
|
url: '/w/{workspace}/variables/update/{path}',
|
|
47
44
|
path: {
|
|
@@ -58,7 +55,7 @@ class VariableService {
|
|
|
58
55
|
* @throws ApiError
|
|
59
56
|
*/
|
|
60
57
|
static getVariable({ workspace, path, decryptSecret, }) {
|
|
61
|
-
return (
|
|
58
|
+
return __request(OpenAPI, {
|
|
62
59
|
method: 'GET',
|
|
63
60
|
url: '/w/{workspace}/variables/get/{path}',
|
|
64
61
|
path: {
|
|
@@ -70,13 +67,28 @@ class VariableService {
|
|
|
70
67
|
},
|
|
71
68
|
});
|
|
72
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* does variable exists at path
|
|
72
|
+
* @returns boolean variable
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static existsVariable({ workspace, path, }) {
|
|
76
|
+
return __request(OpenAPI, {
|
|
77
|
+
method: 'GET',
|
|
78
|
+
url: '/w/{workspace}/variables/exists/{path}',
|
|
79
|
+
path: {
|
|
80
|
+
'workspace': workspace,
|
|
81
|
+
'path': path,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
}
|
|
73
85
|
/**
|
|
74
86
|
* list variables
|
|
75
87
|
* @returns ListableVariable variable list
|
|
76
88
|
* @throws ApiError
|
|
77
89
|
*/
|
|
78
90
|
static listVariable({ workspace, }) {
|
|
79
|
-
return (
|
|
91
|
+
return __request(OpenAPI, {
|
|
80
92
|
method: 'GET',
|
|
81
93
|
url: '/w/{workspace}/variables/list',
|
|
82
94
|
path: {
|
|
@@ -90,7 +102,7 @@ class VariableService {
|
|
|
90
102
|
* @throws ApiError
|
|
91
103
|
*/
|
|
92
104
|
static listContextualVariables({ workspace, }) {
|
|
93
|
-
return (
|
|
105
|
+
return __request(OpenAPI, {
|
|
94
106
|
method: 'GET',
|
|
95
107
|
url: '/w/{workspace}/variables/list_contextual',
|
|
96
108
|
path: {
|
|
@@ -99,4 +111,3 @@ class VariableService {
|
|
|
99
111
|
});
|
|
100
112
|
}
|
|
101
113
|
}
|
|
102
|
-
exports.VariableService = VariableService;
|
|
@@ -7,9 +7,13 @@ export declare class WorkerService {
|
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
9
|
static listWorkers({ page, perPage, }: {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* which page to return (start at 1, default 1)
|
|
12
|
+
*/
|
|
11
13
|
page?: number;
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* number of items to return for a given page (default 30, max 100)
|
|
16
|
+
*/
|
|
13
17
|
perPage?: number;
|
|
14
18
|
}): CancelablePromise<Array<WorkerPing>>;
|
|
15
19
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class WorkerService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class WorkerService {
|
|
7
4
|
/**
|
|
8
5
|
* list workers
|
|
9
6
|
* @returns WorkerPing a list of workers
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listWorkers({ page, perPage, }) {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/workers/list',
|
|
16
13
|
query: {
|
|
@@ -20,4 +17,3 @@ class WorkerService {
|
|
|
20
17
|
});
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
exports.WorkerService = WorkerService;
|
|
@@ -22,9 +22,13 @@ export declare class WorkspaceService {
|
|
|
22
22
|
* @throws ApiError
|
|
23
23
|
*/
|
|
24
24
|
static listWorkspacesAsSuperAdmin({ page, perPage, }: {
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* which page to return (start at 1, default 1)
|
|
27
|
+
*/
|
|
26
28
|
page?: number;
|
|
27
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* number of items to return for a given page (default 30, max 100)
|
|
31
|
+
*/
|
|
28
32
|
perPage?: number;
|
|
29
33
|
}): CancelablePromise<Array<Workspace>>;
|
|
30
34
|
/**
|
|
@@ -33,31 +37,35 @@ export declare class WorkspaceService {
|
|
|
33
37
|
* @throws ApiError
|
|
34
38
|
*/
|
|
35
39
|
static createWorkspace({ requestBody, }: {
|
|
36
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* new token
|
|
42
|
+
*/
|
|
37
43
|
requestBody: CreateWorkspace;
|
|
38
44
|
}): CancelablePromise<string>;
|
|
39
45
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @returns
|
|
46
|
+
* exists workspace
|
|
47
|
+
* @returns boolean status
|
|
42
48
|
* @throws ApiError
|
|
43
49
|
*/
|
|
44
|
-
static
|
|
45
|
-
/**
|
|
50
|
+
static existsWorkspace({ requestBody, }: {
|
|
51
|
+
/**
|
|
52
|
+
* id of workspace
|
|
53
|
+
*/
|
|
46
54
|
requestBody: {
|
|
47
55
|
id: string;
|
|
48
56
|
};
|
|
49
|
-
}): CancelablePromise<
|
|
57
|
+
}): CancelablePromise<boolean>;
|
|
50
58
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @returns
|
|
59
|
+
* exists username
|
|
60
|
+
* @returns boolean status
|
|
53
61
|
* @throws ApiError
|
|
54
62
|
*/
|
|
55
|
-
static
|
|
63
|
+
static existsUsername({ requestBody, }: {
|
|
56
64
|
requestBody: {
|
|
57
65
|
id: string;
|
|
58
66
|
username: string;
|
|
59
67
|
};
|
|
60
|
-
}): CancelablePromise<
|
|
68
|
+
}): CancelablePromise<boolean>;
|
|
61
69
|
/**
|
|
62
70
|
* invite user to workspace
|
|
63
71
|
* @returns string status
|
|
@@ -65,7 +73,9 @@ export declare class WorkspaceService {
|
|
|
65
73
|
*/
|
|
66
74
|
static inviteUser({ workspace, requestBody, }: {
|
|
67
75
|
workspace: string;
|
|
68
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* WorkspaceInvite
|
|
78
|
+
*/
|
|
69
79
|
requestBody: {
|
|
70
80
|
email: string;
|
|
71
81
|
is_admin: boolean;
|
|
@@ -78,7 +88,9 @@ export declare class WorkspaceService {
|
|
|
78
88
|
*/
|
|
79
89
|
static deleteInvite({ workspace, requestBody, }: {
|
|
80
90
|
workspace: string;
|
|
81
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* WorkspaceInvite
|
|
93
|
+
*/
|
|
82
94
|
requestBody: {
|
|
83
95
|
email: string;
|
|
84
96
|
is_admin: boolean;
|
|
@@ -120,18 +132,11 @@ export declare class WorkspaceService {
|
|
|
120
132
|
*/
|
|
121
133
|
static editSlackCommand({ workspace, requestBody, }: {
|
|
122
134
|
workspace: string;
|
|
123
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* WorkspaceInvite
|
|
137
|
+
*/
|
|
124
138
|
requestBody: {
|
|
125
139
|
slack_command_script?: string;
|
|
126
140
|
};
|
|
127
141
|
}): CancelablePromise<string>;
|
|
128
|
-
/**
|
|
129
|
-
* disconnect client
|
|
130
|
-
* @returns string disconnected client
|
|
131
|
-
* @throws ApiError
|
|
132
|
-
*/
|
|
133
|
-
static disconnectClient({ workspace, clientName, }: {
|
|
134
|
-
workspace: string;
|
|
135
|
-
clientName: string;
|
|
136
|
-
}): CancelablePromise<string>;
|
|
137
142
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class WorkspaceService {
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class WorkspaceService {
|
|
7
4
|
/**
|
|
8
5
|
* list all workspaces visible to me
|
|
9
6
|
* @returns Workspace all workspaces
|
|
10
7
|
* @throws ApiError
|
|
11
8
|
*/
|
|
12
9
|
static listWorkspaces() {
|
|
13
|
-
return (
|
|
10
|
+
return __request(OpenAPI, {
|
|
14
11
|
method: 'GET',
|
|
15
12
|
url: '/workspaces/list',
|
|
16
13
|
});
|
|
@@ -21,7 +18,7 @@ class WorkspaceService {
|
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
static listUserWorkspaces() {
|
|
24
|
-
return (
|
|
21
|
+
return __request(OpenAPI, {
|
|
25
22
|
method: 'GET',
|
|
26
23
|
url: '/workspaces/users',
|
|
27
24
|
});
|
|
@@ -32,7 +29,7 @@ class WorkspaceService {
|
|
|
32
29
|
* @throws ApiError
|
|
33
30
|
*/
|
|
34
31
|
static listWorkspacesAsSuperAdmin({ page, perPage, }) {
|
|
35
|
-
return (
|
|
32
|
+
return __request(OpenAPI, {
|
|
36
33
|
method: 'GET',
|
|
37
34
|
url: '/workspaces/list_as_superadmin',
|
|
38
35
|
query: {
|
|
@@ -47,7 +44,7 @@ class WorkspaceService {
|
|
|
47
44
|
* @throws ApiError
|
|
48
45
|
*/
|
|
49
46
|
static createWorkspace({ requestBody, }) {
|
|
50
|
-
return (
|
|
47
|
+
return __request(OpenAPI, {
|
|
51
48
|
method: 'POST',
|
|
52
49
|
url: '/workspaces/create',
|
|
53
50
|
body: requestBody,
|
|
@@ -55,27 +52,27 @@ class WorkspaceService {
|
|
|
55
52
|
});
|
|
56
53
|
}
|
|
57
54
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @returns
|
|
55
|
+
* exists workspace
|
|
56
|
+
* @returns boolean status
|
|
60
57
|
* @throws ApiError
|
|
61
58
|
*/
|
|
62
|
-
static
|
|
63
|
-
return (
|
|
59
|
+
static existsWorkspace({ requestBody, }) {
|
|
60
|
+
return __request(OpenAPI, {
|
|
64
61
|
method: 'POST',
|
|
65
|
-
url: '/workspaces/
|
|
62
|
+
url: '/workspaces/exists',
|
|
66
63
|
body: requestBody,
|
|
67
64
|
mediaType: 'application/json',
|
|
68
65
|
});
|
|
69
66
|
}
|
|
70
67
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @returns
|
|
68
|
+
* exists username
|
|
69
|
+
* @returns boolean status
|
|
73
70
|
* @throws ApiError
|
|
74
71
|
*/
|
|
75
|
-
static
|
|
76
|
-
return (
|
|
72
|
+
static existsUsername({ requestBody, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
77
74
|
method: 'POST',
|
|
78
|
-
url: '/workspaces/
|
|
75
|
+
url: '/workspaces/exists_username',
|
|
79
76
|
body: requestBody,
|
|
80
77
|
mediaType: 'application/json',
|
|
81
78
|
});
|
|
@@ -86,7 +83,7 @@ class WorkspaceService {
|
|
|
86
83
|
* @throws ApiError
|
|
87
84
|
*/
|
|
88
85
|
static inviteUser({ workspace, requestBody, }) {
|
|
89
|
-
return (
|
|
86
|
+
return __request(OpenAPI, {
|
|
90
87
|
method: 'POST',
|
|
91
88
|
url: '/w/{workspace}/workspaces/invite_user',
|
|
92
89
|
path: {
|
|
@@ -102,7 +99,7 @@ class WorkspaceService {
|
|
|
102
99
|
* @throws ApiError
|
|
103
100
|
*/
|
|
104
101
|
static deleteInvite({ workspace, requestBody, }) {
|
|
105
|
-
return (
|
|
102
|
+
return __request(OpenAPI, {
|
|
106
103
|
method: 'POST',
|
|
107
104
|
url: '/w/{workspace}/workspaces/delete_invite',
|
|
108
105
|
path: {
|
|
@@ -118,7 +115,7 @@ class WorkspaceService {
|
|
|
118
115
|
* @throws ApiError
|
|
119
116
|
*/
|
|
120
117
|
static deleteWorkspace({ workspace, }) {
|
|
121
|
-
return (
|
|
118
|
+
return __request(OpenAPI, {
|
|
122
119
|
method: 'DELETE',
|
|
123
120
|
url: '/w/{workspace}/workspaces/delete',
|
|
124
121
|
path: {
|
|
@@ -132,7 +129,7 @@ class WorkspaceService {
|
|
|
132
129
|
* @throws ApiError
|
|
133
130
|
*/
|
|
134
131
|
static listPendingInvites({ workspace, }) {
|
|
135
|
-
return (
|
|
132
|
+
return __request(OpenAPI, {
|
|
136
133
|
method: 'GET',
|
|
137
134
|
url: '/w/{workspace}/workspaces/list_pending_invites',
|
|
138
135
|
path: {
|
|
@@ -146,7 +143,7 @@ class WorkspaceService {
|
|
|
146
143
|
* @throws ApiError
|
|
147
144
|
*/
|
|
148
145
|
static getSettings({ workspace, }) {
|
|
149
|
-
return (
|
|
146
|
+
return __request(OpenAPI, {
|
|
150
147
|
method: 'GET',
|
|
151
148
|
url: '/w/{workspace}/workspaces/get_settings',
|
|
152
149
|
path: {
|
|
@@ -160,7 +157,7 @@ class WorkspaceService {
|
|
|
160
157
|
* @throws ApiError
|
|
161
158
|
*/
|
|
162
159
|
static editSlackCommand({ workspace, requestBody, }) {
|
|
163
|
-
return (
|
|
160
|
+
return __request(OpenAPI, {
|
|
164
161
|
method: 'POST',
|
|
165
162
|
url: '/w/{workspace}/workspaces/edit_slack_command',
|
|
166
163
|
path: {
|
|
@@ -170,20 +167,4 @@ class WorkspaceService {
|
|
|
170
167
|
mediaType: 'application/json',
|
|
171
168
|
});
|
|
172
169
|
}
|
|
173
|
-
/**
|
|
174
|
-
* disconnect client
|
|
175
|
-
* @returns string disconnected client
|
|
176
|
-
* @throws ApiError
|
|
177
|
-
*/
|
|
178
|
-
static disconnectClient({ workspace, clientName, }) {
|
|
179
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
180
|
-
method: 'POST',
|
|
181
|
-
url: '/w/{workspace}/oauth/disconnect/{client_name}',
|
|
182
|
-
path: {
|
|
183
|
-
'workspace': workspace,
|
|
184
|
-
'client_name': clientName,
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
170
|
}
|
|
189
|
-
exports.WorkspaceService = WorkspaceService;
|