import type { StructuredSuccessResponse } from "../../types"

// Request types
export interface UploadAvatarRequest {
  file: File | Blob
}

export interface UploadChatAttachmentRequest {
  file: File | Blob
}

// Response types
export type UploadAvatarResponse = { code: 0, url: string }

export interface ChatAttachmentUploadData {
  url: string
  filename: string
  mimeType: string
  size: number
}

export type UploadChatAttachmentResponse = StructuredSuccessResponse<ChatAttachmentUploadData>
