@neta-art/cohub 5.4.1 → 5.4.2
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/chunks/http.d.ts +1 -1
- package/dist/chunks/http.js +1 -1
- package/package.json +1 -1
package/dist/chunks/http.d.ts
CHANGED
|
@@ -540,7 +540,7 @@ declare class SkillsApi {
|
|
|
540
540
|
//#region src/apis/public-assets.d.ts
|
|
541
541
|
type PublicAssetPurpose = "user_avatar" | "space_avatar" | "chat_attachment";
|
|
542
542
|
type PublicAssetUploadProtocol = "s3_post_v1" | "presigned_put_v1";
|
|
543
|
-
/**
|
|
543
|
+
/** Preprocessed chat images. General chat files and avatars may use any mime string. */
|
|
544
544
|
type PublicAssetMimeType = "image/webp" | "image/jpeg";
|
|
545
545
|
type CreatePublicAssetUploadInput = {
|
|
546
546
|
purpose: PublicAssetPurpose;
|
package/dist/chunks/http.js
CHANGED
|
@@ -289,7 +289,7 @@ var PublicAssetsApi = class {
|
|
|
289
289
|
if (input.signal?.aborted) throw createAbortError();
|
|
290
290
|
const plan = await this.createUpload({
|
|
291
291
|
purpose: input.purpose,
|
|
292
|
-
uploadProtocol:
|
|
292
|
+
uploadProtocol: "presigned_put_v1",
|
|
293
293
|
spaceId: input.spaceId,
|
|
294
294
|
sessionId: input.sessionId,
|
|
295
295
|
file: {
|