windmill-client 1.183.0 → 1.185.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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.183.0',
6
+ VERSION: '1.185.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -9,4 +9,5 @@ export type FlowMetadata = {
9
9
  starred?: boolean;
10
10
  draft_only?: boolean;
11
11
  tag?: string;
12
+ ws_error_handler_muted?: boolean;
12
13
  };
@@ -16,6 +16,7 @@ export type NewScript = {
16
16
  concurrency_time_window_s?: Array<number>;
17
17
  cache_ttl?: number;
18
18
  dedicated_worker?: boolean;
19
+ ws_error_handler_muted?: boolean;
19
20
  };
20
21
  export declare namespace NewScript {
21
22
  enum language {
@@ -2,4 +2,5 @@ import type { OpenFlow } from './OpenFlow';
2
2
  export type OpenFlowWPath = (OpenFlow & {
3
3
  path: string;
4
4
  tag?: string;
5
+ ws_error_handler_muted?: boolean;
5
6
  });
@@ -30,6 +30,7 @@ export type Script = {
30
30
  concurrency_time_window_s?: Array<number>;
31
31
  cache_ttl?: number;
32
32
  dedicated_worker?: boolean;
33
+ ws_error_handler_muted?: boolean;
33
34
  };
34
35
  export declare namespace Script {
35
36
  enum language {
@@ -106,6 +106,21 @@ export declare class FlowService {
106
106
  workspace: string;
107
107
  path: string;
108
108
  }): CancelablePromise<Flow>;
109
+ /**
110
+ * Toggle ON and OFF the workspace error handler for a given flow
111
+ * @returns string error handler toggled
112
+ * @throws ApiError
113
+ */
114
+ static toggleWorkspaceErrorHandlerForFlow({ workspace, path, requestBody, }: {
115
+ workspace: string;
116
+ path: string;
117
+ /**
118
+ * Workspace error handler enabled
119
+ */
120
+ requestBody: {
121
+ muted?: boolean;
122
+ };
123
+ }): CancelablePromise<string>;
109
124
  /**
110
125
  * get flow by path with draft
111
126
  * @returns any flow details with draft
@@ -96,6 +96,23 @@ class FlowService {
96
96
  },
97
97
  });
98
98
  }
99
+ /**
100
+ * Toggle ON and OFF the workspace error handler for a given flow
101
+ * @returns string error handler toggled
102
+ * @throws ApiError
103
+ */
104
+ static toggleWorkspaceErrorHandlerForFlow({ workspace, path, requestBody, }) {
105
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
106
+ method: 'POST',
107
+ url: '/w/{workspace}/flows/toggle_workspace_error_handler/{path}',
108
+ path: {
109
+ 'workspace': workspace,
110
+ 'path': path,
111
+ },
112
+ body: requestBody,
113
+ mediaType: 'application/json',
114
+ });
115
+ }
99
116
  /**
100
117
  * get flow by path with draft
101
118
  * @returns any flow details with draft
@@ -211,4 +211,31 @@ export declare class ResourceService {
211
211
  static listResourceTypeNames({ workspace, }: {
212
212
  workspace: string;
213
213
  }): CancelablePromise<Array<string>>;
214
+ /**
215
+ * list hub resource types
216
+ * @returns any resource type details
217
+ * @throws ApiError
218
+ */
219
+ static listHubResourceTypes(): CancelablePromise<Array<{
220
+ id: string;
221
+ name: string;
222
+ schema?: any;
223
+ }>>;
224
+ /**
225
+ * query hub resource types by similarity
226
+ * @returns any resource type details
227
+ * @throws ApiError
228
+ */
229
+ static queryHubResourceTypes({ text, limit, }: {
230
+ /**
231
+ * query text
232
+ */
233
+ text: string;
234
+ /**
235
+ * query limit
236
+ */
237
+ limit?: number;
238
+ }): CancelablePromise<Array<{
239
+ id: string;
240
+ }>>;
214
241
  }
@@ -290,5 +290,31 @@ class ResourceService {
290
290
  },
291
291
  });
292
292
  }
293
+ /**
294
+ * list hub resource types
295
+ * @returns any resource type details
296
+ * @throws ApiError
297
+ */
298
+ static listHubResourceTypes() {
299
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
300
+ method: 'GET',
301
+ url: '/resources/type/hub/list',
302
+ });
303
+ }
304
+ /**
305
+ * query hub resource types by similarity
306
+ * @returns any resource type details
307
+ * @throws ApiError
308
+ */
309
+ static queryHubResourceTypes({ text, limit, }) {
310
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
311
+ method: 'GET',
312
+ url: '/resources/type/hub/query',
313
+ query: {
314
+ 'text': text,
315
+ 'limit': limit,
316
+ },
317
+ });
318
+ }
293
319
  }
294
320
  exports.ResourceService = ResourceService;
