windmill-client 0.1.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.
Files changed (100) hide show
  1. package/build.sh +7 -0
  2. package/package.json +7 -0
  3. package/src/core/ApiError.ts +24 -0
  4. package/src/core/ApiRequestOptions.ts +16 -0
  5. package/src/core/ApiResult.ts +10 -0
  6. package/src/core/CancelablePromise.ts +128 -0
  7. package/src/core/OpenAPI.ts +31 -0
  8. package/src/core/request.ts +308 -0
  9. package/src/index.ts +100 -0
  10. package/src/models/AppWithLastVersion.ts +31 -0
  11. package/src/models/AppWithLastVersionWDraft.ts +11 -0
  12. package/src/models/AuditLog.ts +42 -0
  13. package/src/models/BranchAll.ts +16 -0
  14. package/src/models/BranchOne.ts +16 -0
  15. package/src/models/CompletedJob.ts +68 -0
  16. package/src/models/ContextualVariable.ts +10 -0
  17. package/src/models/CreateInput.ts +9 -0
  18. package/src/models/CreateResource.ts +11 -0
  19. package/src/models/CreateVariable.ts +13 -0
  20. package/src/models/CreateWorkspace.ts +10 -0
  21. package/src/models/EditResource.ts +10 -0
  22. package/src/models/EditResourceType.ts +9 -0
  23. package/src/models/EditSchedule.ts +12 -0
  24. package/src/models/EditVariable.ts +11 -0
  25. package/src/models/EditWorkspaceUser.ts +10 -0
  26. package/src/models/Flow.ts +9 -0
  27. package/src/models/FlowMetadata.ts +16 -0
  28. package/src/models/FlowModule.ts +24 -0
  29. package/src/models/FlowModuleValue.ts +14 -0
  30. package/src/models/FlowPreview.ts +13 -0
  31. package/src/models/FlowStatus.ts +18 -0
  32. package/src/models/FlowStatusModule.ts +43 -0
  33. package/src/models/FlowValue.ts +12 -0
  34. package/src/models/Folder.ts +10 -0
  35. package/src/models/ForloopFlow.ts +15 -0
  36. package/src/models/GlobalUserInfo.ts +23 -0
  37. package/src/models/Group.ts +11 -0
  38. package/src/models/Identity.ts +9 -0
  39. package/src/models/Input.ts +13 -0
  40. package/src/models/InputTransform.ts +9 -0
  41. package/src/models/JavascriptTransform.ts +9 -0
  42. package/src/models/Job.ts +21 -0
  43. package/src/models/ListableApp.ts +27 -0
  44. package/src/models/ListableResource.ts +19 -0
  45. package/src/models/ListableVariable.ts +19 -0
  46. package/src/models/Login.ts +9 -0
  47. package/src/models/MainArgSignature.ts +42 -0
  48. package/src/models/NewSchedule.ts +16 -0
  49. package/src/models/NewScript.ts +39 -0
  50. package/src/models/NewScriptWithDraft.ts +11 -0
  51. package/src/models/NewToken.ts +9 -0
  52. package/src/models/NewTokenImpersonate.ts +10 -0
  53. package/src/models/NewUser.ts +10 -0
  54. package/src/models/OpenFlow.ts +13 -0
  55. package/src/models/OpenFlowWPath.ts +10 -0
  56. package/src/models/PathFlow.ts +12 -0
  57. package/src/models/PathScript.ts +13 -0
  58. package/src/models/Policy.ts +22 -0
  59. package/src/models/Preview.ts +26 -0
  60. package/src/models/QueuedJob.ts +66 -0
  61. package/src/models/RawScript.ts +28 -0
  62. package/src/models/Resource.ts +14 -0
  63. package/src/models/ResourceType.ts +11 -0
  64. package/src/models/Retry.ts +16 -0
  65. package/src/models/RunnableType.ts +9 -0
  66. package/src/models/Schedule.ts +21 -0
  67. package/src/models/Script.ts +53 -0
  68. package/src/models/ScriptArgs.ts +5 -0
  69. package/src/models/SlackToken.ts +13 -0
  70. package/src/models/StaticTransform.ts +9 -0
  71. package/src/models/TokenResponse.ts +11 -0
  72. package/src/models/TruncatedToken.ts +12 -0
  73. package/src/models/UpdateInput.ts +10 -0
  74. package/src/models/Usage.ts +8 -0
  75. package/src/models/User.ts +20 -0
  76. package/src/models/UserWorkspaceList.ts +13 -0
  77. package/src/models/WorkerPing.ts +13 -0
  78. package/src/models/Workspace.ts +11 -0
  79. package/src/models/WorkspaceInvite.ts +11 -0
  80. package/src/services/AdminService.ts +90 -0
  81. package/src/services/AppService.ts +383 -0
  82. package/src/services/AuditService.ts +103 -0
  83. package/src/services/CaptureService.ts +79 -0
  84. package/src/services/DraftService.ts +37 -0
  85. package/src/services/FavoriteService.ts +62 -0
  86. package/src/services/FlowService.ts +368 -0
  87. package/src/services/FolderService.ts +269 -0
  88. package/src/services/GranularAclService.ts +104 -0
  89. package/src/services/GroupService.ts +238 -0
  90. package/src/services/InputService.ts +175 -0
  91. package/src/services/JobService.ts +1247 -0
  92. package/src/services/OauthService.ts +197 -0
  93. package/src/services/ResourceService.ts +395 -0
  94. package/src/services/ScheduleService.ts +223 -0
  95. package/src/services/ScriptService.ts +601 -0
  96. package/src/services/SettingsService.ts +34 -0
  97. package/src/services/UserService.ts +574 -0
  98. package/src/services/VariableService.ts +194 -0
  99. package/src/services/WorkerService.ts +52 -0
  100. package/src/services/WorkspaceService.ts +446 -0
