@squarecloud/blob
Version:
Official Square Cloud Blob SDK for NodeJS
31 lines (28 loc) • 966 B
text/typescript
import { BlobObjectData } from '../types/object.mjs';
import { MimeType } from '../utils/mimetype/mimetypes.mjs';
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 };