You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
/**
|
|
* Used to store user configurations related to media files.
|
|
* E.g the size optimization flag, the responsive dimensions flag and the auto orientation.
|
|
*/
|
|
|
|
import { errors } from '@strapi/utils';
|
|
import type { Utils } from '@strapi/types';
|
|
|
|
export interface Settings {
|
|
data: {
|
|
sizeOptimization?: boolean;
|
|
responsiveDimensions?: boolean;
|
|
autoOrientation?: boolean;
|
|
videoPreview?: boolean;
|
|
aiMetadata?: boolean;
|
|
};
|
|
}
|
|
|
|
export type SettingsData = Settings['data'];
|
|
|
|
/**
|
|
* GET /upload/settings
|
|
*
|
|
* Return the stored settings for the media files.
|
|
*/
|
|
export declare namespace GetSettings {
|
|
export interface Request {
|
|
query?: {};
|
|
}
|
|
|
|
export interface Response {
|
|
data: Settings;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* PUT /upload/settings
|
|
*
|
|
* Update the stored settings
|
|
*/
|
|
export declare namespace UpdateSettings {
|
|
export interface Request {
|
|
body: Settings['data'];
|
|
}
|
|
|
|
export type Response = Utils.OneOf<
|
|
{ data: Settings['data'] },
|
|
{ error?: errors.ApplicationError | errors.ValidationError }
|
|
>;
|
|
}
|