UNPKG

@squarecloud/blob

Version:
31 lines (28 loc) 964 B
import { BlobObjectData } from '../types/object.js'; import { MimeType } from '../utils/mimetype/mimetypes.js'; declare class BlobObject { /** The id of the object */ id: string; /** The url to view or download the object */ url: string; /** The name of the object */ name: string; /** The prefix of the object (Optional) */ prefix?: string; /** The hash of the object */ hash: string; /** The id of the user who created the object */ userId: string; /** The file extension of the object */ extension: string; /** The MIME type of the object */ mimeType: MimeType; /** The size of the object in bytes */ size: number; /** The expiration date of the object (Only available using `objects.list`) */ expiresAt?: Date; /** The creation date of the object (Only available using `objects.list`) */ createdAt?: Date; constructor(data: BlobObjectData); } export { BlobObject };