@@ -79,7 +79,7 @@ export declare class ScriptService {
79
79
  * @returns Script All available scripts
80
80
  * @throws ApiError
81
81
  */
82
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }: {
82
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }: {
83
83
  workspace: string;
84
84
  /**
85
85
  * which page to return (start at 1, default 1)
@@ -144,10 +144,10 @@ export declare class ScriptService {
144
144
  isTemplate?: boolean;
145
145
  /**
146
146
  * (default regardless)
147
- * script kind
147
+ * script kinds to filter, split by comma
148
148
  *
149
149
  */
150
- kind?: string;
150
+ kinds?: string;
151
151
  /**
152
152
  * (default false)
153
153
  * show only the starred items
@@ -175,6 +175,21 @@ export declare class ScriptService {
175
175
  */
176
176
  requestBody: NewScript;
177
177
  }): CancelablePromise<string>;
178
+ /**
179
+ * Toggle ON and OFF the workspace error handler for a given script
180
+ * @returns string error handler toggled
181
+ * @throws ApiError
182
+ */
183
+ static toggleWorkspaceErrorHandlerForScript({ workspace, path, requestBody, }: {
184
+ workspace: string;
185
+ path: string;
186
+ /**
187
+ * Workspace error handler enabled
188
+ */
189
+ requestBody: {
190
+ muted?: boolean;
191
+ };
192
+ }): CancelablePromise<string>;
178
193
  /**
179
194
  * archive script by path
180
195
  * @returns string script archived
@@ -78,7 +78,7 @@ class ScriptService {
78
78
  * @returns Script All available scripts
79
79
  * @throws ApiError
80
80
  */
81
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }) {
81
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }) {
82
82
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
83
83
  method: 'GET',
84
84
  url: '/w/{workspace}/scripts/list',
@@ -97,7 +97,7 @@ class ScriptService {
97
97
  'parent_hash': parentHash,
98
98
  'show_archived': showArchived,
99
99
  'is_template': isTemplate,
100
- 'kind': kind,
100
+ 'kinds': kinds,
101
101
  'starred_only': starredOnly,
102
102
  },
103
103
  });
@@ -132,6 +132,23 @@ class ScriptService {
132
132
  mediaType: 'application/json',
133
133
  });
134
134
  }
135
+ /**
136
+ * Toggle ON and OFF the workspace error handler for a given script
137
+ * @returns string error handler toggled
138
+ * @throws ApiError
139
+ */
140
+ static toggleWorkspaceErrorHandlerForScript({ workspace, path, requestBody, }) {
141
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
142
+ method: 'POST',
143
+ url: '/w/{workspace}/scripts/toggle_workspace_error_handler/p/{path}',
144
+ path: {
145
+ 'workspace': workspace,
146
+ 'path': path,
147
+ },
148
+ body: requestBody,
149
+ mediaType: 'application/json',
150
+ });
151
+ }
135
152
  /**
136
153
  * archive script by path
137
154
  * @returns string script archived
@@ -1,4 +1,5 @@
1
1
  import type { CreateWorkspace } from '../models/CreateWorkspace';
2
+ import type { ScriptArgs } from '../models/ScriptArgs';
2
3
  import type { UserWorkspaceList } from '../models/UserWorkspaceList';
3
4
  import type { Workspace } from '../models/Workspace';
4
5
  import type { WorkspaceInvite } from '../models/WorkspaceInvite';
@@ -174,6 +175,7 @@ export declare class WorkspaceService {
174
175
  openai_resource_path?: string;
175
176
  code_completion_enabled: boolean;
176
177
  error_handler?: string;
178
+ error_handler_extra_args?: ScriptArgs;
177
179
  }>;
178
180
  /**
179
181
  * get deploy to
@@ -210,6 +212,24 @@ export declare class WorkspaceService {
210
212
  slack_command_script?: string;
211
213
  };
212
214
  }): CancelablePromise<string>;
215
+ /**
216
+ * run a job that sends a message to Slack
217
+ * @returns any status
218
+ * @throws ApiError
219
+ */
220
+ static runSlackMessageTestJob({ workspace, requestBody, }: {
221
+ workspace: string;
222
+ /**
223
+ * path to hub script to run and its corresponding args
224
+ */
225
+ requestBody: {
226
+ hub_script_path?: string;
227
+ channel?: string;
228
+ test_msg?: string;
229
+ };
230
+ }): CancelablePromise<{
231
+ job_uuid?: string;
232
+ }>;
213
233
  /**
214
234
  * edit deploy to
215
235
  * @returns string status
@@ -287,6 +307,7 @@ export declare class WorkspaceService {
287
307
  */
288
308
  requestBody: {
289
309
  error_handler?: string;
310
+ error_handler_extra_args?: ScriptArgs;
290
311
  };
291
312
  }): CancelablePromise<string>;
292
313
  }
@@ -253,6 +253,22 @@ class WorkspaceService {
253
253
  mediaType: 'application/json',
254
254
  });
255
255
  }
256
+ /**
257
+ * run a job that sends a message to Slack
258
+ * @returns any status
259
+ * @throws ApiError
260
+ */
261
+ static runSlackMessageTestJob({ workspace, requestBody, }) {
262
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
263
+ method: 'POST',
264
+ url: '/w/{workspace}/workspaces/run_slack_message_test_job',
265
+ path: {
266
+ 'workspace': workspace,
267
+ },
268
+ body: requestBody,
269
+ mediaType: 'application/json',
270
+ });
271
+ }
256
272
  /**
257
273
  * edit deploy to
258
274
  * @returns string status
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.183.0",
4
+ "version": "1.185.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {