windmill-client 1.229.0 → 1.230.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/dist/client.js CHANGED
@@ -278,6 +278,7 @@ exports.databaseUrlFromResource = databaseUrlFromResource;
278
278
  // }
279
279
  function denoS3LightClientSettings(s3_resource_path) {
280
280
  return __awaiter(this, void 0, void 0, function* () {
281
+ !clientSet && setClient();
281
282
  const workspace = getWorkspace();
282
283
  const s3Resource = yield index_1.HelpersService.s3ResourceInfo({
283
284
  workspace: workspace,
@@ -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.229.0',
6
+ VERSION: '1.230.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -123,6 +123,7 @@ export type { Token } from './models/Token';
123
123
  export type { TokenResponse } from './models/TokenResponse';
124
124
  export type { TruncatedToken } from './models/TruncatedToken';
125
125
  export type { UpdateInput } from './models/UpdateInput';
126
+ export type { UploadFilePart } from './models/UploadFilePart';
126
127
  export type { Usage } from './models/Usage';
127
128
  export type { User } from './models/User';
128
129
  export type { Username } from './models/Username';
@@ -50,7 +50,8 @@ export declare namespace CompletedJob {
50
50
  FLOWPREVIEW = "flowpreview",
51
51
  SCRIPT_HUB = "script_hub",
52
52
  IDENTITY = "identity",
53
- DEPLOYMENTCALLBACK = "deploymentcallback"
53
+ DEPLOYMENTCALLBACK = "deploymentcallback",
54
+ SINGLESCRIPTFLOW = "singlescriptflow"
54
55
  }
55
56
  enum language {
56
57
  PYTHON3 = "python3",
@@ -19,6 +19,7 @@ var CompletedJob;
19
19
  job_kind["SCRIPT_HUB"] = "script_hub";
20
20
  job_kind["IDENTITY"] = "identity";
21
21
  job_kind["DEPLOYMENTCALLBACK"] = "deploymentcallback";
22
+ job_kind["SINGLESCRIPTFLOW"] = "singlescriptflow";
22
23
  })(job_kind = CompletedJob.job_kind || (CompletedJob.job_kind = {}));
23
24
  let language;
24
25
  (function (language) {
@@ -1,3 +1,4 @@
1
+ import type { Retry } from './Retry';
1
2
  import type { ScriptArgs } from './ScriptArgs';
2
3
  export type EditSchedule = {
3
4
  schedule: string;
@@ -11,4 +12,5 @@ export type EditSchedule = {
11
12
  on_recovery_times?: number;
12
13
  on_recovery_extra_args?: ScriptArgs;
13
14
  ws_error_handler_muted?: boolean;
15
+ retry?: Retry;
14
16
  };
@@ -1,3 +1,4 @@
1
+ import type { Retry } from './Retry';
1
2
  import type { ScriptArgs } from './ScriptArgs';
2
3
  export type NewSchedule = {
3
4
  path: string;
@@ -15,4 +16,5 @@ export type NewSchedule = {
15
16
  on_recovery_times?: number;
16
17
  on_recovery_extra_args?: ScriptArgs;
17
18
  ws_error_handler_muted?: boolean;
19
+ retry?: Retry;
18
20
  };
@@ -48,7 +48,8 @@ export declare namespace QueuedJob {
48
48
  FLOWPREVIEW = "flowpreview",
49
49
  SCRIPT_HUB = "script_hub",
50
50
  IDENTITY = "identity",
51
- DEPLOYMENTCALLBACK = "deploymentcallback"
51
+ DEPLOYMENTCALLBACK = "deploymentcallback",
52
+ SINGLESCRIPTFLOW = "singlescriptflow"
52
53
  }
53
54
  enum language {
54
55
  PYTHON3 = "python3",
@@ -19,6 +19,7 @@ var QueuedJob;
19
19
  job_kind["SCRIPT_HUB"] = "script_hub";
20
20
  job_kind["IDENTITY"] = "identity";
21
21
  job_kind["DEPLOYMENTCALLBACK"] = "deploymentcallback";
22
+ job_kind["SINGLESCRIPTFLOW"] = "singlescriptflow";
22
23
  })(job_kind = QueuedJob.job_kind || (QueuedJob.job_kind = {}));
23
24
  let language;
24
25
  (function (language) {
@@ -1,3 +1,4 @@
1
+ import type { Retry } from './Retry';
1
2
  import type { ScriptArgs } from './ScriptArgs';
2
3
  export type Schedule = {
3
4
  path: string;
@@ -20,4 +21,5 @@ export type Schedule = {
20
21
  on_recovery_times?: number;
21
22
  on_recovery_extra_args?: ScriptArgs;
22
23
  ws_error_handler_muted?: boolean;
24
+ retry?: Retry;
23
25
  };
@@ -0,0 +1,4 @@
1
+ export type UploadFilePart = {
2
+ part_number: number;
3
+ tag: 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 });
@@ -1,5 +1,6 @@
1
1
  import type { PolarsClientKwargs } from '../models/PolarsClientKwargs';
2
2
  import type { S3Resource } from '../models/S3Resource';
3
+ import type { UploadFilePart } from '../models/UploadFilePart';
3
4
  import type { WindmillFileMetadata } from '../models/WindmillFileMetadata';
4
5
  import type { WindmillFilePreview } from '../models/WindmillFilePreview';
5
6
  import type { WindmillLargeFile } from '../models/WindmillLargeFile';
@@ -80,12 +81,12 @@ export declare class HelpersService {
80
81
  cache_regions: boolean;
81
82
  client_kwargs: PolarsClientKwargs;
82
83
  };
83
- polars_cloud_options: {
84
+ storage_options: {
84
85
  aws_endpoint_url: string;
85
86
  aws_access_key_id?: string;
86
87
  aws_secret_access_key?: string;
87
88
  aws_region: string;
88
- aws_allow_http: boolean;
89
+ aws_allow_http: string;
89
90
  };
90
91
  }>;
91
92
  /**
@@ -147,4 +148,46 @@ export declare class HelpersService {
147
148
  readBytesFrom?: number;
148
149
  readBytesLength?: number;
149
150
  }): CancelablePromise<WindmillFilePreview>;
151
+ /**
152
+ * Permanently delete file from S3
153
+ * @returns any Confirmation
154
+ * @throws ApiError
155
+ */
156
+ static deleteS3File({ workspace, fileKey, }: {
157
+ workspace: string;
158
+ fileKey: string;
159
+ }): CancelablePromise<any>;
160
+ /**
161
+ * Move a S3 file from one path to the other within the same bucket
162
+ * @returns any Confirmation
163
+ * @throws ApiError
164
+ */
165
+ static moveS3File({ workspace, srcFileKey, destFileKey, }: {
166
+ workspace: string;
167
+ srcFileKey: string;
168
+ destFileKey: string;
169
+ }): CancelablePromise<any>;
170
+ /**
171
+ * Upload file to S3 bucket using multipart upload
172
+ * @returns any Chunk upload status
173
+ * @throws ApiError
174
+ */
175
+ static multipartFileUpload({ workspace, requestBody, }: {
176
+ workspace: string;
177
+ /**
178
+ * Query args for a multipart file upload to S3
179
+ */
180
+ requestBody: {
181
+ file_key: string;
182
+ part_content?: Array<number>;
183
+ upload_id?: string;
184
+ parts: Array<UploadFilePart>;
185
+ is_final: boolean;
186
+ cancel_upload: boolean;
187
+ };
188
+ }): CancelablePromise<{
189
+ upload_id: string;
190
+ parts: Array<UploadFilePart>;
191
+ is_done: boolean;
192
+ }>;
150
193
  }
@@ -156,5 +156,56 @@ class HelpersService {
156
156
  },
157
157
  });
158
158
  }
159
+ /**
160
+ * Permanently delete file from S3
161
+ * @returns any Confirmation
162
+ * @throws ApiError
163
+ */
164
+ static deleteS3File({ workspace, fileKey, }) {
165
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
166
+ method: 'DELETE',
167
+ url: '/w/{workspace}/job_helpers/delete_s3_file',
168
+ path: {
169
+ 'workspace': workspace,
170
+ },
171
+ query: {
172
+ 'file_key': fileKey,
173
+ },
174
+ });
175
+ }
176
+ /**
177
+ * Move a S3 file from one path to the other within the same bucket
178
+ * @returns any Confirmation
179
+ * @throws ApiError
180
+ */
181
+ static moveS3File({ workspace, srcFileKey, destFileKey, }) {
182
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
183
+ method: 'GET',
184
+ url: '/w/{workspace}/job_helpers/move_s3_file',
185
+ path: {
186
+ 'workspace': workspace,
187
+ },
188
+ query: {
189
+ 'src_file_key': srcFileKey,
190
+ 'dest_file_key': destFileKey,
191
+ },
192
+ });
193
+ }
194
+ /**
195
+ * Upload file to S3 bucket using multipart upload
196
+ * @returns any Chunk upload status
197
+ * @throws ApiError
198
+ */
199
+ static multipartFileUpload({ workspace, requestBody, }) {
200
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
201
+ method: 'POST',
202
+ url: '/w/{workspace}/job_helpers/multipart_upload_s3_file',
203
+ path: {
204
+ 'workspace': workspace,
205
+ },
206
+ body: requestBody,
207
+ mediaType: 'application/json',
208
+ });
209
+ }
159
210
  }
160
211
  exports.HelpersService = HelpersService;
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.229.0",
4
+ "version": "1.230.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {