/** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { AssetMeta } from './AssetMeta'; import type { AssetType } from './AssetType'; import type { ResourceLink } from './ResourceLink'; /** * * @export * @interface AssetDto */ export interface AssetDto { /** * The links. * @type {{ [key: string]: ResourceLink; }} * @memberof AssetDto */ links: { [key: string]: ResourceLink; }; /** * The ID of the asset. * @type {string} * @memberof AssetDto */ id: string; /** * The ID of the parent folder. Empty for files without parent. * @type {string} * @memberof AssetDto */ parentId: string; /** * The file name. * @type {string} * @memberof AssetDto */ fileName: string; /** * The file hash. * @type {string} * @memberof AssetDto */ fileHash?: string | null; /** * True, when the asset is not public. * @type {boolean} * @memberof AssetDto */ isProtected: boolean; /** * The slug. * @type {string} * @memberof AssetDto */ slug: string; /** * The mime type. * @type {string} * @memberof AssetDto */ mimeType: string; /** * The file type. * @type {string} * @memberof AssetDto */ fileType: string; /** * The formatted text representation of the metadata. * @type {string} * @memberof AssetDto */ metadataText: string; /** * The UI token. * @type {string} * @memberof AssetDto */ editToken?: string | null; /** * The asset metadata. * @type {{ [key: string]: any; }} * @memberof AssetDto */ metadata: { [key: string]: any; }; /** * The asset tags. * @type {Array} * @memberof AssetDto */ tags?: Array | null; /** * The size of the file in bytes. * @type {number} * @memberof AssetDto */ fileSize: number; /** * The version of the file. * @type {number} * @memberof AssetDto */ fileVersion: number; /** * * @type {AssetType} * @memberof AssetDto */ type: AssetType; /** * The user that has created the schema. * @type {string} * @memberof AssetDto */ createdBy: string; /** * The user that has updated the asset. * @type {string} * @memberof AssetDto */ lastModifiedBy: string; /** * The date and time when the asset has been created. * @type {Date} * @memberof AssetDto */ created: Date; /** * The date and time when the asset has been modified last. * @type {Date} * @memberof AssetDto */ lastModified: Date; /** * The version of the asset. * @type {number} * @memberof AssetDto */ version: number; /** * * @type {AssetMeta} * @memberof AssetDto */ meta?: AssetMeta; /** * Determines of the created file is an image. * @type {boolean} * @memberof AssetDto * @deprecated */ isImage: boolean; /** * The width of the image in pixels if the asset is an image. * @type {number} * @memberof AssetDto * @deprecated */ pixelWidth?: number | null; /** * The height of the image in pixels if the asset is an image. * @type {number} * @memberof AssetDto * @deprecated */ pixelHeight?: number | null; } /** * Check if a given object implements the AssetDto interface. */ export declare function instanceOfAssetDto(value: any): value is AssetDto; export declare function AssetDtoFromJSON(json: any): AssetDto; export declare function AssetDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): AssetDto; export declare function AssetDtoToJSON(value?: AssetDto | null, _ignoreDiscriminator?: boolean): any;