windmill-client 1.213.0 → 1.214.1

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.213.0',
6
+ VERSION: '1.214.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -81,6 +81,7 @@ export type { PathId } from './models/PathId';
81
81
  export type { PathScript } from './models/PathScript';
82
82
  export type { Payload } from './models/Payload';
83
83
  export type { PerPage } from './models/PerPage';
84
+ export type { PolarsClientKwargs } from './models/PolarsClientKwargs';
84
85
  export { Policy } from './models/Policy';
85
86
  export { Preview } from './models/Preview';
86
87
  export { QueuedJob } from './models/QueuedJob';
@@ -0,0 +1,3 @@
1
+ export type PolarsClientKwargs = {
2
+ region_name: string;
3
+ };
@@ -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,3 +1,4 @@
1
+ import type { PolarsClientKwargs } from '../models/PolarsClientKwargs';
1
2
  import type { WindmillFileMetadata } from '../models/WindmillFileMetadata';
2
3
  import type { WindmillFilePreview } from '../models/WindmillFilePreview';
3
4
  import type { WindmillLargeFile } from '../models/WindmillLargeFile';
@@ -17,6 +18,25 @@ export declare class HelpersService {
17
18
  }): CancelablePromise<{
18
19
  connection_settings_str?: string;
19
20
  }>;
21
+ /**
22
+ * Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket
23
+ * @returns any Connection settings
24
+ * @throws ApiError
25
+ */
26
+ static polarsConnectionSettings({ workspace, requestBody, }: {
27
+ workspace: string;
28
+ /**
29
+ * S3 resource to connect to
30
+ */
31
+ requestBody: any;
32
+ }): CancelablePromise<{
33
+ endpoint_url: string;
34
+ key?: string;
35
+ secret?: string;
36
+ use_ssl: boolean;
37
+ cache_regions: boolean;
38
+ client_kwargs: PolarsClientKwargs;
39
+ }>;
20
40
  /**
21
41
  * Test connection to the workspace datasets storage
22
42
  * @returns any Connection settings
@@ -20,6 +20,22 @@ class HelpersService {
20
20
  mediaType: 'application/json',
21
21
  });
22
22
  }
23
+ /**
24
+ * Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket
25
+ * @returns any Connection settings
26
+ * @throws ApiError
27
+ */
28
+ static polarsConnectionSettings({ workspace, requestBody, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'POST',
31
+ url: '/w/{workspace}/job_helpers/polars_connection_settings',
32
+ path: {
33
+ 'workspace': workspace,
34
+ },
35
+ body: requestBody,
36
+ mediaType: 'application/json',
37
+ });
38
+ }
23
39
  /**
24
40
  * Test connection to the workspace datasets storage
25
41
  * @returns any Connection settings
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.213.0",
4
+ "version": "1.214.1",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {