@distilled.cloud/cloudflare 0.6.1 → 0.7.1

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
@@ -286,7 +286,13 @@ export interface GetLockdownResponse {
286
286
  /** The unique identifier of the Zone Lockdown rule. */
287
287
  id: string;
288
288
  /** A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. */
289
- configurations: unknown;
289
+ configurations: ({
290
+ target?: "ip" | null;
291
+ value?: string | null;
292
+ } | {
293
+ target?: "ip_range" | null;
294
+ value?: string | null;
295
+ })[];
290
296
  /** The timestamp of when the rule was created. */
291
297
  createdOn: string;
292
298
  /** An informative summary of the rule. */
@@ -327,7 +333,13 @@ export declare const ListLockdownsRequest: Schema.Schema<ListLockdownsRequest>;
327
333
  export interface ListLockdownsResponse {
328
334
  result: {
329
335
  id: string;
330
- configurations: unknown;
336
+ configurations: ({
337
+ target?: "ip" | null;
338
+ value?: string | null;
339
+ } | {
340
+ target?: "ip_range" | null;
341
+ value?: string | null;
342
+ })[];
331
343
  createdOn: string;
332
344
  description: string;
333
345
  modifiedOn: string;
@@ -347,7 +359,13 @@ export declare const listLockdowns: API.PaginatedOperationMethod<ListLockdownsRe
347
359
  pages: (input: ListLockdownsRequest) => stream.Stream<ListLockdownsResponse, ListLockdownsError, Credentials | HttpClient.HttpClient>;
348
360
  items: (input: ListLockdownsRequest) => stream.Stream<{
349
361
  id: string;
350
- configurations: unknown;
362
+ configurations: ({
363
+ target?: "ip" | null;
364
+ value?: string | null;
365
+ } | {
366
+ target?: "ip_range" | null;
367
+ value?: string | null;
368
+ })[];
351
369
  createdOn: string;
352
370
  description: string;
353
371
  modifiedOn: string;
@@ -359,7 +377,13 @@ export interface CreateLockdownRequest {
359
377
  /** Path param: Defines an identifier. */
360
378
  zoneId: string;
361
379
  /** Body param: A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. */
362
- configurations: unknown;
380
+ configurations: ({
381
+ target?: "ip";
382
+ value?: string;
383
+ } | {
384
+ target?: "ip_range";
385
+ value?: string;
386
+ })[];
363
387
  /** Body param: The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
364
388
  urls: string[];
365
389
  /** Body param: An informative summary of the rule. This value is sanitized and any tags will be removed. */
@@ -374,7 +398,13 @@ export interface CreateLockdownResponse {
374
398
  /** The unique identifier of the Zone Lockdown rule. */
375
399
  id: string;
376
400
  /** A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. */
377
- configurations: unknown;
401
+ configurations: ({
402
+ target?: "ip" | null;
403
+ value?: string | null;
404
+ } | {
405
+ target?: "ip_range" | null;
406
+ value?: string | null;
407
+ })[];
378
408
  /** The timestamp of when the rule was created. */
379
409
  createdOn: string;
380
410
  /** An informative summary of the rule. */
@@ -394,7 +424,13 @@ export interface UpdateLockdownRequest {
394
424
  /** Path param: Defines an identifier. */
395
425
  zoneId: string;
396
426
  /** Body param: A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. */
397
- configurations: unknown;
427
+ configurations: ({
428
+ target?: "ip";
429
+ value?: string;
430
+ } | {
431
+ target?: "ip_range";
432
+ value?: string;
433
+ })[];
398
434
  /** Body param: The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
399
435
  urls: string[];
400
436
  }
@@ -403,7 +439,13 @@ export interface UpdateLockdownResponse {
403
439
  /** The unique identifier of the Zone Lockdown rule. */
404
440
  id: string;
405
441
  /** A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of `ip` or `ip_range` configurations. */
406
- configurations: unknown;
442
+ configurations: ({
443
+ target?: "ip" | null;
444
+ value?: string | null;
445
+ } | {
446
+ target?: "ip_range" | null;
447
+ value?: string | null;
448
+ })[];
407
449
  /** The timestamp of when the rule was created. */
408
450
  createdOn: string;
409
451
  /** An informative summary of the rule. */
@@ -443,7 +485,13 @@ export interface BulkPutRulesResponse {
443
485
  id?: string | null;
444
486
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
445
487
  description?: string | null;
446
- filter?: unknown | {
488
+ filter?: {
489
+ id?: string | null;
490
+ description?: string | null;
491
+ expression?: string | null;
492
+ paused?: boolean | null;
493
+ ref?: string | null;
494
+ } | {
447
495
  id: string;
448
496
  deleted: boolean;
449
497
  } | null;
@@ -461,7 +509,13 @@ export declare const bulkPutRules: API.PaginatedOperationMethod<BulkPutRulesRequ
461
509
  id?: string | null;
462
510
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
463
511
  description?: string | null;
464
- filter?: unknown | {
512
+ filter?: {
513
+ id?: string | null;
514
+ description?: string | null;
515
+ expression?: string | null;
516
+ paused?: boolean | null;
517
+ ref?: string | null;
518
+ } | {
465
519
  id: string;
466
520
  deleted: boolean;
467
521
  } | null;
@@ -484,7 +538,13 @@ export interface GetRuleResponse {
484
538
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
485
539
  /** An informative summary of the firewall rule. */
486
540
  description?: string | null;
487
- filter?: unknown | {
541
+ filter?: {
542
+ id?: string | null;
543
+ description?: string | null;
544
+ expression?: string | null;
545
+ paused?: boolean | null;
546
+ ref?: string | null;
547
+ } | {
488
548
  id: string;
489
549
  deleted: boolean;
490
550
  } | null;
@@ -517,7 +577,13 @@ export interface ListRulesResponse {
517
577
  id?: string | null;
518
578
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
519
579
  description?: string | null;
520
- filter?: unknown | {
580
+ filter?: {
581
+ id?: string | null;
582
+ description?: string | null;
583
+ expression?: string | null;
584
+ paused?: boolean | null;
585
+ ref?: string | null;
586
+ } | {
521
587
  id: string;
522
588
  deleted: boolean;
523
589
  } | null;
@@ -541,7 +607,13 @@ export declare const listRules: API.PaginatedOperationMethod<ListRulesRequest, L
541
607
  id?: string | null;
542
608
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
543
609
  description?: string | null;
544
- filter?: unknown | {
610
+ filter?: {
611
+ id?: string | null;
612
+ description?: string | null;
613
+ expression?: string | null;
614
+ paused?: boolean | null;
615
+ ref?: string | null;
616
+ } | {
545
617
  id: string;
546
618
  deleted: boolean;
547
619
  } | null;
@@ -564,7 +636,12 @@ export interface CreateRuleRequest {
564
636
  timeout?: number;
565
637
  };
566
638
  /** Body param: */
567
- filter: unknown;
639
+ filter: {
640
+ description?: string;
641
+ expression?: string;
642
+ paused?: boolean;
643
+ ref?: string;
644
+ };
568
645
  }
569
646
  export declare const CreateRuleRequest: Schema.Schema<CreateRuleRequest>;
570
647
  export interface CreateRuleResponse {
@@ -572,7 +649,13 @@ export interface CreateRuleResponse {
572
649
  id?: string | null;
573
650
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
574
651
  description?: string | null;
575
- filter?: unknown | {
652
+ filter?: {
653
+ id?: string | null;
654
+ description?: string | null;
655
+ expression?: string | null;
656
+ paused?: boolean | null;
657
+ ref?: string | null;
658
+ } | {
576
659
  id: string;
577
660
  deleted: boolean;
578
661
  } | null;
@@ -590,7 +673,13 @@ export declare const createRule: API.PaginatedOperationMethod<CreateRuleRequest,
590
673
  id?: string | null;
591
674
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
592
675
  description?: string | null;
593
- filter?: unknown | {
676
+ filter?: {
677
+ id?: string | null;
678
+ description?: string | null;
679
+ expression?: string | null;
680
+ paused?: boolean | null;
681
+ ref?: string | null;
682
+ } | {
594
683
  id: string;
595
684
  deleted: boolean;
596
685
  } | null;
@@ -614,7 +703,12 @@ export interface UpdateRuleRequest {
614
703
  timeout?: number;
615
704
  };
616
705
  /** Body param: */
617
- filter: unknown;
706
+ filter: {
707
+ description?: string;
708
+ expression?: string;
709
+ paused?: boolean;
710
+ ref?: string;
711
+ };
618
712
  }
619
713
  export declare const UpdateRuleRequest: Schema.Schema<UpdateRuleRequest>;
620
714
  export interface UpdateRuleResponse {
@@ -624,7 +718,13 @@ export interface UpdateRuleResponse {
624
718
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
625
719
  /** An informative summary of the firewall rule. */
626
720
  description?: string | null;
627
- filter?: unknown | {
721
+ filter?: {
722
+ id?: string | null;
723
+ description?: string | null;
724
+ expression?: string | null;
725
+ paused?: boolean | null;
726
+ ref?: string | null;
727
+ } | {
628
728
  id: string;
629
729
  deleted: boolean;
630
730
  } | null;
@@ -650,7 +750,13 @@ export interface PatchRuleResponse {
650
750
  id?: string | null;
651
751
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
652
752
  description?: string | null;
653
- filter?: unknown | {
753
+ filter?: {
754
+ id?: string | null;
755
+ description?: string | null;
756
+ expression?: string | null;
757
+ paused?: boolean | null;
758
+ ref?: string | null;
759
+ } | {
654
760
  id: string;
655
761
  deleted: boolean;
656
762
  } | null;
@@ -668,7 +774,13 @@ export declare const patchRule: API.PaginatedOperationMethod<PatchRuleRequest, P
668
774
  id?: string | null;
669
775
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
670
776
  description?: string | null;
671
- filter?: unknown | {
777
+ filter?: {
778
+ id?: string | null;
779
+ description?: string | null;
780
+ expression?: string | null;
781
+ paused?: boolean | null;
782
+ ref?: string | null;
783
+ } | {
672
784
  id: string;
673
785
  deleted: boolean;
674
786
  } | null;
@@ -691,7 +803,13 @@ export interface DeleteRuleResponse {
691
803
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
692
804
  /** An informative summary of the firewall rule. */
693
805
  description?: string | null;
694
- filter?: unknown | {
806
+ filter?: {
807
+ id?: string | null;
808
+ description?: string | null;
809
+ expression?: string | null;
810
+ paused?: boolean | null;
811
+ ref?: string | null;
812
+ } | {
695
813
  id: string;
696
814
  deleted: boolean;
697
815
  } | null;
@@ -718,7 +836,13 @@ export interface BulkPatchRulesResponse {
718
836
  id?: string | null;
719
837
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
720
838
  description?: string | null;
721
- filter?: unknown | {
839
+ filter?: {
840
+ id?: string | null;
841
+ description?: string | null;
842
+ expression?: string | null;
843
+ paused?: boolean | null;
844
+ ref?: string | null;
845
+ } | {
722
846
  id: string;
723
847
  deleted: boolean;
724
848
  } | null;
@@ -736,7 +860,13 @@ export declare const bulkPatchRules: API.PaginatedOperationMethod<BulkPatchRules
736
860
  id?: string | null;
737
861
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
738
862
  description?: string | null;
739
- filter?: unknown | {
863
+ filter?: {
864
+ id?: string | null;
865
+ description?: string | null;
866
+ expression?: string | null;
867
+ paused?: boolean | null;
868
+ ref?: string | null;
869
+ } | {
740
870
  id: string;
741
871
  deleted: boolean;
742
872
  } | null;
@@ -756,7 +886,13 @@ export interface BulkDeleteRulesResponse {
756
886
  id?: string | null;
757
887
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
758
888
  description?: string | null;
759
- filter?: unknown | {
889
+ filter?: {
890
+ id?: string | null;
891
+ description?: string | null;
892
+ expression?: string | null;
893
+ paused?: boolean | null;
894
+ ref?: string | null;
895
+ } | {
760
896
  id: string;
761
897
  deleted: boolean;
762
898
  } | null;
@@ -774,7 +910,13 @@ export declare const bulkDeleteRules: API.PaginatedOperationMethod<BulkDeleteRul
774
910
  id?: string | null;
775
911
  action?: "block" | "challenge" | "js_challenge" | "managed_challenge" | "allow" | "log" | "bypass" | null;
776
912
  description?: string | null;
777
- filter?: unknown | {
913
+ filter?: {
914
+ id?: string | null;
915
+ description?: string | null;
916
+ expression?: string | null;
917
+ paused?: boolean | null;
918
+ ref?: string | null;
919
+ } | {
778
920
  id: string;
779
921
  deleted: boolean;
780
922
  } | null;
@@ -891,7 +1033,22 @@ export interface UpdateUaRuleRequest {
891
1033
  /** Path param: Defines an identifier. */
892
1034
  zoneId: string;
893
1035
  /** Body param: The rule configuration. */
894
- configuration: unknown;
1036
+ configuration: {
1037
+ target?: "ip";
1038
+ value?: string;
1039
+ } | {
1040
+ target?: "ip6";
1041
+ value?: string;
1042
+ } | {
1043
+ target?: "ip_range";
1044
+ value?: string;
1045
+ } | {
1046
+ target?: "asn";
1047
+ value?: string;
1048
+ } | {
1049
+ target?: "country";
1050
+ value?: string;
1051
+ };
895
1052
  /** Body param: The action to apply to a matched request. */
896
1053
  mode: "block" | "challenge" | "whitelist" | "js_challenge" | "managed_challenge";
897
1054
  /** Body param: An informative summary of the rule. This value is sanitized and any tags will be removed. */
@@ -968,7 +1125,7 @@ export interface GetWafOverrideResponse {
968
1125
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
969
1126
  } | null;
970
1127
  /** An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule */
971
- rules?: unknown | null;
1128
+ rules?: Record<string, unknown> | null;
972
1129
  /** The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
973
1130
  urls?: string[] | null;
974
1131
  }
@@ -994,7 +1151,7 @@ export interface ListWafOverridesResponse {
994
1151
  disable?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
995
1152
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
996
1153
  } | null;
997
- rules?: unknown | null;
1154
+ rules?: Record<string, unknown> | null;
998
1155
  urls?: string[] | null;
999
1156
  }[];
1000
1157
  resultInfo: {
@@ -1021,7 +1178,7 @@ export declare const listWafOverrides: API.PaginatedOperationMethod<ListWafOverr
1021
1178
  disable?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
1022
1179
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
1023
1180
  } | null;
1024
- rules?: unknown | null;
1181
+ rules?: Record<string, unknown> | null;
1025
1182
  urls?: string[] | null;
1026
1183
  }, ListWafOverridesError, Credentials | HttpClient.HttpClient>;
1027
1184
  };
@@ -1052,7 +1209,7 @@ export interface CreateWafOverrideResponse {
1052
1209
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
1053
1210
  } | null;
1054
1211
  /** An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule */
1055
- rules?: unknown | null;
1212
+ rules?: Record<string, unknown> | null;
1056
1213
  /** The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
1057
1214
  urls?: string[] | null;
1058
1215
  }
@@ -1074,7 +1231,7 @@ export interface UpdateWafOverrideRequest {
1074
1231
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default";
1075
1232
  };
1076
1233
  /** Body param: An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disa */
1077
- rules: unknown;
1234
+ rules: Record<string, unknown>;
1078
1235
  /** Body param: The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
1079
1236
  urls: string[];
1080
1237
  }
@@ -1099,7 +1256,7 @@ export interface UpdateWafOverrideResponse {
1099
1256
  simulate?: "challenge" | "block" | "simulate" | "disable" | "default" | null;
1100
1257
  } | null;
1101
1258
  /** An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule */
1102
- rules?: unknown | null;
1259
+ rules?: Record<string, unknown> | null;
1103
1260
  /** The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. */
1104
1261
  urls?: string[] | null;
1105
1262
  }
@@ -1126,8 +1283,22 @@ export interface GetWafPackageRequest {
1126
1283
  }
1127
1284
  export declare const GetWafPackageRequest: Schema.Schema<GetWafPackageRequest>;
1128
1285
  export type GetWafPackageResponse = {
1129
- errors: unknown[];
1130
- messages: unknown[];
1286
+ errors: {
1287
+ code: number;
1288
+ message: string;
1289
+ documentationUrl?: string | null;
1290
+ source?: {
1291
+ pointer?: string | null;
1292
+ } | null;
1293
+ }[];
1294
+ messages: {
1295
+ code: number;
1296
+ message: string;
1297
+ documentationUrl?: string | null;
1298
+ source?: {
1299
+ pointer?: string | null;
1300
+ } | null;
1301
+ }[];
1131
1302
  result: string | null;
1132
1303
  success: true;
1133
1304
  } | {
@@ -1275,7 +1446,10 @@ export interface ListWafPackageRulesResponse {
1275
1446
  id: string;
1276
1447
  allowedModes: ("on" | "off")[];
1277
1448
  description: string;
1278
- group: unknown;
1449
+ group: {
1450
+ id?: string | null;
1451
+ name?: string | null;
1452
+ };
1279
1453
  mode: "on" | "off";
1280
1454
  packageId: string;
1281
1455
  priority: string;
@@ -1284,7 +1458,10 @@ export interface ListWafPackageRulesResponse {
1284
1458
  allowedModes: ("default" | "disable" | "simulate" | "block" | "challenge")[];
1285
1459
  defaultMode: "disable" | "simulate" | "block" | "challenge";
1286
1460
  description: string;
1287
- group: unknown;
1461
+ group: {
1462
+ id?: string | null;
1463
+ name?: string | null;
1464
+ };
1288
1465
  mode: "default" | "disable" | "simulate" | "block" | "challenge";
1289
1466
  packageId: string;
1290
1467
  priority: string;
@@ -1304,7 +1481,10 @@ export declare const listWafPackageRules: API.PaginatedOperationMethod<ListWafPa
1304
1481
  id: string;
1305
1482
  allowedModes: ("on" | "off")[];
1306
1483
  description: string;
1307
- group: unknown;
1484
+ group: {
1485
+ id?: string | null;
1486
+ name?: string | null;
1487
+ };
1308
1488
  mode: "on" | "off";
1309
1489
  packageId: string;
1310
1490
  priority: string;
@@ -1313,7 +1493,10 @@ export declare const listWafPackageRules: API.PaginatedOperationMethod<ListWafPa
1313
1493
  allowedModes: ("default" | "disable" | "simulate" | "block" | "challenge")[];
1314
1494
  defaultMode: "disable" | "simulate" | "block" | "challenge";
1315
1495
  description: string;
1316
- group: unknown;
1496
+ group: {
1497
+ id?: string | null;
1498
+ name?: string | null;
1499
+ };
1317
1500
  mode: "default" | "disable" | "simulate" | "block" | "challenge";
1318
1501
  packageId: string;
1319
1502
  priority: string;
@@ -1332,7 +1515,10 @@ export type PatchWafPackageRuleResponse = {
1332
1515
  id: string;
1333
1516
  allowedModes: ("on" | "off")[];
1334
1517
  description: string;
1335
- group: unknown;
1518
+ group: {
1519
+ id?: string | null;
1520
+ name?: string | null;
1521
+ };
1336
1522
  mode: "on" | "off";
1337
1523
  packageId: string;
1338
1524
  priority: string;
@@ -1341,7 +1527,10 @@ export type PatchWafPackageRuleResponse = {
1341
1527
  allowedModes: ("default" | "disable" | "simulate" | "block" | "challenge")[];
1342
1528
  defaultMode: "disable" | "simulate" | "block" | "challenge";
1343
1529
  description: string;
1344
- group: unknown;
1530
+ group: {
1531
+ id?: string | null;
1532
+ name?: string | null;
1533
+ };
1345
1534
  mode: "default" | "disable" | "simulate" | "block" | "challenge";
1346
1535
  packageId: string;
1347
1536
  priority: string;