@aviaryhq/cloudglue-js 0.3.4 → 0.3.5

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.
@@ -180,7 +180,7 @@ declare class EnhancedFilesApi {
180
180
  limit: number;
181
181
  offset: number;
182
182
  }>;
183
- uploadFile(params: UploadFileParams): Promise<any>;
183
+ uploadFile(params: UploadFileParams): Promise<import("axios").AxiosResponse<any, any>>;
184
184
  getFile(fileId: string): Promise<import("zod").objectOutputType<{
185
185
  id: import("zod").ZodString;
186
186
  status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -66,7 +66,7 @@ class EnhancedFilesApi {
66
66
  formData.append("enable_segment_thumbnails", params.enable_segment_thumbnails.toString());
67
67
  }
68
68
  // Use axios directly to bypass Zodios validation
69
- const response = await this.api.axios({
69
+ return this.api.axios({
70
70
  method: "post",
71
71
  url: "/files",
72
72
  data: formData,
@@ -74,7 +74,6 @@ class EnhancedFilesApi {
74
74
  "Content-Type": "multipart/form-data",
75
75
  },
76
76
  });
77
- return response.data;
78
77
  }
79
78
  async getFile(fileId) {
80
79
  return this.api.getFile({ params: { file_id: fileId } });
@@ -611,7 +610,7 @@ class CloudGlue {
611
610
  headers: {
612
611
  Authorization: `Bearer ${this.apiKey}`,
613
612
  'x-sdk-client': 'cloudglue-js',
614
- 'x-sdk-version': '0.3.4',
613
+ 'x-sdk-version': '0.3.5',
615
614
  },
616
615
  baseURL: this.baseUrl,
617
616
  timeout: this.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",