windmill-client 1.502.2 → 1.503.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
@@ -691,13 +691,18 @@ function loadS3FileStream(s3object_1) {
691
691
  }
692
692
  const queryParams = new URLSearchParams(params);
693
693
  // We use raw fetch here b/c OpenAPI generated client doesn't handle Blobs nicely
694
- const fileContentBlob = yield fetch(`${index_2.OpenAPI.BASE}/w/${getWorkspace()}/job_helpers/download_s3_file?${queryParams}`, {
694
+ const response = yield fetch(`${index_2.OpenAPI.BASE}/w/${getWorkspace()}/job_helpers/download_s3_file?${queryParams}`, {
695
695
  method: "GET",
696
696
  headers: {
697
697
  Authorization: `Bearer ${index_2.OpenAPI.TOKEN}`,
698
698
  },
699
699
  });
700
- return fileContentBlob.blob();
700
+ // Check if the response was successful
701
+ if (!response.ok) {
702
+ const errorText = yield response.text();
703
+ throw new Error(`Failed to load S3 file: ${response.status} ${response.statusText} - ${errorText}`);
704
+ }
705
+ return response.blob();
701
706
  });
702
707
  }
703
708
  /**
@@ -39,7 +39,7 @@ exports.OpenAPI = {
39
39
  PASSWORD: undefined,
40
40
  TOKEN: getEnv("WM_TOKEN"),
41
41
  USERNAME: undefined,
42
- VERSION: '1.502.2',
42
+ VERSION: '1.503.0',
43
43
  WITH_CREDENTIALS: true,
44
44
  interceptors: {
45
45
  request: new Interceptors(),
@@ -518,6 +518,7 @@ export type AuditLog = {
518
518
  parameters?: {
519
519
  [key: string]: unknown;
520
520
  };
521
+ span?: string;
521
522
  };
522
523
  export type MainArgSignature = {
523
524
  type: 'Valid' | 'Invalid';
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.502.2",
4
+ "version": "1.503.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {