@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.
@@ -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
- /** Avatar + preprocessed chat images. General chat files may use any mime string. */
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;
@@ -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: input.purpose === "chat_attachment" ? "presigned_put_v1" : void 0,
292
+ uploadProtocol: "presigned_put_v1",
293
293
  spaceId: input.spaceId,
294
294
  sessionId: input.sessionId,
295
295
  file: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "description": "Cohub SDK for spaces, sessions, boards, and realtime agent collaboration.",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,