@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.
- package/dist/src/client.d.ts +1 -1
- package/dist/src/client.js +2 -3
- package/package.json +1 -1
package/dist/src/client.d.ts
CHANGED
|
@@ -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"]>;
|
package/dist/src/client.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
613
|
+
'x-sdk-version': '0.3.5',
|
|
615
614
|
},
|
|
616
615
|
baseURL: this.baseUrl,
|
|
617
616
|
timeout: this.timeout,
|