@@ -0,0 +1,194 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { ContextualVariable } from '../models/ContextualVariable';
5
+ import type { CreateVariable } from '../models/CreateVariable';
6
+ import type { EditVariable } from '../models/EditVariable';
7
+ import type { ListableVariable } from '../models/ListableVariable';
8
+
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ import { OpenAPI } from '../core/OpenAPI';
11
+ import { request as __request } from '../core/request';
12
+
13
+ export class VariableService {
14
+
15
+ /**
16
+ * create variable
17
+ * @returns string variable created
18
+ * @throws ApiError
19
+ */
20
+ public static createVariable({
21
+ workspace,
22
+ requestBody,
23
+ alreadyEncrypted,
24
+ }: {
25
+ workspace: string,
26
+ /**
27
+ * new variable
28
+ */
29
+ requestBody: CreateVariable,
30
+ alreadyEncrypted?: boolean,
31
+ }): CancelablePromise<string> {
32
+ return __request(OpenAPI, {
33
+ method: 'POST',
34
+ url: '/w/{workspace}/variables/create',
35
+ path: {
36
+ 'workspace': workspace,
37
+ },
38
+ query: {
39
+ 'already_encrypted': alreadyEncrypted,
40
+ },
41
+ body: requestBody,
42
+ mediaType: 'application/json',
43
+ });
44
+ }
45
+
46
+ /**
47
+ * delete variable
48
+ * @returns string variable deleted
49
+ * @throws ApiError
50
+ */
51
+ public static deleteVariable({
52
+ workspace,
53
+ path,
54
+ }: {
55
+ workspace: string,
56
+ path: string,
57
+ }): CancelablePromise<string> {
58
+ return __request(OpenAPI, {
59
+ method: 'DELETE',
60
+ url: '/w/{workspace}/variables/delete/{path}',
61
+ path: {
62
+ 'workspace': workspace,
63
+ 'path': path,
64
+ },
65
+ });
66
+ }
67
+
68
+ /**
69
+ * update variable
70
+ * @returns string variable updated
71
+ * @throws ApiError
72
+ */
73
+ public static updateVariable({
74
+ workspace,
75
+ path,
76
+ requestBody,
77
+ alreadyEncrypted,
78
+ }: {
79
+ workspace: string,
80
+ path: string,
81
+ /**
82
+ * updated variable
83
+ */
84
+ requestBody: EditVariable,
85
+ alreadyEncrypted?: boolean,
86
+ }): CancelablePromise<string> {
87
+ return __request(OpenAPI, {
88
+ method: 'POST',
89
+ url: '/w/{workspace}/variables/update/{path}',
90
+ path: {
91
+ 'workspace': workspace,
92
+ 'path': path,
93
+ },
94
+ query: {
95
+ 'already_encrypted': alreadyEncrypted,
96
+ },
97
+ body: requestBody,
98
+ mediaType: 'application/json',
99
+ });
100
+ }
101
+
102
+ /**
103
+ * get variable
104
+ * @returns ListableVariable variable
105
+ * @throws ApiError
106
+ */
107
+ public static getVariable({
108
+ workspace,
109
+ path,
110
+ decryptSecret,
111
+ }: {
112
+ workspace: string,
113
+ path: string,
114
+ /**
115
+ * ask to decrypt secret if this variable is secret
116
+ * (if not secret no effect, default: true)
117
+ *
118
+ */
119
+ decryptSecret?: boolean,
120
+ }): CancelablePromise<ListableVariable> {
121
+ return __request(OpenAPI, {
122
+ method: 'GET',
123
+ url: '/w/{workspace}/variables/get/{path}',
124
+ path: {
125
+ 'workspace': workspace,
126
+ 'path': path,
127
+ },
128
+ query: {
129
+ 'decrypt_secret': decryptSecret,
130
+ },
131
+ });
132
+ }
133
+
134
+ /**
135
+ * does variable exists at path
136
+ * @returns boolean variable
137
+ * @throws ApiError
138
+ */
139
+ public static existsVariable({
140
+ workspace,
141
+ path,
142
+ }: {
143
+ workspace: string,
144
+ path: string,
145
+ }): CancelablePromise<boolean> {
146
+ return __request(OpenAPI, {
147
+ method: 'GET',
148
+ url: '/w/{workspace}/variables/exists/{path}',
149
+ path: {
150
+ 'workspace': workspace,
151
+ 'path': path,
152
+ },
153
+ });
154
+ }
155
+
156
+ /**
157
+ * list variables
158
+ * @returns ListableVariable variable list
159
+ * @throws ApiError
160
+ */
161
+ public static listVariable({
162
+ workspace,
163
+ }: {
164
+ workspace: string,
165
+ }): CancelablePromise<Array<ListableVariable>> {
166
+ return __request(OpenAPI, {
167
+ method: 'GET',
168
+ url: '/w/{workspace}/variables/list',
169
+ path: {
170
+ 'workspace': workspace,
171
+ },
172
+ });
173
+ }
174
+
175
+ /**
176
+ * list contextual variables
177
+ * @returns ContextualVariable contextual variable list
178
+ * @throws ApiError
179
+ */
180
+ public static listContextualVariables({
181
+ workspace,
182
+ }: {
183
+ workspace: string,
184
+ }): CancelablePromise<Array<ContextualVariable>> {
185
+ return __request(OpenAPI, {
186
+ method: 'GET',
187
+ url: '/w/{workspace}/variables/list_contextual',
188
+ path: {
189
+ 'workspace': workspace,
190
+ },
191
+ });
192
+ }
193
+
194
+ }
@@ -0,0 +1,52 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { WorkerPing } from '../models/WorkerPing';
5
+
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ import { OpenAPI } from '../core/OpenAPI';
8
+ import { request as __request } from '../core/request';
9
+
10
+ export class WorkerService {
11
+
12
+ /**
13
+ * get all instance custom tags (tags are used to dispatch jobs to different worker groups)
14
+ * @returns string list of custom tags
15
+ * @throws ApiError
16
+ */
17
+ public static getCustomTags(): CancelablePromise<Array<string>> {
18
+ return __request(OpenAPI, {
19
+ method: 'GET',
20
+ url: '/workers/custom_tags',
21
+ });
22
+ }
23
+
24
+ /**
25
+ * list workers
26
+ * @returns WorkerPing a list of workers
27
+ * @throws ApiError
28
+ */
29
+ public static listWorkers({
30
+ page,
31
+ perPage,
32
+ }: {
33
+ /**
34
+ * which page to return (start at 1, default 1)
35
+ */
36
+ page?: number,
37
+ /**
38
+ * number of items to return for a given page (default 30, max 100)
39
+ */
40
+ perPage?: number,
41
+ }): CancelablePromise<Array<WorkerPing>> {
42
+ return __request(OpenAPI, {
43
+ method: 'GET',
44
+ url: '/workers/list',
45
+ query: {
46
+ 'page': page,
47
+ 'per_page': perPage,
48
+ },
49
+ });
50
+ }
51
+
52
+ }
@@ -0,0 +1,446 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { CreateWorkspace } from '../models/CreateWorkspace';
5
+ import type { UserWorkspaceList } from '../models/UserWorkspaceList';
6
+ import type { Workspace } from '../models/Workspace';
7
+ import type { WorkspaceInvite } from '../models/WorkspaceInvite';
8
+
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ import { OpenAPI } from '../core/OpenAPI';
11
+ import { request as __request } from '../core/request';
12
+
13
+ export class WorkspaceService {
14
+
15
+ /**
16
+ * list all workspaces visible to me
17
+ * @returns Workspace all workspaces
18
+ * @throws ApiError
19
+ */
20
+ public static listWorkspaces(): CancelablePromise<Array<Workspace>> {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/workspaces/list',
24
+ });
25
+ }
26
+
27
+ /**
28
+ * is domain allowed for auto invi
29
+ * @returns boolean domain allowed or not
30
+ * @throws ApiError
31
+ */
32
+ public static isDomainAllowed(): CancelablePromise<boolean> {
33
+ return __request(OpenAPI, {
34
+ method: 'GET',
35
+ url: '/workspaces/allowed_domain_auto_invite',
36
+ });
37
+ }
38
+
39
+ /**
40
+ * list all workspaces visible to me with user info
41
+ * @returns UserWorkspaceList workspace with associated username
42
+ * @throws ApiError
43
+ */
44
+ public static listUserWorkspaces(): CancelablePromise<UserWorkspaceList> {
45
+ return __request(OpenAPI, {
46
+ method: 'GET',
47
+ url: '/workspaces/users',
48
+ });
49
+ }
50
+
51
+ /**
52
+ * list all workspaces as super admin (require to be super admin)
53
+ * @returns Workspace workspaces
54
+ * @throws ApiError
55
+ */
56
+ public static listWorkspacesAsSuperAdmin({
57
+ page,
58
+ perPage,
59
+ }: {
60
+ /**
61
+ * which page to return (start at 1, default 1)
62
+ */
63
+ page?: number,
64
+ /**
65
+ * number of items to return for a given page (default 30, max 100)
66
+ */
67
+ perPage?: number,
68
+ }): CancelablePromise<Array<Workspace>> {
69
+ return __request(OpenAPI, {
70
+ method: 'GET',
71
+ url: '/workspaces/list_as_superadmin',
72
+ query: {
73
+ 'page': page,
74
+ 'per_page': perPage,
75
+ },
76
+ });
77
+ }
78
+
79
+ /**
80
+ * create workspace
81
+ * @returns string token created
82
+ * @throws ApiError
83
+ */
84
+ public static createWorkspace({
85
+ requestBody,
86
+ }: {
87
+ /**
88
+ * new token
89
+ */
90
+ requestBody: CreateWorkspace,
91
+ }): CancelablePromise<string> {
92
+ return __request(OpenAPI, {
93
+ method: 'POST',
94
+ url: '/workspaces/create',
95
+ body: requestBody,
96
+ mediaType: 'application/json',
97
+ });
98
+ }
99
+
100
+ /**
101
+ * exists workspace
102
+ * @returns boolean status
103
+ * @throws ApiError
104
+ */
105
+ public static existsWorkspace({
106
+ requestBody,
107
+ }: {
108
+ /**
109
+ * id of workspace
110
+ */
111
+ requestBody: {
112
+ id: string;
113
+ },
114
+ }): CancelablePromise<boolean> {
115
+ return __request(OpenAPI, {
116
+ method: 'POST',
117
+ url: '/workspaces/exists',
118
+ body: requestBody,
119
+ mediaType: 'application/json',
120
+ });
121
+ }
122
+
123
+ /**
124
+ * exists username
125
+ * @returns boolean status
126
+ * @throws ApiError
127
+ */
128
+ public static existsUsername({
129
+ requestBody,
130
+ }: {
131
+ requestBody: {
132
+ id: string;
133
+ username: string;
134
+ },
135
+ }): CancelablePromise<boolean> {
136
+ return __request(OpenAPI, {
137
+ method: 'POST',
138
+ url: '/workspaces/exists_username',
139
+ body: requestBody,
140
+ mediaType: 'application/json',
141
+ });
142
+ }
143
+
144
+ /**
145
+ * invite user to workspace
146
+ * @returns string status
147
+ * @throws ApiError
148
+ */
149
+ public static inviteUser({
150
+ workspace,
151
+ requestBody,
152
+ }: {
153
+ workspace: string,
154
+ /**
155
+ * WorkspaceInvite
156
+ */
157
+ requestBody: {
158
+ email: string;
159
+ is_admin: boolean;
160
+ operator: boolean;
161
+ },
162
+ }): CancelablePromise<string> {
163
+ return __request(OpenAPI, {
164
+ method: 'POST',
165
+ url: '/w/{workspace}/workspaces/invite_user',
166
+ path: {
167
+ 'workspace': workspace,
168
+ },
169
+ body: requestBody,
170
+ mediaType: 'application/json',
171
+ });
172
+ }
173
+
174
+ /**
175
+ * add user to workspace
176
+ * @returns string status
177
+ * @throws ApiError
178
+ */
179
+ public static addUser({
180
+ workspace,
181
+ requestBody,
182
+ }: {
183
+ workspace: string,
184
+ /**
185
+ * WorkspaceInvite
186
+ */
187
+ requestBody: {
188
+ email: string;
189
+ is_admin: boolean;
190
+ username: string;
191
+ operator: boolean;
192
+ },
193
+ }): CancelablePromise<string> {
194
+ return __request(OpenAPI, {
195
+ method: 'POST',
196
+ url: '/w/{workspace}/workspaces/add_user',
197
+ path: {
198
+ 'workspace': workspace,
199
+ },
200
+ body: requestBody,
201
+ mediaType: 'application/json',
202
+ });
203
+ }
204
+
205
+ /**
206
+ * delete user invite
207
+ * @returns string status
208
+ * @throws ApiError
209
+ */
210
+ public static deleteInvite({
211
+ workspace,
212
+ requestBody,
213
+ }: {
214
+ workspace: string,
215
+ /**
216
+ * WorkspaceInvite
217
+ */
218
+ requestBody: {
219
+ email: string;
220
+ is_admin: boolean;
221
+ operator: boolean;
222
+ },
223
+ }): CancelablePromise<string> {
224
+ return __request(OpenAPI, {
225
+ method: 'POST',
226
+ url: '/w/{workspace}/workspaces/delete_invite',
227
+ path: {
228
+ 'workspace': workspace,
229
+ },
230
+ body: requestBody,
231
+ mediaType: 'application/json',
232
+ });
233
+ }
234
+
235
+ /**
236
+ * archive workspace
237
+ * @returns string status
238
+ * @throws ApiError
239
+ */
240
+ public static archiveWorkspace({
241
+ workspace,
242
+ }: {
243
+ workspace: string,
244
+ }): CancelablePromise<string> {
245
+ return __request(OpenAPI, {
246
+ method: 'POST',
247
+ url: '/w/{workspace}/workspaces/archive',
248
+ path: {
249
+ 'workspace': workspace,
250
+ },
251
+ });
252
+ }
253
+
254
+ /**
255
+ * unarchive workspace
256
+ * @returns string status
257
+ * @throws ApiError
258
+ */
259
+ public static unarchiveWorkspace({
260
+ workspace,
261
+ }: {
262
+ workspace: string,
263
+ }): CancelablePromise<string> {
264
+ return __request(OpenAPI, {
265
+ method: 'POST',
266
+ url: '/workspaces/unarchive/{workspace}',
267
+ path: {
268
+ 'workspace': workspace,
269
+ },
270
+ });
271
+ }
272
+
273
+ /**
274
+ * delete workspace (require super admin)
275
+ * @returns string status
276
+ * @throws ApiError
277
+ */
278
+ public static deleteWorkspace({
279
+ workspace,
280
+ }: {
281
+ workspace: string,
282
+ }): CancelablePromise<string> {
283
+ return __request(OpenAPI, {
284
+ method: 'DELETE',
285
+ url: '/workspaces/delete/{workspace}',
286
+ path: {
287
+ 'workspace': workspace,
288
+ },
289
+ });
290
+ }
291
+
292
+ /**
293
+ * list pending invites for a workspace
294
+ * @returns WorkspaceInvite user
295
+ * @throws ApiError
296
+ */
297
+ public static listPendingInvites({
298
+ workspace,
299
+ }: {
300
+ workspace: string,
301
+ }): CancelablePromise<Array<WorkspaceInvite>> {
302
+ return __request(OpenAPI, {
303
+ method: 'GET',
304
+ url: '/w/{workspace}/workspaces/list_pending_invites',
305
+ path: {
306
+ 'workspace': workspace,
307
+ },
308
+ });
309
+ }
310
+
311
+ /**
312
+ * get settings
313
+ * @returns any status
314
+ * @throws ApiError
315
+ */
316
+ public static getSettings({
317
+ workspace,
318
+ }: {
319
+ workspace: string,
320
+ }): CancelablePromise<{
321
+ workspace_id?: string;
322
+ slack_name?: string;
323
+ slack_team_id?: string;
324
+ slack_command_script?: string;
325
+ auto_invite_domain?: string;
326
+ auto_invite_operator?: boolean;
327
+ plan?: string;
328
+ customer_id?: string;
329
+ webhook?: string;
330
+ }> {
331
+ return __request(OpenAPI, {
332
+ method: 'GET',
333
+ url: '/w/{workspace}/workspaces/get_settings',
334
+ path: {
335
+ 'workspace': workspace,
336
+ },
337
+ });
338
+ }
339
+
340
+ /**
341
+ * get premium info
342
+ * @returns any status
343
+ * @throws ApiError
344
+ */
345
+ public static getPremiumInfo({
346
+ workspace,
347
+ }: {
348
+ workspace: string,
349
+ }): CancelablePromise<{
350
+ premium: boolean;
351
+ usage?: number;
352
+ }> {
353
+ return __request(OpenAPI, {
354
+ method: 'GET',
355
+ url: '/w/{workspace}/workspaces/premium_info',
356
+ path: {
357
+ 'workspace': workspace,
358
+ },
359
+ });
360
+ }
361
+
362
+ /**
363
+ * edit slack command
364
+ * @returns string status
365
+ * @throws ApiError
366
+ */
367
+ public static editSlackCommand({
368
+ workspace,
369
+ requestBody,
370
+ }: {
371
+ workspace: string,
372
+ /**
373
+ * WorkspaceInvite
374
+ */
375
+ requestBody: {
376
+ slack_command_script?: string;
377
+ },
378
+ }): CancelablePromise<string> {
379
+ return __request(OpenAPI, {
380
+ method: 'POST',
381
+ url: '/w/{workspace}/workspaces/edit_slack_command',
382
+ path: {
383
+ 'workspace': workspace,
384
+ },
385
+ body: requestBody,
386
+ mediaType: 'application/json',
387
+ });
388
+ }
389
+
390
+ /**
391
+ * edit auto invite
392
+ * @returns string status
393
+ * @throws ApiError
394
+ */
395
+ public static editAutoInvite({
396
+ workspace,
397
+ requestBody,
398
+ }: {
399
+ workspace: string,
400
+ /**
401
+ * WorkspaceInvite
402
+ */
403
+ requestBody: {
404
+ operator?: boolean;
405
+ },
406
+ }): CancelablePromise<string> {
407
+ return __request(OpenAPI, {
408
+ method: 'POST',
409
+ url: '/w/{workspace}/workspaces/edit_auto_invite',
410
+ path: {
411
+ 'workspace': workspace,
412
+ },
413
+ body: requestBody,
414
+ mediaType: 'application/json',
415
+ });
416
+ }
417
+
418
+ /**
419
+ * edit webhook
420
+ * @returns string status
421
+ * @throws ApiError
422
+ */
423
+ public static editWebhook({
424
+ workspace,
425
+ requestBody,
426
+ }: {
427
+ workspace: string,
428
+ /**
429
+ * WorkspaceWebhook
430
+ */
431
+ requestBody: {
432
+ webhook?: string;
433
+ },
434
+ }): CancelablePromise<string> {
435
+ return __request(OpenAPI, {
436
+ method: 'POST',
437
+ url: '/w/{workspace}/workspaces/edit_webhook',
438
+ path: {
439
+ 'workspace': workspace,
440
+ },
441
+ body: requestBody,
442
+ mediaType: 'application/json',
443
+ });
444
+ }
445
+
446
+ }