cloudflare
Version:
The official TypeScript library for the Cloudflare API
66 lines • 2.06 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as MirageAPI from 'cloudflare/resources/zones/settings/mirage';
export declare class Mirage extends APIResource {
/**
* Automatically optimize image loading for website visitors on mobile devices.
* Refer to our
* [blog post](http://blog.cloudflare.com/mirage2-solving-mobile-speed) for more
* information.
*/
edit(params: MirageEditParams, options?: Core.RequestOptions): Core.APIPromise<ZoneSettingMirage>;
/**
* Automatically optimize image loading for website visitors on mobile devices.
* Refer to our
* [blog post](http://blog.cloudflare.com/mirage2-solving-mobile-speed) for more
* information.
*/
get(params: MirageGetParams, options?: Core.RequestOptions): Core.APIPromise<ZoneSettingMirage>;
}
/**
* Automatically optimize image loading for website visitors on mobile devices.
* Refer to
* [our blog post](http://blog.cloudflare.com/mirage2-solving-mobile-speed) for
* more information.
*/
export interface ZoneSettingMirage {
/**
* ID of the zone setting.
*/
id: 'mirage';
/**
* Current value of the zone setting.
*/
value: 'on' | 'off';
/**
* Whether or not this setting can be modified for this zone (based on your
* Cloudflare plan level).
*/
editable?: true | false;
/**
* last time this setting was modified.
*/
modified_on?: string | null;
}
export interface MirageEditParams {
/**
* Path param: Identifier
*/
zone_id: string;
/**
* Body param: Value of the zone setting.
*/
value: 'on' | 'off';
}
export interface MirageGetParams {
/**
* Identifier
*/
zone_id: string;
}
export declare namespace Mirage {
export import ZoneSettingMirage = MirageAPI.ZoneSettingMirage;
export import MirageEditParams = MirageAPI.MirageEditParams;
export import MirageGetParams = MirageAPI.MirageGetParams;
}
//# sourceMappingURL=mirage.d.ts.map