import { RecorderFileFormat } from "../../utils/enums"; export declare class Attachment { /** * Unique identifier for the comment pin annotation. * * Auto generated. */ attachmentId: number; /** * To check if attachment resolver is used */ isAttachmentResolverUsed?: boolean; /** * File name */ name?: string; /** * Unique path in storage */ bucketPath?: string; /** * File size */ size?: number; /** * File type */ type?: RecorderFileFormat; /** * Download url of a file */ url?: string; /** * Thumbnail img in base64 format */ thumbnail?: string; thumbnailWithPlayIconUrl?: string; /** * Metadata of an attachment */ metadata?: any; /** * Mime type of an attachment */ mimeType?: any; /** * Preview images of an attachment */ previewImages?: string[]; /** * Self-hosted (portable backend) only: the organization, in CLIENT form, of the document the file is stored under. * Set by the SDK when it uploads the file; reading and deleting the file use it. Not set on Velt-hosted storage. */ clientOrganizationId?: string; /** * Self-hosted (portable backend) only: the document, in CLIENT form, the file is stored under. On a page with * several documents this can differ from the document the comment is saved in. Set by the SDK when it uploads the * file; reading and deleting the file use it. Not set on Velt-hosted storage. */ clientDocumentId?: string; } /** * The document a comment attachment belongs to, in CLIENT ids (the comment's own `metadata.clientOrganizationId` / * `clientDocumentId`, else the current document's). Passed only by the comment attachment callers, and read only on a * portable (Tier B) session, where the gateway's attachment ops are document-scoped (specs/self-hosting-tier2 * iteration-32). Hosted ignores it. */ export interface PortableAttachmentScope { organizationId?: string | null; documentId?: string | null; } export interface UploadFileOptions { path: string; file: File; useAttachmentResolver?: boolean; metadata?: any; attachmentScope?: string; /** See {@link PortableAttachmentScope}. Absent ⇒ hosted's path on every tier (the recorder and tag callers). */ portableScope?: PortableAttachmentScope; } export interface UploadFileData { files: File[]; annotationId?: string; targetElementId?: string; }