// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit. import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import * as T from "../traits.ts"; import { CloudflareProtocol, type CloudflareOpError, type CloudflareOpContext, } from "../protocol.ts"; import { CloudflareError, CloudflareRateLimited } from "../errors.ts"; import * as Retry from "../retry.ts"; export type { CloudflareOpError, CloudflareOpContext }; /** Fallback camelCase→wire mapping for opaque content (mined from the distilled SDK). */ const KEY_DICTIONARY: Record> = { checkPresence: "check_presence", createdOn: "created_on", deviceType: "device_type", modifiedOn: "modified_on", queryString: "query_string", statusCode: "status_code", }; export class Forbidden extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("Forbidden", { code: S.Number, message: S.String, }), [{ status: 403 }], ) {} export class InvalidZoneIdentifier extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()( "InvalidZoneIdentifier", { code: S.Number, message: S.String, }, ), [{ status: 400, message: { includes: "Invalid zone identifier" } }], ) {} export class PageRuleNotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("PageRuleNotFound", { code: S.Number, message: S.String, }), [{ status: 404 }], ) {} export type CreateRequestActionsItemAlwaysUseHTTPSId = "always_use_https"; export const CreateRequestActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: CreateRequestActionsItemAlwaysUseHTTPSId | (string & {}); } export const CreateRequestActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemAlwaysUseHTTPSId), }), ).annotate({ identifier: "CreateRequestActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type CreateRequestActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const CreateRequestActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const CreateRequestActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: CreateRequestActionsItemAutomaticHTTPSRewritesId | (string & {}); /** The status of Automatic HTTPS Rewrites. */ value?: CreateRequestActionsItemAutomaticHTTPSRewritesValue | (string & {}); } export const CreateRequestActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemAutomaticHTTPSRewritesId), value: S.optional(CreateRequestActionsItemAutomaticHTTPSRewritesValue), }), ).annotate({ identifier: "CreateRequestActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type CreateRequestActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const CreateRequestActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: CreateRequestActionsItemBrowserCacheTTLId | (string & {}); /** The number of seconds to cache resources for. */ value?: number; } export const CreateRequestActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemBrowserCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "CreateRequestActionsItemBrowserCacheTTL", }) as any as S.Schema; export type CreateRequestActionsItemBrowserCheckId = "browser_check"; export const CreateRequestActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemBrowserCheckValue = "on" | "off"; export const CreateRequestActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: CreateRequestActionsItemBrowserCheckId | (string & {}); /** The status of Browser Integrity Check. */ value?: CreateRequestActionsItemBrowserCheckValue | (string & {}); } export const CreateRequestActionsItemBrowserCheck = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemBrowserCheckId), value: S.optional(CreateRequestActionsItemBrowserCheckValue), }), ).annotate({ identifier: "CreateRequestActionsItemBrowserCheck", }) as any as S.Schema; export type CreateRequestActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const CreateRequestActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: CreateRequestActionsItemBypassCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const CreateRequestActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemBypassCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "CreateRequestActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type CreateRequestActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const CreateRequestActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheByDeviceTypeValue = "on" | "off"; export const CreateRequestActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: CreateRequestActionsItemCacheByDeviceTypeId | (string & {}); /** The status of Cache By Device Type. */ value?: CreateRequestActionsItemCacheByDeviceTypeValue | (string & {}); } export const CreateRequestActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemCacheByDeviceTypeId), value: S.optional(CreateRequestActionsItemCacheByDeviceTypeValue), }), ).annotate({ identifier: "CreateRequestActionsItemCacheByDeviceType", }) as any as S.Schema; export type CreateRequestActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const CreateRequestActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheDeceptionArmorValue = "on" | "off"; export const CreateRequestActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: CreateRequestActionsItemCacheDeceptionArmorId | (string & {}); /** The status of Cache Deception Armor. */ value?: CreateRequestActionsItemCacheDeceptionArmorValue | (string & {}); } export const CreateRequestActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemCacheDeceptionArmorId), value: S.optional(CreateRequestActionsItemCacheDeceptionArmorValue), }), ).annotate({ identifier: "CreateRequestActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsId = "cache_key_fields"; export const CreateRequestActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const CreateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const CreateRequestActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: CreateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList; /** A list of cookies to include. */ include?: CreateRequestActionsItemCacheKeyFieldsValueCookieIncludeList; } export const CreateRequestActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( CreateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList.pipe( T.Body("check_presence"), ), ), include: S.optional( CreateRequestActionsItemCacheKeyFieldsValueCookieIncludeList, ), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const CreateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const CreateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const CreateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: CreateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList; /** A list of headers to ignore. */ exclude?: CreateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList; /** A list of headers to include. */ include?: CreateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList; } export const CreateRequestActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( CreateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList.pipe( T.Body("check_presence"), ), ), exclude: S.optional( CreateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList, ), include: S.optional( CreateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList, ), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFieldsValueHost { /** Whether to include the Host header in the HTTP request sent */ resolved?: boolean; } export const CreateRequestActionsItemCacheKeyFieldsValueHost = /*@__PURE__*/ S.suspend(() => S.Struct({ resolved: S.optional(S.Boolean), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValueHost", }) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringExclude = | CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | (string & {}) | CreateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateRequestActionsItemCacheKeyFieldsValueQueryStringInclude = | CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | (string & {}) | CreateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const CreateRequestActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface CreateRequestActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: CreateRequestActionsItemCacheKeyFieldsValueQueryStringExclude; /** Include all query string parameters. */ include?: CreateRequestActionsItemCacheKeyFieldsValueQueryStringInclude; } export const CreateRequestActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( CreateRequestActionsItemCacheKeyFieldsValueQueryStringExclude, ), include: S.optional( CreateRequestActionsItemCacheKeyFieldsValueQueryStringInclude, ), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFieldsValueUser { /** Classifies a request as `mobile`, `desktop`, or `tablet` */ deviceType?: boolean; /** Includes the client's country, derived from the IP address. */ geo?: boolean; /** Includes the first language code contained in the */ lang?: boolean; } export const CreateRequestActionsItemCacheKeyFieldsValueUser = /*@__PURE__*/ S.suspend(() => S.Struct({ deviceType: S.optional(S.Boolean.pipe(T.Body("device_type"))), geo: S.optional(S.Boolean), lang: S.optional(S.Boolean), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValueUser", }) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: CreateRequestActionsItemCacheKeyFieldsValueCookie; /** Controls which headers go into the Cache Key. Exactly one of */ header?: CreateRequestActionsItemCacheKeyFieldsValueHeader; /** Determines which host header to include in the Cache Key. */ host?: CreateRequestActionsItemCacheKeyFieldsValueHost; /** Controls which URL query string parameters go into the Cache */ queryString?: CreateRequestActionsItemCacheKeyFieldsValueQueryString; /** Feature fields to add features about the end-user (client) into */ user?: CreateRequestActionsItemCacheKeyFieldsValueUser; } export const CreateRequestActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional(CreateRequestActionsItemCacheKeyFieldsValueCookie), header: S.optional(CreateRequestActionsItemCacheKeyFieldsValueHeader), host: S.optional(CreateRequestActionsItemCacheKeyFieldsValueHost), queryString: S.optional( CreateRequestActionsItemCacheKeyFieldsValueQueryString.pipe( T.Body("query_string"), ), ), user: S.optional(CreateRequestActionsItemCacheKeyFieldsValueUser), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface CreateRequestActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: CreateRequestActionsItemCacheKeyFieldsId | (string & {}); value?: CreateRequestActionsItemCacheKeyFieldsValue; } export const CreateRequestActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemCacheKeyFieldsId), value: S.optional(CreateRequestActionsItemCacheKeyFieldsValue), }), ).annotate({ identifier: "CreateRequestActionsItemCacheKeyFields", }) as any as S.Schema; export type CreateRequestActionsItemCacheLevelId = "cache_level"; export const CreateRequestActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const CreateRequestActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: CreateRequestActionsItemCacheLevelId | (string & {}); /** * `bypass`: Cloudflare does not cache. */ value?: CreateRequestActionsItemCacheLevelValue | (string & {}); } export const CreateRequestActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemCacheLevelId), value: S.optional(CreateRequestActionsItemCacheLevelValue), }), ).annotate({ identifier: "CreateRequestActionsItemCacheLevel", }) as any as S.Schema; export type CreateRequestActionsItemCacheOnCookieId = "cache_on_cookie"; export const CreateRequestActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: CreateRequestActionsItemCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const CreateRequestActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "CreateRequestActionsItemCacheOnCookie", }) as any as S.Schema; export type CreateRequestActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const CreateRequestActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const CreateRequestActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type CreateRequestActionsItemCacheTTLByStatusValue = | number | CreateRequestActionsItemCacheTTLByStatusValueCase0 | (string & {}); export const CreateRequestActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface CreateRequestActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: CreateRequestActionsItemCacheTTLByStatusId | (string & {}); /** A JSON object containing status codes and their corresponding TTLs. */ value?: CreateRequestActionsItemCacheTTLByStatusValue; } export const CreateRequestActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemCacheTTLByStatusId), value: S.optional(CreateRequestActionsItemCacheTTLByStatusValue), }), ).annotate({ identifier: "CreateRequestActionsItemCacheTTLByStatus", }) as any as S.Schema; export type CreateRequestActionsItemDisableAppsId = "disable_apps"; export const CreateRequestActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: CreateRequestActionsItemDisableAppsId | (string & {}); } export const CreateRequestActionsItemDisableApps = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemDisableAppsId), }), ).annotate({ identifier: "CreateRequestActionsItemDisableApps", }) as any as S.Schema; export type CreateRequestActionsItemDisablePerformanceId = "disable_performance"; export const CreateRequestActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemDisablePerformance { /** Turn off */ id?: CreateRequestActionsItemDisablePerformanceId | (string & {}); } export const CreateRequestActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemDisablePerformanceId), }), ).annotate({ identifier: "CreateRequestActionsItemDisablePerformance", }) as any as S.Schema; export type CreateRequestActionsItemDisableSecurityId = "disable_security"; export const CreateRequestActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemDisableSecurity { /** Turn off */ id?: CreateRequestActionsItemDisableSecurityId | (string & {}); } export const CreateRequestActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemDisableSecurityId), }), ).annotate({ identifier: "CreateRequestActionsItemDisableSecurity", }) as any as S.Schema; export type CreateRequestActionsItemDisableZarazId = "disable_zaraz"; export const CreateRequestActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: CreateRequestActionsItemDisableZarazId | (string & {}); } export const CreateRequestActionsItemDisableZaraz = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemDisableZarazId), }), ).annotate({ identifier: "CreateRequestActionsItemDisableZaraz", }) as any as S.Schema; export type CreateRequestActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const CreateRequestActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: CreateRequestActionsItemEdgeCacheTTLId | (string & {}); value?: number; } export const CreateRequestActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemEdgeCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "CreateRequestActionsItemEdgeCacheTTL", }) as any as S.Schema; export type CreateRequestActionsItemEmailObfuscationId = "email_obfuscation"; export const CreateRequestActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemEmailObfuscationValue = "on" | "off"; export const CreateRequestActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: CreateRequestActionsItemEmailObfuscationId | (string & {}); /** The status of Email Obfuscation. */ value?: CreateRequestActionsItemEmailObfuscationValue | (string & {}); } export const CreateRequestActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemEmailObfuscationId), value: S.optional(CreateRequestActionsItemEmailObfuscationValue), }), ).annotate({ identifier: "CreateRequestActionsItemEmailObfuscation", }) as any as S.Schema; export type CreateRequestActionsItemExplicitCacheControlId = "explicit_cache_control"; export const CreateRequestActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemExplicitCacheControlValue = "on" | "off"; export const CreateRequestActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: CreateRequestActionsItemExplicitCacheControlId | (string & {}); /** The status of Origin Cache Control. */ value?: CreateRequestActionsItemExplicitCacheControlValue | (string & {}); } export const CreateRequestActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemExplicitCacheControlId), value: S.optional(CreateRequestActionsItemExplicitCacheControlValue), }), ).annotate({ identifier: "CreateRequestActionsItemExplicitCacheControl", }) as any as S.Schema; export type CreateRequestActionsItemForwardingURLId = "forwarding_url"; export const CreateRequestActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemForwardingURLValueStatusCode = 301 | 302; export const CreateRequestActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface CreateRequestActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: | CreateRequestActionsItemForwardingURLValueStatusCode | (number & {}); /** The URL to redirect the request to. */ url?: string; } export const CreateRequestActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( CreateRequestActionsItemForwardingURLValueStatusCode.pipe( T.Body("status_code"), ), ), url: S.optional(S.String), }), ).annotate({ identifier: "CreateRequestActionsItemForwardingURLValue", }) as any as S.Schema; export interface CreateRequestActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: CreateRequestActionsItemForwardingURLId | (string & {}); value?: CreateRequestActionsItemForwardingURLValue; } export const CreateRequestActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemForwardingURLId), value: S.optional(CreateRequestActionsItemForwardingURLValue), }), ).annotate({ identifier: "CreateRequestActionsItemForwardingURL", }) as any as S.Schema; export type CreateRequestActionsItemHostHeaderOverrideId = "host_header_override"; export const CreateRequestActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: CreateRequestActionsItemHostHeaderOverrideId | (string & {}); /** The hostname to use in the `Host` header */ value?: string; } export const CreateRequestActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemHostHeaderOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "CreateRequestActionsItemHostHeaderOverride", }) as any as S.Schema; export type CreateRequestActionsItemIPGeolocationId = "ip_geolocation"; export const CreateRequestActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemIPGeolocationValue = "on" | "off"; export const CreateRequestActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: CreateRequestActionsItemIPGeolocationId | (string & {}); /** The status of adding the IP Geolocation Header. */ value?: CreateRequestActionsItemIPGeolocationValue | (string & {}); } export const CreateRequestActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemIPGeolocationId), value: S.optional(CreateRequestActionsItemIPGeolocationValue), }), ).annotate({ identifier: "CreateRequestActionsItemIPGeolocation", }) as any as S.Schema; export type CreateRequestActionsItemMirageId = "mirage"; export const CreateRequestActionsItemMirageId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemMirageValue = "on" | "off"; export const CreateRequestActionsItemMirageValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: CreateRequestActionsItemMirageId | (string & {}); /** The status of Mirage. */ value?: CreateRequestActionsItemMirageValue | (string & {}); } export const CreateRequestActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemMirageId), value: S.optional(CreateRequestActionsItemMirageValue), }), ).annotate({ identifier: "CreateRequestActionsItemMirage", }) as any as S.Schema; export type CreateRequestActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const CreateRequestActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemOpportunisticEncryptionValue = "on" | "off"; export const CreateRequestActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: CreateRequestActionsItemOpportunisticEncryptionId | (string & {}); /** The status of Opportunistic Encryption. */ value?: CreateRequestActionsItemOpportunisticEncryptionValue | (string & {}); } export const CreateRequestActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemOpportunisticEncryptionId), value: S.optional(CreateRequestActionsItemOpportunisticEncryptionValue), }), ).annotate({ identifier: "CreateRequestActionsItemOpportunisticEncryption", }) as any as S.Schema; export type CreateRequestActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const CreateRequestActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemOriginErrorPagePassThruValue = "on" | "off"; export const CreateRequestActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: CreateRequestActionsItemOriginErrorPagePassThruId | (string & {}); /** The status of Origin Error Page Passthru. */ value?: CreateRequestActionsItemOriginErrorPagePassThruValue | (string & {}); } export const CreateRequestActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemOriginErrorPagePassThruId), value: S.optional(CreateRequestActionsItemOriginErrorPagePassThruValue), }), ).annotate({ identifier: "CreateRequestActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type CreateRequestActionsItemPolishId = "polish"; export const CreateRequestActionsItemPolishId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemPolishValue = "off" | "lossless" | "lossy"; export const CreateRequestActionsItemPolishValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: CreateRequestActionsItemPolishId | (string & {}); /** The level of Polish you want applied to your origin. */ value?: CreateRequestActionsItemPolishValue | (string & {}); } export const CreateRequestActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemPolishId), value: S.optional(CreateRequestActionsItemPolishValue), }), ).annotate({ identifier: "CreateRequestActionsItemPolish", }) as any as S.Schema; export type CreateRequestActionsItemResolveOverrideId = "resolve_override"; export const CreateRequestActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: CreateRequestActionsItemResolveOverrideId | (string & {}); /** The origin address you want to override with. */ value?: string; } export const CreateRequestActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemResolveOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "CreateRequestActionsItemResolveOverride", }) as any as S.Schema; export type CreateRequestActionsItemRespectStrongEtagId = "respect_strong_etag"; export const CreateRequestActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemRespectStrongEtagValue = "on" | "off"; export const CreateRequestActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: CreateRequestActionsItemRespectStrongEtagId | (string & {}); /** The status of Respect Strong ETags */ value?: CreateRequestActionsItemRespectStrongEtagValue | (string & {}); } export const CreateRequestActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemRespectStrongEtagId), value: S.optional(CreateRequestActionsItemRespectStrongEtagValue), }), ).annotate({ identifier: "CreateRequestActionsItemRespectStrongEtag", }) as any as S.Schema; export type CreateRequestActionsItemResponseBufferingId = "response_buffering"; export const CreateRequestActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemResponseBufferingValue = "on" | "off"; export const CreateRequestActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: CreateRequestActionsItemResponseBufferingId | (string & {}); /** The status of Response Buffering */ value?: CreateRequestActionsItemResponseBufferingValue | (string & {}); } export const CreateRequestActionsItemResponseBuffering = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemResponseBufferingId), value: S.optional(CreateRequestActionsItemResponseBufferingValue), }), ).annotate({ identifier: "CreateRequestActionsItemResponseBuffering", }) as any as S.Schema; export type CreateRequestActionsItemRocketLoaderId = "rocket_loader"; export const CreateRequestActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemRocketLoaderValue = "on" | "off"; export const CreateRequestActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: CreateRequestActionsItemRocketLoaderId | (string & {}); /** The status of Rocket Loader */ value?: CreateRequestActionsItemRocketLoaderValue | (string & {}); } export const CreateRequestActionsItemRocketLoader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemRocketLoaderId), value: S.optional(CreateRequestActionsItemRocketLoaderValue), }), ).annotate({ identifier: "CreateRequestActionsItemRocketLoader", }) as any as S.Schema; export type CreateRequestActionsItemSecurityLevelId = "security_level"; export const CreateRequestActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const CreateRequestActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: CreateRequestActionsItemSecurityLevelId | (string & {}); value?: CreateRequestActionsItemSecurityLevelValue | (string & {}); } export const CreateRequestActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(CreateRequestActionsItemSecurityLevelId), value: S.optional(CreateRequestActionsItemSecurityLevelValue), }), ).annotate({ identifier: "CreateRequestActionsItemSecurityLevel", }) as any as S.Schema; export type CreateRequestActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const CreateRequestActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemSortQueryStringForCacheValue = "on" | "off"; export const CreateRequestActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: CreateRequestActionsItemSortQueryStringForCacheId | (string & {}); /** The status of Query String Sort */ value?: CreateRequestActionsItemSortQueryStringForCacheValue | (string & {}); } export const CreateRequestActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemSortQueryStringForCacheId), value: S.optional(CreateRequestActionsItemSortQueryStringForCacheValue), }), ).annotate({ identifier: "CreateRequestActionsItemSortQueryStringForCache", }) as any as S.Schema; export type CreateRequestActionsItemSSLId = "ssl"; export const CreateRequestActionsItemSSLId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const CreateRequestActionsItemSSLValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: CreateRequestActionsItemSSLId | (string & {}); /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: CreateRequestActionsItemSSLValue | (string & {}); } export const CreateRequestActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemSSLId), value: S.optional(CreateRequestActionsItemSSLValue), }), ).annotate({ identifier: "CreateRequestActionsItemSSL", }) as any as S.Schema; export type CreateRequestActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const CreateRequestActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemTrueClientIPHeaderValue = "on" | "off"; export const CreateRequestActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: CreateRequestActionsItemTrueClientIPHeaderId | (string & {}); /** The status of True Client IP Header. */ value?: CreateRequestActionsItemTrueClientIPHeaderValue | (string & {}); } export const CreateRequestActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemTrueClientIPHeaderId), value: S.optional(CreateRequestActionsItemTrueClientIPHeaderValue), }), ).annotate({ identifier: "CreateRequestActionsItemTrueClientIPHeader", }) as any as S.Schema; export type CreateRequestActionsItemWAFId = "waf"; export const CreateRequestActionsItemWAFId = /*@__PURE__*/ S.String; export type CreateRequestActionsItemWAFValue = "on" | "off"; export const CreateRequestActionsItemWAFValue = /*@__PURE__*/ S.String; export interface CreateRequestActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: CreateRequestActionsItemWAFId | (string & {}); /** The status of WAF managed rules (previous version). */ value?: CreateRequestActionsItemWAFValue | (string & {}); } export const CreateRequestActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(CreateRequestActionsItemWAFId), value: S.optional(CreateRequestActionsItemWAFValue), }), ).annotate({ identifier: "CreateRequestActionsItemWAF", }) as any as S.Schema; export type CreateRequestActionsItem = | CreateRequestActionsItemAlwaysUseHTTPS | CreateRequestActionsItemAutomaticHTTPSRewrites | CreateRequestActionsItemBrowserCacheTTL | CreateRequestActionsItemBrowserCheck | CreateRequestActionsItemBypassCacheOnCookie | CreateRequestActionsItemCacheByDeviceType | CreateRequestActionsItemCacheDeceptionArmor | CreateRequestActionsItemCacheKeyFields | CreateRequestActionsItemCacheLevel | CreateRequestActionsItemCacheOnCookie | CreateRequestActionsItemCacheTTLByStatus | CreateRequestActionsItemDisableApps | CreateRequestActionsItemDisablePerformance | CreateRequestActionsItemDisableSecurity | CreateRequestActionsItemDisableZaraz | CreateRequestActionsItemEdgeCacheTTL | CreateRequestActionsItemEmailObfuscation | CreateRequestActionsItemExplicitCacheControl | CreateRequestActionsItemForwardingURL | CreateRequestActionsItemHostHeaderOverride | CreateRequestActionsItemIPGeolocation | CreateRequestActionsItemMirage | CreateRequestActionsItemOpportunisticEncryption | CreateRequestActionsItemOriginErrorPagePassThru | CreateRequestActionsItemPolish | CreateRequestActionsItemResolveOverride | CreateRequestActionsItemRespectStrongEtag | CreateRequestActionsItemResponseBuffering | CreateRequestActionsItemRocketLoader | CreateRequestActionsItemSecurityLevel | CreateRequestActionsItemSortQueryStringForCache | CreateRequestActionsItemSSL | CreateRequestActionsItemTrueClientIPHeader | CreateRequestActionsItemWAF; export const CreateRequestActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type CreateRequestActionsList = Array; export const CreateRequestActionsList = /*@__PURE__*/ S.Array( CreateRequestActionsItem, ) as any as S.Schema; export type CreateRequestTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const CreateRequestTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface CreateRequestTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: CreateRequestTargetsItemConstraintOperator | (string & {}); /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const CreateRequestTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: CreateRequestTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "CreateRequestTargetsItemConstraint", }) as any as S.Schema; export type CreateRequestTargetsItemTarget = "url"; export const CreateRequestTargetsItemTarget = /*@__PURE__*/ S.String; export interface CreateRequestTargetsItem { /** String constraint. */ constraint?: CreateRequestTargetsItemConstraint; /** A target based on the URL of the request. */ target?: CreateRequestTargetsItemTarget | (string & {}); } export const CreateRequestTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(CreateRequestTargetsItemConstraint), target: S.optional(CreateRequestTargetsItemTarget), }), ).annotate({ identifier: "CreateRequestTargetsItem", }) as any as S.Schema; export type CreateRequestTargetsList = Array; export const CreateRequestTargetsList = /*@__PURE__*/ S.Array( CreateRequestTargetsItem, ) as any as S.Schema; export type CreateRequestStatus = "active" | "disabled"; export const CreateRequestStatus = /*@__PURE__*/ S.String; export interface CreatePageRuleRequest { /** Identifier. */ zoneId: string; /** The set of actions to perform if the targets of this rule match the */ actions: CreateRequestActionsList; /** The rule targets to evaluate on each request. */ targets: CreateRequestTargetsList; /** The priority of the rule, used to define which Page Rule is processed */ priority?: number; /** The status of the Page Rule. */ status?: CreateRequestStatus | (string & {}); } export const CreatePageRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), actions: CreateRequestActionsList, targets: CreateRequestTargetsList, priority: S.optional(S.Number), status: S.optional(CreateRequestStatus), }) .pipe( T.Http({ method: "POST", uri: "/zones/{zone_id}/pagerules", code: 200 }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreatePageRuleRequest", }) as any as S.Schema; export type CreateResponseActionsItemAlwaysUseHTTPSId = "always_use_https"; export const CreateResponseActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: CreateResponseActionsItemAlwaysUseHTTPSId | null; } export const CreateResponseActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemAlwaysUseHTTPSId)), }), ).annotate({ identifier: "CreateResponseActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type CreateResponseActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const CreateResponseActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const CreateResponseActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: CreateResponseActionsItemAutomaticHTTPSRewritesId | null; /** The status of Automatic HTTPS Rewrites. */ value?: CreateResponseActionsItemAutomaticHTTPSRewritesValue | null; } export const CreateResponseActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(CreateResponseActionsItemAutomaticHTTPSRewritesId), ), value: S.optional( S.NullOr(CreateResponseActionsItemAutomaticHTTPSRewritesValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type CreateResponseActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const CreateResponseActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: CreateResponseActionsItemBrowserCacheTTLId | null; /** The number of seconds to cache resources for. */ value?: number | null; } export const CreateResponseActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemBrowserCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "CreateResponseActionsItemBrowserCacheTTL", }) as any as S.Schema; export type CreateResponseActionsItemBrowserCheckId = "browser_check"; export const CreateResponseActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemBrowserCheckValue = "on" | "off"; export const CreateResponseActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: CreateResponseActionsItemBrowserCheckId | null; /** The status of Browser Integrity Check. */ value?: CreateResponseActionsItemBrowserCheckValue | null; } export const CreateResponseActionsItemBrowserCheck = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemBrowserCheckId)), value: S.optional(S.NullOr(CreateResponseActionsItemBrowserCheckValue)), }), ).annotate({ identifier: "CreateResponseActionsItemBrowserCheck", }) as any as S.Schema; export type CreateResponseActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const CreateResponseActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: CreateResponseActionsItemBypassCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const CreateResponseActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemBypassCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "CreateResponseActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type CreateResponseActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const CreateResponseActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheByDeviceTypeValue = "on" | "off"; export const CreateResponseActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: CreateResponseActionsItemCacheByDeviceTypeId | null; /** The status of Cache By Device Type. */ value?: CreateResponseActionsItemCacheByDeviceTypeValue | null; } export const CreateResponseActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheByDeviceTypeId)), value: S.optional( S.NullOr(CreateResponseActionsItemCacheByDeviceTypeValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheByDeviceType", }) as any as S.Schema; export type CreateResponseActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const CreateResponseActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheDeceptionArmorValue = "on" | "off"; export const CreateResponseActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: CreateResponseActionsItemCacheDeceptionArmorId | null; /** The status of Cache Deception Armor. */ value?: CreateResponseActionsItemCacheDeceptionArmorValue | null; } export const CreateResponseActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheDeceptionArmorId)), value: S.optional( S.NullOr(CreateResponseActionsItemCacheDeceptionArmorValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsId = "cache_key_fields"; export const CreateResponseActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const CreateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const CreateResponseActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: CreateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList | null; /** A list of cookies to include. */ include?: CreateResponseActionsItemCacheKeyFieldsValueCookieIncludeList | null; } export const CreateResponseActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( CreateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList, ).pipe(T.Body("check_presence")), ), include: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueCookieIncludeList), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const CreateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const CreateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const CreateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: CreateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList | null; /** A list of headers to ignore. */ exclude?: CreateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList | null; /** A list of headers to include. */ include?: CreateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList | null; } export const CreateResponseActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( CreateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList, ).pipe(T.Body("check_presence")), ), exclude: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList), ), include: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFieldsValueHost { /** Whether to include the Host header in the HTTP request sent */ resolved?: boolean | null; } export const CreateResponseActionsItemCacheKeyFieldsValueHost = /*@__PURE__*/ S.suspend(() => S.Struct({ resolved: S.optional(S.NullOr(S.Boolean)), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValueHost", }) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringExclude = | CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | CreateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type CreateResponseActionsItemCacheKeyFieldsValueQueryStringInclude = | CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | CreateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const CreateResponseActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface CreateResponseActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: CreateResponseActionsItemCacheKeyFieldsValueQueryStringExclude | null; /** Include all query string parameters. */ include?: CreateResponseActionsItemCacheKeyFieldsValueQueryStringInclude | null; } export const CreateResponseActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( S.NullOr( CreateResponseActionsItemCacheKeyFieldsValueQueryStringExclude, ), ), include: S.optional( S.NullOr( CreateResponseActionsItemCacheKeyFieldsValueQueryStringInclude, ), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFieldsValueUser { /** Classifies a request as `mobile`, `desktop`, or `tablet` */ deviceType?: boolean | null; /** Includes the client's country, derived from the IP address. */ geo?: boolean | null; /** Includes the first language code contained in the */ lang?: boolean | null; } export const CreateResponseActionsItemCacheKeyFieldsValueUser = /*@__PURE__*/ S.suspend(() => S.Struct({ deviceType: S.optional(S.NullOr(S.Boolean).pipe(T.Body("device_type"))), geo: S.optional(S.NullOr(S.Boolean)), lang: S.optional(S.NullOr(S.Boolean)), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValueUser", }) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: CreateResponseActionsItemCacheKeyFieldsValueCookie | null; /** Controls which headers go into the Cache Key. Exactly one of */ header?: CreateResponseActionsItemCacheKeyFieldsValueHeader | null; /** Determines which host header to include in the Cache Key. */ host?: CreateResponseActionsItemCacheKeyFieldsValueHost | null; /** Controls which URL query string parameters go into the Cache */ queryString?: CreateResponseActionsItemCacheKeyFieldsValueQueryString | null; /** Feature fields to add features about the end-user (client) into */ user?: CreateResponseActionsItemCacheKeyFieldsValueUser | null; } export const CreateResponseActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueCookie), ), header: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHeader), ), host: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHost), ), queryString: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueQueryString).pipe( T.Body("query_string"), ), ), user: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueUser), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface CreateResponseActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: CreateResponseActionsItemCacheKeyFieldsId | null; value?: CreateResponseActionsItemCacheKeyFieldsValue | null; } export const CreateResponseActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheKeyFieldsId)), value: S.optional(S.NullOr(CreateResponseActionsItemCacheKeyFieldsValue)), }), ).annotate({ identifier: "CreateResponseActionsItemCacheKeyFields", }) as any as S.Schema; export type CreateResponseActionsItemCacheLevelId = "cache_level"; export const CreateResponseActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const CreateResponseActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: CreateResponseActionsItemCacheLevelId | null; /** * `bypass`: Cloudflare does not cache. */ value?: CreateResponseActionsItemCacheLevelValue | null; } export const CreateResponseActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheLevelId)), value: S.optional(S.NullOr(CreateResponseActionsItemCacheLevelValue)), }), ).annotate({ identifier: "CreateResponseActionsItemCacheLevel", }) as any as S.Schema; export type CreateResponseActionsItemCacheOnCookieId = "cache_on_cookie"; export const CreateResponseActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: CreateResponseActionsItemCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const CreateResponseActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "CreateResponseActionsItemCacheOnCookie", }) as any as S.Schema; export type CreateResponseActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const CreateResponseActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const CreateResponseActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type CreateResponseActionsItemCacheTTLByStatusValue = | number | CreateResponseActionsItemCacheTTLByStatusValueCase0; export const CreateResponseActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface CreateResponseActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: CreateResponseActionsItemCacheTTLByStatusId | null; /** A JSON object containing status codes and their corresponding TTLs. */ value?: CreateResponseActionsItemCacheTTLByStatusValue | null; } export const CreateResponseActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemCacheTTLByStatusId)), value: S.optional( S.NullOr(CreateResponseActionsItemCacheTTLByStatusValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemCacheTTLByStatus", }) as any as S.Schema; export type CreateResponseActionsItemDisableAppsId = "disable_apps"; export const CreateResponseActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: CreateResponseActionsItemDisableAppsId | null; } export const CreateResponseActionsItemDisableApps = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemDisableAppsId)), }), ).annotate({ identifier: "CreateResponseActionsItemDisableApps", }) as any as S.Schema; export type CreateResponseActionsItemDisablePerformanceId = "disable_performance"; export const CreateResponseActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemDisablePerformance { /** Turn off */ id?: CreateResponseActionsItemDisablePerformanceId | null; } export const CreateResponseActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemDisablePerformanceId)), }), ).annotate({ identifier: "CreateResponseActionsItemDisablePerformance", }) as any as S.Schema; export type CreateResponseActionsItemDisableSecurityId = "disable_security"; export const CreateResponseActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemDisableSecurity { /** Turn off */ id?: CreateResponseActionsItemDisableSecurityId | null; } export const CreateResponseActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemDisableSecurityId)), }), ).annotate({ identifier: "CreateResponseActionsItemDisableSecurity", }) as any as S.Schema; export type CreateResponseActionsItemDisableZarazId = "disable_zaraz"; export const CreateResponseActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: CreateResponseActionsItemDisableZarazId | null; } export const CreateResponseActionsItemDisableZaraz = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemDisableZarazId)), }), ).annotate({ identifier: "CreateResponseActionsItemDisableZaraz", }) as any as S.Schema; export type CreateResponseActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const CreateResponseActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: CreateResponseActionsItemEdgeCacheTTLId | null; value?: number | null; } export const CreateResponseActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemEdgeCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "CreateResponseActionsItemEdgeCacheTTL", }) as any as S.Schema; export type CreateResponseActionsItemEmailObfuscationId = "email_obfuscation"; export const CreateResponseActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemEmailObfuscationValue = "on" | "off"; export const CreateResponseActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: CreateResponseActionsItemEmailObfuscationId | null; /** The status of Email Obfuscation. */ value?: CreateResponseActionsItemEmailObfuscationValue | null; } export const CreateResponseActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemEmailObfuscationId)), value: S.optional( S.NullOr(CreateResponseActionsItemEmailObfuscationValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemEmailObfuscation", }) as any as S.Schema; export type CreateResponseActionsItemExplicitCacheControlId = "explicit_cache_control"; export const CreateResponseActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemExplicitCacheControlValue = "on" | "off"; export const CreateResponseActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: CreateResponseActionsItemExplicitCacheControlId | null; /** The status of Origin Cache Control. */ value?: CreateResponseActionsItemExplicitCacheControlValue | null; } export const CreateResponseActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemExplicitCacheControlId)), value: S.optional( S.NullOr(CreateResponseActionsItemExplicitCacheControlValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemExplicitCacheControl", }) as any as S.Schema; export type CreateResponseActionsItemForwardingURLId = "forwarding_url"; export const CreateResponseActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemForwardingURLValueStatusCode = 301 | 302; export const CreateResponseActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface CreateResponseActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: CreateResponseActionsItemForwardingURLValueStatusCode | null; /** The URL to redirect the request to. */ url?: string | null; } export const CreateResponseActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( S.NullOr(CreateResponseActionsItemForwardingURLValueStatusCode).pipe( T.Body("status_code"), ), ), url: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "CreateResponseActionsItemForwardingURLValue", }) as any as S.Schema; export interface CreateResponseActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: CreateResponseActionsItemForwardingURLId | null; value?: CreateResponseActionsItemForwardingURLValue | null; } export const CreateResponseActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemForwardingURLId)), value: S.optional(S.NullOr(CreateResponseActionsItemForwardingURLValue)), }), ).annotate({ identifier: "CreateResponseActionsItemForwardingURL", }) as any as S.Schema; export type CreateResponseActionsItemHostHeaderOverrideId = "host_header_override"; export const CreateResponseActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: CreateResponseActionsItemHostHeaderOverrideId | null; /** The hostname to use in the `Host` header */ value?: string | null; } export const CreateResponseActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemHostHeaderOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "CreateResponseActionsItemHostHeaderOverride", }) as any as S.Schema; export type CreateResponseActionsItemIPGeolocationId = "ip_geolocation"; export const CreateResponseActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemIPGeolocationValue = "on" | "off"; export const CreateResponseActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: CreateResponseActionsItemIPGeolocationId | null; /** The status of adding the IP Geolocation Header. */ value?: CreateResponseActionsItemIPGeolocationValue | null; } export const CreateResponseActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemIPGeolocationId)), value: S.optional(S.NullOr(CreateResponseActionsItemIPGeolocationValue)), }), ).annotate({ identifier: "CreateResponseActionsItemIPGeolocation", }) as any as S.Schema; export type CreateResponseActionsItemMirageId = "mirage"; export const CreateResponseActionsItemMirageId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemMirageValue = "on" | "off"; export const CreateResponseActionsItemMirageValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: CreateResponseActionsItemMirageId | null; /** The status of Mirage. */ value?: CreateResponseActionsItemMirageValue | null; } export const CreateResponseActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemMirageId)), value: S.optional(S.NullOr(CreateResponseActionsItemMirageValue)), }), ).annotate({ identifier: "CreateResponseActionsItemMirage", }) as any as S.Schema; export type CreateResponseActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const CreateResponseActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemOpportunisticEncryptionValue = | "on" | "off"; export const CreateResponseActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: CreateResponseActionsItemOpportunisticEncryptionId | null; /** The status of Opportunistic Encryption. */ value?: CreateResponseActionsItemOpportunisticEncryptionValue | null; } export const CreateResponseActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(CreateResponseActionsItemOpportunisticEncryptionId), ), value: S.optional( S.NullOr(CreateResponseActionsItemOpportunisticEncryptionValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemOpportunisticEncryption", }) as any as S.Schema; export type CreateResponseActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const CreateResponseActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemOriginErrorPagePassThruValue = | "on" | "off"; export const CreateResponseActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: CreateResponseActionsItemOriginErrorPagePassThruId | null; /** The status of Origin Error Page Passthru. */ value?: CreateResponseActionsItemOriginErrorPagePassThruValue | null; } export const CreateResponseActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(CreateResponseActionsItemOriginErrorPagePassThruId), ), value: S.optional( S.NullOr(CreateResponseActionsItemOriginErrorPagePassThruValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type CreateResponseActionsItemPolishId = "polish"; export const CreateResponseActionsItemPolishId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemPolishValue = "off" | "lossless" | "lossy"; export const CreateResponseActionsItemPolishValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: CreateResponseActionsItemPolishId | null; /** The level of Polish you want applied to your origin. */ value?: CreateResponseActionsItemPolishValue | null; } export const CreateResponseActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemPolishId)), value: S.optional(S.NullOr(CreateResponseActionsItemPolishValue)), }), ).annotate({ identifier: "CreateResponseActionsItemPolish", }) as any as S.Schema; export type CreateResponseActionsItemResolveOverrideId = "resolve_override"; export const CreateResponseActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: CreateResponseActionsItemResolveOverrideId | null; /** The origin address you want to override with. */ value?: string | null; } export const CreateResponseActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemResolveOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "CreateResponseActionsItemResolveOverride", }) as any as S.Schema; export type CreateResponseActionsItemRespectStrongEtagId = "respect_strong_etag"; export const CreateResponseActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemRespectStrongEtagValue = "on" | "off"; export const CreateResponseActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: CreateResponseActionsItemRespectStrongEtagId | null; /** The status of Respect Strong ETags */ value?: CreateResponseActionsItemRespectStrongEtagValue | null; } export const CreateResponseActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemRespectStrongEtagId)), value: S.optional( S.NullOr(CreateResponseActionsItemRespectStrongEtagValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemRespectStrongEtag", }) as any as S.Schema; export type CreateResponseActionsItemResponseBufferingId = "response_buffering"; export const CreateResponseActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemResponseBufferingValue = "on" | "off"; export const CreateResponseActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: CreateResponseActionsItemResponseBufferingId | null; /** The status of Response Buffering */ value?: CreateResponseActionsItemResponseBufferingValue | null; } export const CreateResponseActionsItemResponseBuffering = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemResponseBufferingId)), value: S.optional( S.NullOr(CreateResponseActionsItemResponseBufferingValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemResponseBuffering", }) as any as S.Schema; export type CreateResponseActionsItemRocketLoaderId = "rocket_loader"; export const CreateResponseActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemRocketLoaderValue = "on" | "off"; export const CreateResponseActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: CreateResponseActionsItemRocketLoaderId | null; /** The status of Rocket Loader */ value?: CreateResponseActionsItemRocketLoaderValue | null; } export const CreateResponseActionsItemRocketLoader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemRocketLoaderId)), value: S.optional(S.NullOr(CreateResponseActionsItemRocketLoaderValue)), }), ).annotate({ identifier: "CreateResponseActionsItemRocketLoader", }) as any as S.Schema; export type CreateResponseActionsItemSecurityLevelId = "security_level"; export const CreateResponseActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const CreateResponseActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: CreateResponseActionsItemSecurityLevelId | null; value?: CreateResponseActionsItemSecurityLevelValue | null; } export const CreateResponseActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemSecurityLevelId)), value: S.optional(S.NullOr(CreateResponseActionsItemSecurityLevelValue)), }), ).annotate({ identifier: "CreateResponseActionsItemSecurityLevel", }) as any as S.Schema; export type CreateResponseActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const CreateResponseActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemSortQueryStringForCacheValue = | "on" | "off"; export const CreateResponseActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: CreateResponseActionsItemSortQueryStringForCacheId | null; /** The status of Query String Sort */ value?: CreateResponseActionsItemSortQueryStringForCacheValue | null; } export const CreateResponseActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(CreateResponseActionsItemSortQueryStringForCacheId), ), value: S.optional( S.NullOr(CreateResponseActionsItemSortQueryStringForCacheValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemSortQueryStringForCache", }) as any as S.Schema; export type CreateResponseActionsItemSSLId = "ssl"; export const CreateResponseActionsItemSSLId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const CreateResponseActionsItemSSLValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: CreateResponseActionsItemSSLId | null; /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: CreateResponseActionsItemSSLValue | null; } export const CreateResponseActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemSSLId)), value: S.optional(S.NullOr(CreateResponseActionsItemSSLValue)), }), ).annotate({ identifier: "CreateResponseActionsItemSSL", }) as any as S.Schema; export type CreateResponseActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const CreateResponseActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemTrueClientIPHeaderValue = "on" | "off"; export const CreateResponseActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: CreateResponseActionsItemTrueClientIPHeaderId | null; /** The status of True Client IP Header. */ value?: CreateResponseActionsItemTrueClientIPHeaderValue | null; } export const CreateResponseActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemTrueClientIPHeaderId)), value: S.optional( S.NullOr(CreateResponseActionsItemTrueClientIPHeaderValue), ), }), ).annotate({ identifier: "CreateResponseActionsItemTrueClientIPHeader", }) as any as S.Schema; export type CreateResponseActionsItemWAFId = "waf"; export const CreateResponseActionsItemWAFId = /*@__PURE__*/ S.String; export type CreateResponseActionsItemWAFValue = "on" | "off"; export const CreateResponseActionsItemWAFValue = /*@__PURE__*/ S.String; export interface CreateResponseActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: CreateResponseActionsItemWAFId | null; /** The status of WAF managed rules (previous version). */ value?: CreateResponseActionsItemWAFValue | null; } export const CreateResponseActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(CreateResponseActionsItemWAFId)), value: S.optional(S.NullOr(CreateResponseActionsItemWAFValue)), }), ).annotate({ identifier: "CreateResponseActionsItemWAF", }) as any as S.Schema; export type CreateResponseActionsItem = | CreateResponseActionsItemAlwaysUseHTTPS | CreateResponseActionsItemAutomaticHTTPSRewrites | CreateResponseActionsItemBrowserCacheTTL | CreateResponseActionsItemBrowserCheck | CreateResponseActionsItemBypassCacheOnCookie | CreateResponseActionsItemCacheByDeviceType | CreateResponseActionsItemCacheDeceptionArmor | CreateResponseActionsItemCacheKeyFields | CreateResponseActionsItemCacheLevel | CreateResponseActionsItemCacheOnCookie | CreateResponseActionsItemCacheTTLByStatus | CreateResponseActionsItemDisableApps | CreateResponseActionsItemDisablePerformance | CreateResponseActionsItemDisableSecurity | CreateResponseActionsItemDisableZaraz | CreateResponseActionsItemEdgeCacheTTL | CreateResponseActionsItemEmailObfuscation | CreateResponseActionsItemExplicitCacheControl | CreateResponseActionsItemForwardingURL | CreateResponseActionsItemHostHeaderOverride | CreateResponseActionsItemIPGeolocation | CreateResponseActionsItemMirage | CreateResponseActionsItemOpportunisticEncryption | CreateResponseActionsItemOriginErrorPagePassThru | CreateResponseActionsItemPolish | CreateResponseActionsItemResolveOverride | CreateResponseActionsItemRespectStrongEtag | CreateResponseActionsItemResponseBuffering | CreateResponseActionsItemRocketLoader | CreateResponseActionsItemSecurityLevel | CreateResponseActionsItemSortQueryStringForCache | CreateResponseActionsItemSSL | CreateResponseActionsItemTrueClientIPHeader | CreateResponseActionsItemWAF; export const CreateResponseActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type CreateResponseActionsList = Array; export const CreateResponseActionsList = /*@__PURE__*/ S.Array( CreateResponseActionsItem, ) as any as S.Schema; export type CreateResponseStatus = "active" | "disabled"; export const CreateResponseStatus = /*@__PURE__*/ S.String; export type CreateResponseTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const CreateResponseTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface CreateResponseTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: CreateResponseTargetsItemConstraintOperator; /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const CreateResponseTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: CreateResponseTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "CreateResponseTargetsItemConstraint", }) as any as S.Schema; export type CreateResponseTargetsItemTarget = "url"; export const CreateResponseTargetsItemTarget = /*@__PURE__*/ S.String; export interface CreateResponseTargetsItem { /** String constraint. */ constraint?: CreateResponseTargetsItemConstraint | null; /** A target based on the URL of the request. */ target?: CreateResponseTargetsItemTarget | null; } export const CreateResponseTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(S.NullOr(CreateResponseTargetsItemConstraint)), target: S.optional(S.NullOr(CreateResponseTargetsItemTarget)), }), ).annotate({ identifier: "CreateResponseTargetsItem", }) as any as S.Schema; export type CreateResponseTargetsList = Array; export const CreateResponseTargetsList = /*@__PURE__*/ S.Array( CreateResponseTargetsItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreatePageRuleResponse { /** Identifier. */ id: string; /** The set of actions to perform if the targets of this rule match the */ actions: CreateResponseActionsList; /** The timestamp of when the Page Rule was created. */ createdOn: string; /** The timestamp of when the Page Rule was last modified. */ modifiedOn: string; /** The priority of the rule, used to define which Page Rule is processed */ priority: number; /** The status of the Page Rule. */ status: CreateResponseStatus; /** The rule targets to evaluate on each request. */ targets: CreateResponseTargetsList; } export const CreatePageRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, actions: CreateResponseActionsList, createdOn: S.String.pipe(T.Body("created_on")), modifiedOn: S.String.pipe(T.Body("modified_on")), priority: S.Number, status: CreateResponseStatus, targets: CreateResponseTargetsList, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreatePageRuleResponse", }) as any as S.Schema; export interface DeletePageRuleRequest { /** Identifier. */ zoneId: string; /** Identifier. */ pageruleId: string; } export const DeletePageRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), pageruleId: S.String.pipe(T.Label("pagerule_id")), }) .pipe( T.Http({ method: "DELETE", uri: "/zones/{zone_id}/pagerules/{pagerule_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeletePageRuleRequest", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeletePageRuleResponse { /** Identifier. */ id: string; } export const DeletePageRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeletePageRuleResponse", }) as any as S.Schema; export interface GetPageRuleRequest { /** Identifier. */ zoneId: string; /** Identifier. */ pageruleId: string; } export const GetPageRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), pageruleId: S.String.pipe(T.Label("pagerule_id")), }) .pipe( T.Http({ method: "GET", uri: "/zones/{zone_id}/pagerules/{pagerule_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetPageRuleRequest", }) as any as S.Schema; export type GetResponseActionsItemAlwaysUseHTTPSId = "always_use_https"; export const GetResponseActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: GetResponseActionsItemAlwaysUseHTTPSId | null; } export const GetResponseActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemAlwaysUseHTTPSId)), }), ).annotate({ identifier: "GetResponseActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type GetResponseActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const GetResponseActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type GetResponseActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const GetResponseActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: GetResponseActionsItemAutomaticHTTPSRewritesId | null; /** The status of Automatic HTTPS Rewrites. */ value?: GetResponseActionsItemAutomaticHTTPSRewritesValue | null; } export const GetResponseActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemAutomaticHTTPSRewritesId)), value: S.optional( S.NullOr(GetResponseActionsItemAutomaticHTTPSRewritesValue), ), }), ).annotate({ identifier: "GetResponseActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type GetResponseActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const GetResponseActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: GetResponseActionsItemBrowserCacheTTLId | null; /** The number of seconds to cache resources for. */ value?: number | null; } export const GetResponseActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemBrowserCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "GetResponseActionsItemBrowserCacheTTL", }) as any as S.Schema; export type GetResponseActionsItemBrowserCheckId = "browser_check"; export const GetResponseActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type GetResponseActionsItemBrowserCheckValue = "on" | "off"; export const GetResponseActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: GetResponseActionsItemBrowserCheckId | null; /** The status of Browser Integrity Check. */ value?: GetResponseActionsItemBrowserCheckValue | null; } export const GetResponseActionsItemBrowserCheck = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemBrowserCheckId)), value: S.optional(S.NullOr(GetResponseActionsItemBrowserCheckValue)), }), ).annotate({ identifier: "GetResponseActionsItemBrowserCheck", }) as any as S.Schema; export type GetResponseActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const GetResponseActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: GetResponseActionsItemBypassCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const GetResponseActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemBypassCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type GetResponseActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const GetResponseActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheByDeviceTypeValue = "on" | "off"; export const GetResponseActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: GetResponseActionsItemCacheByDeviceTypeId | null; /** The status of Cache By Device Type. */ value?: GetResponseActionsItemCacheByDeviceTypeValue | null; } export const GetResponseActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheByDeviceTypeId)), value: S.optional(S.NullOr(GetResponseActionsItemCacheByDeviceTypeValue)), }), ).annotate({ identifier: "GetResponseActionsItemCacheByDeviceType", }) as any as S.Schema; export type GetResponseActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const GetResponseActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheDeceptionArmorValue = "on" | "off"; export const GetResponseActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: GetResponseActionsItemCacheDeceptionArmorId | null; /** The status of Cache Deception Armor. */ value?: GetResponseActionsItemCacheDeceptionArmorValue | null; } export const GetResponseActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheDeceptionArmorId)), value: S.optional( S.NullOr(GetResponseActionsItemCacheDeceptionArmorValue), ), }), ).annotate({ identifier: "GetResponseActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsId = "cache_key_fields"; export const GetResponseActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const GetResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const GetResponseActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface GetResponseActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: GetResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList | null; /** A list of cookies to include. */ include?: GetResponseActionsItemCacheKeyFieldsValueCookieIncludeList | null; } export const GetResponseActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( GetResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList, ).pipe(T.Body("check_presence")), ), include: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueCookieIncludeList), ), }), ).annotate({ identifier: "GetResponseActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const GetResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const GetResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const GetResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface GetResponseActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: GetResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList | null; /** A list of headers to ignore. */ exclude?: GetResponseActionsItemCacheKeyFieldsValueHeaderExcludeList | null; /** A list of headers to include. */ include?: GetResponseActionsItemCacheKeyFieldsValueHeaderIncludeList | null; } export const GetResponseActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( GetResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList, ).pipe(T.Body("check_presence")), ), exclude: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueHeaderExcludeList), ), include: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueHeaderIncludeList), ), }), ).annotate({ identifier: "GetResponseActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export const GetResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export type GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueQueryStringExclude = | GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | GetResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueQueryStringInclude = | GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | GetResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const GetResponseActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface GetResponseActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: GetResponseActionsItemCacheKeyFieldsValueQueryStringExclude | null; /** Include all query string parameters. */ include?: GetResponseActionsItemCacheKeyFieldsValueQueryStringInclude | null; } export const GetResponseActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueQueryStringExclude), ), include: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueQueryStringInclude), ), }), ).annotate({ identifier: "GetResponseActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type GetResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export const GetResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export interface GetResponseActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: GetResponseActionsItemCacheKeyFieldsValueCookie | null; /** Controls which headers go into the Cache Key. Exactly one of */ header?: GetResponseActionsItemCacheKeyFieldsValueHeader | null; /** Determines which host header to include in the Cache Key. */ host?: CreateResponseActionsItemCacheKeyFieldsValueHost | null; /** Controls which URL query string parameters go into the Cache */ queryString?: GetResponseActionsItemCacheKeyFieldsValueQueryString | null; /** Feature fields to add features about the end-user (client) into */ user?: CreateResponseActionsItemCacheKeyFieldsValueUser | null; } export const GetResponseActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueCookie), ), header: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueHeader), ), host: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHost), ), queryString: S.optional( S.NullOr(GetResponseActionsItemCacheKeyFieldsValueQueryString).pipe( T.Body("query_string"), ), ), user: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueUser), ), }), ).annotate({ identifier: "GetResponseActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface GetResponseActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: GetResponseActionsItemCacheKeyFieldsId | null; value?: GetResponseActionsItemCacheKeyFieldsValue | null; } export const GetResponseActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheKeyFieldsId)), value: S.optional(S.NullOr(GetResponseActionsItemCacheKeyFieldsValue)), }), ).annotate({ identifier: "GetResponseActionsItemCacheKeyFields", }) as any as S.Schema; export type GetResponseActionsItemCacheLevelId = "cache_level"; export const GetResponseActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const GetResponseActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: GetResponseActionsItemCacheLevelId | null; /** * `bypass`: Cloudflare does not cache. */ value?: GetResponseActionsItemCacheLevelValue | null; } export const GetResponseActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheLevelId)), value: S.optional(S.NullOr(GetResponseActionsItemCacheLevelValue)), }), ).annotate({ identifier: "GetResponseActionsItemCacheLevel", }) as any as S.Schema; export type GetResponseActionsItemCacheOnCookieId = "cache_on_cookie"; export const GetResponseActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: GetResponseActionsItemCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const GetResponseActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseActionsItemCacheOnCookie", }) as any as S.Schema; export type GetResponseActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const GetResponseActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const GetResponseActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type GetResponseActionsItemCacheTTLByStatusValue = | number | GetResponseActionsItemCacheTTLByStatusValueCase0; export const GetResponseActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface GetResponseActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: GetResponseActionsItemCacheTTLByStatusId | null; /** A JSON object containing status codes and their corresponding TTLs. */ value?: GetResponseActionsItemCacheTTLByStatusValue | null; } export const GetResponseActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemCacheTTLByStatusId)), value: S.optional(S.NullOr(GetResponseActionsItemCacheTTLByStatusValue)), }), ).annotate({ identifier: "GetResponseActionsItemCacheTTLByStatus", }) as any as S.Schema; export type GetResponseActionsItemDisableAppsId = "disable_apps"; export const GetResponseActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: GetResponseActionsItemDisableAppsId | null; } export const GetResponseActionsItemDisableApps = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemDisableAppsId)), }), ).annotate({ identifier: "GetResponseActionsItemDisableApps", }) as any as S.Schema; export type GetResponseActionsItemDisablePerformanceId = "disable_performance"; export const GetResponseActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemDisablePerformance { /** Turn off */ id?: GetResponseActionsItemDisablePerformanceId | null; } export const GetResponseActionsItemDisablePerformance = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemDisablePerformanceId)), }), ).annotate({ identifier: "GetResponseActionsItemDisablePerformance", }) as any as S.Schema; export type GetResponseActionsItemDisableSecurityId = "disable_security"; export const GetResponseActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemDisableSecurity { /** Turn off */ id?: GetResponseActionsItemDisableSecurityId | null; } export const GetResponseActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemDisableSecurityId)), }), ).annotate({ identifier: "GetResponseActionsItemDisableSecurity", }) as any as S.Schema; export type GetResponseActionsItemDisableZarazId = "disable_zaraz"; export const GetResponseActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: GetResponseActionsItemDisableZarazId | null; } export const GetResponseActionsItemDisableZaraz = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemDisableZarazId)), }), ).annotate({ identifier: "GetResponseActionsItemDisableZaraz", }) as any as S.Schema; export type GetResponseActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const GetResponseActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: GetResponseActionsItemEdgeCacheTTLId | null; value?: number | null; } export const GetResponseActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemEdgeCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "GetResponseActionsItemEdgeCacheTTL", }) as any as S.Schema; export type GetResponseActionsItemEmailObfuscationId = "email_obfuscation"; export const GetResponseActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type GetResponseActionsItemEmailObfuscationValue = "on" | "off"; export const GetResponseActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: GetResponseActionsItemEmailObfuscationId | null; /** The status of Email Obfuscation. */ value?: GetResponseActionsItemEmailObfuscationValue | null; } export const GetResponseActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemEmailObfuscationId)), value: S.optional(S.NullOr(GetResponseActionsItemEmailObfuscationValue)), }), ).annotate({ identifier: "GetResponseActionsItemEmailObfuscation", }) as any as S.Schema; export type GetResponseActionsItemExplicitCacheControlId = "explicit_cache_control"; export const GetResponseActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type GetResponseActionsItemExplicitCacheControlValue = "on" | "off"; export const GetResponseActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: GetResponseActionsItemExplicitCacheControlId | null; /** The status of Origin Cache Control. */ value?: GetResponseActionsItemExplicitCacheControlValue | null; } export const GetResponseActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemExplicitCacheControlId)), value: S.optional( S.NullOr(GetResponseActionsItemExplicitCacheControlValue), ), }), ).annotate({ identifier: "GetResponseActionsItemExplicitCacheControl", }) as any as S.Schema; export type GetResponseActionsItemForwardingURLId = "forwarding_url"; export const GetResponseActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type GetResponseActionsItemForwardingURLValueStatusCode = 301 | 302; export const GetResponseActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface GetResponseActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: GetResponseActionsItemForwardingURLValueStatusCode | null; /** The URL to redirect the request to. */ url?: string | null; } export const GetResponseActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend( () => S.Struct({ statusCode: S.optional( S.NullOr(GetResponseActionsItemForwardingURLValueStatusCode).pipe( T.Body("status_code"), ), ), url: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseActionsItemForwardingURLValue", }) as any as S.Schema; export interface GetResponseActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: GetResponseActionsItemForwardingURLId | null; value?: GetResponseActionsItemForwardingURLValue | null; } export const GetResponseActionsItemForwardingURL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemForwardingURLId)), value: S.optional(S.NullOr(GetResponseActionsItemForwardingURLValue)), }), ).annotate({ identifier: "GetResponseActionsItemForwardingURL", }) as any as S.Schema; export type GetResponseActionsItemHostHeaderOverrideId = "host_header_override"; export const GetResponseActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: GetResponseActionsItemHostHeaderOverrideId | null; /** The hostname to use in the `Host` header */ value?: string | null; } export const GetResponseActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemHostHeaderOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseActionsItemHostHeaderOverride", }) as any as S.Schema; export type GetResponseActionsItemIPGeolocationId = "ip_geolocation"; export const GetResponseActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type GetResponseActionsItemIPGeolocationValue = "on" | "off"; export const GetResponseActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: GetResponseActionsItemIPGeolocationId | null; /** The status of adding the IP Geolocation Header. */ value?: GetResponseActionsItemIPGeolocationValue | null; } export const GetResponseActionsItemIPGeolocation = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemIPGeolocationId)), value: S.optional(S.NullOr(GetResponseActionsItemIPGeolocationValue)), }), ).annotate({ identifier: "GetResponseActionsItemIPGeolocation", }) as any as S.Schema; export type GetResponseActionsItemMirageId = "mirage"; export const GetResponseActionsItemMirageId = /*@__PURE__*/ S.String; export type GetResponseActionsItemMirageValue = "on" | "off"; export const GetResponseActionsItemMirageValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: GetResponseActionsItemMirageId | null; /** The status of Mirage. */ value?: GetResponseActionsItemMirageValue | null; } export const GetResponseActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemMirageId)), value: S.optional(S.NullOr(GetResponseActionsItemMirageValue)), }), ).annotate({ identifier: "GetResponseActionsItemMirage", }) as any as S.Schema; export type GetResponseActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const GetResponseActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type GetResponseActionsItemOpportunisticEncryptionValue = "on" | "off"; export const GetResponseActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: GetResponseActionsItemOpportunisticEncryptionId | null; /** The status of Opportunistic Encryption. */ value?: GetResponseActionsItemOpportunisticEncryptionValue | null; } export const GetResponseActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemOpportunisticEncryptionId)), value: S.optional( S.NullOr(GetResponseActionsItemOpportunisticEncryptionValue), ), }), ).annotate({ identifier: "GetResponseActionsItemOpportunisticEncryption", }) as any as S.Schema; export type GetResponseActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const GetResponseActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type GetResponseActionsItemOriginErrorPagePassThruValue = "on" | "off"; export const GetResponseActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: GetResponseActionsItemOriginErrorPagePassThruId | null; /** The status of Origin Error Page Passthru. */ value?: GetResponseActionsItemOriginErrorPagePassThruValue | null; } export const GetResponseActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemOriginErrorPagePassThruId)), value: S.optional( S.NullOr(GetResponseActionsItemOriginErrorPagePassThruValue), ), }), ).annotate({ identifier: "GetResponseActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type GetResponseActionsItemPolishId = "polish"; export const GetResponseActionsItemPolishId = /*@__PURE__*/ S.String; export type GetResponseActionsItemPolishValue = "off" | "lossless" | "lossy"; export const GetResponseActionsItemPolishValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: GetResponseActionsItemPolishId | null; /** The level of Polish you want applied to your origin. */ value?: GetResponseActionsItemPolishValue | null; } export const GetResponseActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemPolishId)), value: S.optional(S.NullOr(GetResponseActionsItemPolishValue)), }), ).annotate({ identifier: "GetResponseActionsItemPolish", }) as any as S.Schema; export type GetResponseActionsItemResolveOverrideId = "resolve_override"; export const GetResponseActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface GetResponseActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: GetResponseActionsItemResolveOverrideId | null; /** The origin address you want to override with. */ value?: string | null; } export const GetResponseActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemResolveOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseActionsItemResolveOverride", }) as any as S.Schema; export type GetResponseActionsItemRespectStrongEtagId = "respect_strong_etag"; export const GetResponseActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type GetResponseActionsItemRespectStrongEtagValue = "on" | "off"; export const GetResponseActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: GetResponseActionsItemRespectStrongEtagId | null; /** The status of Respect Strong ETags */ value?: GetResponseActionsItemRespectStrongEtagValue | null; } export const GetResponseActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemRespectStrongEtagId)), value: S.optional(S.NullOr(GetResponseActionsItemRespectStrongEtagValue)), }), ).annotate({ identifier: "GetResponseActionsItemRespectStrongEtag", }) as any as S.Schema; export type GetResponseActionsItemResponseBufferingId = "response_buffering"; export const GetResponseActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type GetResponseActionsItemResponseBufferingValue = "on" | "off"; export const GetResponseActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: GetResponseActionsItemResponseBufferingId | null; /** The status of Response Buffering */ value?: GetResponseActionsItemResponseBufferingValue | null; } export const GetResponseActionsItemResponseBuffering = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemResponseBufferingId)), value: S.optional(S.NullOr(GetResponseActionsItemResponseBufferingValue)), }), ).annotate({ identifier: "GetResponseActionsItemResponseBuffering", }) as any as S.Schema; export type GetResponseActionsItemRocketLoaderId = "rocket_loader"; export const GetResponseActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type GetResponseActionsItemRocketLoaderValue = "on" | "off"; export const GetResponseActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: GetResponseActionsItemRocketLoaderId | null; /** The status of Rocket Loader */ value?: GetResponseActionsItemRocketLoaderValue | null; } export const GetResponseActionsItemRocketLoader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemRocketLoaderId)), value: S.optional(S.NullOr(GetResponseActionsItemRocketLoaderValue)), }), ).annotate({ identifier: "GetResponseActionsItemRocketLoader", }) as any as S.Schema; export type GetResponseActionsItemSecurityLevelId = "security_level"; export const GetResponseActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type GetResponseActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const GetResponseActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: GetResponseActionsItemSecurityLevelId | null; value?: GetResponseActionsItemSecurityLevelValue | null; } export const GetResponseActionsItemSecurityLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemSecurityLevelId)), value: S.optional(S.NullOr(GetResponseActionsItemSecurityLevelValue)), }), ).annotate({ identifier: "GetResponseActionsItemSecurityLevel", }) as any as S.Schema; export type GetResponseActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const GetResponseActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type GetResponseActionsItemSortQueryStringForCacheValue = "on" | "off"; export const GetResponseActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: GetResponseActionsItemSortQueryStringForCacheId | null; /** The status of Query String Sort */ value?: GetResponseActionsItemSortQueryStringForCacheValue | null; } export const GetResponseActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemSortQueryStringForCacheId)), value: S.optional( S.NullOr(GetResponseActionsItemSortQueryStringForCacheValue), ), }), ).annotate({ identifier: "GetResponseActionsItemSortQueryStringForCache", }) as any as S.Schema; export type GetResponseActionsItemSSLId = "ssl"; export const GetResponseActionsItemSSLId = /*@__PURE__*/ S.String; export type GetResponseActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const GetResponseActionsItemSSLValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: GetResponseActionsItemSSLId | null; /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: GetResponseActionsItemSSLValue | null; } export const GetResponseActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemSSLId)), value: S.optional(S.NullOr(GetResponseActionsItemSSLValue)), }), ).annotate({ identifier: "GetResponseActionsItemSSL", }) as any as S.Schema; export type GetResponseActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const GetResponseActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type GetResponseActionsItemTrueClientIPHeaderValue = "on" | "off"; export const GetResponseActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: GetResponseActionsItemTrueClientIPHeaderId | null; /** The status of True Client IP Header. */ value?: GetResponseActionsItemTrueClientIPHeaderValue | null; } export const GetResponseActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemTrueClientIPHeaderId)), value: S.optional( S.NullOr(GetResponseActionsItemTrueClientIPHeaderValue), ), }), ).annotate({ identifier: "GetResponseActionsItemTrueClientIPHeader", }) as any as S.Schema; export type GetResponseActionsItemWAFId = "waf"; export const GetResponseActionsItemWAFId = /*@__PURE__*/ S.String; export type GetResponseActionsItemWAFValue = "on" | "off"; export const GetResponseActionsItemWAFValue = /*@__PURE__*/ S.String; export interface GetResponseActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: GetResponseActionsItemWAFId | null; /** The status of WAF managed rules (previous version). */ value?: GetResponseActionsItemWAFValue | null; } export const GetResponseActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(GetResponseActionsItemWAFId)), value: S.optional(S.NullOr(GetResponseActionsItemWAFValue)), }), ).annotate({ identifier: "GetResponseActionsItemWAF", }) as any as S.Schema; export type GetResponseActionsItem = | GetResponseActionsItemAlwaysUseHTTPS | GetResponseActionsItemAutomaticHTTPSRewrites | GetResponseActionsItemBrowserCacheTTL | GetResponseActionsItemBrowserCheck | GetResponseActionsItemBypassCacheOnCookie | GetResponseActionsItemCacheByDeviceType | GetResponseActionsItemCacheDeceptionArmor | GetResponseActionsItemCacheKeyFields | GetResponseActionsItemCacheLevel | GetResponseActionsItemCacheOnCookie | GetResponseActionsItemCacheTTLByStatus | GetResponseActionsItemDisableApps | GetResponseActionsItemDisablePerformance | GetResponseActionsItemDisableSecurity | GetResponseActionsItemDisableZaraz | GetResponseActionsItemEdgeCacheTTL | GetResponseActionsItemEmailObfuscation | GetResponseActionsItemExplicitCacheControl | GetResponseActionsItemForwardingURL | GetResponseActionsItemHostHeaderOverride | GetResponseActionsItemIPGeolocation | GetResponseActionsItemMirage | GetResponseActionsItemOpportunisticEncryption | GetResponseActionsItemOriginErrorPagePassThru | GetResponseActionsItemPolish | GetResponseActionsItemResolveOverride | GetResponseActionsItemRespectStrongEtag | GetResponseActionsItemResponseBuffering | GetResponseActionsItemRocketLoader | GetResponseActionsItemSecurityLevel | GetResponseActionsItemSortQueryStringForCache | GetResponseActionsItemSSL | GetResponseActionsItemTrueClientIPHeader | GetResponseActionsItemWAF; export const GetResponseActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type GetResponseActionsList = Array; export const GetResponseActionsList = /*@__PURE__*/ S.Array( GetResponseActionsItem, ) as any as S.Schema; export type GetResponseStatus = "active" | "disabled"; export const GetResponseStatus = /*@__PURE__*/ S.String; export type GetResponseTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const GetResponseTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface GetResponseTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: GetResponseTargetsItemConstraintOperator; /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const GetResponseTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: GetResponseTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "GetResponseTargetsItemConstraint", }) as any as S.Schema; export type GetResponseTargetsItemTarget = "url"; export const GetResponseTargetsItemTarget = /*@__PURE__*/ S.String; export interface GetResponseTargetsItem { /** String constraint. */ constraint?: GetResponseTargetsItemConstraint | null; /** A target based on the URL of the request. */ target?: GetResponseTargetsItemTarget | null; } export const GetResponseTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(S.NullOr(GetResponseTargetsItemConstraint)), target: S.optional(S.NullOr(GetResponseTargetsItemTarget)), }), ).annotate({ identifier: "GetResponseTargetsItem", }) as any as S.Schema; export type GetResponseTargetsList = Array; export const GetResponseTargetsList = /*@__PURE__*/ S.Array( GetResponseTargetsItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetPageRuleResponse { /** Identifier. */ id: string; /** The set of actions to perform if the targets of this rule match the */ actions: GetResponseActionsList; /** The timestamp of when the Page Rule was created. */ createdOn: string; /** The timestamp of when the Page Rule was last modified. */ modifiedOn: string; /** The priority of the rule, used to define which Page Rule is processed */ priority: number; /** The status of the Page Rule. */ status: GetResponseStatus; /** The rule targets to evaluate on each request. */ targets: GetResponseTargetsList; } export const GetPageRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, actions: GetResponseActionsList, createdOn: S.String.pipe(T.Body("created_on")), modifiedOn: S.String.pipe(T.Body("modified_on")), priority: S.Number, status: GetResponseStatus, targets: GetResponseTargetsList, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetPageRuleResponse", }) as any as S.Schema; export type ListRequestDirection = "asc" | "desc"; export const ListRequestDirection = /*@__PURE__*/ S.String; export type ListRequestMatch = "any" | "all"; export const ListRequestMatch = /*@__PURE__*/ S.String; export type ListRequestOrder = "status" | "priority"; export const ListRequestOrder = /*@__PURE__*/ S.String; export type ListRequestStatus = "active" | "disabled"; export const ListRequestStatus = /*@__PURE__*/ S.String; export interface ListPageRulesRequest { /** Identifier. */ zoneId: string; /** The direction used to sort returned Page Rules. */ direction?: ListRequestDirection | (string & {}); /** When set to `all`, all the search requirements must match. When set to `any`, only one of the search requirements has to match. */ match?: ListRequestMatch | (string & {}); /** The field used to sort returned Page Rules. */ order?: ListRequestOrder | (string & {}); /** The status of the Page Rule. */ status?: ListRequestStatus | (string & {}); } export const ListPageRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), direction: S.optional(ListRequestDirection.pipe(T.Query())), match: S.optional(ListRequestMatch.pipe(T.Query())), order: S.optional(ListRequestOrder.pipe(T.Query())), status: S.optional(ListRequestStatus.pipe(T.Query())), }) .pipe( T.Http({ method: "GET", uri: "/zones/{zone_id}/pagerules", code: 200 }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListPageRulesRequest", }) as any as S.Schema; export type ListResultItemActionsItemAlwaysUseHTTPSId = "always_use_https"; export const ListResultItemActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: ListResultItemActionsItemAlwaysUseHTTPSId | null; } export const ListResultItemActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemAlwaysUseHTTPSId)), }), ).annotate({ identifier: "ListResultItemActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type ListResultItemActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const ListResultItemActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const ListResultItemActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: ListResultItemActionsItemAutomaticHTTPSRewritesId | null; /** The status of Automatic HTTPS Rewrites. */ value?: ListResultItemActionsItemAutomaticHTTPSRewritesValue | null; } export const ListResultItemActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(ListResultItemActionsItemAutomaticHTTPSRewritesId), ), value: S.optional( S.NullOr(ListResultItemActionsItemAutomaticHTTPSRewritesValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type ListResultItemActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const ListResultItemActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: ListResultItemActionsItemBrowserCacheTTLId | null; /** The number of seconds to cache resources for. */ value?: number | null; } export const ListResultItemActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemBrowserCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ListResultItemActionsItemBrowserCacheTTL", }) as any as S.Schema; export type ListResultItemActionsItemBrowserCheckId = "browser_check"; export const ListResultItemActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemBrowserCheckValue = "on" | "off"; export const ListResultItemActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: ListResultItemActionsItemBrowserCheckId | null; /** The status of Browser Integrity Check. */ value?: ListResultItemActionsItemBrowserCheckValue | null; } export const ListResultItemActionsItemBrowserCheck = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemBrowserCheckId)), value: S.optional(S.NullOr(ListResultItemActionsItemBrowserCheckValue)), }), ).annotate({ identifier: "ListResultItemActionsItemBrowserCheck", }) as any as S.Schema; export type ListResultItemActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const ListResultItemActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: ListResultItemActionsItemBypassCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const ListResultItemActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemBypassCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ListResultItemActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type ListResultItemActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const ListResultItemActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheByDeviceTypeValue = "on" | "off"; export const ListResultItemActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: ListResultItemActionsItemCacheByDeviceTypeId | null; /** The status of Cache By Device Type. */ value?: ListResultItemActionsItemCacheByDeviceTypeValue | null; } export const ListResultItemActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheByDeviceTypeId)), value: S.optional( S.NullOr(ListResultItemActionsItemCacheByDeviceTypeValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheByDeviceType", }) as any as S.Schema; export type ListResultItemActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const ListResultItemActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheDeceptionArmorValue = "on" | "off"; export const ListResultItemActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: ListResultItemActionsItemCacheDeceptionArmorId | null; /** The status of Cache Deception Armor. */ value?: ListResultItemActionsItemCacheDeceptionArmorValue | null; } export const ListResultItemActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheDeceptionArmorId)), value: S.optional( S.NullOr(ListResultItemActionsItemCacheDeceptionArmorValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsId = "cache_key_fields"; export const ListResultItemActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const ListResultItemActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const ListResultItemActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface ListResultItemActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: ListResultItemActionsItemCacheKeyFieldsValueCookieCheckPresenceList | null; /** A list of cookies to include. */ include?: ListResultItemActionsItemCacheKeyFieldsValueCookieIncludeList | null; } export const ListResultItemActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( ListResultItemActionsItemCacheKeyFieldsValueCookieCheckPresenceList, ).pipe(T.Body("check_presence")), ), include: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueCookieIncludeList), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const ListResultItemActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const ListResultItemActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const ListResultItemActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface ListResultItemActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: ListResultItemActionsItemCacheKeyFieldsValueHeaderCheckPresenceList | null; /** A list of headers to ignore. */ exclude?: ListResultItemActionsItemCacheKeyFieldsValueHeaderExcludeList | null; /** A list of headers to include. */ include?: ListResultItemActionsItemCacheKeyFieldsValueHeaderIncludeList | null; } export const ListResultItemActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( ListResultItemActionsItemCacheKeyFieldsValueHeaderCheckPresenceList, ).pipe(T.Body("check_presence")), ), exclude: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueHeaderExcludeList), ), include: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueHeaderIncludeList), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export const ListResultItemActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringExclude = | ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | ListResultItemActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueQueryStringInclude = | ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | ListResultItemActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const ListResultItemActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface ListResultItemActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: ListResultItemActionsItemCacheKeyFieldsValueQueryStringExclude | null; /** Include all query string parameters. */ include?: ListResultItemActionsItemCacheKeyFieldsValueQueryStringInclude | null; } export const ListResultItemActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( S.NullOr( ListResultItemActionsItemCacheKeyFieldsValueQueryStringExclude, ), ), include: S.optional( S.NullOr( ListResultItemActionsItemCacheKeyFieldsValueQueryStringInclude, ), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type ListResultItemActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export const ListResultItemActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export interface ListResultItemActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: ListResultItemActionsItemCacheKeyFieldsValueCookie | null; /** Controls which headers go into the Cache Key. Exactly one of */ header?: ListResultItemActionsItemCacheKeyFieldsValueHeader | null; /** Determines which host header to include in the Cache Key. */ host?: CreateResponseActionsItemCacheKeyFieldsValueHost | null; /** Controls which URL query string parameters go into the Cache */ queryString?: ListResultItemActionsItemCacheKeyFieldsValueQueryString | null; /** Feature fields to add features about the end-user (client) into */ user?: CreateResponseActionsItemCacheKeyFieldsValueUser | null; } export const ListResultItemActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueCookie), ), header: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueHeader), ), host: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHost), ), queryString: S.optional( S.NullOr(ListResultItemActionsItemCacheKeyFieldsValueQueryString).pipe( T.Body("query_string"), ), ), user: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueUser), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface ListResultItemActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: ListResultItemActionsItemCacheKeyFieldsId | null; value?: ListResultItemActionsItemCacheKeyFieldsValue | null; } export const ListResultItemActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheKeyFieldsId)), value: S.optional(S.NullOr(ListResultItemActionsItemCacheKeyFieldsValue)), }), ).annotate({ identifier: "ListResultItemActionsItemCacheKeyFields", }) as any as S.Schema; export type ListResultItemActionsItemCacheLevelId = "cache_level"; export const ListResultItemActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const ListResultItemActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: ListResultItemActionsItemCacheLevelId | null; /** * `bypass`: Cloudflare does not cache. */ value?: ListResultItemActionsItemCacheLevelValue | null; } export const ListResultItemActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheLevelId)), value: S.optional(S.NullOr(ListResultItemActionsItemCacheLevelValue)), }), ).annotate({ identifier: "ListResultItemActionsItemCacheLevel", }) as any as S.Schema; export type ListResultItemActionsItemCacheOnCookieId = "cache_on_cookie"; export const ListResultItemActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: ListResultItemActionsItemCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const ListResultItemActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ListResultItemActionsItemCacheOnCookie", }) as any as S.Schema; export type ListResultItemActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const ListResultItemActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const ListResultItemActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type ListResultItemActionsItemCacheTTLByStatusValue = | number | ListResultItemActionsItemCacheTTLByStatusValueCase0; export const ListResultItemActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface ListResultItemActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: ListResultItemActionsItemCacheTTLByStatusId | null; /** A JSON object containing status codes and their corresponding TTLs. */ value?: ListResultItemActionsItemCacheTTLByStatusValue | null; } export const ListResultItemActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemCacheTTLByStatusId)), value: S.optional( S.NullOr(ListResultItemActionsItemCacheTTLByStatusValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemCacheTTLByStatus", }) as any as S.Schema; export type ListResultItemActionsItemDisableAppsId = "disable_apps"; export const ListResultItemActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: ListResultItemActionsItemDisableAppsId | null; } export const ListResultItemActionsItemDisableApps = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemDisableAppsId)), }), ).annotate({ identifier: "ListResultItemActionsItemDisableApps", }) as any as S.Schema; export type ListResultItemActionsItemDisablePerformanceId = "disable_performance"; export const ListResultItemActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemDisablePerformance { /** Turn off */ id?: ListResultItemActionsItemDisablePerformanceId | null; } export const ListResultItemActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemDisablePerformanceId)), }), ).annotate({ identifier: "ListResultItemActionsItemDisablePerformance", }) as any as S.Schema; export type ListResultItemActionsItemDisableSecurityId = "disable_security"; export const ListResultItemActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemDisableSecurity { /** Turn off */ id?: ListResultItemActionsItemDisableSecurityId | null; } export const ListResultItemActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemDisableSecurityId)), }), ).annotate({ identifier: "ListResultItemActionsItemDisableSecurity", }) as any as S.Schema; export type ListResultItemActionsItemDisableZarazId = "disable_zaraz"; export const ListResultItemActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: ListResultItemActionsItemDisableZarazId | null; } export const ListResultItemActionsItemDisableZaraz = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemDisableZarazId)), }), ).annotate({ identifier: "ListResultItemActionsItemDisableZaraz", }) as any as S.Schema; export type ListResultItemActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const ListResultItemActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: ListResultItemActionsItemEdgeCacheTTLId | null; value?: number | null; } export const ListResultItemActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemEdgeCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ListResultItemActionsItemEdgeCacheTTL", }) as any as S.Schema; export type ListResultItemActionsItemEmailObfuscationId = "email_obfuscation"; export const ListResultItemActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemEmailObfuscationValue = "on" | "off"; export const ListResultItemActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: ListResultItemActionsItemEmailObfuscationId | null; /** The status of Email Obfuscation. */ value?: ListResultItemActionsItemEmailObfuscationValue | null; } export const ListResultItemActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemEmailObfuscationId)), value: S.optional( S.NullOr(ListResultItemActionsItemEmailObfuscationValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemEmailObfuscation", }) as any as S.Schema; export type ListResultItemActionsItemExplicitCacheControlId = "explicit_cache_control"; export const ListResultItemActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemExplicitCacheControlValue = "on" | "off"; export const ListResultItemActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: ListResultItemActionsItemExplicitCacheControlId | null; /** The status of Origin Cache Control. */ value?: ListResultItemActionsItemExplicitCacheControlValue | null; } export const ListResultItemActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemExplicitCacheControlId)), value: S.optional( S.NullOr(ListResultItemActionsItemExplicitCacheControlValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemExplicitCacheControl", }) as any as S.Schema; export type ListResultItemActionsItemForwardingURLId = "forwarding_url"; export const ListResultItemActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemForwardingURLValueStatusCode = 301 | 302; export const ListResultItemActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface ListResultItemActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: ListResultItemActionsItemForwardingURLValueStatusCode | null; /** The URL to redirect the request to. */ url?: string | null; } export const ListResultItemActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( S.NullOr(ListResultItemActionsItemForwardingURLValueStatusCode).pipe( T.Body("status_code"), ), ), url: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ListResultItemActionsItemForwardingURLValue", }) as any as S.Schema; export interface ListResultItemActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: ListResultItemActionsItemForwardingURLId | null; value?: ListResultItemActionsItemForwardingURLValue | null; } export const ListResultItemActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemForwardingURLId)), value: S.optional(S.NullOr(ListResultItemActionsItemForwardingURLValue)), }), ).annotate({ identifier: "ListResultItemActionsItemForwardingURL", }) as any as S.Schema; export type ListResultItemActionsItemHostHeaderOverrideId = "host_header_override"; export const ListResultItemActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: ListResultItemActionsItemHostHeaderOverrideId | null; /** The hostname to use in the `Host` header */ value?: string | null; } export const ListResultItemActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemHostHeaderOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ListResultItemActionsItemHostHeaderOverride", }) as any as S.Schema; export type ListResultItemActionsItemIPGeolocationId = "ip_geolocation"; export const ListResultItemActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemIPGeolocationValue = "on" | "off"; export const ListResultItemActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: ListResultItemActionsItemIPGeolocationId | null; /** The status of adding the IP Geolocation Header. */ value?: ListResultItemActionsItemIPGeolocationValue | null; } export const ListResultItemActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemIPGeolocationId)), value: S.optional(S.NullOr(ListResultItemActionsItemIPGeolocationValue)), }), ).annotate({ identifier: "ListResultItemActionsItemIPGeolocation", }) as any as S.Schema; export type ListResultItemActionsItemMirageId = "mirage"; export const ListResultItemActionsItemMirageId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemMirageValue = "on" | "off"; export const ListResultItemActionsItemMirageValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: ListResultItemActionsItemMirageId | null; /** The status of Mirage. */ value?: ListResultItemActionsItemMirageValue | null; } export const ListResultItemActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemMirageId)), value: S.optional(S.NullOr(ListResultItemActionsItemMirageValue)), }), ).annotate({ identifier: "ListResultItemActionsItemMirage", }) as any as S.Schema; export type ListResultItemActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const ListResultItemActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemOpportunisticEncryptionValue = | "on" | "off"; export const ListResultItemActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: ListResultItemActionsItemOpportunisticEncryptionId | null; /** The status of Opportunistic Encryption. */ value?: ListResultItemActionsItemOpportunisticEncryptionValue | null; } export const ListResultItemActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(ListResultItemActionsItemOpportunisticEncryptionId), ), value: S.optional( S.NullOr(ListResultItemActionsItemOpportunisticEncryptionValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemOpportunisticEncryption", }) as any as S.Schema; export type ListResultItemActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const ListResultItemActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemOriginErrorPagePassThruValue = | "on" | "off"; export const ListResultItemActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: ListResultItemActionsItemOriginErrorPagePassThruId | null; /** The status of Origin Error Page Passthru. */ value?: ListResultItemActionsItemOriginErrorPagePassThruValue | null; } export const ListResultItemActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(ListResultItemActionsItemOriginErrorPagePassThruId), ), value: S.optional( S.NullOr(ListResultItemActionsItemOriginErrorPagePassThruValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type ListResultItemActionsItemPolishId = "polish"; export const ListResultItemActionsItemPolishId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemPolishValue = "off" | "lossless" | "lossy"; export const ListResultItemActionsItemPolishValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: ListResultItemActionsItemPolishId | null; /** The level of Polish you want applied to your origin. */ value?: ListResultItemActionsItemPolishValue | null; } export const ListResultItemActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemPolishId)), value: S.optional(S.NullOr(ListResultItemActionsItemPolishValue)), }), ).annotate({ identifier: "ListResultItemActionsItemPolish", }) as any as S.Schema; export type ListResultItemActionsItemResolveOverrideId = "resolve_override"; export const ListResultItemActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: ListResultItemActionsItemResolveOverrideId | null; /** The origin address you want to override with. */ value?: string | null; } export const ListResultItemActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemResolveOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ListResultItemActionsItemResolveOverride", }) as any as S.Schema; export type ListResultItemActionsItemRespectStrongEtagId = "respect_strong_etag"; export const ListResultItemActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemRespectStrongEtagValue = "on" | "off"; export const ListResultItemActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: ListResultItemActionsItemRespectStrongEtagId | null; /** The status of Respect Strong ETags */ value?: ListResultItemActionsItemRespectStrongEtagValue | null; } export const ListResultItemActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemRespectStrongEtagId)), value: S.optional( S.NullOr(ListResultItemActionsItemRespectStrongEtagValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemRespectStrongEtag", }) as any as S.Schema; export type ListResultItemActionsItemResponseBufferingId = "response_buffering"; export const ListResultItemActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemResponseBufferingValue = "on" | "off"; export const ListResultItemActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: ListResultItemActionsItemResponseBufferingId | null; /** The status of Response Buffering */ value?: ListResultItemActionsItemResponseBufferingValue | null; } export const ListResultItemActionsItemResponseBuffering = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemResponseBufferingId)), value: S.optional( S.NullOr(ListResultItemActionsItemResponseBufferingValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemResponseBuffering", }) as any as S.Schema; export type ListResultItemActionsItemRocketLoaderId = "rocket_loader"; export const ListResultItemActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemRocketLoaderValue = "on" | "off"; export const ListResultItemActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: ListResultItemActionsItemRocketLoaderId | null; /** The status of Rocket Loader */ value?: ListResultItemActionsItemRocketLoaderValue | null; } export const ListResultItemActionsItemRocketLoader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemRocketLoaderId)), value: S.optional(S.NullOr(ListResultItemActionsItemRocketLoaderValue)), }), ).annotate({ identifier: "ListResultItemActionsItemRocketLoader", }) as any as S.Schema; export type ListResultItemActionsItemSecurityLevelId = "security_level"; export const ListResultItemActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const ListResultItemActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: ListResultItemActionsItemSecurityLevelId | null; value?: ListResultItemActionsItemSecurityLevelValue | null; } export const ListResultItemActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemSecurityLevelId)), value: S.optional(S.NullOr(ListResultItemActionsItemSecurityLevelValue)), }), ).annotate({ identifier: "ListResultItemActionsItemSecurityLevel", }) as any as S.Schema; export type ListResultItemActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const ListResultItemActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemSortQueryStringForCacheValue = | "on" | "off"; export const ListResultItemActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: ListResultItemActionsItemSortQueryStringForCacheId | null; /** The status of Query String Sort */ value?: ListResultItemActionsItemSortQueryStringForCacheValue | null; } export const ListResultItemActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(ListResultItemActionsItemSortQueryStringForCacheId), ), value: S.optional( S.NullOr(ListResultItemActionsItemSortQueryStringForCacheValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemSortQueryStringForCache", }) as any as S.Schema; export type ListResultItemActionsItemSSLId = "ssl"; export const ListResultItemActionsItemSSLId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const ListResultItemActionsItemSSLValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: ListResultItemActionsItemSSLId | null; /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: ListResultItemActionsItemSSLValue | null; } export const ListResultItemActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemSSLId)), value: S.optional(S.NullOr(ListResultItemActionsItemSSLValue)), }), ).annotate({ identifier: "ListResultItemActionsItemSSL", }) as any as S.Schema; export type ListResultItemActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const ListResultItemActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemTrueClientIPHeaderValue = "on" | "off"; export const ListResultItemActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: ListResultItemActionsItemTrueClientIPHeaderId | null; /** The status of True Client IP Header. */ value?: ListResultItemActionsItemTrueClientIPHeaderValue | null; } export const ListResultItemActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemTrueClientIPHeaderId)), value: S.optional( S.NullOr(ListResultItemActionsItemTrueClientIPHeaderValue), ), }), ).annotate({ identifier: "ListResultItemActionsItemTrueClientIPHeader", }) as any as S.Schema; export type ListResultItemActionsItemWAFId = "waf"; export const ListResultItemActionsItemWAFId = /*@__PURE__*/ S.String; export type ListResultItemActionsItemWAFValue = "on" | "off"; export const ListResultItemActionsItemWAFValue = /*@__PURE__*/ S.String; export interface ListResultItemActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: ListResultItemActionsItemWAFId | null; /** The status of WAF managed rules (previous version). */ value?: ListResultItemActionsItemWAFValue | null; } export const ListResultItemActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(ListResultItemActionsItemWAFId)), value: S.optional(S.NullOr(ListResultItemActionsItemWAFValue)), }), ).annotate({ identifier: "ListResultItemActionsItemWAF", }) as any as S.Schema; export type ListResultItemActionsItem = | ListResultItemActionsItemAlwaysUseHTTPS | ListResultItemActionsItemAutomaticHTTPSRewrites | ListResultItemActionsItemBrowserCacheTTL | ListResultItemActionsItemBrowserCheck | ListResultItemActionsItemBypassCacheOnCookie | ListResultItemActionsItemCacheByDeviceType | ListResultItemActionsItemCacheDeceptionArmor | ListResultItemActionsItemCacheKeyFields | ListResultItemActionsItemCacheLevel | ListResultItemActionsItemCacheOnCookie | ListResultItemActionsItemCacheTTLByStatus | ListResultItemActionsItemDisableApps | ListResultItemActionsItemDisablePerformance | ListResultItemActionsItemDisableSecurity | ListResultItemActionsItemDisableZaraz | ListResultItemActionsItemEdgeCacheTTL | ListResultItemActionsItemEmailObfuscation | ListResultItemActionsItemExplicitCacheControl | ListResultItemActionsItemForwardingURL | ListResultItemActionsItemHostHeaderOverride | ListResultItemActionsItemIPGeolocation | ListResultItemActionsItemMirage | ListResultItemActionsItemOpportunisticEncryption | ListResultItemActionsItemOriginErrorPagePassThru | ListResultItemActionsItemPolish | ListResultItemActionsItemResolveOverride | ListResultItemActionsItemRespectStrongEtag | ListResultItemActionsItemResponseBuffering | ListResultItemActionsItemRocketLoader | ListResultItemActionsItemSecurityLevel | ListResultItemActionsItemSortQueryStringForCache | ListResultItemActionsItemSSL | ListResultItemActionsItemTrueClientIPHeader | ListResultItemActionsItemWAF; export const ListResultItemActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type ListResultItemActionsList = Array; export const ListResultItemActionsList = /*@__PURE__*/ S.Array( ListResultItemActionsItem, ) as any as S.Schema; export type ListResultItemStatus = "active" | "disabled"; export const ListResultItemStatus = /*@__PURE__*/ S.String; export type ListResultItemTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const ListResultItemTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface ListResultItemTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: ListResultItemTargetsItemConstraintOperator; /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const ListResultItemTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: ListResultItemTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "ListResultItemTargetsItemConstraint", }) as any as S.Schema; export type ListResultItemTargetsItemTarget = "url"; export const ListResultItemTargetsItemTarget = /*@__PURE__*/ S.String; export interface ListResultItemTargetsItem { /** String constraint. */ constraint?: ListResultItemTargetsItemConstraint | null; /** A target based on the URL of the request. */ target?: ListResultItemTargetsItemTarget | null; } export const ListResultItemTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(S.NullOr(ListResultItemTargetsItemConstraint)), target: S.optional(S.NullOr(ListResultItemTargetsItemTarget)), }), ).annotate({ identifier: "ListResultItemTargetsItem", }) as any as S.Schema; export type ListResultItemTargetsList = Array; export const ListResultItemTargetsList = /*@__PURE__*/ S.Array( ListResultItemTargetsItem, ) as any as S.Schema; export interface ListResultItem { /** Identifier. */ id: string; /** The set of actions to perform if the targets of this rule match the */ actions: ListResultItemActionsList; /** The timestamp of when the Page Rule was created. */ createdOn: string; /** The timestamp of when the Page Rule was last modified. */ modifiedOn: string; /** The priority of the rule, used to define which Page Rule is processed */ priority: number; /** The status of the Page Rule. */ status: ListResultItemStatus; /** The rule targets to evaluate on each request. */ targets: ListResultItemTargetsList; } export const ListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, actions: ListResultItemActionsList, createdOn: S.String.pipe(T.Body("created_on")), modifiedOn: S.String.pipe(T.Body("modified_on")), priority: S.Number, status: ListResultItemStatus, targets: ListResultItemTargetsList, }), ).annotate({ identifier: "ListResultItem" }) as any as S.Schema; export type ListResultList = Array; export const ListResultList = /*@__PURE__*/ S.Array( ListResultItem, ) as any as S.Schema; export type ListPageRulesResponse = ListResultList; export const ListPageRulesResponse = /*@__PURE__*/ S.suspend(() => ListResultList.pipe(T.EnvelopePayloadRoot(), T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListPageRulesResponse", }) as any as S.Schema; export type EditRequestActionsItemAlwaysUseHTTPSId = "always_use_https"; export const EditRequestActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: EditRequestActionsItemAlwaysUseHTTPSId | (string & {}); } export const EditRequestActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemAlwaysUseHTTPSId), }), ).annotate({ identifier: "EditRequestActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type EditRequestActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const EditRequestActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type EditRequestActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const EditRequestActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: EditRequestActionsItemAutomaticHTTPSRewritesId | (string & {}); /** The status of Automatic HTTPS Rewrites. */ value?: EditRequestActionsItemAutomaticHTTPSRewritesValue | (string & {}); } export const EditRequestActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemAutomaticHTTPSRewritesId), value: S.optional(EditRequestActionsItemAutomaticHTTPSRewritesValue), }), ).annotate({ identifier: "EditRequestActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type EditRequestActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const EditRequestActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: EditRequestActionsItemBrowserCacheTTLId | (string & {}); /** The number of seconds to cache resources for. */ value?: number; } export const EditRequestActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemBrowserCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "EditRequestActionsItemBrowserCacheTTL", }) as any as S.Schema; export type EditRequestActionsItemBrowserCheckId = "browser_check"; export const EditRequestActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type EditRequestActionsItemBrowserCheckValue = "on" | "off"; export const EditRequestActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: EditRequestActionsItemBrowserCheckId | (string & {}); /** The status of Browser Integrity Check. */ value?: EditRequestActionsItemBrowserCheckValue | (string & {}); } export const EditRequestActionsItemBrowserCheck = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemBrowserCheckId), value: S.optional(EditRequestActionsItemBrowserCheckValue), }), ).annotate({ identifier: "EditRequestActionsItemBrowserCheck", }) as any as S.Schema; export type EditRequestActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const EditRequestActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: EditRequestActionsItemBypassCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const EditRequestActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemBypassCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "EditRequestActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type EditRequestActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const EditRequestActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheByDeviceTypeValue = "on" | "off"; export const EditRequestActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: EditRequestActionsItemCacheByDeviceTypeId | (string & {}); /** The status of Cache By Device Type. */ value?: EditRequestActionsItemCacheByDeviceTypeValue | (string & {}); } export const EditRequestActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemCacheByDeviceTypeId), value: S.optional(EditRequestActionsItemCacheByDeviceTypeValue), }), ).annotate({ identifier: "EditRequestActionsItemCacheByDeviceType", }) as any as S.Schema; export type EditRequestActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const EditRequestActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheDeceptionArmorValue = "on" | "off"; export const EditRequestActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: EditRequestActionsItemCacheDeceptionArmorId | (string & {}); /** The status of Cache Deception Armor. */ value?: EditRequestActionsItemCacheDeceptionArmorValue | (string & {}); } export const EditRequestActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemCacheDeceptionArmorId), value: S.optional(EditRequestActionsItemCacheDeceptionArmorValue), }), ).annotate({ identifier: "EditRequestActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsId = "cache_key_fields"; export const EditRequestActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const EditRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const EditRequestActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface EditRequestActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: EditRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList; /** A list of cookies to include. */ include?: EditRequestActionsItemCacheKeyFieldsValueCookieIncludeList; } export const EditRequestActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( EditRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList.pipe( T.Body("check_presence"), ), ), include: S.optional( EditRequestActionsItemCacheKeyFieldsValueCookieIncludeList, ), }), ).annotate({ identifier: "EditRequestActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const EditRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const EditRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const EditRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface EditRequestActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: EditRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList; /** A list of headers to ignore. */ exclude?: EditRequestActionsItemCacheKeyFieldsValueHeaderExcludeList; /** A list of headers to include. */ include?: EditRequestActionsItemCacheKeyFieldsValueHeaderIncludeList; } export const EditRequestActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( EditRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList.pipe( T.Body("check_presence"), ), ), exclude: S.optional( EditRequestActionsItemCacheKeyFieldsValueHeaderExcludeList, ), include: S.optional( EditRequestActionsItemCacheKeyFieldsValueHeaderIncludeList, ), }), ).annotate({ identifier: "EditRequestActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueHost = CreateRequestActionsItemCacheKeyFieldsValueHost; export const EditRequestActionsItemCacheKeyFieldsValueHost = CreateRequestActionsItemCacheKeyFieldsValueHost; export type EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueQueryStringExclude = | EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | (string & {}) | EditRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueQueryStringInclude = | EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | (string & {}) | EditRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const EditRequestActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface EditRequestActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: EditRequestActionsItemCacheKeyFieldsValueQueryStringExclude; /** Include all query string parameters. */ include?: EditRequestActionsItemCacheKeyFieldsValueQueryStringInclude; } export const EditRequestActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( EditRequestActionsItemCacheKeyFieldsValueQueryStringExclude, ), include: S.optional( EditRequestActionsItemCacheKeyFieldsValueQueryStringInclude, ), }), ).annotate({ identifier: "EditRequestActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type EditRequestActionsItemCacheKeyFieldsValueUser = CreateRequestActionsItemCacheKeyFieldsValueUser; export const EditRequestActionsItemCacheKeyFieldsValueUser = CreateRequestActionsItemCacheKeyFieldsValueUser; export interface EditRequestActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: EditRequestActionsItemCacheKeyFieldsValueCookie; /** Controls which headers go into the Cache Key. Exactly one of */ header?: EditRequestActionsItemCacheKeyFieldsValueHeader; /** Determines which host header to include in the Cache Key. */ host?: CreateRequestActionsItemCacheKeyFieldsValueHost; /** Controls which URL query string parameters go into the Cache */ queryString?: EditRequestActionsItemCacheKeyFieldsValueQueryString; /** Feature fields to add features about the end-user (client) into */ user?: CreateRequestActionsItemCacheKeyFieldsValueUser; } export const EditRequestActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional(EditRequestActionsItemCacheKeyFieldsValueCookie), header: S.optional(EditRequestActionsItemCacheKeyFieldsValueHeader), host: S.optional(CreateRequestActionsItemCacheKeyFieldsValueHost), queryString: S.optional( EditRequestActionsItemCacheKeyFieldsValueQueryString.pipe( T.Body("query_string"), ), ), user: S.optional(CreateRequestActionsItemCacheKeyFieldsValueUser), }), ).annotate({ identifier: "EditRequestActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface EditRequestActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: EditRequestActionsItemCacheKeyFieldsId | (string & {}); value?: EditRequestActionsItemCacheKeyFieldsValue; } export const EditRequestActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemCacheKeyFieldsId), value: S.optional(EditRequestActionsItemCacheKeyFieldsValue), }), ).annotate({ identifier: "EditRequestActionsItemCacheKeyFields", }) as any as S.Schema; export type EditRequestActionsItemCacheLevelId = "cache_level"; export const EditRequestActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const EditRequestActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: EditRequestActionsItemCacheLevelId | (string & {}); /** * `bypass`: Cloudflare does not cache. */ value?: EditRequestActionsItemCacheLevelValue | (string & {}); } export const EditRequestActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemCacheLevelId), value: S.optional(EditRequestActionsItemCacheLevelValue), }), ).annotate({ identifier: "EditRequestActionsItemCacheLevel", }) as any as S.Schema; export type EditRequestActionsItemCacheOnCookieId = "cache_on_cookie"; export const EditRequestActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: EditRequestActionsItemCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const EditRequestActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "EditRequestActionsItemCacheOnCookie", }) as any as S.Schema; export type EditRequestActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const EditRequestActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const EditRequestActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type EditRequestActionsItemCacheTTLByStatusValue = | number | EditRequestActionsItemCacheTTLByStatusValueCase0 | (string & {}); export const EditRequestActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface EditRequestActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: EditRequestActionsItemCacheTTLByStatusId | (string & {}); /** A JSON object containing status codes and their corresponding TTLs. */ value?: EditRequestActionsItemCacheTTLByStatusValue; } export const EditRequestActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemCacheTTLByStatusId), value: S.optional(EditRequestActionsItemCacheTTLByStatusValue), }), ).annotate({ identifier: "EditRequestActionsItemCacheTTLByStatus", }) as any as S.Schema; export type EditRequestActionsItemDisableAppsId = "disable_apps"; export const EditRequestActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: EditRequestActionsItemDisableAppsId | (string & {}); } export const EditRequestActionsItemDisableApps = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemDisableAppsId), }), ).annotate({ identifier: "EditRequestActionsItemDisableApps", }) as any as S.Schema; export type EditRequestActionsItemDisablePerformanceId = "disable_performance"; export const EditRequestActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemDisablePerformance { /** Turn off */ id?: EditRequestActionsItemDisablePerformanceId | (string & {}); } export const EditRequestActionsItemDisablePerformance = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemDisablePerformanceId), }), ).annotate({ identifier: "EditRequestActionsItemDisablePerformance", }) as any as S.Schema; export type EditRequestActionsItemDisableSecurityId = "disable_security"; export const EditRequestActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemDisableSecurity { /** Turn off */ id?: EditRequestActionsItemDisableSecurityId | (string & {}); } export const EditRequestActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemDisableSecurityId), }), ).annotate({ identifier: "EditRequestActionsItemDisableSecurity", }) as any as S.Schema; export type EditRequestActionsItemDisableZarazId = "disable_zaraz"; export const EditRequestActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: EditRequestActionsItemDisableZarazId | (string & {}); } export const EditRequestActionsItemDisableZaraz = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemDisableZarazId), }), ).annotate({ identifier: "EditRequestActionsItemDisableZaraz", }) as any as S.Schema; export type EditRequestActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const EditRequestActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: EditRequestActionsItemEdgeCacheTTLId | (string & {}); value?: number; } export const EditRequestActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemEdgeCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "EditRequestActionsItemEdgeCacheTTL", }) as any as S.Schema; export type EditRequestActionsItemEmailObfuscationId = "email_obfuscation"; export const EditRequestActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type EditRequestActionsItemEmailObfuscationValue = "on" | "off"; export const EditRequestActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: EditRequestActionsItemEmailObfuscationId | (string & {}); /** The status of Email Obfuscation. */ value?: EditRequestActionsItemEmailObfuscationValue | (string & {}); } export const EditRequestActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemEmailObfuscationId), value: S.optional(EditRequestActionsItemEmailObfuscationValue), }), ).annotate({ identifier: "EditRequestActionsItemEmailObfuscation", }) as any as S.Schema; export type EditRequestActionsItemExplicitCacheControlId = "explicit_cache_control"; export const EditRequestActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type EditRequestActionsItemExplicitCacheControlValue = "on" | "off"; export const EditRequestActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: EditRequestActionsItemExplicitCacheControlId | (string & {}); /** The status of Origin Cache Control. */ value?: EditRequestActionsItemExplicitCacheControlValue | (string & {}); } export const EditRequestActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemExplicitCacheControlId), value: S.optional(EditRequestActionsItemExplicitCacheControlValue), }), ).annotate({ identifier: "EditRequestActionsItemExplicitCacheControl", }) as any as S.Schema; export type EditRequestActionsItemForwardingURLId = "forwarding_url"; export const EditRequestActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type EditRequestActionsItemForwardingURLValueStatusCode = 301 | 302; export const EditRequestActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface EditRequestActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: | EditRequestActionsItemForwardingURLValueStatusCode | (number & {}); /** The URL to redirect the request to. */ url?: string; } export const EditRequestActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend( () => S.Struct({ statusCode: S.optional( EditRequestActionsItemForwardingURLValueStatusCode.pipe( T.Body("status_code"), ), ), url: S.optional(S.String), }), ).annotate({ identifier: "EditRequestActionsItemForwardingURLValue", }) as any as S.Schema; export interface EditRequestActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: EditRequestActionsItemForwardingURLId | (string & {}); value?: EditRequestActionsItemForwardingURLValue; } export const EditRequestActionsItemForwardingURL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemForwardingURLId), value: S.optional(EditRequestActionsItemForwardingURLValue), }), ).annotate({ identifier: "EditRequestActionsItemForwardingURL", }) as any as S.Schema; export type EditRequestActionsItemHostHeaderOverrideId = "host_header_override"; export const EditRequestActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: EditRequestActionsItemHostHeaderOverrideId | (string & {}); /** The hostname to use in the `Host` header */ value?: string; } export const EditRequestActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemHostHeaderOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "EditRequestActionsItemHostHeaderOverride", }) as any as S.Schema; export type EditRequestActionsItemIPGeolocationId = "ip_geolocation"; export const EditRequestActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type EditRequestActionsItemIPGeolocationValue = "on" | "off"; export const EditRequestActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: EditRequestActionsItemIPGeolocationId | (string & {}); /** The status of adding the IP Geolocation Header. */ value?: EditRequestActionsItemIPGeolocationValue | (string & {}); } export const EditRequestActionsItemIPGeolocation = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemIPGeolocationId), value: S.optional(EditRequestActionsItemIPGeolocationValue), }), ).annotate({ identifier: "EditRequestActionsItemIPGeolocation", }) as any as S.Schema; export type EditRequestActionsItemMirageId = "mirage"; export const EditRequestActionsItemMirageId = /*@__PURE__*/ S.String; export type EditRequestActionsItemMirageValue = "on" | "off"; export const EditRequestActionsItemMirageValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: EditRequestActionsItemMirageId | (string & {}); /** The status of Mirage. */ value?: EditRequestActionsItemMirageValue | (string & {}); } export const EditRequestActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemMirageId), value: S.optional(EditRequestActionsItemMirageValue), }), ).annotate({ identifier: "EditRequestActionsItemMirage", }) as any as S.Schema; export type EditRequestActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const EditRequestActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type EditRequestActionsItemOpportunisticEncryptionValue = "on" | "off"; export const EditRequestActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: EditRequestActionsItemOpportunisticEncryptionId | (string & {}); /** The status of Opportunistic Encryption. */ value?: EditRequestActionsItemOpportunisticEncryptionValue | (string & {}); } export const EditRequestActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemOpportunisticEncryptionId), value: S.optional(EditRequestActionsItemOpportunisticEncryptionValue), }), ).annotate({ identifier: "EditRequestActionsItemOpportunisticEncryption", }) as any as S.Schema; export type EditRequestActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const EditRequestActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type EditRequestActionsItemOriginErrorPagePassThruValue = "on" | "off"; export const EditRequestActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: EditRequestActionsItemOriginErrorPagePassThruId | (string & {}); /** The status of Origin Error Page Passthru. */ value?: EditRequestActionsItemOriginErrorPagePassThruValue | (string & {}); } export const EditRequestActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemOriginErrorPagePassThruId), value: S.optional(EditRequestActionsItemOriginErrorPagePassThruValue), }), ).annotate({ identifier: "EditRequestActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type EditRequestActionsItemPolishId = "polish"; export const EditRequestActionsItemPolishId = /*@__PURE__*/ S.String; export type EditRequestActionsItemPolishValue = "off" | "lossless" | "lossy"; export const EditRequestActionsItemPolishValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: EditRequestActionsItemPolishId | (string & {}); /** The level of Polish you want applied to your origin. */ value?: EditRequestActionsItemPolishValue | (string & {}); } export const EditRequestActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemPolishId), value: S.optional(EditRequestActionsItemPolishValue), }), ).annotate({ identifier: "EditRequestActionsItemPolish", }) as any as S.Schema; export type EditRequestActionsItemResolveOverrideId = "resolve_override"; export const EditRequestActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface EditRequestActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: EditRequestActionsItemResolveOverrideId | (string & {}); /** The origin address you want to override with. */ value?: string; } export const EditRequestActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemResolveOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "EditRequestActionsItemResolveOverride", }) as any as S.Schema; export type EditRequestActionsItemRespectStrongEtagId = "respect_strong_etag"; export const EditRequestActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type EditRequestActionsItemRespectStrongEtagValue = "on" | "off"; export const EditRequestActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: EditRequestActionsItemRespectStrongEtagId | (string & {}); /** The status of Respect Strong ETags */ value?: EditRequestActionsItemRespectStrongEtagValue | (string & {}); } export const EditRequestActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemRespectStrongEtagId), value: S.optional(EditRequestActionsItemRespectStrongEtagValue), }), ).annotate({ identifier: "EditRequestActionsItemRespectStrongEtag", }) as any as S.Schema; export type EditRequestActionsItemResponseBufferingId = "response_buffering"; export const EditRequestActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type EditRequestActionsItemResponseBufferingValue = "on" | "off"; export const EditRequestActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: EditRequestActionsItemResponseBufferingId | (string & {}); /** The status of Response Buffering */ value?: EditRequestActionsItemResponseBufferingValue | (string & {}); } export const EditRequestActionsItemResponseBuffering = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemResponseBufferingId), value: S.optional(EditRequestActionsItemResponseBufferingValue), }), ).annotate({ identifier: "EditRequestActionsItemResponseBuffering", }) as any as S.Schema; export type EditRequestActionsItemRocketLoaderId = "rocket_loader"; export const EditRequestActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type EditRequestActionsItemRocketLoaderValue = "on" | "off"; export const EditRequestActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: EditRequestActionsItemRocketLoaderId | (string & {}); /** The status of Rocket Loader */ value?: EditRequestActionsItemRocketLoaderValue | (string & {}); } export const EditRequestActionsItemRocketLoader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemRocketLoaderId), value: S.optional(EditRequestActionsItemRocketLoaderValue), }), ).annotate({ identifier: "EditRequestActionsItemRocketLoader", }) as any as S.Schema; export type EditRequestActionsItemSecurityLevelId = "security_level"; export const EditRequestActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type EditRequestActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const EditRequestActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: EditRequestActionsItemSecurityLevelId | (string & {}); value?: EditRequestActionsItemSecurityLevelValue | (string & {}); } export const EditRequestActionsItemSecurityLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemSecurityLevelId), value: S.optional(EditRequestActionsItemSecurityLevelValue), }), ).annotate({ identifier: "EditRequestActionsItemSecurityLevel", }) as any as S.Schema; export type EditRequestActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const EditRequestActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type EditRequestActionsItemSortQueryStringForCacheValue = "on" | "off"; export const EditRequestActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: EditRequestActionsItemSortQueryStringForCacheId | (string & {}); /** The status of Query String Sort */ value?: EditRequestActionsItemSortQueryStringForCacheValue | (string & {}); } export const EditRequestActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemSortQueryStringForCacheId), value: S.optional(EditRequestActionsItemSortQueryStringForCacheValue), }), ).annotate({ identifier: "EditRequestActionsItemSortQueryStringForCache", }) as any as S.Schema; export type EditRequestActionsItemSSLId = "ssl"; export const EditRequestActionsItemSSLId = /*@__PURE__*/ S.String; export type EditRequestActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const EditRequestActionsItemSSLValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: EditRequestActionsItemSSLId | (string & {}); /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: EditRequestActionsItemSSLValue | (string & {}); } export const EditRequestActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemSSLId), value: S.optional(EditRequestActionsItemSSLValue), }), ).annotate({ identifier: "EditRequestActionsItemSSL", }) as any as S.Schema; export type EditRequestActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const EditRequestActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type EditRequestActionsItemTrueClientIPHeaderValue = "on" | "off"; export const EditRequestActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: EditRequestActionsItemTrueClientIPHeaderId | (string & {}); /** The status of True Client IP Header. */ value?: EditRequestActionsItemTrueClientIPHeaderValue | (string & {}); } export const EditRequestActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(EditRequestActionsItemTrueClientIPHeaderId), value: S.optional(EditRequestActionsItemTrueClientIPHeaderValue), }), ).annotate({ identifier: "EditRequestActionsItemTrueClientIPHeader", }) as any as S.Schema; export type EditRequestActionsItemWAFId = "waf"; export const EditRequestActionsItemWAFId = /*@__PURE__*/ S.String; export type EditRequestActionsItemWAFValue = "on" | "off"; export const EditRequestActionsItemWAFValue = /*@__PURE__*/ S.String; export interface EditRequestActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: EditRequestActionsItemWAFId | (string & {}); /** The status of WAF managed rules (previous version). */ value?: EditRequestActionsItemWAFValue | (string & {}); } export const EditRequestActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(EditRequestActionsItemWAFId), value: S.optional(EditRequestActionsItemWAFValue), }), ).annotate({ identifier: "EditRequestActionsItemWAF", }) as any as S.Schema; export type EditRequestActionsItem = | EditRequestActionsItemAlwaysUseHTTPS | EditRequestActionsItemAutomaticHTTPSRewrites | EditRequestActionsItemBrowserCacheTTL | EditRequestActionsItemBrowserCheck | EditRequestActionsItemBypassCacheOnCookie | EditRequestActionsItemCacheByDeviceType | EditRequestActionsItemCacheDeceptionArmor | EditRequestActionsItemCacheKeyFields | EditRequestActionsItemCacheLevel | EditRequestActionsItemCacheOnCookie | EditRequestActionsItemCacheTTLByStatus | EditRequestActionsItemDisableApps | EditRequestActionsItemDisablePerformance | EditRequestActionsItemDisableSecurity | EditRequestActionsItemDisableZaraz | EditRequestActionsItemEdgeCacheTTL | EditRequestActionsItemEmailObfuscation | EditRequestActionsItemExplicitCacheControl | EditRequestActionsItemForwardingURL | EditRequestActionsItemHostHeaderOverride | EditRequestActionsItemIPGeolocation | EditRequestActionsItemMirage | EditRequestActionsItemOpportunisticEncryption | EditRequestActionsItemOriginErrorPagePassThru | EditRequestActionsItemPolish | EditRequestActionsItemResolveOverride | EditRequestActionsItemRespectStrongEtag | EditRequestActionsItemResponseBuffering | EditRequestActionsItemRocketLoader | EditRequestActionsItemSecurityLevel | EditRequestActionsItemSortQueryStringForCache | EditRequestActionsItemSSL | EditRequestActionsItemTrueClientIPHeader | EditRequestActionsItemWAF; export const EditRequestActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type EditRequestActionsList = Array; export const EditRequestActionsList = /*@__PURE__*/ S.Array( EditRequestActionsItem, ) as any as S.Schema; export type EditRequestStatus = "active" | "disabled"; export const EditRequestStatus = /*@__PURE__*/ S.String; export type EditRequestTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const EditRequestTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface EditRequestTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: EditRequestTargetsItemConstraintOperator | (string & {}); /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const EditRequestTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: EditRequestTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "EditRequestTargetsItemConstraint", }) as any as S.Schema; export type EditRequestTargetsItemTarget = "url"; export const EditRequestTargetsItemTarget = /*@__PURE__*/ S.String; export interface EditRequestTargetsItem { /** String constraint. */ constraint?: EditRequestTargetsItemConstraint; /** A target based on the URL of the request. */ target?: EditRequestTargetsItemTarget | (string & {}); } export const EditRequestTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(EditRequestTargetsItemConstraint), target: S.optional(EditRequestTargetsItemTarget), }), ).annotate({ identifier: "EditRequestTargetsItem", }) as any as S.Schema; export type EditRequestTargetsList = Array; export const EditRequestTargetsList = /*@__PURE__*/ S.Array( EditRequestTargetsItem, ) as any as S.Schema; export interface PatchPageRuleRequest { /** Identifier. */ zoneId: string; /** Identifier. */ pageruleId: string; /** The set of actions to perform if the targets of this rule match the */ actions?: EditRequestActionsList; /** The priority of the rule, used to define which Page Rule is processed */ priority?: number; /** The status of the Page Rule. */ status?: EditRequestStatus | (string & {}); /** The rule targets to evaluate on each request. */ targets?: EditRequestTargetsList; } export const PatchPageRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), pageruleId: S.String.pipe(T.Label("pagerule_id")), actions: S.optional(EditRequestActionsList), priority: S.optional(S.Number), status: S.optional(EditRequestStatus), targets: S.optional(EditRequestTargetsList), }) .pipe( T.Http({ method: "PATCH", uri: "/zones/{zone_id}/pagerules/{pagerule_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchPageRuleRequest", }) as any as S.Schema; export type EditResponseActionsItemAlwaysUseHTTPSId = "always_use_https"; export const EditResponseActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: EditResponseActionsItemAlwaysUseHTTPSId | null; } export const EditResponseActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemAlwaysUseHTTPSId)), }), ).annotate({ identifier: "EditResponseActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type EditResponseActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const EditResponseActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type EditResponseActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const EditResponseActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: EditResponseActionsItemAutomaticHTTPSRewritesId | null; /** The status of Automatic HTTPS Rewrites. */ value?: EditResponseActionsItemAutomaticHTTPSRewritesValue | null; } export const EditResponseActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemAutomaticHTTPSRewritesId)), value: S.optional( S.NullOr(EditResponseActionsItemAutomaticHTTPSRewritesValue), ), }), ).annotate({ identifier: "EditResponseActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type EditResponseActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const EditResponseActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: EditResponseActionsItemBrowserCacheTTLId | null; /** The number of seconds to cache resources for. */ value?: number | null; } export const EditResponseActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemBrowserCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "EditResponseActionsItemBrowserCacheTTL", }) as any as S.Schema; export type EditResponseActionsItemBrowserCheckId = "browser_check"; export const EditResponseActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type EditResponseActionsItemBrowserCheckValue = "on" | "off"; export const EditResponseActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: EditResponseActionsItemBrowserCheckId | null; /** The status of Browser Integrity Check. */ value?: EditResponseActionsItemBrowserCheckValue | null; } export const EditResponseActionsItemBrowserCheck = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemBrowserCheckId)), value: S.optional(S.NullOr(EditResponseActionsItemBrowserCheckValue)), }), ).annotate({ identifier: "EditResponseActionsItemBrowserCheck", }) as any as S.Schema; export type EditResponseActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const EditResponseActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: EditResponseActionsItemBypassCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const EditResponseActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemBypassCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "EditResponseActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type EditResponseActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const EditResponseActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheByDeviceTypeValue = "on" | "off"; export const EditResponseActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: EditResponseActionsItemCacheByDeviceTypeId | null; /** The status of Cache By Device Type. */ value?: EditResponseActionsItemCacheByDeviceTypeValue | null; } export const EditResponseActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheByDeviceTypeId)), value: S.optional( S.NullOr(EditResponseActionsItemCacheByDeviceTypeValue), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheByDeviceType", }) as any as S.Schema; export type EditResponseActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const EditResponseActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheDeceptionArmorValue = "on" | "off"; export const EditResponseActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: EditResponseActionsItemCacheDeceptionArmorId | null; /** The status of Cache Deception Armor. */ value?: EditResponseActionsItemCacheDeceptionArmorValue | null; } export const EditResponseActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheDeceptionArmorId)), value: S.optional( S.NullOr(EditResponseActionsItemCacheDeceptionArmorValue), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsId = "cache_key_fields"; export const EditResponseActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const EditResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const EditResponseActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface EditResponseActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: EditResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList | null; /** A list of cookies to include. */ include?: EditResponseActionsItemCacheKeyFieldsValueCookieIncludeList | null; } export const EditResponseActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( EditResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList, ).pipe(T.Body("check_presence")), ), include: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueCookieIncludeList), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const EditResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const EditResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const EditResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface EditResponseActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: EditResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList | null; /** A list of headers to ignore. */ exclude?: EditResponseActionsItemCacheKeyFieldsValueHeaderExcludeList | null; /** A list of headers to include. */ include?: EditResponseActionsItemCacheKeyFieldsValueHeaderIncludeList | null; } export const EditResponseActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( EditResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList, ).pipe(T.Body("check_presence")), ), exclude: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueHeaderExcludeList), ), include: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueHeaderIncludeList), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export const EditResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export type EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueQueryStringExclude = | EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | EditResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueQueryStringInclude = | EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | EditResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const EditResponseActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface EditResponseActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: EditResponseActionsItemCacheKeyFieldsValueQueryStringExclude | null; /** Include all query string parameters. */ include?: EditResponseActionsItemCacheKeyFieldsValueQueryStringInclude | null; } export const EditResponseActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueQueryStringExclude), ), include: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueQueryStringInclude), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type EditResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export const EditResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export interface EditResponseActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: EditResponseActionsItemCacheKeyFieldsValueCookie | null; /** Controls which headers go into the Cache Key. Exactly one of */ header?: EditResponseActionsItemCacheKeyFieldsValueHeader | null; /** Determines which host header to include in the Cache Key. */ host?: CreateResponseActionsItemCacheKeyFieldsValueHost | null; /** Controls which URL query string parameters go into the Cache */ queryString?: EditResponseActionsItemCacheKeyFieldsValueQueryString | null; /** Feature fields to add features about the end-user (client) into */ user?: CreateResponseActionsItemCacheKeyFieldsValueUser | null; } export const EditResponseActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueCookie), ), header: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueHeader), ), host: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHost), ), queryString: S.optional( S.NullOr(EditResponseActionsItemCacheKeyFieldsValueQueryString).pipe( T.Body("query_string"), ), ), user: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueUser), ), }), ).annotate({ identifier: "EditResponseActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface EditResponseActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: EditResponseActionsItemCacheKeyFieldsId | null; value?: EditResponseActionsItemCacheKeyFieldsValue | null; } export const EditResponseActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheKeyFieldsId)), value: S.optional(S.NullOr(EditResponseActionsItemCacheKeyFieldsValue)), }), ).annotate({ identifier: "EditResponseActionsItemCacheKeyFields", }) as any as S.Schema; export type EditResponseActionsItemCacheLevelId = "cache_level"; export const EditResponseActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const EditResponseActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: EditResponseActionsItemCacheLevelId | null; /** * `bypass`: Cloudflare does not cache. */ value?: EditResponseActionsItemCacheLevelValue | null; } export const EditResponseActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheLevelId)), value: S.optional(S.NullOr(EditResponseActionsItemCacheLevelValue)), }), ).annotate({ identifier: "EditResponseActionsItemCacheLevel", }) as any as S.Schema; export type EditResponseActionsItemCacheOnCookieId = "cache_on_cookie"; export const EditResponseActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: EditResponseActionsItemCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const EditResponseActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "EditResponseActionsItemCacheOnCookie", }) as any as S.Schema; export type EditResponseActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const EditResponseActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const EditResponseActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type EditResponseActionsItemCacheTTLByStatusValue = | number | EditResponseActionsItemCacheTTLByStatusValueCase0; export const EditResponseActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface EditResponseActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: EditResponseActionsItemCacheTTLByStatusId | null; /** A JSON object containing status codes and their corresponding TTLs. */ value?: EditResponseActionsItemCacheTTLByStatusValue | null; } export const EditResponseActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemCacheTTLByStatusId)), value: S.optional(S.NullOr(EditResponseActionsItemCacheTTLByStatusValue)), }), ).annotate({ identifier: "EditResponseActionsItemCacheTTLByStatus", }) as any as S.Schema; export type EditResponseActionsItemDisableAppsId = "disable_apps"; export const EditResponseActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: EditResponseActionsItemDisableAppsId | null; } export const EditResponseActionsItemDisableApps = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemDisableAppsId)), }), ).annotate({ identifier: "EditResponseActionsItemDisableApps", }) as any as S.Schema; export type EditResponseActionsItemDisablePerformanceId = "disable_performance"; export const EditResponseActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemDisablePerformance { /** Turn off */ id?: EditResponseActionsItemDisablePerformanceId | null; } export const EditResponseActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemDisablePerformanceId)), }), ).annotate({ identifier: "EditResponseActionsItemDisablePerformance", }) as any as S.Schema; export type EditResponseActionsItemDisableSecurityId = "disable_security"; export const EditResponseActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemDisableSecurity { /** Turn off */ id?: EditResponseActionsItemDisableSecurityId | null; } export const EditResponseActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemDisableSecurityId)), }), ).annotate({ identifier: "EditResponseActionsItemDisableSecurity", }) as any as S.Schema; export type EditResponseActionsItemDisableZarazId = "disable_zaraz"; export const EditResponseActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: EditResponseActionsItemDisableZarazId | null; } export const EditResponseActionsItemDisableZaraz = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemDisableZarazId)), }), ).annotate({ identifier: "EditResponseActionsItemDisableZaraz", }) as any as S.Schema; export type EditResponseActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const EditResponseActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: EditResponseActionsItemEdgeCacheTTLId | null; value?: number | null; } export const EditResponseActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemEdgeCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "EditResponseActionsItemEdgeCacheTTL", }) as any as S.Schema; export type EditResponseActionsItemEmailObfuscationId = "email_obfuscation"; export const EditResponseActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type EditResponseActionsItemEmailObfuscationValue = "on" | "off"; export const EditResponseActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: EditResponseActionsItemEmailObfuscationId | null; /** The status of Email Obfuscation. */ value?: EditResponseActionsItemEmailObfuscationValue | null; } export const EditResponseActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemEmailObfuscationId)), value: S.optional(S.NullOr(EditResponseActionsItemEmailObfuscationValue)), }), ).annotate({ identifier: "EditResponseActionsItemEmailObfuscation", }) as any as S.Schema; export type EditResponseActionsItemExplicitCacheControlId = "explicit_cache_control"; export const EditResponseActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type EditResponseActionsItemExplicitCacheControlValue = "on" | "off"; export const EditResponseActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: EditResponseActionsItemExplicitCacheControlId | null; /** The status of Origin Cache Control. */ value?: EditResponseActionsItemExplicitCacheControlValue | null; } export const EditResponseActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemExplicitCacheControlId)), value: S.optional( S.NullOr(EditResponseActionsItemExplicitCacheControlValue), ), }), ).annotate({ identifier: "EditResponseActionsItemExplicitCacheControl", }) as any as S.Schema; export type EditResponseActionsItemForwardingURLId = "forwarding_url"; export const EditResponseActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type EditResponseActionsItemForwardingURLValueStatusCode = 301 | 302; export const EditResponseActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface EditResponseActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: EditResponseActionsItemForwardingURLValueStatusCode | null; /** The URL to redirect the request to. */ url?: string | null; } export const EditResponseActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( S.NullOr(EditResponseActionsItemForwardingURLValueStatusCode).pipe( T.Body("status_code"), ), ), url: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "EditResponseActionsItemForwardingURLValue", }) as any as S.Schema; export interface EditResponseActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: EditResponseActionsItemForwardingURLId | null; value?: EditResponseActionsItemForwardingURLValue | null; } export const EditResponseActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemForwardingURLId)), value: S.optional(S.NullOr(EditResponseActionsItemForwardingURLValue)), }), ).annotate({ identifier: "EditResponseActionsItemForwardingURL", }) as any as S.Schema; export type EditResponseActionsItemHostHeaderOverrideId = "host_header_override"; export const EditResponseActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: EditResponseActionsItemHostHeaderOverrideId | null; /** The hostname to use in the `Host` header */ value?: string | null; } export const EditResponseActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemHostHeaderOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "EditResponseActionsItemHostHeaderOverride", }) as any as S.Schema; export type EditResponseActionsItemIPGeolocationId = "ip_geolocation"; export const EditResponseActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type EditResponseActionsItemIPGeolocationValue = "on" | "off"; export const EditResponseActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: EditResponseActionsItemIPGeolocationId | null; /** The status of adding the IP Geolocation Header. */ value?: EditResponseActionsItemIPGeolocationValue | null; } export const EditResponseActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemIPGeolocationId)), value: S.optional(S.NullOr(EditResponseActionsItemIPGeolocationValue)), }), ).annotate({ identifier: "EditResponseActionsItemIPGeolocation", }) as any as S.Schema; export type EditResponseActionsItemMirageId = "mirage"; export const EditResponseActionsItemMirageId = /*@__PURE__*/ S.String; export type EditResponseActionsItemMirageValue = "on" | "off"; export const EditResponseActionsItemMirageValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: EditResponseActionsItemMirageId | null; /** The status of Mirage. */ value?: EditResponseActionsItemMirageValue | null; } export const EditResponseActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemMirageId)), value: S.optional(S.NullOr(EditResponseActionsItemMirageValue)), }), ).annotate({ identifier: "EditResponseActionsItemMirage", }) as any as S.Schema; export type EditResponseActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const EditResponseActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type EditResponseActionsItemOpportunisticEncryptionValue = "on" | "off"; export const EditResponseActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: EditResponseActionsItemOpportunisticEncryptionId | null; /** The status of Opportunistic Encryption. */ value?: EditResponseActionsItemOpportunisticEncryptionValue | null; } export const EditResponseActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(EditResponseActionsItemOpportunisticEncryptionId), ), value: S.optional( S.NullOr(EditResponseActionsItemOpportunisticEncryptionValue), ), }), ).annotate({ identifier: "EditResponseActionsItemOpportunisticEncryption", }) as any as S.Schema; export type EditResponseActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const EditResponseActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type EditResponseActionsItemOriginErrorPagePassThruValue = "on" | "off"; export const EditResponseActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: EditResponseActionsItemOriginErrorPagePassThruId | null; /** The status of Origin Error Page Passthru. */ value?: EditResponseActionsItemOriginErrorPagePassThruValue | null; } export const EditResponseActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(EditResponseActionsItemOriginErrorPagePassThruId), ), value: S.optional( S.NullOr(EditResponseActionsItemOriginErrorPagePassThruValue), ), }), ).annotate({ identifier: "EditResponseActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type EditResponseActionsItemPolishId = "polish"; export const EditResponseActionsItemPolishId = /*@__PURE__*/ S.String; export type EditResponseActionsItemPolishValue = "off" | "lossless" | "lossy"; export const EditResponseActionsItemPolishValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: EditResponseActionsItemPolishId | null; /** The level of Polish you want applied to your origin. */ value?: EditResponseActionsItemPolishValue | null; } export const EditResponseActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemPolishId)), value: S.optional(S.NullOr(EditResponseActionsItemPolishValue)), }), ).annotate({ identifier: "EditResponseActionsItemPolish", }) as any as S.Schema; export type EditResponseActionsItemResolveOverrideId = "resolve_override"; export const EditResponseActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface EditResponseActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: EditResponseActionsItemResolveOverrideId | null; /** The origin address you want to override with. */ value?: string | null; } export const EditResponseActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemResolveOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "EditResponseActionsItemResolveOverride", }) as any as S.Schema; export type EditResponseActionsItemRespectStrongEtagId = "respect_strong_etag"; export const EditResponseActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type EditResponseActionsItemRespectStrongEtagValue = "on" | "off"; export const EditResponseActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: EditResponseActionsItemRespectStrongEtagId | null; /** The status of Respect Strong ETags */ value?: EditResponseActionsItemRespectStrongEtagValue | null; } export const EditResponseActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemRespectStrongEtagId)), value: S.optional( S.NullOr(EditResponseActionsItemRespectStrongEtagValue), ), }), ).annotate({ identifier: "EditResponseActionsItemRespectStrongEtag", }) as any as S.Schema; export type EditResponseActionsItemResponseBufferingId = "response_buffering"; export const EditResponseActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type EditResponseActionsItemResponseBufferingValue = "on" | "off"; export const EditResponseActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: EditResponseActionsItemResponseBufferingId | null; /** The status of Response Buffering */ value?: EditResponseActionsItemResponseBufferingValue | null; } export const EditResponseActionsItemResponseBuffering = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemResponseBufferingId)), value: S.optional( S.NullOr(EditResponseActionsItemResponseBufferingValue), ), }), ).annotate({ identifier: "EditResponseActionsItemResponseBuffering", }) as any as S.Schema; export type EditResponseActionsItemRocketLoaderId = "rocket_loader"; export const EditResponseActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type EditResponseActionsItemRocketLoaderValue = "on" | "off"; export const EditResponseActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: EditResponseActionsItemRocketLoaderId | null; /** The status of Rocket Loader */ value?: EditResponseActionsItemRocketLoaderValue | null; } export const EditResponseActionsItemRocketLoader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemRocketLoaderId)), value: S.optional(S.NullOr(EditResponseActionsItemRocketLoaderValue)), }), ).annotate({ identifier: "EditResponseActionsItemRocketLoader", }) as any as S.Schema; export type EditResponseActionsItemSecurityLevelId = "security_level"; export const EditResponseActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type EditResponseActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const EditResponseActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: EditResponseActionsItemSecurityLevelId | null; value?: EditResponseActionsItemSecurityLevelValue | null; } export const EditResponseActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemSecurityLevelId)), value: S.optional(S.NullOr(EditResponseActionsItemSecurityLevelValue)), }), ).annotate({ identifier: "EditResponseActionsItemSecurityLevel", }) as any as S.Schema; export type EditResponseActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const EditResponseActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type EditResponseActionsItemSortQueryStringForCacheValue = "on" | "off"; export const EditResponseActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: EditResponseActionsItemSortQueryStringForCacheId | null; /** The status of Query String Sort */ value?: EditResponseActionsItemSortQueryStringForCacheValue | null; } export const EditResponseActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(EditResponseActionsItemSortQueryStringForCacheId), ), value: S.optional( S.NullOr(EditResponseActionsItemSortQueryStringForCacheValue), ), }), ).annotate({ identifier: "EditResponseActionsItemSortQueryStringForCache", }) as any as S.Schema; export type EditResponseActionsItemSSLId = "ssl"; export const EditResponseActionsItemSSLId = /*@__PURE__*/ S.String; export type EditResponseActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const EditResponseActionsItemSSLValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: EditResponseActionsItemSSLId | null; /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: EditResponseActionsItemSSLValue | null; } export const EditResponseActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemSSLId)), value: S.optional(S.NullOr(EditResponseActionsItemSSLValue)), }), ).annotate({ identifier: "EditResponseActionsItemSSL", }) as any as S.Schema; export type EditResponseActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const EditResponseActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type EditResponseActionsItemTrueClientIPHeaderValue = "on" | "off"; export const EditResponseActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: EditResponseActionsItemTrueClientIPHeaderId | null; /** The status of True Client IP Header. */ value?: EditResponseActionsItemTrueClientIPHeaderValue | null; } export const EditResponseActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemTrueClientIPHeaderId)), value: S.optional( S.NullOr(EditResponseActionsItemTrueClientIPHeaderValue), ), }), ).annotate({ identifier: "EditResponseActionsItemTrueClientIPHeader", }) as any as S.Schema; export type EditResponseActionsItemWAFId = "waf"; export const EditResponseActionsItemWAFId = /*@__PURE__*/ S.String; export type EditResponseActionsItemWAFValue = "on" | "off"; export const EditResponseActionsItemWAFValue = /*@__PURE__*/ S.String; export interface EditResponseActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: EditResponseActionsItemWAFId | null; /** The status of WAF managed rules (previous version). */ value?: EditResponseActionsItemWAFValue | null; } export const EditResponseActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(EditResponseActionsItemWAFId)), value: S.optional(S.NullOr(EditResponseActionsItemWAFValue)), }), ).annotate({ identifier: "EditResponseActionsItemWAF", }) as any as S.Schema; export type EditResponseActionsItem = | EditResponseActionsItemAlwaysUseHTTPS | EditResponseActionsItemAutomaticHTTPSRewrites | EditResponseActionsItemBrowserCacheTTL | EditResponseActionsItemBrowserCheck | EditResponseActionsItemBypassCacheOnCookie | EditResponseActionsItemCacheByDeviceType | EditResponseActionsItemCacheDeceptionArmor | EditResponseActionsItemCacheKeyFields | EditResponseActionsItemCacheLevel | EditResponseActionsItemCacheOnCookie | EditResponseActionsItemCacheTTLByStatus | EditResponseActionsItemDisableApps | EditResponseActionsItemDisablePerformance | EditResponseActionsItemDisableSecurity | EditResponseActionsItemDisableZaraz | EditResponseActionsItemEdgeCacheTTL | EditResponseActionsItemEmailObfuscation | EditResponseActionsItemExplicitCacheControl | EditResponseActionsItemForwardingURL | EditResponseActionsItemHostHeaderOverride | EditResponseActionsItemIPGeolocation | EditResponseActionsItemMirage | EditResponseActionsItemOpportunisticEncryption | EditResponseActionsItemOriginErrorPagePassThru | EditResponseActionsItemPolish | EditResponseActionsItemResolveOverride | EditResponseActionsItemRespectStrongEtag | EditResponseActionsItemResponseBuffering | EditResponseActionsItemRocketLoader | EditResponseActionsItemSecurityLevel | EditResponseActionsItemSortQueryStringForCache | EditResponseActionsItemSSL | EditResponseActionsItemTrueClientIPHeader | EditResponseActionsItemWAF; export const EditResponseActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type EditResponseActionsList = Array; export const EditResponseActionsList = /*@__PURE__*/ S.Array( EditResponseActionsItem, ) as any as S.Schema; export type EditResponseStatus = "active" | "disabled"; export const EditResponseStatus = /*@__PURE__*/ S.String; export type EditResponseTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const EditResponseTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface EditResponseTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: EditResponseTargetsItemConstraintOperator; /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const EditResponseTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: EditResponseTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "EditResponseTargetsItemConstraint", }) as any as S.Schema; export type EditResponseTargetsItemTarget = "url"; export const EditResponseTargetsItemTarget = /*@__PURE__*/ S.String; export interface EditResponseTargetsItem { /** String constraint. */ constraint?: EditResponseTargetsItemConstraint | null; /** A target based on the URL of the request. */ target?: EditResponseTargetsItemTarget | null; } export const EditResponseTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(S.NullOr(EditResponseTargetsItemConstraint)), target: S.optional(S.NullOr(EditResponseTargetsItemTarget)), }), ).annotate({ identifier: "EditResponseTargetsItem", }) as any as S.Schema; export type EditResponseTargetsList = Array; export const EditResponseTargetsList = /*@__PURE__*/ S.Array( EditResponseTargetsItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchPageRuleResponse { /** Identifier. */ id: string; /** The set of actions to perform if the targets of this rule match the */ actions: EditResponseActionsList; /** The timestamp of when the Page Rule was created. */ createdOn: string; /** The timestamp of when the Page Rule was last modified. */ modifiedOn: string; /** The priority of the rule, used to define which Page Rule is processed */ priority: number; /** The status of the Page Rule. */ status: EditResponseStatus; /** The rule targets to evaluate on each request. */ targets: EditResponseTargetsList; } export const PatchPageRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, actions: EditResponseActionsList, createdOn: S.String.pipe(T.Body("created_on")), modifiedOn: S.String.pipe(T.Body("modified_on")), priority: S.Number, status: EditResponseStatus, targets: EditResponseTargetsList, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchPageRuleResponse", }) as any as S.Schema; export type UpdateRequestActionsItemAlwaysUseHTTPSId = "always_use_https"; export const UpdateRequestActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: UpdateRequestActionsItemAlwaysUseHTTPSId | (string & {}); } export const UpdateRequestActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemAlwaysUseHTTPSId), }), ).annotate({ identifier: "UpdateRequestActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type UpdateRequestActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const UpdateRequestActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const UpdateRequestActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: UpdateRequestActionsItemAutomaticHTTPSRewritesId | (string & {}); /** The status of Automatic HTTPS Rewrites. */ value?: UpdateRequestActionsItemAutomaticHTTPSRewritesValue | (string & {}); } export const UpdateRequestActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemAutomaticHTTPSRewritesId), value: S.optional(UpdateRequestActionsItemAutomaticHTTPSRewritesValue), }), ).annotate({ identifier: "UpdateRequestActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type UpdateRequestActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const UpdateRequestActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: UpdateRequestActionsItemBrowserCacheTTLId | (string & {}); /** The number of seconds to cache resources for. */ value?: number; } export const UpdateRequestActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemBrowserCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "UpdateRequestActionsItemBrowserCacheTTL", }) as any as S.Schema; export type UpdateRequestActionsItemBrowserCheckId = "browser_check"; export const UpdateRequestActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemBrowserCheckValue = "on" | "off"; export const UpdateRequestActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: UpdateRequestActionsItemBrowserCheckId | (string & {}); /** The status of Browser Integrity Check. */ value?: UpdateRequestActionsItemBrowserCheckValue | (string & {}); } export const UpdateRequestActionsItemBrowserCheck = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemBrowserCheckId), value: S.optional(UpdateRequestActionsItemBrowserCheckValue), }), ).annotate({ identifier: "UpdateRequestActionsItemBrowserCheck", }) as any as S.Schema; export type UpdateRequestActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const UpdateRequestActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: UpdateRequestActionsItemBypassCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const UpdateRequestActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemBypassCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "UpdateRequestActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type UpdateRequestActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const UpdateRequestActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheByDeviceTypeValue = "on" | "off"; export const UpdateRequestActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: UpdateRequestActionsItemCacheByDeviceTypeId | (string & {}); /** The status of Cache By Device Type. */ value?: UpdateRequestActionsItemCacheByDeviceTypeValue | (string & {}); } export const UpdateRequestActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheByDeviceTypeId), value: S.optional(UpdateRequestActionsItemCacheByDeviceTypeValue), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheByDeviceType", }) as any as S.Schema; export type UpdateRequestActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const UpdateRequestActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheDeceptionArmorValue = "on" | "off"; export const UpdateRequestActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: UpdateRequestActionsItemCacheDeceptionArmorId | (string & {}); /** The status of Cache Deception Armor. */ value?: UpdateRequestActionsItemCacheDeceptionArmorValue | (string & {}); } export const UpdateRequestActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheDeceptionArmorId), value: S.optional(UpdateRequestActionsItemCacheDeceptionArmorValue), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsId = "cache_key_fields"; export const UpdateRequestActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface UpdateRequestActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: UpdateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList; /** A list of cookies to include. */ include?: UpdateRequestActionsItemCacheKeyFieldsValueCookieIncludeList; } export const UpdateRequestActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueCookieCheckPresenceList.pipe( T.Body("check_presence"), ), ), include: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueCookieIncludeList, ), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface UpdateRequestActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: UpdateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList; /** A list of headers to ignore. */ exclude?: UpdateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList; /** A list of headers to include. */ include?: UpdateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList; } export const UpdateRequestActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueHeaderCheckPresenceList.pipe( T.Body("check_presence"), ), ), exclude: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueHeaderExcludeList, ), include: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueHeaderIncludeList, ), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueHost = CreateRequestActionsItemCacheKeyFieldsValueHost; export const UpdateRequestActionsItemCacheKeyFieldsValueHost = CreateRequestActionsItemCacheKeyFieldsValueHost; export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExclude = | UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | (string & {}) | UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueQueryStringInclude = | UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | (string & {}) | UpdateRequestActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const UpdateRequestActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface UpdateRequestActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExclude; /** Include all query string parameters. */ include?: UpdateRequestActionsItemCacheKeyFieldsValueQueryStringInclude; } export const UpdateRequestActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueQueryStringExclude, ), include: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueQueryStringInclude, ), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type UpdateRequestActionsItemCacheKeyFieldsValueUser = CreateRequestActionsItemCacheKeyFieldsValueUser; export const UpdateRequestActionsItemCacheKeyFieldsValueUser = CreateRequestActionsItemCacheKeyFieldsValueUser; export interface UpdateRequestActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: UpdateRequestActionsItemCacheKeyFieldsValueCookie; /** Controls which headers go into the Cache Key. Exactly one of */ header?: UpdateRequestActionsItemCacheKeyFieldsValueHeader; /** Determines which host header to include in the Cache Key. */ host?: CreateRequestActionsItemCacheKeyFieldsValueHost; /** Controls which URL query string parameters go into the Cache */ queryString?: UpdateRequestActionsItemCacheKeyFieldsValueQueryString; /** Feature fields to add features about the end-user (client) into */ user?: CreateRequestActionsItemCacheKeyFieldsValueUser; } export const UpdateRequestActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional(UpdateRequestActionsItemCacheKeyFieldsValueCookie), header: S.optional(UpdateRequestActionsItemCacheKeyFieldsValueHeader), host: S.optional(CreateRequestActionsItemCacheKeyFieldsValueHost), queryString: S.optional( UpdateRequestActionsItemCacheKeyFieldsValueQueryString.pipe( T.Body("query_string"), ), ), user: S.optional(CreateRequestActionsItemCacheKeyFieldsValueUser), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface UpdateRequestActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: UpdateRequestActionsItemCacheKeyFieldsId | (string & {}); value?: UpdateRequestActionsItemCacheKeyFieldsValue; } export const UpdateRequestActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheKeyFieldsId), value: S.optional(UpdateRequestActionsItemCacheKeyFieldsValue), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheKeyFields", }) as any as S.Schema; export type UpdateRequestActionsItemCacheLevelId = "cache_level"; export const UpdateRequestActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const UpdateRequestActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: UpdateRequestActionsItemCacheLevelId | (string & {}); /** * `bypass`: Cloudflare does not cache. */ value?: UpdateRequestActionsItemCacheLevelValue | (string & {}); } export const UpdateRequestActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheLevelId), value: S.optional(UpdateRequestActionsItemCacheLevelValue), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheLevel", }) as any as S.Schema; export type UpdateRequestActionsItemCacheOnCookieId = "cache_on_cookie"; export const UpdateRequestActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: UpdateRequestActionsItemCacheOnCookieId | (string & {}); /** The regular expression to use for matching cookie names in the */ value?: string; } export const UpdateRequestActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheOnCookieId), value: S.optional(S.String), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheOnCookie", }) as any as S.Schema; export type UpdateRequestActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const UpdateRequestActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const UpdateRequestActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemCacheTTLByStatusValue = | number | UpdateRequestActionsItemCacheTTLByStatusValueCase0 | (string & {}); export const UpdateRequestActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface UpdateRequestActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: UpdateRequestActionsItemCacheTTLByStatusId | (string & {}); /** A JSON object containing status codes and their corresponding TTLs. */ value?: UpdateRequestActionsItemCacheTTLByStatusValue; } export const UpdateRequestActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemCacheTTLByStatusId), value: S.optional(UpdateRequestActionsItemCacheTTLByStatusValue), }), ).annotate({ identifier: "UpdateRequestActionsItemCacheTTLByStatus", }) as any as S.Schema; export type UpdateRequestActionsItemDisableAppsId = "disable_apps"; export const UpdateRequestActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: UpdateRequestActionsItemDisableAppsId | (string & {}); } export const UpdateRequestActionsItemDisableApps = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemDisableAppsId), }), ).annotate({ identifier: "UpdateRequestActionsItemDisableApps", }) as any as S.Schema; export type UpdateRequestActionsItemDisablePerformanceId = "disable_performance"; export const UpdateRequestActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemDisablePerformance { /** Turn off */ id?: UpdateRequestActionsItemDisablePerformanceId | (string & {}); } export const UpdateRequestActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemDisablePerformanceId), }), ).annotate({ identifier: "UpdateRequestActionsItemDisablePerformance", }) as any as S.Schema; export type UpdateRequestActionsItemDisableSecurityId = "disable_security"; export const UpdateRequestActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemDisableSecurity { /** Turn off */ id?: UpdateRequestActionsItemDisableSecurityId | (string & {}); } export const UpdateRequestActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemDisableSecurityId), }), ).annotate({ identifier: "UpdateRequestActionsItemDisableSecurity", }) as any as S.Schema; export type UpdateRequestActionsItemDisableZarazId = "disable_zaraz"; export const UpdateRequestActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: UpdateRequestActionsItemDisableZarazId | (string & {}); } export const UpdateRequestActionsItemDisableZaraz = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemDisableZarazId), }), ).annotate({ identifier: "UpdateRequestActionsItemDisableZaraz", }) as any as S.Schema; export type UpdateRequestActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const UpdateRequestActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: UpdateRequestActionsItemEdgeCacheTTLId | (string & {}); value?: number; } export const UpdateRequestActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemEdgeCacheTTLId), value: S.optional(S.Number), }), ).annotate({ identifier: "UpdateRequestActionsItemEdgeCacheTTL", }) as any as S.Schema; export type UpdateRequestActionsItemEmailObfuscationId = "email_obfuscation"; export const UpdateRequestActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemEmailObfuscationValue = "on" | "off"; export const UpdateRequestActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: UpdateRequestActionsItemEmailObfuscationId | (string & {}); /** The status of Email Obfuscation. */ value?: UpdateRequestActionsItemEmailObfuscationValue | (string & {}); } export const UpdateRequestActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemEmailObfuscationId), value: S.optional(UpdateRequestActionsItemEmailObfuscationValue), }), ).annotate({ identifier: "UpdateRequestActionsItemEmailObfuscation", }) as any as S.Schema; export type UpdateRequestActionsItemExplicitCacheControlId = "explicit_cache_control"; export const UpdateRequestActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemExplicitCacheControlValue = "on" | "off"; export const UpdateRequestActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: UpdateRequestActionsItemExplicitCacheControlId | (string & {}); /** The status of Origin Cache Control. */ value?: UpdateRequestActionsItemExplicitCacheControlValue | (string & {}); } export const UpdateRequestActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemExplicitCacheControlId), value: S.optional(UpdateRequestActionsItemExplicitCacheControlValue), }), ).annotate({ identifier: "UpdateRequestActionsItemExplicitCacheControl", }) as any as S.Schema; export type UpdateRequestActionsItemForwardingURLId = "forwarding_url"; export const UpdateRequestActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemForwardingURLValueStatusCode = 301 | 302; export const UpdateRequestActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface UpdateRequestActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: | UpdateRequestActionsItemForwardingURLValueStatusCode | (number & {}); /** The URL to redirect the request to. */ url?: string; } export const UpdateRequestActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( UpdateRequestActionsItemForwardingURLValueStatusCode.pipe( T.Body("status_code"), ), ), url: S.optional(S.String), }), ).annotate({ identifier: "UpdateRequestActionsItemForwardingURLValue", }) as any as S.Schema; export interface UpdateRequestActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: UpdateRequestActionsItemForwardingURLId | (string & {}); value?: UpdateRequestActionsItemForwardingURLValue; } export const UpdateRequestActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemForwardingURLId), value: S.optional(UpdateRequestActionsItemForwardingURLValue), }), ).annotate({ identifier: "UpdateRequestActionsItemForwardingURL", }) as any as S.Schema; export type UpdateRequestActionsItemHostHeaderOverrideId = "host_header_override"; export const UpdateRequestActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: UpdateRequestActionsItemHostHeaderOverrideId | (string & {}); /** The hostname to use in the `Host` header */ value?: string; } export const UpdateRequestActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemHostHeaderOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "UpdateRequestActionsItemHostHeaderOverride", }) as any as S.Schema; export type UpdateRequestActionsItemIPGeolocationId = "ip_geolocation"; export const UpdateRequestActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemIPGeolocationValue = "on" | "off"; export const UpdateRequestActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: UpdateRequestActionsItemIPGeolocationId | (string & {}); /** The status of adding the IP Geolocation Header. */ value?: UpdateRequestActionsItemIPGeolocationValue | (string & {}); } export const UpdateRequestActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemIPGeolocationId), value: S.optional(UpdateRequestActionsItemIPGeolocationValue), }), ).annotate({ identifier: "UpdateRequestActionsItemIPGeolocation", }) as any as S.Schema; export type UpdateRequestActionsItemMirageId = "mirage"; export const UpdateRequestActionsItemMirageId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemMirageValue = "on" | "off"; export const UpdateRequestActionsItemMirageValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: UpdateRequestActionsItemMirageId | (string & {}); /** The status of Mirage. */ value?: UpdateRequestActionsItemMirageValue | (string & {}); } export const UpdateRequestActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemMirageId), value: S.optional(UpdateRequestActionsItemMirageValue), }), ).annotate({ identifier: "UpdateRequestActionsItemMirage", }) as any as S.Schema; export type UpdateRequestActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const UpdateRequestActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemOpportunisticEncryptionValue = "on" | "off"; export const UpdateRequestActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: UpdateRequestActionsItemOpportunisticEncryptionId | (string & {}); /** The status of Opportunistic Encryption. */ value?: UpdateRequestActionsItemOpportunisticEncryptionValue | (string & {}); } export const UpdateRequestActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemOpportunisticEncryptionId), value: S.optional(UpdateRequestActionsItemOpportunisticEncryptionValue), }), ).annotate({ identifier: "UpdateRequestActionsItemOpportunisticEncryption", }) as any as S.Schema; export type UpdateRequestActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const UpdateRequestActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemOriginErrorPagePassThruValue = "on" | "off"; export const UpdateRequestActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: UpdateRequestActionsItemOriginErrorPagePassThruId | (string & {}); /** The status of Origin Error Page Passthru. */ value?: UpdateRequestActionsItemOriginErrorPagePassThruValue | (string & {}); } export const UpdateRequestActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemOriginErrorPagePassThruId), value: S.optional(UpdateRequestActionsItemOriginErrorPagePassThruValue), }), ).annotate({ identifier: "UpdateRequestActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type UpdateRequestActionsItemPolishId = "polish"; export const UpdateRequestActionsItemPolishId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemPolishValue = "off" | "lossless" | "lossy"; export const UpdateRequestActionsItemPolishValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: UpdateRequestActionsItemPolishId | (string & {}); /** The level of Polish you want applied to your origin. */ value?: UpdateRequestActionsItemPolishValue | (string & {}); } export const UpdateRequestActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemPolishId), value: S.optional(UpdateRequestActionsItemPolishValue), }), ).annotate({ identifier: "UpdateRequestActionsItemPolish", }) as any as S.Schema; export type UpdateRequestActionsItemResolveOverrideId = "resolve_override"; export const UpdateRequestActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: UpdateRequestActionsItemResolveOverrideId | (string & {}); /** The origin address you want to override with. */ value?: string; } export const UpdateRequestActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemResolveOverrideId), value: S.optional(S.String), }), ).annotate({ identifier: "UpdateRequestActionsItemResolveOverride", }) as any as S.Schema; export type UpdateRequestActionsItemRespectStrongEtagId = "respect_strong_etag"; export const UpdateRequestActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemRespectStrongEtagValue = "on" | "off"; export const UpdateRequestActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: UpdateRequestActionsItemRespectStrongEtagId | (string & {}); /** The status of Respect Strong ETags */ value?: UpdateRequestActionsItemRespectStrongEtagValue | (string & {}); } export const UpdateRequestActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemRespectStrongEtagId), value: S.optional(UpdateRequestActionsItemRespectStrongEtagValue), }), ).annotate({ identifier: "UpdateRequestActionsItemRespectStrongEtag", }) as any as S.Schema; export type UpdateRequestActionsItemResponseBufferingId = "response_buffering"; export const UpdateRequestActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemResponseBufferingValue = "on" | "off"; export const UpdateRequestActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: UpdateRequestActionsItemResponseBufferingId | (string & {}); /** The status of Response Buffering */ value?: UpdateRequestActionsItemResponseBufferingValue | (string & {}); } export const UpdateRequestActionsItemResponseBuffering = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemResponseBufferingId), value: S.optional(UpdateRequestActionsItemResponseBufferingValue), }), ).annotate({ identifier: "UpdateRequestActionsItemResponseBuffering", }) as any as S.Schema; export type UpdateRequestActionsItemRocketLoaderId = "rocket_loader"; export const UpdateRequestActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemRocketLoaderValue = "on" | "off"; export const UpdateRequestActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: UpdateRequestActionsItemRocketLoaderId | (string & {}); /** The status of Rocket Loader */ value?: UpdateRequestActionsItemRocketLoaderValue | (string & {}); } export const UpdateRequestActionsItemRocketLoader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemRocketLoaderId), value: S.optional(UpdateRequestActionsItemRocketLoaderValue), }), ).annotate({ identifier: "UpdateRequestActionsItemRocketLoader", }) as any as S.Schema; export type UpdateRequestActionsItemSecurityLevelId = "security_level"; export const UpdateRequestActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const UpdateRequestActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: UpdateRequestActionsItemSecurityLevelId | (string & {}); value?: UpdateRequestActionsItemSecurityLevelValue | (string & {}); } export const UpdateRequestActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(UpdateRequestActionsItemSecurityLevelId), value: S.optional(UpdateRequestActionsItemSecurityLevelValue), }), ).annotate({ identifier: "UpdateRequestActionsItemSecurityLevel", }) as any as S.Schema; export type UpdateRequestActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const UpdateRequestActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemSortQueryStringForCacheValue = "on" | "off"; export const UpdateRequestActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: UpdateRequestActionsItemSortQueryStringForCacheId | (string & {}); /** The status of Query String Sort */ value?: UpdateRequestActionsItemSortQueryStringForCacheValue | (string & {}); } export const UpdateRequestActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemSortQueryStringForCacheId), value: S.optional(UpdateRequestActionsItemSortQueryStringForCacheValue), }), ).annotate({ identifier: "UpdateRequestActionsItemSortQueryStringForCache", }) as any as S.Schema; export type UpdateRequestActionsItemSSLId = "ssl"; export const UpdateRequestActionsItemSSLId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const UpdateRequestActionsItemSSLValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: UpdateRequestActionsItemSSLId | (string & {}); /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: UpdateRequestActionsItemSSLValue | (string & {}); } export const UpdateRequestActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemSSLId), value: S.optional(UpdateRequestActionsItemSSLValue), }), ).annotate({ identifier: "UpdateRequestActionsItemSSL", }) as any as S.Schema; export type UpdateRequestActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const UpdateRequestActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemTrueClientIPHeaderValue = "on" | "off"; export const UpdateRequestActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: UpdateRequestActionsItemTrueClientIPHeaderId | (string & {}); /** The status of True Client IP Header. */ value?: UpdateRequestActionsItemTrueClientIPHeaderValue | (string & {}); } export const UpdateRequestActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemTrueClientIPHeaderId), value: S.optional(UpdateRequestActionsItemTrueClientIPHeaderValue), }), ).annotate({ identifier: "UpdateRequestActionsItemTrueClientIPHeader", }) as any as S.Schema; export type UpdateRequestActionsItemWAFId = "waf"; export const UpdateRequestActionsItemWAFId = /*@__PURE__*/ S.String; export type UpdateRequestActionsItemWAFValue = "on" | "off"; export const UpdateRequestActionsItemWAFValue = /*@__PURE__*/ S.String; export interface UpdateRequestActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: UpdateRequestActionsItemWAFId | (string & {}); /** The status of WAF managed rules (previous version). */ value?: UpdateRequestActionsItemWAFValue | (string & {}); } export const UpdateRequestActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(UpdateRequestActionsItemWAFId), value: S.optional(UpdateRequestActionsItemWAFValue), }), ).annotate({ identifier: "UpdateRequestActionsItemWAF", }) as any as S.Schema; export type UpdateRequestActionsItem = | UpdateRequestActionsItemAlwaysUseHTTPS | UpdateRequestActionsItemAutomaticHTTPSRewrites | UpdateRequestActionsItemBrowserCacheTTL | UpdateRequestActionsItemBrowserCheck | UpdateRequestActionsItemBypassCacheOnCookie | UpdateRequestActionsItemCacheByDeviceType | UpdateRequestActionsItemCacheDeceptionArmor | UpdateRequestActionsItemCacheKeyFields | UpdateRequestActionsItemCacheLevel | UpdateRequestActionsItemCacheOnCookie | UpdateRequestActionsItemCacheTTLByStatus | UpdateRequestActionsItemDisableApps | UpdateRequestActionsItemDisablePerformance | UpdateRequestActionsItemDisableSecurity | UpdateRequestActionsItemDisableZaraz | UpdateRequestActionsItemEdgeCacheTTL | UpdateRequestActionsItemEmailObfuscation | UpdateRequestActionsItemExplicitCacheControl | UpdateRequestActionsItemForwardingURL | UpdateRequestActionsItemHostHeaderOverride | UpdateRequestActionsItemIPGeolocation | UpdateRequestActionsItemMirage | UpdateRequestActionsItemOpportunisticEncryption | UpdateRequestActionsItemOriginErrorPagePassThru | UpdateRequestActionsItemPolish | UpdateRequestActionsItemResolveOverride | UpdateRequestActionsItemRespectStrongEtag | UpdateRequestActionsItemResponseBuffering | UpdateRequestActionsItemRocketLoader | UpdateRequestActionsItemSecurityLevel | UpdateRequestActionsItemSortQueryStringForCache | UpdateRequestActionsItemSSL | UpdateRequestActionsItemTrueClientIPHeader | UpdateRequestActionsItemWAF; export const UpdateRequestActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type UpdateRequestActionsList = Array; export const UpdateRequestActionsList = /*@__PURE__*/ S.Array( UpdateRequestActionsItem, ) as any as S.Schema; export type UpdateRequestTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const UpdateRequestTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface UpdateRequestTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: UpdateRequestTargetsItemConstraintOperator | (string & {}); /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const UpdateRequestTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: UpdateRequestTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "UpdateRequestTargetsItemConstraint", }) as any as S.Schema; export type UpdateRequestTargetsItemTarget = "url"; export const UpdateRequestTargetsItemTarget = /*@__PURE__*/ S.String; export interface UpdateRequestTargetsItem { /** String constraint. */ constraint?: UpdateRequestTargetsItemConstraint; /** A target based on the URL of the request. */ target?: UpdateRequestTargetsItemTarget | (string & {}); } export const UpdateRequestTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(UpdateRequestTargetsItemConstraint), target: S.optional(UpdateRequestTargetsItemTarget), }), ).annotate({ identifier: "UpdateRequestTargetsItem", }) as any as S.Schema; export type UpdateRequestTargetsList = Array; export const UpdateRequestTargetsList = /*@__PURE__*/ S.Array( UpdateRequestTargetsItem, ) as any as S.Schema; export type UpdateRequestStatus = "active" | "disabled"; export const UpdateRequestStatus = /*@__PURE__*/ S.String; export interface UpdatePageRuleRequest { /** Identifier. */ zoneId: string; /** Identifier. */ pageruleId: string; /** The set of actions to perform if the targets of this rule match the */ actions: UpdateRequestActionsList; /** The rule targets to evaluate on each request. */ targets: UpdateRequestTargetsList; /** The priority of the rule, used to define which Page Rule is processed */ priority?: number; /** The status of the Page Rule. */ status?: UpdateRequestStatus | (string & {}); } export const UpdatePageRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ zoneId: S.String.pipe(T.Label("zone_id")), pageruleId: S.String.pipe(T.Label("pagerule_id")), actions: UpdateRequestActionsList, targets: UpdateRequestTargetsList, priority: S.optional(S.Number), status: S.optional(UpdateRequestStatus), }) .pipe( T.Http({ method: "PUT", uri: "/zones/{zone_id}/pagerules/{pagerule_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "UpdatePageRuleRequest", }) as any as S.Schema; export type UpdateResponseActionsItemAlwaysUseHTTPSId = "always_use_https"; export const UpdateResponseActionsItemAlwaysUseHTTPSId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemAlwaysUseHTTPS { /** If enabled, any `http://`` URL is converted to`https://` through a */ id?: UpdateResponseActionsItemAlwaysUseHTTPSId | null; } export const UpdateResponseActionsItemAlwaysUseHTTPS = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemAlwaysUseHTTPSId)), }), ).annotate({ identifier: "UpdateResponseActionsItemAlwaysUseHTTPS", }) as any as S.Schema; export type UpdateResponseActionsItemAutomaticHTTPSRewritesId = "automatic_https_rewrites"; export const UpdateResponseActionsItemAutomaticHTTPSRewritesId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemAutomaticHTTPSRewritesValue = "on" | "off"; export const UpdateResponseActionsItemAutomaticHTTPSRewritesValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemAutomaticHTTPSRewrites { /** Turn on or off Automatic HTTPS Rewrites. */ id?: UpdateResponseActionsItemAutomaticHTTPSRewritesId | null; /** The status of Automatic HTTPS Rewrites. */ value?: UpdateResponseActionsItemAutomaticHTTPSRewritesValue | null; } export const UpdateResponseActionsItemAutomaticHTTPSRewrites = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(UpdateResponseActionsItemAutomaticHTTPSRewritesId), ), value: S.optional( S.NullOr(UpdateResponseActionsItemAutomaticHTTPSRewritesValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemAutomaticHTTPSRewrites", }) as any as S.Schema; export type UpdateResponseActionsItemBrowserCacheTTLId = "browser_cache_ttl"; export const UpdateResponseActionsItemBrowserCacheTTLId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemBrowserCacheTTL { /** Control how long resources cached by client browsers remain valid. */ id?: UpdateResponseActionsItemBrowserCacheTTLId | null; /** The number of seconds to cache resources for. */ value?: number | null; } export const UpdateResponseActionsItemBrowserCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemBrowserCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "UpdateResponseActionsItemBrowserCacheTTL", }) as any as S.Schema; export type UpdateResponseActionsItemBrowserCheckId = "browser_check"; export const UpdateResponseActionsItemBrowserCheckId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemBrowserCheckValue = "on" | "off"; export const UpdateResponseActionsItemBrowserCheckValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemBrowserCheck { /** Inspect the visitor's browser for headers commonly associated with */ id?: UpdateResponseActionsItemBrowserCheckId | null; /** The status of Browser Integrity Check. */ value?: UpdateResponseActionsItemBrowserCheckValue | null; } export const UpdateResponseActionsItemBrowserCheck = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemBrowserCheckId)), value: S.optional(S.NullOr(UpdateResponseActionsItemBrowserCheckValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemBrowserCheck", }) as any as S.Schema; export type UpdateResponseActionsItemBypassCacheOnCookieId = "bypass_cache_on_cookie"; export const UpdateResponseActionsItemBypassCacheOnCookieId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemBypassCacheOnCookie { /** Bypass cache and fetch resources from the origin server if a regular */ id?: UpdateResponseActionsItemBypassCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const UpdateResponseActionsItemBypassCacheOnCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemBypassCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "UpdateResponseActionsItemBypassCacheOnCookie", }) as any as S.Schema; export type UpdateResponseActionsItemCacheByDeviceTypeId = "cache_by_device_type"; export const UpdateResponseActionsItemCacheByDeviceTypeId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheByDeviceTypeValue = "on" | "off"; export const UpdateResponseActionsItemCacheByDeviceTypeValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemCacheByDeviceType { /** Separate cached content based on the visitor's device type. */ id?: UpdateResponseActionsItemCacheByDeviceTypeId | null; /** The status of Cache By Device Type. */ value?: UpdateResponseActionsItemCacheByDeviceTypeValue | null; } export const UpdateResponseActionsItemCacheByDeviceType = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheByDeviceTypeId)), value: S.optional( S.NullOr(UpdateResponseActionsItemCacheByDeviceTypeValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheByDeviceType", }) as any as S.Schema; export type UpdateResponseActionsItemCacheDeceptionArmorId = "cache_deception_armor"; export const UpdateResponseActionsItemCacheDeceptionArmorId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheDeceptionArmorValue = "on" | "off"; export const UpdateResponseActionsItemCacheDeceptionArmorValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemCacheDeceptionArmor { /** Protect from web cache deception attacks while still allowing static */ id?: UpdateResponseActionsItemCacheDeceptionArmorId | null; /** The status of Cache Deception Armor. */ value?: UpdateResponseActionsItemCacheDeceptionArmorValue | null; } export const UpdateResponseActionsItemCacheDeceptionArmor = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheDeceptionArmorId)), value: S.optional( S.NullOr(UpdateResponseActionsItemCacheDeceptionArmorValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheDeceptionArmor", }) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsId = "cache_key_fields"; export const UpdateResponseActionsItemCacheKeyFieldsId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueCookieIncludeList = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueCookieIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface UpdateResponseActionsItemCacheKeyFieldsValueCookie { /** A list of cookies to check for the presence of, without */ checkPresence?: UpdateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList | null; /** A list of cookies to include. */ include?: UpdateResponseActionsItemCacheKeyFieldsValueCookieIncludeList | null; } export const UpdateResponseActionsItemCacheKeyFieldsValueCookie = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( UpdateResponseActionsItemCacheKeyFieldsValueCookieCheckPresenceList, ).pipe(T.Body("check_presence")), ), include: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueCookieIncludeList), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheKeyFieldsValueCookie", }) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface UpdateResponseActionsItemCacheKeyFieldsValueHeader { /** A list of headers to check for the presence of, without */ checkPresence?: UpdateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList | null; /** A list of headers to ignore. */ exclude?: UpdateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList | null; /** A list of headers to include. */ include?: UpdateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList | null; } export const UpdateResponseActionsItemCacheKeyFieldsValueHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ checkPresence: S.optional( S.NullOr( UpdateResponseActionsItemCacheKeyFieldsValueHeaderCheckPresenceList, ).pipe(T.Body("check_presence")), ), exclude: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueHeaderExcludeList), ), include: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueHeaderIncludeList), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheKeyFieldsValueHeader", }) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export const UpdateResponseActionsItemCacheKeyFieldsValueHost = CreateResponseActionsItemCacheKeyFieldsValueHost; export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = "*"; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExclude = | UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeEnum | UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExcludeCase1List; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = "*"; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = Array; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueQueryStringInclude = | UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeEnum | UpdateResponseActionsItemCacheKeyFieldsValueQueryStringIncludeCase1List; export const UpdateResponseActionsItemCacheKeyFieldsValueQueryStringInclude = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface UpdateResponseActionsItemCacheKeyFieldsValueQueryString { /** Ignore all query string parameters. */ exclude?: UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExclude | null; /** Include all query string parameters. */ include?: UpdateResponseActionsItemCacheKeyFieldsValueQueryStringInclude | null; } export const UpdateResponseActionsItemCacheKeyFieldsValueQueryString = /*@__PURE__*/ S.suspend(() => S.Struct({ exclude: S.optional( S.NullOr( UpdateResponseActionsItemCacheKeyFieldsValueQueryStringExclude, ), ), include: S.optional( S.NullOr( UpdateResponseActionsItemCacheKeyFieldsValueQueryStringInclude, ), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheKeyFieldsValueQueryString", }) as any as S.Schema; export type UpdateResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export const UpdateResponseActionsItemCacheKeyFieldsValueUser = CreateResponseActionsItemCacheKeyFieldsValueUser; export interface UpdateResponseActionsItemCacheKeyFieldsValue { /** Controls which cookies appear in the Cache Key. */ cookie?: UpdateResponseActionsItemCacheKeyFieldsValueCookie | null; /** Controls which headers go into the Cache Key. Exactly one of */ header?: UpdateResponseActionsItemCacheKeyFieldsValueHeader | null; /** Determines which host header to include in the Cache Key. */ host?: CreateResponseActionsItemCacheKeyFieldsValueHost | null; /** Controls which URL query string parameters go into the Cache */ queryString?: UpdateResponseActionsItemCacheKeyFieldsValueQueryString | null; /** Feature fields to add features about the end-user (client) into */ user?: CreateResponseActionsItemCacheKeyFieldsValueUser | null; } export const UpdateResponseActionsItemCacheKeyFieldsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ cookie: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueCookie), ), header: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueHeader), ), host: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueHost), ), queryString: S.optional( S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValueQueryString).pipe( T.Body("query_string"), ), ), user: S.optional( S.NullOr(CreateResponseActionsItemCacheKeyFieldsValueUser), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheKeyFieldsValue", }) as any as S.Schema; export interface UpdateResponseActionsItemCacheKeyFields { /** Control specifically what variables to include when deciding which */ id?: UpdateResponseActionsItemCacheKeyFieldsId | null; value?: UpdateResponseActionsItemCacheKeyFieldsValue | null; } export const UpdateResponseActionsItemCacheKeyFields = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheKeyFieldsId)), value: S.optional(S.NullOr(UpdateResponseActionsItemCacheKeyFieldsValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheKeyFields", }) as any as S.Schema; export type UpdateResponseActionsItemCacheLevelId = "cache_level"; export const UpdateResponseActionsItemCacheLevelId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheLevelValue = | "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything"; export const UpdateResponseActionsItemCacheLevelValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemCacheLevel { /** Apply custom caching based on the option selected. */ id?: UpdateResponseActionsItemCacheLevelId | null; /** * `bypass`: Cloudflare does not cache. */ value?: UpdateResponseActionsItemCacheLevelValue | null; } export const UpdateResponseActionsItemCacheLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheLevelId)), value: S.optional(S.NullOr(UpdateResponseActionsItemCacheLevelValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheLevel", }) as any as S.Schema; export type UpdateResponseActionsItemCacheOnCookieId = "cache_on_cookie"; export const UpdateResponseActionsItemCacheOnCookieId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemCacheOnCookie { /** Apply the Cache Everything option (Cache Level setting) based on a */ id?: UpdateResponseActionsItemCacheOnCookieId | null; /** The regular expression to use for matching cookie names in the */ value?: string | null; } export const UpdateResponseActionsItemCacheOnCookie = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheOnCookieId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheOnCookie", }) as any as S.Schema; export type UpdateResponseActionsItemCacheTTLByStatusId = "cache_ttl_by_status"; export const UpdateResponseActionsItemCacheTTLByStatusId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheTTLByStatusValueCase0 = | "no-cache" | "no-store"; export const UpdateResponseActionsItemCacheTTLByStatusValueCase0 = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemCacheTTLByStatusValue = | number | UpdateResponseActionsItemCacheTTLByStatusValueCase0; export const UpdateResponseActionsItemCacheTTLByStatusValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []])); export interface UpdateResponseActionsItemCacheTTLByStatus { /** Enterprise customers can set cache time-to-live (TTL) based on the */ id?: UpdateResponseActionsItemCacheTTLByStatusId | null; /** A JSON object containing status codes and their corresponding TTLs. */ value?: UpdateResponseActionsItemCacheTTLByStatusValue | null; } export const UpdateResponseActionsItemCacheTTLByStatus = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemCacheTTLByStatusId)), value: S.optional( S.NullOr(UpdateResponseActionsItemCacheTTLByStatusValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemCacheTTLByStatus", }) as any as S.Schema; export type UpdateResponseActionsItemDisableAppsId = "disable_apps"; export const UpdateResponseActionsItemDisableAppsId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemDisableApps { /** Turn off all active [Cloudflare Apps](https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-apps/) */ id?: UpdateResponseActionsItemDisableAppsId | null; } export const UpdateResponseActionsItemDisableApps = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemDisableAppsId)), }), ).annotate({ identifier: "UpdateResponseActionsItemDisableApps", }) as any as S.Schema; export type UpdateResponseActionsItemDisablePerformanceId = "disable_performance"; export const UpdateResponseActionsItemDisablePerformanceId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemDisablePerformance { /** Turn off */ id?: UpdateResponseActionsItemDisablePerformanceId | null; } export const UpdateResponseActionsItemDisablePerformance = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemDisablePerformanceId)), }), ).annotate({ identifier: "UpdateResponseActionsItemDisablePerformance", }) as any as S.Schema; export type UpdateResponseActionsItemDisableSecurityId = "disable_security"; export const UpdateResponseActionsItemDisableSecurityId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemDisableSecurity { /** Turn off */ id?: UpdateResponseActionsItemDisableSecurityId | null; } export const UpdateResponseActionsItemDisableSecurity = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemDisableSecurityId)), }), ).annotate({ identifier: "UpdateResponseActionsItemDisableSecurity", }) as any as S.Schema; export type UpdateResponseActionsItemDisableZarazId = "disable_zaraz"; export const UpdateResponseActionsItemDisableZarazId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemDisableZaraz { /** Turn off [Zaraz](https://developers.cloudflare.com/zaraz/). */ id?: UpdateResponseActionsItemDisableZarazId | null; } export const UpdateResponseActionsItemDisableZaraz = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemDisableZarazId)), }), ).annotate({ identifier: "UpdateResponseActionsItemDisableZaraz", }) as any as S.Schema; export type UpdateResponseActionsItemEdgeCacheTTLId = "edge_cache_ttl"; export const UpdateResponseActionsItemEdgeCacheTTLId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemEdgeCacheTTL { /** Specify how long to cache a resource in the Cloudflare global */ id?: UpdateResponseActionsItemEdgeCacheTTLId | null; value?: number | null; } export const UpdateResponseActionsItemEdgeCacheTTL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemEdgeCacheTTLId)), value: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "UpdateResponseActionsItemEdgeCacheTTL", }) as any as S.Schema; export type UpdateResponseActionsItemEmailObfuscationId = "email_obfuscation"; export const UpdateResponseActionsItemEmailObfuscationId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemEmailObfuscationValue = "on" | "off"; export const UpdateResponseActionsItemEmailObfuscationValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemEmailObfuscation { /** Turn on or off **Email Obfuscation**. */ id?: UpdateResponseActionsItemEmailObfuscationId | null; /** The status of Email Obfuscation. */ value?: UpdateResponseActionsItemEmailObfuscationValue | null; } export const UpdateResponseActionsItemEmailObfuscation = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemEmailObfuscationId)), value: S.optional( S.NullOr(UpdateResponseActionsItemEmailObfuscationValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemEmailObfuscation", }) as any as S.Schema; export type UpdateResponseActionsItemExplicitCacheControlId = "explicit_cache_control"; export const UpdateResponseActionsItemExplicitCacheControlId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemExplicitCacheControlValue = "on" | "off"; export const UpdateResponseActionsItemExplicitCacheControlValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemExplicitCacheControl { /** Origin Cache Control is enabled by default for Free, Pro, and */ id?: UpdateResponseActionsItemExplicitCacheControlId | null; /** The status of Origin Cache Control. */ value?: UpdateResponseActionsItemExplicitCacheControlValue | null; } export const UpdateResponseActionsItemExplicitCacheControl = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemExplicitCacheControlId)), value: S.optional( S.NullOr(UpdateResponseActionsItemExplicitCacheControlValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemExplicitCacheControl", }) as any as S.Schema; export type UpdateResponseActionsItemForwardingURLId = "forwarding_url"; export const UpdateResponseActionsItemForwardingURLId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemForwardingURLValueStatusCode = 301 | 302; export const UpdateResponseActionsItemForwardingURLValueStatusCode = /*@__PURE__*/ S.Number; export interface UpdateResponseActionsItemForwardingURLValue { /** The status code to use for the URL redirect. 301 is a permanent */ statusCode?: UpdateResponseActionsItemForwardingURLValueStatusCode | null; /** The URL to redirect the request to. */ url?: string | null; } export const UpdateResponseActionsItemForwardingURLValue = /*@__PURE__*/ S.suspend(() => S.Struct({ statusCode: S.optional( S.NullOr(UpdateResponseActionsItemForwardingURLValueStatusCode).pipe( T.Body("status_code"), ), ), url: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "UpdateResponseActionsItemForwardingURLValue", }) as any as S.Schema; export interface UpdateResponseActionsItemForwardingURL { /** Redirects one URL to another using an `HTTP 301/302` redirect. Refer */ id?: UpdateResponseActionsItemForwardingURLId | null; value?: UpdateResponseActionsItemForwardingURLValue | null; } export const UpdateResponseActionsItemForwardingURL = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemForwardingURLId)), value: S.optional(S.NullOr(UpdateResponseActionsItemForwardingURLValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemForwardingURL", }) as any as S.Schema; export type UpdateResponseActionsItemHostHeaderOverrideId = "host_header_override"; export const UpdateResponseActionsItemHostHeaderOverrideId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemHostHeaderOverride { /** Apply a specific host header. */ id?: UpdateResponseActionsItemHostHeaderOverrideId | null; /** The hostname to use in the `Host` header */ value?: string | null; } export const UpdateResponseActionsItemHostHeaderOverride = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemHostHeaderOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "UpdateResponseActionsItemHostHeaderOverride", }) as any as S.Schema; export type UpdateResponseActionsItemIPGeolocationId = "ip_geolocation"; export const UpdateResponseActionsItemIPGeolocationId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemIPGeolocationValue = "on" | "off"; export const UpdateResponseActionsItemIPGeolocationValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemIPGeolocation { /** Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor. */ id?: UpdateResponseActionsItemIPGeolocationId | null; /** The status of adding the IP Geolocation Header. */ value?: UpdateResponseActionsItemIPGeolocationValue | null; } export const UpdateResponseActionsItemIPGeolocation = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemIPGeolocationId)), value: S.optional(S.NullOr(UpdateResponseActionsItemIPGeolocationValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemIPGeolocation", }) as any as S.Schema; export type UpdateResponseActionsItemMirageId = "mirage"; export const UpdateResponseActionsItemMirageId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemMirageValue = "on" | "off"; export const UpdateResponseActionsItemMirageValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemMirage { /** Cloudflare Mirage reduces bandwidth used by images in mobile browsers. */ id?: UpdateResponseActionsItemMirageId | null; /** The status of Mirage. */ value?: UpdateResponseActionsItemMirageValue | null; } export const UpdateResponseActionsItemMirage = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemMirageId)), value: S.optional(S.NullOr(UpdateResponseActionsItemMirageValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemMirage", }) as any as S.Schema; export type UpdateResponseActionsItemOpportunisticEncryptionId = "opportunistic_encryption"; export const UpdateResponseActionsItemOpportunisticEncryptionId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemOpportunisticEncryptionValue = | "on" | "off"; export const UpdateResponseActionsItemOpportunisticEncryptionValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemOpportunisticEncryption { /** Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. */ id?: UpdateResponseActionsItemOpportunisticEncryptionId | null; /** The status of Opportunistic Encryption. */ value?: UpdateResponseActionsItemOpportunisticEncryptionValue | null; } export const UpdateResponseActionsItemOpportunisticEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(UpdateResponseActionsItemOpportunisticEncryptionId), ), value: S.optional( S.NullOr(UpdateResponseActionsItemOpportunisticEncryptionValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemOpportunisticEncryption", }) as any as S.Schema; export type UpdateResponseActionsItemOriginErrorPagePassThruId = "origin_error_page_pass_thru"; export const UpdateResponseActionsItemOriginErrorPagePassThruId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemOriginErrorPagePassThruValue = | "on" | "off"; export const UpdateResponseActionsItemOriginErrorPagePassThruValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemOriginErrorPagePassThru { /** Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. */ id?: UpdateResponseActionsItemOriginErrorPagePassThruId | null; /** The status of Origin Error Page Passthru. */ value?: UpdateResponseActionsItemOriginErrorPagePassThruValue | null; } export const UpdateResponseActionsItemOriginErrorPagePassThru = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(UpdateResponseActionsItemOriginErrorPagePassThruId), ), value: S.optional( S.NullOr(UpdateResponseActionsItemOriginErrorPagePassThruValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemOriginErrorPagePassThru", }) as any as S.Schema; export type UpdateResponseActionsItemPolishId = "polish"; export const UpdateResponseActionsItemPolishId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemPolishValue = "off" | "lossless" | "lossy"; export const UpdateResponseActionsItemPolishValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemPolish { /** Apply options from the Polish feature of the Cloudflare Speed app. */ id?: UpdateResponseActionsItemPolishId | null; /** The level of Polish you want applied to your origin. */ value?: UpdateResponseActionsItemPolishValue | null; } export const UpdateResponseActionsItemPolish = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemPolishId)), value: S.optional(S.NullOr(UpdateResponseActionsItemPolishValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemPolish", }) as any as S.Schema; export type UpdateResponseActionsItemResolveOverrideId = "resolve_override"; export const UpdateResponseActionsItemResolveOverrideId = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemResolveOverride { /** Change the origin address to the value specified in this setting. */ id?: UpdateResponseActionsItemResolveOverrideId | null; /** The origin address you want to override with. */ value?: string | null; } export const UpdateResponseActionsItemResolveOverride = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemResolveOverrideId)), value: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "UpdateResponseActionsItemResolveOverride", }) as any as S.Schema; export type UpdateResponseActionsItemRespectStrongEtagId = "respect_strong_etag"; export const UpdateResponseActionsItemRespectStrongEtagId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemRespectStrongEtagValue = "on" | "off"; export const UpdateResponseActionsItemRespectStrongEtagValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemRespectStrongEtag { /** Turn on or off byte-for-byte equivalency checks between the */ id?: UpdateResponseActionsItemRespectStrongEtagId | null; /** The status of Respect Strong ETags */ value?: UpdateResponseActionsItemRespectStrongEtagValue | null; } export const UpdateResponseActionsItemRespectStrongEtag = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemRespectStrongEtagId)), value: S.optional( S.NullOr(UpdateResponseActionsItemRespectStrongEtagValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemRespectStrongEtag", }) as any as S.Schema; export type UpdateResponseActionsItemResponseBufferingId = "response_buffering"; export const UpdateResponseActionsItemResponseBufferingId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemResponseBufferingValue = "on" | "off"; export const UpdateResponseActionsItemResponseBufferingValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemResponseBuffering { /** Turn on or off whether Cloudflare should wait for an entire file */ id?: UpdateResponseActionsItemResponseBufferingId | null; /** The status of Response Buffering */ value?: UpdateResponseActionsItemResponseBufferingValue | null; } export const UpdateResponseActionsItemResponseBuffering = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemResponseBufferingId)), value: S.optional( S.NullOr(UpdateResponseActionsItemResponseBufferingValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemResponseBuffering", }) as any as S.Schema; export type UpdateResponseActionsItemRocketLoaderId = "rocket_loader"; export const UpdateResponseActionsItemRocketLoaderId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemRocketLoaderValue = "on" | "off"; export const UpdateResponseActionsItemRocketLoaderValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemRocketLoader { /** Turn on or off Rocket Loader in the Cloudflare Speed app. */ id?: UpdateResponseActionsItemRocketLoaderId | null; /** The status of Rocket Loader */ value?: UpdateResponseActionsItemRocketLoaderValue | null; } export const UpdateResponseActionsItemRocketLoader = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemRocketLoaderId)), value: S.optional(S.NullOr(UpdateResponseActionsItemRocketLoaderValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemRocketLoader", }) as any as S.Schema; export type UpdateResponseActionsItemSecurityLevelId = "security_level"; export const UpdateResponseActionsItemSecurityLevelId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemSecurityLevelValue = | "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack"; export const UpdateResponseActionsItemSecurityLevelValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemSecurityLevel { /** Control options for the **Security Level** feature from the **Security** app. */ id?: UpdateResponseActionsItemSecurityLevelId | null; value?: UpdateResponseActionsItemSecurityLevelValue | null; } export const UpdateResponseActionsItemSecurityLevel = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemSecurityLevelId)), value: S.optional(S.NullOr(UpdateResponseActionsItemSecurityLevelValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemSecurityLevel", }) as any as S.Schema; export type UpdateResponseActionsItemSortQueryStringForCacheId = "sort_query_string_for_cache"; export const UpdateResponseActionsItemSortQueryStringForCacheId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemSortQueryStringForCacheValue = | "on" | "off"; export const UpdateResponseActionsItemSortQueryStringForCacheValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemSortQueryStringForCache { /** Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. */ id?: UpdateResponseActionsItemSortQueryStringForCacheId | null; /** The status of Query String Sort */ value?: UpdateResponseActionsItemSortQueryStringForCacheValue | null; } export const UpdateResponseActionsItemSortQueryStringForCache = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional( S.NullOr(UpdateResponseActionsItemSortQueryStringForCacheId), ), value: S.optional( S.NullOr(UpdateResponseActionsItemSortQueryStringForCacheValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemSortQueryStringForCache", }) as any as S.Schema; export type UpdateResponseActionsItemSSLId = "ssl"; export const UpdateResponseActionsItemSSLId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemSSLValue = | "off" | "flexible" | "full" | "strict" | "origin_pull"; export const UpdateResponseActionsItemSSLValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemSSL { /** Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app. */ id?: UpdateResponseActionsItemSSLId | null; /** The encryption mode that Cloudflare uses to connect to your origin server. */ value?: UpdateResponseActionsItemSSLValue | null; } export const UpdateResponseActionsItemSSL = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemSSLId)), value: S.optional(S.NullOr(UpdateResponseActionsItemSSLValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemSSL", }) as any as S.Schema; export type UpdateResponseActionsItemTrueClientIPHeaderId = "true_client_ip_header"; export const UpdateResponseActionsItemTrueClientIPHeaderId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemTrueClientIPHeaderValue = "on" | "off"; export const UpdateResponseActionsItemTrueClientIPHeaderValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemTrueClientIPHeader { /** Turn on or off the True-Client-IP Header feature of the Cloudflare Network app. */ id?: UpdateResponseActionsItemTrueClientIPHeaderId | null; /** The status of True Client IP Header. */ value?: UpdateResponseActionsItemTrueClientIPHeaderValue | null; } export const UpdateResponseActionsItemTrueClientIPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemTrueClientIPHeaderId)), value: S.optional( S.NullOr(UpdateResponseActionsItemTrueClientIPHeaderValue), ), }), ).annotate({ identifier: "UpdateResponseActionsItemTrueClientIPHeader", }) as any as S.Schema; export type UpdateResponseActionsItemWAFId = "waf"; export const UpdateResponseActionsItemWAFId = /*@__PURE__*/ S.String; export type UpdateResponseActionsItemWAFValue = "on" | "off"; export const UpdateResponseActionsItemWAFValue = /*@__PURE__*/ S.String; export interface UpdateResponseActionsItemWAF { /** Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). */ id?: UpdateResponseActionsItemWAFId | null; /** The status of WAF managed rules (previous version). */ value?: UpdateResponseActionsItemWAFValue | null; } export const UpdateResponseActionsItemWAF = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.NullOr(UpdateResponseActionsItemWAFId)), value: S.optional(S.NullOr(UpdateResponseActionsItemWAFValue)), }), ).annotate({ identifier: "UpdateResponseActionsItemWAF", }) as any as S.Schema; export type UpdateResponseActionsItem = | UpdateResponseActionsItemAlwaysUseHTTPS | UpdateResponseActionsItemAutomaticHTTPSRewrites | UpdateResponseActionsItemBrowserCacheTTL | UpdateResponseActionsItemBrowserCheck | UpdateResponseActionsItemBypassCacheOnCookie | UpdateResponseActionsItemCacheByDeviceType | UpdateResponseActionsItemCacheDeceptionArmor | UpdateResponseActionsItemCacheKeyFields | UpdateResponseActionsItemCacheLevel | UpdateResponseActionsItemCacheOnCookie | UpdateResponseActionsItemCacheTTLByStatus | UpdateResponseActionsItemDisableApps | UpdateResponseActionsItemDisablePerformance | UpdateResponseActionsItemDisableSecurity | UpdateResponseActionsItemDisableZaraz | UpdateResponseActionsItemEdgeCacheTTL | UpdateResponseActionsItemEmailObfuscation | UpdateResponseActionsItemExplicitCacheControl | UpdateResponseActionsItemForwardingURL | UpdateResponseActionsItemHostHeaderOverride | UpdateResponseActionsItemIPGeolocation | UpdateResponseActionsItemMirage | UpdateResponseActionsItemOpportunisticEncryption | UpdateResponseActionsItemOriginErrorPagePassThru | UpdateResponseActionsItemPolish | UpdateResponseActionsItemResolveOverride | UpdateResponseActionsItemRespectStrongEtag | UpdateResponseActionsItemResponseBuffering | UpdateResponseActionsItemRocketLoader | UpdateResponseActionsItemSecurityLevel | UpdateResponseActionsItemSortQueryStringForCache | UpdateResponseActionsItemSSL | UpdateResponseActionsItemTrueClientIPHeader | UpdateResponseActionsItemWAF; export const UpdateResponseActionsItem = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id"], ["id"], ["id"], ["id"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ["id", "value"], ]), ); export type UpdateResponseActionsList = Array; export const UpdateResponseActionsList = /*@__PURE__*/ S.Array( UpdateResponseActionsItem, ) as any as S.Schema; export type UpdateResponseStatus = "active" | "disabled"; export const UpdateResponseStatus = /*@__PURE__*/ S.String; export type UpdateResponseTargetsItemConstraintOperator = | "matches" | "contains" | "equals" | "not_equal" | "not_contain"; export const UpdateResponseTargetsItemConstraintOperator = /*@__PURE__*/ S.String; export interface UpdateResponseTargetsItemConstraint { /** The matches operator can use asterisks and pipes as wildcard and 'or' operators. */ operator: UpdateResponseTargetsItemConstraintOperator; /** The URL pattern to match against the current request. The pattern may contain up to four asterisks ('*') as placeholders. */ value: string; } export const UpdateResponseTargetsItemConstraint = /*@__PURE__*/ S.suspend(() => S.Struct({ operator: UpdateResponseTargetsItemConstraintOperator, value: S.String, }), ).annotate({ identifier: "UpdateResponseTargetsItemConstraint", }) as any as S.Schema; export type UpdateResponseTargetsItemTarget = "url"; export const UpdateResponseTargetsItemTarget = /*@__PURE__*/ S.String; export interface UpdateResponseTargetsItem { /** String constraint. */ constraint?: UpdateResponseTargetsItemConstraint | null; /** A target based on the URL of the request. */ target?: UpdateResponseTargetsItemTarget | null; } export const UpdateResponseTargetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ constraint: S.optional(S.NullOr(UpdateResponseTargetsItemConstraint)), target: S.optional(S.NullOr(UpdateResponseTargetsItemTarget)), }), ).annotate({ identifier: "UpdateResponseTargetsItem", }) as any as S.Schema; export type UpdateResponseTargetsList = Array; export const UpdateResponseTargetsList = /*@__PURE__*/ S.Array( UpdateResponseTargetsItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdatePageRuleResponse { /** Identifier. */ id: string; /** The set of actions to perform if the targets of this rule match the */ actions: UpdateResponseActionsList; /** The timestamp of when the Page Rule was created. */ createdOn: string; /** The timestamp of when the Page Rule was last modified. */ modifiedOn: string; /** The priority of the rule, used to define which Page Rule is processed */ priority: number; /** The status of the Page Rule. */ status: UpdateResponseStatus; /** The rule targets to evaluate on each request. */ targets: UpdateResponseTargetsList; } export const UpdatePageRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, actions: UpdateResponseActionsList, createdOn: S.String.pipe(T.Body("created_on")), modifiedOn: S.String.pipe(T.Body("modified_on")), priority: S.Number, status: UpdateResponseStatus, targets: UpdateResponseTargetsList, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "UpdatePageRuleResponse", }) as any as S.Schema; export type CreatePageRuleError = Forbidden | CloudflareOpError; /** Creates a new Page Rule. */ export const createPageRule: API.OperationMethod< CreatePageRuleRequest, CreatePageRuleResponse, CreatePageRuleError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: CreatePageRuleRequest, output: CreatePageRuleResponse, errors: [Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type DeletePageRuleError = | PageRuleNotFound | Forbidden | CloudflareOpError; /** Deletes an existing Page Rule. */ export const deletePageRule: API.OperationMethod< DeletePageRuleRequest, DeletePageRuleResponse, DeletePageRuleError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: DeletePageRuleRequest, output: DeletePageRuleResponse, errors: [PageRuleNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetPageRuleError = PageRuleNotFound | Forbidden | CloudflareOpError; /** Fetches the details of a Page Rule. */ export const getPageRule: API.OperationMethod< GetPageRuleRequest, GetPageRuleResponse, GetPageRuleError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetPageRuleRequest, output: GetPageRuleResponse, errors: [PageRuleNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type ListPageRulesError = | Forbidden | InvalidZoneIdentifier | CloudflareOpError; /** Fetches Page Rules in a zone. */ export const listPageRules: API.OperationMethod< ListPageRulesRequest, ListPageRulesResponse, ListPageRulesError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: ListPageRulesRequest, output: ListPageRulesResponse, errors: [ Forbidden, InvalidZoneIdentifier, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type PatchPageRuleError = | PageRuleNotFound | Forbidden | CloudflareOpError; /** Updates one or more fields of an existing Page Rule. */ export const patchPageRule: API.OperationMethod< PatchPageRuleRequest, PatchPageRuleResponse, PatchPageRuleError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: PatchPageRuleRequest, output: PatchPageRuleResponse, errors: [PageRuleNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type UpdatePageRuleError = | PageRuleNotFound | Forbidden | CloudflareOpError; /** Replaces the configuration of an existing Page Rule. The configuration of the updated Page Rule will exactly match the data passed in the API request. */ export const updatePageRule: API.OperationMethod< UpdatePageRuleRequest, UpdatePageRuleResponse, UpdatePageRuleError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: UpdatePageRuleRequest, output: UpdatePageRuleResponse, errors: [PageRuleNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, }));