windmill-client 1.422.1 → 1.423.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.
package/dist/client.d.ts CHANGED
@@ -138,7 +138,7 @@ export declare function loadS3FileStream(s3object: S3Object, s3ResourcePath?: st
138
138
  * console.log(fileContentAsUtf8Str)
139
139
  * ```
140
140
  */
141
- export declare function writeS3File(s3object: S3Object | undefined, fileContent: string | Blob, s3ResourcePath?: string | undefined): Promise<S3Object>;
141
+ export declare function writeS3File(s3object: S3Object | undefined, fileContent: string | Blob, s3ResourcePath?: string | undefined, contentType?: string | undefined, contentDisposition?: string | undefined): Promise<S3Object>;
142
142
  /**
143
143
  * Get URLs needed for resuming a flow after this step
144
144
  * @param approver approver name
package/dist/client.js CHANGED
@@ -676,7 +676,7 @@ function loadS3FileStream(s3object_1) {
676
676
  * ```
677
677
  */
678
678
  function writeS3File(s3object_1, fileContent_1) {
679
- return __awaiter(this, arguments, void 0, function* (s3object, fileContent, s3ResourcePath = undefined) {
679
+ return __awaiter(this, arguments, void 0, function* (s3object, fileContent, s3ResourcePath = undefined, contentType = undefined, contentDisposition = undefined) {
680
680
  let fileContentBlob;
681
681
  if (typeof fileContent === "string") {
682
682
  fileContentBlob = new Blob([fileContent], {
@@ -693,6 +693,8 @@ function writeS3File(s3object_1, fileContent_1) {
693
693
  s3ResourcePath: s3ResourcePath,
694
694
  requestBody: fileContentBlob,
695
695
  storage: s3object === null || s3object === void 0 ? void 0 : s3object.storage,
696
+ contentType,
697
+ contentDisposition,
696
698
  });
697
699
  return {
698
700
  s3: response.file_key,
@@ -39,7 +39,7 @@ exports.OpenAPI = {
39
39
  PASSWORD: undefined,
40
40
  TOKEN: getEnv("WM_TOKEN"),
41
41
  USERNAME: undefined,
42
- VERSION: '1.422.1',
42
+ VERSION: '1.423.1',
43
43
  WITH_CREDENTIALS: true,
44
44
  interceptors: {
45
45
  request: new Interceptors(),
@@ -728,6 +728,9 @@ export type Policy = {
728
728
  [key: string]: unknown;
729
729
  };
730
730
  };
731
+ s3_inputs?: Array<{
732
+ [key: string]: unknown;
733
+ }>;
731
734
  execution_mode?: 'viewer' | 'publisher' | 'anonymous';
732
735
  on_behalf_of?: string;
733
736
  on_behalf_of_email?: string;
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.422.1",
4
+ "version": "1.423.1",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {