UNPKG

@follow-app/client-sdk

Version:

TypeScript client SDK for Follow RSS Server API

23 lines (17 loc) 499 B
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>