@distilled.cloud/cloudflare 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/lib/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -19,7 +19,18 @@ export interface GetPageRuleResponse {
19
19
  /** Identifier. */
20
20
  id: string;
21
21
  /** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
22
- actions: (unknown | {
22
+ actions: ({
23
+ id?: "always_use_https" | null;
24
+ } | {
25
+ id?: "automatic_https_rewrites" | null;
26
+ value?: "on" | "off" | null;
27
+ } | {
28
+ id?: "browser_cache_ttl" | null;
29
+ value?: number | null;
30
+ } | {
31
+ id?: "browser_check" | null;
32
+ value?: "on" | "off" | null;
33
+ } | {
23
34
  id?: "bypass_cache_on_cookie" | null;
24
35
  value?: string | null;
25
36
  } | {
@@ -53,6 +64,9 @@ export interface GetPageRuleResponse {
53
64
  lang?: boolean | null;
54
65
  } | null;
55
66
  } | null;
67
+ } | {
68
+ id?: "cache_level" | null;
69
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything" | null;
56
70
  } | {
57
71
  id?: "cache_on_cookie" | null;
58
72
  value?: string | null;
@@ -70,6 +84,9 @@ export interface GetPageRuleResponse {
70
84
  } | {
71
85
  id?: "edge_cache_ttl" | null;
72
86
  value?: number | null;
87
+ } | {
88
+ id?: "email_obfuscation" | null;
89
+ value?: "on" | "off" | null;
73
90
  } | {
74
91
  id?: "explicit_cache_control" | null;
75
92
  value?: "on" | "off" | null;
@@ -82,12 +99,48 @@ export interface GetPageRuleResponse {
82
99
  } | {
83
100
  id?: "host_header_override" | null;
84
101
  value?: string | null;
102
+ } | {
103
+ id?: "ip_geolocation" | null;
104
+ value?: "on" | "off" | null;
105
+ } | {
106
+ id?: "mirage" | null;
107
+ value?: "on" | "off" | null;
108
+ } | {
109
+ id?: "opportunistic_encryption" | null;
110
+ value?: "on" | "off" | null;
111
+ } | {
112
+ id?: "origin_error_page_pass_thru" | null;
113
+ value?: "on" | "off" | null;
114
+ } | {
115
+ id?: "polish" | null;
116
+ value?: "off" | "lossless" | "lossy" | null;
85
117
  } | {
86
118
  id?: "resolve_override" | null;
87
119
  value?: string | null;
88
120
  } | {
89
121
  id?: "respect_strong_etag" | null;
90
122
  value?: "on" | "off" | null;
123
+ } | {
124
+ id?: "response_buffering" | null;
125
+ value?: "on" | "off" | null;
126
+ } | {
127
+ id?: "rocket_loader" | null;
128
+ value?: "on" | "off" | null;
129
+ } | {
130
+ id?: "security_level" | null;
131
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack" | null;
132
+ } | {
133
+ id?: "sort_query_string_for_cache" | null;
134
+ value?: "on" | "off" | null;
135
+ } | {
136
+ id?: "ssl" | null;
137
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
138
+ } | {
139
+ id?: "true_client_ip_header" | null;
140
+ value?: "on" | "off" | null;
141
+ } | {
142
+ id?: "waf" | null;
143
+ value?: "on" | "off" | null;
91
144
  })[];
92
145
  /** The timestamp of when the Page Rule was created. */
93
146
  createdOn: string;
@@ -124,7 +177,18 @@ export interface ListPageRulesRequest {
124
177
  export declare const ListPageRulesRequest: Schema.Schema<ListPageRulesRequest>;
125
178
  export type ListPageRulesResponse = {
126
179
  id: string;
127
- actions: (unknown | {
180
+ actions: ({
181
+ id?: "always_use_https" | null;
182
+ } | {
183
+ id?: "automatic_https_rewrites" | null;
184
+ value?: "on" | "off" | null;
185
+ } | {
186
+ id?: "browser_cache_ttl" | null;
187
+ value?: number | null;
188
+ } | {
189
+ id?: "browser_check" | null;
190
+ value?: "on" | "off" | null;
191
+ } | {
128
192
  id?: "bypass_cache_on_cookie" | null;
129
193
  value?: string | null;
130
194
  } | {
@@ -158,6 +222,9 @@ export type ListPageRulesResponse = {
158
222
  lang?: boolean | null;
159
223
  } | null;
160
224
  } | null;
225
+ } | {
226
+ id?: "cache_level" | null;
227
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything" | null;
161
228
  } | {
162
229
  id?: "cache_on_cookie" | null;
163
230
  value?: string | null;
@@ -175,6 +242,9 @@ export type ListPageRulesResponse = {
175
242
  } | {
176
243
  id?: "edge_cache_ttl" | null;
177
244
  value?: number | null;
245
+ } | {
246
+ id?: "email_obfuscation" | null;
247
+ value?: "on" | "off" | null;
178
248
  } | {
179
249
  id?: "explicit_cache_control" | null;
180
250
  value?: "on" | "off" | null;
@@ -187,12 +257,48 @@ export type ListPageRulesResponse = {
187
257
  } | {
188
258
  id?: "host_header_override" | null;
189
259
  value?: string | null;
260
+ } | {
261
+ id?: "ip_geolocation" | null;
262
+ value?: "on" | "off" | null;
263
+ } | {
264
+ id?: "mirage" | null;
265
+ value?: "on" | "off" | null;
266
+ } | {
267
+ id?: "opportunistic_encryption" | null;
268
+ value?: "on" | "off" | null;
269
+ } | {
270
+ id?: "origin_error_page_pass_thru" | null;
271
+ value?: "on" | "off" | null;
272
+ } | {
273
+ id?: "polish" | null;
274
+ value?: "off" | "lossless" | "lossy" | null;
190
275
  } | {
191
276
  id?: "resolve_override" | null;
192
277
  value?: string | null;
193
278
  } | {
194
279
  id?: "respect_strong_etag" | null;
195
280
  value?: "on" | "off" | null;
281
+ } | {
282
+ id?: "response_buffering" | null;
283
+ value?: "on" | "off" | null;
284
+ } | {
285
+ id?: "rocket_loader" | null;
286
+ value?: "on" | "off" | null;
287
+ } | {
288
+ id?: "security_level" | null;
289
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack" | null;
290
+ } | {
291
+ id?: "sort_query_string_for_cache" | null;
292
+ value?: "on" | "off" | null;
293
+ } | {
294
+ id?: "ssl" | null;
295
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
296
+ } | {
297
+ id?: "true_client_ip_header" | null;
298
+ value?: "on" | "off" | null;
299
+ } | {
300
+ id?: "waf" | null;
301
+ value?: "on" | "off" | null;
196
302
  })[];
197
303
  createdOn: string;
198
304
  modifiedOn: string;
@@ -213,7 +319,18 @@ export interface CreatePageRuleRequest {
213
319
  /** Path param: Identifier. */
214
320
  zoneId: string;
215
321
  /** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
216
- actions: (unknown | {
322
+ actions: ({
323
+ id?: "always_use_https";
324
+ } | {
325
+ id?: "automatic_https_rewrites";
326
+ value?: "on" | "off";
327
+ } | {
328
+ id?: "browser_cache_ttl";
329
+ value?: number;
330
+ } | {
331
+ id?: "browser_check";
332
+ value?: "on" | "off";
333
+ } | {
217
334
  id?: "bypass_cache_on_cookie";
218
335
  value?: string;
219
336
  } | {
@@ -247,6 +364,9 @@ export interface CreatePageRuleRequest {
247
364
  lang?: boolean;
248
365
  };
249
366
  };
367
+ } | {
368
+ id?: "cache_level";
369
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything";
250
370
  } | {
251
371
  id?: "cache_on_cookie";
252
372
  value?: string;
@@ -264,6 +384,9 @@ export interface CreatePageRuleRequest {
264
384
  } | {
265
385
  id?: "edge_cache_ttl";
266
386
  value?: number;
387
+ } | {
388
+ id?: "email_obfuscation";
389
+ value?: "on" | "off";
267
390
  } | {
268
391
  id?: "explicit_cache_control";
269
392
  value?: "on" | "off";
@@ -276,12 +399,48 @@ export interface CreatePageRuleRequest {
276
399
  } | {
277
400
  id?: "host_header_override";
278
401
  value?: string;
402
+ } | {
403
+ id?: "ip_geolocation";
404
+ value?: "on" | "off";
405
+ } | {
406
+ id?: "mirage";
407
+ value?: "on" | "off";
408
+ } | {
409
+ id?: "opportunistic_encryption";
410
+ value?: "on" | "off";
411
+ } | {
412
+ id?: "origin_error_page_pass_thru";
413
+ value?: "on" | "off";
414
+ } | {
415
+ id?: "polish";
416
+ value?: "off" | "lossless" | "lossy";
279
417
  } | {
280
418
  id?: "resolve_override";
281
419
  value?: string;
282
420
  } | {
283
421
  id?: "respect_strong_etag";
284
422
  value?: "on" | "off";
423
+ } | {
424
+ id?: "response_buffering";
425
+ value?: "on" | "off";
426
+ } | {
427
+ id?: "rocket_loader";
428
+ value?: "on" | "off";
429
+ } | {
430
+ id?: "security_level";
431
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack";
432
+ } | {
433
+ id?: "sort_query_string_for_cache";
434
+ value?: "on" | "off";
435
+ } | {
436
+ id?: "ssl";
437
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
438
+ } | {
439
+ id?: "true_client_ip_header";
440
+ value?: "on" | "off";
441
+ } | {
442
+ id?: "waf";
443
+ value?: "on" | "off";
285
444
  })[];
286
445
  /** Body param: The rule targets to evaluate on each request. */
287
446
  targets: {
@@ -301,7 +460,18 @@ export interface CreatePageRuleResponse {
301
460
  /** Identifier. */
302
461
  id: string;
303
462
  /** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
304
- actions: (unknown | {
463
+ actions: ({
464
+ id?: "always_use_https" | null;
465
+ } | {
466
+ id?: "automatic_https_rewrites" | null;
467
+ value?: "on" | "off" | null;
468
+ } | {
469
+ id?: "browser_cache_ttl" | null;
470
+ value?: number | null;
471
+ } | {
472
+ id?: "browser_check" | null;
473
+ value?: "on" | "off" | null;
474
+ } | {
305
475
  id?: "bypass_cache_on_cookie" | null;
306
476
  value?: string | null;
307
477
  } | {
@@ -335,6 +505,9 @@ export interface CreatePageRuleResponse {
335
505
  lang?: boolean | null;
336
506
  } | null;
337
507
  } | null;
508
+ } | {
509
+ id?: "cache_level" | null;
510
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything" | null;
338
511
  } | {
339
512
  id?: "cache_on_cookie" | null;
340
513
  value?: string | null;
@@ -352,6 +525,9 @@ export interface CreatePageRuleResponse {
352
525
  } | {
353
526
  id?: "edge_cache_ttl" | null;
354
527
  value?: number | null;
528
+ } | {
529
+ id?: "email_obfuscation" | null;
530
+ value?: "on" | "off" | null;
355
531
  } | {
356
532
  id?: "explicit_cache_control" | null;
357
533
  value?: "on" | "off" | null;
@@ -364,12 +540,48 @@ export interface CreatePageRuleResponse {
364
540
  } | {
365
541
  id?: "host_header_override" | null;
366
542
  value?: string | null;
543
+ } | {
544
+ id?: "ip_geolocation" | null;
545
+ value?: "on" | "off" | null;
546
+ } | {
547
+ id?: "mirage" | null;
548
+ value?: "on" | "off" | null;
549
+ } | {
550
+ id?: "opportunistic_encryption" | null;
551
+ value?: "on" | "off" | null;
552
+ } | {
553
+ id?: "origin_error_page_pass_thru" | null;
554
+ value?: "on" | "off" | null;
555
+ } | {
556
+ id?: "polish" | null;
557
+ value?: "off" | "lossless" | "lossy" | null;
367
558
  } | {
368
559
  id?: "resolve_override" | null;
369
560
  value?: string | null;
370
561
  } | {
371
562
  id?: "respect_strong_etag" | null;
372
563
  value?: "on" | "off" | null;
564
+ } | {
565
+ id?: "response_buffering" | null;
566
+ value?: "on" | "off" | null;
567
+ } | {
568
+ id?: "rocket_loader" | null;
569
+ value?: "on" | "off" | null;
570
+ } | {
571
+ id?: "security_level" | null;
572
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack" | null;
573
+ } | {
574
+ id?: "sort_query_string_for_cache" | null;
575
+ value?: "on" | "off" | null;
576
+ } | {
577
+ id?: "ssl" | null;
578
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
579
+ } | {
580
+ id?: "true_client_ip_header" | null;
581
+ value?: "on" | "off" | null;
582
+ } | {
583
+ id?: "waf" | null;
584
+ value?: "on" | "off" | null;
373
585
  })[];
374
586
  /** The timestamp of when the Page Rule was created. */
375
587
  createdOn: string;
@@ -396,7 +608,18 @@ export interface UpdatePageRuleRequest {
396
608
  /** Path param: Identifier. */
397
609
  zoneId: string;
398
610
  /** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
399
- actions: (unknown | {
611
+ actions: ({
612
+ id?: "always_use_https";
613
+ } | {
614
+ id?: "automatic_https_rewrites";
615
+ value?: "on" | "off";
616
+ } | {
617
+ id?: "browser_cache_ttl";
618
+ value?: number;
619
+ } | {
620
+ id?: "browser_check";
621
+ value?: "on" | "off";
622
+ } | {
400
623
  id?: "bypass_cache_on_cookie";
401
624
  value?: string;
402
625
  } | {
@@ -430,6 +653,9 @@ export interface UpdatePageRuleRequest {
430
653
  lang?: boolean;
431
654
  };
432
655
  };
656
+ } | {
657
+ id?: "cache_level";
658
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything";
433
659
  } | {
434
660
  id?: "cache_on_cookie";
435
661
  value?: string;
@@ -447,6 +673,9 @@ export interface UpdatePageRuleRequest {
447
673
  } | {
448
674
  id?: "edge_cache_ttl";
449
675
  value?: number;
676
+ } | {
677
+ id?: "email_obfuscation";
678
+ value?: "on" | "off";
450
679
  } | {
451
680
  id?: "explicit_cache_control";
452
681
  value?: "on" | "off";
@@ -459,12 +688,48 @@ export interface UpdatePageRuleRequest {
459
688
  } | {
460
689
  id?: "host_header_override";
461
690
  value?: string;
691
+ } | {
692
+ id?: "ip_geolocation";
693
+ value?: "on" | "off";
694
+ } | {
695
+ id?: "mirage";
696
+ value?: "on" | "off";
697
+ } | {
698
+ id?: "opportunistic_encryption";
699
+ value?: "on" | "off";
700
+ } | {
701
+ id?: "origin_error_page_pass_thru";
702
+ value?: "on" | "off";
703
+ } | {
704
+ id?: "polish";
705
+ value?: "off" | "lossless" | "lossy";
462
706
  } | {
463
707
  id?: "resolve_override";
464
708
  value?: string;
465
709
  } | {
466
710
  id?: "respect_strong_etag";
467
711
  value?: "on" | "off";
712
+ } | {
713
+ id?: "response_buffering";
714
+ value?: "on" | "off";
715
+ } | {
716
+ id?: "rocket_loader";
717
+ value?: "on" | "off";
718
+ } | {
719
+ id?: "security_level";
720
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack";
721
+ } | {
722
+ id?: "sort_query_string_for_cache";
723
+ value?: "on" | "off";
724
+ } | {
725
+ id?: "ssl";
726
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
727
+ } | {
728
+ id?: "true_client_ip_header";
729
+ value?: "on" | "off";
730
+ } | {
731
+ id?: "waf";
732
+ value?: "on" | "off";
468
733
  })[];
469
734
  /** Body param: The rule targets to evaluate on each request. */
470
735
  targets: {
@@ -484,7 +749,18 @@ export interface UpdatePageRuleResponse {
484
749
  /** Identifier. */
485
750
  id: string;
486
751
  /** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
487
- actions: (unknown | {
752
+ actions: ({
753
+ id?: "always_use_https" | null;
754
+ } | {
755
+ id?: "automatic_https_rewrites" | null;
756
+ value?: "on" | "off" | null;
757
+ } | {
758
+ id?: "browser_cache_ttl" | null;
759
+ value?: number | null;
760
+ } | {
761
+ id?: "browser_check" | null;
762
+ value?: "on" | "off" | null;
763
+ } | {
488
764
  id?: "bypass_cache_on_cookie" | null;
489
765
  value?: string | null;
490
766
  } | {
@@ -518,6 +794,9 @@ export interface UpdatePageRuleResponse {
518
794
  lang?: boolean | null;
519
795
  } | null;
520
796
  } | null;
797
+ } | {
798
+ id?: "cache_level" | null;
799
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything" | null;
521
800
  } | {
522
801
  id?: "cache_on_cookie" | null;
523
802
  value?: string | null;
@@ -535,6 +814,9 @@ export interface UpdatePageRuleResponse {
535
814
  } | {
536
815
  id?: "edge_cache_ttl" | null;
537
816
  value?: number | null;
817
+ } | {
818
+ id?: "email_obfuscation" | null;
819
+ value?: "on" | "off" | null;
538
820
  } | {
539
821
  id?: "explicit_cache_control" | null;
540
822
  value?: "on" | "off" | null;
@@ -547,12 +829,48 @@ export interface UpdatePageRuleResponse {
547
829
  } | {
548
830
  id?: "host_header_override" | null;
549
831
  value?: string | null;
832
+ } | {
833
+ id?: "ip_geolocation" | null;
834
+ value?: "on" | "off" | null;
835
+ } | {
836
+ id?: "mirage" | null;
837
+ value?: "on" | "off" | null;
838
+ } | {
839
+ id?: "opportunistic_encryption" | null;
840
+ value?: "on" | "off" | null;
841
+ } | {
842
+ id?: "origin_error_page_pass_thru" | null;
843
+ value?: "on" | "off" | null;
844
+ } | {
845
+ id?: "polish" | null;
846
+ value?: "off" | "lossless" | "lossy" | null;
550
847
  } | {
551
848
  id?: "resolve_override" | null;
552
849
  value?: string | null;
553
850
  } | {
554
851
  id?: "respect_strong_etag" | null;
555
852
  value?: "on" | "off" | null;
853
+ } | {
854
+ id?: "response_buffering" | null;
855
+ value?: "on" | "off" | null;
856
+ } | {
857
+ id?: "rocket_loader" | null;
858
+ value?: "on" | "off" | null;
859
+ } | {
860
+ id?: "security_level" | null;
861
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack" | null;
862
+ } | {
863
+ id?: "sort_query_string_for_cache" | null;
864
+ value?: "on" | "off" | null;
865
+ } | {
866
+ id?: "ssl" | null;
867
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
868
+ } | {
869
+ id?: "true_client_ip_header" | null;
870
+ value?: "on" | "off" | null;
871
+ } | {
872
+ id?: "waf" | null;
873
+ value?: "on" | "off" | null;
556
874
  })[];
557
875
  /** The timestamp of when the Page Rule was created. */
558
876
  createdOn: string;
@@ -579,7 +897,18 @@ export interface PatchPageRuleRequest {
579
897
  /** Path param: Identifier. */
580
898
  zoneId: string;
581
899
  /** Body param: The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
582
- actions?: (unknown | {
900
+ actions?: ({
901
+ id?: "always_use_https";
902
+ } | {
903
+ id?: "automatic_https_rewrites";
904
+ value?: "on" | "off";
905
+ } | {
906
+ id?: "browser_cache_ttl";
907
+ value?: number;
908
+ } | {
909
+ id?: "browser_check";
910
+ value?: "on" | "off";
911
+ } | {
583
912
  id?: "bypass_cache_on_cookie";
584
913
  value?: string;
585
914
  } | {
@@ -613,6 +942,9 @@ export interface PatchPageRuleRequest {
613
942
  lang?: boolean;
614
943
  };
615
944
  };
945
+ } | {
946
+ id?: "cache_level";
947
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything";
616
948
  } | {
617
949
  id?: "cache_on_cookie";
618
950
  value?: string;
@@ -630,6 +962,9 @@ export interface PatchPageRuleRequest {
630
962
  } | {
631
963
  id?: "edge_cache_ttl";
632
964
  value?: number;
965
+ } | {
966
+ id?: "email_obfuscation";
967
+ value?: "on" | "off";
633
968
  } | {
634
969
  id?: "explicit_cache_control";
635
970
  value?: "on" | "off";
@@ -642,12 +977,48 @@ export interface PatchPageRuleRequest {
642
977
  } | {
643
978
  id?: "host_header_override";
644
979
  value?: string;
980
+ } | {
981
+ id?: "ip_geolocation";
982
+ value?: "on" | "off";
983
+ } | {
984
+ id?: "mirage";
985
+ value?: "on" | "off";
986
+ } | {
987
+ id?: "opportunistic_encryption";
988
+ value?: "on" | "off";
989
+ } | {
990
+ id?: "origin_error_page_pass_thru";
991
+ value?: "on" | "off";
992
+ } | {
993
+ id?: "polish";
994
+ value?: "off" | "lossless" | "lossy";
645
995
  } | {
646
996
  id?: "resolve_override";
647
997
  value?: string;
648
998
  } | {
649
999
  id?: "respect_strong_etag";
650
1000
  value?: "on" | "off";
1001
+ } | {
1002
+ id?: "response_buffering";
1003
+ value?: "on" | "off";
1004
+ } | {
1005
+ id?: "rocket_loader";
1006
+ value?: "on" | "off";
1007
+ } | {
1008
+ id?: "security_level";
1009
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack";
1010
+ } | {
1011
+ id?: "sort_query_string_for_cache";
1012
+ value?: "on" | "off";
1013
+ } | {
1014
+ id?: "ssl";
1015
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull";
1016
+ } | {
1017
+ id?: "true_client_ip_header";
1018
+ value?: "on" | "off";
1019
+ } | {
1020
+ id?: "waf";
1021
+ value?: "on" | "off";
651
1022
  })[];
652
1023
  /** Body param: The priority of the rule, used to define which Page Rule is processed over another. A higher number indicates a higher priority. For example, if you have a catch-all Page Rule (rule A: `/i */
653
1024
  priority?: number;
@@ -667,7 +1038,18 @@ export interface PatchPageRuleResponse {
667
1038
  /** Identifier. */
668
1039
  id: string;
669
1040
  /** The set of actions to perform if the targets of this rule match the request. Actions can redirect to another URL or override settings, but not both. */
670
- actions: (unknown | {
1041
+ actions: ({
1042
+ id?: "always_use_https" | null;
1043
+ } | {
1044
+ id?: "automatic_https_rewrites" | null;
1045
+ value?: "on" | "off" | null;
1046
+ } | {
1047
+ id?: "browser_cache_ttl" | null;
1048
+ value?: number | null;
1049
+ } | {
1050
+ id?: "browser_check" | null;
1051
+ value?: "on" | "off" | null;
1052
+ } | {
671
1053
  id?: "bypass_cache_on_cookie" | null;
672
1054
  value?: string | null;
673
1055
  } | {
@@ -701,6 +1083,9 @@ export interface PatchPageRuleResponse {
701
1083
  lang?: boolean | null;
702
1084
  } | null;
703
1085
  } | null;
1086
+ } | {
1087
+ id?: "cache_level" | null;
1088
+ value?: "bypass" | "basic" | "simplified" | "aggressive" | "cache_everything" | null;
704
1089
  } | {
705
1090
  id?: "cache_on_cookie" | null;
706
1091
  value?: string | null;
@@ -718,6 +1103,9 @@ export interface PatchPageRuleResponse {
718
1103
  } | {
719
1104
  id?: "edge_cache_ttl" | null;
720
1105
  value?: number | null;
1106
+ } | {
1107
+ id?: "email_obfuscation" | null;
1108
+ value?: "on" | "off" | null;
721
1109
  } | {
722
1110
  id?: "explicit_cache_control" | null;
723
1111
  value?: "on" | "off" | null;
@@ -730,12 +1118,48 @@ export interface PatchPageRuleResponse {
730
1118
  } | {
731
1119
  id?: "host_header_override" | null;
732
1120
  value?: string | null;
1121
+ } | {
1122
+ id?: "ip_geolocation" | null;
1123
+ value?: "on" | "off" | null;
1124
+ } | {
1125
+ id?: "mirage" | null;
1126
+ value?: "on" | "off" | null;
1127
+ } | {
1128
+ id?: "opportunistic_encryption" | null;
1129
+ value?: "on" | "off" | null;
1130
+ } | {
1131
+ id?: "origin_error_page_pass_thru" | null;
1132
+ value?: "on" | "off" | null;
1133
+ } | {
1134
+ id?: "polish" | null;
1135
+ value?: "off" | "lossless" | "lossy" | null;
733
1136
  } | {
734
1137
  id?: "resolve_override" | null;
735
1138
  value?: string | null;
736
1139
  } | {
737
1140
  id?: "respect_strong_etag" | null;
738
1141
  value?: "on" | "off" | null;
1142
+ } | {
1143
+ id?: "response_buffering" | null;
1144
+ value?: "on" | "off" | null;
1145
+ } | {
1146
+ id?: "rocket_loader" | null;
1147
+ value?: "on" | "off" | null;
1148
+ } | {
1149
+ id?: "security_level" | null;
1150
+ value?: "off" | "essentially_off" | "low" | "medium" | "high" | "under_attack" | null;
1151
+ } | {
1152
+ id?: "sort_query_string_for_cache" | null;
1153
+ value?: "on" | "off" | null;
1154
+ } | {
1155
+ id?: "ssl" | null;
1156
+ value?: "off" | "flexible" | "full" | "strict" | "origin_pull" | null;
1157
+ } | {
1158
+ id?: "true_client_ip_header" | null;
1159
+ value?: "on" | "off" | null;
1160
+ } | {
1161
+ id?: "waf" | null;
1162
+ value?: "on" | "off" | null;
739
1163
  })[];
740
1164
  /** The timestamp of when the Page Rule was created. */
741
1165
  createdOn: string;