windmill-client 1.192.0 → 1.194.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.192.0',
6
+ VERSION: '1.194.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -88,6 +88,7 @@ export { RawScript } from './models/RawScript';
88
88
  export type { Resource } from './models/Resource';
89
89
  export type { ResourceName } from './models/ResourceName';
90
90
  export type { ResourceType } from './models/ResourceType';
91
+ export type { RestartedFrom } from './models/RestartedFrom';
91
92
  export type { ResultFilter } from './models/ResultFilter';
92
93
  export type { Retry } from './models/Retry';
93
94
  export type { RunnableId } from './models/RunnableId';
@@ -1,8 +1,10 @@
1
1
  import type { FlowValue } from './FlowValue';
2
+ import type { RestartedFrom } from './RestartedFrom';
2
3
  import type { ScriptArgs } from './ScriptArgs';
3
4
  export type FlowPreview = {
4
5
  value: FlowValue;
5
6
  path?: string;
6
7
  args: ScriptArgs;
7
8
  tag?: string;
9
+ restarted_from?: RestartedFrom;
8
10
  };
@@ -0,0 +1,4 @@
1
+ export type RestartedFrom = {
2
+ flow_job_id?: string;
3
+ step_id?: string;
4
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* generated using openapi-typescript-codegen -- do no edit */
3
+ /* istanbul ignore file */
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -242,6 +242,49 @@ export declare class JobService {
242
242
  */
243
243
  invisibleToOwner?: boolean;
244
244
  }): CancelablePromise<string>;
245
+ /**
246
+ * restart a completed flow at a given step
247
+ * @returns string job created
248
+ * @throws ApiError
249
+ */
250
+ static restartFlowAtStep({ workspace, id, stepId, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }: {
251
+ workspace: string;
252
+ id: string;
253
+ /**
254
+ * step id to restart the flow from
255
+ */
256
+ stepId: string;
257
+ /**
258
+ * flow args
259
+ */
260
+ requestBody: ScriptArgs;
261
+ /**
262
+ * when to schedule this job (leave empty for immediate run)
263
+ */
264
+ scheduledFor?: string;
265
+ /**
266
+ * schedule the script to execute in the number of seconds starting now
267
+ */
268
+ scheduledInSecs?: number;
269
+ /**
270
+ * The parent job that is at the origin and responsible for the execution of this script if any
271
+ */
272
+ parentJob?: string;
273
+ /**
274
+ * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
275
+ */
276
+ jobId?: string;
277
+ /**
278
+ * List of headers's keys (separated with ',') whove value are added to the args
279
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
280
+ *
281
+ */
282
+ includeHeader?: string;
283
+ /**
284
+ * make the run invisible to the the flow owner (default false)
285
+ */
286
+ invisibleToOwner?: boolean;
287
+ }): CancelablePromise<string>;
245
288
  /**
246
289
  * run script by hash
247
290
  * @returns string job created
@@ -181,6 +181,32 @@ class JobService {
181
181
  mediaType: 'application/json',
182
182
  });
183
183
  }
184
+ /**
185
+ * restart a completed flow at a given step
186
+ * @returns string job created
187
+ * @throws ApiError
188
+ */
189
+ static restartFlowAtStep({ workspace, id, stepId, requestBody, scheduledFor, scheduledInSecs, parentJob, jobId, includeHeader, invisibleToOwner, }) {
190
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
191
+ method: 'POST',
192
+ url: '/w/{workspace}/jobs/restart/f/{id}/from/{step_id}',
193
+ path: {
194
+ 'workspace': workspace,
195
+ 'id': id,
196
+ 'step_id': stepId,
197
+ },
198
+ query: {
199
+ 'scheduled_for': scheduledFor,
200
+ 'scheduled_in_secs': scheduledInSecs,
201
+ 'parent_job': parentJob,
202
+ 'job_id': jobId,
203
+ 'include_header': includeHeader,
204
+ 'invisible_to_owner': invisibleToOwner,
205
+ },
206
+ body: requestBody,
207
+ mediaType: 'application/json',
208
+ });
209
+ }
184
210
  /**
185
211
  * run script by hash
186
212
  * @returns string job created
@@ -216,7 +216,8 @@ export declare class ResourceService {
216
216
  * @returns any resource type details
217
217
  * @throws ApiError
218
218
  */
219
- static queryResourceTypes({ text, limit, }: {
219
+ static queryResourceTypes({ workspace, text, limit, }: {
220
+ workspace: string;
220
221
  /**
221
222
  * query text
222
223
  */
@@ -295,10 +295,13 @@ class ResourceService {
295
295
  * @returns any resource type details
296
296
  * @throws ApiError
297
297
  */
298
- static queryResourceTypes({ text, limit, }) {
298
+ static queryResourceTypes({ workspace, text, limit, }) {
299
299
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
300
300
  method: 'GET',
301
- url: '/embeddings/query_resource_types',
301
+ url: '/w/{workspace}/embeddings/query_resource_types',
302
+ path: {
303
+ 'workspace': workspace,
304
+ },
302
305
  query: {
303
306
  'text': text,
304
307
  'limit': limit,
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.192.0",
4
+ "version": "1.194.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {