/** * iCure Data Stack API Documentation * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /** * Represent an attachment holding some additional data for an entity. */ export declare class DataAttachment { constructor(json: JSON | any); /** * Id of the attachment, if stored as a couchdb attachment */ couchDbAttachmentId?: string; /** * Id of the attachment, if stored using the object storage service */ objectStoreAttachmentId?: string; /** * The Uniform Type Identifiers (https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html#//apple_ref/doc/uid/TP40001319-CH202-CHDHIJDE) of the attachment. * This is an array to allow representing a priority, but each UTI must be unique. */ utis?: Array; /** * Algorithm used on the CLIENT SIDE to compress the data attachment. * Null means that the document was not compressed because the tried algorithms could not actually compress the data * (because for example it was an already compressed format) or no algorithms were tried. */ compressionAlgorithm?: string; /** * A string used by the SDK to mark which compression algorithms were tried. * Null means that no compression algorithms were tried. * If an SDK reads some data that is not compressed, if this value indicates that the data was created with an older * version of the SDK then the SDK may try to use any newly available algorithms to compress the data. */ triedCompressionAlgorithmsVersion?: string; /** * Value computed by the backend, the actual size of the data stored for the attachment, in bytes. */ storedDataSize?: number; /** * Value provided by the client, the real size of the data after it has been decrypted and decompressed, in bytes. * This value is not used or verified by the backend. */ realDataSize?: number; }